From cf9c2412b9d983d3ec3f1567f3f851bb6eb0835c Mon Sep 17 00:00:00 2001 From: Philippe Date: Mon, 23 Nov 2026 02:07:40 +0100 Subject: [PATCH 01/31] GTA VI: archives, audio, metadata, textures and models GTA VI's archives (RPF9) have an encrypted table of contents, and the keys are only in the game's program. What is not encrypted is read without it: - RPF9 as a recovery view: the data area is scanned once for zlib streams, Bink 2 videos and audio containers; files are named by their offset and sorted into folders by what they start with. The index is stored per archive and made in the background when the game is opened. - A folder with GTA VI's archives counts as a game without a program and without keys. The setup says Open instead of Derive keys and can always be left. - Audio: GTA VI's containers (two more tables, Opus instead of Vorbis), sounds and multi-channel streams, decoded with opus-rs. - Metadata: PSIN with an LSCH schema and the RBF0 variant with 8-byte numbers, both as XML. Tables of zero-ended strings open as text. - Textures: the texture pools (.ttpf) open as folders of 64 textures; 2D textures, arrays and cube maps, with BCPack for BC1, BC3, BC4 and BC5. `openrage ttpf` counts and exports a pool. - Models: drawables, fragments and drawable dictionaries open in the viewer, listed by their own names under models/, with the base colour texture of their materials from the texture pools. Not read: BCPack for BC6H and BC7, volume textures, skeletons and skinning, Bink 2 video (no free decoder), and everything that needs names from the table of contents. Format knowledge and its sources are in NOTICE.md (Leonida, rpf9-explorer, Microsoft's silicon-rans tables). Co-Authored-By: Claude Fable 5.2 --- Cargo.lock | 8 + NOTICE.md | 21 + crates/openrage-app/Cargo.toml | 1 + crates/openrage-app/src/audio.rs | 1 + crates/openrage-app/src/detect.rs | 25 +- crates/openrage-app/src/gta6_models.rs | 66 ++ crates/openrage-app/src/gta6_textures.rs | 103 ++ crates/openrage-app/src/lib.rs | 3 + crates/openrage-app/src/metadata.rs | 8 +- crates/openrage-app/src/models.rs | 13 + crates/openrage-app/src/plugins.rs | 24 +- crates/openrage-app/src/rpf9.rs | 412 ++++++++ crates/openrage-cli/src/cli.rs | 17 + crates/openrage-cli/src/cmd/archive.rs | 84 ++ crates/openrage-cli/src/cmd/view.rs | 43 + crates/openrage-cli/src/main.rs | 24 + crates/openrage-gui/src/badges.rs | 2 +- crates/openrage-gui/src/browser.rs | 118 +++ crates/openrage-gui/src/callbacks.rs | 7 +- crates/openrage-gui/src/docs.rs | 20 +- crates/openrage-gui/src/extract_ui.rs | 18 + crates/openrage-gui/src/main.rs | 23 +- crates/openrage-gui/src/navigate.rs | 15 + crates/openrage-gui/src/plugins_ui.rs | 1 + crates/openrage-gui/src/preview.rs | 117 +++ crates/openrage-gui/src/setup_ui.rs | 82 +- crates/openrage-gui/ui/app.slint | 16 +- crates/rage-formats/Cargo.toml | 1 + crates/rage-formats/src/awc.rs | 241 ++++- crates/rage-formats/src/bcpack/mod.rs | 594 ++++++++++++ crates/rage-formats/src/bcpack/tables.rs | 1125 ++++++++++++++++++++++ crates/rage-formats/src/drawable6.rs | 626 ++++++++++++ crates/rage-formats/src/lib.rs | 4 + crates/rage-formats/src/psin.rs | 695 +++++++++++++ crates/rage-formats/src/rbf.rs | 61 +- crates/rage-formats/src/ttpf.rs | 673 +++++++++++++ crates/rage-rpf/README.md | 1 + crates/rage-rpf/src/error.rs | 3 + crates/rage-rpf/src/lib.rs | 6 +- crates/rage-rpf/src/rpf9.rs | 1050 ++++++++++++++++++++ crates/rage-rpf/src/vfs.rs | 28 +- 41 files changed, 6332 insertions(+), 48 deletions(-) create mode 100644 crates/openrage-app/src/gta6_models.rs create mode 100644 crates/openrage-app/src/gta6_textures.rs create mode 100644 crates/openrage-app/src/rpf9.rs create mode 100644 crates/rage-formats/src/bcpack/mod.rs create mode 100644 crates/rage-formats/src/bcpack/tables.rs create mode 100644 crates/rage-formats/src/drawable6.rs create mode 100644 crates/rage-formats/src/psin.rs create mode 100644 crates/rage-formats/src/ttpf.rs create mode 100644 crates/rage-rpf/src/rpf9.rs diff --git a/Cargo.lock b/Cargo.lock index 296e4c5..7c3a8c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3985,6 +3985,7 @@ version = "0.5.0" dependencies = [ "anyhow", "dirs", + "flate2", "memchr", "openrage-plugins", "png", @@ -4068,6 +4069,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" +[[package]] +name = "opus-rs" +version = "0.1.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bafbcaf2ed381cdf68ced4ed8d16517de90ffd7424e36f0b9e45d67fbe30b1f9" + [[package]] name = "orbclient" version = "0.3.55" @@ -4547,6 +4554,7 @@ version = "0.5.0" dependencies = [ "flate2", "lewton", + "opus-rs", "png", "rage-core", "rage-resource", diff --git a/NOTICE.md b/NOTICE.md index 5a60ca7..9896c16 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -51,6 +51,27 @@ Vorbis audio (Red Dead Redemption 2) is decoded with lewton (https://github.com/RustAudio/lewton), licensed under the MIT or Apache-2.0 license. +## opus-rs + +Opus audio (GTA VI) is decoded with opus-rs +(https://github.com/restsend/opus-rs), a port of libopus, licensed under the +BSD 3-Clause licence. + +## Leonida + +What is known about GTA VI's formats (RPF9 archives, audio containers, PSIN +and RBF0 metadata, texture pools) comes from the documentation of Leonida +(https://github.com/ItsNotRexed/Leonida, GPL-3.0). The PSIN reader in +`crates/rage-formats/src/psin.rs` follows its `tools/psin_data.py`, the +texture pool reader in `crates/rage-formats/src/ttpf.rs` its +`tools/ttpf_mips.py` and `tools/tex_headers.py`. + +## rpf9-explorer + +The layout of GTA VI's models (`crates/rage-formats/src/drawable6.rs`) is the +one found by rpf9-explorer (https://github.com/breadbbbb/rpf9-explorer). Its +decoder was read to learn the layout; no code was taken from it. + ## RDR2-RPF-Tool The TFIT2-CBC cipher and the strided file encryption of Red Dead Redemption 2 diff --git a/crates/openrage-app/Cargo.toml b/crates/openrage-app/Cargo.toml index 3a3572c..c4a724f 100644 --- a/crates/openrage-app/Cargo.toml +++ b/crates/openrage-app/Cargo.toml @@ -24,4 +24,5 @@ png = "0.18" zip.workspace = true [dev-dependencies] +flate2.workspace = true zip = { version = "9", default-features = false, features = ["deflate-flate2"] } diff --git a/crates/openrage-app/src/audio.rs b/crates/openrage-app/src/audio.rs index 8870310..a93952e 100644 --- a/crates/openrage-app/src/audio.rs +++ b/crates/openrage-app/src/audio.rs @@ -18,6 +18,7 @@ pub fn load(game_dir: &Path, keys: Option>, vpath: &str) -> Result let data = match node { Node::ArchiveFile(rpf, id) => rpf.read(id)?, Node::PlainFile(p) => std::fs::read(p)?, + Node::Rpf9File(rpf, i) => rpf.read_at(i)?, _ => bail!("{vpath} is not a file"), }; parse(data, keys.as_deref()) diff --git a/crates/openrage-app/src/detect.rs b/crates/openrage-app/src/detect.rs index 5f532e1..6855947 100644 --- a/crates/openrage-app/src/detect.rs +++ b/crates/openrage-app/src/detect.rs @@ -74,6 +74,27 @@ pub fn is_rdr2_dir(dir: &Path) -> bool { dir.join(RDR2_EXE).is_file() } +/// Whether a folder holds GTA VI: no known program, but archives in the +/// RPF9 format. They open without keys (see [`rage_rpf::rpf9`]). +pub fn is_gta6_dir(dir: &Path) -> bool { + if is_gta5_dir(dir) || is_rdr2_dir(dir) || crate::gta4::is_gta4_dir(dir) { + return false; + } + if dir.join("common.rpf").is_file() { + return rage_rpf::Rpf9::file_is_rpf9(&dir.join("common.rpf")); + } + let Ok(rd) = fs::read_dir(dir) else { return false }; + rd.flatten() + .map(|e| e.path()) + .filter(|p| p.extension().is_some_and(|x| x.eq_ignore_ascii_case("rpf"))) + .any(|p| rage_rpf::Rpf9::file_is_rpf9(&p)) +} + +/// Whether a folder holds a game OpenRAGE can open. +pub fn is_game_dir(dir: &Path) -> bool { + is_gta5_dir(dir) || is_rdr2_dir(dir) || crate::gta4::is_gta4_dir(dir) || is_gta6_dir(dir) +} + /// The icon of the game in `dir`, from its own program: (width, height, RGBA). pub fn game_icon(dir: &Path) -> Option<(u32, u32, Vec)> { let programs: &[&str] = if is_rdr2_dir(dir) { @@ -87,7 +108,7 @@ pub fn game_icon(dir: &Path) -> Option<(u32, u32, Vec)> { } /// Short name of the game installed in `dir`: "GTA V Enhanced", "GTA V", -/// "GTA IV", "RDR2", or `None` when no known executable is there. +/// "GTA IV", "RDR2", "GTA VI", or `None` when the folder holds no known game. pub fn game_name(dir: &Path) -> Option<&'static str> { if is_rdr2_dir(dir) { Some("RDR2") @@ -97,6 +118,8 @@ pub fn game_name(dir: &Path) -> Option<&'static str> { Some("GTA V") } else if crate::gta4::is_gta4_dir(dir) { Some("GTA IV") + } else if is_gta6_dir(dir) { + Some("GTA VI") } else { None } diff --git a/crates/openrage-app/src/gta6_models.rs b/crates/openrage-app/src/gta6_models.rs new file mode 100644 index 0000000..9ecc567 --- /dev/null +++ b/crates/openrage-app/src/gta6_models.rs @@ -0,0 +1,66 @@ +//! GTA VI models from the recovery view of an archive. +//! +//! A model is stored as its system part and then its graphics part, each +//! cut into zlib streams of 64 KiB. Without the table of contents nothing +//! says where one part ends: the recovery view lists a resource as its first +//! entry (which starts the system part) and what follows it. So the parts +//! are found by trying: every cut between two streams is a possible end of +//! the system part, and the reader says whether the graphics part reaches +//! far enough. + +use anyhow::{Context, Result, bail}; +use rage_formats::drawable::Drawable; +use rage_formats::drawable6::{self, ModelError}; +use rage_rpf::Rpf9; + +/// Streams unpack to this many bytes, the last one of a part to fewer. +const STREAM: usize = 0x10000; +/// A system part is at most this long. +const MAX_SYSTEM: usize = 32 << 20; +/// A resource is at most this long, and spread over at most this many entries. +const MAX_RESOURCE: usize = 256 << 20; +const MAX_ENTRIES: usize = 4096; + +/// Reads the model that starts at entry `index`: its drawables with their names. +pub fn load(rpf: &Rpf9, index: usize) -> Result> { + let entries = rpf.entries()?; + let first = entries.get(index).context("no such entry")?; + let mut data = rpf.read(first)?; + if drawable6::root(&data).is_none() { + bail!("this resource is not a model"); + } + // Where streams end: the possible ends of the system part. + let mut cuts: Vec = (1..=data.len().div_ceil(STREAM)).map(|i| (i * STREAM).min(data.len())).collect(); + let mut last = index; + loop { + let mut needs_more = false; + let mut failure = None; + for cut in cuts.iter().copied().take_while(|c| *c <= MAX_SYSTEM) { + match drawable6::parse(&data[..cut], &data[cut..]) { + Ok(drawables) => return Ok(named(drawables)), + Err(ModelError::Graphics(_)) => needs_more = true, + Err(e) => failure = failure.or(Some(e)), + } + } + // The graphics part goes on in the next entry. + if !needs_more || !Rpf9::follows(&entries, last) || last - index >= MAX_ENTRIES || data.len() >= MAX_RESOURCE { + match failure { + Some(e) if !needs_more => bail!(e), + _ => bail!("the model's vertex and index data was not found after it"), + } + } + last += 1; + let more = rpf.read(&entries[last])?; + let start = data.len(); + data.extend_from_slice(&more); + cuts.extend((1..=more.len().div_ceil(STREAM)).map(|i| start + (i * STREAM).min(more.len()))); + } +} + +fn named(drawables: Vec) -> Vec<(String, Drawable)> { + drawables + .into_iter() + .enumerate() + .map(|(i, d)| (if d.name.is_empty() { format!("drawable {i}") } else { d.name.clone() }, d)) + .collect() +} diff --git a/crates/openrage-app/src/gta6_textures.rs b/crates/openrage-app/src/gta6_textures.rs new file mode 100644 index 0000000..2fcd2ce --- /dev/null +++ b/crates/openrage-app/src/gta6_textures.rs @@ -0,0 +1,103 @@ +//! GTA VI: the textures of models, which are in the texture pools. +//! +//! A model's shader names a texture by a 64-bit key; each texture pool +//! (`.ttpf`, see [`rage_formats::ttpf`]) lists the keys of its textures. So +//! the pools of a game are read once into a catalog of key → pool and number. + +use std::collections::HashMap; +use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex, OnceLock}; + +use rage_formats::drawable::Drawable; +use rage_formats::drawable6::texture_name; +use rage_formats::ttpf::Pool; +use rage_formats::ytd::{Layout, TextureDictionary}; + +/// Textures on a model are read at most this many pixels wide and high. +const MAX_SIDE: u32 = 1024; +/// A model gets at most this many textures. +const MAX_TEXTURES: usize = 64; + +/// Where the textures of a game are: per key, the pool and the number in it. +#[derive(Default)] +pub struct Catalog { + pools: Vec<(PathBuf, Pool)>, + by_key: HashMap, +} + +impl Catalog { + /// Reads the tables of all texture pools below `game_dir`. + fn build(game_dir: &Path) -> Catalog { + let mut files = Vec::new(); + crate::detect::collect_archives(game_dir, &["ttpf"], &mut files); + let mut catalog = Catalog::default(); + for file in files { + let Ok(pool) = Pool::open(&file) else { continue }; + for (number, key) in pool.keys().iter().enumerate().filter(|(_, key)| **key != 0) { + // The same texture can be in several pools: the first one that has data wins. + let has_data = pool.descriptor(number).is_some_and(|d| d.base.is_some()); + let known = catalog + .by_key + .get(key) + .is_some_and(|(p, n)| catalog.pools[*p].1.descriptor(*n).is_some_and(|d| d.base.is_some())); + if !known && (has_data || !catalog.by_key.contains_key(key)) { + catalog.by_key.insert(*key, (catalog.pools.len(), number)); + } + } + catalog.pools.push((file, pool)); + } + catalog + } + + pub fn len(&self) -> usize { + self.by_key.len() + } + + pub fn is_empty(&self) -> bool { + self.by_key.is_empty() + } + + /// The texture with this key, named by the key. + pub fn texture(&self, key: u64) -> Option { + let (pool, number) = *self.by_key.get(&key)?; + let mut texture = self.pools[pool].1.texture(number, Some(MAX_SIDE)).ok()?; + texture.name = texture_name(key); + Some(texture) + } +} + +/// The catalog of a game's texture pools; read on first use and kept. +pub fn catalog(game_dir: &Path) -> Arc { + static CATALOGS: OnceLock>>> = OnceLock::new(); + let mut catalogs = CATALOGS.get_or_init(Default::default).lock().unwrap_or_else(|e| e.into_inner()); + Arc::clone(catalogs.entry(game_dir.to_path_buf()).or_insert_with(|| Arc::new(Catalog::build(game_dir)))) +} + +/// The textures the shaders of these drawables name, from the pools of the +/// game: a dictionary of them, `None` if none was found. +pub fn for_drawables(game_dir: &Path, drawables: &[(String, Drawable)]) -> Option { + let mut names: Vec<&str> = + drawables.iter().flat_map(|(_, d)| &d.shaders).flat_map(|s| &s.textures).map(String::as_str).collect(); + names.sort_unstable(); + names.dedup(); + if names.is_empty() { + return None; + } + let catalog = catalog(game_dir); + let total = names.len().min(MAX_TEXTURES); + let mut textures = Vec::new(); + for (i, name) in names.into_iter().take(MAX_TEXTURES).enumerate() { + crate::progress::set("Loading textures", i as u64, total as u64); + if let Some(texture) = u64::from_str_radix(name, 16).ok().and_then(|key| catalog.texture(key)) { + textures.push(texture); + } + } + (!textures.is_empty()).then(|| TextureDictionary { + textures, + errors: Vec::new(), + layout: Layout::Enhanced, + version: 0, + root: Vec::new(), + stored: Vec::new(), + }) +} diff --git a/crates/openrage-app/src/lib.rs b/crates/openrage-app/src/lib.rs index 6af0cd4..ebf300a 100644 --- a/crates/openrage-app/src/lib.rs +++ b/crates/openrage-app/src/lib.rs @@ -14,6 +14,8 @@ pub mod extract; pub mod gta4; pub mod gta4_cutscene; pub mod gta4_effects; +pub mod gta6_models; +pub mod gta6_textures; pub mod install; pub mod journal; pub mod licenses; @@ -30,6 +32,7 @@ pub mod progress; pub mod rdr2; pub mod render; pub mod repack; +pub mod rpf9; pub mod setup; pub mod suggest; pub mod texttable; diff --git a/crates/openrage-app/src/metadata.rs b/crates/openrage-app/src/metadata.rs index ef10faa..b83c5fb 100644 --- a/crates/openrage-app/src/metadata.rs +++ b/crates/openrage-app/src/metadata.rs @@ -12,7 +12,7 @@ use rage_resource::Resource; use rage_rpf::vfs::Node; /// Extensions of files that hold metadata. -pub const EXTENSIONS: &[&str] = &["ymap", "ytyp", "ymt", "ymf", "cut", "pso"]; +pub const EXTENSIONS: &[&str] = &["ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0"]; pub fn is_metadata(name: &str) -> bool { let lower = name.to_ascii_lowercase(); @@ -72,6 +72,11 @@ fn from_bytes_for(data: &[u8], rdr2: bool) -> Result { } return from_resource(&res); } + if rage_formats::psin::is_psin(data) { + let psin = rage_formats::psin::parse(data)?; + let (text, errors) = psin.to_xml(); + return Ok(Xml { text, encoding: Encoding::Pso, root: Some(psin.root_type()), errors }); + } if rage_formats::pso::is_pso(data) { let pso = if rdr2 { rage_formats::pso::parse_rdr2(data)? } else { rage_formats::pso::parse(data)? }; let (text, errors) = pso.to_xml(); @@ -116,6 +121,7 @@ pub fn load(game_dir: &Path, keys: Option>, vpath: &str) -> Result Node::ArchiveFile(rpf, id) => rpf.read(id)?, Node::PlainFile(p) => std::fs::read(p)?, Node::Rpf8File(rpf, i) => return from_rpf8(&rpf, i), + Node::Rpf9File(rpf, i) => rpf.read_at(i)?, _ => bail!("{vpath} is not a file"), }; from_bytes(&data) diff --git a/crates/openrage-app/src/models.rs b/crates/openrage-app/src/models.rs index 6b0b23a..3d0e615 100644 --- a/crates/openrage-app/src/models.rs +++ b/crates/openrage-app/src/models.rs @@ -444,6 +444,10 @@ pub fn is_model(name: &str) -> bool { || n.ends_with(".wft") || n.ends_with(".wbn") || n.ends_with(".wbd") + // GTA VI: drawables, fragments and drawable dictionaries. + || n.ends_with(".#dr") + || n.ends_with(".#ft") + || n.ends_with(".#dd") || rage_formats::paths::is_path_file(&n) } @@ -585,6 +589,15 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu if let Node::Gta4File(archive, id) = node { return load_gta4(&archive, id); } + if let Node::Rpf9File(rpf, i) = node { + let drawables = crate::gta6_models::load(&rpf, i)?; + let textures = crate::gta6_textures::for_drawables(game_dir, &drawables); + let mut model = LoadedModel::from_drawables(drawables); + if let Some(textures) = textures { + model.add_textures("texture pools".to_owned(), textures); + } + return Ok(model); + } let Node::ArchiveFile(rpf, id) = node else { bail!("{vpath} is not a file inside an archive") }; let name = rpf.entry(id).name.clone(); let res = rpf.read_resource(id)?; diff --git a/crates/openrage-app/src/plugins.rs b/crates/openrage-app/src/plugins.rs index 12ff6cf..f2a796a 100644 --- a/crates/openrage-app/src/plugins.rs +++ b/crates/openrage-app/src/plugins.rs @@ -167,7 +167,8 @@ impl GameFiles for GameDir { None => bail!("{vpath}: not found"), }, Node::Gta4File(a, id) => a.read(id)?, - Node::Dir(_) | Node::ArchiveDir(..) | Node::Rpf8Dir(..) | Node::Gta4Dir(..) => { + Node::Rpf9File(rpf, i) => rpf.read_at(i)?, + Node::Dir(_) | Node::ArchiveDir(..) | Node::Rpf8Dir(..) | Node::Gta4Dir(..) | Node::Rpf9Dir(..) => { bail!("{vpath} is a folder") } _ => bail!("{vpath}: not supported"), @@ -227,7 +228,26 @@ impl GameFiles for GameDir { out.push(DirEntry { name: e.name.clone(), is_dir: e.is_dir(), size: e.size() }); } } - Node::PlainFile(_) | Node::ArchiveFile(..) | Node::Rpf8File(..) | Node::Gta4File(..) => { + Node::Rpf9Dir(rpf, dir) => { + let entries = rpf.entries()?; + let (dirs, files) = rpf.list_dir(&entries, &dir); + for d in dirs { + out.push(DirEntry { name: d, is_dir: true, size: 0 }); + } + for i in files { + let name = rpf.entry_name(&entries[i]); + out.push(DirEntry { + name: name.rsplit('/').next().unwrap_or(&name).to_owned(), + is_dir: false, + size: entries[i].size, + }); + } + } + Node::PlainFile(_) + | Node::ArchiveFile(..) + | Node::Rpf8File(..) + | Node::Gta4File(..) + | Node::Rpf9File(..) => { bail!("{vpath} is a file") } _ => bail!("{vpath}: not supported"), diff --git a/crates/openrage-app/src/rpf9.rs b/crates/openrage-app/src/rpf9.rs new file mode 100644 index 0000000..fb8b81a --- /dev/null +++ b/crates/openrage-app/src/rpf9.rs @@ -0,0 +1,412 @@ +//! GTA VI archives (RPF9): the stored index of their recovery view, and +//! extraction. +//! +//! Finding the files of an RPF9 archive means reading all of it (see +//! [`rage_rpf::rpf9`]), which takes minutes for the large ones. The result +//! is kept in the cache directory, one file per archive, and used as long as +//! the archive's size and modification time stay the same. + +use std::collections::HashMap; +use std::fs; +use std::io::{BufWriter, Write}; +use std::path::{Path, PathBuf}; +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::{Arc, Mutex, OnceLock}; +use std::time::UNIX_EPOCH; + +use anyhow::{Context, Result}; +use rage_rpf::rpf9::{self, Entry}; +use rage_rpf::{Rpf9, RpfError, vfs}; + +use crate::extract::ExtractSummary; + +/// Start of an index file; the digit changes with the format. +const INDEX_MAGIC: &[u8; 8] = b"ORP9IDX2"; + +/// Where the index of an archive is stored: +/// `/openrage/rpf9-.idx`. +pub fn index_path(archive: &Path) -> Option { + crate::paths::game_cache(archive, "rpf9", "idx") +} + +/// Size and modification time (seconds) of the archive: an index made for +/// other values is out of date. +fn identity(archive: &Path) -> Option<[u8; 16]> { + let meta = fs::metadata(archive).ok()?; + let modified = meta.modified().ok()?.duration_since(UNIX_EPOCH).ok()?.as_secs(); + let mut id = [0u8; 16]; + id[..8].copy_from_slice(&meta.len().to_le_bytes()); + id[8..].copy_from_slice(&modified.to_le_bytes()); + Some(id) +} + +/// The stored index of an archive, if there is one and it is up to date. +pub fn load_index(archive: &Path) -> Option> { + load_index_from(&index_path(archive)?, archive) +} + +fn load_index_from(index: &Path, archive: &Path) -> Option> { + let data = fs::read(index).ok()?; + let rest = data.strip_prefix(INDEX_MAGIC)?.strip_prefix(&identity(archive)?)?; + rpf9::decode_index(rest) +} + +/// Stores the index of an archive. +pub fn store_index(archive: &Path, entries: &[Entry]) -> Result<()> { + store_index_to(&index_path(archive).context("no cache directory")?, archive, entries) +} + +fn store_index_to(index: &Path, archive: &Path, entries: &[Entry]) -> Result<()> { + let id = identity(archive).context("archive not readable")?; + if let Some(dir) = index.parent() { + fs::create_dir_all(dir)?; + } + // Written beside and renamed: a stopped write leaves no half index. + let partial = index.with_extension("idx.part"); + let mut data = Vec::from(INDEX_MAGIC); + data.extend_from_slice(&id); + data.extend_from_slice(&rpf9::encode_index(entries)); + fs::write(&partial, data)?; + fs::rename(&partial, index)?; + Ok(()) +} + +/// Start of a names file; the digit changes with the format. +const NAMES_MAGIC: &[u8; 8] = b"ORP9NAM2"; +/// How much of a resource is read to find its name. +const NAME_PREFIX: usize = 256 << 10; + +/// Where the names of an archive's models are stored, beside its index. +pub fn names_path(archive: &Path) -> Option { + crate::paths::game_cache(archive, "rpf9", "names") +} + +/// The stored names of an archive, if there are any and they are up to date. +pub fn load_names(archive: &Path) -> Option { + let data = fs::read(names_path(archive)?).ok()?; + let mut rest = data.strip_prefix(NAMES_MAGIC)?.strip_prefix(&identity(archive)?)?; + let mut found = Vec::new(); + while !rest.is_empty() { + let offset = u64::from_le_bytes(rest.get(..8)?.try_into().ok()?); + let len = usize::from(u16::from_le_bytes(rest.get(8..10)?.try_into().ok()?)); + found.push((offset, String::from_utf8(rest.get(10..10 + len)?.to_vec()).ok()?)); + rest = &rest[10 + len..]; + } + Some(rpf9::Names::new(found)) +} + +/// Stores the names of an archive's models. +pub fn store_names(archive: &Path, names: &[(u64, String)]) -> Result<()> { + let path = names_path(archive).context("no cache directory")?; + let id = identity(archive).context("archive not readable")?; + if let Some(dir) = path.parent() { + fs::create_dir_all(dir)?; + } + let mut data = Vec::from(NAMES_MAGIC); + data.extend_from_slice(&id); + for (offset, name) in names { + data.extend_from_slice(&offset.to_le_bytes()); + data.extend_from_slice(&(name.len().min(usize::from(u16::MAX)) as u16).to_le_bytes()); + data.extend_from_slice(&name.as_bytes()[..name.len().min(usize::from(u16::MAX))]); + } + let partial = path.with_extension("names.part"); + fs::write(&partial, data)?; + fs::rename(&partial, &path)?; + Ok(()) +} + +/// Reads the start of every resource of an archive and returns the names +/// of those that are models; a dictionary of models is named by its offset. `progress` gets the resources read and their +/// number; setting `cancel` stops with what was found so far (`None`). +pub fn scan_names( + rpf: &Rpf9, + entries: &[Entry], + cancel: &AtomicBool, + progress: &(dyn Fn(u64, u64) + Sync), +) -> Option> { + use rayon::prelude::*; + let resources: Vec<&Entry> = entries.iter().filter(|e| e.is_resource()).collect(); + let (done, total) = (std::sync::atomic::AtomicU64::new(0), resources.len() as u64); + let found: Vec<(u64, String)> = resources + .par_iter() + .filter_map(|e| { + if cancel.load(Ordering::Relaxed) { + return None; + } + let n = done.fetch_add(1, Ordering::Relaxed) + 1; + if n.is_multiple_of(256) || n == total { + progress(n, total); + } + let start = rpf.read_start(e, NAME_PREFIX).ok()?; + // A dictionary of models has no name of its own. + let name = match rage_formats::drawable6::root(&start)? { + rage_formats::drawable6::Root::Dictionary => format!("dictionary_{:012x}.#dd", e.offset), + _ => rage_formats::drawable6::name(&start)?, + }; + Some((e.offset, name)) + }) + .collect(); + (!cancel.load(Ordering::Relaxed)).then_some(found) +} + +/// What [`register`] reports to: the archive's file name with the bytes read +/// and to read, or `None` when the scan is over. +pub type Report = dyn Fn(Option<(&str, u64, u64)>) + Send + Sync; + +/// Makes [`Rpf9::entries`] use the stored index, and scan and store it when +/// there is none. `report` gets the archive's file name with the bytes read +/// and to read while scanning, and `None` when the scan is over. +pub fn register(report: Arc) { + let _ = REPORT.set(Arc::clone(&report)); + rpf9::set_indexer(Arc::new(move |rpf: &Rpf9| index(rpf, &AtomicBool::new(false), &*report))); + rpf9::set_namer(Arc::new(|rpf: &Rpf9| load_names(rpf.path()))); +} + +static REPORT: OnceLock> = OnceLock::new(); + +/// One lock per archive: two threads that want the same index (the window +/// and the background run) scan it once; the second finds it stored. +fn scan_lock(archive: &Path) -> Arc> { + static LOCKS: OnceLock>>>> = OnceLock::new(); + let mut locks = LOCKS.get_or_init(Default::default).lock().unwrap_or_else(|e| e.into_inner()); + Arc::clone(locks.entry(archive.to_path_buf()).or_default()) +} + +/// The entries of an archive: from the stored index, or scanned and stored. +fn index(rpf: &Rpf9, cancel: &AtomicBool, report: &Report) -> Result, RpfError> { + let lock = scan_lock(rpf.path()); + let _scanning = lock.lock().unwrap_or_else(|e| e.into_inner()); + if let Some(entries) = load_index(rpf.path()) { + return Ok(entries); + } + let name = rpf.path().file_name().unwrap_or_default().to_string_lossy().into_owned(); + report(Some((&name, 0, rpf.data_len()))); + let scanned = rpf.scan(cancel, &|done, total| report(Some((&name, done, total)))); + report(None); + let entries = scanned?; + // The index only saves time: failing to store it is no error. + let _ = store_index(rpf.path(), &entries); + Ok(entries) +} + +/// Finds and stores the names of an archive's models, unless they are +/// stored already, and gives them to `rpf`. +pub fn ensure_names(rpf: &Rpf9, entries: &[Entry], cancel: &AtomicBool, report: &Report) { + let lock = scan_lock(rpf.path()); + let _scanning = lock.lock().unwrap_or_else(|e| e.into_inner()); + if load_names(rpf.path()).is_some() { + return; + } + let name = format!("{} (model names)", rpf.path().file_name().unwrap_or_default().to_string_lossy()); + report(Some((&name, 0, 1))); + let found = scan_names(rpf, entries, cancel, &|done, total| report(Some((&name, done, total)))); + report(None); + if let Some(found) = found { + // The names only help reading the list: failing to store them is no error. + let _ = store_names(rpf.path(), &found); + rpf.set_names(rpf9::Names::new(found)); + } +} + +/// The names for the archive a command works on: read from the models once +/// if they are not stored yet. For programs without a background run. +pub fn names_now(rpf: &Rpf9) { + if let (Ok(entries), Some(report)) = (rpf.entries(), REPORT.get()) { + ensure_names(rpf, &entries, &AtomicBool::new(false), &**report); + } +} + +/// The run started by [`index_in_background`], to stop it. +static BACKGROUND: Mutex>> = Mutex::new(None); + +/// Stops the background run, if one is going. +pub fn stop_background() { + if let Some(stop) = BACKGROUND.lock().unwrap_or_else(|e| e.into_inner()).take() { + stop.store(true, Ordering::Relaxed); + } +} + +/// Indexes the archives below `game_dir` that have no stored index yet, one +/// after the other (smallest first), on a thread of its own. Opening an +/// archive meanwhile waits for its index or makes it. A run started before +/// is stopped. +pub fn index_in_background(game_dir: &Path) { + stop_background(); + let stop = Arc::new(AtomicBool::new(false)); + *BACKGROUND.lock().unwrap_or_else(|e| e.into_inner()) = Some(Arc::clone(&stop)); + let game_dir = game_dir.to_path_buf(); + std::thread::spawn(move || { + let mut archives = Vec::new(); + crate::detect::collect_archives(&game_dir, &["rpf"], &mut archives); + archives.retain(|p| { + Rpf9::file_is_rpf9(p) + && (load_index(p).is_none() || names_path(p).is_none_or(|n| !n.is_file() || load_names(p).is_none())) + }); + archives.sort_by_key(|p| fs::metadata(p).map_or(0, |m| m.len())); + let quiet: &Report = &|_| {}; + let report: &Report = REPORT.get().map_or(quiet, |r| &**r); + for archive in archives { + if stop.load(Ordering::Relaxed) { + break; + } + let Ok(rpf) = Rpf9::open(&archive) else { continue }; + let Ok(entries) = index(&rpf, &stop, report) else { continue }; + ensure_names(&rpf, &entries, &stop, report); + } + }); +} + +/// Totals of a recovery view. +#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] +pub struct Coverage { + pub files: u64, + /// Bytes of the archive the files take. + pub stored: u64, + /// Bytes the files unpack to. + pub unpacked: u64, + /// Bytes of the data area that belong to no file: padding, and data that + /// is neither zlib, Bink 2 nor an audio container. + pub unread: u64, +} + +pub fn coverage(rpf: &Rpf9, entries: &[Entry]) -> Coverage { + let stored: u64 = entries.iter().map(|e| e.stored).sum(); + Coverage { + files: entries.len() as u64, + stored, + unpacked: entries.iter().map(|e| e.size).sum(), + unread: rpf.data_len().saturating_sub(stored), + } +} + +/// Extracts from the recovery view into `out`: one file (`file`), or +/// everything below folder `dir`. Files are written unpacked, straight to +/// disk. Unreadable files are listed in `failures` and skipped. +pub fn extract( + rpf: &Rpf9, + dir: &str, + file: Option, + out: &Path, + cancel: &AtomicBool, + progress: &mut dyn FnMut(&ExtractSummary, &str), +) -> Result { + let entries = rpf.entries()?; + let mut summary = ExtractSummary { target: out.to_path_buf(), ..Default::default() }; + let mut write = |i: usize, rel: &str, s: &mut ExtractSummary| -> Result<()> { + let target = out.join(vfs::safe_relative_path(rel).with_context(|| format!("unsafe path {rel}"))?); + if let Some(parent) = target.parent() { + fs::create_dir_all(parent)?; + } + let mut writer = BufWriter::new(fs::File::create(&target)?); + match rpf.copy_to(&entries[i], &mut writer).and_then(|n| Ok(writer.flush().map(|()| n)?)) { + Ok(bytes) => { + s.files += 1; + s.bytes += bytes; + } + Err(e) => { + drop(writer); + let _ = fs::remove_file(&target); + s.failures.push(e.to_string()); + } + } + progress(s, rel); + Ok(()) + }; + if let Some(i) = file { + let name = rpf.entry_name(&entries[i]); + let base = name.rsplit('/').next().unwrap_or(&name).to_owned(); + write(i, &base, &mut summary)?; + summary.target = out.join(base); + return Ok(summary); + } + // Everything below `dir`, with its path from there on. + let prefix = if dir.is_empty() { String::new() } else { format!("{}/", dir.to_ascii_lowercase()) }; + for (i, e) in entries.iter().enumerate() { + let name = rpf.entry_name(e); + let Some(rel) = name.strip_prefix(&prefix) else { continue }; + if cancel.load(Ordering::Relaxed) { + summary.cancelled = true; + break; + } + write(i, rel, &mut summary)?; + } + Ok(summary) +} + +#[cfg(test)] +mod tests { + use super::*; + use flate2::Compression; + use flate2::write::ZlibEncoder; + + fn archive(dir: &Path) -> PathBuf { + let mut data = vec![0u8; 0x40]; + data[..4].copy_from_slice(b"9FPR"); + data[4..8].copy_from_slice(&0x40u32.to_le_bytes()); + for text in [&b""[..], b"PSIN\x00\x01binary"] { + let mut enc = ZlibEncoder::new(Vec::new(), Compression::default()); + enc.write_all(text).unwrap(); + data.extend(enc.finish().unwrap()); + data.resize(data.len().next_multiple_of(16), 0); + } + let path = dir.join("test.rpf"); + fs::write(&path, data).unwrap(); + path + } + + fn temp(name: &str) -> PathBuf { + let dir = std::env::temp_dir().join(format!("openrage-app-rpf9-{}-{name}", std::process::id())); + let _ = fs::remove_dir_all(&dir); + fs::create_dir_all(&dir).unwrap(); + dir + } + + #[test] + fn the_index_is_stored_and_dropped_when_the_archive_changes() { + let dir = temp("index"); + let path = archive(&dir); + let rpf = Rpf9::open(&path).unwrap(); + let entries = rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap(); + assert_eq!(entries.len(), 2); + let index = dir.join("test.idx"); + assert_eq!(load_index_from(&index, &path), None); + store_index_to(&index, &path, &entries).unwrap(); + assert_eq!(load_index_from(&index, &path).as_deref(), Some(&entries[..])); + let c = coverage(&rpf, &entries); + assert_eq!((c.files, c.unpacked), (2, 25 + 12)); + assert_eq!(c.stored + c.unread, rpf.data_len()); + + let mut longer = fs::read(&path).unwrap(); + longer.extend([0u8; 16]); + fs::write(&path, longer).unwrap(); + assert_eq!(load_index_from(&index, &path), None); + fs::remove_dir_all(dir).unwrap(); + } + + #[test] + fn extracts_a_folder_and_a_single_file() { + let dir = temp("extract"); + let path = archive(&dir); + let rpf = Rpf9::open(&path).unwrap(); + rpf.set_entries(rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap()); + let quiet = AtomicBool::new(false); + + let all = extract(&rpf, "", None, &dir.join("all"), &quiet, &mut |_, _| {}).unwrap(); + assert_eq!((all.files, all.failures.len()), (2, 0)); + assert_eq!(fs::read(dir.join("all/xml/000000000040.xml")).unwrap(), b""); + + let psin = extract(&rpf, "PSIN", None, &dir.join("psin"), &quiet, &mut |_, _| {}).unwrap(); + assert_eq!(psin.files, 1); + assert!( + fs::read_dir(dir.join("psin")) + .unwrap() + .flatten() + .all(|f| f.file_name().to_string_lossy().ends_with(".psin")) + ); + + let one = extract(&rpf, "", Some(0), &dir.join("one"), &quiet, &mut |_, _| {}).unwrap(); + assert_eq!(one.target, dir.join("one/000000000040.xml")); + assert!(one.target.is_file()); + fs::remove_dir_all(dir).unwrap(); + } +} diff --git a/crates/openrage-cli/src/cli.rs b/crates/openrage-cli/src/cli.rs index 2eac94e..c1e481f 100644 --- a/crates/openrage-cli/src/cli.rs +++ b/crates/openrage-cli/src/cli.rs @@ -325,6 +325,23 @@ pub(crate) enum Command { #[arg(short = 'o', long, visible_alias = "out")] export: Option, }, + /// GTA VI: count the textures of a texture pool (.ttpf) and optionally export them as PNG. + Ttpf { + /// The pool file. + path: PathBuf, + /// Export the textures into this folder as .png, named by their number. + #[arg(short = 'o', long, visible_alias = "out")] + export: Option, + /// The first texture to read. + #[arg(long, default_value_t = 0)] + from: usize, + /// How many textures to read (default: all). + #[arg(long)] + count: Option, + /// Read the largest mip level that is at most this many pixels wide and high. + #[arg(long)] + max_side: Option, + }, /// List the textures of a texture dictionary (.ytd) and optionally export them. Textures { /// Virtual path of the .ytd file. diff --git a/crates/openrage-cli/src/cmd/archive.rs b/crates/openrage-cli/src/cmd/archive.rs index 471180c..d793622 100644 --- a/crates/openrage-cli/src/cmd/archive.rs +++ b/crates/openrage-cli/src/cmd/archive.rs @@ -161,6 +161,32 @@ pub(crate) fn cmd_ls(game_dir: &Path, path: &str, recursive: bool, keys: Option< print_rpf8_entry(&mut out, &rpf, i, name.rsplit('/').next().unwrap_or(&name)); } } + Node::Rpf9File(rpf, i) => { + let entries = rpf.entries()?; + print_rpf9_entry(&mut out, &entries[i], &rpf.entry_name(&entries[i])); + } + Node::Rpf9Dir(rpf, dir) => { + let entries = rpf.entries()?; + openrage_app::rpf9::names_now(&rpf); + if recursive { + let prefix = if dir.is_empty() { String::new() } else { format!("{dir}/") }; + for e in entries.iter() { + let name = rpf.entry_name(e); + if let Some(rel) = name.strip_prefix(&prefix) { + print_rpf9_entry(&mut out, e, rel); + } + } + } else { + let (dirs, files) = rpf.list_dir(&entries, &dir); + for d in dirs { + ls_row(&mut out, "dir", None, "", &d, true); + } + for i in files { + let name = rpf.entry_name(&entries[i]); + print_rpf9_entry(&mut out, &entries[i], name.rsplit('/').next().unwrap_or(&name)); + } + } + } Node::Gta4File(a, id) => print_gta4_entry(&mut out, &a, id, &a.entry_path(id)), Node::Gta4Dir(a, dir) => { if recursive { @@ -232,6 +258,48 @@ pub(crate) fn cmd_info(game_dir: &Path, path: &str, keys: Option>) outln!("Folder: {dir}"); } } + Node::Rpf9Dir(rpf, dir) => { + outln!("Archive: {}", rpf.display_name()); + outln!("Format: RPF9 (Grand Theft Auto VI)"); + outln!("Size: {} ({} bytes)", human(rpf.size()), rpf.size()); + outln!("Table: encrypted, not read (file names and folders are unknown)"); + outln!("Data: from offset {:#x}, {}", rpf.header().data_offset, human(rpf.data_len())); + // The archive itself is described without reading all of it. + let known = rpf.loaded().or_else(|| openrage_app::rpf9::load_index(rpf.path()).map(Arc::new)); + let entries = if dir.is_empty() { known } else { Some(rpf.entries()?) }; + match entries { + Some(entries) => { + let c = openrage_app::rpf9::coverage(&rpf, &entries); + outln!( + "Recovered: {} files, {} in the archive, {} unpacked", + c.files, + human(c.stored), + human(c.unpacked) + ); + outln!( + "Not read: {} (padding, and data that is neither zlib, Bink 2 nor an audio container)", + human(c.unread) + ); + } + None => outln!("Recovered: not indexed yet; `openrage ls` on the archive reads all of it once"), + } + if !dir.is_empty() { + outln!("Folder: {dir}"); + } + } + Node::Rpf9File(rpf, i) => { + let entries = rpf.entries()?; + let e = &entries[i]; + outln!("Path: {}/{}", rpf.display_name(), rpf.entry_name(e)); + outln!("Kind: recovered file (its name is its offset; the real name is unknown)"); + outln!("Offset: {:#x}", e.offset); + outln!("Size: {} ({} on disk)", human(e.size), human(e.stored)); + match e.kind { + rage_rpf::rpf9::Kind::Zlib => outln!("Stored as: {} zlib stream(s)", e.streams), + rage_rpf::rpf9::Kind::Bink2 => outln!("Stored as: Bink 2 video"), + rage_rpf::rpf9::Kind::Awc => outln!("Stored as: audio container"), + } + } Node::Rpf8File(rpf, i) => { let e = &rpf.entries().expect("entries")[i]; outln!("Path: {}/{}", rpf.display_name(), rpf.entry_name(i)); @@ -303,6 +371,20 @@ pub(crate) fn report_rpf8_extract(rpf: &rage_rpf::Rpf8, dir: &str, file: Option< extraction_result(s.failures.len()) } +pub(crate) fn report_rpf9_extract(rpf: &rage_rpf::Rpf9, dir: &str, file: Option, out: &Path) -> Result<()> { + let s = openrage_app::rpf9::extract(rpf, dir, file, out, &AtomicBool::new(false), &mut |_, _| {})?; + for f in &s.failures { + eprintln!("warning: {f}"); + } + outln!("{} file(s) ({}) extracted to {}, {} failed", s.files, human(s.bytes), out.display(), s.failures.len()); + extraction_result(s.failures.len()) +} + +/// One recovered file of a GTA VI archive. +pub(crate) fn print_rpf9_entry(out: &mut Rows, e: &rage_rpf::rpf9::Entry, name: &str) { + ls_row(out, "file", Some(e.size), "", name, false); +} + /// Extraction goes on past single failures, but the command still fails then, /// so scripts notice. pub(crate) fn extraction_result(failures: usize) -> Result<()> { @@ -336,6 +418,8 @@ pub(crate) fn cmd_extract( Node::ArchiveFile(rpf, id) | Node::ArchiveDir(rpf, id) => (rpf, id), Node::Rpf8File(rpf, i) => return report_rpf8_extract(&rpf, "", Some(i), out), Node::Rpf8Dir(rpf, dir) => return report_rpf8_extract(&rpf, &dir, None, out), + Node::Rpf9File(rpf, i) => return report_rpf9_extract(&rpf, "", Some(i), out), + Node::Rpf9Dir(rpf, dir) => return report_rpf9_extract(&rpf, &dir, None, out), Node::Gta4Dir(a, id) | Node::Gta4File(a, id) => { let s = openrage_app::gta4::extract(&a, id, out, &AtomicBool::new(false), &mut |_, _| {})?; for f in &s.failures { diff --git a/crates/openrage-cli/src/cmd/view.rs b/crates/openrage-cli/src/cmd/view.rs index 0f501a6..40a8dc8 100644 --- a/crates/openrage-cli/src/cmd/view.rs +++ b/crates/openrage-cli/src/cmd/view.rs @@ -491,6 +491,49 @@ pub(crate) fn cmd_audio(game_dir: &Path, path: &str, export: Option<&Path>, keys Ok(()) } +/// GTA VI: what a texture pool holds, and its textures as PNG. +pub(crate) fn cmd_ttpf( + path: &Path, + export: Option<&Path>, + from: usize, + count: Option, + max_side: Option, +) -> Result<()> { + let pool = rage_formats::ttpf::Pool::open(path)?; + outln!("{}: {} textures", path.display(), pool.len()); + if let Some(dir) = export { + fs::create_dir_all(dir)?; + } + let started = Instant::now(); + let (mut read, mut full) = (0u32, 0u32); + let mut skipped: std::collections::BTreeMap = Default::default(); + for index in (from..pool.len()).take(count.unwrap_or(usize::MAX)) { + let d = *pool.descriptor(index).context("texture")?; + let texture = match pool.texture(index, max_side) { + Ok(t) => t, + Err(e) => { + *skipped.entry(e.to_string()).or_default() += 1; + continue; + } + }; + read += 1; + full += u32::from(texture.width == d.width && texture.height == d.height); + let Some(dir) = export else { continue }; + match texture.to_rgba() { + Some(rgba) => fs::write( + dir.join(format!("{index:06}.png")), + rage_formats::png(texture.width, texture.height, &rgba)?, + )?, + None => *skipped.entry(format!("no decoder for format {}", texture.format.name())).or_default() += 1, + } + } + outln!("Read: {read} ({full} at full size) in {} ms", started.elapsed().as_millis()); + for (reason, n) in skipped { + outln!("Not read: {n} — {reason}"); + } + Ok(()) +} + pub(crate) fn cmd_xml( game_dir: &Path, path: &str, diff --git a/crates/openrage-cli/src/main.rs b/crates/openrage-cli/src/main.rs index e6a5d17..91aec74 100644 --- a/crates/openrage-cli/src/main.rs +++ b/crates/openrage-cli/src/main.rs @@ -107,6 +107,10 @@ fn run() -> Result<()> { return Ok(()); } + if let Command::Ttpf { path, export, from, count, max_side } = &cli.command { + return cmd_ttpf(path, export.as_deref(), *from, *count, *max_side); + } + if let Command::Rpf8 { path, list, textures, models, text, meta, audio, anims } = &cli.command { return cmd_rpf8( path, @@ -153,10 +157,30 @@ fn run() -> Result<()> { eprintln!("warning: {e}"); None }); + // GTA VI archives are read through once to find their files; say so. + openrage_app::rpf9::register(Arc::new(|step| { + use std::io::IsTerminal; + static SHOWN: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(u64::MAX); + let err = std::io::stderr(); + match step { + Some((name, 0, _)) => { + eprintln!("Indexing {name}: reading the whole archive once, the result is kept for next time."); + } + Some((_, done, total)) if err.is_terminal() && total > 0 => { + let percent = done * 100 / total; + if SHOWN.swap(percent, std::sync::atomic::Ordering::Relaxed) != percent { + eprint!("\r{percent:>3} %"); + } + } + None if err.is_terminal() => eprint!("\r \r"), + _ => {} + } + })); match cli.command { Command::Keys { .. } | Command::Rpf8 { .. } + | Command::Ttpf { .. } | Command::Rdr2Keys { .. } | Command::Rdr2Names { .. } | Command::Licenses { .. } => { diff --git a/crates/openrage-gui/src/badges.rs b/crates/openrage-gui/src/badges.rs index fefc290..819fe7f 100644 --- a/crates/openrage-gui/src/badges.rs +++ b/crates/openrage-gui/src/badges.rs @@ -125,7 +125,7 @@ fn known_name(ext: &str) -> &'static str { "awc" => "Audio container", "gxt2" | "gxt" => "Text table", "gfx" => "Scaleform movie", - "bik" => "Bink video", + "bik" | "bk2" => "Bink video", "nametable" => "Name table", "ugc" => "UGC (JSON)", "orp" => "OpenRAGE plugin", diff --git a/crates/openrage-gui/src/browser.rs b/crates/openrage-gui/src/browser.rs index e33f8b2..d8d348d 100644 --- a/crates/openrage-gui/src/browser.rs +++ b/crates/openrage-gui/src/browser.rs @@ -82,6 +82,8 @@ pub enum Location { Archive(Arc, EntryId), /// A folder inside a Red Dead Redemption 2 archive (read-only). Rpf8(Arc, String), + /// A folder of the recovery view of a GTA VI archive (read-only). + Rpf9(Arc, String), /// A folder inside a GTA IV archive (`.img`, RPF2/RPF3; read-only). Gta4(Arc, rage_rpf::Gta4EntryId), /// Results of a search; `summary` describes hash lookups etc. @@ -119,6 +121,71 @@ pub fn is_texture_dict(name: &str) -> bool { lower.ends_with(".ytd") || lower.ends_with(".ypt") || lower.ends_with(".wtd") } +/// GTA VI texture pools (`.ttpf`): they open as folders of [`POOL_PAGE`] +/// textures each. +pub fn is_texture_pool(name: &str) -> bool { + name.to_ascii_lowercase().ends_with(".ttpf") +} + +/// Textures per folder of a texture pool: as many as are read at once. +const POOL_PAGE: usize = 64; + +/// For `…/pool.ttpf/000128-000191`: the pool's path and the first texture. +fn pool_page(vpath: &str) -> Option<(&str, usize)> { + let (pool, page) = vpath.rsplit_once('/')?; + let (from, to) = page.split_once('-')?; + let numeric = |s: &str| s.len() == 6 && s.bytes().all(|b| b.is_ascii_digit()); + (is_texture_pool(pool) && numeric(from) && numeric(to)).then(|| Some((pool, from.parse().ok()?))).flatten() +} + +fn pool_error(vpath: &str, e: rage_formats::ttpf::TtpfError) -> RpfError { + RpfError::BadResource { path: vpath.to_owned(), reason: e.to_string() } +} + +/// A texture pool: its pages as folders. +fn list_pool(vpath: String, file: &Path, origin: Origin) -> Result { + let pool = rage_formats::ttpf::Pool::open(file).map_err(|e| pool_error(&vpath, e))?; + let items = (0..pool.len()) + .step_by(POOL_PAGE) + .map(|from| { + let to = (from + POOL_PAGE).min(pool.len()) - 1; + Item { + name: format!("{from:06}-{to:06}"), + kind: ItemKind::Dir, + size: 0, + info: format!("{} textures", to - from + 1), + entry: None, + vpath: None, + mark: None, + detail: None, + } + }) + .collect(); + Ok(Listing { vpath, origin, location: Location::Disk(file.to_path_buf()), items }) +} + +/// A page of a texture pool as a texture dictionary (read-only). Textures +/// that cannot be read are left out and counted in the dictionary's errors. +fn list_pool_page(vpath: String, file: &Path, from: usize, origin: Origin) -> Result { + let pool = rage_formats::ttpf::Pool::open(file).map_err(|e| pool_error(&vpath, e))?; + let (mut textures, mut errors) = (Vec::new(), Vec::new()); + for index in (from..pool.len()).take(POOL_PAGE) { + match pool.texture(index, None) { + Ok(t) => textures.push(t), + Err(e) => errors.push(format!("{index:06}: {e}")), + } + } + let dict = rage_formats::ytd::TextureDictionary { + textures, + errors, + layout: rage_formats::ytd::Layout::Enhanced, + version: 0, + root: Vec::new(), + stored: Vec::new(), + }; + Ok(texture_listing(vpath, dict, origin, true)) +} + /// Particle dictionaries open like texture dictionaries, read-only. pub fn is_particles(name: &str) -> bool { name.to_ascii_lowercase().ends_with(".ypt") @@ -244,6 +311,17 @@ pub fn list( let (listing, _) = list(game_dir, &dict_path, keys, overlay)?; return Ok((listing, Some(last_segment(&vpath)))); } + // `…/pool.ttpf/000000-000063`: a page of a GTA VI texture pool. + Err(_) if pool_page(&vpath).is_some() => { + let (pool, from) = pool_page(&vpath).unwrap_or_default(); + let (Node::PlainFile(file), origin) = resolve(pool)? else { return Err(RpfError::NotFound(vpath)) }; + return Ok((list_pool_page(vpath.clone(), &file, from, origin)?, None)); + } + // `…/pool.ttpf/000000-000063/000012`: that page, with the texture selected. + Err(_) if parent(&vpath).is_some_and(|p| pool_page(&p).is_some()) => { + let (listing, _) = list(game_dir, &parent(&vpath).unwrap_or_default(), keys, overlay)?; + return Ok((listing, Some(last_segment(&vpath)))); + } // `…/model/textures`: the textures inside a model (GTA IV .wdr, GTA V .ydr/.yft/.ydd). Err(RpfError::NotFound(_)) if model_of_textures(&vpath).is_some() => { let model = model_of_textures(&vpath).unwrap_or_default(); @@ -291,6 +369,13 @@ pub fn list( .map_err(|e| RpfError::BadResource { path: vpath.clone(), reason: format!("{e:#}") })?; Ok((audio_listing(vpath, awc, origin), None)) } + Node::PlainFile(file) if is_texture_pool(&vpath) => Ok((list_pool(vpath, &file, origin)?, None)), + Node::Rpf9Dir(rpf, dir) => Ok((list_rpf9(vpath, rpf, dir, origin)?, None)), + Node::Rpf9File(rpf, i) if is_audio(&vpath) => { + let awc = rage_formats::awc::Awc::parse(rpf.read_at(i)?, None) + .map_err(|e| RpfError::BadResource { path: vpath.clone(), reason: format!("{e:#}") })?; + Ok((audio_listing(vpath, awc, origin), None)) + } Node::Gta4Dir(a, dir) => Ok((list_gta4(vpath, a, dir, origin), None)), Node::Gta4File(a, i) if is_texture_dict(&a.entry(i).name) && a.entry(i).resource_type().is_some() => { let dict = rage_formats::ytd::parse_gta4(&a.read_resource(i)?) @@ -472,6 +557,7 @@ fn list_disk(vpath: String, dir: PathBuf, origin: Origin) -> Result, dir: String, origin: Origi Listing { vpath, origin, location: Location::Rpf8(rpf, dir), items } } +/// A folder of the recovery view of a GTA VI archive: files named by their +/// offset, in folders by what they look like. +fn list_rpf9(vpath: String, rpf: Arc, dir: String, origin: Origin) -> Result { + let entries = rpf.entries()?; + let (dirs, files) = rpf.list_dir(&entries, &dir); + let item = |name: String, kind, size, info| Item { + name, + kind, + size, + info, + entry: None, + vpath: None, + mark: None, + detail: None, + }; + let mut items: Vec = dirs.into_iter().map(|name| item(name, ItemKind::Dir, 0, String::new())).collect(); + for i in files { + let e = &entries[i]; + let full = rpf.entry_name(e); + let info = match e.kind { + rage_rpf::rpf9::Kind::Bink2 => "video".to_owned(), + rage_rpf::rpf9::Kind::Awc => "sounds".to_owned(), + rage_rpf::rpf9::Kind::Zlib if e.streams > 1 => format!("{} chunks", e.streams), + rage_rpf::rpf9::Kind::Zlib => String::new(), + }; + // The entries known to be models open in the viewer. + let kind = if openrage_app::models::is_model(&full) { ItemKind::Resource } else { ItemKind::File }; + items.push(item(full.rsplit('/').next().unwrap_or(&full).to_owned(), kind, e.size, info)); + } + Ok(Listing { vpath, origin, location: Location::Rpf9(rpf, dir), items }) +} + /// A folder of a GTA IV archive: its folders, files and resources. fn list_gta4(vpath: String, a: Arc, dir: rage_rpf::Gta4EntryId, origin: Origin) -> Listing { let items = a diff --git a/crates/openrage-gui/src/callbacks.rs b/crates/openrage-gui/src/callbacks.rs index 681a7db..e7209df 100644 --- a/crates/openrage-gui/src/callbacks.rs +++ b/crates/openrage-gui/src/callbacks.rs @@ -173,9 +173,8 @@ fn wire_files(ui: &AppWindow) { let video = with_app(|a| { let listing = a.listing.as_ref()?; let item = &listing.items[*a.visible.get(i as usize)?]; - item.name - .to_ascii_lowercase() - .ends_with(".bik") + let name = item.name.to_ascii_lowercase(); + (name.ends_with(".bik") || name.ends_with(".bk2")) .then(|| item.vpath.clone().unwrap_or_else(|| browser::join(&listing.vpath, &item.name))) }); if let Some(vpath) = video { @@ -687,6 +686,8 @@ fn wire_setup(ui: &AppWindow) { }); let w = ui.as_weak(); ui.on_setup_run(move || with_ui(&w, run_setup)); + let w = ui.as_weak(); + ui.on_setup_leave(move || with_ui(&w, leave_setup)); } pub(crate) fn theme_name(mode: i32) -> &'static str { diff --git a/crates/openrage-gui/src/docs.rs b/crates/openrage-gui/src/docs.rs index 7c8dee8..013f5bd 100644 --- a/crates/openrage-gui/src/docs.rs +++ b/crates/openrage-gui/src/docs.rs @@ -16,6 +16,7 @@ pub(crate) fn read_file(ui: &AppWindow, vpath: &str) -> anyhow::Result> Ok(rpf.read(entry)?) } Node::Gta4File(a, id) => Ok(a.read(id)?), + Node::Rpf9File(rpf, i) => Ok(rpf.read_at(i)?), _ => anyhow::bail!("{vpath} is not a file"), } } @@ -53,8 +54,25 @@ pub(crate) fn open_text_file(ui: &AppWindow, vpath: String) { open_text_data(ui, vpath, &data); } +/// A table of strings that each end with a zero byte (GTA VI keeps texts +/// that way), one string per line; `None` for anything else. +pub(crate) fn zero_ended_strings(data: &[u8]) -> Option> { + let text = std::str::from_utf8(data).ok()?; + let plain = |c: char| !c.is_control() || matches!(c, '\0' | '\t' | '\r' | '\n'); + (text.contains('\0') && text.chars().all(plain)).then(|| { + let lines: Vec = text.trim_end_matches('\0').split('\0').map(|s| s.replace('\n', "\\n")).collect(); + lines.join("\n").into_bytes() + }) +} + pub(crate) fn open_text_data(ui: &AppWindow, vpath: String, data: &[u8]) { - match editor::Document::from_file(vpath.clone(), data) { + let opened = editor::Document::from_file(vpath.clone(), data).or_else(|e| { + let mut doc = + zero_ended_strings(data).and_then(|lines| editor::Document::from_bytes(vpath.clone(), &lines)).ok_or(e)?; + doc.locked_reason = "A table of strings, shown one per line for reading.".into(); + Ok::<_, String>(doc) + }); + match opened { Ok(doc) => { editor::open(ui, doc); ui.set_status(SharedString::new()); diff --git a/crates/openrage-gui/src/extract_ui.rs b/crates/openrage-gui/src/extract_ui.rs index 23e0fd5..54466f6 100644 --- a/crates/openrage-gui/src/extract_ui.rs +++ b/crates/openrage-gui/src/extract_ui.rs @@ -61,6 +61,24 @@ pub(crate) fn start_extract(ui: &AppWindow) { }); return; } + // GTA VI: the selected file or folder of the recovery view, or the whole folder. + let gta6 = with_app(|a| { + let listing = a.listing.as_ref()?; + let Location::Rpf9(rpf, dir) = &listing.location else { return None }; + let item = a.selected.map(|s| &listing.items[s]); + let find = |name: &str| rpf.loaded().and_then(|entries| rpf.find(&entries, &browser::join(dir, name))); + Some(match item { + Some(item) if item.kind == ItemKind::Dir => (Arc::clone(rpf), browser::join(dir, &item.name), None), + Some(item) => (Arc::clone(rpf), dir.clone(), find(&item.name)), + None => (Arc::clone(rpf), dir.clone(), None), + }) + }); + if let Some((rpf, dir, file)) = gta6 { + spawn_extract(ui, move |out, cancel, progress| { + openrage_app::rpf9::extract(&rpf, &dir, file, out, cancel, progress) + }); + return; + } let target = with_app(|a| -> Result<(Arc, EntryId), String> { let listing = a.listing.as_ref().ok_or("nothing to extract")?; let item = a.selected.map(|s| &listing.items[s]); diff --git a/crates/openrage-gui/src/main.rs b/crates/openrage-gui/src/main.rs index ea78a64..8499cca 100644 --- a/crates/openrage-gui/src/main.rs +++ b/crates/openrage-gui/src/main.rs @@ -155,6 +155,25 @@ fn main() -> anyhow::Result<()> { } let cfg = Config::load(); plugins::reload(&cfg); + // GTA VI archives are read through once to find their files: show how far that is. + let status = ui.as_weak(); + openrage_app::rpf9::register(std::sync::Arc::new(move |step| { + static SHOWN: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(u64::MAX); + let text = match step { + Some((name, done, total)) => { + let percent = done * 100 / total.max(1); + if SHOWN.swap(percent, Ordering::Relaxed) == percent { + return; + } + format!("Indexing {name} (read once, then remembered)… {percent} %") + } + None => { + SHOWN.store(u64::MAX, Ordering::Relaxed); + String::new() + } + }; + let _ = status.upgrade_in_event_loop(move |ui| ui.set_status(text.into())); + })); let keys = load_keys().unwrap_or(None); // Several games set up and none chosen as default: ask (after the window is up). let known = installed_games(&cfg); @@ -166,7 +185,9 @@ fn main() -> anyhow::Result<()> { default.or_else(|| cfg.game_dir.clone().filter(|d| known.contains(d))).or_else(|| known.first().cloned()) }; let rdr2_ready = game_dir.as_deref().is_some_and(|d| { - (is_rdr2_dir(d) && register_rdr2(d)) || (is_gta4_dir(d) && openrage_app::gta4::register(d).is_ok()) + (is_rdr2_dir(d) && register_rdr2(d)) + || (is_gta4_dir(d) && openrage_app::gta4::register(d).is_ok()) + || detect::is_gta6_dir(d) }); APP.with(|a| { diff --git a/crates/openrage-gui/src/navigate.rs b/crates/openrage-gui/src/navigate.rs index 79e37a2..668690b 100644 --- a/crates/openrage-gui/src/navigate.rs +++ b/crates/openrage-gui/src/navigate.rs @@ -25,6 +25,12 @@ pub(crate) fn start_browsing(ui: &AppWindow) { }); ui.set_window_title(title.into()); start_index_update(ui); + // GTA VI: its archives are read through once to find their files. That + // starts now, not when an archive is opened first. + match with_app(|a| a.game_dir.clone()).filter(|d| detect::is_gta6_dir(d)) { + Some(dir) => openrage_app::rpf9::index_in_background(&dir), + None => openrage_app::rpf9::stop_background(), + } refresh_asi(ui); refresh_tool_menu(ui); refresh_undo(ui); @@ -595,6 +601,15 @@ pub(crate) fn show_folder_info(ui: &AppWindow) { note("Read-only. Names come from `openrage rdr2-names`; unnamed files are under hash/."), ] } + Location::Rpf9(rpf, _) => { + let mut meta = vec![ + kv("Type", "Recovered from a GTA VI archive"), + kv("Archive", rpf.display_name().rsplit('/').next().unwrap_or_default()), + ]; + meta.extend(crate::preview::rpf9_archive_info(rpf)); + meta.push(note("Read-only. Extract… saves the files unpacked.")); + meta + } Location::Gta4(a, _) => { let mut meta = vec![kv("Type", "Inside a GTA IV archive")]; meta.extend(gta4_archive_info(a)); diff --git a/crates/openrage-gui/src/plugins_ui.rs b/crates/openrage-gui/src/plugins_ui.rs index 30c8eb6..83ea02a 100644 --- a/crates/openrage-gui/src/plugins_ui.rs +++ b/crates/openrage-gui/src/plugins_ui.rs @@ -75,6 +75,7 @@ pub(crate) fn plugin_preview( rpf.read(entry).ok()? } Node::Gta4File(a, id) if a.entry(id).size() <= MAX => a.read(id).ok()?, + Node::Rpf9File(rpf, i) if rpf.entries().ok()?.get(i)?.size <= MAX => rpf.read_at(i).ok()?, _ => return None, }; if !specific && rage_core::text::decode_text(&data, 4096).is_some() { diff --git a/crates/openrage-gui/src/preview.rs b/crates/openrage-gui/src/preview.rs index 62c9463..b25ddad 100644 --- a/crates/openrage-gui/src/preview.rs +++ b/crates/openrage-gui/src/preview.rs @@ -65,6 +65,8 @@ pub(crate) enum PreviewSource { Entry(Arc, EntryId), /// A file in a Red Dead Redemption 2 archive (index into its entries). Rpf8(Arc, usize), + /// A recovered file of a GTA VI archive (index into its entries). + Rpf9(Arc, usize), /// A file in a GTA IV archive. Gta4(Arc, rage_rpf::Gta4EntryId), /// A texture of an opened texture dictionary (index into its textures). @@ -127,6 +129,10 @@ pub(crate) fn select_row(ui: &AppWindow, row: usize) { (Location::Rpf8(rpf, dir), _) if item.kind != ItemKind::Dir => { rpf.find(&browser::join(dir, &item.name)).map(|i| PreviewSource::Rpf8(Arc::clone(rpf), i)) } + (Location::Rpf9(rpf, dir), _) if item.kind != ItemKind::Dir => rpf + .loaded() + .and_then(|entries| rpf.find(&entries, &browser::join(dir, &item.name))) + .map(|i| PreviewSource::Rpf9(Arc::clone(rpf), i)), (Location::Gta4(a, dir), _) if item.kind != ItemKind::Dir => { a.find_child(*dir, &item.name).map(|i| PreviewSource::Gta4(Arc::clone(a), i)) } @@ -420,6 +426,8 @@ pub(crate) fn load_preview_text(source: PreviewSource, keys: Option load_preview_text(PreviewSource::DiskFile(p), keys), Ok(Node::Rpf8File(rpf, i)) => rpf8_preview(&rpf, i), Ok(Node::Rpf8Dir(..)) => (Meta::new(), String::new()), + Ok(Node::Rpf9File(rpf, i)) => rpf9_preview(&rpf, i), + Ok(Node::Rpf9Dir(rpf, dir)) if dir.is_empty() => (rpf9_archive_info(&rpf), String::new()), Ok(Node::Gta4File(a, i)) => gta4_preview(&a, i), Ok(Node::Gta4Dir(a, i)) if i == rage_rpf::Gta4Archive::ROOT => (gta4_archive_info(&a), String::new()), Ok(Node::Gta4Dir(..)) => (Meta::new(), String::new()), @@ -427,6 +435,7 @@ pub(crate) fn load_preview_text(source: PreviewSource, keys: Option (vec![kv("Error", e)], String::new()), }, PreviewSource::Rpf8(rpf, i) => rpf8_preview(&rpf, i), + PreviewSource::Rpf9(rpf, i) => rpf9_preview(&rpf, i), PreviewSource::Gta4(a, i) => gta4_preview(&a, i), PreviewSource::Texture(..) => (Meta::new(), String::new()), PreviewSource::DiskFile(path) @@ -468,6 +477,31 @@ pub(crate) fn load_preview_text(source: PreviewSource, keys: Option (vec![kv("Error", e)], String::new()), } } + // GTA VI: a texture pool. + PreviewSource::DiskArchive(path) if browser::is_texture_pool(&path.to_string_lossy()) => { + match rage_formats::ttpf::Pool::open(&path) { + Ok(pool) => { + let plain = (0..pool.len()).filter(|i| pool.descriptor(*i).is_some_and(|d| d.is_2d())).count(); + let meta = vec![ + kv("Format", "Texture pool (GTA VI)"), + kv("Textures", grouped(pool.len())), + kv("Arrays, cube maps, volumes", grouped(pool.len() - plain)), + note( + "Opens as folders of 64 textures. Textures have no names here, only numbers. \ + Arrays, cube maps and volumes are not read yet; textures packed with BCPack \ + are shown from their largest level that is not.", + ), + ]; + (meta, String::new()) + } + Err(e) => (vec![kv("Error", e)], String::new()), + } + } + // GTA VI: RPF9. Described from its header and a stored index: no scan here. + PreviewSource::DiskArchive(path) if rage_rpf::Rpf9::file_is_rpf9(&path) => match rage_rpf::Rpf9::open(&path) { + Ok(rpf) => (rpf9_archive_info(&rpf), String::new()), + Err(e) => (vec![kv("Error", e)], String::new()), + }, // RDR2: RPF8, not RPF7. PreviewSource::DiskArchive(path) if rage_rpf::Rpf8::file_is_rpf8(&path) => { match rage_rpf::Rpf8::open_default(&path) { @@ -768,6 +802,89 @@ pub(crate) fn gta4_preview(a: &rage_rpf::Gta4Archive, i: rage_rpf::Gta4EntryId) } } +/// Overview of a GTA VI archive (RPF9): what was recovered, if it has been +/// indexed already. Never starts the scan. +pub(crate) fn rpf9_archive_info(rpf: &rage_rpf::Rpf9) -> Meta { + use openrage_app::extract::human_size; + let mut meta = vec![kv("Format", "RPF9 (GTA VI)"), kv("Data", human_size(rpf.data_len()))]; + match rpf.loaded().or_else(|| openrage_app::rpf9::load_index(rpf.path()).map(Arc::new)) { + Some(entries) => { + let c = openrage_app::rpf9::coverage(rpf, &entries); + meta.push(kv("Recovered files", grouped(c.files as usize))); + meta.push(kv("Unpacked", human_size(c.unpacked))); + meta.push(kv("Not read", human_size(c.unread))); + } + None => meta.push(note( + "Not indexed yet: opening it reads the whole archive once, which takes a while for large ones.", + )), + } + meta.push(note( + "The table of contents is encrypted, so names and folders are unknown. Files are found in the data itself \ + and named by their offset; data that is neither zlib, Bink 2 nor an audio container is not listed.", + )); + meta +} + +/// Facts about a recovered file of a GTA VI archive, and the start of it as +/// text or hex. +pub(crate) fn rpf9_preview(rpf: &rage_rpf::Rpf9, i: usize) -> (Meta, String) { + let Some(entries) = rpf.loaded() else { return (Meta::new(), String::new()) }; + let Some(e) = entries.get(i) else { return (Meta::new(), String::new()) }; + let mut meta = vec![ + kv("Offset", format!("0x{:x}", e.offset)), + kv("Stored", openrage_app::extract::human_size(e.stored)), + kv( + "Stored as", + match e.kind { + rage_rpf::rpf9::Kind::Bink2 => "Bink 2 video".to_owned(), + rage_rpf::rpf9::Kind::Awc => "audio container".to_owned(), + rage_rpf::rpf9::Kind::Zlib if e.streams > 1 => format!("{} zlib streams", e.streams), + rage_rpf::rpf9::Kind::Zlib => "zlib stream".to_owned(), + }, + ), + ]; + if e.kind != rage_rpf::rpf9::Kind::Zlib { + return (meta, String::new()); + } + // The start is enough for a look; large files are not unpacked whole. + let mut start = Vec::new(); + let mut limited = LimitedWriter { out: &mut start, left: 1 << 20 }; + match rpf.copy_to(e, &mut limited) { + Ok(_) => {} + Err(_) if limited.left == 0 => meta.push(note("Showing the start; Extract… saves all of it.")), + Err(err) => { + meta.push(kv("Error", err)); + return (meta, String::new()); + } + } + // A start that was cut off ends in the middle of a string. + let whole = start.iter().rposition(|b| *b == 0).map_or(&start[..], |end| &start[..=end]); + let text = crate::docs::zero_ended_strings(whole); + (meta, preview::render(text.as_deref().unwrap_or(&start))) +} + +/// Takes up to `left` bytes, then fails, which ends the unpacking. +struct LimitedWriter<'a> { + out: &'a mut Vec, + left: usize, +} + +impl std::io::Write for LimitedWriter<'_> { + fn write(&mut self, buf: &[u8]) -> std::io::Result { + if self.left == 0 { + return Err(std::io::ErrorKind::WriteZero.into()); + } + let n = buf.len().min(self.left); + self.out.extend_from_slice(&buf[..n]); + self.left -= n; + Ok(n) + } + + fn flush(&mut self) -> std::io::Result<()> { + Ok(()) + } +} + /// Overview of an RDR2 archive (RPF8). pub(crate) fn rpf8_archive_info(rpf: &rage_rpf::Rpf8) -> Meta { let mut meta = vec![kv("Format", "RPF8")]; diff --git a/crates/openrage-gui/src/setup_ui.rs b/crates/openrage-gui/src/setup_ui.rs index f93d451..25c97ea 100644 --- a/crates/openrage-gui/src/setup_ui.rs +++ b/crates/openrage-gui/src/setup_ui.rs @@ -4,7 +4,7 @@ use crate::*; /// The games set up so far that are still installed. pub(crate) fn installed_games(cfg: &Config) -> Vec { - cfg.known_games().into_iter().filter(|d| detect::is_gta5_dir(d) || is_rdr2_dir(d) || is_gta4_dir(d)).collect() + cfg.known_games().into_iter().filter(|d| detect::is_game_dir(d)).collect() } thread_local! { @@ -112,6 +112,8 @@ pub(crate) fn open_game(ui: &AppWindow, index: usize, remember: bool) { register_rdr2(&dir) } else if is_gta4_dir(&dir) { openrage_app::gta4::register(&dir).is_ok() + } else if detect::is_gta6_dir(&dir) { + true } else { with_app(|a| a.keys.is_some()) }; @@ -154,11 +156,15 @@ pub(crate) fn show_setup(ui: &AppWindow, can_cancel: bool) { // A key blob that is gone (moved, or a temporary copy) is not offered again. let magic = a.cfg.magic_path.as_ref().filter(|p| p.is_file()); ui.set_setup_magic_path(magic.map(|p| p.display().to_string()).unwrap_or_default().into()); - ui.set_setup_can_cancel( - can_cancel - && (a.keys.is_some() || rage_rpf::rpf8::has_default_keys() || rage_rpf::gta4::default_key().is_some()) - && a.game_dir.is_some(), - ); + // Closing goes back to a game that is open and readable. + let open = a.game_dir.as_deref().is_some_and(|d| { + detect::is_gta6_dir(d) + || a.keys.is_some() + || rage_rpf::rpf8::has_default_keys() + || rage_rpf::gta4::default_key().is_some() + }); + ui.set_setup_can_cancel(can_cancel && open); + ui.set_setup_has_games(!installed_games(&a.cfg).is_empty()); }); let model: Vec = detected.into_iter().map(Into::into).collect(); ui.set_setup_detected(ModelRc::new(VecModel::from(model))); @@ -173,12 +179,13 @@ pub(crate) fn show_folder_hint(ui: &AppWindow) { let hint = if text.trim().is_empty() { String::new() } else if let Some(name) = detect::game_name(&dir) { - format!("Found {name}. Press Set up to continue.") + if detect::is_gta6_dir(&dir) { + format!("Found {name}. Its archives open without keys, but without file names. Press Open to continue.") + } else { + format!("Found {name}. Press Open to continue.") + } } else if dir.is_dir() { - format!( - "No supported game in {}: the folder must contain GTA5_Enhanced.exe, GTA5.exe, GTAIV.exe or RDR2.exe.", - dir.display() - ) + format!("No supported game in {}. {NO_GAME}", dir.display()) } else { format!("{} does not exist.", dir.display()) }; @@ -195,8 +202,43 @@ pub(crate) fn pick_path(w: Weak, file: bool, title: &'static str, app }); } +/// What a game folder must hold. +const NO_GAME: &str = + "The folder must contain GTA5_Enhanced.exe, GTA5.exe, GTAIV.exe or RDR2.exe, or the archives of GTA VI."; + +/// Leaves a setup that cannot be closed: back to the list of games when there +/// is one, otherwise out of OpenRAGE. +pub(crate) fn leave_setup(ui: &AppWindow) { + if with_app(|a| installed_games(&a.cfg).is_empty()) { + let _ = slint::quit_event_loop(); + } else { + ui.set_setup_visible(false); + ui.invoke_open_game_chooser(false); + } +} + +/// Opens a game that needs no keys. +fn open_without_keys(ui: &AppWindow, game_dir: PathBuf) { + let saved = with_app(|a| { + a.cfg.remember_game(&game_dir); + a.game_dir = Some(game_dir.clone()); + a.cfg.game_dir = Some(game_dir); + a.cfg.save() + }); + ui.set_setup_visible(false); + refresh_games(ui); + start_browsing(ui); + if let Err(e) = saved { + show_error(ui, format!("Could not save the settings: {e}")); + } +} + pub(crate) fn run_setup(ui: &AppWindow) { let game_dir = openrage_app::gta4::normalize_dir(&PathBuf::from(ui.get_setup_game_dir().trim())); + if detect::is_gta6_dir(&game_dir) { + open_without_keys(ui, game_dir); + return; + } if is_gta4_dir(&game_dir) { ui.set_setup_running(true); ui.set_setup_log("Looking for the archive key in GTAIV.exe…".into()); @@ -235,25 +277,11 @@ pub(crate) fn run_setup(ui: &AppWindow) { ); return; } - let saved = with_app(|a| { - a.cfg.remember_game(&game_dir); - a.game_dir = Some(game_dir.clone()); - a.cfg.game_dir = Some(game_dir); - a.cfg.save() - }); - ui.set_setup_visible(false); - refresh_games(ui); - start_browsing(ui); - if let Err(e) = saved { - show_error(ui, format!("Could not save the settings: {e}")); - } + open_without_keys(ui, game_dir); return; } if !detect::is_gta5_dir(&game_dir) { - ui.set_setup_log( - format!("{} does not contain GTA5_Enhanced.exe, GTA5.exe, GTAIV.exe or RDR2.exe.", game_dir.display()) - .into(), - ); + ui.set_setup_log(format!("No supported game in {}. {NO_GAME}", game_dir.display()).into()); return; } // Keys set up before that open this game: no scan, no key blob needed. diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index 17b060d..09c1715 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -1107,6 +1107,8 @@ export component AppWindow inherits Window { in property setup-log; in property setup-running; in property setup-can-cancel; + // Other games are set up: leaving the setup goes back to their list. + in property setup-has-games; callback navigate(string); callback go-back(); @@ -1172,6 +1174,7 @@ export component AppWindow inherits Window { callback setup-browse-magic(); callback setup-pick-detected(string); callback setup-run(); + callback setup-leave(); callback theme-changed(int); // Accent color (View → Accent color): mode 0 style, 1 orange, 2 custom color. callback accent-chosen(int, color); @@ -3653,7 +3656,7 @@ export component AppWindow inherits Window { height: 48px; } Text { - text: @tr("OpenRAGE reads the archive keys from your own copy of GTA V. No keys or game files are included with OpenRAGE."); + text: @tr("Choose the folder of your game. OpenRAGE reads the archive keys from your own copy; no keys or game files are included. GTA VI archives open without keys."); wrap: word-wrap; color: Theme.text-muted; } @@ -3684,7 +3687,7 @@ export component AppWindow inherits Window { text <=> root.setup-game-dir; edited => { root.setup-game-dir-edited(); } accessible-label: @tr("Game directory"); - placeholder-text: @tr("Folder containing GTA5_Enhanced.exe, GTA5.exe, GTAIV.exe or RDR2.exe"); + placeholder-text: @tr("Folder of GTA V, GTA IV, Red Dead Redemption 2 or GTA VI"); } Button { text: @tr("Browse…"); @@ -3736,12 +3739,17 @@ export component AppWindow inherits Window { indeterminate: true; } if root.setup-can-cancel: Button { - text: @tr("Close"); + text: @tr("Cancel"); enabled: !root.setup-running; clicked => { root.setup-visible = false; } } + if !root.setup-can-cancel: Button { + text: root.setup-has-games ? @tr("Back to the games") : @tr("Quit"); + enabled: !root.setup-running; + clicked => { root.setup-leave(); } + } Button { - text: @tr("Derive keys"); + text: @tr("Open"); primary: true; enabled: !root.setup-running && root.setup-game-dir != ""; clicked => { root.setup-run(); } diff --git a/crates/rage-formats/Cargo.toml b/crates/rage-formats/Cargo.toml index a70ff48..18b89a8 100644 --- a/crates/rage-formats/Cargo.toml +++ b/crates/rage-formats/Cargo.toml @@ -12,6 +12,7 @@ png = "0.18" texture2ddecoder = "0.1" symphonia = { version = "0.6", default-features = false, features = ["mp3"] } lewton = { version = "0.10", default-features = false } +opus-rs = "0.1" thiserror.workspace = true flate2.workspace = true texpresso = { version = "2.0.2", features = ["rayon"] } diff --git a/crates/rage-formats/src/awc.rs b/crates/rage-formats/src/awc.rs index c6a78c7..02f3a2a 100644 --- a/crates/rage-formats/src/awc.rs +++ b/crates/rage-formats/src/awc.rs @@ -21,6 +21,12 @@ //! a stream keeps each channel's headers in a chunk (`0x7F`) of a stream //! named after the channel. The data is cut into 2048-byte units of Vorbis //! packets, each with a 16-bit length. +//! +//! GTA VI keeps RDR2's layout with two more optional tables in front of the +//! streams (flags `0x20` and `0x40`) and Opus instead of Vorbis: the same +//! 2048-byte units of packets, always 48 kHz, mono or stereo (channel count +//! at 29 of the format chunk). A format chunk counts samples of all channels +//! together. The encoder's lookahead ([`OPUS_PRE_SKIP`] samples) is not stored. use rage_core::bytes::LeRead; @@ -64,6 +70,7 @@ pub enum Codec { Pcm16, Adpcm, Vorbis, + Opus, Other(u8), } @@ -73,6 +80,7 @@ impl Codec { 0 => Self::Pcm16, 4 => Self::Adpcm, 8 => Self::Vorbis, + 11 => Self::Opus, other => Self::Other(other), } } @@ -82,6 +90,7 @@ impl Codec { Self::Pcm16 => "PCM".into(), Self::Adpcm => "IMA ADPCM".into(), Self::Vorbis => "Vorbis".into(), + Self::Opus => "Opus".into(), Self::Other(c) => format!("codec {c}"), } } @@ -106,6 +115,8 @@ pub struct Sound { pub channel: Option, /// Vorbis: where its three headers are (offset and size in the data). pub headers: Option<(usize, usize)>, + /// Channels of a single sound (GTA VI's Opus sounds can be stereo). + pub channels: u8, } impl Sound { @@ -177,6 +188,32 @@ impl Awc { if flags & 1 != 0 { o += 2 * count; } + // GTA VI: two more tables, if only with them the chunk table ends + // where the header says the data starts. + let extra = if flags & 0x20 != 0 { (count + 1) * 4 } else { 0 } + if flags & 0x40 != 0 { 4 } else { 0 }; + let table_end = |from: usize| -> Option { + let words = data.get(from..from + count * 4)?.as_chunks::<4>().0; + Some(from + count * 4 + words.iter().map(|w| usize::from(w[3] >> 5) * 8).sum::()) + }; + // Whether the chunks of a table that starts at `from` are inside the file. + let fits = |from: usize| -> bool { + let Some(end) = table_end(from) else { return false }; + data.get(from + count * 4..end).is_some_and(|table| { + table.as_chunks::<8>().0.iter().all(|c| { + let v = u64::from_le_bytes(*c); + (v & 0x0FFF_FFFF) + ((v >> 28) & 0x0FFF_FFFF) <= data.len() as u64 + }) + }) + }; + let header_end = u32_at(&data, 12)? as usize; + // The tables' bytes read as stream words can add up to the same end + // by chance: then the chunks decide. + let gta6 = + extra > 0 && table_end(o + extra) == Some(header_end) && (table_end(o) != Some(header_end) || !fits(o)); + if gta6 { + o += extra; + } + let rdr2 = rdr2 || gta6; let mut infos = Vec::with_capacity(count); for _ in 0..count { let v = u32_at(&data, o)?; @@ -248,6 +285,22 @@ impl Awc { if d.len() < 32 { return Err(damaged("short format chunk")); } + let codec = Codec::from_byte(d[28]); + if codec == Codec::Opus { + // Samples of all channels together, always at 48 kHz + // (whatever the rate field says). + let channels = d[29].clamp(1, 2); + self.sounds.push(Sound { + id: *id, + samples: u32_at(d, 0)? / u32::from(channels), + sample_rate: OPUS_RATE, + codec, + channel: None, + headers: None, + channels, + }); + continue; + } let header_size = u16_at(d, 30)? as usize; // Without headers of its own, a Vorbis sound has them in a // headers chunk of the same stream. @@ -260,9 +313,10 @@ impl Awc { id: *id, samples: u32_at(d, 0)?, sample_rate: u16_at(d, 8)? as u32, - codec: Codec::from_byte(d[28]), + codec, channel: None, headers, + channels: 1, }); continue; } @@ -278,6 +332,7 @@ impl Awc { codec: Codec::from_byte(d[19]), channel: None, headers: None, + channels: 1, }); } Ok(()) @@ -311,9 +366,28 @@ impl Awc { codec: Codec::from_byte(*d.get(o + 12).ok_or_else(|| damaged("truncated"))?), channel: Some(c), headers, + channels: 1, }); } self.stream_format = Some(StreamFormat { block_count, block_size, channels }); + // An Opus channel can be stereo, which only its packets say; its + // sample count then counts both sides. + if self.sounds.iter().any(|s| s.codec == Codec::Opus) { + let stereo: Vec = self + .stream_channels_with(24)? + .iter() + .map(|blocks| { + blocks.first().and_then(|(data, ..)| opus_packets(data).next()).map(opus_packet_channels) == Some(2) + }) + .collect(); + for (sound, stereo) in self.sounds.iter_mut().zip(stereo) { + sound.sample_rate = OPUS_RATE; + if stereo { + sound.channels = 2; + sound.samples /= 2; + } + } + } Ok(()) } } @@ -509,6 +583,78 @@ pub fn decode_vorbis(headers: &[u8], data: &[u8]) -> Result, AwcError> Ok(out) } +/// Opus is always decoded at this rate. +pub const OPUS_RATE: u32 = 48_000; +/// Samples the Opus encoder puts in front of a sound (its lookahead). The +/// containers do not store it; this is what GTA VI's sounds measure. +pub const OPUS_PRE_SKIP: usize = 312; + +/// The Opus packets of 2048-byte units: each unit holds packets with a +/// 16-bit length in front; a zero length ends the unit. +fn opus_packets(data: &[u8]) -> impl Iterator { + data.chunks(2048).flat_map(|unit| { + let mut at = 0; + std::iter::from_fn(move || { + let len = usize::from(u16::from_le_bytes([*unit.get(at)?, *unit.get(at + 1)?])); + if len == 0 || at + 2 + len > unit.len() { + return None; + } + at += 2 + len; + Some(&unit[at - len..at]) + }) + }) +} + +/// Channels of an Opus packet (1 or 2), from its first byte. +fn opus_packet_channels(packet: &[u8]) -> usize { + if packet.first().is_some_and(|toc| toc & 4 != 0) { 2 } else { 1 } +} + +/// Samples per channel an Opus packet decodes to at 48 kHz, from its first +/// bytes (RFC 6716, section 3.1); 0 for a packet that is not valid. +fn opus_packet_samples(packet: &[u8]) -> usize { + let Some(&toc) = packet.first() else { return 0 }; + let config = toc >> 3; + let frame = match config { + // SILK: 10, 20, 40, 60 ms. + 0..=11 => [480, 960, 1920, 2880][usize::from(config & 3)], + // Hybrid: 10, 20 ms. + 12..=15 => [480, 960][usize::from(config & 1)], + // CELT: 2.5, 5, 10, 20 ms. + _ => [120, 240, 480, 960][usize::from(config & 3)], + }; + let frames = match toc & 3 { + 0 => 1, + 1 | 2 => 2, + _ => usize::from(packet.get(1).copied().unwrap_or(0) & 0x3F), + }; + frame * frames +} + +/// Decodes Opus packets to interleaved samples of `channels` channels. +fn decode_opus_packets<'a>(packets: impl Iterator, channels: usize) -> Result, AwcError> { + /// The longest an Opus packet can be: 120 ms. + const MAX_FRAME: usize = 5760; + let mut decoder = + opus_rs::OpusDecoder::new(OPUS_RATE as i32, channels).map_err(|e| damaged(format!("Opus decoder: {e}")))?; + let mut frame = vec![0f32; MAX_FRAME * channels]; + let mut out = Vec::new(); + for packet in packets { + let n = decoder.decode(packet, MAX_FRAME, &mut frame).map_err(|e| damaged(format!("Opus packet: {e}")))?; + out.extend(frame[..n * channels].iter().map(|s| (s * 32768.0).round().clamp(-32768.0, 32767.0) as i16)); + } + Ok(out) +} + +/// Decodes a sound stored as Opus: `frames` samples per channel, after the +/// encoder's lookahead. +pub fn decode_opus(data: &[u8], channels: usize, frames: usize) -> Result, AwcError> { + let mut out = decode_opus_packets(opus_packets(data), channels)?; + out.drain(..(OPUS_PRE_SKIP * channels).min(out.len())); + out.truncate(frames * channels); + Ok(out) +} + fn decode_codec(sound: &Sound, all: &[u8], data: &[u8], samples: usize) -> Result, AwcError> { let mut out = match sound.codec { Codec::Pcm16 => data.as_chunks::<2>().0.iter().map(|c| i16::from_le_bytes(*c)).collect(), @@ -517,6 +663,7 @@ fn decode_codec(sound: &Sound, all: &[u8], data: &[u8], samples: usize) -> Resul let (at, len) = sound.headers.ok_or_else(|| damaged("Vorbis sound without headers"))?; decode_vorbis(all.get(at..at + len).ok_or_else(|| damaged("Vorbis headers outside the file"))?, data)? } + Codec::Opus => return decode_opus(data, usize::from(sound.channels.max(1)), samples), Codec::Other(7) => decode_mp3(data)?, Codec::Other(c) => return Err(damaged(format!("unsupported codec {c}"))), }; @@ -538,7 +685,8 @@ impl Awc { let chunk = self.chunk(stream, CHUNK_DATA).ok_or_else(|| damaged("sound without data"))?; let data = &self.data[chunk.offset..chunk.offset + chunk.size]; let samples = decode_codec(sound, &self.data, data, sound.samples as usize)?; - Ok(Pcm { sample_rate: sound.sample_rate, channels: 1, samples }) + let channels = if sound.codec == Codec::Opus { u16::from(sound.channels.max(1)) } else { 1 }; + Ok(Pcm { sample_rate: sound.sample_rate, channels, samples }) } /// The data of each channel of a multi-channel stream: per block the bytes @@ -607,8 +755,45 @@ impl Awc { Ok(channels) } + /// Decodes an Opus stream. Each block repeats the end of the one before + /// (the samples to skip): those packets are left out, and each channel is + /// decoded in one go. A stereo channel becomes two channels of the result. + fn decode_opus_stream(&self) -> Result { + let blocks = self.stream_channels_with(24)?; + let mut decoded: Vec> = Vec::new(); + for (blocks, sound) in blocks.iter().zip(&self.sounds) { + let mut packets = Vec::new(); + for (data, skip, _) in blocks { + let mut skipped = 0; + for packet in opus_packets(data) { + if skipped < *skip { + skipped += opus_packet_samples(packet).max(1); + } else { + packets.push(packet); + } + } + } + let channels = usize::from(sound.channels.max(1)); + let mut pcm = decode_opus_packets(packets.into_iter(), channels)?; + pcm.drain(..(OPUS_PRE_SKIP * channels).min(pcm.len())); + pcm.truncate(sound.samples as usize * channels); + for c in 0..channels { + decoded.push(pcm.iter().skip(c).step_by(channels).copied().collect()); + } + } + let frames = decoded.iter().map(Vec::len).max().unwrap_or(0); + let mut samples = Vec::with_capacity(frames * decoded.len()); + for i in 0..frames { + samples.extend(decoded.iter().map(|ch| ch.get(i).copied().unwrap_or(0))); + } + Ok(Pcm { sample_rate: OPUS_RATE, channels: decoded.len().max(1) as u16, samples }) + } + /// Decodes a multi-channel stream to one interleaved signal. pub fn decode_stream(&self) -> Result { + if self.sounds.first().is_some_and(|s| s.codec == Codec::Opus) { + return self.decode_opus_stream(); + } let channels = self.stream_channels()?; let mut decoded = Vec::with_capacity(channels.len()); for (blocks, sound) in channels.iter().zip(&self.sounds) { @@ -723,6 +908,58 @@ mod tests { assert_eq!(awc.decode_sound(0).unwrap().samples, vec![5, -5, 300]); } + /// GTA VI: the three optional tables in front of the streams, and a + /// stereo Opus sound of two packets without content (silence). + #[test] + fn parses_gta6_opus() { + let mut unit = vec![0u8; 2048]; + // Two packets of one byte: 20 ms of full-band stereo, no data. + unit[..6].copy_from_slice(&[1, 0, 0xFC, 1, 0, 0xFC]); + let mut out = Vec::new(); + out.extend_from_slice(&MAGIC.to_le_bytes()); + out.extend_from_slice(&1u16.to_le_bytes()); + out.extend_from_slice(&0xFF61u16.to_le_bytes()); + out.extend_from_slice(&1u32.to_le_bytes()); + let tables = 2 + 8 + 4; + let format_at = 16 + tables + 4 + 16; + out.extend_from_slice(&(format_at as u32).to_le_bytes()); + out.extend_from_slice(&[0xEE; 14]); + out.extend_from_slice(&(0x1234u32 | (2 << 29)).to_le_bytes()); + let chunk = + |kind: u8, size: usize, offset: usize| ((kind as u64) << 56) | ((size as u64) << 28) | offset as u64; + out.extend_from_slice(&chunk(CHUNK_FORMAT_RDR2, 32, format_at).to_le_bytes()); + out.extend_from_slice(&chunk(CHUNK_DATA, unit.len(), format_at + 32).to_le_bytes()); + let frames = 2 * 960 - OPUS_PRE_SKIP as u32; + let mut format = vec![0u8; 32]; + format[0..4].copy_from_slice(&(frames * 2).to_le_bytes()); + format[8..10].copy_from_slice(&32000u16.to_le_bytes()); + format[28] = 11; + format[29] = 2; + out.extend_from_slice(&format); + out.extend_from_slice(&unit); + + let awc = Awc::parse(out, None).unwrap(); + let sound = &awc.sounds[0]; + assert_eq!((sound.codec, sound.channels, sound.samples, sound.sample_rate), (Codec::Opus, 2, frames, 48000)); + let pcm = awc.decode_sound(0).unwrap(); + assert_eq!((pcm.channels, pcm.sample_rate, pcm.samples.len()), (2, 48000, frames as usize * 2)); + assert!(pcm.samples.iter().all(|s| *s == 0)); + } + + #[test] + fn opus_packet_lengths() { + // CELT 20 ms, one frame; SILK 60 ms, two frames; hybrid 10 ms, three frames, stereo. + assert_eq!(opus_packet_samples(&[0xF8]), 960); + assert_eq!(opus_packet_samples(&[(3 << 3) | 1, 0]), 2 * 2880); + assert_eq!(opus_packet_samples(&[(12 << 3) | 4 | 3, 3]), 3 * 480); + assert_eq!(opus_packet_channels(&[(12 << 3) | 4 | 3, 3]), 2); + assert_eq!(opus_packet_samples(&[]), 0); + let mut units = vec![0u8; 4096]; + units[..5].copy_from_slice(&[3, 0, 1, 2, 3]); + units[2048..2052].copy_from_slice(&[2, 0, 9, 9]); + assert_eq!(opus_packets(&units).collect::>(), [&[1u8, 2, 3][..], &[9, 9]]); + } + #[test] fn vorbis_header_packets() { let mut d = Vec::new(); diff --git a/crates/rage-formats/src/bcpack/mod.rs b/crates/rage-formats/src/bcpack/mod.rs new file mode 100644 index 0000000..1b3b84f --- /dev/null +++ b/crates/rage-formats/src/bcpack/mod.rs @@ -0,0 +1,594 @@ +//! BCPack: the packing of block-compressed textures on the Xbox Series +//! consoles (GTA VI's texture pools use it for about a tenth of their data). +//! +//! BCPack does not replace the block formats: it takes the fields of each +//! BC1 to BC7 block apart, predicts them from earlier blocks and codes what +//! is left with an entropy coder. Unpacking gives ordinary blocks again. +//! +//! - The entropy layer: 12 or 16 *lanes*, each a stream of symbols of a few +//! bits, coded with rANS (16-bit probabilities, bytes fed in as the state +//! runs low). The lanes' bytes are interleaved the way the hardware reads +//! them: at most eight bytes per cycle, handed to the lanes that need one +//! in lane order. A lane's stream comes in pieces, each with a header +//! (quality of the frequency model, symbol width, byte count). +//! - Per block format, a rule that turns one symbol per lane back into a +//! block: endpoints as differences to an earlier block (up to 255 back; a +//! reference before the first block reads a built-in history), indices +//! through rank tables. +//! +//! Read: BC1, BC3, BC4 and BC5. Not read: BC6H and BC7. Not every entry of +//! the built-in histories is known; a chunk that needs an unknown one is not +//! unpacked (BC3 and BC5 tolerate a few such blocks, which then start from +//! the format's neutral endpoints). +//! +//! This follows `tools/bcpack.py` of the Leonida project (GPL-3.0), a +//! clean-room description of the bitstream (`docs/textures.md` there); its +//! entropy layer is a port of the decoder in Microsoft's silicon-rans (MIT). + +mod tables; + +#[derive(Debug, thiserror::Error, PartialEq, Eq)] +#[non_exhaustive] +pub enum BcpackError { + #[error("damaged BCPack data: {0}")] + Damaged(String), + #[error("BCPack mode {0} is not read yet")] + Mode(u8), + #[error("the BCPack data refers to an unknown built-in history entry ({0})")] + History(usize), +} + +fn damaged(msg: impl Into) -> BcpackError { + BcpackError::Damaged(msg.into()) +} + +/// The state a lane's piece ends at, and below which a byte is fed in. +const LOW: u64 = 1 << 24; +const MAX_WIDTH: usize = 10; +/// Bytes handed out per cycle. +const BYTES_PER_CYCLE: usize = 8; +const MAX_VIRTUAL_ZEROS: u8 = 8; + +/// Widths of the lanes' symbols, in stream order. +fn lane_widths(mode: u8) -> Option<&'static [u8]> { + Some(match mode { + 1 => &[8, 8, 5, 6, 5, 5, 6, 5, 8, 8, 8, 8], + 3 => &[4, 4, 8, 6, 6, 6, 6, 5, 6, 5, 8, 8], + 4 => &[8, 8, 8, 8, 6, 6, 6, 6, 6, 6, 6, 6], + 5 => &[4, 4, 8, 8, 6, 6, 6, 6, 6, 6, 6, 6], + _ => return None, + }) +} + +/// Whether [`unpack`] reads this mode (the codec number of a pool's chunk). +pub fn reads_mode(mode: u8) -> bool { + lane_widths(mode).is_some() +} + +/// A frequency model: for each band its weight per symbol and where the +/// band starts in the 16-bit range. +struct Model { + width: usize, + freq: &'static [u16], + base: [u32; MAX_WIDTH + 1], +} + +impl Model { + fn get(width: usize, quality: usize) -> Option { + let freq = *tables::MODELS.get(width.checked_sub(1)?)?.get(quality)?; + if freq.len() != width + 1 { + return None; + } + let mut base = [0u32; MAX_WIDTH + 1]; + let mut total = 0u32; + for (band, f) in freq.iter().enumerate() { + base[band] = total; + total += u32::from(*f) * if band == 0 { 1 } else { 1 << (band - 1) }; + } + (total == 65536).then_some(Model { width, freq, base }) + } + + /// The symbol whose range holds `low` (the state's low 16 bits). + fn lookup(&self, low: u32) -> u32 { + let mut band = self.width; + while band > 0 && low < self.base[band] { + band -= 1; + } + if band == 0 { 0 } else { (1 << (band - 1)) + (low - self.base[band]) / u32::from(self.freq[band]) } + } + + /// The state after taking symbol `s` out of state `x`. + fn advance(&self, s: u32, x: u64) -> u64 { + let band = (u32::BITS - s.leading_zeros()) as usize; + let mut f = u64::from(self.freq[band]); + let mut c = u64::from(self.base[band]) + f * u64::from(s - if band == 0 { 0 } else { 1 << (band - 1) }); + if c == 0 { + (f, c) = (f - 1, 1); + } + (f * (x >> 16) + (x & 0xFFFF)).wrapping_sub(c) + } +} + +#[derive(Clone, Copy, PartialEq, Eq)] +enum Step { + /// The three header bytes of a piece, then its symbols. + Header0, + Header1, + Header2, + Symbols, +} + +/// One lane of the entropy decoder. The fields mirror the registers of the +/// hardware decoder this is modelled on. +struct Lane { + step: Step, + /// Symbols still to come. + left: usize, + width: usize, + quality: usize, + long: bool, + flush: bool, + done: bool, + /// A byte is waiting in `byte`. + full: bool, + /// A symbol is decoded and waits to be released. + held: bool, + zeros: u8, + byte: u8, + symbol: u32, + bytes_left: u32, + state_in: u64, + state: u64, + model: Option, + slot: Option, + stalled: bool, + out: Vec, +} + +/// The entropy layer: `count` symbols for each lane. +fn decode_lanes(raw: &[u8], widths: &[u8], count: usize) -> Result>, BcpackError> { + let mut lanes: Vec = widths + .iter() + .map(|_| Lane { + step: Step::Header0, + left: count, + width: 0, + quality: 0, + long: false, + flush: false, + done: count == 0, + full: false, + held: false, + zeros: 0, + byte: 0, + symbol: 0, + bytes_left: 0, + state_in: 0, + state: 0, + model: None, + slot: None, + stalled: false, + out: Vec::with_capacity(count), + }) + .collect(); + let mut pos = 0; + let home = || damaged("a piece of a lane does not end at its home state"); + loop { + if lanes.iter().all(|l| l.done && l.slot.is_none()) { + break; + } + // The state moves on, bytes are handed out (eight per cycle, in lane + // order) and decoded symbols move to their slots. + let mut budget = BYTES_PER_CYCLE; + for l in &mut lanes { + if l.done || (l.held && l.slot.is_some()) { + l.stalled = true; + continue; + } + l.stalled = false; + if l.step == Step::Symbols { + l.state_in = match (&l.model, l.held) { + (Some(model), true) => model.advance(l.symbol, l.state), + _ => l.state, + }; + } + if !l.full && (l.step != Step::Symbols || l.bytes_left > 0) { + if budget == 0 { + l.stalled = true; + continue; + } + l.byte = *raw.get(pos).ok_or_else(|| damaged("the data ends too early"))?; + pos += 1; + l.full = true; + budget -= 1; + } + if l.held { + l.slot = Some(l.symbol); + l.held = false; + } + } + + // Headers are read, bytes merged into the states, symbols looked up. + for (i, l) in lanes.iter_mut().enumerate() { + if l.done || l.stalled { + continue; + } + match l.step { + Step::Header0 => { + if !l.full { + continue; + } + let h = l.byte; + l.quality = usize::from(h & 15); + l.flush = h >> 4 & 1 != 0; + l.long = h >> 5 & 1 != 0; + l.width = usize::from(widths[i]).wrapping_sub(usize::from(h >> 6)); + l.full = false; + l.step = Step::Header1; + l.zeros = 0; + } + Step::Header1 => { + if !l.full { + continue; + } + l.full = false; + if !(1..=MAX_WIDTH).contains(&l.width) { + return Err(damaged("a symbol width out of range")); + } + l.model = Some( + Model::get(l.width, l.quality) + .ok_or_else(|| damaged("no frequency model for a lane's width and quality"))?, + ); + if l.long { + l.bytes_left = u32::from(l.byte); + l.step = Step::Header2; + } else { + l.bytes_left = u32::from(l.byte) + 1; + l.step = Step::Symbols; + } + } + Step::Header2 => { + if !l.full { + continue; + } + l.bytes_left = (u32::from(l.byte) << 8 | (l.bytes_left & 0xFF)) + 257; + l.step = Step::Symbols; + l.full = false; + } + Step::Symbols => { + let mut st = l.state_in; + let pad = |st: &mut u64, zeros: &mut u8| { + while *st < LOW && *st != 0 && *zeros < MAX_VIRTUAL_ZEROS { + *st <<= 8; + *zeros += 1; + } + }; + if st < LOW { + if l.bytes_left > 0 { + if l.full { + st = st << 8 | u64::from(l.byte); + l.bytes_left -= 1; + l.full = false; + if l.bytes_left == 0 && l.flush { + pad(&mut st, &mut l.zeros); + } + } + } else if l.flush { + if st == 0 || l.zeros >= MAX_VIRTUAL_ZEROS { + return Err(home()); + } + pad(&mut st, &mut l.zeros); + } else { + l.state = st; + if l.left > 0 { + l.step = Step::Header0; + } else { + l.done = true; + } + continue; + } + } + let next = st > LOW && l.left > 0; + if next { + let Some(model) = &l.model else { return Err(damaged("symbols without a model")) }; + l.symbol = model.lookup((st & 0xFFFF) as u32); + l.left -= 1; + if l.symbol >> l.width != 0 { + return Err(damaged("a symbol outside its width")); + } + } + l.held = next; + l.state = st; + if l.bytes_left == 0 { + if l.flush { + if st == LOW { + if l.left > 0 { + l.step = Step::Header0; + l.state_in = 0; + l.state = 0; + } else { + l.done = true; + } + } else if st > LOW && !next { + return Err(home()); + } + } else if l.left == 0 && !next { + l.done = true; + } + } else if st == LOW || (l.left == 0 && !next && st > LOW) { + return Err(home()); + } + } + } + } + + // One symbol per lane is released when every lane has one. + let ready = lanes.iter().all(|l| l.slot.is_some() || (l.done && !l.held)); + if ready && lanes.iter().any(|l| l.slot.is_some()) { + for l in &mut lanes { + if let Some(symbol) = l.slot.take() { + l.out.push(symbol); + } + } + } + for l in &mut lanes { + if l.done && l.held && l.slot.is_none() { + l.slot = Some(l.symbol); + l.held = false; + } + } + } + if raw[pos..].iter().any(|b| *b != 0) { + return Err(damaged("data is left over after the last lane")); + } + if lanes.iter().any(|l| l.out.len() != count) { + return Err(damaged("a lane ends before its last symbol")); + } + Ok(lanes.into_iter().map(|l| l.out).collect()) +} + +/// A difference stored without a sign: 0, -1, 1, -2, 2, … +fn unzig(v: u32) -> i32 { + if v & 1 != 0 { -(((v + 1) >> 1) as i32) } else { (v >> 1) as i32 } +} + +/// The bits of two 4-bit symbols, taken in turn. +fn interleave(a: u32, b: u32) -> u32 { + (0..4).fold(0, |d, k| d | (a >> k & 1) << (2 * k) | (b >> k & 1) << (2 * k + 1)) +} + +fn known(table: &[(u8, [u8; N])], entry: usize) -> Option<[i32; N]> { + let i = table.binary_search_by_key(&entry, |(k, _)| usize::from(*k)).ok()?; + Some(table[i].1.map(i32::from)) +} + +/// How many blocks of a chunk may start from an unknown history entry. +fn tolerated(blocks: usize) -> usize { + (blocks / 1024).max(2) +} + +/// A table symbol; a symbol the table does not have is damage. +fn ranked(table: &[T], symbol: u32) -> Result { + table.get(symbol as usize).copied().ok_or_else(|| damaged("an index symbol outside its table")) +} + +/// Four rows of 3-bit indices (48 bits) from two symbols per row. +fn index_rows(pairs: &[(u8, u8)], row: impl Fn(usize) -> (u32, u32)) -> Result<[u8; 6], BcpackError> { + let mut bits = 0u64; + for r in 0..4 { + let (left, right) = row(r); + let (left, right) = (ranked(pairs, left)?, ranked(pairs, right)?); + let twelve = u64::from(left.0) | u64::from(left.1) << 3 | u64::from(right.0) << 6 | u64::from(right.1) << 9; + bits |= twelve << (12 * r); + } + let mut out = [0u8; 6]; + out.copy_from_slice(&bits.to_le_bytes()[..6]); + Ok(out) +} + +/// The four index bytes of a colour block from four quadrant bytes (each +/// holds the 2-bit indices of the pixels top left, top right, bottom left, +/// bottom right of a quadrant). +fn colour_indices(a: u8, b: u8, c: u8, d: u8) -> [u8; 4] { + [(a & 15) | (b & 15) << 4, (a >> 4) | (b >> 4) << 4, (c & 15) | (d & 15) << 4, (c >> 4) | (d >> 4) << 4] +} + +fn colours(e: &[i32]) -> [u8; 4] { + let (c0, c1) = ((e[0] << 11 | e[1] << 5 | e[2]) as u16, (e[3] << 11 | e[4] << 5 | e[5]) as u16); + let (a, b) = (c0.to_le_bytes(), c1.to_le_bytes()); + [a[0], a[1], b[0], b[1]] +} + +/// The distance back to the block a block's endpoints build on, for the +/// formats with one symbol per block. +fn distance(v: u32) -> usize { + (if v & 1 != 0 { 256 - ((v + 1) >> 1) } else { v >> 1 }) as usize +} + +fn bc1(lanes: &[Vec], blocks: usize) -> Result, BcpackError> { + const MODS: [i32; 6] = [32, 64, 32, 32, 64, 32]; + let mut out = Vec::with_capacity(blocks * 8); + let mut history: Vec<[i32; 6]> = Vec::with_capacity(blocks); + for i in 0..blocks { + let d = distance(lanes[0][i]); + let base = match d { + 0 => [0; 6], + d if d <= i => history[i - d], + d => known(&tables::BC1_HISTORY, 256 + i - d).ok_or(BcpackError::History(256 + i - d))?, + }; + let e: [i32; 6] = std::array::from_fn(|k| (base[k] + unzig(lanes[2 + k][i])).rem_euclid(MODS[k])); + history.push(e); + let quadrant = |lane: usize| ranked(&tables::BC1_QUADRANT, lanes[lane][i]); + out.extend_from_slice(&colours(&e)); + out.extend_from_slice(&colour_indices(quadrant(8)?, quadrant(9)?, quadrant(10)?, quadrant(11)?)); + } + Ok(out) +} + +fn bc4(lanes: &[Vec], blocks: usize) -> Result, BcpackError> { + let mut out = Vec::with_capacity(blocks * 8); + let mut history: Vec<[i32; 2]> = Vec::with_capacity(blocks); + for i in 0..blocks { + let d = distance(lanes[0][i]); + let base = match d { + 0 => [128; 2], + d if d <= i => history[i - d], + d => known(&tables::BC4_HISTORY, 256 + i - d).ok_or(BcpackError::History(256 + i - d))?, + }; + let e = [(base[0] + unzig(lanes[2][i])) & 255, (base[1] + unzig(lanes[3][i])) & 255]; + history.push(e); + out.extend_from_slice(&[e[0] as u8, e[1] as u8]); + out.extend_from_slice(&index_rows(&tables::BC4_PAIR, |r| (lanes[4 + 2 * r][i], lanes[5 + 2 * r][i]))?); + } + Ok(out) +} + +/// Where a block of the two-symbol formats starts from: an earlier block, +/// a built-in entry, or (for a few blocks) the neutral endpoints. +fn base_of( + table: &[(u8, [u8; N])], + neutral: [i32; N], + history: &[[i32; N]], + lost: &mut Vec, + i: usize, + d: usize, +) -> [i32; N] { + match d { + 0 => { + lost.push(false); + neutral + } + d if d <= i => { + lost.push(lost[i - d]); + history[i - d] + } + d => { + let entry = known(table, 256 + i - d); + lost.push(entry.is_none()); + entry.unwrap_or(neutral) + } + } +} + +fn check_lost(lost: &[bool]) -> Result<(), BcpackError> { + let count = lost.iter().filter(|l| **l).count(); + if count > tolerated(lost.len()) { Err(BcpackError::History(count)) } else { Ok(()) } +} + +fn bc3(lanes: &[Vec], blocks: usize) -> Result, BcpackError> { + const MODS: [i32; 8] = [256, 256, 32, 64, 32, 32, 64, 32]; + const NEUTRAL: [i32; 8] = [128, 128, 0, 0, 0, 0, 0, 0]; + let mut out = Vec::with_capacity(blocks * 16); + let mut history: Vec<[i32; 8]> = Vec::with_capacity(blocks); + let mut lost = Vec::with_capacity(blocks); + for i in 0..blocks { + let (a, b) = (2 * i, 2 * i + 1); + let d = (unzig(interleave(lanes[0][a], lanes[0][b])) & 255) as usize; + let base = base_of(&tables::BC3_HISTORY, NEUTRAL, &history, &mut lost, i, d); + let diffs = + [lanes[2][a], lanes[2][b], lanes[7][a], lanes[8][a], lanes[9][a], lanes[7][b], lanes[8][b], lanes[9][b]]; + let e: [i32; 8] = std::array::from_fn(|k| (base[k] + unzig(diffs[k])).rem_euclid(MODS[k])); + history.push(e); + out.extend_from_slice(&[e[0] as u8, e[1] as u8]); + out.extend_from_slice(&index_rows(&tables::BC3_ALPHA_PAIR, |r| (lanes[3 + r][a], lanes[3 + r][b]))?); + out.extend_from_slice(&colours(&e[2..])); + let quadrant = |lane: usize, at: usize| ranked(&tables::BC3_COLOUR_QUADRANT, lanes[lane][at]); + out.extend_from_slice(&colour_indices(quadrant(10, a)?, quadrant(10, b)?, quadrant(11, a)?, quadrant(11, b)?)); + } + check_lost(&lost)?; + Ok(out) +} + +fn bc5(lanes: &[Vec], blocks: usize) -> Result, BcpackError> { + let mut out = Vec::with_capacity(blocks * 16); + let mut history: Vec<[i32; 4]> = Vec::with_capacity(blocks); + let mut lost = Vec::with_capacity(blocks); + for i in 0..blocks { + let (a, b) = (2 * i, 2 * i + 1); + let d = (unzig(interleave(lanes[0][a], lanes[0][b])) & 255) as usize; + let base = base_of(&tables::BC5_HISTORY, [128; 4], &history, &mut lost, i, d); + let diffs = [lanes[2][a], lanes[2][b], lanes[3][a], lanes[3][b]]; + let e: [i32; 4] = std::array::from_fn(|k| (base[k] + unzig(diffs[k])) & 255); + history.push(e); + for channel in 0..2 { + out.extend_from_slice(&[e[2 * channel] as u8, e[2 * channel + 1] as u8]); + let rows = |r: usize| (lanes[4 + 4 * channel + r][a], lanes[4 + 4 * channel + r][b]); + out.extend_from_slice(&index_rows(&tables::BC5_PAIR, rows)?); + } + } + check_lost(&lost)?; + Ok(out) +} + +/// Unpacks a chunk to `size` bytes of blocks. `mode` is the block format: +/// 1 BC1, 3 BC3, 4 BC4, 5 BC5. +pub fn unpack(raw: &[u8], mode: u8, size: usize) -> Result, BcpackError> { + let widths = lane_widths(mode).ok_or(BcpackError::Mode(mode))?; + let block = if matches!(mode, 1 | 4) { 8 } else { 16 }; + if !size.is_multiple_of(block) { + return Err(damaged("the unpacked size is not whole blocks")); + } + // Every lane gives one symbol per eight bytes of blocks. + let lanes = decode_lanes(raw, widths, size / 8)?; + if lanes[1].iter().any(|s| *s != 0) { + return Err(damaged("the second lane is not empty")); + } + let blocks = size / block; + match mode { + 1 => bc1(&lanes, blocks), + 3 => bc3(&lanes, blocks), + 4 => bc4(&lanes, blocks), + _ => bc5(&lanes, blocks), + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn frequency_models_fill_their_range() { + let mut models = 0; + for width in 1..=MAX_WIDTH { + for quality in 0..16 { + if tables::MODELS[width - 1][quality].is_empty() { + continue; + } + let model = Model::get(width, quality).expect("a model that sums to 65536"); + models += 1; + // Every symbol is found again from the start of its range. + for s in 0..1u32 << width { + let band = (u32::BITS - s.leading_zeros()) as usize; + if model.freq[band] == 0 { + continue; + } + let start = model.base[band] + + u32::from(model.freq[band]) * (s - if band == 0 { 0 } else { 1 << (band - 1) }); + assert_eq!(model.lookup(start), s, "width {width}, quality {quality}"); + } + } + } + assert_eq!(models, 160); + } + + #[test] + fn small_helpers() { + assert_eq!([0, 1, 2, 3, 4].map(unzig), [0, -1, 1, -2, 2]); + assert_eq!([0, 1, 2, 3, 255].map(distance), [0, 255, 1, 254, 128]); + assert_eq!(interleave(0b1111, 0), 0b0101_0101); + assert_eq!(interleave(0, 0b1001), 0b1000_0010); + assert_eq!(colour_indices(0x1B, 0, 0, 0xE4), [0x0B, 0x01, 0x40, 0xE0]); + assert_eq!(known(&tables::BC1_HISTORY, 255), Some([0, 0, 1, 0, 0, 0])); + assert_eq!(known(&tables::BC4_HISTORY, 0), None); + assert_eq!((tolerated(100), tolerated(4096)), (2, 4)); + } + + #[test] + fn rejects_what_is_not_bcpack() { + assert_eq!(unpack(&[], 7, 16), Err(BcpackError::Mode(7))); + assert!(matches!(unpack(&[], 1, 12), Err(BcpackError::Damaged(_)))); + assert!(matches!(unpack(&[0xFF; 4], 1, 8), Err(BcpackError::Damaged(_)))); + assert_eq!(unpack(&[], 1, 0), Ok(Vec::new())); + assert!(reads_mode(5) && !reads_mode(6) && !reads_mode(0) && !reads_mode(8)); + } +} diff --git a/crates/rage-formats/src/bcpack/tables.rs b/crates/rage-formats/src/bcpack/tables.rs new file mode 100644 index 0000000..07770e6 --- /dev/null +++ b/crates/rage-formats/src/bcpack/tables.rs @@ -0,0 +1,1125 @@ +//! Constants of the BCPack codec: the frequency models of its entropy coder, +//! the rank tables of its index symbols and the known entries of its built-in +//! endpoint histories. +//! +//! Generated from `tools/bcpack_tables.py` of the Leonida project (GPL-3.0), +//! which recovered them from public specifications and by fitting. The +//! frequency models are those of Microsoft's silicon-rans (MIT, see `NOTICE.md`). + +/// Frequency models by symbol width (1 to 10) and quality (0 to 15): the +/// weight of each band of symbols (band 0 is symbol 0, band `p` the symbols +/// from `2^(p-1)` below `2^p`). Empty where no model is known. +pub(super) const MODELS: [[&[u16]; 16]; 10] = [ + [ + &[32768, 32768], + &[38761, 26775], + &[44484, 21052], + &[49818, 15718], + &[54623, 10913], + &[58721, 6815], + &[61911, 3625], + &[64036, 1500], + &[65121, 415], + &[65477, 59], + &[65534, 2], + &[65535, 1], + &[65535, 1], + &[65535, 1], + &[65535, 1], + &[65535, 1], + ], + [ + &[16384, 16384, 16384], + &[21168, 17592, 13388], + &[26354, 18130, 10526], + &[31900, 17918, 7859], + &[37750, 16874, 5456], + &[43800, 14920, 3408], + &[49850, 12062, 1812], + &[55537, 8499, 750], + &[60308, 4812, 208], + &[63575, 1901, 30], + &[65132, 402, 1], + &[65511, 23, 1], + &[65533, 1, 1], + &[65533, 1, 1], + &[65533, 1, 1], + &[65533, 1, 1], + ], + [ + &[8192, 8192, 8192, 8192], + &[11073, 10095, 8796, 6694], + &[14406, 11948, 9065, 5263], + &[18234, 13666, 8958, 3930], + &[22624, 15126, 8437, 2728], + &[27657, 16143, 7460, 1704], + &[33414, 16436, 6031, 906], + &[39920, 15616, 4250, 375], + &[47024, 13284, 2406, 104], + &[54201, 9375, 950, 15], + &[60388, 4744, 200, 1], + &[64250, 1262, 10, 1], + &[65456, 74, 1, 1], + &[65529, 1, 1, 1], + &[65529, 1, 1, 1], + &[65529, 1, 1, 1], + ], + [ + &[4096, 4096, 4096, 4096, 4096], + &[5665, 5407, 5048, 4398, 3347], + &[7539, 6867, 5973, 4532, 2632], + &[9773, 8461, 6833, 4479, 1965], + &[12447, 10177, 7564, 4218, 1364], + &[15679, 11977, 8072, 3730, 852], + &[19640, 13774, 8217, 3016, 453], + &[24559, 15361, 7808, 2124, 188], + &[30704, 16320, 6642, 1203, 52], + &[38280, 15920, 4688, 476, 7], + &[47169, 13219, 2372, 99, 1], + &[56354, 7896, 631, 4, 1], + &[63248, 2208, 34, 1, 1], + &[65465, 57, 1, 1, 1], + &[65521, 1, 1, 1, 1], + &[65521, 1, 1, 1, 1], + ], + [ + &[2048, 2048, 2048, 2048, 2048, 2048], + &[2865, 2799, 2704, 2524, 2200, 1673], + &[3858, 3682, 3434, 2986, 2266, 1316], + &[5063, 4709, 4230, 3418, 2240, 982], + &[6536, 5912, 5088, 3782, 2109, 682], + &[8366, 7314, 5988, 4036, 1865, 426], + &[10688, 8952, 6888, 4108, 1507, 227], + &[13713, 10847, 7680, 3904, 1062, 94], + &[17758, 12946, 8160, 3320, 602, 26], + &[23272, 15008, 7960, 2344, 237, 4], + &[30841, 16327, 6610, 1187, 48, 1], + &[41006, 15348, 3947, 316, 1, 1], + &[53291, 9957, 1104, 14, 1, 1], + &[63380, 2084, 22, 1, 1, 1], + &[65505, 1, 1, 1, 1, 1], + &[65505, 1, 1, 1, 1, 1], + ], + [ + &[1024, 1024, 1024, 1024, 1024, 1024, 1024], + &[1441, 1423, 1400, 1352, 1262, 1099, 837], + &[1951, 1907, 1841, 1717, 1493, 1133, 658], + &[2577, 2487, 2354, 2115, 1709, 1120, 491], + &[3350, 3186, 2956, 2544, 1890, 1055, 341], + &[4324, 4042, 3657, 2994, 2019, 932, 213], + &[5581, 5107, 4476, 3444, 2055, 754, 113], + &[7258, 6454, 5424, 3840, 1952, 531, 47], + &[9579, 8179, 6473, 4080, 1660, 301, 13], + &[12907, 10365, 7504, 3980, 1171, 119, 2], + &[17852, 12988, 8164, 3304, 594, 23, 1], + &[25441, 15565, 7673, 1974, 155, 1, 1], + &[37208, 16084, 4978, 552, 4, 1, 1], + &[53649, 9731, 1042, 4, 1, 1, 1], + &[65147, 327, 1, 1, 1, 1, 1], + &[65473, 1, 1, 1, 1, 1, 1], + ], + [ + &[512, 512, 512, 512, 512, 512, 512, 512], + &[722, 718, 712, 700, 676, 632, 550, 418], + &[981, 971, 952, 920, 858, 748, 566, 329], + &[1300, 1276, 1244, 1178, 1058, 854, 559, 246], + &[1696, 1654, 1593, 1478, 1272, 946, 526, 171], + &[2198, 2126, 2022, 1828, 1498, 1009, 467, 106], + &[2852, 2728, 2554, 2238, 1721, 1028, 376, 57], + &[3736, 3522, 3227, 2712, 1920, 977, 266, 23], + &[4979, 4601, 4090, 3236, 2040, 831, 151, 6], + &[6807, 6101, 5182, 3752, 1991, 586, 59, 1], + &[9634, 8218, 6494, 4082, 1652, 296, 11, 1], + &[14275, 11165, 7784, 3836, 988, 74, 1, 1], + &[22449, 14759, 8042, 2489, 272, 1, 1, 1], + &[37625, 16023, 4866, 509, 1, 1, 1, 1], + &[60485, 4663, 132, 1, 1, 1, 1, 1], + &[65409, 1, 1, 1, 1, 1, 1, 1], + ], + [ + &[256, 256, 256, 256, 256, 256, 256, 256, 256], + &[362, 360, 359, 356, 350, 338, 316, 275, 209], + &[492, 488, 486, 476, 460, 429, 374, 284, 164], + &[653, 647, 638, 622, 589, 529, 426, 280, 123], + &[853, 843, 828, 796, 739, 636, 473, 264, 85], + &[1108, 1090, 1063, 1011, 914, 748, 504, 234, 53], + &[1442, 1410, 1364, 1277, 1120, 860, 514, 189, 28], + &[1895, 1841, 1760, 1614, 1356, 961, 488, 132, 12], + &[2538, 2442, 2300, 2045, 1618, 1021, 414, 76, 3], + &[3497, 3311, 3050, 2591, 1875, 996, 292, 29, 1], + &[5008, 4626, 4109, 3247, 2041, 826, 149, 4, 1], + &[7575, 6701, 5582, 3892, 1918, 494, 34, 1, 1], + &[12397, 10051, 7380, 4020, 1245, 129, 1, 1, 1], + &[22767, 14857, 8012, 2432, 240, 1, 1, 1, 1], + &[47343, 13141, 2332, 35, 1, 1, 1, 1, 1], + &[65281, 1, 1, 1, 1, 1, 1, 1, 1], + ], + [ + &[128, 128, 128, 128, 128, 128, 128, 128, 128, 128], + &[181, 181, 179, 180, 178, 175, 169, 157, 137, 105], + &[246, 246, 244, 243, 238, 231, 214, 187, 142, 82], + &[327, 325, 324, 319, 310, 294, 265, 213, 141, 61], + &[428, 424, 422, 414, 397, 370, 319, 236, 131, 43], + &[557, 551, 546, 530, 506, 457, 374, 252, 116, 27], + &[725, 717, 705, 683, 638, 560, 430, 256, 95, 14], + &[955, 941, 920, 880, 807, 677, 481, 244, 66, 6], + &[1282, 1256, 1219, 1150, 1023, 810, 510, 207, 37, 2], + &[1772, 1724, 1656, 1524, 1295, 938, 498, 147, 13, 1], + &[2554, 2454, 2312, 2054, 1625, 1020, 414, 74, 1, 1], + &[3904, 3672, 3350, 2791, 1946, 959, 247, 14, 1, 1], + &[6523, 5873, 5026, 3690, 2011, 621, 58, 1, 1, 1], + &[12593, 10175, 7428, 4006, 1216, 105, 1, 1, 1, 1], + &[31009, 16335, 6572, 1136, 1, 1, 1, 1, 1, 1], + &[65025, 1, 1, 1, 1, 1, 1, 1, 1, 1], + ], + [ + &[64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64], + &[91, 89, 90, 90, 90, 90, 88, 85, 79, 69, 52], + &[123, 123, 123, 123, 121, 120, 115, 108, 93, 71, 41], + &[164, 164, 162, 161, 160, 155, 148, 131, 108, 69, 31], + &[214, 214, 212, 211, 206, 199, 184, 160, 117, 67, 21], + &[279, 277, 276, 273, 265, 252, 229, 187, 126, 59, 13], + &[364, 360, 358, 352, 342, 319, 280, 215, 129, 47, 7], + &[479, 477, 470, 460, 441, 404, 339, 240, 122, 33, 3], + &[644, 638, 627, 610, 576, 511, 405, 254, 105, 18, 1], + &[892, 880, 862, 828, 763, 647, 469, 248, 73, 6, 1], + &[1290, 1264, 1227, 1156, 1028, 812, 510, 207, 34, 1, 1], + &[1982, 1922, 1836, 1674, 1396, 972, 481, 123, 4, 1, 1], + &[3347, 3177, 2936, 2513, 1846, 1004, 311, 22, 1, 1, 1], + &[6632, 5962, 5087, 3714, 2003, 609, 37, 1, 1, 1, 1], + &[17963, 13041, 8168, 3285, 506, 1, 1, 1, 1, 1, 1], + &[64513, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], + ], +]; + +/// BC1 index symbols: the four 2-bit indices of a 2×2 quadrant. +pub(super) const BC1_QUADRANT: [u8; 256] = [ + 0xaa, 0xff, 0x00, 0x55, 0xfa, 0xaf, 0xfb, 0xbf, 0xfe, 0xef, 0xbb, 0xee, 0xdf, 0xba, 0x5a, 0xae, 0x7f, 0xea, 0xab, + 0xf7, 0xfd, 0xa5, 0x5f, 0xf5, 0xdd, 0x77, 0x66, 0x99, 0x2a, 0x8a, 0xa2, 0x50, 0x05, 0xa8, 0x11, 0x9a, 0x44, 0x3f, + 0xa6, 0xa9, 0xcf, 0xbe, 0xfc, 0xf3, 0x6a, 0xeb, 0x7e, 0xe7, 0xdb, 0xbd, 0x7a, 0xa7, 0xda, 0x0f, 0xad, 0x57, 0xd5, + 0x0a, 0x5d, 0x75, 0x2f, 0x6e, 0xf0, 0x8f, 0xf8, 0xe6, 0x3d, 0xf2, 0xb9, 0x25, 0x7c, 0x9b, 0x3b, 0x85, 0xce, 0xec, + 0x58, 0xb3, 0xd3, 0xa0, 0x52, 0xde, 0x7b, 0x2b, 0xb7, 0x5e, 0xc7, 0xed, 0x5b, 0xb2, 0x8e, 0xcc, 0x6f, 0x19, 0xf6, + 0x9f, 0x64, 0xe8, 0xe5, 0x29, 0xf9, 0x33, 0x46, 0x22, 0xb5, 0xd7, 0x2d, 0x78, 0x56, 0x86, 0x88, 0x68, 0x91, 0x95, + 0x92, 0xd2, 0x87, 0x7d, 0x76, 0x67, 0x9d, 0x59, 0x65, 0xd9, 0x15, 0x37, 0x93, 0x5c, 0xc6, 0x35, 0x6c, 0xcd, 0x39, + 0x45, 0xdc, 0x54, 0x73, 0x51, 0x53, 0xc5, 0x2e, 0x8b, 0x8d, 0x27, 0xe2, 0x1f, 0xf4, 0x1d, 0xd8, 0xf1, 0x72, 0xa3, + 0x4f, 0x74, 0xb8, 0xca, 0x3a, 0xac, 0xd1, 0x89, 0x47, 0x26, 0x62, 0x98, 0x70, 0x0d, 0xa1, 0x1a, 0x4a, 0x6b, 0x1b, + 0xd0, 0xa4, 0xe9, 0x07, 0xb1, 0x9e, 0xb6, 0xe4, 0x4e, 0xbc, 0xe3, 0x3e, 0xcb, 0x82, 0x31, 0x02, 0x28, 0x4c, 0x13, + 0xc4, 0x20, 0x0e, 0x0b, 0x08, 0x96, 0x80, 0xe0, 0x09, 0xb0, 0x69, 0x60, 0x06, 0x90, 0x23, 0x97, 0x8c, 0xd6, 0x21, + 0x6d, 0x79, 0x32, 0xc8, 0x48, 0x84, 0x17, 0x12, 0xd4, 0x4d, 0x71, 0x01, 0x36, 0x63, 0x9c, 0xc9, 0x40, 0x04, 0x10, + 0xe1, 0x16, 0x94, 0x49, 0x4b, 0x1e, 0xb4, 0x61, 0x03, 0x0c, 0xc0, 0x42, 0x81, 0x18, 0x30, 0x24, 0xc3, 0x3c, 0xc2, + 0x41, 0x14, 0x83, 0x2c, 0x38, 0x43, 0x34, 0x1c, 0xc1, +]; + +/// BC3 colour index symbols: the four 2-bit indices of a 2×2 quadrant. +pub(super) const BC3_COLOUR_QUADRANT: [u8; 256] = [ + 0x55, 0xaa, 0xff, 0x00, 0x50, 0x05, 0xaf, 0xfa, 0xae, 0xea, 0xab, 0xba, 0xee, 0xbb, 0xfe, 0xbf, 0xef, 0xfb, 0xa5, + 0x5a, 0xf0, 0x11, 0x0f, 0x44, 0xf5, 0x5f, 0xa0, 0x0a, 0x8a, 0xa2, 0xa8, 0x2a, 0x7f, 0xf7, 0x77, 0xdf, 0xfd, 0xdd, + 0x66, 0x99, 0x88, 0xbe, 0xeb, 0x22, 0xcc, 0x33, 0x8f, 0xf8, 0x57, 0x75, 0xd5, 0x5d, 0x2f, 0xf2, 0x7a, 0x85, 0xa7, + 0xda, 0x58, 0x25, 0xad, 0x52, 0x3f, 0xf3, 0xcf, 0xe8, 0xfc, 0x8e, 0x2b, 0x7e, 0x6a, 0xa6, 0x9a, 0x70, 0x07, 0x0d, + 0xa9, 0x78, 0x80, 0x08, 0x02, 0xe7, 0xb2, 0x20, 0xdb, 0xd0, 0x87, 0x5e, 0xbd, 0x7c, 0x2d, 0xe5, 0xc7, 0xec, 0xce, + 0x5b, 0xb3, 0xd2, 0x2e, 0xb5, 0x3b, 0xe0, 0xe6, 0x6e, 0x68, 0x8b, 0x9b, 0xe2, 0xb9, 0x0e, 0xb8, 0x0b, 0x3d, 0xd3, + 0x51, 0x86, 0x27, 0x45, 0x15, 0xde, 0x54, 0x8d, 0xb7, 0xed, 0x7b, 0xb0, 0xd8, 0x29, 0x72, 0x92, 0x7d, 0xd7, 0x35, + 0xa3, 0xc5, 0x82, 0x37, 0x53, 0x28, 0x5c, 0x56, 0x65, 0x76, 0x95, 0x59, 0xcd, 0x9f, 0x3a, 0x73, 0x89, 0xca, 0xac, + 0x67, 0x9d, 0xf6, 0xd9, 0xf9, 0x91, 0x19, 0xdc, 0x98, 0x6c, 0x46, 0x64, 0x6f, 0x26, 0x39, 0x62, 0xc6, 0x93, 0x09, + 0x23, 0x06, 0x60, 0x8c, 0xc8, 0x90, 0x32, 0x03, 0x3e, 0xc0, 0x13, 0x31, 0xe3, 0x4c, 0x9e, 0x0c, 0xc4, 0xcb, 0xbc, + 0xb6, 0xe9, 0x30, 0x6b, 0x1f, 0xf1, 0x1d, 0xd1, 0x47, 0x74, 0x4f, 0x10, 0x40, 0xf4, 0x01, 0x04, 0xa1, 0x1a, 0xa4, + 0x1b, 0x4a, 0xb1, 0xe4, 0x4e, 0x36, 0xc9, 0x9c, 0x63, 0x97, 0x71, 0x79, 0x17, 0x48, 0x69, 0x21, 0x12, 0x3c, 0x84, + 0x83, 0x6d, 0xd6, 0x96, 0xc3, 0x38, 0x1e, 0x4d, 0xe1, 0xd4, 0xc2, 0x2c, 0x18, 0x81, 0xb4, 0x4b, 0x16, 0x61, 0xc1, + 0x24, 0x1c, 0x49, 0x14, 0x42, 0x94, 0x41, 0x34, 0x43, +]; + +/// BC3 alpha index symbols: two 3-bit indices. +pub(super) const BC3_ALPHA_PAIR: [(u8, u8); 64] = [ + (0, 0), + (1, 1), + (6, 6), + (4, 4), + (3, 3), + (5, 5), + (7, 7), + (1, 6), + (6, 1), + (0, 1), + (1, 0), + (7, 1), + (1, 7), + (0, 3), + (3, 0), + (0, 2), + (2, 0), + (2, 2), + (5, 4), + (3, 4), + (4, 3), + (4, 5), + (1, 5), + (5, 1), + (0, 4), + (4, 0), + (2, 3), + (3, 2), + (5, 3), + (3, 5), + (6, 5), + (5, 6), + (6, 7), + (7, 6), + (5, 7), + (4, 6), + (6, 4), + (7, 5), + (6, 0), + (0, 6), + (4, 2), + (2, 4), + (4, 1), + (1, 4), + (5, 0), + (0, 5), + (6, 3), + (3, 6), + (3, 1), + (5, 2), + (1, 3), + (2, 5), + (7, 4), + (4, 7), + (7, 3), + (3, 7), + (2, 6), + (6, 2), + (2, 1), + (1, 2), + (0, 7), + (7, 0), + (2, 7), + (7, 2), +]; + +/// BC4 index symbols: two 3-bit indices. +pub(super) const BC4_PAIR: [(u8, u8); 64] = [ + (1, 1), + (0, 0), + (3, 3), + (6, 6), + (4, 4), + (5, 5), + (3, 0), + (0, 3), + (6, 1), + (1, 6), + (7, 7), + (2, 2), + (6, 3), + (3, 6), + (1, 0), + (0, 1), + (4, 1), + (1, 4), + (3, 1), + (1, 3), + (6, 0), + (0, 6), + (4, 2), + (7, 5), + (5, 7), + (2, 4), + (0, 5), + (5, 0), + (6, 4), + (4, 6), + (5, 3), + (3, 5), + (4, 0), + (0, 4), + (1, 5), + (5, 1), + (3, 4), + (4, 3), + (2, 6), + (6, 2), + (7, 3), + (3, 7), + (1, 2), + (2, 1), + (0, 7), + (7, 0), + (2, 5), + (5, 2), + (7, 4), + (4, 7), + (4, 5), + (5, 4), + (3, 2), + (2, 3), + (0, 2), + (2, 0), + (1, 7), + (7, 1), + (6, 5), + (5, 6), + (6, 7), + (7, 6), + (2, 7), + (7, 2), +]; + +/// BC5 index symbols: two 3-bit indices. +pub(super) const BC5_PAIR: [(u8, u8); 64] = [ + (0, 0), + (1, 1), + (4, 4), + (3, 3), + (6, 6), + (7, 7), + (4, 0), + (0, 4), + (0, 1), + (2, 2), + (1, 0), + (3, 0), + (0, 3), + (5, 5), + (2, 0), + (0, 2), + (1, 6), + (6, 1), + (4, 3), + (1, 7), + (3, 4), + (1, 4), + (7, 1), + (6, 0), + (0, 6), + (6, 3), + (6, 4), + (3, 6), + (3, 2), + (4, 6), + (1, 5), + (1, 3), + (2, 3), + (5, 4), + (5, 3), + (5, 0), + (4, 1), + (7, 6), + (4, 5), + (4, 2), + (3, 1), + (3, 5), + (5, 1), + (6, 7), + (2, 4), + (7, 5), + (7, 4), + (0, 5), + (6, 5), + (4, 7), + (5, 7), + (7, 0), + (5, 6), + (0, 7), + (7, 3), + (3, 7), + (5, 2), + (2, 5), + (1, 2), + (6, 2), + (2, 1), + (2, 6), + (7, 2), + (2, 7), +]; + +/// BC1: known entries of the built-in endpoint history (r0, g0, b0, r1, g1, b1). +pub(super) const BC1_HISTORY: [(u8, [u8; 6]); 255] = [ + (1, [7, 29, 6, 8, 30, 7]), + (2, [15, 29, 15, 16, 36, 17]), + (3, [20, 38, 14, 3, 5, 2]), + (4, [12, 27, 13, 6, 12, 6]), + (5, [10, 22, 11, 6, 14, 7]), + (6, [12, 24, 11, 7, 14, 6]), + (7, [12, 26, 12, 7, 14, 7]), + (8, [22, 36, 15, 20, 32, 14]), + (9, [14, 23, 8, 1, 2, 1]), + (10, [23, 5, 30, 9, 5, 30]), + (11, [11, 22, 11, 7, 15, 7]), + (12, [17, 22, 7, 10, 11, 3]), + (13, [12, 25, 12, 7, 16, 7]), + (14, [13, 28, 8, 5, 11, 3]), + (15, [11, 20, 8, 16, 31, 14]), + (16, [23, 32, 30, 17, 12, 29]), + (17, [8, 44, 30, 6, 26, 30]), + (18, [10, 24, 30, 6, 45, 30]), + (19, [10, 12, 4, 8, 8, 2]), + (20, [16, 23, 30, 14, 6, 26]), + (21, [12, 25, 13, 10, 22, 12]), + (22, [19, 27, 10, 12, 15, 5]), + (23, [11, 24, 12, 4, 11, 6]), + (24, [29, 60, 29, 6, 13, 6]), + (25, [17, 31, 11, 1, 2, 1]), + (26, [26, 54, 24, 12, 24, 10]), + (27, [23, 49, 30, 20, 36, 30]), + (28, [16, 23, 10, 10, 14, 6]), + (29, [11, 24, 10, 6, 13, 5]), + (30, [18, 52, 30, 14, 22, 30]), + (31, [14, 51, 30, 9, 34, 30]), + (32, [2, 3, 1, 19, 37, 16]), + (33, [14, 15, 30, 9, 31, 30]), + (34, [29, 57, 27, 27, 52, 25]), + (35, [13, 29, 15, 8, 20, 11]), + (36, [13, 17, 5, 9, 10, 3]), + (37, [18, 50, 29, 15, 10, 29]), + (38, [11, 25, 13, 8, 19, 10]), + (39, [17, 32, 12, 6, 11, 4]), + (40, [22, 18, 30, 19, 41, 30]), + (41, [10, 22, 11, 8, 18, 9]), + (42, [18, 30, 31, 10, 44, 30]), + (43, [25, 50, 24, 2, 4, 1]), + (44, [11, 30, 31, 7, 15, 29]), + (45, [12, 19, 8, 11, 16, 7]), + (46, [19, 29, 30, 14, 55, 28]), + (47, [9, 20, 10, 4, 10, 5]), + (48, [12, 24, 10, 7, 13, 5]), + (49, [26, 53, 25, 6, 13, 6]), + (50, [19, 27, 31, 11, 19, 30]), + (51, [21, 31, 30, 22, 31, 30]), + (52, [10, 19, 5, 11, 21, 6]), + (53, [30, 50, 3, 29, 46, 2]), + (54, [15, 9, 30, 7, 9, 30]), + (55, [14, 18, 6, 11, 14, 4]), + (56, [28, 56, 26, 4, 7, 3]), + (57, [9, 20, 10, 5, 13, 7]), + (58, [28, 58, 26, 15, 32, 14]), + (59, [11, 19, 8, 6, 9, 4]), + (60, [16, 22, 9, 13, 17, 7]), + (61, [1, 2, 1, 14, 28, 12]), + (62, [22, 45, 30, 9, 15, 30]), + (63, [19, 22, 30, 16, 23, 31]), + (64, [25, 50, 24, 21, 43, 20]), + (65, [6, 11, 4, 16, 31, 13]), + (66, [13, 25, 8, 3, 6, 1]), + (67, [5, 9, 3, 12, 24, 10]), + (68, [16, 29, 13, 7, 13, 5]), + (69, [20, 38, 16, 13, 25, 10]), + (70, [18, 35, 15, 5, 9, 3]), + (71, [13, 25, 11, 6, 11, 4]), + (72, [11, 21, 7, 7, 13, 4]), + (73, [20, 39, 16, 11, 20, 8]), + (74, [16, 31, 12, 4, 8, 2]), + (75, [22, 41, 30, 18, 23, 30]), + (76, [24, 50, 24, 9, 19, 8]), + (77, [3, 12, 7, 4, 16, 8]), + (78, [18, 27, 12, 16, 22, 10]), + (79, [24, 49, 23, 13, 28, 12]), + (80, [24, 50, 24, 18, 37, 18]), + (81, [17, 33, 12, 14, 27, 9]), + (82, [20, 10, 31, 13, 10, 31]), + (83, [7, 8, 2, 5, 5, 1]), + (84, [1, 2, 1, 10, 21, 9]), + (85, [10, 18, 6, 1, 1, 0]), + (86, [22, 46, 21, 1, 3, 1]), + (87, [11, 20, 8, 8, 14, 5]), + (88, [17, 35, 31, 14, 14, 29]), + (89, [16, 22, 31, 12, 40, 31]), + (90, [12, 22, 9, 8, 15, 6]), + (91, [18, 15, 30, 15, 33, 31]), + (92, [19, 32, 30, 15, 43, 31]), + (93, [18, 35, 15, 8, 15, 5]), + (94, [21, 43, 20, 18, 37, 17]), + (95, [10, 17, 6, 9, 15, 6]), + (96, [14, 27, 12, 7, 13, 5]), + (97, [8, 16, 7, 12, 25, 11]), + (98, [18, 37, 17, 1, 1, 0]), + (99, [17, 45, 30, 15, 33, 31]), + (100, [13, 25, 11, 8, 16, 7]), + (101, [23, 47, 22, 16, 32, 15]), + (102, [18, 33, 13, 11, 21, 8]), + (103, [4, 10, 4, 8, 17, 7]), + (104, [1, 2, 1, 3, 7, 3]), + (105, [11, 22, 9, 6, 11, 4]), + (106, [16, 29, 11, 13, 23, 9]), + (107, [12, 24, 12, 6, 12, 6]), + (108, [23, 47, 22, 7, 14, 6]), + (109, [11, 32, 30, 11, 31, 30]), + (110, [14, 26, 11, 10, 18, 7]), + (111, [20, 41, 19, 1, 3, 1]), + (112, [14, 28, 12, 8, 16, 6]), + (113, [11, 21, 9, 8, 15, 6]), + (114, [1, 2, 1, 7, 13, 6]), + (115, [19, 35, 14, 16, 29, 12]), + (116, [13, 27, 13, 7, 15, 7]), + (117, [15, 33, 16, 8, 18, 9]), + (118, [15, 42, 31, 11, 22, 30]), + (119, [23, 48, 23, 4, 9, 4]), + (120, [22, 45, 21, 11, 22, 10]), + (121, [31, 62, 30, 31, 61, 29]), + (122, [13, 26, 11, 5, 8, 3]), + (123, [19, 39, 19, 9, 20, 10]), + (124, [7, 14, 2, 6, 12, 2]), + (125, [21, 42, 20, 3, 7, 3]), + (126, [10, 17, 7, 8, 13, 5]), + (127, [11, 20, 8, 9, 17, 7]), + (128, [19, 33, 31, 12, 31, 31]), + (129, [21, 43, 20, 5, 11, 5]), + (130, [10, 20, 9, 7, 13, 6]), + (131, [10, 21, 10, 6, 13, 6]), + (132, [15, 29, 12, 11, 20, 8]), + (133, [21, 43, 20, 9, 18, 8]), + (134, [3, 8, 3, 5, 11, 5]), + (135, [16, 31, 13, 9, 17, 7]), + (136, [11, 22, 11, 6, 12, 6]), + (137, [10, 21, 10, 7, 15, 7]), + (138, [27, 3, 1, 26, 1, 0]), + (139, [18, 37, 18, 16, 32, 16]), + (140, [12, 23, 10, 9, 17, 7]), + (141, [12, 25, 12, 8, 17, 8]), + (142, [11, 21, 9, 2, 4, 1]), + (143, [7, 15, 7, 8, 18, 9]), + (144, [17, 33, 15, 13, 24, 11]), + (145, [9, 19, 9, 7, 15, 7]), + (146, [21, 43, 20, 13, 27, 12]), + (147, [17, 36, 17, 2, 4, 2]), + (148, [10, 20, 9, 6, 12, 5]), + (149, [20, 41, 19, 7, 14, 7]), + (150, [3, 9, 6, 2, 8, 5]), + (151, [13, 24, 10, 11, 20, 8]), + (152, [18, 38, 18, 4, 7, 3]), + (153, [19, 38, 18, 8, 17, 8]), + (154, [16, 35, 17, 4, 10, 4]), + (155, [11, 23, 11, 10, 21, 10]), + (156, [17, 36, 17, 7, 14, 7]), + (157, [13, 27, 13, 6, 12, 6]), + (158, [9, 15, 4, 8, 13, 4]), + (159, [10, 19, 7, 5, 9, 3]), + (160, [19, 40, 19, 11, 24, 11]), + (161, [11, 23, 11, 8, 17, 8]), + (162, [14, 29, 14, 7, 15, 7]), + (163, [12, 22, 9, 5, 8, 3]), + (164, [10, 20, 9, 8, 17, 8]), + (165, [21, 42, 19, 15, 31, 14]), + (166, [14, 29, 13, 1, 1, 0]), + (167, [8, 16, 8, 7, 14, 7]), + (168, [9, 18, 8, 8, 16, 7]), + (169, [10, 17, 7, 3, 4, 1]), + (170, [14, 28, 13, 2, 4, 1]), + (171, [14, 30, 14, 3, 6, 3]), + (172, [19, 38, 18, 5, 11, 5]), + (173, [12, 26, 12, 1, 2, 1]), + (174, [9, 16, 6, 8, 13, 5]), + (175, [8, 13, 4, 7, 11, 4]), + (176, [16, 34, 16, 3, 7, 3]), + (177, [13, 28, 13, 4, 9, 4]), + (178, [15, 31, 15, 6, 13, 6]), + (179, [12, 24, 11, 9, 19, 9]), + (180, [9, 19, 8, 7, 14, 6]), + (181, [14, 28, 13, 5, 10, 4]), + (182, [10, 20, 7, 4, 6, 2]), + (183, [16, 34, 17, 11, 25, 12]), + (184, [15, 30, 15, 8, 16, 8]), + (185, [13, 27, 13, 10, 20, 10]), + (186, [9, 20, 9, 0, 1, 0]), + (187, [16, 32, 15, 2, 4, 2]), + (188, [13, 27, 12, 3, 6, 3]), + (189, [13, 26, 12, 12, 23, 11]), + (190, [12, 25, 12, 5, 10, 5]), + (191, [11, 23, 11, 5, 11, 5]), + (192, [16, 34, 16, 6, 12, 5]), + (193, [16, 35, 31, 15, 25, 31]), + (194, [16, 33, 16, 7, 15, 7]), + (195, [13, 27, 13, 8, 18, 8]), + (196, [18, 36, 17, 11, 22, 10]), + (197, [18, 37, 18, 13, 27, 13]), + (198, [12, 25, 12, 4, 8, 4]), + (199, [9, 18, 7, 6, 11, 4]), + (200, [15, 30, 14, 9, 19, 9]), + (201, [17, 35, 16, 9, 18, 9]), + (202, [11, 24, 11, 2, 4, 2]), + (203, [16, 33, 16, 0, 1, 0]), + (204, [15, 31, 15, 4, 9, 4]), + (205, [16, 31, 15, 14, 27, 13]), + (206, [14, 29, 14, 13, 25, 12]), + (207, [11, 23, 11, 3, 6, 3]), + (208, [16, 32, 16, 10, 21, 10]), + (209, [11, 22, 11, 4, 9, 4]), + (210, [11, 22, 10, 1, 2, 0]), + (211, [8, 14, 5, 2, 4, 1]), + (212, [9, 16, 6, 6, 10, 4]), + (213, [10, 21, 10, 9, 19, 9]), + (214, [14, 30, 14, 11, 22, 11]), + (215, [9, 18, 8, 6, 13, 6]), + (216, [6, 13, 6, 5, 11, 5]), + (217, [7, 14, 6, 0, 1, 0]), + (218, [4, 7, 2, 3, 4, 1]), + (219, [10, 20, 9, 4, 8, 4]), + (220, [9, 17, 7, 5, 9, 3]), + (221, [7, 14, 7, 1, 2, 1]), + (222, [10, 20, 10, 5, 10, 5]), + (223, [8, 15, 5, 4, 6, 2]), + (224, [8, 17, 8, 1, 2, 1]), + (225, [10, 20, 10, 3, 6, 3]), + (226, [7, 10, 3, 6, 8, 3]), + (227, [8, 15, 7, 6, 12, 6]), + (228, [9, 19, 9, 2, 4, 2]), + (229, [6, 11, 4, 3, 4, 1]), + (230, [6, 11, 4, 0, 1, 0]), + (231, [8, 16, 7, 2, 4, 2]), + (232, [16, 34, 16, 15, 29, 15]), + (233, [7, 16, 7, 5, 10, 5]), + (234, [8, 14, 5, 5, 9, 3]), + (235, [9, 18, 8, 4, 8, 4]), + (236, [5, 9, 3, 4, 7, 2]), + (237, [9, 18, 8, 5, 10, 5]), + (238, [6, 12, 6, 2, 4, 2]), + (239, [7, 12, 5, 4, 7, 3]), + (240, [5, 11, 5, 1, 2, 1]), + (241, [8, 17, 8, 3, 6, 3]), + (242, [16, 31, 31, 16, 32, 31]), + (243, [7, 14, 7, 3, 6, 3]), + (244, [5, 11, 6, 4, 9, 4]), + (245, [7, 15, 7, 4, 8, 4]), + (246, [2, 4, 2, 0, 0, 1]), + (247, [5, 11, 5, 3, 6, 3]), + (248, [4, 8, 4, 1, 1, 1]), + (249, [3, 6, 3, 1, 2, 1]), + (250, [2, 4, 1, 1, 2, 1]), + (251, [4, 8, 4, 3, 6, 3]), + (252, [3, 6, 3, 2, 4, 2]), + (253, [4, 9, 4, 2, 4, 2]), + (254, [17, 27, 31, 15, 34, 31]), + (255, [0, 0, 1, 0, 0, 0]), +]; + +/// BC3: known entries of the built-in endpoint history (a0, a1, r0, g0, b0, r1, g1, b1). +pub(super) const BC3_HISTORY: [(u8, [u8; 8]); 35] = [ + (2, [177, 134, 27, 55, 24, 14, 54, 24]), + (26, [255, 255, 21, 34, 8, 15, 22, 3]), + (29, [220, 109, 17, 35, 17, 15, 30, 15]), + (30, [219, 96, 2, 53, 14, 2, 59, 16]), + (35, [95, 65, 16, 31, 16, 15, 31, 15]), + (37, [136, 13, 16, 33, 16, 15, 32, 15]), + (47, [146, 108, 18, 37, 18, 13, 26, 13]), + (52, [255, 255, 20, 38, 16, 3, 5, 2]), + (71, [200, 51, 17, 34, 17, 15, 31, 15]), + (76, [170, 150, 2, 60, 20, 1, 61, 20]), + (78, [248, 10, 3, 4, 2, 0, 1, 0]), + (95, [237, 229, 26, 51, 25, 1, 3, 1]), + (98, [255, 0, 19, 38, 18, 14, 29, 13]), + (104, [255, 6, 13, 27, 13, 8, 17, 8]), + (109, [254, 4, 15, 27, 11, 3, 4, 2]), + (112, [117, 39, 21, 41, 21, 1, 3, 1]), + (126, [170, 119, 16, 31, 16, 15, 30, 15]), + (138, [122, 121, 14, 29, 14, 13, 27, 13]), + (139, [247, 1, 15, 28, 13, 9, 16, 7]), + (153, [105, 126, 2, 7, 4, 1, 3, 2]), + (154, [93, 100, 20, 40, 20, 15, 30, 15]), + (166, [91, 99, 17, 35, 17, 15, 30, 15]), + (167, [155, 99, 16, 33, 16, 15, 31, 15]), + (177, [255, 255, 13, 24, 12, 11, 23, 10]), + (185, [254, 255, 10, 17, 7, 2, 3, 1]), + (197, [253, 255, 11, 20, 9, 6, 11, 4]), + (210, [254, 255, 5, 10, 5, 1, 2, 1]), + (220, [255, 255, 11, 20, 9, 9, 17, 7]), + (225, [106, 113, 24, 39, 23, 0, 13, 0]), + (226, [1, 255, 8, 15, 7, 5, 10, 4]), + (230, [1, 2, 0, 1, 1, 0, 0, 0]), + (232, [140, 131, 16, 31, 16, 15, 34, 16]), + (237, [255, 254, 5, 11, 5, 4, 9, 3]), + (244, [255, 255, 1, 1, 1, 0, 0, 0]), + (246, [253, 254, 3, 5, 2, 1, 2, 1]), +]; + +/// BC4: known entries of the built-in endpoint history (a0, a1). +pub(super) const BC4_HISTORY: [(u8, [u8; 2]); 172] = [ + (3, [122, 77]), + (15, [67, 91]), + (25, [83, 49]), + (32, [114, 158]), + (33, [58, 31]), + (34, [83, 58]), + (35, [103, 121]), + (40, [246, 65]), + (41, [244, 137]), + (42, [101, 141]), + (43, [181, 141]), + (49, [224, 201]), + (52, [217, 182]), + (55, [227, 73]), + (57, [213, 205]), + (60, [125, 83]), + (62, [243, 91]), + (63, [214, 190]), + (64, [226, 53]), + (66, [230, 227]), + (69, [156, 116]), + (70, [250, 174]), + (71, [220, 86]), + (72, [238, 115]), + (73, [227, 42]), + (74, [166, 80]), + (75, [200, 166]), + (77, [164, 124]), + (80, [74, 115]), + (81, [83, 99]), + (82, [186, 74]), + (83, [140, 148]), + (84, [204, 141]), + (85, [220, 103]), + (86, [208, 44]), + (87, [147, 108]), + (88, [190, 88]), + (90, [203, 82]), + (91, [222, 142]), + (92, [218, 217]), + (93, [206, 63]), + (94, [186, 189]), + (96, [197, 48]), + (98, [203, 203]), + (99, [147, 116]), + (100, [196, 14]), + (101, [172, 137]), + (102, [214, 124]), + (103, [200, 174]), + (104, [122, 83]), + (105, [152, 157]), + (106, [88, 51]), + (107, [178, 87]), + (108, [169, 149]), + (109, [170, 98]), + (110, [171, 71]), + (111, [202, 183]), + (112, [138, 100]), + (114, [153, 148]), + (116, [77, 34]), + (117, [140, 82]), + (118, [171, 106]), + (119, [194, 127]), + (120, [197, 193]), + (121, [179, 118]), + (123, [190, 161]), + (124, [179, 167]), + (125, [115, 126]), + (126, [139, 108]), + (127, [132, 115]), + (128, [161, 89]), + (129, [182, 152]), + (130, [186, 61]), + (131, [165, 56]), + (132, [170, 175]), + (133, [186, 177]), + (134, [167, 159]), + (135, [153, 81]), + (137, [145, 140]), + (139, [151, 94]), + (140, [57, 74]), + (141, [112, 107]), + (142, [132, 91]), + (145, [74, 16]), + (147, [177, 43]), + (148, [151, 124]), + (149, [123, 107]), + (150, [145, 73]), + (151, [113, 75]), + (152, [75, 71]), + (153, [107, 90]), + (154, [194, 106]), + (155, [158, 69]), + (156, [159, 40]), + (157, [71, 51]), + (158, [144, 132]), + (159, [156, 15]), + (160, [144, 62]), + (161, [81, 75]), + (162, [122, 91]), + (163, [55, 33]), + (164, [76, 58]), + (165, [152, 53]), + (167, [89, 83]), + (168, [114, 83]), + (169, [65, 74]), + (171, [152, 39]), + (172, [140, 119]), + (173, [42, 15]), + (174, [65, 41]), + (175, [114, 91]), + (178, [90, 50]), + (179, [48, 8]), + (180, [102, 102]), + (181, [132, 70]), + (182, [73, 56]), + (183, [123, 119]), + (184, [72, 34]), + (185, [159, 136]), + (186, [131, 107]), + (187, [105, 12]), + (188, [143, 40]), + (189, [113, 99]), + (190, [43, 25]), + (192, [79, 85]), + (193, [126, 100]), + (195, [98, 58]), + (196, [90, 74]), + (197, [133, 135]), + (198, [96, 90]), + (200, [55, 17]), + (202, [82, 42]), + (203, [71, 66]), + (204, [133, 52]), + (205, [89, 58]), + (206, [113, 6]), + (207, [132, 123]), + (208, [39, 9]), + (209, [136, 27]), + (211, [39, 23]), + (212, [81, 50]), + (213, [19, 41]), + (214, [39, 17]), + (215, [103, 82]), + (217, [115, 21]), + (218, [120, 60]), + (219, [81, 58]), + (220, [73, 42]), + (221, [47, 17]), + (223, [64, 25]), + (224, [119, 34]), + (226, [66, 58]), + (227, [33, 16]), + (228, [101, 67]), + (229, [66, 49]), + (230, [101, 75]), + (232, [78, 5]), + (234, [33, 60]), + (235, [57, 24]), + (236, [69, 2]), + (239, [105, 25]), + (240, [96, 35]), + (241, [112, 46]), + (243, [47, 25]), + (244, [88, 22]), + (245, [85, 66]), + (246, [49, 33]), + (247, [22, 17]), + (248, [55, 41]), + (250, [130, 129]), + (252, [27, 8]), + (254, [12, 6]), +]; + +/// BC5: known entries of the built-in endpoint history (r0, r1, g0, g1). +pub(super) const BC5_HISTORY: [(u8, [u8; 4]); 214] = [ + (3, [130, 218, 45, 192]), + (4, [172, 109, 158, 94]), + (5, [183, 136, 113, 69]), + (6, [125, 129, 86, 34]), + (7, [171, 196, 33, 82]), + (9, [142, 149, 102, 118]), + (14, [82, 62, 26, 23]), + (15, [100, 94, 32, 32]), + (16, [97, 123, 61, 97]), + (19, [133, 140, 118, 123]), + (20, [206, 194, 128, 123]), + (22, [147, 145, 64, 66]), + (24, [76, 189, 55, 171]), + (27, [94, 115, 86, 102]), + (28, [163, 38, 152, 29]), + (29, [143, 133, 89, 80]), + (30, [197, 67, 172, 50]), + (31, [164, 218, 130, 127]), + (32, [141, 145, 111, 132]), + (33, [177, 125, 131, 32]), + (34, [49, 113, 26, 94]), + (36, [173, 169, 40, 28]), + (38, [117, 125, 43, 50]), + (39, [139, 111, 99, 72]), + (40, [123, 93, 83, 49]), + (41, [189, 166, 135, 116]), + (42, [198, 97, 178, 73]), + (43, [205, 201, 76, 86]), + (44, [172, 174, 73, 72]), + (46, [157, 210, 136, 188]), + (47, [126, 149, 115, 129]), + (48, [158, 67, 137, 41]), + (49, [214, 120, 131, 80]), + (51, [147, 150, 119, 119]), + (52, [169, 107, 135, 65]), + (54, [231, 168, 223, 154]), + (55, [115, 144, 99, 120]), + (56, [74, 104, 50, 83]), + (57, [220, 132, 32, 123]), + (58, [150, 136, 110, 96]), + (60, [139, 147, 124, 108]), + (61, [121, 124, 78, 94]), + (63, [169, 151, 124, 103]), + (64, [120, 106, 103, 88]), + (65, [134, 147, 110, 109]), + (67, [133, 125, 103, 107]), + (68, [160, 133, 118, 123]), + (69, [175, 78, 163, 68]), + (70, [229, 133, 166, 121]), + (71, [233, 147, 224, 134]), + (72, [127, 142, 104, 121]), + (73, [134, 150, 99, 121]), + (74, [110, 149, 83, 129]), + (75, [175, 187, 129, 141]), + (77, [115, 124, 96, 104]), + (78, [164, 128, 141, 109]), + (79, [129, 85, 114, 22]), + (80, [246, 131, 241, 125]), + (82, [168, 186, 145, 165]), + (83, [192, 133, 158, 100]), + (84, [107, 143, 105, 133]), + (85, [201, 212, 172, 181]), + (86, [124, 138, 116, 121]), + (87, [92, 60, 71, 40]), + (88, [203, 134, 149, 126]), + (90, [61, 123, 25, 114]), + (91, [123, 160, 113, 145]), + (92, [150, 169, 135, 150]), + (93, [134, 139, 101, 109]), + (94, [253, 94, 255, 63]), + (95, [123, 87, 106, 67]), + (96, [238, 133, 121, 121]), + (98, [24, 18, 15, 10]), + (99, [117, 41, 97, 25]), + (100, [123, 121, 70, 67]), + (101, [64, 59, 51, 49]), + (102, [11, 103, 12, 88]), + (103, [144, 133, 111, 123]), + (104, [189, 200, 65, 52]), + (105, [219, 153, 195, 135]), + (106, [150, 110, 138, 98]), + (107, [118, 142, 60, 117]), + (108, [139, 145, 114, 118]), + (109, [216, 225, 191, 200]), + (110, [46, 46, 38, 33]), + (111, [91, 132, 85, 126]), + (112, [154, 178, 115, 132]), + (114, [132, 126, 122, 15]), + (115, [136, 134, 15, 123]), + (116, [131, 129, 105, 123]), + (119, [132, 215, 122, 149]), + (120, [129, 138, 112, 111]), + (123, [136, 145, 119, 131]), + (124, [179, 196, 165, 183]), + (125, [126, 125, 111, 92]), + (126, [136, 150, 122, 123]), + (127, [168, 158, 136, 126]), + (128, [146, 153, 129, 134]), + (129, [127, 130, 85, 124]), + (130, [132, 241, 120, 126]), + (131, [155, 124, 125, 85]), + (132, [121, 115, 115, 108]), + (133, [106, 72, 89, 51]), + (134, [136, 155, 118, 137]), + (135, [121, 145, 106, 133]), + (136, [119, 220, 102, 209]), + (137, [179, 136, 150, 122]), + (138, [120, 133, 102, 113]), + (139, [145, 142, 111, 112]), + (140, [130, 108, 123, 62]), + (141, [121, 132, 37, 122]), + (142, [157, 142, 135, 119]), + (143, [80, 201, 59, 191]), + (144, [130, 133, 122, 104]), + (145, [138, 136, 112, 120]), + (146, [131, 107, 123, 37]), + (147, [122, 120, 107, 119]), + (148, [126, 181, 121, 146]), + (149, [143, 141, 137, 135]), + (150, [134, 178, 121, 161]), + (151, [103, 135, 55, 126]), + (152, [193, 132, 128, 123]), + (153, [141, 129, 111, 114]), + (154, [79, 77, 53, 51]), + (155, [133, 72, 127, 64]), + (157, [102, 101, 83, 80]), + (159, [92, 137, 39, 125]), + (160, [108, 136, 87, 122]), + (161, [102, 97, 65, 57]), + (162, [163, 149, 151, 134]), + (163, [133, 17, 121, 15]), + (165, [179, 162, 153, 133]), + (166, [119, 132, 98, 125]), + (167, [175, 132, 130, 124]), + (169, [132, 92, 124, 81]), + (170, [40, 31, 27, 19]), + (171, [188, 211, 180, 202]), + (172, [139, 121, 117, 101]), + (173, [150, 125, 130, 106]), + (174, [129, 184, 123, 131]), + (175, [132, 158, 126, 148]), + (176, [130, 155, 126, 129]), + (177, [131, 167, 124, 127]), + (178, [155, 131, 132, 125]), + (179, [198, 139, 170, 124]), + (180, [200, 196, 190, 186]), + (182, [133, 126, 124, 55]), + (183, [128, 126, 116, 112]), + (184, [173, 157, 163, 147]), + (185, [197, 175, 158, 137]), + (186, [102, 129, 98, 126]), + (187, [131, 216, 121, 198]), + (188, [127, 135, 115, 130]), + (189, [139, 196, 94, 111]), + (190, [132, 106, 123, 94]), + (191, [219, 130, 193, 116]), + (192, [212, 133, 127, 124]), + (193, [196, 176, 173, 151]), + (194, [56, 192, 15, 27]), + (195, [129, 198, 124, 131]), + (196, [131, 124, 125, 99]), + (197, [176, 130, 169, 126]), + (198, [137, 127, 121, 111]), + (199, [144, 137, 131, 123]), + (200, [132, 130, 114, 120]), + (201, [182, 165, 169, 153]), + (202, [138, 136, 113, 109]), + (203, [185, 172, 179, 164]), + (204, [131, 127, 123, 81]), + (205, [124, 141, 121, 137]), + (206, [173, 131, 136, 92]), + (208, [120, 133, 108, 123]), + (209, [147, 134, 123, 110]), + (210, [130, 142, 125, 129]), + (211, [136, 137, 122, 131]), + (212, [130, 119, 127, 114]), + (214, [117, 136, 111, 131]), + (215, [199, 181, 187, 167]), + (216, [132, 215, 124, 125]), + (217, [135, 138, 120, 114]), + (218, [131, 85, 123, 45]), + (219, [197, 131, 193, 126]), + (221, [69, 206, 57, 195]), + (222, [131, 128, 123, 37]), + (223, [161, 156, 96, 92]), + (225, [130, 136, 123, 121]), + (226, [126, 60, 118, 46]), + (227, [139, 137, 120, 124]), + (228, [140, 130, 124, 123]), + (229, [122, 127, 118, 123]), + (231, [130, 141, 127, 138]), + (232, [54, 205, 50, 185]), + (233, [75, 74, 69, 68]), + (234, [223, 130, 217, 125]), + (235, [111, 129, 108, 127]), + (236, [160, 129, 157, 126]), + (237, [129, 217, 126, 217]), + (238, [148, 128, 146, 126]), + (239, [130, 129, 127, 118]), + (241, [60, 200, 50, 200]), + (242, [131, 130, 120, 124]), + (243, [123, 132, 116, 127]), + (244, [132, 135, 130, 132]), + (245, [129, 41, 126, 37]), + (246, [122, 133, 120, 133]), + (247, [118, 128, 116, 126]), + (248, [136, 128, 133, 126]), + (249, [128, 133, 123, 131]), + (250, [82, 81, 78, 77]), + (251, [124, 130, 122, 128]), + (252, [130, 130, 125, 124]), + (253, [128, 128, 127, 127]), + (254, [127, 126, 126, 125]), + (255, [129, 127, 128, 126]), +]; diff --git a/crates/rage-formats/src/drawable6.rs b/crates/rage-formats/src/drawable6.rs new file mode 100644 index 0000000..4718920 --- /dev/null +++ b/crates/rage-formats/src/drawable6.rs @@ -0,0 +1,626 @@ +//! GTA VI models: drawables, fragments and drawable dictionaries. +//! +//! A model resource has two parts: the *system* part with the structures, +//! and the *graphics* part with vertex and index data. Pointers are 64-bit +//! addresses, from `0x5000_0000` into the system part and from +//! `0x6000_0000` into the graphics part. All of it is little-endian. +//! +//! The resource starts with one of three roots, each with zero in its first +//! eight bytes and at 8 a pointer to the page counts: +//! - a **drawable**: shader group (16), radius (44), bounds (48, 64), four +//! levels of detail (80 to 104), name (168); +//! - a **fragment**: its drawable (24) and name (168); +//! - a **drawable dictionary**: name hashes (32) and drawables (48), with +//! their number at 40, 42, 56 and 58. +//! +//! A level of detail lists *models* (pointers, count at 8); a model lists +//! *geometries* (pointers at 8, count at 16) with their bounds (24) and +//! shaders (32, a 16-bit index each). A geometry has a vertex buffer (8) and, +//! through a descriptor (64), an index buffer. +//! +//! A buffer says how many elements of how many bytes it has (8, 12) and +//! where they are in the graphics part (24). The vertex buffer's format (64) +//! has, for each of the vertex's parts: its offset in the buffer (4 bytes +//! each from 0), its size (a byte each from `0xD0`) and its encoding (a byte +//! each from `0x104`); the vertex count is in the word at `0x138`, from bit +//! 10 on. So a buffer holds all positions, then all texture coordinates, … +//! +//! - Positions (part 0): three floats, or 64 bits of fixed point (24, 24 +//! and 16 bits) with a bias and a scale in the buffer's first bytes and an +//! order of the axes. +//! - Texture coordinates (part 28): two floats, or two 16-bit numbers with a +//! scale. +//! +//! The index buffer is cut into *clusters* of up to 128 vertices and 256 +//! triangles: a list of the vertices each cluster uses, and triangles as +//! three 7-bit numbers into its cluster's list. +//! +//! A shader names its textures by keys into the texture pools +//! ([`crate::ttpf`]); of those, the one for the base colour is read. +//! +//! Not read: the other textures of materials, skeletons and skinning, the +//! lower levels of detail. +//! +//! The layout is the one found by the rpf9-explorer project +//! (), whose decoder was read to +//! learn it; this reader is written anew. + +use rage_core::bytes::LeRead; + +use crate::drawable::{Drawable, Mesh, Shader}; + +#[derive(Debug, thiserror::Error, PartialEq, Eq)] +#[non_exhaustive] +pub enum ModelError { + #[error("not a GTA VI model")] + NotAModel, + /// The graphics part ends before the data a buffer points to: at least + /// this many bytes are needed. + #[error("the model's vertex or index data is missing ({0} bytes are needed)")] + Graphics(usize), + #[error("damaged or unknown model data: {0}")] + Bad(String), +} + +fn bad(msg: impl Into) -> ModelError { + ModelError::Bad(msg.into()) +} + +const SYSTEM: u64 = 0x5000_0000; +const GRAPHICS: u64 = 0x6000_0000; +/// No part of a resource is larger than this. +const MAX_PART: u64 = 256 << 20; +const MAX_VERTICES: usize = 1_000_000; +const MAX_MESHES: usize = 1024; +/// Slots of the vertex format. +const POSITION: usize = 0; +const TEXCOORD: usize = 28; + +/// The parameters of shaders that hold the base colour, the best first: +/// `diffusetex`, `diffusetexture`, and the first layer of the layered ones +/// (`lyr0diffusetex`, `diffusetexture_layer0`). Other textures of a shader +/// (normals, specular, masks) are not colours and must not stand in. +const BASE_COLOUR: [u32; 4] = [0xC8E8_C282, 0x2D14_F172, 0x3463_94EA, 0xCE7B_968E]; + +/// The name a texture of the pools goes by in a model: its key. +pub fn texture_name(key: u64) -> String { + format!("{key:016x}") +} + +/// What a resource starts with. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Root { + Drawable, + Fragment, + Dictionary, +} + +fn system_pointer(d: &[u8], at: usize) -> Option { + let p = d.u64_at(at)?; + (SYSTEM..SYSTEM + MAX_PART).contains(&p).then(|| (p - SYSTEM) as usize) +} + +fn vec3(d: &[u8], at: usize) -> Option<[f32; 3]> { + let f = |o| d.u32_at(at + o).map(f32::from_bits).filter(|v: &f32| v.is_finite() && v.abs() < 1e7); + Some([f(0)?, f(4)?, f(8)?]) +} + +/// Whether a drawable starts at `at`: bounds that make sense, and pointers +/// where it has them. One inside another resource has no page counts. +fn is_drawable(d: &[u8], at: usize, inside: bool) -> bool { + let check = || -> Option { + let (min, max) = (vec3(d, at + 48)?, vec3(d, at + 64)?); + let radius = f32::from_bits(d.u32_at(at + 44)?); + let pages = if inside { d.u64_at(at + 8)? == 0 } else { system_pointer(d, at + 8).is_some() }; + let name = system_pointer(d, at + 168).is_some() || (inside && d.u64_at(at + 168)? == 0); + Some( + d.u64_at(at)? == 0 + && pages + && name + && system_pointer(d, at + 16).is_some() + && system_pointer(d, at + 80).is_some() + && (0..3).all(|i| min[i] <= max[i]) + && (0.0..1e6).contains(&radius), + ) + }; + check().unwrap_or(false) +} + +/// What the resource whose system part starts with these bytes is; `None` +/// if it is no model, or if the bytes end before the drawable of a fragment +/// or the first one of a dictionary. +pub fn root(system: &[u8]) -> Option { + if system.u64_at(0)? != 0 || system_pointer(system, 8).is_none() { + return None; + } + if is_drawable(system, 0, false) { + return Some(Root::Drawable); + } + let optional = |at| system.u64_at(at) == Some(0) || system_pointer(system, at).is_some(); + let counts = |at| system.u16_at(at).filter(|n| *n <= 4096); + if system_pointer(system, 24).is_some() + && system_pointer(system, 168).is_some() + && [16, 32, 40].into_iter().all(optional) + && counts(48)? > 0 + && counts(50).is_some() + && counts(52)? <= counts(54)? + { + // Other resources have pointers and small numbers there too: what + // tells a fragment is the drawable it points to. + return is_drawable(system, system_pointer(system, 24)?, true).then_some(Root::Fragment); + } + let count = system.u16_at(56)?; + let first = || is_drawable(system, system_pointer(system, system_pointer(system, 48)?)?, true).then_some(()); + (count > 0 + && [40, 42, 58].into_iter().all(|at| system.u16_at(at) == Some(count)) + && system_pointer(system, 32).is_some() + && first().is_some()) + .then_some(Root::Dictionary) +} + +/// The name of the model whose system part starts with these bytes: a +/// drawable's or a fragment's own name. `None` for anything else, for a +/// dictionary (its drawables have names, it has none), and when the name +/// lies after these bytes. +pub fn name(system: &[u8]) -> Option { + let text = |pointer_at: usize| -> Option { + let bytes = system.get(system_pointer(system, pointer_at)?..)?; + let bytes = &bytes[..bytes.len().min(256)]; + let name = std::str::from_utf8(&bytes[..bytes.iter().position(|b| *b == 0)?]).ok()?; + (!name.is_empty() && !name.chars().any(char::is_control)).then(|| name.to_owned()) + }; + match root(system)? { + Root::Drawable => text(168), + // The drawable inside is named like the fragment, with `.#ft`. + Root::Fragment => { + system_pointer(system, 24).and_then(|at| text(at + 168)).or_else(|| text(168).map(|n| format!("{n}.#ft"))) + } + Root::Dictionary => None, + } +} + +struct Reader<'a> { + sys: &'a [u8], + gfx: &'a [u8], +} + +impl<'a> Reader<'a> { + /// The system offset a pointer at `at` leads to, with `size` bytes there. + fn s(&self, at: usize, size: usize) -> Result { + let to = system_pointer(self.sys, at).ok_or_else(|| bad("a pointer that leads nowhere"))?; + if to + size > self.sys.len() { Err(bad("a structure outside the resource")) } else { Ok(to) } + } + + /// The bytes of the graphics part a pointer at `at` leads to. + fn g(&self, at: usize, size: usize) -> Result<&'a [u8], ModelError> { + let p = self.sys.u64_at(at).filter(|p| (GRAPHICS..GRAPHICS + MAX_PART).contains(p)); + let to = (p.ok_or_else(|| bad("a buffer that leads nowhere"))? - GRAPHICS) as usize; + self.gfx.get(to..to + size).ok_or(ModelError::Graphics(to + size)) + } + + fn u16(&self, at: usize) -> Result { + self.sys.u16_at(at).map(usize::from).ok_or_else(|| bad("truncated")) + } + + fn u32(&self, at: usize) -> Result { + self.sys.u32_at(at).ok_or_else(|| bad("truncated")) + } + + fn name(&self, at: usize) -> Result { + let from = self.s(at, 1)?; + let bytes = &self.sys[from..self.sys.len().min(from + 256)]; + let len = bytes.iter().position(|b| *b == 0).ok_or_else(|| bad("a name without an end"))?; + Ok(String::from_utf8_lossy(&bytes[..len]).into_owned()) + } + + /// Where a buffer's data is: element count × element size bytes. + fn buffer(&self, at: usize) -> Result<(&'a [u8], usize), ModelError> { + let (count, stride) = (self.u32(at + 8)? as usize, self.u16(at + 12)?); + let len = count.checked_mul(stride).filter(|n| (1..=MAX_PART as usize).contains(n)); + Ok((self.g(at + 24, len.ok_or_else(|| bad("a buffer of an impossible size"))?)?, stride)) + } + + fn drawable(&self, at: usize, fallback_name: &str) -> Result { + if at + 176 > self.sys.len() { + return Err(bad("a drawable outside the resource")); + } + let name = if self.sys.u64_at(at + 168) == Some(0) { fallback_name.to_owned() } else { self.name(at + 168)? }; + let bounds = |o| vec3(self.sys, at + o).ok_or_else(|| bad("bounds that are no numbers")); + // The most detailed level. + let lod = self.s(at + 80, 16)?; + let models = self.u16(lod + 8)?; + if !(1..=256).contains(&models) { + return Err(bad("an impossible number of models")); + } + let list = self.s(lod, models * 8)?; + let mut meshes = Vec::new(); + for m in 0..models { + let model = self.s(list + m * 8, 56)?; + let count = self.u16(model + 16)?; + if !(1..=MAX_MESHES).contains(&count) || meshes.len() + count > MAX_MESHES { + return Err(bad("an impossible number of geometries")); + } + let geometries = self.s(model + 8, count * 8)?; + let shaders = self.s(model + 32, count * 2).ok(); + for g in 0..count { + let mut mesh = self.mesh(self.s(geometries + g * 8, 160)?)?; + mesh.shader = shaders.and_then(|s| self.sys.u16_at(s + g * 2)).unwrap_or(0); + meshes.push(mesh); + } + } + Ok(Drawable { + name, + meshes, + shaders: self.shaders(at).unwrap_or_default(), + textures: None, + bounds_min: bounds(48)?, + bounds_max: bounds(64)?, + skeleton: None, + }) + } + + /// The key of the texture a shader binds to one of the parameters for + /// the base colour. A shader (64 bytes) has its textures at 16 and, at + /// 32, counts and its parameters: 8 bytes each from 8 on, the name hash + /// and a word whose low two bits are 0 for a texture, with its number in + /// the next eight. A texture (80 bytes) points at 48 to its asset, whose + /// second word is the key by which the texture pools know it. + fn base_texture(&self, shader: usize) -> Option { + let info = self.s(shader + 32, 8).ok()?; + let (textures, parameters) = (usize::from(self.sys[info + 1]), usize::from(self.sys[info + 4])); + let list = self.s(shader + 16, textures * 8).ok()?; + let key = |parameter: usize| -> Option<(u32, u64)> { + let at = info + 8 + parameter * 8; + let (name, data) = (self.sys.u32_at(at)?, self.sys.u32_at(at + 4)?); + let number = (data >> 2 & 255) as usize; + if data & 3 != 0 || number >= textures { + return None; + } + let texture = self.s(list + number * 8, 80).ok()?; + let asset = self.s(texture + 48, 16).ok()?; + let key = self.sys.u64_at(asset + 8).filter(|k| *k != 0)?; + // In front of an asset: its kind, 6 for a texture of the pools. + (self.sys.u32_at(asset.checked_sub(16)?)? == 6).then_some((name, key)) + }; + let bound: Vec<(u32, u64)> = (0..parameters).filter_map(key).collect(); + BASE_COLOUR.iter().find_map(|wanted| bound.iter().find(|(name, _)| name == wanted).map(|(_, key)| *key)) + } + + /// The shaders of a drawable, by their name hashes, each with the + /// texture of its base colour: named by its key in the texture pools + /// (16 hexadecimal digits). + fn shaders(&self, drawable: usize) -> Result, ModelError> { + let group = self.s(drawable + 16, 64)?; + let count = self.u16(group + 24)?; + if count == 0 || count > 512 { + return Ok(Vec::new()); + } + let list = self.s(group + 16, count * 8)?; + (0..count) + .map(|i| { + let shader = self.s(list + i * 8, 64)?; + let texture: Vec = self.base_texture(shader).map(texture_name).into_iter().collect(); + let samplers = texture.iter().map(|name| (crate::drawable::param::DIFFUSE_TEX, name.clone())).collect(); + Ok(Shader { name_hash: self.u32(shader)?, textures: texture, samplers }) + }) + .collect() + } + + fn mesh(&self, geometry: usize) -> Result { + let vb = self.s(geometry + 8, 80)?; + let format = self.s(vb + 64, 320)?; + let flags = self.u32(format + 0x138)?; + let vertices = (flags >> 10) as usize; + if flags & 1 == 0 || !(1..=MAX_VERTICES).contains(&vertices) { + return Err(bad("an impossible vertex count")); + } + let (data, _) = self.buffer(vb)?; + let part = |slot: usize| -> (usize, u8, u8) { + let offset = self.sys.u32_at(format + slot * 4).unwrap_or(0) as usize; + (offset, self.sys[format + 0xD0 + slot], self.sys[format + 0x104 + slot]) + }; + let within = |offset: usize, size: usize| { + offset.checked_add(vertices * size).filter(|end| *end <= data.len()).map(|_| offset) + }; + + let (offset, size, encoding) = part(POSITION); + let at = within(offset, usize::from(size)).ok_or_else(|| bad("positions outside their buffer"))?; + let positions: Vec<[f32; 3]> = match (size, encoding) { + (12, 6) => (0..vertices).map(|i| vec3(data, at + i * 12)).collect::>(), + // Fixed point: 24 bits, 24 bits (the lowest byte and two more + // above the first number) and 16 bits. + (8, 16) => (|| { + let (bias, scale, axes) = (vec3(data, 96)?, vec3(data, 112)?, data.u32_at(108)?); + let numbers = data[at..at + vertices * 8].as_chunks::<8>().0; + Some( + numbers + .iter() + .map(|c| { + let q = u64::from_le_bytes(*c); + let parts = [q >> 8 & 0xFF_FFFF, (q >> 32 & 0xFFFF) << 8 | q & 0xFF, q >> 48]; + let p: [f32; 3] = std::array::from_fn(|k| { + (f64::from(bias[k]) + f64::from(scale[k]) * parts[k] as f64) as f32 + }); + match axes { + 0 => [p[2], p[1], p[0]], + 1 => [p[1], p[2], p[0]], + _ => p, + } + }) + .collect(), + ) + })(), + _ => return Err(bad(format!("positions of an unknown kind ({size} bytes, encoding {encoding})"))), + } + .ok_or_else(|| bad("positions that are no numbers"))?; + + let (offset, size, encoding) = part(TEXCOORD); + let uvs: Vec<[f32; 2]> = match (size, encoding, within(offset, usize::from(size))) { + (8, 16, Some(at)) => data[at..at + vertices * 8] + .as_chunks::<8>() + .0 + .iter() + .map(|c| [f32::from_le_bytes([c[0], c[1], c[2], c[3]]), f32::from_le_bytes([c[4], c[5], c[6], c[7]])]) + .collect(), + (4, 38, Some(at)) => { + let scale = data.u32_at(124).map(f32::from_bits).filter(|s| s.is_finite()).unwrap_or(1.0); + let number = |a: u8, b: u8| (f32::from(i16::from_le_bytes([a, b])) / 32767.0).max(-1.0) * scale; + data[at..at + vertices * 4] + .as_chunks::<4>() + .0 + .iter() + .map(|c| [number(c[0], c[1]), number(c[2], c[3])]) + .collect() + } + _ => Vec::new(), + }; + + let descriptor = self.s(geometry + 64, 16)?; + let (index, stride) = self.buffer(self.s(descriptor, 64)?)?; + if stride != 4 { + return Err(bad("an index buffer of an unknown kind")); + } + let indices = clusters(index, vertices)?; + let normals = smooth_normals(&positions, &indices); + Ok(Mesh { positions, normals, uvs, indices, ..Default::default() }) + } +} + +/// The triangles of an index buffer: a word of flags and the cluster count, +/// the triangle count, the count of vertex references; 16 bytes per cluster +/// (vertices and triangles minus one in 7 and 8 bits, then where its +/// references and triangles start); a word per triangle (three 7-bit numbers +/// into the cluster's references, the cluster from bit 21); the references +/// (16 bits each if the top flag is set, else 32). +fn clusters(index: &[u8], vertices: usize) -> Result, ModelError> { + let word = |at: usize| index.u32_at(at).ok_or_else(|| bad("an index buffer that is cut off")); + let flags = word(0)?; + let cluster_count = (flags & if flags & 0x4000_0000 != 0 { 0xFFFF } else { 0x7FFF_FFFF }) as usize; + let (triangles, refs) = (word(4)? as usize, word(8)? as usize); + if !(1..=2048).contains(&cluster_count) || !(1..=65535).contains(&triangles) || !(1..=65535).contains(&refs) { + return Err(bad("impossible counts in an index buffer")); + } + let wide = flags & 0x8000_0000 == 0; + let (triangles_at, refs_at) = (12 + cluster_count * 16, 12 + cluster_count * 16 + triangles * 4); + let reference = |i: usize| -> Result { + let v = if wide { + word(refs_at + i * 4)? + } else { + u32::from(index.u16_at(refs_at + i * 2).ok_or_else(|| bad("truncated"))?) + }; + if (v as usize) < vertices { Ok(v) } else { Err(bad("a triangle with a vertex that does not exist")) } + }; + let mut out = Vec::with_capacity(triangles * 3); + for cluster in 0..cluster_count { + let (counts, starts) = (word(12 + cluster * 16)?, word(16 + cluster * 16)?); + let (own_refs, own_triangles) = ((counts & 127) as usize + 1, (counts >> 7 & 255) as usize + 1); + let (first_ref, first_triangle) = ((starts & 0xFFFF) as usize, (starts >> 16) as usize); + if first_ref + own_refs > refs || first_triangle + own_triangles > triangles { + return Err(bad("a cluster outside its buffer")); + } + for t in first_triangle..first_triangle + own_triangles { + let w = word(triangles_at + t * 4)?; + for corner in 0..3 { + let local = (w >> (corner * 7) & 127) as usize; + if local >= own_refs { + return Err(bad("a triangle outside its cluster")); + } + out.push(reference(first_ref + local)?); + } + } + } + if out.len() != triangles * 3 { + return Err(bad("clusters that do not add up to the triangle count")); + } + Ok(out) +} + +/// A normal per vertex: the sum of the normals of its triangles. +fn smooth_normals(positions: &[[f32; 3]], indices: &[u32]) -> Vec<[f32; 3]> { + let mut normals = vec![[0f32; 3]; positions.len()]; + for t in indices.as_chunks::<3>().0 { + let [a, b, c] = t.map(|i| positions[i as usize]); + let (u, v) = ([b[0] - a[0], b[1] - a[1], b[2] - a[2]], [c[0] - a[0], c[1] - a[1], c[2] - a[2]]); + let n = [u[1] * v[2] - u[2] * v[1], u[2] * v[0] - u[0] * v[2], u[0] * v[1] - u[1] * v[0]]; + for i in t { + for k in 0..3 { + normals[*i as usize][k] += n[k]; + } + } + } + for n in &mut normals { + let len = (n[0] * n[0] + n[1] * n[1] + n[2] * n[2]).sqrt(); + *n = if len > 0.0 { [n[0] / len, n[1] / len, n[2] / len] } else { [0.0, 0.0, 1.0] }; + } + normals +} + +/// Reads the drawables of a resource: one, or those of a dictionary. +/// [`ModelError::Graphics`] says the graphics part is too short. +pub fn parse(system: &[u8], graphics: &[u8]) -> Result, ModelError> { + let reader = Reader { sys: system, gfx: graphics }; + let pages = reader.s(8, 16).map_err(|_| ModelError::NotAModel)?; + if !(1..=32).contains(&system[pages + 8]) || !(1..=32).contains(&system[pages + 9]) { + return Err(ModelError::NotAModel); + } + match root(system).ok_or(ModelError::NotAModel)? { + Root::Drawable => Ok(vec![reader.drawable(0, "")?]), + Root::Fragment => { + let at = reader.s(24, 176)?; + if !is_drawable(system, at, true) { + return Err(ModelError::NotAModel); + } + Ok(vec![reader.drawable(at, &reader.name(168)?)?]) + } + Root::Dictionary => { + let count = reader.u16(56)?; + let list = reader.s(48, count * 8)?; + let mut drawables = Vec::with_capacity(count); + let mut first_error = None; + for i in 0..count { + let at = reader.s(list + i * 8, 176)?; + if !is_drawable(system, at, true) { + return Err(ModelError::NotAModel); + } + match reader.drawable(at, &format!("drawable {i}")) { + Ok(d) => drawables.push(d), + // More graphics data may help; anything else only costs this one. + Err(e @ ModelError::Graphics(_)) => return Err(e), + Err(e) => first_error = first_error.or(Some(e)), + } + } + if drawables.is_empty() { Err(first_error.unwrap_or(ModelError::NotAModel)) } else { Ok(drawables) } + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn put(d: &mut [u8], at: usize, bytes: &[u8]) { + d[at..at + bytes.len()].copy_from_slice(bytes); + } + + fn pointer(d: &mut [u8], at: usize, base: u64, to: usize) { + put(d, at, &(base + to as u64).to_le_bytes()); + } + + /// A drawable with one model of one geometry: a square of two triangles + /// in one cluster, positions as floats, texture coordinates as floats. + fn resource() -> (Vec, Vec) { + let mut s = vec![0u8; 0x800]; + let mut g = vec![0u8; 0x200]; + let (pages, group, lod, models, model, geometries, geometry) = + (0x100, 0x120, 0x180, 0x1A0, 0x1B0, 0x200, 0x210); + let (vb, format, descriptor, ib, name, shaders, shader) = (0x300, 0x380, 0x500, 0x520, 0x580, 0x5A0, 0x5B0); + pointer(&mut s, 8, SYSTEM, pages); + s[pages + 8] = 1; + s[pages + 9] = 1; + pointer(&mut s, 16, SYSTEM, group); + put(&mut s, 44, &2.0f32.to_le_bytes()); + for (i, v) in [0.0f32, 0.0, 0.0].iter().chain(&[0.0]).chain(&[1.0, 1.0, 0.0]).enumerate() { + put(&mut s, 48 + i * 4, &v.to_le_bytes()); + } + pointer(&mut s, 80, SYSTEM, lod); + pointer(&mut s, 168, SYSTEM, name); + put(&mut s, name, b"square\0"); + // One shader. + pointer(&mut s, group + 16, SYSTEM, shaders); + put(&mut s, group + 24, &[1, 0, 1, 0]); + pointer(&mut s, shaders, SYSTEM, shader); + put(&mut s, shader, &0xABCD_1234u32.to_le_bytes()); + pointer(&mut s, lod, SYSTEM, models); + put(&mut s, lod + 8, &[1, 0, 1, 0]); + pointer(&mut s, models, SYSTEM, model); + pointer(&mut s, model + 8, SYSTEM, geometries); + put(&mut s, model + 16, &[1, 0, 1, 0]); + pointer(&mut s, geometries, SYSTEM, geometry); + pointer(&mut s, geometry + 8, SYSTEM, vb); + pointer(&mut s, geometry + 64, SYSTEM, descriptor); + // Vertex buffer: 4 vertices; positions at 0x80, texture coordinates at 0xB0. + put(&mut s, vb + 8, &0x100u32.to_le_bytes()); + put(&mut s, vb + 12, &[1, 0]); + pointer(&mut s, vb + 24, GRAPHICS, 0); + pointer(&mut s, vb + 64, SYSTEM, format); + put(&mut s, format, &0x80u32.to_le_bytes()); + s[format + 0xD0] = 12; + s[format + 0x104] = 6; + put(&mut s, format + TEXCOORD * 4, &0xB0u32.to_le_bytes()); + s[format + 0xD0 + TEXCOORD] = 8; + s[format + 0x104 + TEXCOORD] = 16; + put(&mut s, format + 0x138, &(4u32 << 10 | 1).to_le_bytes()); + let corners = [[0.0f32, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0]]; + for (i, c) in corners.iter().enumerate() { + put(&mut g, 0x80 + i * 12, &c[0].to_le_bytes()); + put(&mut g, 0x84 + i * 12, &c[1].to_le_bytes()); + put(&mut g, 0xB0 + i * 8, &c[0].to_le_bytes()); + put(&mut g, 0xB4 + i * 8, &c[1].to_le_bytes()); + } + // Index buffer at 0x100 of the graphics part: one cluster, two + // triangles, four references of 16 bits. + pointer(&mut s, descriptor, SYSTEM, ib); + put(&mut s, ib + 8, &16u32.to_le_bytes()); + put(&mut s, ib + 12, &[4, 0]); + pointer(&mut s, ib + 24, GRAPHICS, 0x100); + let words = [0x8000_0001u32, 2, 4, (4 - 1) | (2 - 1) << 7, 0, 0, 0, 1 << 7 | 2 << 14, 2 << 7 | 3 << 14]; + for (i, w) in words.iter().enumerate() { + put(&mut g, 0x100 + i * 4, &w.to_le_bytes()); + } + for (i, r) in [0u16, 1, 2, 3].iter().enumerate() { + put(&mut g, 0x100 + 36 + i * 2, &r.to_le_bytes()); + } + (s, g) + } + + #[test] + fn reads_a_drawable() { + let (s, g) = resource(); + assert_eq!(root(&s), Some(Root::Drawable)); + let drawables = parse(&s, &g).unwrap(); + let d = &drawables[0]; + assert_eq!((d.name.as_str(), d.meshes.len(), d.shaders[0].name_hash), ("square", 1, 0xABCD_1234)); + let mesh = &d.meshes[0]; + assert_eq!(mesh.positions, [[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 0.0], [0.0, 1.0, 0.0]]); + assert_eq!(mesh.uvs[2], [1.0, 1.0]); + assert_eq!(mesh.indices, [0, 1, 2, 0, 2, 3]); + assert!(mesh.normals.iter().all(|n| *n == [0.0, 0.0, 1.0])); + assert_eq!(d.bounds_max, [1.0, 1.0, 0.0]); + assert_eq!(name(&s).as_deref(), Some("square")); + assert_eq!(name(&s[..0x400]), None); + } + + #[test] + fn says_when_graphics_data_is_missing() { + let (s, g) = resource(); + assert_eq!(parse(&s, &g[..0x80]).unwrap_err(), ModelError::Graphics(0x100)); + assert_eq!(parse(&s, &g[..0x120]).unwrap_err(), ModelError::Graphics(0x140)); + let mut other = s.clone(); + other[0] = 1; + assert_eq!(root(&other), None); + assert_eq!(parse(&vec![0u8; 0x400], &g).unwrap_err(), ModelError::NotAModel); + } + + #[test] + fn fixed_point_positions() { + let (mut s, mut g) = resource(); + let format = 0x380; + s[format + 0xD0] = 8; + s[format + 0x104] = 16; + // Bias (1, 2, 3), scale (0.5, 0.25, 2), axes as they are. + for (i, v) in [1.0f32, 2.0, 3.0].iter().enumerate() { + put(&mut g, 96 + i * 4, &v.to_le_bytes()); + } + put(&mut g, 108, &2u32.to_le_bytes()); + for (i, v) in [0.5f32, 0.25, 2.0].iter().enumerate() { + put(&mut g, 112 + i * 4, &v.to_le_bytes()); + } + // x = 2, y = 0x000104 (two high bytes 0x0001, low byte 4), z = 3. + let q: u64 = 4 | 2 << 8 | 1 << 32 | 3 << 48; + for i in 0..4 { + put(&mut g, 0x80 + i * 8, &q.to_le_bytes()); + } + let mesh = &parse(&s, &g).unwrap()[0].meshes[0]; + assert_eq!(mesh.positions[0], [1.0 + 0.5 * 2.0, 2.0 + 0.25 * 260.0, 3.0 + 2.0 * 3.0]); + } +} diff --git a/crates/rage-formats/src/lib.rs b/crates/rage-formats/src/lib.rs index 2c65c59..cabe04d 100644 --- a/crates/rage-formats/src/lib.rs +++ b/crates/rage-formats/src/lib.rs @@ -8,9 +8,11 @@ #![forbid(unsafe_code)] pub mod awc; +pub mod bcpack; pub mod clip; pub mod dds; pub mod drawable; +pub mod drawable6; pub mod expression; pub mod geometry; pub mod gltf; @@ -24,11 +26,13 @@ pub mod meta; pub mod model_textures; pub mod names; pub mod paths; +pub mod psin; pub mod pso; pub mod rbf; pub mod sco; pub mod shaders; pub mod texture; +pub mod ttpf; pub mod wad; pub mod wbn; pub mod wdr; diff --git a/crates/rage-formats/src/psin.rs b/crates/rage-formats/src/psin.rs new file mode 100644 index 0000000..9f20b74 --- /dev/null +++ b/crates/rage-formats/src/psin.rs @@ -0,0 +1,695 @@ +//! GTA VI metadata containers (`PSIN` with an `LSCH` schema). +//! +//! The successor of the PSO files of GTA V and RDR2 ([`crate::pso`]): the +//! same magic, another layout. Little-endian, except the offset of the first +//! section and the section sizes. +//! +//! - `PSIN`, then the big-endian offset of the first section. +//! - From 8 on, the block table: rows of 16 bytes (type, size, eight `AA`), +//! ended by `70` bytes up to the next 16-byte boundary. A block's type is +//! the name hash of a struct, a member type below `0x100`, or `0x100 + n`. +//! The blocks follow in this order, each padded to 16 bytes, numbered +//! from 1. +//! - Sections up to the end of the file, each a tag and its big-endian size +//! (tag and size included): `LSCH` (structs of 32 bytes, then all their +//! members of 16), `LENM` (enums of 24 bytes, then all their values of 16), +//! `LRSC` (`0DRP`, and at 16 the number of the root block), and others +//! that are not needed to read the data. +//! +//! A pointer is 64 bits: the block number in the low 20 (0: none), the byte +//! offset in that block above. Names are hashes (case-sensitive joaat); the +//! names themselves are not in the files, so the XML shows `hash_…`. +//! +//! The layout was worked out by the Leonida project (`docs/psin.md`, +//! `tools/psin_data.py`, GPL-3.0), which this reader follows. + +use std::collections::{HashMap, HashSet}; + +use rage_core::bytes::LeRead; + +use crate::xml::{self, Writer}; + +#[derive(Debug, thiserror::Error)] +#[non_exhaustive] +pub enum PsinError { + #[error("invalid PSIN file: {0}")] + Invalid(String), +} + +fn invalid(msg: impl Into) -> PsinError { + PsinError::Invalid(msg.into()) +} + +/// The member that describes the elements of an array or map. +const ELEMENT: u32 = 0x100; +/// Pointers nest at most this deep. +const MAX_DEPTH: usize = 64; + +#[derive(Debug, Clone, Copy)] +struct Member { + name: u32, + offset: usize, + kind: u8, + /// For an array: which member of the struct describes its elements. + index: usize, + /// A struct or enum name, a length, or a map's key and value members. + reference: u32, +} + +#[derive(Debug, Clone)] +struct Struct { + size: usize, + align: usize, + members: Vec, +} + +/// A parsed container. +#[derive(Debug)] +pub struct Psin<'a> { + data: &'a [u8], + structs: HashMap, + /// Per enum: value and the hash of its name. + enums: HashMap>, + /// Per block: type, offset in the file, size. + blocks: Vec<(u32, usize, usize)>, + root: usize, +} + +/// Whether this is a container of the GTA VI kind: `PSIN`, and `LSCH` where +/// the header says the sections start. +pub fn is_psin(data: &[u8]) -> bool { + data.starts_with(b"PSIN") && be32(data, 4).and_then(|first| data.get(first..first + 4)) == Some(b"LSCH") +} + +fn be32(d: &[u8], at: usize) -> Option { + Some(u32::from_be_bytes(d.get(at..at + 4)?.try_into().ok()?) as usize) +} + +/// How many headers a schema section has: the one count whose headers and +/// the elements they announce fill it exactly. +fn header_count(d: &[u8], header: usize, element: usize, count_at: usize, wide: bool) -> Option { + if d.is_empty() { + return Some(0); + } + let mut elements = 0usize; + for k in 1..=d.len() / header { + let at = header * (k - 1) + count_at; + elements += if wide { d.u32_at(at)? as usize } else { usize::from(d.u16_at(at)?) }; + if header * k + element * elements == d.len() { + return Some(k); + } + } + None +} + +pub fn parse(data: &[u8]) -> Result, PsinError> { + if !is_psin(data) { + return Err(invalid("no LSCH section")); + } + let first = be32(data, 4).ok_or_else(|| invalid("truncated"))?; + let mut sections: HashMap<&[u8], &[u8]> = HashMap::new(); + let mut at = first; + while let Some(tag) = data.get(at..at + 4) { + let size = be32(data, at + 4).ok_or_else(|| invalid("truncated section"))?; + let payload = (size >= 8).then(|| data.get(at + 8..at + size)).flatten(); + sections.insert(tag, payload.ok_or_else(|| invalid("the file is cut off inside a section"))?); + at += size; + } + + let lsch = sections[&b"LSCH"[..]]; + let count = header_count(lsch, 32, 16, 30, false).ok_or_else(|| invalid("no struct count fills LSCH"))?; + let mut structs = HashMap::new(); + let mut member = 32 * count; + for h in lsch[..32 * count].as_chunks::<32>().0 { + let members = (0..usize::from(u16::from_le_bytes([h[30], h[31]]))) + .map(|i| { + let m = &lsch[member + 16 * i..member + 16 * i + 16]; + Member { + name: m.u32_at(0).unwrap_or(0), + offset: m.u32_at(4).unwrap_or(0) as usize, + kind: m[8], + index: usize::from(m.u16_at(10).unwrap_or(0)), + reference: m.u32_at(12).unwrap_or(0), + } + }) + .collect::>(); + member += 16 * members.len(); + let (name, size) = (h.u32_at(0).unwrap_or(0), h.u32_at(24).unwrap_or(0) as usize); + structs.insert(name, Struct { size, align: 1 << h[9].min(4), members }); + } + + let mut enums = HashMap::new(); + if let Some(lenm) = sections.get(&b"LENM"[..]) { + let count = header_count(lenm, 24, 16, 16, true).ok_or_else(|| invalid("no enum count fills LENM"))?; + let mut value = 24 * count; + for h in lenm[..24 * count].as_chunks::<24>().0 { + let n = h.u32_at(16).unwrap_or(0) as usize; + let values = lenm[value..value + 16 * n] + .as_chunks::<16>() + .0 + .iter() + .map(|v| (v.u64_at(0).unwrap_or(0) as i64, v.u32_at(8).unwrap_or(0))) + .collect(); + value += 16 * n; + enums.insert(h.u32_at(0).unwrap_or(0), values); + } + } + + // The block table, then the blocks. + let mut rows = Vec::new(); + let mut at = 8; + loop { + let kind = data.u32_at(at).filter(|_| at + 8 <= first).ok_or_else(|| invalid("block table without end"))?; + if kind == 0x7070_7070 { + break; + } + let size = data.u32_at(at + 4).filter(|_| at + 16 <= first).ok_or_else(|| invalid("block table cut off"))?; + rows.push((kind, size as usize)); + at += 16; + } + at = at.next_multiple_of(16); + let mut blocks = Vec::with_capacity(rows.len()); + for (kind, size) in rows { + if at + size > first { + return Err(invalid("a block ends after the first section")); + } + blocks.push((kind, at, size)); + at += size.next_multiple_of(16); + } + + let lrsc = sections.get(&b"LRSC"[..]).filter(|s| s.starts_with(b"0DRP")); + let root = lrsc.and_then(|s| s.u32_at(0x10)).ok_or_else(|| invalid("no root (LRSC section)"))? as usize; + match blocks.get(root.wrapping_sub(1)) { + Some((kind, ..)) if structs.contains_key(kind) => {} + _ => return Err(invalid("the root is not a struct block")), + } + Ok(Psin { data, structs, enums, blocks, root }) +} + +fn hash_name(hash: u32) -> String { + format!("hash_{hash:08X}") +} + +impl Psin<'_> { + /// The name (as a hash) of the root struct. + pub fn root_type(&self) -> String { + hash_name(self.blocks[self.root - 1].0) + } + + pub fn to_xml(&self) -> (String, Vec) { + let mut w = Writer::new(); + let (kind, at, _) = self.blocks[self.root - 1]; + let name = hash_name(kind); + let mut open = HashSet::new(); + self.members(&mut w, 0, &name, &name, kind, at, &mut open); + w.finish() + } + + /// Size of a member's value in its struct, if its type is understood. + fn size_of(&self, m: &Member) -> Option { + Some(match m.kind { + 0x01 | 0x10 | 0x11 | 0x60 | 0x63 => 1, + 0x12 | 0x13 | 0x20 | 0x64 => 2, + 0x14 | 0x15 | 0x21 | 0x4A | 0x4B | 0x4D | 0x62 | 0x65 => 4, + 0x07 | 0x08 | 0x16 | 0x17 | 0x30 | 0x42 | 0x4F | 0x68 => 8, + 0x32 => 12, + 0x0C | 0x0D | 0x31 | 0x33 | 0x34 | 0x35 | 0x44 | 0x52 | 0x5C | 0x73 | 0x75 => 16, + 0x71 => 24, + 0x36 => 64, + 0x05 => self.structs.get(&m.reference)?.size, + 0x40 => m.reference as usize, + _ => return None, + }) + } + + fn align_of(&self, m: &Member) -> usize { + match m.kind { + 0x05 => self.structs.get(&m.reference).map_or(8, |s| s.align), + 0x0C | 0x0D | 0x31 | 0x33 | 0x34 | 0x35 | 0x36 => 16, + 0x32 => 4, + 0x40 => 1, + _ => self.size_of(m).filter(|n| matches!(n, 1 | 2 | 4)).unwrap_or(8), + } + } + + /// Where a pointer leads: the block's type, the offset in the file, and + /// the end of the block. `None` for no target or one outside its block. + fn pointer(&self, at: usize) -> Option<(u32, usize, usize)> { + let v = self.data.u64_at(at)?; + let (number, offset) = ((v & 0xF_FFFF) as usize, usize::try_from(v >> 20).ok()?); + let (kind, base, size) = *self.blocks.get(number.checked_sub(1)?)?; + (offset < size).then_some((kind, base + offset, base + size)) + } + + /// The end of the block that holds `at`. + fn block_end(&self, at: usize) -> Option { + self.blocks.iter().find(|(_, base, size)| (*base..*base + *size).contains(&at)).map(|(_, b, s)| b + s) + } + + fn string_at(&self, at: usize, end: usize) -> Option { + let bytes = self.data.get(at..end)?; + let len = bytes.iter().position(|b| *b == 0)?; + Some(String::from_utf8_lossy(&bytes[..len]).into_owned()) + } + + fn floats(&self, at: usize, n: usize) -> Option> { + (0..n).map(|i| Some(xml::float(f32::from_bits(self.data.u32_at(at + 4 * i)?)))).collect() + } + + /// Writes a struct: its members between an opening and a closing tag. + #[allow(clippy::too_many_arguments)] + fn members( + &self, + w: &mut Writer, + level: usize, + tag: &str, + name: &str, + kind: u32, + at: usize, + open: &mut HashSet<(u32, usize)>, + ) { + let Some(s) = self.structs.get(&kind) else { + return w.error(level, format!("{name}: struct {} is not described in this file", hash_name(kind))); + }; + if self.data.len() < at + s.size { + return w.error(level, format!("{name}: outside the file")); + } + // A struct that points back to itself, or far too deep. + if open.len() > MAX_DEPTH || !open.insert((kind, at)) { + return w.error(level, format!("{name}: refers back to itself")); + } + if s.members.iter().all(|m| m.name == ELEMENT) { + w.empty(level, tag); + } else { + w.open(level, tag); + for m in s.members.iter().filter(|m| m.name != ELEMENT) { + if w.full() { + break; + } + self.value(w, level + 1, &hash_name(m.name), m, &s.members, at + m.offset, open); + } + w.close(level, name); + } + open.remove(&(kind, at)); + } + + /// Writes one value: a member of a struct, or an element of an array. + #[allow(clippy::too_many_arguments)] + fn value( + &self, + w: &mut Writer, + level: usize, + name: &str, + m: &Member, + members: &[Member], + at: usize, + open: &mut HashSet<(u32, usize)>, + ) { + let d = self.data; + let missing = |w: &mut Writer| w.error(level, format!("{name}: outside the file")); + let number = |w: &mut Writer, v: Option| match v { + Some(v) => w.value(level, name, &v), + None => w.error(level, format!("{name}: outside the file")), + }; + match m.kind { + 0x01 => number(w, d.get(at).map(|b| (*b != 0).to_string())), + 0x10 => number(w, d.get(at).map(|b| (*b as i8).to_string())), + 0x11 => number(w, d.get(at).map(u8::to_string)), + 0x12 => number(w, d.u16_at(at).map(|v| (v as i16).to_string())), + 0x13 => number(w, d.u16_at(at).map(|v| v.to_string())), + 0x14 => number(w, d.u32_at(at).map(|v| (v as i32).to_string())), + 0x15 => number(w, d.u32_at(at).map(|v| v.to_string())), + 0x16 | 0x08 => number(w, d.u64_at(at).map(|v| (v as i64).to_string())), + 0x17 => number(w, d.u64_at(at).map(|v| v.to_string())), + 0x20 => number(w, d.u16_at(at).map(|v| xml::float(half(v)))), + 0x21 => number(w, self.floats(at, 1).map(|f| f[0].clone())), + 0x4A | 0x4B | 0x4D => number(w, d.u32_at(at).map(|v| format!("0x{v:08X}"))), + 0x4F => number(w, d.u64_at(at).map(|v| format!("0x{v:016X}"))), + 0x30 | 0x32 | 0x31 | 0x33 | 0x34 | 0x35 | 0x0C | 0x0D => { + let n = match m.kind { + 0x30 => 2, + 0x32 => 3, + _ => 4, + }; + match self.floats(at, n) { + Some(f) => { + let parts: Vec = + f.iter().zip(["x", "y", "z", "w"]).map(|(v, axis)| format!("{axis}=\"{v}\"")).collect(); + w.empty(level, &format!("{name} {}", parts.join(" "))); + } + None => missing(w), + } + } + 0x36 => match self.floats(at, 16) { + Some(f) => w.raw_array(level, name, &f, 4), + None => missing(w), + }, + 0x60 | 0x63 | 0x64 | 0x62 | 0x65 | 0x68 => self.enumeration(w, level, name, m, at), + 0x05 => self.members(w, level, name, name, m.reference, at, open), + 0x07 => match self.pointer(at) { + Some((kind, target, _)) => { + let tag = format!("{name} type=\"{}\"", hash_name(kind)); + self.members(w, level, &tag, name, kind, target, open); + } + None => w.empty(level, name), + }, + 0x44 if d.get(at + 15).is_some_and(|b| b & 0x80 != 0) => { + let len = usize::from(d[at + 15] & 0x7F).min(15); + w.string(level, name, &String::from_utf8_lossy(&d[at..at + len])); + } + 0x42 | 0x44 => match self.pointer(at) { + Some((_, target, end)) => match self.string_at(target, end) { + Some(text) => w.string(level, name, &text), + None => w.error(level, format!("{name}: a string without an end")), + }, + None => w.empty(level, name), + }, + 0x40 => match d.get(at..at + m.reference as usize) { + Some(bytes) => { + let len = bytes.iter().position(|b| *b == 0).unwrap_or(bytes.len()); + w.string(level, name, &String::from_utf8_lossy(&bytes[..len])); + } + None => missing(w), + }, + 0x50 | 0x53 | 0x54 | 0x5C | 0x52 => self.array(w, level, name, m, members, at, open), + 0x71 | 0x73 | 0x75 => self.map(w, level, name, m, members, at, open), + other => w.error(level, format!("{name}: type {other:#04x} is not understood")), + } + } + + fn enumeration(&self, w: &mut Writer, level: usize, name: &str, m: &Member, at: usize) { + let d = self.data; + let raw = match m.kind { + 0x60 | 0x63 => d.get(at).map(|b| i64::from(*b)), + 0x64 => d.u16_at(at).map(i64::from), + 0x62 => d.u32_at(at).map(|v| i64::from(v as i32)), + 0x65 => d.u32_at(at).map(i64::from), + _ => d.u64_at(at).map(|v| v as i64), + }; + let Some(raw) = raw else { return w.error(level, format!("{name}: outside the file")) }; + let values = self.enums.get(&m.reference).map(Vec::as_slice).unwrap_or_default(); + // A set of flags: the names of the bits that are set. + if m.kind == 0x65 { + let flags: Vec = (0..32) + .filter(|bit| raw >> bit & 1 != 0) + .map(|bit| match values.iter().find(|(v, _)| *v == bit) { + Some((_, hash)) => hash_name(*hash), + None => format!("bit{bit}"), + }) + .collect(); + return w.value(level, name, &flags.join(" ")); + } + // A 32-bit enum lists its values as negative numbers or as numbers + // from 2^31 on. + let listed = values.iter().find(|(v, _)| *v == raw || (m.kind == 0x62 && *v == i64::from(raw as i32 as u32))); + match listed { + Some((_, hash)) => w.value(level, name, &hash_name(*hash)), + None => w.value(level, name, &raw.to_string()), + } + } + + #[allow(clippy::too_many_arguments)] + fn array( + &self, + w: &mut Writer, + level: usize, + name: &str, + m: &Member, + members: &[Member], + at: usize, + open: &mut HashSet<(u32, usize)>, + ) { + let d = self.data; + let element = members.get(m.index).filter(|e| e.name == ELEMENT); + // An empty array may name a struct that this file does not describe. + let empty = match m.kind { + 0x5C => d.u32_at(at) == Some(0), + 0x52 => d.u16_at(at + 8) == Some(0), + _ => false, + }; + if empty { + return w.empty(level, name); + } + let Some((element, size)) = element.and_then(|e| Some((e, self.size_of(e).filter(|s| *s > 0)?))) else { + let kind = members.get(m.index).map_or(0, |e| e.kind); + return w.error(level, format!("{name}: an array of type {kind:#04x}, which is not understood")); + }; + let bad = |w: &mut Writer| w.error(level, format!("{name}: array outside its block")); + // Where the elements are, how many, and where their block ends. + let (start, count, end) = match m.kind { + 0x50 | 0x53 => (at, (m.reference & 0xFFFF) as usize, self.block_end(at)), + 0x54 => { + let (Some(capacity), Some(count)) = (d.u32_at(at), d.u32_at(at + 4)) else { return bad(w) }; + (at + 8, count.min(capacity) as usize, self.block_end(at)) + } + _ => { + let (count, pointer) = if m.kind == 0x5C { + (d.u32_at(at).map(|c| c as usize), at + 8) + } else { + (d.u16_at(at + 8).map(usize::from), at) + }; + let Some(count) = count else { return bad(w) }; + if count == 0 { + return w.empty(level, name); + } + match self.pointer(pointer) { + Some((_, target, end)) => (target, count, Some(end)), + None => return bad(w), + } + } + }; + if end.is_none_or(|end| start + size * count > end) { + return bad(w); + } + if count == 0 { + return w.empty(level, name); + } + w.open(level, name); + for i in 0..count { + if w.full() { + break; + } + self.value(w, level + 1, "Item", element, members, start + i * size, open); + } + w.close(level, name); + } + + #[allow(clippy::too_many_arguments)] + fn map( + &self, + w: &mut Writer, + level: usize, + name: &str, + m: &Member, + members: &[Member], + at: usize, + open: &mut HashSet<(u32, usize)>, + ) { + let d = self.data; + let part = |i: u32| members.get(i as usize).filter(|e| e.name == ELEMENT); + let (Some(key), Some(value)) = (part(m.reference & 0xFFFF), part(m.reference >> 16)) else { + return w.error(level, format!("{name}: a map without a description of its entries")); + }; + let (Some(key_size), Some(value_size)) = (self.size_of(key), self.size_of(value)) else { + return w.error(level, format!("{name}: a map of types that are not understood")); + }; + // The value starts where its alignment allows; the pair is rounded + // up to the larger alignment. + let value_at = key_size.next_multiple_of(self.align_of(value)); + let pair = (value_at + value_size).next_multiple_of(self.align_of(key).max(self.align_of(value))); + let bad = |w: &mut Writer| w.error(level, format!("{name}: map outside its block")); + let mut pairs = Vec::new(); + match m.kind { + // Pairs sorted by key. + 0x71 => { + let Some(count) = d.u16_at(at + 16).map(usize::from) else { return bad(w) }; + if count > 0 { + let Some((_, start, end)) = self.pointer(at + 8) else { return bad(w) }; + if start + count * pair > end.next_multiple_of(16) { + return bad(w); + } + pairs.extend((0..count).map(|i| start + i * pair)); + } + } + // Groups of 16 control bytes and 16 pairs; bit 7 marks a free one. + 0x75 => { + let (Some(groups), Some(count)) = (d.u32_at(at), d.u32_at(at + 4)) else { return bad(w) }; + if count > 0 { + let group = 16 + 16 * pair; + let Some((_, start, end)) = self.pointer(at + 8) else { return bad(w) }; + if start + groups as usize * group > end.next_multiple_of(16) { + return bad(w); + } + for g in 0..groups as usize { + let base = start + g * group; + pairs.extend((0..16).filter(|i| d[base + i] & 0x80 == 0).map(|i| base + 16 + i * pair)); + } + } + } + // Slots; a key of zeros marks a free one. + _ => { + let (Some(capacity), Some(count)) = (d.u32_at(at), d.u32_at(at + 4)) else { return bad(w) }; + if count > 0 { + let Some((_, start, end)) = self.pointer(at + 8) else { return bad(w) }; + if start + capacity as usize * pair > end.next_multiple_of(16) { + return bad(w); + } + let used = |slot: &usize| d[*slot..*slot + key_size].iter().any(|b| *b != 0); + pairs.extend((0..capacity as usize).map(|i| start + i * pair).filter(used)); + } + } + } + if pairs.iter().any(|p| p + pair > d.len()) { + return bad(w); + } + if pairs.is_empty() { + return w.empty(level, name); + } + w.open(level, name); + for at in pairs { + if w.full() { + break; + } + w.open(level + 1, "Item"); + self.value(w, level + 2, "key", key, members, at, open); + self.value(w, level + 2, "value", value, members, at + value_at, open); + w.close(level + 1, "Item"); + } + w.close(level, name); + } +} + +/// A 16-bit float. +fn half(v: u16) -> f32 { + let (sign, exponent, fraction) = (v >> 15, i32::from(v >> 10 & 0x1F), f32::from(v & 0x3FF)); + let magnitude = match exponent { + 0 => fraction / 1024.0 * 2f32.powi(-14), + 31 if fraction == 0.0 => f32::INFINITY, + 31 => f32::NAN, + e => (1.0 + fraction / 1024.0) * 2f32.powi(e - 15), + }; + if sign == 1 { -magnitude } else { magnitude } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn section(tag: &[u8; 4], payload: &[u8]) -> Vec { + let mut out = tag.to_vec(); + out.extend_from_slice(&(payload.len() as u32 + 8).to_be_bytes()); + out.extend_from_slice(payload); + out + } + + fn member(name: u32, offset: u32, kind: u8, index: u16, reference: u32) -> Vec { + let mut m = Vec::new(); + m.extend_from_slice(&name.to_le_bytes()); + m.extend_from_slice(&offset.to_le_bytes()); + m.extend_from_slice(&[kind, 0]); + m.extend_from_slice(&index.to_le_bytes()); + m.extend_from_slice(&reference.to_le_bytes()); + m + } + + /// A root struct with a number, a float, an enum, a string pointer and + /// an array of numbers in a second block. + fn container() -> Vec { + let pointer = |block: u64, offset: u64| (block | offset << 20).to_le_bytes(); + let mut root = Vec::new(); + root.extend_from_slice(&(-5i32).to_le_bytes()); // 0: s32 + root.extend_from_slice(&1.5f32.to_le_bytes()); // 4: f32 + root.extend_from_slice(&2u32.to_le_bytes()); // 8: enum + root.extend_from_slice(&[0; 4]); + root.extend_from_slice(&pointer(2, 0)); // 16: string + root.extend_from_slice(&3u32.to_le_bytes()); // 24: array {count, capacity, pointer} + root.extend_from_slice(&4u32.to_le_bytes()); + root.extend_from_slice(&pointer(3, 2)); + let blocks: [(u32, Vec); 3] = + [(0xAA01, root), (0x10, b"hello\0".to_vec()), (0x13, vec![9, 9, 1, 0, 2, 0, 3, 0])]; + + let mut out = b"PSIN\0\0\0\0".to_vec(); + for (kind, data) in &blocks { + out.extend_from_slice(&kind.to_le_bytes()); + out.extend_from_slice(&(data.len() as u32).to_le_bytes()); + out.extend_from_slice(&[0xAA; 8]); + } + out.extend_from_slice(&[0x70; 8]); + for (_, data) in &blocks { + out.extend_from_slice(data); + out.resize(out.len().next_multiple_of(16), 0); + } + let first = out.len() as u32; + out[4..8].copy_from_slice(&first.to_be_bytes()); + + let mut lsch = Vec::new(); + lsch.extend_from_slice(&0xAA01u32.to_le_bytes()); + lsch.extend_from_slice(&[0; 5]); + lsch.push(3); // aligned to 8 + lsch.extend_from_slice(&[0; 6]); + lsch.extend_from_slice(&[0xAA; 8]); + lsch.extend_from_slice(&40u32.to_le_bytes()); + lsch.extend_from_slice(&[0, 0, 6, 0]); + lsch.extend(member(0x11, 0, 0x14, 0, 0)); + lsch.extend(member(0x22, 4, 0x21, 0, 0)); + lsch.extend(member(0x33, 8, 0x62, 0, 0xE001)); + lsch.extend(member(0x44, 16, 0x42, 0, 0)); + lsch.extend(member(0x55, 24, 0x5C, 5, 0)); + lsch.extend(member(ELEMENT, 0, 0x13, 0, 0)); + let mut lenm = Vec::new(); + lenm.extend_from_slice(&0xE001u32.to_le_bytes()); + lenm.extend_from_slice(&[0; 4]); + lenm.extend_from_slice(&[0xEE; 8]); + lenm.extend_from_slice(&1u32.to_le_bytes()); + lenm.extend_from_slice(&[0; 4]); + lenm.extend_from_slice(&2i64.to_le_bytes()); + lenm.extend_from_slice(&0xBEEFu64.to_le_bytes()); + let mut lrsc = b"0DRP".to_vec(); + lrsc.extend_from_slice(&122u32.to_le_bytes()); + lrsc.extend_from_slice(&[0; 8]); + lrsc.extend_from_slice(&1u32.to_le_bytes()); + out.extend(section(b"LSCH", &lsch)); + out.extend(section(b"LENM", &lenm)); + out.extend(section(b"LGID", &[])); + out.extend(section(b"LRSC", &lrsc)); + out + } + + #[test] + fn reads_a_container_as_xml() { + let data = container(); + assert!(is_psin(&data)); + let psin = parse(&data).unwrap(); + assert_eq!(psin.root_type(), "hash_0000AA01"); + let (text, errors) = psin.to_xml(); + assert!(errors.is_empty(), "{errors:?}"); + for line in [ + "", + " ", + " ", + " ", + " hello", + " ", + " ", + "", + ] { + assert!(text.contains(line), "{line} is missing in\n{text}"); + } + } + + #[test] + fn rejects_what_is_cut_off() { + let data = container(); + assert!(parse(&data[..data.len() - 4]).is_err()); + assert!(!is_psin(b"PSIN\0\0\0\x10PMAP")); + let mut no_root = data.clone(); + let at = no_root.len() - 4; + no_root[at] = 9; + assert!(parse(&no_root).is_err()); + } + + #[test] + fn half_floats() { + assert_eq!((half(0x3C00), half(0xC000), half(0x0000), half(0x3800)), (1.0, -2.0, 0.0, 0.5)); + } +} diff --git a/crates/rage-formats/src/rbf.rs b/crates/rage-formats/src/rbf.rs index d987f19..2ffd6ef 100644 --- a/crates/rage-formats/src/rbf.rs +++ b/crates/rage-formats/src/rbf.rs @@ -8,6 +8,9 @@ //! `0x60` string (u16 length + ASCII). `FD FF` + i32 length + bytes is element //! content; `FF FF` closes the current element. The first `n` values after an //! element (its attribute count) are its attributes. +//! +//! GTA VI: most files have `FB FF 01 00` after the magic, and with it +//! integers and floats of 8 bytes instead of 4. use crate::xml::{self, Writer}; @@ -24,6 +27,10 @@ pub enum RbfError { pub enum Value { Element(Element), Uint(String, u32), + /// GTA VI: an 8-byte integer. + Uint64(String, u64), + /// GTA VI: an 8-byte float. + Float64(String, f64), Bool(String, bool), Float(String, f32), Float3(String, [f32; 3]), @@ -84,6 +91,12 @@ impl Reader<'_> { fn f32(&mut self) -> Result { Ok(f32::from_bits(self.u32()?)) } + fn u64(&mut self) -> Result { + Ok(u64::from_le_bytes(self.take(8)?.try_into().unwrap_or_default())) + } + fn f64(&mut self) -> Result { + Ok(f64::from_bits(self.u64()?)) + } fn string(&mut self) -> Result { let n = self.u16()? as usize; Ok(String::from_utf8_lossy(self.take(n)?).into_owned()) @@ -95,7 +108,9 @@ pub fn parse(data: &[u8]) -> Result { if !is_rbf(data) { return Err(RbfError::Invalid("missing RBF0 header".into())); } - let mut r = Reader { d: data, pos: 4 }; + // GTA VI: with these four bytes, numbers take 8 bytes. + let wide = data.get(4..8) == Some(&[0xFB, 0xFF, 0x01, 0x00]); + let mut r = Reader { d: data, pos: if wide { 8 } else { 4 } }; let mut names: Vec = Vec::new(); let mut stack: Vec = Vec::new(); while r.pos < data.len() { @@ -139,6 +154,9 @@ pub fn parse(data: &[u8]) -> Result { stack.push(Element { name, pending, ..Default::default() }); continue; } + 0x10 if wide => Value::Uint64(name, r.u64()?), + 0x40 if wide => Value::Float64(name, r.f64()?), + 0x50 if wide => Value::Float3(name, [r.f64()? as f32, r.f64()? as f32, r.f64()? as f32]), 0x10 => Value::Uint(name, r.u32()?), 0x20 => Value::Bool(name, true), 0x30 => Value::Bool(name, false), @@ -163,6 +181,16 @@ pub fn to_xml(data: &[u8]) -> Result<(String, Vec, String), RbfError> { Ok((text, errors, root.name)) } +/// An 8-byte float as text: like a 4-byte one when it is one exactly. +fn float64(v: f64) -> String { + if f64::from(v as f32) == v { xml::float(v as f32) } else { v.to_string() } +} + +/// An 8-byte integer as text: small ones as numbers, the rest (hashes) in hex. +fn uint64(v: u64) -> String { + if v < 1 << 31 { v.to_string() } else { format!("0x{v:016X}") } +} + fn bool_text(b: bool) -> &'static str { if b { "True" } else { "False" } } @@ -174,6 +202,8 @@ fn write(w: &mut Writer, level: usize, e: &Element) { Value::Str(n, v) => (n, xml::escape(v)), Value::Float(n, v) => (n, xml::float(*v)), Value::Uint(n, v) => (n, v.to_string()), + Value::Uint64(n, v) => (n, uint64(*v)), + Value::Float64(n, v) => (n, float64(*v)), Value::Bool(n, v) => (n, bool_text(*v).to_owned()), _ => continue, }; @@ -203,10 +233,14 @@ fn write(w: &mut Writer, level: usize, e: &Element) { } // Matrices and float lists: little-endian floats, a row per line // (matrix34: the three axes and the position). - Some(kind @ ("matrix34" | "matrix44" | "float_array" | "vector3_array" | "vector4_array")) => { + Some( + kind @ ("matrix34" | "matrix44" | "float_array" | "vector2_array" | "vec2v_array" | "vector3_array" + | "vector4_array"), + ) => { let per_row = match kind { "matrix34" | "vector3_array" => 3, "float_array" => 1, + "vector2_array" | "vec2v_array" => 2, _ => 4, }; let floats: Vec = @@ -222,6 +256,8 @@ fn write(w: &mut Writer, level: usize, e: &Element) { }, Value::Element(c) => write(w, inner, c), Value::Uint(n, v) => w.value(inner, n, &format!("0x{v:08X}")), + Value::Uint64(n, v) => w.value(inner, n, &uint64(*v)), + Value::Float64(n, v) => w.value(inner, n, &float64(*v)), Value::Bool(n, v) => w.value(inner, n, bool_text(*v)), Value::Float(n, v) => w.value(inner, n, &xml::float(*v)), Value::Float3(n, v) => w.empty( @@ -254,4 +290,25 @@ mod tests { assert!(errors.is_empty()); assert!(text.contains("\n \n"), "{text}"); } + + /// GTA VI: 8-byte numbers after the four bytes that announce them. + #[test] + fn parses_wide_numbers() { + let mut d = b"RBF0\xFB\xFF\x01\x00".to_vec(); + d.extend([0, 0, 1, 0, b'r', 0, 0, 0, 0, 1, 0]); + d.extend([1, 0x10, 1, 0, b'n']); + d.extend(7u64.to_le_bytes()); + d.extend([2, 0x40, 1, 0, b'v']); + d.extend(0.25f64.to_le_bytes()); + // The same name with another type, as GTA VI's files have it. + d.extend([2, 0x10]); + d.extend(u64::MAX.to_le_bytes()); + d.extend([0xFF, 0xFF]); + let (text, errors, _) = to_xml(&d).unwrap(); + assert!(errors.is_empty()); + assert!( + text.contains("\n \n \n"), + "{text}" + ); + } } diff --git a/crates/rage-formats/src/ttpf.rs b/crates/rage-formats/src/ttpf.rs new file mode 100644 index 0000000..ec076a3 --- /dev/null +++ b/crates/rage-formats/src/ttpf.rs @@ -0,0 +1,673 @@ +//! GTA VI texture pools (`.ttpf`, magic `RDS5`). +//! +//! GTA VI keeps its textures outside the archives, in pools below +//! `data/ttdb`. A pool is a virtual address space cut into chunks, with a +//! list of textures that says where in that space each one lives. +//! +//! Layout (little-endian): +//! - `RDS5`, entry count, virtual size (56 bits; the top byte is 22). +//! - From 24 on, a 64-bit word per chunk and a last one that marks the end +//! of the file: the offset in the file in units of 256 bytes (26 bits), +//! the codec (4 bits: 0 stored, 8 zlib, 1 to 7 BCPack), the virtual +//! address in pages of 4 KiB (22 bits), and the bytes of padding at the +//! end of the chunk's file range (12 bits). +//! - On the next multiple of 256: `ETPF`, version 634, texture count, size +//! of the records that follow, 16 bytes per texture: width and height +//! (14 bits each, minus one), mip levels, format (DXGI), depth, shape, +//! tiling mode, and the address of its allocation in pages. Then a 64-bit +//! key per texture: models name their textures by these. +//! +//! A texture's allocation holds its mip levels the way the console's GPU +//! stores them (AMD's "Gfx10" layout): the large levels one after the other, +//! smallest first, each cut into tiles of 4 or 64 KiB whose elements are in +//! a bit-interleaved order; the small levels share the one tile in front. +//! [`Pool::texture`] undoes that and returns ordinary rows of pixels or +//! blocks. +//! +//! Chunks packed with BCPack go through [`crate::bcpack`]. Not read: BCPack +//! for BC6H and BC7 (a texture is then read from its largest level that is +//! packed otherwise), and volumes. +//! +//! The format was worked out by the Leonida project (`docs/textures.md`, +//! GPL-3.0); this reader follows its `tools/ttpf_mips.py` and +//! `tools/tex_headers.py`. + +use std::fs::File; +use std::io::{Read, Seek, SeekFrom}; +use std::path::Path; +use std::sync::Mutex; + +use rage_core::bytes::LeRead; + +use crate::texture::{Dimension, Format, Texture}; + +#[derive(Debug, thiserror::Error)] +#[non_exhaustive] +pub enum TtpfError { + #[error("not a texture pool: {0}")] + Invalid(String), + #[error("{0}")] + Unsupported(String), + #[error(transparent)] + Io(#[from] std::io::Error), +} + +fn invalid(msg: impl Into) -> TtpfError { + TtpfError::Invalid(msg.into()) +} + +fn unsupported(msg: impl Into) -> TtpfError { + TtpfError::Unsupported(msg.into()) +} + +const ETPF_VERSION: u32 = 634; +/// No chunk unpacks to more than this. +const MAX_CHUNK: usize = 256 << 20; +const MAX_TEXTURES: usize = 250_000; + +/// One chunk of the pool's virtual space. +#[derive(Debug, Clone, Copy)] +struct Chunk { + /// Virtual address and size. + address: u64, + size: usize, + /// Where it is in the file, and how many bytes. + offset: u64, + packed: usize, + codec: u8, +} + +/// What the pool says about a texture. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct Descriptor { + pub width: u32, + pub height: u32, + pub mips: u32, + /// DXGI format code. + pub format: u32, + /// Slices of an array or volume; 6 for a cube map. + pub depth: u32, + /// 1: 2D (an array if `depth` is more than 1), 2: cube map, 3: volume. + pub dimension: u32, + /// Tiling mode: a flag and, from bit 1, the GPU's tile mode. + pub mode: u32, + /// For a cube map: how many smaller copies of it come before the full one. + pub earlier_copies: u32, + /// Virtual address of its allocation; `None` when it has none. + pub base: Option, +} + +impl Descriptor { + fn parse(r: &[u8]) -> Descriptor { + let (a, b, c) = (r.u32_at(0).unwrap_or(0), r.u32_at(4).unwrap_or(0), r.u32_at(8).unwrap_or(0)); + let page = c & 0x1F_FFFF; + Descriptor { + width: (a & 0x3FFF) + 1, + height: (a >> 14 & 0x3FFF) + 1, + mips: (a >> 28) + (b & 7), + format: b >> 3 & 0x7F, + depth: (b >> 10 & 0x7FF) + 1, + dimension: b >> 21 & 3, + mode: b >> 23, + earlier_copies: b & 7, + base: (page != 0 && page != 0x1F_FFFF).then(|| u64::from(page) * 4096), + } + } + + /// Whether it is a plain 2D texture (the kind [`Pool::texture`] reads). + pub fn is_2d(&self) -> bool { + self.dimension == 1 && self.depth == 1 + } + + /// "2D", "2D array", "cube map" or "volume". + pub fn shape(&self) -> &'static str { + match (self.dimension, self.depth) { + (1, 1) => "2D", + (1, _) => "2D array", + (2, _) => "cube map", + _ => "volume", + } + } +} + +/// Bytes of one pixel, or of one 4×4 block of a compressed format. +fn element_bytes(format: u32) -> Option { + Some(match format { + 2..=4 => 16, + 6..=8 => 12, + 10..=14 | 16..=18 => 8, + 24..=26 | 28..=32 | 34..=38 | 41..=43 | 87 | 88 | 91 | 93 => 4, + 49..=52 | 54 | 56..=59 => 2, + 61..=65 => 1, + 71 | 72 | 80 | 81 => 8, + 74 | 75 | 77 | 78 | 83 | 84 | 95 | 96 | 98 | 99 => 16, + _ => return None, + }) +} + +fn is_block_format(format: u32) -> bool { + matches!(format, 70..=84 | 94..=99) +} + +/// Where each address bit inside a tile comes from, lowest bit first: `n` +/// is bit `n - 1` of x, `-n` bit `n - 1` of y, 0 a bit inside the element. +/// By the element size (1, 2, 4, 8, 16 bytes). These are the GPU's public +/// tile patterns (Mesa's addrlib: `GFX10_SW_4K_S_RBPLUS` and +/// `GFX10_SW_64K_D_RBPLUS`). +const PATTERNS_4K: [[i8; 12]; 5] = [ + [1, 2, 3, 4, -1, -2, -3, -4, -5, 5, -6, 6], + [0, 1, 2, 3, -1, -2, -3, 4, -4, 5, -5, 6], + [0, 0, 1, 2, -1, -2, -3, 3, -4, 4, -5, 5], + [0, 0, 0, 1, -1, -2, 2, 3, -3, 4, -4, 5], + [0, 0, 0, 0, -1, -2, 1, 2, -3, 3, -4, 4], +]; +const PATTERNS_64K: [[i8; 16]; 5] = [ + [1, 2, 3, -2, -1, -3, 4, -4, -5, 5, -6, 6, -7, 7, -8, 8], + [0, 1, 2, 3, -1, -2, -3, 4, -4, 5, -5, 6, -6, 7, -7, 8], + [0, 0, 1, 2, -1, -2, 3, -3, -4, 4, -5, 5, -6, 6, -7, 7], + [0, 0, 0, 1, -1, 2, 3, -2, -3, 4, -4, 5, -5, 6, -6, 7], + [0, 0, 0, 0, 1, -1, 2, -2, -3, 3, -4, 4, -5, 5, -6, 6], +]; +/// Per element size: the step, in elements, of the grid on which the small +/// levels sit inside their shared tile. +const TAIL_GRID: [(usize, usize); 5] = [(16, 16), (16, 8), (8, 8), (8, 4), (4, 4)]; + +/// One mip level in a texture's allocation. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +struct Level { + /// Size in elements (pixels, or blocks of a compressed format). + across: usize, + down: usize, + /// Elements per row of the stored region, which is whole tiles. + stored_across: usize, + pixels: (u32, u32), + /// Offset in the allocation and size of the stored region. + offset: usize, + region: usize, + /// Position inside the shared tile, for the small levels. + tile_x: usize, + tile_y: usize, +} + +/// How a 2D texture's allocation is laid out. +#[derive(Debug, Clone, PartialEq, Eq)] +struct Layout { + size: usize, + tile: usize, + /// Elements per tile across and down. + tile_across: usize, + tile_down: usize, + element: usize, + /// The first level in the shared tile (the number of levels if none is). + tail: usize, + levels: Vec, +} + +impl Layout { + fn new(width: u32, height: u32, mips: u32, element: usize, block: usize, tile: usize) -> Option { + let log = element.trailing_zeros() as usize; + let (width, height, mips) = (width as usize, height as usize, mips as usize); + if !element.is_power_of_two() + || log > 4 + || mips == 0 + || mips > (usize::BITS - width.max(height).leading_zeros()) as usize + { + return None; + } + let (half_bits, max_tail) = if tile == 4096 { (6, 8) } else { (8, 12) }; + let (tile_across, tile_down) = (1 << (half_bits - log / 2), 1 << (half_bits - log.div_ceil(2))); + let (grid_x, grid_y) = TAIL_GRID[log]; + let (across, down) = (width.div_ceil(block), height.div_ceil(block)); + let size_of = |i: usize| (across.div_ceil(1 << i).max(1), down.div_ceil(1 << i).max(1)); + let pixels = |i: usize| ((width >> i).max(1) as u32, (height >> i).max(1) as u32); + + // The levels that get tiles of their own, largest first. + let mut levels = Vec::with_capacity(mips); + let mut tail = mips; + for i in 0..mips { + let (w, h) = size_of(i); + if mips > 1 && w <= tile_across / 2 && h <= tile_down && mips - i <= max_tail { + tail = i; + break; + } + let (stored_across, stored_down) = (w.next_multiple_of(tile_across), h.next_multiple_of(tile_down)); + levels.push(Level { + across: w, + down: h, + stored_across, + pixels: pixels(i), + offset: 0, + region: stored_across * stored_down * element, + tile_x: 0, + tile_y: 0, + }); + } + // They are stored smallest first, after the shared tile if there is one. + let mut offset = if tail < mips { tile } else { 0 }; + for level in levels.iter_mut().rev() { + level.offset = offset; + offset += level.region; + } + // The small levels, each at a fixed place of the shared tile. + for i in tail..mips { + let entry = max_tail - 1 - (i - tail); + let place = if entry > 6 { 16usize << entry } else { entry << 8 }; + let (mut x, mut y) = (0, 0); + for bit in 0..6 { + x |= (place >> (9 + 2 * bit) & 1) << bit; + y |= (place >> (8 + 2 * bit) & 1) << bit; + } + let (w, h) = size_of(i); + levels.push(Level { + across: w, + down: h, + stored_across: tile_across, + pixels: pixels(i), + offset: 0, + region: tile, + tile_x: x * grid_x, + tile_y: y * grid_y, + }); + } + Some(Layout { size: offset, tile, tile_across, tile_down, element, tail, levels }) + } + + /// Puts a level's elements, as stored in tiles, into rows. + fn untile(&self, level: &Level, stored: &[u8]) -> Option> { + let log = self.element.trailing_zeros() as usize; + let pattern: &[i8] = if self.tile == 4096 { &PATTERNS_4K[log] } else { &PATTERNS_64K[log] }; + // The offset inside a tile is the sum of a part from x and one from y. + let part = |v: usize, from_x: bool| -> usize { + pattern.iter().enumerate().fold(0, |acc, (bit, &s)| match (s, from_x) { + (s, true) if s > 0 => acc | (v >> (s - 1) & 1) << bit, + (s, false) if s < 0 => acc | (v >> (-s - 1) & 1) << bit, + _ => acc, + }) + }; + let x_parts: Vec = (0..level.across).map(|x| part(x + level.tile_x, true)).collect(); + let tiles_across = level.stored_across / self.tile_across; + let mut out = Vec::with_capacity(level.across * level.down * self.element); + for y in 0..level.down { + let row = (y / self.tile_down) * tiles_across; + let y_part = part(y + level.tile_y, false); + for (x, x_part) in x_parts.iter().enumerate() { + let at = ((row + x / self.tile_across) * self.tile) | x_part | y_part; + out.extend_from_slice(stored.get(at..at + self.element)?); + } + } + Some(out) + } +} + +/// An opened texture pool. +#[derive(Debug)] +pub struct Pool { + file: Mutex, + virtual_size: u64, + chunks: Vec, + descriptors: Vec, + keys: Vec, +} + +impl Pool { + /// Whether these bytes start a texture pool. + pub fn is_pool(start: &[u8]) -> bool { + start.starts_with(b"RDS5") + } + + /// Opens a pool: reads its tables, not its textures. + pub fn open(path: &Path) -> Result { + let mut file = File::open(path)?; + let length = file.metadata()?.len(); + let mut head = [0u8; 24]; + file.read_exact(&mut head).map_err(|_| invalid("too short"))?; + if !Self::is_pool(&head) { + return Err(invalid("no RDS5 magic")); + } + let count = head.u32_at(4).unwrap_or(0) as usize; + let size_word = head.u64_at(8).unwrap_or(0); + let virtual_size = size_word & 0x00FF_FFFF_FFFF_FFFF; + if !(3..=1_000_002).contains(&count) || size_word >> 56 != 22 { + return Err(invalid("unknown index layout")); + } + let mut table = vec![0u8; (count - 1) * 8]; + file.read_exact(&mut table).map_err(|_| invalid("the chunk table is cut off"))?; + let words: Vec = table.as_chunks::<8>().0.iter().map(|w| u64::from_le_bytes(*w)).collect(); + let place = |w: u64| ((w & 0x3FF_FFFF) * 256, (w >> 30 & 0x3F_FFFF) * 4096); + if words.last().map(|w| place(*w)) != Some((length, virtual_size)) { + return Err(invalid("the chunk table does not end where the file does")); + } + let mut chunks = Vec::with_capacity(words.len() - 1); + for pair in words.windows(2) { + let ((offset, address), (end, address_end)) = (place(pair[0]), place(pair[1])); + let padding = pair[0] >> 52; + let packed = end.checked_sub(offset + padding).filter(|n| (1..=MAX_CHUNK as u64).contains(n)); + let size = address_end.checked_sub(address).filter(|n| (1..=MAX_CHUNK as u64).contains(n)); + let (Some(packed), Some(size)) = (packed, size) else { + return Err(invalid("a chunk with an impossible range")); + }; + let codec = (pair[0] >> 26 & 15) as u8; + chunks.push(Chunk { address, size: size as usize, offset, packed: packed as usize, codec }); + } + + let etpf = (24 + table.len() as u64).next_multiple_of(256); + let mut header = [0u8; 16]; + file.seek(SeekFrom::Start(etpf))?; + file.read_exact(&mut header).map_err(|_| invalid("no texture list"))?; + if &header[..4] != b"ETPF" || header.u32_at(4) != Some(ETPF_VERSION) { + return Err(invalid("unknown texture list version")); + } + let textures = header.u32_at(8).unwrap_or(0) as usize; + if !(1..=MAX_TEXTURES).contains(&textures) || (header.u32_at(12).unwrap_or(0) as usize) < textures * 16 { + return Err(invalid("impossible texture count")); + } + let mut records = vec![0u8; textures * 16]; + file.read_exact(&mut records).map_err(|_| invalid("the texture list is cut off"))?; + let descriptors = records.as_chunks::<16>().0.iter().map(|r| Descriptor::parse(r)).collect(); + // Right after the records: the key of each texture, by which models + // refer to it. + let mut keys = vec![0u8; textures * 8]; + file.read_exact(&mut keys).map_err(|_| invalid("the texture keys are cut off"))?; + let keys = keys.as_chunks::<8>().0.iter().map(|k| u64::from_le_bytes(*k)).collect(); + Ok(Pool { file: Mutex::new(file), virtual_size, chunks, descriptors, keys }) + } + + /// The keys of the textures, in their order: the materials of models + /// name their textures by these (0: none). + pub fn keys(&self) -> &[u64] { + &self.keys + } + + /// Number of textures. + pub fn len(&self) -> usize { + self.descriptors.len() + } + + pub fn is_empty(&self) -> bool { + self.descriptors.is_empty() + } + + pub fn descriptor(&self, index: usize) -> Option<&Descriptor> { + self.descriptors.get(index) + } + + /// The size of a texture's allocation: up to the next texture's. + fn span(&self, index: usize, base: u64) -> Option { + for next in self.descriptors[index + 1..].iter().filter_map(|d| d.base) { + match next.cmp(&base) { + std::cmp::Ordering::Less => return None, + std::cmp::Ordering::Greater => return Some(next - base), + std::cmp::Ordering::Equal => {} + } + } + self.virtual_size.checked_sub(base) + } + + /// The chunks that hold `size` bytes from virtual address `start`; + /// `None` when part of the range is in no chunk. + fn chunks_for(&self, start: u64, size: usize) -> Option<&[Chunk]> { + let end = start + size as u64; + let first = self.chunks.partition_point(|c| c.address + c.size as u64 <= start); + let count = self.chunks[first..].iter().take_while(|c| c.address < end).count(); + let found = &self.chunks[first..first + count]; + let gapless = found.windows(2).all(|w| w[0].address + w[0].size as u64 == w[1].address); + let covers = found.first().is_some_and(|c| c.address <= start) + && found.last().is_some_and(|c| c.address + c.size as u64 >= end); + (gapless && covers).then_some(found) + } + + /// Whether a range can be read: none of its chunks is packed in a way + /// that is not read (BCPack for BC6H and BC7). + fn readable(&self, start: u64, size: usize) -> bool { + let reads = |c: &Chunk| matches!(c.codec, 0 | 8) || crate::bcpack::reads_mode(c.codec); + self.chunks_for(start, size).is_some_and(|chunks| chunks.iter().all(reads)) + } + + fn read_range(&self, start: u64, size: usize) -> Result, TtpfError> { + let chunks = self.chunks_for(start, size).ok_or_else(|| invalid("a texture outside the pool's chunks"))?; + let mut out = vec![0u8; size]; + let mut file = self.file.lock().unwrap_or_else(|e| e.into_inner()); + for c in chunks { + let mut packed = vec![0u8; c.packed]; + file.seek(SeekFrom::Start(c.offset))?; + file.read_exact(&mut packed)?; + let data = match c.codec { + 0 => packed, + 8 => { + let mut data = Vec::with_capacity(c.size); + flate2::read::ZlibDecoder::new(&packed[..]).take(c.size as u64 + 1).read_to_end(&mut data)?; + data + } + codec => crate::bcpack::unpack(&packed, codec, c.size).map_err(|e| unsupported(e.to_string()))?, + }; + if data.len() != c.size { + return Err(invalid("a chunk unpacks to another size than its range")); + } + let (from, to) = (start.max(c.address), (start + size as u64).min(c.address + c.size as u64)); + out[(from - start) as usize..(to - start) as usize] + .copy_from_slice(&data[(from - c.address) as usize..(to - c.address) as usize]); + } + Ok(out) + } + + /// Where the slices of each mip level are: per level the offset of the + /// first slice in the allocation and the distance to the next one. + /// `None` when the texture's kind or its allocation is not understood. + fn placement(&self, d: &Descriptor, span: u64) -> Option<(Layout, Vec<(u64, u64)>)> { + let element = element_bytes(d.format)?; + let block = if is_block_format(d.format) { 4 } else { 1 }; + let tile = if d.mode >> 1 & 0xF == 0 { 65536 } else { 4096 }; + match (d.dimension, d.depth) { + (1, 1) => { + let layout = Layout::new(d.width, d.height, d.mips, element, block, tile)?; + let places = layout.levels.iter().map(|l| (l.offset as u64, 0)).collect(); + (span == layout.size as u64).then_some((layout, places)) + } + // An array: level by level, each with all its slices. The small + // levels of slice `s` are in tile `s`. + (1, depth) if d.mode == 1 => { + let layout = Layout::new(d.width, d.height, d.mips, element, block, tile)?; + let depth = u64::from(depth); + let mut places = vec![(0, tile as u64); layout.levels.len()]; + let mut offset = if layout.tail < layout.levels.len() { depth * tile as u64 } else { 0 }; + for i in (0..layout.tail).rev() { + let region = layout.levels[i].region as u64; + places[i] = (offset, region); + offset += depth * region; + } + (span == offset).then_some((layout, places)) + } + // A cube map: face by face, each laid out like a 2D texture in + // 4 KiB tiles; smaller copies of the whole cube map may come first. + (2, 6) if d.earlier_copies <= 3 && d.mode == 18 + 2 * d.earlier_copies => { + let layout = Layout::new(d.width, d.height, d.mips, element, block, 4096)?; + let all = 6 * layout.size as u64; + let start = if d.earlier_copies == 0 { + (span == all).then_some(0)? + } else { + let padded = if all >= 36 * 4096 { all.next_multiple_of(65536) } else { all }; + span.checked_sub(padded)? + }; + let places = layout.levels.iter().map(|l| (start + l.offset as u64, layout.size as u64)).collect(); + Some((layout, places)) + } + _ => None, + } + } + + /// Reads a texture: its largest mip level that can be read and is at + /// most `max_side` pixels wide and high (`None`: any size). The result + /// has that one level, of every slice of an array and every face of a + /// cube map; its name is the texture's number. Volumes are not read. + pub fn texture(&self, index: usize, max_side: Option) -> Result { + let d = *self.descriptor(index).ok_or_else(|| invalid("no such texture"))?; + if d.dimension == 3 { + return Err(unsupported("a volume, which is not read yet")); + } + let base = d.base.ok_or_else(|| unsupported("it has no data in this pool"))?; + if element_bytes(d.format).is_none() { + return Err(unsupported(format!("unknown pixel format {}", d.format))); + } + let span = self.span(index, base).ok_or_else(|| unsupported("its layout is not understood"))?; + let (layout, places) = self + .placement(&d, span) + .ok_or_else(|| unsupported(format!("a {} whose layout is not understood", d.shape())))?; + let slices = u64::from(d.depth); + let slice_at = |i: usize, s: u64| base + places[i].0 + s * places[i].1; + let fits = + |i: &usize| max_side.is_none_or(|max| layout.levels[*i].pixels.0.max(layout.levels[*i].pixels.1) <= max); + let readable = |i: &usize| (0..slices).all(|s| self.readable(slice_at(*i, s), layout.levels[*i].region)); + // The largest level that fits; if only larger ones can be read, the + // smallest of those. + let all = 0..layout.levels.len(); + let chosen = all + .clone() + .filter(fits) + .find(readable) + .or_else(|| all.rev().filter(|i| !fits(i)).find(readable)) + .ok_or_else(|| unsupported("packed with BCPack for BC6H or BC7, which is not read yet"))?; + let level = &layout.levels[chosen]; + let mut data = Vec::new(); + for s in 0..slices { + let stored = self.read_range(slice_at(chosen, s), level.region)?; + data.extend(layout.untile(level, &stored).ok_or_else(|| invalid("a mip level outside its allocation"))?); + } + Ok(Texture { + name: format!("{index:06}"), + width: level.pixels.0, + height: level.pixels.1, + depth: d.depth, + levels: 1, + format: Format(d.format), + dimension: if d.dimension == 2 { Dimension::Cube } else { Dimension::Texture2D }, + usage: 0, + data, + }) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use std::io::Write; + + /// The address of element (x, y) in its tile, bit by bit from the pattern. + fn tile_offset(pattern: &[i8], x: usize, y: usize) -> usize { + pattern.iter().enumerate().fold(0, |acc, (bit, &s)| { + let source = if s > 0 { + x >> (s - 1) + } else if s < 0 { + y >> (-s - 1) + } else { + 0 + }; + acc | (source & 1) << bit + }) + } + + #[test] + fn layout_of_a_compressed_texture() { + // 256×256 in blocks of 8 bytes, 4 KiB tiles: 64×64 blocks; a tile is + // 32×16 blocks. Levels 0 and 1 get tiles, the rest share one. + let layout = Layout::new(256, 256, 9, 8, 4, 4096).unwrap(); + assert_eq!((layout.tile_across, layout.tile_down), (32, 16)); + let own: Vec<(usize, usize, usize)> = layout.levels.iter().map(|l| (l.across, l.offset, l.region)).collect(); + assert_eq!(&own[..3], [(64, 4096 + 8192, 32768), (32, 4096, 8192), (16, 0, 4096)]); + assert_eq!(layout.size, 4096 + 8192 + 32768); + assert!(layout.levels[2..].iter().all(|l| l.offset == 0 && l.region == 4096)); + // The shared tile: no two levels overlap. + let mut used = std::collections::HashSet::new(); + for l in &layout.levels[2..] { + for (x, y) in (0..l.across).flat_map(|x| (0..l.down).map(move |y| (x, y))) { + assert!(used.insert((x + l.tile_x, y + l.tile_y)), "levels overlap in the shared tile"); + } + } + assert_eq!(Layout::new(256, 256, 10, 8, 4, 4096), None); + assert_eq!(Layout::new(256, 256, 1, 8, 4, 4096).unwrap().size, 32768); + } + + #[test] + fn untiling_puts_every_element_in_its_row() { + let layout = Layout::new(128, 64, 1, 4, 1, 4096).unwrap(); + let level = layout.levels[0]; + assert_eq!((layout.tile_across, layout.tile_down, level.region), (32, 32, 128 * 64 * 4)); + // Each element holds its own coordinates. + let mut stored = vec![0u8; level.region]; + for (x, y) in (0..128usize).flat_map(|x| (0..64usize).map(move |y| (x, y))) { + let tile = (y / 32) * 4 + x / 32; + let at = tile * 4096 + tile_offset(&PATTERNS_4K[2], x, y); + stored[at..at + 4].copy_from_slice(&[x as u8, y as u8, 0xAB, 0xCD]); + } + let rows = layout.untile(&level, &stored).unwrap(); + for (i, element) in rows.as_chunks::<4>().0.iter().enumerate() { + assert_eq!(*element, [(i % 128) as u8, (i / 128) as u8, 0xAB, 0xCD]); + } + } + + /// A pool with one texture of 64×64 pixels (4 bytes each, one level) in + /// one zlib chunk, and one without data. + #[test] + fn reads_a_texture_from_a_pool() { + let layout = Layout::new(64, 64, 1, 4, 1, 4096).unwrap(); + let level = layout.levels[0]; + let mut stored = vec![0u8; level.region]; + for (x, y) in (0..64usize).flat_map(|x| (0..64usize).map(move |y| (x, y))) { + let at = ((y / 32) * 2 + x / 32) * 4096 + tile_offset(&PATTERNS_4K[2], x, y); + stored[at..at + 4].copy_from_slice(&[x as u8, y as u8, 7, 255]); + } + let mut packed = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::default()); + packed.write_all(&stored).unwrap(); + let mut packed = packed.finish().unwrap(); + let padding = packed.len().next_multiple_of(256) - packed.len(); + packed.resize(packed.len() + padding, 0); + + let data_at = 1024u64; + let word = |offset: u64, codec: u64, page: u64, padding: u64| { + (offset / 256) | (codec << 26) | page << 30 | padding << 52 + }; + let mut file = b"RDS5".to_vec(); + file.extend_from_slice(&3u32.to_le_bytes()); + file.extend_from_slice(&(((1 + 4) * 4096u64) | (22 << 56)).to_le_bytes()); + file.extend_from_slice(&[0; 8]); + file.extend_from_slice(&word(data_at, 8, 1, padding as u64).to_le_bytes()); + file.extend_from_slice(&word(data_at + packed.len() as u64, 0, 5, 0).to_le_bytes()); + file.resize(256, 0); + file.extend_from_slice(b"ETPF"); + file.extend_from_slice(&ETPF_VERSION.to_le_bytes()); + file.extend_from_slice(&2u32.to_le_bytes()); + file.extend_from_slice(&48u32.to_le_bytes()); + let record = |page: u32| { + let mut r = Vec::new(); + r.extend_from_slice(&(63u32 | 63 << 14 | 1 << 28).to_le_bytes()); + // Format 28 (RGBA8), 2D, tiling mode 2 (4 KiB tiles). + r.extend_from_slice(&(28u32 << 3 | 1 << 21 | 2 << 23).to_le_bytes()); + r.extend_from_slice(&page.to_le_bytes()); + r.extend_from_slice(&[0; 4]); + r + }; + file.extend(record(1)); + file.extend(record(0)); + file.extend_from_slice(&0x1122_3344_5566_7788u64.to_le_bytes()); + file.extend_from_slice(&[0; 8]); + file.resize(data_at as usize, 0); + file.extend_from_slice(&packed); + + let dir = std::env::temp_dir().join(format!("rage-ttpf-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let path = dir.join("pool.ttpf"); + std::fs::write(&path, &file).unwrap(); + let pool = Pool::open(&path).unwrap(); + assert_eq!(pool.len(), 2); + assert_eq!(pool.keys(), [0x1122_3344_5566_7788, 0]); + let d = pool.descriptor(0).unwrap(); + assert_eq!((d.width, d.height, d.mips, d.format, d.shape()), (64, 64, 1, 28, "2D")); + let texture = pool.texture(0, None).unwrap(); + assert_eq!((texture.width, texture.height, texture.levels, texture.name.as_str()), (64, 64, 1, "000000")); + for (i, pixel) in texture.data.as_chunks::<4>().0.iter().enumerate() { + assert_eq!(*pixel, [(i % 64) as u8, (i / 64) as u8, 7, 255]); + } + assert!(matches!(pool.texture(1, None), Err(TtpfError::Unsupported(_)))); + assert!(pool.texture(2, None).is_err()); + std::fs::remove_dir_all(dir).unwrap(); + } +} diff --git a/crates/rage-rpf/README.md b/crates/rage-rpf/README.md index f5f1b48..680629c 100644 --- a/crates/rage-rpf/README.md +++ b/crates/rage-rpf/README.md @@ -8,6 +8,7 @@ Read and write RAGE archives, part of | RPF7 (incl. nested archives, AES and NG encryption) | GTA V Legacy and Enhanced | yes | yes | | IMG3, RPF2, RPF3 | GTA IV | yes | yes | | RPF8 | Red Dead Redemption 2 | with the `rdr2` feature | no | +| RPF9 | GTA VI | what is not encrypted (zlib data, videos, audio containers), without names (`rpf9`) | no | `vfs` resolves paths that cross archive boundaries (`update/update.rpf/x64/data/lang/americandlc.rpf/global.gxt2`). diff --git a/crates/rage-rpf/src/error.rs b/crates/rage-rpf/src/error.rs index 7c94b4e..ebbc66d 100644 --- a/crates/rage-rpf/src/error.rs +++ b/crates/rage-rpf/src/error.rs @@ -29,6 +29,9 @@ pub enum RpfError { NotFound(String), #[error("not a file or directory: {0}")] BadPath(PathBuf), + /// A scan that was stopped before it finished. + #[error("cancelled")] + Cancelled, /// An edit that cannot be made (with the reason). #[error("{0}")] Edit(String), diff --git a/crates/rage-rpf/src/lib.rs b/crates/rage-rpf/src/lib.rs index 47e7f1a..f9a7807 100644 --- a/crates/rage-rpf/src/lib.rs +++ b/crates/rage-rpf/src/lib.rs @@ -1,8 +1,8 @@ //! Reader for RAGE RPF archives. //! //! Supports RPF7 (GTA V Legacy and Enhanced, including nested archives), -//! the GTA IV archives (IMG3, RPF2, RPF3) and, with the `rdr2` feature, -//! RPF8 (RDR2). +//! the GTA IV archives (IMG3, RPF2, RPF3), the unencrypted data of RPF9 +//! (GTA VI; see [`rpf9`]) and, with the `rdr2` feature, RPF8 (RDR2). //! //! # Licence of the `rdr2` feature //! @@ -33,6 +33,7 @@ pub mod rpf8_exe; pub mod rpf8_keys; #[cfg(feature = "rdr2")] pub mod rpf8_names; +pub mod rpf9; mod toc; pub mod vfs; pub mod writer; @@ -61,4 +62,5 @@ pub use gta4::{Gta4Archive, Gta4Entry, Gta4EntryId, Gta4EntryKind, Gta4Format}; pub use rpf7::{Encryption, Entry, EntryId, EntryKind, Rpf7}; #[cfg(feature = "rdr2")] pub use rpf8::Rpf8; +pub use rpf9::Rpf9; pub use writer::{ArchiveWriter, RawEntry, entry_for, file_entry, resource_entry}; diff --git a/crates/rage-rpf/src/rpf9.rs b/crates/rage-rpf/src/rpf9.rs new file mode 100644 index 0000000..9b2ead5 --- /dev/null +++ b/crates/rage-rpf/src/rpf9.rs @@ -0,0 +1,1050 @@ +//! RPF9 archives (GTA VI), read without their table of contents. +//! +//! Layout (little-endian): +//! - 64-byte header: magic `RPF9`, then the offset where the file data +//! starts. The other header fields are not understood yet. +//! - The table of contents (names, sizes, offsets) up to the data offset. It +//! is encrypted with keys that only the game's executable has; OpenRAGE +//! does not read it. +//! - The file data. Most of it is not encrypted: zlib streams laid end to +//! end, each starting on a 16-byte boundary, Bink 2 videos and audio +//! containers (`ADAT`). +//! +//! So the archive is read as a *recovery view*: [`Rpf9::scan`] walks the data +//! area and lists every zlib stream, Bink 2 video and audio container it finds. Files have no +//! names, only their offset (`xml/00000000b000.xml`), and are sorted into +//! folders by what their first bytes look like. A file stored in several +//! 64 KiB chunks is put together again; a resource whose pages are separate +//! streams shows up as several entries. Other data (encrypted files) is not +//! listed. +//! +//! Scanning reads the whole archive, so the result is worth keeping: +//! [`encode_index`] and [`decode_index`] store it, and a program can +//! register a loader with [`set_indexer`] that [`Rpf9::entries`] then uses. + +use std::collections::{BTreeSet, HashMap}; +use std::fs::File; +use std::io::{BufRead, BufReader, Read, Seek, SeekFrom, Write}; +use std::path::{Path, PathBuf}; +use std::sync::atomic::{AtomicBool, AtomicU64, Ordering}; +use std::sync::{Arc, Mutex, OnceLock, RwLock}; + +use rayon::prelude::*; + +use crate::RpfError; + +const MAGIC: u32 = 0x5250_4639; +/// Length of the header in front of the table of contents. +pub const HEADER_LEN: usize = 64; +/// Files larger than this are stored as several zlib streams of this many +/// unpacked bytes, the last one shorter. +const CHUNK: u64 = 0x10000; +/// Streams start on a multiple of this. +const ALIGN: u64 = 16; +/// The data area is scanned in pieces of this size, in parallel. +const SEGMENT: u64 = 256 << 20; +/// How much of the file a scanner keeps in memory. +const WINDOW: usize = 4 << 20; +/// A window with less than this left is read anew, so most streams fit. +const WINDOW_MIN: usize = 64 << 10; +/// Archives of at least this size get a folder per GiB of offset. +const BUCKETED_FROM: u64 = 1 << 30; + +/// Four-byte magics that tagged formats of the game start with. Only these +/// become an extension: among a million files, some start with four letters +/// by chance. +const MAGICS: [&[u8; 4]; 7] = [b"PSIN", b"PAMH", b"MHIU", b"RBF0", b"SPS1", b"RSC8", b"0DRP"]; + +/// The readable part of the header. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct Header { + /// Where the file data starts; the table of contents ends here. + pub data_offset: u32, +} + +impl Header { + pub fn parse(b: &[u8]) -> Option
{ + if b.len() < HEADER_LEN || crate::word(b, 0) != MAGIC { + return None; + } + Some(Header { data_offset: crate::word(b, 4) }) + } +} + +/// How an entry is stored. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Kind { + /// One or more zlib streams. + Zlib, + /// A Bink 2 video, stored as is. + Bink2, + /// An audio container (`ADAT`), stored as is. + Awc, +} + +/// One recovered file. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Entry { + /// Where it starts in the archive file. + pub offset: u64, + /// Bytes it takes in the archive, padding between its streams included. + pub stored: u64, + /// Unpacked size. + pub size: u64, + /// Number of zlib streams (1 for a video). + pub streams: u32, + pub kind: Kind, + /// The first unpacked bytes (`head_len` of them). + pub head: [u8; 16], + pub head_len: u8, +} + +impl Entry { + /// The first unpacked bytes. + pub fn head(&self) -> &[u8] { + &self.head[..usize::from(self.head_len).min(16)] + } + + /// Whether this looks like the start of a resource (a model, for + /// instance): they start 16 bytes into a 4 KiB page, with eight zero + /// bytes and a pointer into their own first part (`0x5000_0000` on). + pub fn is_resource(&self) -> bool { + let head = self.head(); + self.kind == Kind::Zlib + && self.offset % 4096 == 16 + && head.len() == 16 + && head[..8] == [0; 8] + && (0x5000_0000..0x5200_0000).contains(&u64::from_le_bytes(head[8..].try_into().unwrap_or_default())) + } + + /// An extension guessed from the first bytes: `bk2`, `awc`, `res`, `xml`, `txt`, the + /// magic of a known tagged format in lower case (`psin`), else `bin`. + pub fn extension(&self) -> String { + match self.kind { + Kind::Bink2 => return "bk2".into(), + Kind::Awc => return "awc".into(), + Kind::Zlib => {} + } + if self.is_resource() { + return "res".into(); + } + let head = self.head(); + let text = head.strip_prefix(b"\xEF\xBB\xBF").unwrap_or(head); + // Text only when all of the first bytes are: binary files start with + // `<` and a letter often enough (an offset table, for instance). + let printable = |b: &u8| b.is_ascii_graphic() || matches!(b, b' ' | b'\t' | b'\r' | b'\n'); + if !text.is_empty() && text.iter().all(printable) { + let markup = text.starts_with(b" Result, RpfError> + Send + Sync; + +fn indexer() -> &'static RwLock>> { + static INDEXER: OnceLock>>> = OnceLock::new(); + INDEXER.get_or_init(Default::default) +} + +/// Registers what [`Rpf9::entries`] calls to get an archive's entries. +/// Without one it scans the archive every time it is opened. +pub fn set_indexer(load: Arc) { + if let Ok(mut slot) = indexer().write() { + *slot = Some(load); + } +} + +/// The folder of the entries whose own names are known. +const NAMED: &str = "models"; + +/// Names of entries, found in their own data: a model carries its name. The +/// table of contents, which has all names, cannot be read. +#[derive(Debug, Default, Clone, PartialEq, Eq)] +pub struct Names { + by_offset: HashMap, + /// Lower-case name to offset. + by_name: HashMap, +} + +impl Names { + /// From entries' offsets and names. Characters that do not belong in a + /// file name are replaced; of entries with the same name, the later ones + /// (by offset) get `~2`, `~3`, … in front of the extension. + pub fn new(found: impl IntoIterator) -> Names { + let mut found: Vec<(u64, String)> = found.into_iter().collect(); + found.sort(); + let mut names = Names::default(); + for (offset, name) in found { + let clean: String = + name.chars().map(|c| if c.is_ascii_alphanumeric() || "_.#-".contains(c) { c } else { '_' }).collect(); + let clean = clean.trim_matches('.'); + if clean.is_empty() { + continue; + } + let (stem, ext) = clean.split_once('.').map_or((clean, String::new()), |(s, e)| (s, format!(".{e}"))); + let unique = (1..) + .map(|n| if n == 1 { clean.to_owned() } else { format!("{stem}~{n}{ext}") }) + .find(|candidate| !names.by_name.contains_key(&candidate.to_ascii_lowercase())); + let Some(unique) = unique else { continue }; + names.by_name.insert(unique.to_ascii_lowercase(), offset); + names.by_offset.insert(offset, unique); + } + names + } + + pub fn get(&self, offset: u64) -> Option<&str> { + self.by_offset.get(&offset).map(String::as_str) + } + + /// The offset of the entry with this name (case-insensitive). + pub fn offset_of(&self, name: &str) -> Option { + self.by_name.get(&name.to_ascii_lowercase()).copied() + } + + pub fn len(&self) -> usize { + self.by_offset.len() + } + + pub fn is_empty(&self) -> bool { + self.by_offset.is_empty() + } + + /// Offsets and names, sorted by offset. + pub fn iter(&self) -> impl Iterator { + let mut all: Vec<(u64, &str)> = self.by_offset.iter().map(|(o, n)| (*o, n.as_str())).collect(); + all.sort(); + all.into_iter() + } + + /// The folder a name is listed in: what it starts with, up to the first + /// `_` (`w` for weapons, `prop`, …); `other` without one. + fn group(name: &str) -> String { + match name.split_once('_') { + Some((start, _)) if (1..=12).contains(&start.len()) => start.to_ascii_lowercase(), + _ => "other".to_owned(), + } + } +} + +/// Loads the names of an archive's entries, for example from a cache. +pub type Namer = dyn Fn(&Rpf9) -> Option + Send + Sync; + +fn namer() -> &'static RwLock>> { + static NAMER: OnceLock>>> = OnceLock::new(); + NAMER.get_or_init(Default::default) +} + +/// Registers what [`Rpf9::names`] calls to get the names of an archive's entries. +pub fn set_namer(load: Arc) { + if let Ok(mut slot) = namer().write() { + *slot = Some(load); + } +} + +/// An opened RPF9 archive. +#[derive(Debug)] +pub struct Rpf9 { + path: PathBuf, + display: String, + header: Header, + size: u64, + /// Filled on first use: finding the entries means reading the archive. + entries: Mutex>>>, + /// Filled on first use. + names: Mutex>>, +} + +impl Rpf9 { + /// Whether these bytes start an RPF9 archive. + pub fn is_rpf9(start: &[u8]) -> bool { + start.len() >= 4 && crate::word(start, 0) == MAGIC + } + + /// Whether a file starts with the RPF9 magic. + pub fn file_is_rpf9(path: &Path) -> bool { + let mut head = [0u8; 4]; + File::open(path).and_then(|mut f| f.read_exact(&mut head)).is_ok() && Self::is_rpf9(&head) + } + + /// Opens an archive: reads its header, not its entries. + pub fn open(path: &Path) -> Result { + let display = path.display().to_string(); + let mut file = File::open(path)?; + let size = file.metadata()?.len(); + let mut head = [0u8; HEADER_LEN]; + if file.read_exact(&mut head).is_err() { + return Err(RpfError::Empty(display, size)); + } + let Some(header) = Header::parse(&head) else { + return Err(RpfError::BadMagic(display, crate::word(&head, 0))); + }; + if u64::from(header.data_offset) < HEADER_LEN as u64 || u64::from(header.data_offset) > size { + return Err(RpfError::CorruptToc { archive: display, reason: "the data starts outside the file".into() }); + } + Ok(Rpf9 { path: path.to_path_buf(), display, header, size, entries: Mutex::new(None), names: Mutex::new(None) }) + } + + pub fn header(&self) -> Header { + self.header + } + + pub fn path(&self) -> &Path { + &self.path + } + + /// The archive's name for messages. + pub fn display_name(&self) -> &str { + &self.display + } + + /// Size of the archive file. + pub fn size(&self) -> u64 { + self.size + } + + /// Size of the data area: everything after the table of contents. + pub fn data_len(&self) -> u64 { + self.size - u64::from(self.header.data_offset) + } + + /// The entries if they have been loaded already. + pub fn loaded(&self) -> Option>> { + self.entries.lock().ok()?.clone() + } + + /// Sets the entries, for example from a stored index. + pub fn set_entries(&self, entries: Vec) { + if let Ok(mut slot) = self.entries.lock() { + *slot = Some(Arc::new(entries)); + } + } + + /// The entries, sorted by offset. The first call loads them with the + /// registered [`set_indexer`] loader, or scans the archive, which reads + /// all of it. A failure is not remembered: the next call tries again. + pub fn entries(&self) -> Result>, RpfError> { + let mut slot = self.entries.lock().map_err(|_| RpfError::Cancelled)?; + if let Some(entries) = slot.as_ref() { + return Ok(Arc::clone(entries)); + } + let load = indexer().read().ok().and_then(|l| l.clone()); + let entries = Arc::new(match load { + Some(load) => load(self)?, + None => self.scan(&AtomicBool::new(false), &|_, _| {})?, + }); + *slot = Some(Arc::clone(&entries)); + Ok(entries) + } + + /// Walks the data area and returns what it finds, sorted by offset. + /// `progress` gets the bytes read so far and the bytes to read; setting + /// `cancel` stops with [`RpfError::Cancelled`]. + pub fn scan(&self, cancel: &AtomicBool, progress: &(dyn Fn(u64, u64) + Sync)) -> Result, RpfError> { + let start = u64::from(self.header.data_offset); + let total = self.size - start; + let segments: Vec<(u64, u64)> = (0..total.div_ceil(SEGMENT)) + .map(|i| (start + i * SEGMENT, (start + (i + 1) * SEGMENT).min(self.size))) + .collect(); + let done = AtomicU64::new(0); + let found: Vec> = segments + .par_iter() + .map(|&(from, to)| { + let mut scanner = Scanner::new(File::open(&self.path)?, self.size); + scanner.streams(from, to, cancel, &mut |bytes| { + progress(done.fetch_add(bytes, Ordering::Relaxed) + bytes, total); + }) + }) + .collect::>()?; + Ok(join_chunks(found.into_iter().flatten())) + } + + /// The names found for entries of this archive. The first call asks the + /// registered [`set_namer`] loader; without one, or without stored + /// names, there are none. + pub fn names(&self) -> Arc { + let Ok(mut slot) = self.names.lock() else { return Arc::default() }; + if let Some(names) = slot.as_ref() { + return Arc::clone(names); + } + let load = namer().read().ok().and_then(|l| l.clone()); + let names = Arc::new(load.and_then(|load| load(self)).unwrap_or_default()); + *slot = Some(Arc::clone(&names)); + names + } + + /// Sets the names of entries. + pub fn set_names(&self, names: Names) { + if let Ok(mut slot) = self.names.lock() { + *slot = Some(Arc::new(names)); + } + } + + /// The name of an entry: `/.`, in large + /// archives `//.`. An + /// entry whose own name is known (see [`Names`]) is + /// `models//`. + pub fn entry_name(&self, entry: &Entry) -> String { + self.entry_name_with(&self.names(), entry) + } + + fn entry_name_with(&self, names: &Names, entry: &Entry) -> String { + if let Some(name) = names.get(entry.offset) { + return format!("{NAMED}/{}/{name}", Names::group(name)); + } + let ext = entry.extension(); + match self.bucket(entry) { + Some(bucket) => format!("{ext}/{bucket}/{:012x}.{ext}", entry.offset), + None => format!("{ext}/{:012x}.{ext}", entry.offset), + } + } + + fn bucket(&self, entry: &Entry) -> Option { + (self.size >= BUCKETED_FROM).then(|| format!("{:03}", entry.offset >> 30)) + } + + /// The entry with this name (case-insensitive). + pub fn find(&self, entries: &[Entry], path: &str) -> Option { + let names = self.names(); + let file = path.rsplit('/').next()?; + let by_offset = file.split('.').next().and_then(|stem| u64::from_str_radix(stem, 16).ok()); + [by_offset, names.offset_of(file)].into_iter().flatten().find_map(|offset| { + let i = entries.binary_search_by_key(&offset, |e| e.offset).ok()?; + self.entry_name_with(&names, &entries[i]).eq_ignore_ascii_case(path).then_some(i) + }) + } + + /// The folders and files directly in `dir` ("" for the top): folder + /// names, and indices of the entries. + pub fn list_dir(&self, entries: &[Entry], dir: &str) -> (Vec, Vec) { + let names = self.names(); + let dir = dir.trim_matches('/').to_ascii_lowercase(); + let mut dirs = BTreeSet::new(); + let mut files = Vec::new(); + for (i, e) in entries.iter().enumerate() { + let name = self.entry_name_with(&names, e); + // What comes after `dir/` in the entry's path. + let rest = if dir.is_empty() { + Some(name.as_str()) + } else { + name.get(..dir.len()) + .filter(|start| start.eq_ignore_ascii_case(&dir)) + .and_then(|_| name[dir.len()..].strip_prefix('/')) + }; + match rest.map(|rest| rest.split_once('/')) { + Some(Some((folder, _))) => { + if !dirs.contains(folder) { + dirs.insert(folder.to_owned()); + } + } + Some(None) => files.push(i), + None => {} + } + } + (dirs.into_iter().collect(), files) + } + + /// Whether `dir` is a folder of the recovery view. + pub fn is_dir(&self, entries: &[Entry], dir: &str) -> bool { + let (dirs, files) = self.list_dir(entries, dir); + dir.is_empty() || !dirs.is_empty() || !files.is_empty() + } + + /// Writes an entry unpacked to `out` and returns the bytes written. + pub fn copy_to(&self, entry: &Entry, out: &mut dyn Write) -> Result { + let name = self.entry_name(entry); + let outside = || RpfError::OutOfBounds { archive: self.display.clone(), entry: name.clone() }; + if entry.offset.checked_add(entry.stored).is_none_or(|end| end > self.size) { + return Err(outside()); + } + let mut file = File::open(&self.path)?; + file.seek(SeekFrom::Start(entry.offset))?; + let mut reader = BufReader::with_capacity(1 << 16, file.take(entry.stored)); + if entry.kind != Kind::Zlib { + return Ok(std::io::copy(&mut reader, out)?); + } + let inflate = |source| RpfError::Inflate { archive: self.display.clone(), entry: name.clone(), source }; + let (mut read, mut written) = (0u64, 0u64); + for _ in 0..entry.streams { + // Streams start aligned; the entry itself does too. + let padding = read.next_multiple_of(ALIGN) - read; + reader.consume(padding as usize); + if reader.fill_buf()?.len() < padding as usize && padding > 0 { + return Err(outside()); + } + let mut stream = flate2::bufread::ZlibDecoder::new(&mut reader); + written += std::io::copy(&mut stream, out).map_err(inflate)?; + read += padding + stream.total_in(); + } + if written != entry.size { + let short = std::io::Error::new(std::io::ErrorKind::InvalidData, "unpacked size differs from the index"); + return Err(inflate(short)); + } + Ok(written) + } + + /// Whether entry `i + 1` is stored right after entry `i` (on the next + /// 16-byte boundary): the parts of a resource follow each other so. + pub fn follows(entries: &[Entry], i: usize) -> bool { + match (entries.get(i), entries.get(i + 1)) { + (Some(a), Some(b)) => b.kind == Kind::Zlib && b.offset == (a.offset + a.stored).next_multiple_of(ALIGN), + _ => false, + } + } + + /// The first bytes of an entry, unpacked: up to `max`, or a little more. + pub fn read_start(&self, entry: &Entry, max: usize) -> Result, RpfError> { + struct Start(Vec, usize); + impl Write for Start { + fn write(&mut self, buf: &[u8]) -> std::io::Result { + if self.0.len() >= self.1 { + return Err(std::io::ErrorKind::WriteZero.into()); + } + self.0.extend_from_slice(buf); + Ok(buf.len()) + } + fn flush(&mut self) -> std::io::Result<()> { + Ok(()) + } + } + let mut start = Start(Vec::new(), max); + match self.copy_to(entry, &mut start) { + Err(e) if start.0.len() < max => Err(e), + _ => Ok(start.0), + } + } + + /// Reads the entry with index `i` of [`Rpf9::entries`] unpacked into memory. + pub fn read_at(&self, i: usize) -> Result, RpfError> { + let entries = self.entries()?; + let entry = entries.get(i).ok_or_else(|| RpfError::NotFound(format!("{}: entry {i}", self.display)))?; + self.read(entry) + } + + /// Reads an entry unpacked into memory (up to [`crate::MAX_UNPACKED`]). + pub fn read(&self, entry: &Entry) -> Result, RpfError> { + if entry.size > crate::MAX_UNPACKED { + let source = std::io::Error::new(std::io::ErrorKind::InvalidData, "too large to read into memory"); + return Err(RpfError::Inflate { archive: self.display.clone(), entry: self.entry_name(entry), source }); + } + let mut data = Vec::with_capacity(entry.size.min(crate::PREALLOCATE) as usize); + self.copy_to(entry, &mut data)?; + Ok(data) + } +} + +/// Joins the chunks of files stored in several streams: a stream that +/// unpacks to exactly [`CHUNK`] bytes continues in the stream right after +/// it. Streams that start inside an earlier one are dropped (a scanner that +/// started in the middle of a file can find such). +fn join_chunks(streams: impl Iterator) -> Vec { + let mut entries: Vec = Vec::new(); + // Unpacked size of the stream before, when the next may continue it. + let mut last_size = 0; + for s in streams { + if let Some(prev) = entries.last_mut() { + let end = prev.offset + prev.stored; + if s.offset < end { + continue; + } + let continues = s.kind == Kind::Zlib + && prev.kind == Kind::Zlib + && last_size == CHUNK + && s.offset == end.next_multiple_of(ALIGN); + if continues { + prev.stored = s.offset + s.stored - prev.offset; + prev.size += s.size; + prev.streams += 1; + last_size = s.size; + continue; + } + } + last_size = s.size; + entries.push(Entry { + offset: s.offset, + stored: s.stored, + size: s.size, + streams: 1, + kind: s.kind, + head: s.head, + head_len: s.head_len, + }); + } + entries +} + +/// Reads a file through a window that moves forward with the scan. +struct Scanner { + file: File, + size: u64, + buf: Vec, + /// File offset of `buf[0]`. + base: u64, + scratch: Vec, +} + +impl Scanner { + fn new(file: File, size: u64) -> Scanner { + Scanner { file, size, buf: Vec::new(), base: 0, scratch: vec![0; 1 << 16] } + } + + /// The bytes from `pos` on: as many as the window holds, none at the end + /// of the file. + fn at(&mut self, pos: u64) -> Result<&[u8], RpfError> { + let end = self.base + self.buf.len() as u64; + let have = if pos >= self.base && pos < end { (end - pos) as usize } else { 0 }; + if have < WINDOW_MIN && end.max(pos) < self.size || have == 0 { + let len = (self.size.saturating_sub(pos)).min(WINDOW as u64) as usize; + self.buf.resize(len, 0); + self.file.seek(SeekFrom::Start(pos))?; + self.file.read_exact(&mut self.buf)?; + self.base = pos; + } + Ok(&self.buf[(pos - self.base) as usize..]) + } + + /// The streams that start in `from..to`; the last one may end after `to`. + fn streams( + &mut self, + from: u64, + to: u64, + cancel: &AtomicBool, + advanced: &mut dyn FnMut(u64), + ) -> Result, RpfError> { + let mut found = Vec::new(); + let (mut pos, mut reported) = (from, from); + while pos < to { + if cancel.load(Ordering::Relaxed) { + return Err(RpfError::Cancelled); + } + if pos - reported >= 16 << 20 { + advanced(pos - reported); + reported = pos; + } + let buf = self.at(pos)?; + let len = buf.len().min((to - pos) as usize); + let Some(i) = memchr::memchr3(0x78, b'K', b'A', &buf[..len]) else { + pos += len as u64; + continue; + }; + let candidate = pos + i as u64; + pos = match self.stream_at(candidate)? { + Some(s) => { + let end = s.offset + s.stored; + found.push(s); + end + } + None => candidate + 1, + }; + } + advanced(to - reported.min(to)); + Ok(found) + } + + /// The zlib stream, Bink 2 video or audio container that starts at `pos`, + /// if one does. + fn stream_at(&mut self, pos: u64) -> Result, RpfError> { + let size = self.size; + let start = self.at(pos)?; + if start.len() >= 28 && &start[..3] == b"KB2" && start[3].is_ascii_lowercase() { + // Bink 2: length without the first 8 bytes, frame count, …, width, height. + let total = u64::from(crate::word(start, 4)) + 8; + let (frames, width, height) = (crate::word(start, 8), crate::word(start, 20), crate::word(start, 24)); + let plausible = (1..=10_000_000).contains(&frames) + && (1..=16_384).contains(&width) + && (1..=16_384).contains(&height) + && total >= 28 + && total <= size - pos; + let mut head = [0u8; 16]; + head.copy_from_slice(&start[..16]); + return Ok(plausible.then_some(Stream { + offset: pos, + stored: total, + size: total, + kind: Kind::Bink2, + head, + head_len: 16, + })); + } + if pos.is_multiple_of(ALIGN) + && let Some(total) = awc_len(start) + { + let mut head = [0u8; 16]; + head.copy_from_slice(&start[..16]); + return Ok((total <= size - pos).then_some(Stream { + offset: pos, + stored: total, + size: total, + kind: Kind::Awc, + head, + head_len: 16, + })); + } + if start.len() < 2 || start[0] != 0x78 || !matches!(start[1], 0x01 | 0x5E | 0x9C | 0xDA) { + return Ok(None); + } + let mut inflater = flate2::Decompress::new(true); + let mut scratch = std::mem::take(&mut self.scratch); + let (mut head, mut head_len) = ([0u8; 16], 0usize); + let result = loop { + let (read, written) = (inflater.total_in(), inflater.total_out()); + let input = match self.at(pos + read) { + Ok(input) if !input.is_empty() => input, + Ok(_) => break None, + Err(e) => { + self.scratch = scratch; + return Err(e); + } + }; + let status = inflater.decompress(input, &mut scratch, flate2::FlushDecompress::None); + let produced = (inflater.total_out() - written) as usize; + let take = produced.min(16 - head_len); + head[head_len..head_len + take].copy_from_slice(&scratch[..take]); + head_len += take; + match status { + Ok(flate2::Status::StreamEnd) => break Some(()), + Ok(_) if inflater.total_in() > read || produced > 0 => {} + _ => break None, + } + }; + self.scratch = scratch; + Ok(result.filter(|()| inflater.total_out() > 0).map(|()| Stream { + offset: pos, + stored: inflater.total_in(), + size: inflater.total_out(), + kind: Kind::Zlib, + head, + head_len: head_len as u8, + })) + } +} + +/// The length of the audio container that starts here, from its own tables: +/// `ADAT`, version 1, flags, stream count, header length; optional tables +/// chosen by the flags; a word per stream (id, and in the top three bits its +/// number of chunks); a 64-bit word per chunk (type, size, offset). The +/// container ends where its last chunk does. +fn awc_len(start: &[u8]) -> Option { + if start.len() < 16 || &start[..4] != b"ADAT" || start[4..6] != [1, 0] { + return None; + } + let flags = u16::from_le_bytes([start[6], start[7]]); + let count = crate::word(start, 8) as usize; + let header = u64::from(crate::word(start, 12)); + if !(1..=1 << 16).contains(&count) { + return None; + } + let mut at = 16; + for (flag, len) in [(0x01, count * 2), (0x20, (count + 1) * 4), (0x40, 4)] { + if flags & flag != 0 { + at += len; + } + } + let streams = start.get(at..at + count * 4)?; + let chunks: usize = streams.as_chunks::<4>().0.iter().map(|w| usize::from(w[3] >> 5)).sum(); + at += count * 4; + let table = start.get(at..at + chunks * 8)?; + if (at + chunks * 8) as u64 > header { + return None; + } + let mut end = header; + for c in table.as_chunks::<8>().0 { + let v = u64::from_le_bytes(*c); + end = end.max((v & 0x0FFF_FFFF) + ((v >> 28) & 0x0FFF_FFFF)); + } + Some(end) +} + +const INDEX_RECORD: usize = 46; + +/// The entries as bytes, to store them (see [`decode_index`]). +pub fn encode_index(entries: &[Entry]) -> Vec { + let mut out = Vec::with_capacity(entries.len() * INDEX_RECORD); + for e in entries { + out.extend_from_slice(&e.offset.to_le_bytes()); + out.extend_from_slice(&e.stored.to_le_bytes()); + out.extend_from_slice(&e.size.to_le_bytes()); + out.extend_from_slice(&e.streams.to_le_bytes()); + out.push(match e.kind { + Kind::Zlib => 0, + Kind::Bink2 => 1, + Kind::Awc => 2, + }); + out.push(e.head_len.min(16)); + out.extend_from_slice(&e.head); + } + out +} + +/// Entries stored with [`encode_index`]; `None` if the bytes are not such a +/// list or it is not sorted by offset. +pub fn decode_index(data: &[u8]) -> Option> { + let (records, rest) = data.as_chunks::(); + if !rest.is_empty() { + return None; + } + let u64_at = |r: &[u8], at: usize| Some(u64::from_le_bytes(r.get(at..at + 8)?.try_into().ok()?)); + let mut entries = Vec::with_capacity(records.len()); + for r in records { + let kind = match r[28] { + 0 => Kind::Zlib, + 1 => Kind::Bink2, + 2 => Kind::Awc, + _ => return None, + }; + let entry = Entry { + offset: u64_at(r, 0)?, + stored: u64_at(r, 8)?, + size: u64_at(r, 16)?, + streams: crate::word(r, 24), + kind, + head: r[30..46].try_into().ok()?, + head_len: r[29].min(16), + }; + if entries.last().is_some_and(|prev: &Entry| prev.offset >= entry.offset) { + return None; + } + entries.push(entry); + } + Some(entries) +} + +#[cfg(test)] +mod tests { + use super::*; + use flate2::Compression; + use flate2::write::ZlibEncoder; + + /// An audio container of one stream with two chunks, the last one + /// ending at `end`; `flags` chooses the optional tables. + fn awc(flags: u16, end: u32) -> Vec { + let mut out = b"ADAT".to_vec(); + out.extend_from_slice(&1u16.to_le_bytes()); + out.extend_from_slice(&flags.to_le_bytes()); + out.extend_from_slice(&1u32.to_le_bytes()); + let tables: u32 = + [(0x01, 2), (0x20, 8), (0x40, 4)].iter().filter(|(f, _)| flags & f != 0).map(|(_, n)| n).sum(); + let header = 16 + tables + 4 + 16; + out.extend_from_slice(&header.to_le_bytes()); + out.resize(16 + tables as usize, 0xEE); + out.extend_from_slice(&(7u32 | (2 << 29)).to_le_bytes()); + let chunk = |kind: u64, size: u32, offset: u32| (kind << 56) | (u64::from(size) << 28) | u64::from(offset); + out.extend_from_slice(&chunk(0x76, 32, header).to_le_bytes()); + out.extend_from_slice(&chunk(0x55, end - header - 32, header + 32).to_le_bytes()); + out.resize(end as usize, 0x55); + out + } + + #[test] + fn named_entries_are_listed_by_their_names() { + let names = Names::new([ + (0x300, "w_pistol.#dr".to_owned()), + (0x200, "W_Pistol.#dr".to_owned()), + (0x400, "odd name/..#ft".to_owned()), + (0x500, String::new()), + ]); + assert_eq!(names.len(), 3); + // The same name twice: the later entry gets a number. + assert_eq!((names.get(0x200), names.get(0x300)), (Some("W_Pistol.#dr"), Some("w_pistol~2.#dr"))); + assert_eq!(names.get(0x400), Some("odd_name_..#ft")); + assert_eq!(names.offset_of("w_PISTOL~2.#DR"), Some(0x300)); + assert_eq!((Names::group("w_pistol.#dr"), Names::group("plain.#dr")), ("w".to_owned(), "other".to_owned())); + + let (data, _) = archive(); + let dir = std::env::temp_dir().join(format!("rage-rpf9-names-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let path = dir.join("named.rpf"); + std::fs::write(&path, &data).unwrap(); + let rpf = Rpf9::open(&path).unwrap(); + let entries = rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap(); + rpf.set_names(Names::new([(entries[0].offset, "veh_car.#ft".to_owned())])); + assert_eq!(rpf.entry_name(&entries[0]), "models/veh/veh_car.#ft"); + assert_eq!(rpf.find(&entries, "Models/VEH/veh_car.#ft"), Some(0)); + assert_eq!(rpf.find(&entries, "xml/000000000100.xml"), None); + assert_eq!(rpf.find(&entries, &rpf.entry_name(&entries[1])), Some(1)); + assert_eq!(rpf.list_dir(&entries, "").0, ["bin", "bk2", "models", "psin"]); + assert_eq!(rpf.list_dir(&entries, "models"), (vec!["veh".to_owned()], vec![])); + assert_eq!(rpf.list_dir(&entries, "models/veh"), (vec![], vec![0])); + // The start of a large entry: at least what was asked for, not all of it. + let start = rpf.read_start(&entries[1], 100).unwrap(); + assert!(start.len() >= 100 && (start.len() as u64) < entries[1].size); + assert_eq!(rpf.read_start(&entries[0], 1 << 20).unwrap(), rpf.read(&entries[0]).unwrap()); + std::fs::remove_dir_all(dir).unwrap(); + } + + #[test] + fn finds_audio_containers_by_their_own_tables() { + assert_eq!(awc_len(&awc(0xFF21, 0x900)), Some(0x900)); + assert_eq!(awc_len(&awc(0xFF61, 0x400)), Some(0x400)); + // Not version 1, no streams, a chunk table that is cut off. + let mut other = awc(0xFF21, 0x900); + other[4] = 2; + assert_eq!(awc_len(&other), None); + other = awc(0xFF21, 0x900); + other[8] = 0; + assert_eq!(awc_len(&other), None); + assert_eq!(awc_len(&awc(0xFF21, 0x900)[..40]), None); + + let mut data = vec![0u8; 0x100]; + data[..4].copy_from_slice(&MAGIC.to_le_bytes()); + data[4..8].copy_from_slice(&0x100u32.to_le_bytes()); + data.extend(zlib(b"some text in front")); + pad(&mut data); + let at = data.len() as u64; + data.extend(awc(0xFF21, 0x900)); + pad(&mut data); + data.extend(zlib(b"and some after it")); + let dir = std::env::temp_dir().join(format!("rage-rpf9-awc-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let path = dir.join("audio.rpf"); + std::fs::write(&path, &data).unwrap(); + let rpf = Rpf9::open(&path).unwrap(); + let entries = rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap(); + let kinds: Vec = entries.iter().map(|e| e.kind).collect(); + assert_eq!(kinds, [Kind::Zlib, Kind::Awc, Kind::Zlib]); + assert_eq!((entries[1].offset, entries[1].stored, entries[1].extension().as_str()), (at, 0x900, "awc")); + assert_eq!(rpf.read(&entries[1]).unwrap(), awc(0xFF21, 0x900)); + assert_eq!(decode_index(&encode_index(&entries)).as_deref(), Some(&entries[..])); + std::fs::remove_dir_all(dir).unwrap(); + } + + fn zlib(data: &[u8]) -> Vec { + let mut enc = ZlibEncoder::new(Vec::new(), Compression::default()); + enc.write_all(data).unwrap(); + enc.finish().unwrap() + } + + fn pad(out: &mut Vec) { + out.resize(out.len().next_multiple_of(ALIGN as usize), 0); + } + + /// An archive with an opaque table and, in its data area: a small XML + /// file, a file of two and a half chunks, noise with a stream header that + /// leads nowhere, a Bink 2 video, a tagged binary. + fn archive() -> (Vec, Vec) { + let mut out = vec![0u8; 0x100]; + out[..4].copy_from_slice(&MAGIC.to_le_bytes()); + out[4..8].copy_from_slice(&0x100u32.to_le_bytes()); + out[0x40..0x100].fill(0xA7); + out.extend(zlib(b"")); + pad(&mut out); + let big: Vec = (0..CHUNK as usize * 2 + 1000).map(|i| (i * 31 % 251) as u8).collect(); + for chunk in big.chunks(CHUNK as usize) { + out.extend(zlib(chunk)); + pad(&mut out); + } + out.extend([0x78, 0x9C, 0xFF, 0xFF, 0x13, 0x37, b'K', b'B', b'2', 0x00]); + pad(&mut out); + let mut video = vec![0u8; 64]; + video[..4].copy_from_slice(b"KB2j"); + video[4..8].copy_from_slice(&56u32.to_le_bytes()); + video[8..12].copy_from_slice(&30u32.to_le_bytes()); + video[20..24].copy_from_slice(&1920u32.to_le_bytes()); + video[24..28].copy_from_slice(&1080u32.to_le_bytes()); + out.extend(&video); + pad(&mut out); + out.extend(zlib(b"PSIN\x01\x00\x00\x00rest of a tagged file")); + (out, big) + } + + fn write(name: &str, data: &[u8]) -> PathBuf { + let path = std::env::temp_dir().join(format!("openrage-rpf9-{}-{name}.rpf", std::process::id())); + std::fs::write(&path, data).unwrap(); + path + } + + #[test] + fn scan_finds_and_joins_streams() { + let (data, big) = archive(); + let path = write("scan", &data); + let rpf = Rpf9::open(&path).unwrap(); + assert_eq!(rpf.header().data_offset, 0x100); + let entries = rpf.entries().unwrap(); + let names: Vec = entries.iter().map(|e| rpf.entry_name(e)).collect(); + let exts: Vec<&str> = names.iter().map(|n| n.split('/').next().unwrap()).collect(); + assert_eq!(exts, ["xml", "bin", "bk2", "psin"]); + assert_eq!(names[0], "xml/000000000100.xml"); + assert_eq!((entries[1].streams, entries[1].size), (3, big.len() as u64)); + assert_eq!(rpf.read(&entries[1]).unwrap(), big); + assert_eq!(rpf.read(&entries[0]).unwrap(), b""); + assert_eq!(rpf.read(&entries[2]).unwrap().len(), 64); + assert!(rpf.read(&entries[3]).unwrap().starts_with(b"PSIN")); + + assert_eq!(rpf.find(&entries, &names[3].to_ascii_uppercase()), Some(3)); + assert_eq!(rpf.find(&entries, "xml/000000000101.xml"), None); + assert_eq!(rpf.find(&entries, &names[3].replace("psin/", "xml/")), None); + let (dirs, files) = rpf.list_dir(&entries, ""); + assert_eq!((dirs, files.len()), (vec!["bin".into(), "bk2".into(), "psin".into(), "xml".into()], 0)); + assert_eq!(rpf.list_dir(&entries, "psin"), (vec![], vec![3])); + assert!(rpf.is_dir(&entries, "bk2") && !rpf.is_dir(&entries, "ytd") && !rpf.is_dir(&entries, "xml/000")); + + assert_eq!(decode_index(&encode_index(&entries)).as_deref(), Some(&entries[..])); + assert_eq!(decode_index(&encode_index(&entries)[1..]), None); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn a_stream_with_a_wrong_checksum_is_not_a_file() { + let mut data = vec![0u8; 0x40]; + data[..4].copy_from_slice(&MAGIC.to_le_bytes()); + data[4..8].copy_from_slice(&0x40u32.to_le_bytes()); + let mut stream = zlib(b"some text that is long enough to matter"); + let last = stream.len() - 1; + stream[last] ^= 0x55; + data.extend(stream); + let path = write("checksum", &data); + assert_eq!(Rpf9::open(&path).unwrap().entries().unwrap().len(), 0); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn scan_can_be_cancelled_and_rejects_bad_headers() { + let (data, _) = archive(); + let path = write("cancel", &data); + let rpf = Rpf9::open(&path).unwrap(); + assert!(matches!(rpf.scan(&AtomicBool::new(true), &|_, _| {}), Err(RpfError::Cancelled))); + let mut bad = data.clone(); + bad[4..8].copy_from_slice(&u32::MAX.to_le_bytes()); + std::fs::write(&path, &bad).unwrap(); + assert!(matches!(Rpf9::open(&path), Err(RpfError::CorruptToc { .. }))); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn extensions_come_from_the_first_bytes() { + let ext = |head: &[u8]| { + let mut e = + Entry { offset: 0, stored: 0, size: 0, streams: 1, kind: Kind::Zlib, head: [0; 16], head_len: 0 }; + e.head[..head.len()].copy_from_slice(head); + e.head_len = head.len() as u8; + e.extension() + }; + assert_eq!(ext(b"\xEF\xBB\xBF\r\n "), "xml"); + assert_eq!(ext(b"NAME = value\r\n"), "txt"); + assert_eq!(ext(b"PSIN\x00\x01\x02\x03"), "psin"); + assert_eq!(ext(b"0DRP\x00\x00\x00\x00"), "0drp"); + assert_eq!(ext(b"17MY\x00\x00\x00\x00"), "bin"); + assert_eq!(ext(b"\x00\x00\x00\x00"), "bin"); + assert_eq!(ext(b""), "bin"); + } +} diff --git a/crates/rage-rpf/src/vfs.rs b/crates/rage-rpf/src/vfs.rs index 315c68a..30c5bb1 100644 --- a/crates/rage-rpf/src/vfs.rs +++ b/crates/rage-rpf/src/vfs.rs @@ -11,7 +11,7 @@ use rage_crypto::GtaVKeys; #[cfg(feature = "rdr2")] use crate::Rpf8; -use crate::{EntryId, Gta4Archive, Gta4EntryId, Rpf7, RpfError}; +use crate::{EntryId, Gta4Archive, Gta4EntryId, Rpf7, Rpf9, RpfError}; /// What a virtual path points to. More variants appear with crate features /// (`rdr2`), so matches need a fallback arm. @@ -37,6 +37,10 @@ pub enum Node { Gta4Dir(Arc, Gta4EntryId), /// A file inside a GTA IV archive. Gta4File(Arc, Gta4EntryId), + /// A folder of the recovery view of a GTA VI archive ("" for its top). + Rpf9Dir(Arc, String), + /// A recovered file of a GTA VI archive (index into its entries). + Rpf9File(Arc, usize), } fn is_rpf(name: &str) -> bool { @@ -69,6 +73,10 @@ pub fn resolve(root: &Path, vpath: &str, keys: Option>) -> Result< let rest: Vec = components.collect(); return resolve_rpf8(Arc::new(Rpf8::open_default(&next)?), &rest, vpath); } + if Rpf9::file_is_rpf9(&next) { + let rest: Vec = components.collect(); + return resolve_rpf9(Arc::new(Rpf9::open(&next)?), &rest, vpath); + } archive = Some(Arc::new(Rpf7::open(&next, keys.clone())?)); break; } @@ -129,6 +137,24 @@ fn resolve_rpf8(mut archive: Arc, rest: &[String], vpath: &str) -> Result< Ok(Node::Rpf8Dir(archive, dir)) } +/// Walks the rest of a path inside a GTA VI archive. The archive itself +/// resolves without its entries; anything below needs them, which scans the +/// archive unless an index is at hand. +fn resolve_rpf9(archive: Arc, rest: &[String], vpath: &str) -> Result { + if rest.is_empty() { + return Ok(Node::Rpf9Dir(archive, String::new())); + } + let path = rest.join("/"); + let entries = archive.entries()?; + if let Some(i) = archive.find(&entries, &path) { + return Ok(Node::Rpf9File(archive, i)); + } + if archive.is_dir(&entries, &path) { + return Ok(Node::Rpf9Dir(archive, path.to_ascii_lowercase())); + } + Err(RpfError::NotFound(vpath.to_owned())) +} + /// Walks the rest of a path inside a GTA IV archive. fn resolve_gta4(archive: Arc, rest: &[String], vpath: &str) -> Result { let mut cur = Gta4Archive::ROOT; From 43a1b80bcdfc3a41be01be3819c7d84f790ab99c Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 03:29:24 +0100 Subject: [PATCH 02/31] GTA VI: decrypt the RPF9 table of contents from the game executable Adds the native RPF9 reader that decodes the encrypted table of contents, using cipher material read from the user's own game_scarlett_master.exe (nothing is bundled; an unknown build is rejected by its SHA-256): - rpf9_cipher: the Scarlett build's table-driven 16-byte block transform (not standard AES, which is why it resisted key scanning), CBC for the header and AES-CTR (algorithm 17) for members. Key schedules and tables are read from the executable by selector. - rpf9_index: parses the decoded header into validated native tables and entries (slot, offset, sizes, type, name hashes, storage). - rpf9_names: the native 32-bit Jenkins and 64-bit Murmur name-hash leaves, path-candidate collection, and the static extension<->type mapping. - rpf9_native: finds the executable beside the archive, builds the cipher once, decodes the header (selector 9: two chained metadata spans), and parses the catalog. Verified against the local 1.0.2.1 Xbox archives: the header decrypts and the catalogs parse with the exact declared entry counts (common 418, data 699, audio 103), matching the clear-header fields. Not yet wired into the browse/extract path (the modules are staged behind allow(dead_code)); reading member payloads (chunked/CTR), the Rpf9/GUI integration and wider name recovery follow. The clear header now also exposes its declared slot count and transform selector, and the CLI/GUI recognize the executable for GTA VI. The cipher, index, name and documentation modules were reconstructed from the executable by a contributor; this commit fixes the missing extension-for-type mapping, resolves lints, and adds the decryption verification. Co-Authored-By: Claude Opus 4.8 --- README.md | 8 +- crates/openrage-app/src/detect.rs | 43 ++- crates/openrage-app/src/rpf9.rs | 18 +- crates/openrage-cli/src/cmd/archive.rs | 2 + crates/openrage-cli/src/cmd/verify.rs | 147 +++++++++- crates/openrage-cli/src/main.rs | 38 +++ crates/openrage-gui/src/preview.rs | 10 +- crates/openrage-gui/src/setup_ui.rs | 7 +- crates/openrage-gui/ui/app.slint | 2 +- crates/rage-rpf/README.md | 6 + crates/rage-rpf/src/lib.rs | 4 + crates/rage-rpf/src/rpf9.rs | 133 ++++++++- crates/rage-rpf/src/rpf9_cipher.rs | 360 +++++++++++++++++++++++++ crates/rage-rpf/src/rpf9_index.rs | 322 ++++++++++++++++++++++ crates/rage-rpf/src/rpf9_names.rs | 312 +++++++++++++++++++++ crates/rage-rpf/src/rpf9_native.rs | 164 +++++++++++ docs/rpf9-name-hashes.md | 109 ++++++++ docs/rpf9-scarlett.md | 100 +++++++ 18 files changed, 1756 insertions(+), 29 deletions(-) create mode 100644 crates/rage-rpf/src/rpf9_cipher.rs create mode 100644 crates/rage-rpf/src/rpf9_index.rs create mode 100644 crates/rage-rpf/src/rpf9_names.rs create mode 100644 crates/rage-rpf/src/rpf9_native.rs create mode 100644 docs/rpf9-name-hashes.md create mode 100644 docs/rpf9-scarlett.md diff --git a/README.md b/README.md index bbcceac..cb3944c 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ OpenIV's last release was in January 2022. OpenRAGE picks up where it left off a - **Mods, safely:** changes go to OpenIV's `mods` folder, never into your game files; every change and every `.oiv` package can be undone. - **Models in:** replace props and vehicle bodies of GTA V Enhanced with your own OBJ models; doors and bonnets keep moving (preview). - **ASI mods:** see and switch GTA V's ASI mods, and on Linux let Proton load the ASI loader with one click. -- **Ready for GTA VI:** support follows as fast as possible once GTA VI comes to PC. +- **GTA VI explorer (preview):** browse and extract recoverable RPF9 data; preview supported models and texture pools from the Scarlett build. - **Tested on the whole game:** every format is checked against every file of GTA V ([details](https://two-play.github.io/openrage/#status)). @@ -62,7 +62,7 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p |---|---|---| | **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | | **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) | -| **GTA VI** | 🔜 next: as fast as possible once it comes to PC | – | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9 recovery view: scan, browse and extract recoverable data; encrypted table of contents and original paths are not decoded | ◐ models · texture pools (`.ttpf`) · recovered text, audio containers and Bink 2 video files; recovery is incomplete | | **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) @@ -71,6 +71,10 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p Download the [latest release](https://github.com/Two-Play/openrage/releases/latest) for Linux (AppImage, Flatpak or `.tar.gz`) or Windows (`.zip`) and start `openrage-gui`. On first start it finds your game and sets up the keys. Step by step: **[Getting started](https://two-play.github.io/openrage/getting-started/)**. +For the GTA VI preview, choose the folder containing `game_scarlett_master.exe` or RPF9 archives. The explorer indexes the archives in the background and caches the results; scanning large archives for the first time can take several minutes. Recovered entries are grouped by file type and offset, with model names recovered from their data where possible. The executable is recognized for game selection and its icon; its presence does not unlock encrypted archive data. Editing RPF9 archives is not supported. + +The CLI also supports recovery browsing, extraction and verification, for example `openrage --game ls common.rpf` and `openrage --game verify common.rpf` (or a recovered folder or file inside it). Running `verify` without a path checks all RPF9 archives below the game folder. Verification streams the recovered entries through zlib and size/bounds checks, reports recovery coverage, and returns an error on a failed entry; unread data and the encrypted table of contents are outside its coverage. Format-specific verification and `--rebuild` are not supported for GTA VI yet. + To build from source (Rust, pinned in `rust-toolchain.toml`; on Linux also the fontconfig, xkbcommon, Wayland and ALSA development packages): ```sh diff --git a/crates/openrage-app/src/detect.rs b/crates/openrage-app/src/detect.rs index 6855947..a537650 100644 --- a/crates/openrage-app/src/detect.rs +++ b/crates/openrage-app/src/detect.rs @@ -74,14 +74,18 @@ pub fn is_rdr2_dir(dir: &Path) -> bool { dir.join(RDR2_EXE).is_file() } -/// Whether a folder holds GTA VI: no known program, but archives in the -/// RPF9 format. They open without keys (see [`rage_rpf::rpf9`]). +/// The program in the GTA VI Scarlett build. +pub const GTA6_EXE: &str = "game_scarlett_master.exe"; + +/// Whether a folder holds GTA VI: its Scarlett executable or archives in the +/// RPF9 format. Archives can also be explored without the executable through +/// the recovery view (see [`rage_rpf::rpf9`]). pub fn is_gta6_dir(dir: &Path) -> bool { if is_gta5_dir(dir) || is_rdr2_dir(dir) || crate::gta4::is_gta4_dir(dir) { return false; } - if dir.join("common.rpf").is_file() { - return rage_rpf::Rpf9::file_is_rpf9(&dir.join("common.rpf")); + if dir.join(GTA6_EXE).is_file() || rage_rpf::Rpf9::file_is_rpf9(&dir.join("common.rpf")) { + return true; } let Ok(rd) = fs::read_dir(dir) else { return false }; rd.flatten() @@ -101,6 +105,8 @@ pub fn game_icon(dir: &Path) -> Option<(u32, u32, Vec)> { &[RDR2_EXE] } else if crate::gta4::is_gta4_dir(dir) { &["GTAIV.exe"] + } else if is_gta6_dir(dir) { + &[GTA6_EXE] } else { &["GTA5_Enhanced.exe", "GTA5.exe", "PlayGTAV.exe"] }; @@ -153,6 +159,35 @@ pub fn collect_rpfs(dir: &Path, out: &mut Vec) { mod tests { use super::*; + #[test] + fn detects_gta6_from_scarlett_executable_or_rpf9_archives() { + let dir = std::env::temp_dir().join(format!("openrage-detect-gta6-{}", std::process::id())); + let _ = fs::remove_dir_all(&dir); + fs::create_dir_all(&dir).unwrap(); + assert!(!is_game_dir(&dir)); + + // The executable identifies the game even before archives are copied. + fs::write(dir.join(GTA6_EXE), b"MZ").unwrap(); + assert!(is_gta6_dir(&dir)); + assert!(is_game_dir(&dir)); + assert_eq!(game_name(&dir), Some("GTA VI")); + fs::remove_file(dir.join(GTA6_EXE)).unwrap(); + + // Archive-only copies remain supported. A non-RPF9 common.rpf must + // not hide another archive with the RPF9 signature. + fs::write(dir.join("common.rpf"), b"unrelated data").unwrap(); + assert!(!is_gta6_dir(&dir)); + fs::write(dir.join("data.RPF"), b"9FPR").unwrap(); + assert!(is_gta6_dir(&dir)); + assert_eq!(game_name(&dir), Some("GTA VI")); + + // An RPF9 file copied into another game's folder does not switch it. + fs::write(dir.join("GTA5.exe"), b"MZ").unwrap(); + assert!(!is_gta6_dir(&dir)); + assert_eq!(game_name(&dir), Some("GTA V")); + fs::remove_dir_all(&dir).unwrap(); + } + #[test] fn parses_library_folders() { let vdf = r#" diff --git a/crates/openrage-app/src/rpf9.rs b/crates/openrage-app/src/rpf9.rs index fb8b81a..b57f2ad 100644 --- a/crates/openrage-app/src/rpf9.rs +++ b/crates/openrage-app/src/rpf9.rs @@ -8,7 +8,7 @@ use std::collections::HashMap; use std::fs; -use std::io::{BufWriter, Write}; +use std::io::{BufWriter, Read, Write}; use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::{Arc, Mutex, OnceLock}; @@ -48,7 +48,16 @@ pub fn load_index(archive: &Path) -> Option> { fn load_index_from(index: &Path, archive: &Path) -> Option> { let data = fs::read(index).ok()?; let rest = data.strip_prefix(INDEX_MAGIC)?.strip_prefix(&identity(archive)?)?; - rpf9::decode_index(rest) + let entries = rpf9::decode_index(rest)?; + let mut file = fs::File::open(archive).ok()?; + let size = file.metadata().ok()?.len(); + let mut bytes = [0u8; rpf9::HEADER_LEN]; + file.read_exact(&mut bytes).ok()?; + let header = rpf9::Header::parse(&bytes)?; + entries + .iter() + .all(|entry| entry.offset >= u64::from(header.data_offset) && entry.offset + entry.stored <= size) + .then_some(entries) } /// Stores the index of an archive. @@ -372,6 +381,11 @@ mod tests { assert_eq!(load_index_from(&index, &path), None); store_index_to(&index, &path, &entries).unwrap(); assert_eq!(load_index_from(&index, &path).as_deref(), Some(&entries[..])); + let mut outside = entries.clone(); + outside[1].offset = fs::metadata(&path).unwrap().len(); + store_index_to(&index, &path, &outside).unwrap(); + assert_eq!(load_index_from(&index, &path), None); + store_index_to(&index, &path, &entries).unwrap(); let c = coverage(&rpf, &entries); assert_eq!((c.files, c.unpacked), (2, 25 + 12)); assert_eq!(c.stored + c.unread, rpf.data_len()); diff --git a/crates/openrage-cli/src/cmd/archive.rs b/crates/openrage-cli/src/cmd/archive.rs index d793622..7848572 100644 --- a/crates/openrage-cli/src/cmd/archive.rs +++ b/crates/openrage-cli/src/cmd/archive.rs @@ -262,6 +262,8 @@ pub(crate) fn cmd_info(game_dir: &Path, path: &str, keys: Option>) outln!("Archive: {}", rpf.display_name()); outln!("Format: RPF9 (Grand Theft Auto VI)"); outln!("Size: {} ({} bytes)", human(rpf.size()), rpf.size()); + outln!("Index slots: {} (declared in header; distinct from recovered streams)", rpf.header().entry_count); + outln!("TOC tag: {:#04x} (native transform selector)", rpf.header().toc_transform); outln!("Table: encrypted, not read (file names and folders are unknown)"); outln!("Data: from offset {:#x}, {}", rpf.header().data_offset, human(rpf.data_len())); // The archive itself is described without reading all of it. diff --git a/crates/openrage-cli/src/cmd/verify.rs b/crates/openrage-cli/src/cmd/verify.rs index ac53328..e583d81 100644 --- a/crates/openrage-cli/src/cmd/verify.rs +++ b/crates/openrage-cli/src/cmd/verify.rs @@ -1,4 +1,4 @@ -//! `openrage verify`: every file of a kind in the whole GTA V game. +//! `openrage verify`: archive data and game-specific formats. use crate::*; @@ -1414,6 +1414,11 @@ pub(crate) struct VerifyStats { } pub(crate) fn cmd_verify(game_dir: &Path, within: &str, keys: Option>) -> Result<()> { + match vfs::resolve(game_dir, within, keys.clone())? { + node @ (Node::Rpf9Dir(..) | Node::Rpf9File(..)) => return verify_rpf9(node, within), + node @ Node::Dir(_) if openrage_app::detect::is_gta6_dir(game_dir) => return verify_rpf9(node, within), + _ => {} + } let starts = archive_roots(game_dir, within, keys)?; let started = Instant::now(); let (stats, nested) = for_each_entry_parallel_reporting( @@ -1465,3 +1470,143 @@ pub(crate) fn cmd_verify(game_dir: &Path, within: &str, keys: Option Result<()> { + let started = Instant::now(); + let mut total = VerifyStats::default(); + match node { + Node::Rpf9Dir(rpf, dir) => verify_rpf9_archive(&rpf, &dir, None, &mut total)?, + Node::Rpf9File(rpf, i) => verify_rpf9_archive(&rpf, "", Some(i), &mut total)?, + Node::Dir(dir) => { + let mut found = Vec::new(); + collect_rpfs(&dir, &mut found); + for path in found.into_iter().filter(|p| rage_rpf::Rpf9::file_is_rpf9(p)) { + match rage_rpf::Rpf9::open(&path) + .map_err(anyhow::Error::from) + .and_then(|rpf| verify_rpf9_archive(&rpf, "", None, &mut total)) + { + Ok(()) => {} + Err(e) => total.errors.push(format!("{}: {e:#}", path.display())), + } + } + } + _ => bail!("{within}: not an RPF9 recovery path"), + } + if total.archives == 0 && total.errors.is_empty() { + bail!("{within}: no RPF9 archives found"); + } + for error in &total.errors { + outln!("FAIL {error}"); + } + outln!( + "{} RPF9 archives, {} recovered files checked, {} decoded, {} errors ({:.1}s)", + total.archives, + total.files, + human(total.bytes), + total.errors.len(), + started.elapsed().as_secs_f32() + ); + outln!( + "Recovery verification only: zlib decoding, entry bounds and unpacked sizes. Original names, encrypted table of contents and undiscovered data are not verified; raw audio/video checks do not validate their media contents." + ); + if !total.errors.is_empty() { + bail!("verification found {} errors", total.errors.len()); + } + Ok(()) +} + +fn verify_rpf9_archive(rpf: &rage_rpf::Rpf9, dir: &str, file: Option, total: &mut VerifyStats) -> Result<()> { + let entries = rpf.entries()?; + total.archives += 1; + let coverage = openrage_app::rpf9::coverage(rpf, &entries); + outln!( + "{}: recovery coverage: {} files, {} stored of {} data, {} unread (includes padding)", + rpf.display_name(), + coverage.files, + human(coverage.stored), + human(rpf.data_len()), + human(coverage.unread) + ); + if file.is_some_and(|i| i >= entries.len()) { + bail!("invalid recovery entry index"); + } + let prefix = + if dir.is_empty() { String::new() } else { format!("{}/", dir.trim_matches('/').to_ascii_lowercase()) }; + for (i, entry) in entries.iter().enumerate() { + let name = rpf.entry_name(entry); + if file.map_or_else(|| !name.to_ascii_lowercase().starts_with(&prefix), |selected| selected != i) { + continue; + } + total.files += 1; + match rpf.copy_to(entry, &mut std::io::sink()) { + Ok(bytes) if bytes == entry.size => total.bytes += bytes, + Ok(bytes) => total.errors.push(format!( + "{}/{name}: expected {} unpacked bytes, read {bytes}", + rpf.display_name(), + entry.size + )), + Err(error) => total.errors.push(format!("{}/{name}: {error}", rpf.display_name())), + } + } + Ok(()) +} + +#[cfg(test)] +mod rpf9_tests { + use super::*; + + fn archive(name: &str) -> (PathBuf, rage_rpf::Rpf9) { + let dir = std::env::temp_dir().join(format!("openrage-cli-rpf9-{}-{name}", std::process::id())); + let _ = fs::remove_dir_all(&dir); + fs::create_dir_all(&dir).unwrap(); + let mut bytes = vec![0u8; 64]; + bytes[..4].copy_from_slice(b"9FPR"); + bytes[4..8].copy_from_slice(&64u32.to_le_bytes()); + // A complete zlib stream containing "hello", followed by alignment. + bytes.extend_from_slice(b"\x78\x9c\xcb\x48\xcd\xc9\xc9\x07\x00\x06\x2c\x02\x15"); + bytes.resize(80, 0); + let path = dir.join("common.rpf"); + fs::write(&path, bytes).unwrap(); + (dir, rage_rpf::Rpf9::open(&path).unwrap()) + } + + #[test] + fn verifies_recovered_paths_and_skips_other_archive_formats() { + let (dir, rpf) = archive("paths"); + fs::write(dir.join(openrage_app::detect::GTA6_EXE), b"MZ").unwrap(); + fs::write(dir.join("other.rpf"), b"not RPF9").unwrap(); + fs::create_dir(dir.join("empty")).unwrap(); + assert!(cmd_verify(&dir, "empty", None).is_err()); + let entries = rpf.entries().unwrap(); + assert_eq!(entries.len(), 1); + assert_eq!(entries[0].size, 5); + let name = rpf.entry_name(&entries[0]); + assert!(cmd_verify(&dir, "", None).is_ok()); + assert!(cmd_verify(&dir, "common.rpf", None).is_ok()); + assert!(cmd_verify(&dir, "common.rpf/txt", None).is_ok()); + assert!(cmd_verify(&dir, &format!("common.rpf/{name}"), None).is_ok()); + let mut stats = VerifyStats::default(); + verify_rpf9_archive(&rpf, "txt", None, &mut stats).unwrap(); + assert_eq!((stats.archives, stats.files, stats.bytes), (1, 1, 5)); + assert!(stats.errors.is_empty()); + fs::remove_dir_all(dir).unwrap(); + } + + #[test] + fn detects_corrupted_data_against_a_recovery_index() { + let (dir, rpf) = archive("corrupt"); + let entries = rpf.entries().unwrap(); + assert_eq!(entries.len(), 1); + // Keep the already-recovered index, then break the stream checksum. + let mut bytes = fs::read(rpf.path()).unwrap(); + bytes[76] ^= 1; + fs::write(rpf.path(), bytes).unwrap(); + let mut stats = VerifyStats::default(); + verify_rpf9_archive(&rpf, "", Some(0), &mut stats).unwrap(); + assert_eq!((stats.files, stats.errors.len()), (1, 1)); + assert!(verify_rpf9(Node::Rpf9Dir(Arc::new(rpf), String::new()), "common.rpf").is_err()); + fs::remove_dir_all(dir).unwrap(); + } +} diff --git a/crates/openrage-cli/src/main.rs b/crates/openrage-cli/src/main.rs index ff02eeb..3512636 100644 --- a/crates/openrage-cli/src/main.rs +++ b/crates/openrage-cli/src/main.rs @@ -196,6 +196,44 @@ fn run() -> Result<()> { Command::Info { path } => cmd_info(&game_dir, &path, keys), Command::Extract { path, out, expand_archives } => cmd_extract(&game_dir, &path, &out, expand_archives, keys), Command::Find { pattern, r#in } => cmd_find(&game_dir, &r#in, &pattern, keys), + Command::Verify { + path, + textures, + models, + audio, + animations, + meta, + text, + particles, + collisions, + paths, + scripts, + media, + cutscenes, + rebuild, + openformats, + } if openrage_app::detect::is_gta6_dir(&game_dir) => { + if textures + || models + || audio + || animations + || meta + || text + || particles + || collisions + || paths + || scripts + || media + || cutscenes + || rebuild + || openformats + { + bail!( + "GTA VI verification currently checks recovered RPF9 data only; use `verify ` without format or rebuild flags" + ); + } + cmd_verify(&game_dir, &path, keys) + } Command::Verify { path, models: true, .. } if gta4 => cmd_verify_gta4_models(&game_dir, &path), Command::Verify { path, models: true, openformats: true, .. } => cmd_verify_openformats(&game_dir, &path, keys), Command::Verify { path, models: true, rebuild: true, .. } => cmd_verify_model_writer(&game_dir, &path, keys), diff --git a/crates/openrage-gui/src/preview.rs b/crates/openrage-gui/src/preview.rs index b25ddad..14a066f 100644 --- a/crates/openrage-gui/src/preview.rs +++ b/crates/openrage-gui/src/preview.rs @@ -806,7 +806,12 @@ pub(crate) fn gta4_preview(a: &rage_rpf::Gta4Archive, i: rage_rpf::Gta4EntryId) /// indexed already. Never starts the scan. pub(crate) fn rpf9_archive_info(rpf: &rage_rpf::Rpf9) -> Meta { use openrage_app::extract::human_size; - let mut meta = vec![kv("Format", "RPF9 (GTA VI)"), kv("Data", human_size(rpf.data_len()))]; + let mut meta = vec![ + kv("Format", "RPF9 (GTA VI)"), + kv("Data", human_size(rpf.data_len())), + kv("Declared index slots", grouped(rpf.header().entry_count as usize)), + kv("TOC transform tag", format!("{:#04x}", rpf.header().toc_transform)), + ]; match rpf.loaded().or_else(|| openrage_app::rpf9::load_index(rpf.path()).map(Arc::new)) { Some(entries) => { let c = openrage_app::rpf9::coverage(rpf, &entries); @@ -820,7 +825,8 @@ pub(crate) fn rpf9_archive_info(rpf: &rage_rpf::Rpf9) -> Meta { } meta.push(note( "The table of contents is encrypted, so names and folders are unknown. Files are found in the data itself \ - and named by their offset; data that is neither zlib, Bink 2 nor an audio container is not listed.", + and named by their offset; data that is neither zlib, Bink 2 nor an audio container is not listed. \ + Recovered streams do not correspond one-to-one to the declared index slots.", )); meta } diff --git a/crates/openrage-gui/src/setup_ui.rs b/crates/openrage-gui/src/setup_ui.rs index 25c97ea..5a94cde 100644 --- a/crates/openrage-gui/src/setup_ui.rs +++ b/crates/openrage-gui/src/setup_ui.rs @@ -180,7 +180,9 @@ pub(crate) fn show_folder_hint(ui: &AppWindow) { String::new() } else if let Some(name) = detect::game_name(&dir) { if detect::is_gta6_dir(&dir) { - format!("Found {name}. Its archives open without keys, but without file names. Press Open to continue.") + format!( + "Found {name}. RPF9 archives open read-only in recovery view: original names and encrypted files are unavailable. The first scan can take several minutes. Press Open to continue." + ) } else { format!("Found {name}. Press Open to continue.") } @@ -203,8 +205,7 @@ pub(crate) fn pick_path(w: Weak, file: bool, title: &'static str, app } /// What a game folder must hold. -const NO_GAME: &str = - "The folder must contain GTA5_Enhanced.exe, GTA5.exe, GTAIV.exe or RDR2.exe, or the archives of GTA VI."; +const NO_GAME: &str = "The folder must contain GTA5_Enhanced.exe, GTA5.exe, GTAIV.exe, RDR2.exe or game_scarlett_master.exe, or RPF9 archives of GTA VI."; /// Leaves a setup that cannot be closed: back to the list of games when there /// is one, otherwise out of OpenRAGE. diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index 632779d..7e84da4 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -3671,7 +3671,7 @@ export component AppWindow inherits Window { height: 48px; } Text { - text: @tr("Choose the folder of your game. OpenRAGE reads the archive keys from your own copy; no keys or game files are included. GTA VI archives open without keys."); + text: @tr("Choose the folder of your game. OpenRAGE reads the archive keys from your own copy; no keys or game files are included. GTA VI RPF9 archives open read-only in recovery view, without original names or encrypted files."); wrap: word-wrap; color: Theme.text-muted; } diff --git a/crates/rage-rpf/README.md b/crates/rage-rpf/README.md index 680629c..7d75144 100644 --- a/crates/rage-rpf/README.md +++ b/crates/rage-rpf/README.md @@ -10,6 +10,12 @@ Read and write RAGE archives, part of | RPF8 | Red Dead Redemption 2 | with the `rdr2` feature | no | | RPF9 | GTA VI | what is not encrypted (zlib data, videos, audio containers), without names (`rpf9`) | no | +RPF9 exposes the clear header's declared slot count and transform selector. +Recovered streams can split one native resource or combine its chunks, so +their count is not a measure of native index coverage. Scarlett executable +observations and the remaining native decoder work are recorded in +[`docs/rpf9-scarlett.md`](../../docs/rpf9-scarlett.md). + `vfs` resolves paths that cross archive boundaries (`update/update.rpf/x64/data/lang/americandlc.rpf/global.gxt2`). diff --git a/crates/rage-rpf/src/lib.rs b/crates/rage-rpf/src/lib.rs index 03ae21d..6f9c7c1 100644 --- a/crates/rage-rpf/src/lib.rs +++ b/crates/rage-rpf/src/lib.rs @@ -36,6 +36,10 @@ pub mod rpf8_keys; #[cfg(feature = "rdr2")] pub mod rpf8_names; pub mod rpf9; +mod rpf9_cipher; +pub mod rpf9_index; +pub mod rpf9_names; +mod rpf9_native; mod toc; pub mod vfs; pub mod writer; diff --git a/crates/rage-rpf/src/rpf9.rs b/crates/rage-rpf/src/rpf9.rs index 9b2ead5..bd45c4e 100644 --- a/crates/rage-rpf/src/rpf9.rs +++ b/crates/rage-rpf/src/rpf9.rs @@ -2,7 +2,8 @@ //! //! Layout (little-endian): //! - 64-byte header: magic `RPF9`, then the offset where the file data -//! starts. The other header fields are not understood yet. +//! starts, a declared entry count at `0x24` and transform tag at `0x2e`. +//! The protected index itself is not decoded. //! - The table of contents (names, sizes, offsets) up to the data offset. It //! is encrypted with keys that only the game's executable has; OpenRAGE //! does not read it. @@ -24,7 +25,7 @@ use std::collections::{BTreeSet, HashMap}; use std::fs::File; -use std::io::{BufRead, BufReader, Read, Seek, SeekFrom, Write}; +use std::io::{BufReader, Read, Seek, SeekFrom, Write}; use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicBool, AtomicU64, Ordering}; use std::sync::{Arc, Mutex, OnceLock, RwLock}; @@ -60,6 +61,11 @@ const MAGICS: [&[u8; 4]; 7] = [b"PSIN", b"PAMH", b"MHIU", b"RBF0", b"SPS1", b"RS pub struct Header { /// Where the file data starts; the table of contents ends here. pub data_offset: u32, + /// Native index slots declared by the clear header. Recovery streams do + /// not correspond one-to-one to these slots. + pub entry_count: u32, + /// Native header transform selector; this is not an archive key ID. + pub toc_transform: u8, } impl Header { @@ -67,7 +73,7 @@ impl Header { if b.len() < HEADER_LEN || crate::word(b, 0) != MAGIC { return None; } - Some(Header { data_offset: crate::word(b, 4) }) + Some(Header { data_offset: crate::word(b, 4), entry_count: crate::word(b, 0x24), toc_transform: b[0x2e] }) } } @@ -473,29 +479,47 @@ impl Rpf9 { pub fn copy_to(&self, entry: &Entry, out: &mut dyn Write) -> Result { let name = self.entry_name(entry); let outside = || RpfError::OutOfBounds { archive: self.display.clone(), entry: name.clone() }; - if entry.offset.checked_add(entry.stored).is_none_or(|end| end > self.size) { + if entry.offset < u64::from(self.header.data_offset) + || entry.stored == 0 + || entry.size == 0 + || entry.streams == 0 + || entry.offset.checked_add(entry.stored).is_none_or(|end| end > self.size) + { return Err(outside()); } let mut file = File::open(&self.path)?; file.seek(SeekFrom::Start(entry.offset))?; let mut reader = BufReader::with_capacity(1 << 16, file.take(entry.stored)); if entry.kind != Kind::Zlib { - return Ok(std::io::copy(&mut reader, out)?); + if entry.size != entry.stored || entry.streams != 1 { + return Err(outside()); + } + let written = std::io::copy(&mut reader, out)?; + return if written == entry.size { Ok(written) } else { Err(outside()) }; } let inflate = |source| RpfError::Inflate { archive: self.display.clone(), entry: name.clone(), source }; let (mut read, mut written) = (0u64, 0u64); for _ in 0..entry.streams { // Streams start aligned; the entry itself does too. let padding = read.next_multiple_of(ALIGN) - read; - reader.consume(padding as usize); - if reader.fill_buf()?.len() < padding as usize && padding > 0 { - return Err(outside()); + if padding > 0 { + let mut bytes = [0u8; ALIGN as usize]; + reader.read_exact(&mut bytes[..padding as usize])?; } let mut stream = flate2::bufread::ZlibDecoder::new(&mut reader); - written += std::io::copy(&mut stream, out).map_err(inflate)?; + // A stale or corrupt index must not cause unlimited output before + // the decoded length is checked. One extra byte detects overflow. + let limit = entry.size.saturating_sub(written).saturating_add(1); + written += std::io::copy(&mut (&mut stream).take(limit), out).map_err(inflate)?; read += padding + stream.total_in(); + if written > entry.size { + return Err(inflate(std::io::Error::new( + std::io::ErrorKind::InvalidData, + "unpacked size exceeds the index", + ))); + } } - if written != entry.size { + if written != entry.size || read != entry.stored { let short = std::io::Error::new(std::io::ErrorKind::InvalidData, "unpacked size differs from the index"); return Err(inflate(short)); } @@ -647,7 +671,7 @@ impl Scanner { continue; }; let candidate = pos + i as u64; - pos = match self.stream_at(candidate)? { + pos = match self.stream_at(candidate, cancel)? { Some(s) => { let end = s.offset + s.stored; found.push(s); @@ -662,7 +686,7 @@ impl Scanner { /// The zlib stream, Bink 2 video or audio container that starts at `pos`, /// if one does. - fn stream_at(&mut self, pos: u64) -> Result, RpfError> { + fn stream_at(&mut self, pos: u64, cancel: &AtomicBool) -> Result, RpfError> { let size = self.size; let start = self.at(pos)?; if start.len() >= 28 && &start[..3] == b"KB2" && start[3].is_ascii_lowercase() { @@ -706,6 +730,10 @@ impl Scanner { let mut scratch = std::mem::take(&mut self.scratch); let (mut head, mut head_len) = ([0u8; 16], 0usize); let result = loop { + if cancel.load(Ordering::Relaxed) { + self.scratch = scratch; + return Err(RpfError::Cancelled); + } let (read, written) = (inflater.total_in(), inflater.total_out()); let input = match self.at(pos + read) { Ok(input) if !input.is_empty() => input, @@ -818,9 +846,20 @@ pub fn decode_index(data: &[u8]) -> Option> { streams: crate::word(r, 24), kind, head: r[30..46].try_into().ok()?, - head_len: r[29].min(16), + head_len: r[29], }; - if entries.last().is_some_and(|prev: &Entry| prev.offset >= entry.offset) { + let end = entry.offset.checked_add(entry.stored)?; + if entry.offset < HEADER_LEN as u64 + || entry.stored == 0 + || entry.size == 0 + || entry.streams == 0 + || entry.head_len > 16 + || u64::from(entry.head_len) > entry.size + || (entry.kind != Kind::Zlib && (entry.stored != entry.size || entry.streams != 1)) + || u64::from(entry.streams) > entry.stored + || end <= entry.offset + || entries.last().is_some_and(|prev: &Entry| prev.offset + prev.stored > entry.offset) + { return None; } entries.push(entry); @@ -1029,6 +1068,72 @@ mod tests { std::fs::remove_file(path).unwrap(); } + #[test] + fn clear_header_reports_native_slots_and_transform_tag() { + let mut bytes = [0u8; HEADER_LEN]; + bytes[..4].copy_from_slice(&MAGIC.to_le_bytes()); + bytes[4..8].copy_from_slice(&0x9580u32.to_le_bytes()); + bytes[0x24..0x28].copy_from_slice(&418u32.to_le_bytes()); + bytes[0x2e] = 9; + let header = Header::parse(&bytes).unwrap(); + assert_eq!(header.data_offset, 0x9580); + assert_eq!(header.entry_count, 418); + assert_eq!(header.toc_transform, 9); + assert!(Header::parse(&bytes[..HEADER_LEN - 1]).is_none()); + } + + #[test] + fn a_stream_scan_honors_cancellation_during_inflate() { + let (data, _) = archive(); + let path = write("cancel-inflate", &data); + let mut scanner = Scanner::new(File::open(&path).unwrap(), data.len() as u64); + assert!(matches!(scanner.stream_at(0x100, &AtomicBool::new(true)), Err(RpfError::Cancelled))); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn extraction_rejects_bad_lengths_and_truncated_stored_files() { + let (data, _) = archive(); + let path = write("read-bounds", &data); + let rpf = Rpf9::open(&path).unwrap(); + let entries = rpf.entries().unwrap(); + let mut entry = entries[0].clone(); + entry.size = 1; + let mut out = Vec::new(); + assert!(rpf.copy_to(&entry, &mut out).is_err()); + assert!(out.len() <= 2); + entry = entries[0].clone(); + entry.offset = 0; + assert!(matches!(rpf.copy_to(&entry, &mut Vec::new()), Err(RpfError::OutOfBounds { .. }))); + + // The file can be replaced after opening an archive. Stored media + // must report a short read just as compressed entries do. + let entry = &entries[2]; + std::fs::OpenOptions::new().write(true).open(&path).unwrap().set_len(entry.offset + 10).unwrap(); + assert!(rpf.copy_to(entry, &mut Vec::new()).is_err()); + std::fs::remove_file(path).unwrap(); + } + + #[test] + fn cached_entries_reject_overflow_overlap_and_invalid_records() { + let (data, _) = archive(); + let path = write("index-bounds", &data); + let entries = Rpf9::open(&path).unwrap().entries().unwrap(); + let encoded = encode_index(&entries); + for (at, bytes) in [ + (0, u64::MAX.to_le_bytes().to_vec()), + (8, 0u64.to_le_bytes().to_vec()), + (24, 0u32.to_le_bytes().to_vec()), + (29, vec![17]), + (INDEX_RECORD, entries[0].offset.to_le_bytes().to_vec()), + ] { + let mut bad = encoded.clone(); + bad[at..at + bytes.len()].copy_from_slice(&bytes); + assert!(decode_index(&bad).is_none(), "accepted invalid field at {at}"); + } + std::fs::remove_file(path).unwrap(); + } + #[test] fn extensions_come_from_the_first_bytes() { let ext = |head: &[u8]| { diff --git a/crates/rage-rpf/src/rpf9_cipher.rs b/crates/rage-rpf/src/rpf9_cipher.rs new file mode 100644 index 0000000..0d32c26 --- /dev/null +++ b/crates/rage-rpf/src/rpf9_cipher.rs @@ -0,0 +1,360 @@ +//! The Scarlett build's table-driven 16-byte block transform. +//! +//! Reconstructed from the instructions at VA 0x145642c50 of the executable +//! identified below. Tables and key schedules are read from the user's file; +//! none are bundled. This module supports only that exact executable build. + +// Not yet wired into the archive reader; integration follows. +#![allow(dead_code, clippy::items_after_test_module)] + +use std::collections::BTreeMap; + +use sha2::{Digest, Sha256}; + +const EXE_SHA256: [u8; 32] = [ + 0xe9, 0x50, 0x20, 0xb2, 0xfa, 0x4a, 0x72, 0x1d, 0xb3, 0xdf, 0x59, 0xfd, 0xec, 0xf7, 0x56, 0x21, 0x73, 0x0a, 0xc5, + 0x59, 0xd8, 0x83, 0x52, 0x52, 0xf6, 0xc3, 0xb6, 0x58, 0xd5, 0xa0, 0x89, 0x93, +]; +const INITIAL_VA: u64 = 0x146036f30; +const MIDDLE_VA: u64 = 0x146037f30; +const KEY_TABLE_VA: u64 = 0x1466e5900; +const KEY_RECORDS: usize = 24; +const KEY_BLOB_LEN: usize = 0x10f4; + +struct Key { + words: [u32; 60], + end: Vec, +} + +/// Cipher material extracted from a supported local executable. +pub(crate) struct Cipher { + initial: Vec, + middle: Vec, + keys: BTreeMap, + header_iv: [u8; 16], + ctr_initial: Vec, + ctr_middle: Vec, + ctr_keys: BTreeMap, +} + +impl Cipher { + /// Returns `None` for an unknown build or inconsistent PE/key layout. + pub(crate) fn from_exe(exe: &[u8]) -> Option { + if Sha256::digest(exe).as_slice() != EXE_SHA256 { + return None; + } + let initial = pe_bytes(exe, INITIAL_VA, 16 * 256)?.to_vec(); + let header_iv = pe_bytes(exe, 0x1462fd470, 16)?.try_into().ok()?; + let ctr_initial = pe_bytes(exe, 0x146040f30, 16 * 256)?.to_vec(); + let ctr_middle = pe_bytes(exe, 0x146041f30, 16 * 256 * 4)? + .as_chunks::<4>() + .0 + .iter() + .map(|word| u32::from_le_bytes(*word)) + .collect(); + let middle = pe_bytes(exe, MIDDLE_VA, 16 * 256 * 4)? + .as_chunks::<4>() + .0 + .iter() + .map(|word| u32::from_le_bytes(*word)) + .collect(); + let mut keys = BTreeMap::new(); + let mut ctr_keys = BTreeMap::new(); + for record in pe_bytes(exe, KEY_TABLE_VA, KEY_RECORDS * 24)?.as_chunks::<24>().0 { + let tag = u64::from_le_bytes(record[..8].try_into().ok()?); + // The native key lookup uses class 2 for decrypt state 1. + if tag as u32 != 0x02000000 { + continue; + } + let address = u64::from_le_bytes(record[8..16].try_into().ok()?); + let len = u64::from_le_bytes(record[16..24].try_into().ok()?); + if len != KEY_BLOB_LEN as u64 { + return None; + } + let blob = pe_bytes(exe, address, KEY_BLOB_LEN)?; + let magic = u32::from_le_bytes(blob[..4].try_into().ok()?); + if !matches!(magic, 0x4e3b9b8e | 0x2718ce5d) { + // Other algorithms share this key registry. Their serialized + // blobs have different magics and must not be treated as this + // transform's context. + continue; + } + let words = std::array::from_fn(|i| { + u32::from_le_bytes(blob[4 + i * 4..8 + i * 4].try_into().expect("bounded word")) + }); + let target = if magic == 0x4e3b9b8e { &mut keys } else { &mut ctr_keys }; + target.insert((tag >> 32) as u32, Key { words, end: blob[0xf4..].to_vec() }); + } + Some(Self { initial, middle, keys, header_iv, ctr_initial, ctr_middle, ctr_keys }) + } + + pub(crate) fn header_iv(&self) -> [u8; 16] { + self.header_iv + } + + pub(crate) fn has_key(&self, id: u32) -> bool { + self.keys.contains_key(&id) + } + + /// The pure block transform, without a chaining mode or padding. + pub(crate) fn decrypt_block(&self, id: u32, input: &[u8; 16]) -> Option<[u8; 16]> { + let key = self.keys.get(&id)?; + let mut state = [0u32; 4]; + for (column, word) in state.iter_mut().enumerate() { + for byte in 0..4 { + let i = column * 4 + byte; + *word = (*word << 8) ^ u32::from(self.initial[i * 256 + usize::from(input[i])]); + } + *word ^= key.words[column]; + } + let t = |table: usize, word: u32, shift: u32| self.middle[table * 256 + ((word >> shift) & 255) as usize]; + // The native loop processes pairs of rounds, then exits after the + // first half of its seventh iteration (13 rounds in total). + for round in 1..=13 { + let [a, b, c, d] = state; + state = [ + t(0, a, 24) ^ t(7, b, 0) ^ t(10, c, 8) ^ t(13, d, 16) ^ key.words[round * 4], + t(4, b, 24) ^ t(11, c, 0) ^ t(1, a, 16) ^ t(14, d, 8) ^ key.words[round * 4 + 1], + t(8, c, 24) ^ t(15, d, 0) ^ t(2, a, 8) ^ t(5, b, 16) ^ key.words[round * 4 + 2], + t(12, d, 24) ^ t(3, a, 0) ^ t(6, b, 8) ^ t(9, c, 16) ^ key.words[round * 4 + 3], + ]; + } + let [a, b, c, d] = state; + let selected = [ + a >> 24, + d >> 16, + c >> 8, + b, + b >> 24, + a >> 16, + d >> 8, + c, + c >> 24, + b >> 16, + a >> 8, + d, + d >> 24, + c >> 16, + b >> 8, + a, + ]; + Some(std::array::from_fn(|i| key.end[i * 256 + (selected[i] & 255) as usize])) + } + + /// Decrypts complete CBC blocks and updates the caller-owned chaining + /// state, permitting successive metadata spans to share a chain. + pub(crate) fn decrypt_cbc(&self, id: u32, bytes: &mut [u8], iv: &mut [u8; 16]) -> Option<()> { + if !bytes.len().is_multiple_of(16) || !self.has_key(id) { + return None; + } + for block in bytes.as_chunks_mut::<16>().0 { + let stored = *block; + let plain = self.decrypt_block(id, &stored)?; + for i in 0..16 { + block[i] = plain[i] ^ iv[i]; + } + *iv = stored; + } + Some(()) + } + + /// The counter-mode keystream primitive at VA `0x1456437c0`. This is a + /// separate transform from the CBC block primitive, with its own tables. + pub(crate) fn counter_block(&self, id: u32, input: &[u8; 16]) -> Option<[u8; 16]> { + let key = self.ctr_keys.get(&id)?; + let mut state = [0u32; 4]; + for (column, word) in state.iter_mut().enumerate() { + for byte in 0..4 { + let i = column * 4 + byte; + *word = (*word << 8) ^ u32::from(self.ctr_initial[i * 256 + usize::from(input[i])]); + } + *word ^= key.words[column]; + } + let t = |table: usize, word: u32, shift: u32| self.ctr_middle[table * 256 + ((word >> shift) & 255) as usize]; + for round in 1..=13 { + let [a, b, c, d] = state; + state = [ + t(0, a, 24) ^ t(5, b, 16) ^ t(10, c, 8) ^ t(15, d, 0) ^ key.words[round * 4], + t(4, b, 24) ^ t(9, c, 16) ^ t(14, d, 8) ^ t(3, a, 0) ^ key.words[round * 4 + 1], + t(8, c, 24) ^ t(13, d, 16) ^ t(2, a, 8) ^ t(7, b, 0) ^ key.words[round * 4 + 2], + t(12, d, 24) ^ t(1, a, 16) ^ t(6, b, 8) ^ t(11, c, 0) ^ key.words[round * 4 + 3], + ]; + } + let [a, b, c, d] = state; + let selected = [ + a >> 24, + b >> 16, + c >> 8, + d, + b >> 24, + c >> 16, + d >> 8, + a, + c >> 24, + d >> 16, + a >> 8, + b, + d >> 24, + a >> 16, + b >> 8, + c, + ]; + Some(std::array::from_fn(|i| key.end[i * 256 + (selected[i] & 255) as usize])) + } + + /// XORs bytes with algorithm 17's stream at `offset` bytes from the + /// beginning of an encrypted member. The native implementation increments + /// the full 16-byte counter in big-endian order after using each block. + /// `iv` is the descriptor's initial counter and is never modified. + pub(crate) fn crypt_ctr(&self, id: u32, bytes: &mut [u8], iv: &[u8; 16], offset: u64) -> Option<()> { + if !self.ctr_keys.contains_key(&id) { + return None; + } + let mut counter = u128::from_be_bytes(*iv).wrapping_add(u128::from(offset / 16)); + let mut skip = (offset % 16) as usize; + let mut at = 0; + while at < bytes.len() { + let stream = self.counter_block(id, &counter.to_be_bytes())?; + let take = (16 - skip).min(bytes.len() - at); + for i in 0..take { + bytes[at + i] ^= stream[skip + i]; + } + at += take; + skip = 0; + counter = counter.wrapping_add(1); + } + Some(()) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + // Zero tables produce a constant zero block. This isolates the CBC + // chaining contract from the reconstructed block cipher and game data. + fn constant_cipher() -> Cipher { + let key = Key { words: [0; 60], end: vec![0; 16 * 256] }; + Cipher { + initial: vec![0; 16 * 256], + middle: vec![0; 16 * 256], + keys: BTreeMap::from([(7, key)]), + header_iv: [0x12; 16], + ctr_initial: vec![0; 16 * 256], + ctr_middle: vec![0; 16 * 256], + ctr_keys: BTreeMap::new(), + } + } + + #[test] + fn cbc_uses_previous_ciphertext_and_carries_the_chain_between_spans() { + let cipher = constant_cipher(); + let mut first = [0x34; 32]; + first[16..].fill(0x56); + let mut chain = cipher.header_iv(); + cipher.decrypt_cbc(7, &mut first, &mut chain).unwrap(); + assert_eq!(&first[..16], &[0x12; 16]); + assert_eq!(&first[16..], &[0x34; 16]); + assert_eq!(chain, [0x56; 16]); + let mut second = [0x78; 16]; + cipher.decrypt_cbc(7, &mut second, &mut chain).unwrap(); + assert_eq!(second, [0x56; 16]); + assert_eq!(chain, [0x78; 16]); + } + + #[test] + fn cbc_rejects_unknown_keys_and_partial_blocks_before_mutating() { + let cipher = constant_cipher(); + let mut chain = [0x12; 16]; + let mut bytes = [0x34; 17]; + assert!(cipher.decrypt_cbc(7, &mut bytes, &mut chain).is_none()); + assert_eq!(bytes, [0x34; 17]); + assert!(cipher.decrypt_cbc(8, &mut bytes[..16], &mut chain).is_none()); + assert_eq!(bytes, [0x34; 17]); + assert_eq!(chain, [0x12; 16]); + assert!(Cipher::from_exe(b"an unknown executable build").is_none()); + } + + fn counter_cipher() -> Cipher { + let mut cipher = constant_cipher(); + cipher.ctr_initial = (0..16 * 256).map(|i| i as u8).collect(); + cipher.ctr_middle = + (0..16 * 256).map(|i| ((i % 256) as u32).wrapping_mul(0x9e3779b9).rotate_left((i / 256) as u32)).collect(); + cipher.ctr_keys.insert( + 9, + Key { + words: std::array::from_fn(|i| (i as u32).wrapping_mul(0x6a09e667)), + end: (0..16 * 256).map(|i| i as u8).collect(), + }, + ); + cipher + } + + #[test] + fn ctr_increments_the_counter_big_endian_and_wraps() { + let cipher = counter_cipher(); + let mut iv = [0u8; 16]; + iv[15] = 255; + let mut next = [0u8; 16]; + next[14] = 1; + let mut bytes = [0u8; 32]; + cipher.crypt_ctr(9, &mut bytes, &iv, 0).unwrap(); + assert_eq!(&bytes[..16], &cipher.counter_block(9, &iv).unwrap()); + assert_eq!(&bytes[16..], &cipher.counter_block(9, &next).unwrap()); + let mut wrap = [0u8; 32]; + cipher.crypt_ctr(9, &mut wrap, &[255; 16], 0).unwrap(); + assert_eq!(&wrap[16..], &cipher.counter_block(9, &[0; 16]).unwrap()); + } + + #[test] + fn ctr_reads_at_unaligned_offsets_match_whole_member_reads() { + let cipher = counter_cipher(); + let iv = [0x12; 16]; + let plain: Vec = (0..97).collect(); + let mut whole = plain.clone(); + cipher.crypt_ctr(9, &mut whole, &iv, 0).unwrap(); + assert_ne!(&whole[..16], &whole[16..32]); + for (start, end) in [(0, 3), (3, 21), (21, 32), (32, 81), (81, 97)] { + let mut part = plain[start..end].to_vec(); + cipher.crypt_ctr(9, &mut part, &iv, start as u64).unwrap(); + assert_eq!(part, whole[start..end]); + } + cipher.crypt_ctr(9, &mut whole, &iv, 0).unwrap(); + assert_eq!(whole, plain); + assert!(cipher.crypt_ctr(10, &mut whole, &iv, 0).is_none()); + assert_eq!(whole, plain); + } +} + +/// Converts an original-file PE address to a bounded source range. No +/// executable code is loaded or run by the parser. +fn pe_bytes(exe: &[u8], address: u64, len: usize) -> Option<&[u8]> { + if exe.get(..2)? != b"MZ" { + return None; + } + let pe = u32::from_le_bytes(exe.get(0x3c..0x40)?.try_into().ok()?) as usize; + if exe.get(pe..pe.checked_add(4)?)? != b"PE\0\0" { + return None; + } + let count = u16::from_le_bytes(exe.get(pe + 6..pe + 8)?.try_into().ok()?) as usize; + let opt_len = u16::from_le_bytes(exe.get(pe + 20..pe + 22)?.try_into().ok()?) as usize; + if count > 96 || opt_len < 32 || exe.get(pe + 24..pe + 26)? != [0x0b, 0x02] { + return None; + } + let base = u64::from_le_bytes(exe.get(pe + 48..pe + 56)?.try_into().ok()?); + let rva = address.checked_sub(base)?; + let start = pe.checked_add(24)?.checked_add(opt_len)?; + let sections = exe.get(start..start.checked_add(count.checked_mul(40)?)?)?; + for section in sections.as_chunks::<40>().0 { + let virtual_start = u32::from_le_bytes(section[12..16].try_into().ok()?) as u64; + let stored_len = u32::from_le_bytes(section[16..20].try_into().ok()?) as u64; + let stored_start = u32::from_le_bytes(section[20..24].try_into().ok()?) as u64; + let Some(relative) = rva.checked_sub(virtual_start) else { continue }; + if relative.checked_add(len as u64)? > stored_len { + continue; + } + let offset = usize::try_from(stored_start.checked_add(relative)?).ok()?; + return exe.get(offset..offset.checked_add(len)?); + } + None +} diff --git a/crates/rage-rpf/src/rpf9_index.rs b/crates/rage-rpf/src/rpf9_index.rs new file mode 100644 index 0000000..aac2fca --- /dev/null +++ b/crates/rage-rpf/src/rpf9_index.rs @@ -0,0 +1,322 @@ +//! Validated native RPF9 tables after header transforms have been removed. +//! +//! Layout reconstructed from the Scarlett loader and table getters documented +//! in `docs/rpf9-scarlett.md`. Cipher material is supplied separately by the +//! local executable; this parser contains no game data. + +use std::collections::HashSet; + +pub const RESOURCE: u64 = 0xba18_0afb_232d_1b4b; +pub const CHUNKED: u64 = 0x33f7_0dfa_f2c5_0989; +pub const RAW: u64 = 0x4eaa_16dd_8299_95bc; +pub const HASH32: u64 = 0xb707_6b62_45d3_5fb5; +pub const HASH64: u64 = 0x73bc_b72d_ce74_f11f; +pub const CHUNKS: u64 = 0xe0c1_2d7a_5d48_84c5; +pub const ENCRYPTION: u64 = 0x2860_30a3_58a7_89fb; +const MASK40: u64 = (1 << 40) - 1; +const MASK44: u64 = (1 << 44) - 1; +const MASK48: u64 = (1 << 48) - 1; + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Storage { + Raw, + Chunked, + Resource { system_flags: u32, graphics_flags: u32 }, +} + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct NativeEntry { + pub slot: usize, + pub offset: u64, + pub stored: u64, + pub size: u64, + pub type_id: u8, + pub layout: u8, + pub name_hash32: Option, + pub name_hash64: Option, + pub storage: Storage, + records: Vec>, +} + +#[derive(Debug, Clone)] +pub struct Table { + pub type_hash: u64, + pub count: usize, + pub stride: usize, + /// Absolute offset inside the decoded header, not inside archive payload. + pub start: usize, +} + +#[derive(Debug)] +pub struct Catalog { + pub entries: Vec, + pub tables: Vec
, + pub header: Vec, + pub split: usize, +} + +fn u16_at(b: &[u8], at: usize) -> u16 { + u16::from_le_bytes(b[at..at + 2].try_into().expect("validated field")) +} +fn u32_at(b: &[u8], at: usize) -> u32 { + u32::from_le_bytes(b[at..at + 4].try_into().expect("validated field")) +} +fn u64_at(b: &[u8], at: usize) -> u64 { + u64::from_le_bytes(b[at..at + 8].try_into().expect("validated field")) +} +fn aligned(value: usize, alignment: usize) -> Result { + if !alignment.is_power_of_two() { + return Err("invalid native table alignment".into()); + } + value.checked_add(alignment - 1).map(|n| n & !(alignment - 1)).ok_or_else(|| "native table overflow".into()) +} +fn sum(a: usize, b: usize) -> Result { + a.checked_add(b).ok_or_else(|| "native table overflow".into()) +} +fn product(a: usize, b: usize) -> Result { + a.checked_mul(b).ok_or_else(|| "native table overflow".into()) +} + +impl Catalog { + /// Parses already-decoded header bytes and checks all tables, entry + /// indices and payload ranges before exposing any native entries. + pub fn parse(header: Vec, archive_size: u64) -> Result { + if header.len() < 64 || u32_at(&header, 0) != 0x5250_4639 { + return Err("not a native RPF9 header".into()); + } + let extent = u32_at(&header, 4) as usize; + let split = u32_at(&header, 8) as usize; + if extent != header.len() || extent as u64 > archive_size || header.len() > 64 << 20 { + return Err("native header extent is invalid or too large".into()); + } + let directories = usize::from(u16_at(&header, 0x1a)); + let blob_size = u32_at(&header, 0x1c) as usize; + let table_count = usize::from(u16_at(&header, 0x20)); + let secondary = usize::from(u16_at(&header, 0x22)); + let count = u32_at(&header, 0x24) as usize; + let width = usize::from(header[0x2c]); + let wide_align = header[0x2d] & 1 != 0; + if !matches!(width, 1 | 2 | 4) || secondary > table_count || count > 1_000_000 { + return Err("unsupported native table dimensions".into()); + } + if table_count == 0 && count != 0 { + return Err("native entries have no tables".into()); + } + let primary = table_count - secondary; + let directory = aligned(64, if wide_align { 16 } else { 4 })?; + let blob = aligned(sum(directory, product(directories, 8)?)?, if wide_align { 16 } else { 8 })?; + let descriptors = aligned(sum(blob, blob_size)?, if wide_align { 16 } else { 8 })?; + let indices = aligned(sum(descriptors, product(table_count, 24)?)?, width)?; + let data = aligned(sum(indices, product(product(primary, count)?, width)?)?, 8)?; + let secondary_indices = aligned(split, width)?; + let secondary_data = aligned(sum(secondary_indices, product(product(secondary, count)?, width)?)?, 8)?; + if data > split || secondary_data > extent { + return Err("native table arrays lie outside the header".into()); + } + let mut tables = Vec::with_capacity(table_count); + let mut types = HashSet::new(); + for column in 0..table_count { + let at = descriptors + column * 24; + let type_hash = u64_at(&header, at); + let records = u32_at(&header, at + 8) as usize; + let offset = u32_at(&header, at + 12) as usize; + let stride = usize::from(u16_at(&header, at + 16)); + let (base, limit) = if column < primary { (data, split) } else { (secondary_data, extent) }; + let start = sum(base, offset)?; + if start > limit || sum(start, product(records, stride)?)? > limit || records > 0 && stride == 0 { + return Err(format!("native table {column} lies outside its header section")); + } + if !types.insert(type_hash) { + return Err("duplicate native table type".into()); + } + tables.push(Table { type_hash, count: records, stride, start }); + } + let mut entries = Vec::with_capacity(count); + for slot in 0..count { + let mut selected = Vec::with_capacity(table_count); + for (column, table) in tables.iter().enumerate() { + let (matrix, columns, local) = if column < primary { + (indices, primary, column) + } else { + (secondary_indices, secondary, column - primary) + }; + let at = matrix + (slot * columns + local) * width; + let index = match width { + 1 => u32::from(header[at]), + 2 => u32::from(u16_at(&header, at)), + _ => u32_at(&header, at), + }; + let missing = match width { + 1 => 0xff, + 2 => 0xffff, + _ => u32::MAX, + }; + if index == missing { + selected.push(None); + } else if (index as usize) < table.count { + selected.push(Some(table.start + index as usize * table.stride)); + } else { + return Err(format!("slot {slot} has an invalid native table index")); + } + } + let record = |kind: u64, min: usize| -> Result, String> { + let Some(column) = tables.iter().position(|t| t.type_hash == kind) else { return Ok(None) }; + let Some(at) = selected[column] else { return Ok(None) }; + let stride = tables[column].stride; + if stride < min { + return Err(format!("native record {kind:016x} is too short")); + } + Ok(Some(&header[at..at + stride])) + }; + let resource = record(RESOURCE, 18)?; + let chunked = record(CHUNKED, 24)?; + let raw = record(RAW, 16)?; + if [resource.is_some(), chunked.is_some(), raw.is_some()].into_iter().filter(|v| *v).count() != 1 { + return Err(format!("slot {slot} has missing or conflicting payload records")); + } + let (offset, stored, size, type_id, layout, storage) = if let Some(r) = resource { + let system_flags = u32_at(r, 0); + let graphics_flags = u32_at(r, 4); + ( + u64::from(u32_at(r, 12)) << 4, + u64::from(u32_at(r, 8)) << 4, + u64::from(system_flags & 0x7fff_fff0) + u64::from(graphics_flags & 0xffff_fff0), + r[16], + r[17], + Storage::Resource { system_flags, graphics_flags }, + ) + } else if let Some(r) = chunked { + ( + (u64_at(r, 0) & MASK40) << 4, + (u64_at(r, 8) & MASK40) << 4, + u64_at(r, 16) & MASK44, + r[5], + r[6], + Storage::Chunked, + ) + } else { + let r = raw.expect("one checked payload record"); + ( + u64::from(u32_at(r, 4)) << 4, + u64::from(u32_at(r, 0)) << 4, + u64_at(r, 8) & MASK48, + r[14], + r[15], + Storage::Raw, + ) + }; + if offset.checked_add(stored).is_none_or(|end| end > archive_size) + || stored > 0 && offset < extent as u64 + || stored == 0 && size != 0 + { + return Err(format!("slot {slot} payload lies outside the archive")); + } + let name_hash32 = record(HASH32, 4)?.map(|r| u32_at(r, 0)); + let name_hash64 = record(HASH64, 8)?.map(|r| u64_at(r, 0)); + entries.push(NativeEntry { + slot, + offset, + stored, + size, + type_id, + layout, + name_hash32, + name_hash64, + storage, + records: selected, + }); + } + Ok(Self { entries, tables, header, split }) + } + + /// A selected row's native table record, including optional tables whose + /// interpretation is handled by the payload decoder. + pub fn record(&self, slot: usize, table_type: u64) -> Option<&[u8]> { + let column = self.tables.iter().position(|t| t.type_hash == table_type)?; + let at = *self.entries.get(slot)?.records.get(column)?.as_ref()?; + self.header.get(at..at + self.tables[column].stride) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn fixture() -> Vec { + let mut b = vec![0u8; 224]; + let put32 = |b: &mut [u8], at, v: u32| b[at..at + 4].copy_from_slice(&v.to_le_bytes()); + put32(&mut b, 0, 0x5250_4639); + put32(&mut b, 4, 224); + put32(&mut b, 8, 192); + b[0x20..0x22].copy_from_slice(&3u16.to_le_bytes()); + b[0x22..0x24].copy_from_slice(&1u16.to_le_bytes()); + put32(&mut b, 0x24, 2); + b[0x2c] = 1; + b[0x2d] = 1; + for (column, kind, offset, stride) in [(0, RAW, 0u32, 16u16), (1, HASH32, 32, 4), (2, HASH64, 0, 8)] { + let at = 64 + column * 24; + b[at..at + 8].copy_from_slice(&kind.to_le_bytes()); + put32(&mut b, at + 8, 2); + put32(&mut b, at + 12, offset); + b[at + 16..at + 18].copy_from_slice(&stride.to_le_bytes()); + } + b[136..140].copy_from_slice(&[0, 0, 1, 1]); + b[192..194].copy_from_slice(&[0, 1]); + for slot in 0..2 { + let at = 144 + slot * 16; + put32(&mut b, at, 1); + put32(&mut b, at + 4, 16 + slot as u32 * 2); + put32(&mut b, at + 8, 5); + b[at + 14] = 0xff; + put32(&mut b, 176 + slot * 4, 0x1234 + slot as u32); + b[200 + slot * 8..208 + slot * 8].copy_from_slice(&(0xabcd + slot as u64).to_le_bytes()); + } + b + } + + #[test] + fn resolves_split_index_matrices_and_payload_records() { + let catalog = Catalog::parse(fixture(), 320).unwrap(); + assert_eq!(catalog.entries.len(), 2); + let e = &catalog.entries[1]; + assert_eq!((e.slot, e.offset, e.stored, e.size), (1, 288, 16, 5)); + assert_eq!((e.name_hash32, e.name_hash64), (Some(0x1235), Some(0xabce))); + assert_eq!(e.storage, Storage::Raw); + assert_eq!(catalog.record(1, RAW).unwrap().len(), 16); + assert!(catalog.record(2, RAW).is_none()); + assert!(catalog.record(0, RESOURCE).is_none()); + } + + #[test] + fn accepts_absent_optional_records_but_rejects_bad_indices_and_ranges() { + let mut b = fixture(); + b[139] = 0xff; + assert_eq!(Catalog::parse(b.clone(), 320).unwrap().entries[1].name_hash32, None); + b[138] = 2; + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[148..152].copy_from_slice(&u32::MAX.to_le_bytes()); + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[64 + 8..64 + 12].copy_from_slice(&u32::MAX.to_le_bytes()); + assert!(Catalog::parse(b, 320).is_err()); + assert!(Catalog::parse(fixture()[..223].to_vec(), 320).is_err()); + assert!(Catalog::parse(fixture(), 200).is_err()); + } + + #[test] + fn rejects_bad_dimensions_and_missing_storage() { + let mut b = fixture(); + b[0x2c] = 0; + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[0x22..0x24].copy_from_slice(&4u16.to_le_bytes()); + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[136] = 0xff; + assert!(Catalog::parse(b, 320).is_err()); + let mut b = fixture(); + b[64..72].copy_from_slice(&HASH32.to_le_bytes()); + assert!(Catalog::parse(b, 320).is_err()); + } +} diff --git a/crates/rage-rpf/src/rpf9_names.rs b/crates/rage-rpf/src/rpf9_names.rs new file mode 100644 index 0000000..93e8e67 --- /dev/null +++ b/crates/rage-rpf/src/rpf9_names.rs @@ -0,0 +1,312 @@ +//! Name-hash primitives observed in the Scarlett executable. +//! +//! These identify *candidate* paths; hashes do not recover the original text. +//! The 32-bit leaf is normalized Jenkins one-at-a-time. The 64-bit leaves +//! return the first half of MurmurHash3 x64-128, seed zero, with an unusual +//! final length XOR: only the low byte of the length is used. This matters +//! for strings longer than 255 bytes. These are format algorithms, not keys. +//! +//! Native routines treat inputs as C strings. A NUL ends each input; a leading +//! double quote makes the Jenkins leaf stop at the matching quote. The Murmur +//! leaf does not have that quote rule. See `docs/rpf9-name-hashes.md` for the +//! observation and isolated native comparison boundaries. + +/// ASCII path normalization shared by the observed native hash leaves. +pub fn normalize_byte(byte: u8) -> u8 { + match byte { + b'A'..=b'Z' => byte + (b'a' - b'A'), + b'\\' => b'/', + _ => byte, + } +} + +fn c_string(bytes: &[u8]) -> &[u8] { + &bytes[..bytes.iter().position(|b| *b == 0).unwrap_or(bytes.len())] +} + +/// Native normalized Jenkins name hash, with the leading-quote C-string rule. +pub fn hash32(bytes: &[u8]) -> u32 { + let bytes = c_string(bytes); + let bytes = if let Some(quoted) = bytes.strip_prefix(b"\"") { + "ed[..quoted.iter().position(|b| *b == b'"').unwrap_or(quoted.len())] + } else { + bytes + }; + let mut hash = 0u32; + for byte in bytes { + hash = hash.wrapping_add(u32::from(normalize_byte(*byte))); + hash = hash.wrapping_add(hash << 10); + hash ^= hash >> 6; + } + hash = hash.wrapping_add(hash << 3); + hash ^= hash >> 11; + hash.wrapping_add(hash << 15) +} + +/// Normalized 64-bit native name-hash leaf (ASCII case and slash folding). +pub fn hash64(bytes: &[u8]) -> u64 { + murmur64(c_string(bytes), normalize_byte) +} + +/// Raw 64-bit native name-hash leaf, without case or slash folding. +pub fn hash64_raw(bytes: &[u8]) -> u64 { + murmur64(c_string(bytes), |byte| byte) +} + +fn murmur64(bytes: &[u8], normalize: impl Fn(u8) -> u8) -> u64 { + const C1: u64 = 0x87c3_7b91_1142_53d5; + const C2: u64 = 0x4cf5_ad43_2745_937f; + let mix1 = |value: u64| value.wrapping_mul(C1).rotate_left(31).wrapping_mul(C2); + let mix2 = |value: u64| value.wrapping_mul(C2).rotate_left(33).wrapping_mul(C1); + let word = |slice: &[u8]| { + slice.iter().enumerate().fold(0u64, |value, (i, byte)| value | (u64::from(normalize(*byte)) << (i * 8))) + }; + let (mut h1, mut h2) = (0u64, 0u64); + let (blocks, tail) = bytes.as_chunks::<16>(); + for chunk in blocks { + h1 ^= mix1(word(&chunk[..8])); + h1 = h1.rotate_left(27).wrapping_add(h2).wrapping_mul(5).wrapping_add(0x52dc_e729); + h2 ^= mix2(word(&chunk[8..])); + h2 = h2.rotate_left(31).wrapping_add(h1).wrapping_mul(5).wrapping_add(0x3849_5ab5); + } + if tail.len() > 8 { + h2 ^= mix2(word(&tail[8..])); + } + if !tail.is_empty() { + h1 ^= mix1(word(&tail[..tail.len().min(8)])); + } + // The observed native leaves explicitly zero-extend AL, not EAX. + let length = u64::from(bytes.len() as u8); + h1 ^= length; + h2 ^= length; + h1 = h1.wrapping_add(h2); + h2 = h2.wrapping_add(h1); + fmix(h1).wrapping_add(fmix(h2)) +} + +fn fmix(mut value: u64) -> u64 { + value ^= value >> 33; + value = value.wrapping_mul(0xff51_afd7_ed55_8ccd); + value ^= value >> 33; + value = value.wrapping_mul(0xc4ce_b9fe_1a85_ec53); + value ^ (value >> 33) +} + +/// The built-in native extension type for a lower-case extension without `.`. +/// +/// Only the observed static mapping is represented. Additional types can be +/// registered by the game; this function returns `None` for unknown types. +/// The z/i/# families are aliases for each numeric type. In particular the +/// GTA V `y` family is not assumed to be an alias. +pub fn extension_type(extension: &str) -> Option { + if extension == "rpf" { + return Some(0); + } + let rest = extension.strip_prefix(['z', 'i', '#'])?; + Some(match rest { + "mf" => 1, + "dr" => 2, + "ft" => 3, + "dd" => 4, + "td" => 5, + "bn" => 6, + "bd" => 7, + "pd" => 8, + "bs" => 9, + "sd" => 10, + "mt" => 11, + "sc" => 12, + "cs" => 13, + "datb" => 14, + "bdr" => 15, + "bdd" => 16, + "bft" => 17, + "vert" => 18, + _ => return None, + }) +} + +/// The canonical extension for a built-in native type, the inverse of +/// [`extension_type`] over its `#` family. `None` for an unknown type. +/// Used to name an entry whose path is not recovered. +pub fn extension_for_type(type_id: u8) -> Option<&'static str> { + Some(match type_id { + 0 => "rpf", + 1 => "#mf", + 2 => "#dr", + 3 => "#ft", + 4 => "#dd", + 5 => "#td", + 6 => "#bn", + 7 => "#bd", + 8 => "#pd", + 9 => "#bs", + 10 => "#sd", + 11 => "#mt", + 12 => "#sc", + 13 => "#cs", + 14 => "#datb", + 15 => "#bdr", + 16 => "#bdd", + 17 => "#bft", + 18 => "#vert", + _ => return None, + }) +} + +/// Candidate path hashes and the recognized static extension type, if any. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub struct PathHashes { + pub hash32: u32, + pub hash64: u64, + pub file_type: Option, +} + +/// Hashes a relative path candidate. Recognized extensions are represented by +/// their type and omitted from the hash; unrecognized extensions stay in it. +/// +/// The extension is ASCII-lowercased for candidate matching. This is a helper +/// convention: the observed native extension dispatcher itself uses `strcmp`. +/// No mount prefix is removed by this helper. +pub fn path_hashes(path: &str) -> PathHashes { + let (stem, file_type) = path.rsplit_once('.').map_or((path, None), |(stem, extension)| { + let file_type = extension_type(&extension.to_ascii_lowercase()); + (if file_type.is_some() { stem } else { path }, file_type) + }); + PathHashes { hash32: hash32(stem.as_bytes()), hash64: hash64(stem.as_bytes()), file_type } +} + +/// Collects bounded NUL-terminated ASCII path candidates from an executable. +/// A candidate contains a slash or a static resource/media extension. Literal +/// `mount:/relative/path` strings contribute `relative/path`, matching native +/// mount-prefix removal. No directory or extension guesses are synthesized. +/// Candidates need catalog hash/type checks before being used as names. +pub fn candidates(exe: &[u8]) -> Vec { + let mut found = std::collections::BTreeSet::new(); + let mut start = None; + for (at, byte) in exe.iter().enumerate() { + if byte.is_ascii_graphic() || *byte == b' ' { + start.get_or_insert(at); + } else { + if *byte == 0 + && let Some(from) = start + && (3..=1024).contains(&(at - from)) + && let Ok(text) = std::str::from_utf8(&exe[from..at]) + && let Some(path) = candidate_path(text) + { + found.insert(path); + } + start = None; + } + } + found.into_iter().collect() +} + +/// Converts one literal executable path to a safe relative candidate. +/// Slash direction is normalized, case retained for display. Absolute paths, +/// traversal, format placeholders and invalid Windows filename characters are +/// rejected. This helper does not establish a catalog hash match. +pub fn candidate_path(text: &str) -> Option { + if !text.is_ascii() || text.trim() != text || !(3..=1024).contains(&text.len()) { + return None; + } + let slashes = text.replace('\\', "/"); + let path = if let Some((mount, path)) = slashes.split_once(":/") { + if mount.len() < 2 || !mount.bytes().all(|b| b.is_ascii_alphanumeric() || b == b'_') { + return None; + } + path + } else { + &slashes + }; + if path.is_empty() + || path.starts_with('/') + || path.bytes().any(|b| !b.is_ascii_graphic() && b != b' ' || b"<>\"|:*?%{}".contains(&b)) + || path.split('/').any(|part| part.is_empty() || part == "." || part == "..") + { + return None; + } + let supported_extension = path.rsplit_once('.').is_some_and(|(_, extension)| { + let extension = extension.to_ascii_lowercase(); + extension_type(&extension).is_some() || matches!(extension.as_str(), "bk2" | "awc") + }); + (path.contains('/') || supported_extension).then(|| path.to_owned()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn matches_isolated_native_leaf_results() { + // Synthetic strings, compared with the three native leaf routines. + for (input, short, normalized, raw) in [ + ("", 0, 0, 0), + ("a", 0xca2e_9442, 0x8555_5565_f659_7889, 0x8555_5565_f659_7889), + ("COMMON\\Data\\hello", 0x576c_1635, 0xccf5_dfed_5670_81fa, 0x70cd_be33_24e2_3190), + ("\"foo\"bar", 0x2386_78dd, 0x4538_4fc0_d320_a743, 0x4538_4fc0_d320_a743), + ] { + assert_eq!(hash32(input.as_bytes()), short); + assert_eq!(hash64(input.as_bytes()), normalized); + assert_eq!(hash64_raw(input.as_bytes()), raw); + } + assert_eq!(hash32(b"\"foo\"bar"), hash32(b"foo")); + assert_ne!(hash64(b"\"foo\"bar"), hash64(b"foo")); + assert_eq!(hash32(b"a\0ignored"), hash32(b"a")); + assert_eq!(hash64(b"a\0ignored"), hash64(b"a")); + } + + #[test] + fn matches_native_block_tail_and_length_byte_boundaries() { + for (length, short, normalized, raw) in [ + (15, 0x2f4d_b830, 0x7d07_a8db_fd2e_7fbc, 0x3c58_42c4_cf7d_1737), + (16, 0x1eac_851e, 0xf2c1_180d_62aa_a6ce, 0x37bd_7653_d0d1_9d9a), + (17, 0x9ad8_78a9, 0x6f72_14c7_cef2_d698, 0x8256_209c_f2de_16fd), + (255, 0x3193_730a, 0x6fd9_34f2_7dbd_cf29, 0x6d41_d82f_587f_0654), + (256, 0x5a7c_a609, 0x42bf_fdb3_5fe4_59a8, 0x0a2f_a29d_2b04_d60d), + (257, 0xc6e9_7364, 0xe8fb_e0e1_a76f_a966, 0x9669_0e26_7253_d702), + ] { + let input = vec![b'A'; length]; + assert_eq!(hash32(&input), short); + assert_eq!(hash64(&input), normalized); + assert_eq!(hash64_raw(&input), raw); + } + } + + #[test] + fn candidate_paths_keep_unknown_extensions_and_share_static_aliases() { + assert_eq!(extension_type("rpf"), Some(0)); + assert_eq!(extension_type("zdr"), Some(2)); + assert_eq!(extension_type("idr"), Some(2)); + assert_eq!(extension_type("#dr"), Some(2)); + assert_eq!(extension_type("ydr"), None); + let recognized = path_hashes("Models\\Example.ZDR"); + assert_eq!( + recognized, + PathHashes { hash32: hash32(b"models/example"), hash64: hash64(b"models/example"), file_type: Some(2) } + ); + let unknown = path_hashes("data/example.xml"); + assert_eq!(unknown.file_type, None); + assert_eq!(unknown.hash32, hash32(b"data/example.xml")); + assert_eq!(unknown.hash64, hash64(b"data/example.xml")); + } + + #[test] + fn executable_candidates_are_literal_bounded_and_relative() { + let bytes = b"\xffcommon:/Data\\Example.zdr\0common:/Data/Example.zdr\0intro.bk2\0audio.awc\0pack.rpf\0plain.txt\0../bad/file.xml\0https://host/file.xml\0/absolute/file.xml\0%s/path.xml\0word with no path\0unterminated/path.xml"; + assert_eq!(candidates(bytes), ["Data/Example.zdr", "audio.awc", "intro.bk2", "pack.rpf"]); + assert_eq!(candidate_path("data/Example.xml").as_deref(), Some("data/Example.xml")); + for bad in [ + "..\\file.zdr", + "a//file.zdr", + " leading/file.zdr", + "data/file:stream.zdr", + "data/é.zdr", + "C:\\Users\\file.zdr", + ] { + assert_eq!(candidate_path(bad), None); + } + let long = format!("data/{}.zdr\0", "x".repeat(1024)); + assert!(candidates(long.as_bytes()).is_empty()); + } +} diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs new file mode 100644 index 0000000..1142ca0 --- /dev/null +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -0,0 +1,164 @@ +//! Executable-backed native RPF9 indexes. The executable is parsed as data. + +// Not yet wired into the archive reader; integration follows. +#![allow(dead_code)] + +use std::collections::HashMap; +use std::fs::File; +use std::io::{Read, Seek, SeekFrom, Write}; +use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex, OnceLock}; + +use crate::rpf9_cipher::Cipher; +use crate::rpf9_index::{Catalog, NativeEntry, Storage}; +use crate::rpf9_names; + +pub(crate) struct Materials { + pub cipher: Cipher, + names: HashMap<(u32, u64, u8), String>, +} + +impl std::fmt::Debug for Materials { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("Materials").field("candidate_names", &self.names.len()).finish_non_exhaustive() + } +} + +/// Reuses runtime tables, never a checked-in or on-disk key cache. +pub(crate) fn materials(path: &Path) -> Option> { + static CACHE: OnceLock>>> = OnceLock::new(); + let executable = + path.ancestors().skip(1).take(5).map(|p| p.join("game_scarlett_master.exe")).find(|p| p.is_file())?; + let mut cache = CACHE.get_or_init(Default::default).lock().ok()?; + if let Some(materials) = cache.get(&executable) { + return Some(Arc::clone(materials)); + } + let bytes = std::fs::read(&executable).ok()?; + let cipher = Cipher::from_exe(&bytes)?; + let mut names = HashMap::new(); + for candidate in rpf9_names::candidates(&bytes) { + let hashes = rpf9_names::path_hashes(&candidate); + let key = (hashes.hash32, hashes.hash64, hashes.file_type.unwrap_or(255)); + names.entry(key).or_insert(candidate); + } + let materials = Arc::new(Materials { cipher, names }); + cache.insert(executable, Arc::clone(&materials)); + Some(materials) +} + +#[derive(Debug)] +pub(crate) struct NativeArchive { + pub catalog: Catalog, + pub materials: Arc, + pub paths: Vec, +} + +fn u16_at(b: &[u8], at: usize) -> Option { + Some(u16::from_le_bytes(b.get(at..at.checked_add(2)?)?.try_into().ok()?) as usize) +} +fn u32_at(b: &[u8], at: usize) -> Option { + Some(u32::from_le_bytes(b.get(at..at.checked_add(4)?)?.try_into().ok()?) as usize) +} + +pub(crate) fn decode_header(cipher: &Cipher, h: &mut [u8]) -> Option<()> { + if h.len() < 64 || h.get(..4)? != b"9FPR" { + return None; + } + if h[0x2e] == 0 { + return Some(()); + } + // The supported Scarlett build uses selector 9: two metadata spans + // share one CBC chain, leaving the secondary transform prefix intact. + if h[0x2e] != 9 { + return None; + } + let count = u16_at(h, 0x1a)?; + let directory_len = count.checked_mul(8)?.checked_add(15)? & !15; + let blob = 64usize.checked_add(directory_len)?; + let metadata_end = blob.checked_add(u32_at(h, 0x1c)?)?; + let tail = u32_at(h, 0x30)?; + let prefix = metadata_end.checked_sub(tail)?; + let split = u32_at(h, 8)?; + if prefix < blob || split < metadata_end || split > h.len() { + return None; + } + let mut iv = cipher.header_iv(); + cipher.decrypt_cbc(0x10000001, h.get_mut(64..blob)?, &mut iv)?; + cipher.decrypt_cbc(0x10000001, h.get_mut(blob..prefix)?, &mut iv)?; + let descriptor = (0..count).find_map(|i| { + let at = 64 + i * 8; + (u16_at(h, at)? == 1).then(|| blob.checked_add(u32_at(h, at + 4)?)).flatten() + })?; + let key = u32_at(h, descriptor)? as u32; + if u16_at(h, descriptor + 4)? != 16 { + return None; + } + let initial: [u8; 16] = h.get(descriptor + 6..descriptor + 22)?.try_into().ok()?; + let mut iv = initial; + cipher.decrypt_cbc(key, h.get_mut(prefix..split)?, &mut iv)?; + let mut iv = initial; + cipher.decrypt_cbc(key, h.get_mut(split..)?, &mut iv)?; + Some(()) +} + +impl NativeArchive { + pub fn open(path: &Path, base: u64, extent: u64, materials: Arc) -> Result { + let mut file = File::open(path).map_err(|e| e.to_string())?; + file.seek(SeekFrom::Start(base)).map_err(|e| e.to_string())?; + let mut head = [0u8; 64]; + file.read_exact(&mut head).map_err(|e| e.to_string())?; + let len = u32_at(&head, 4).ok_or("short header")?; + if !(64..=64 << 20).contains(&len) || len as u64 > extent { + return Err("native header extent is outside the archive".into()); + } + let mut bytes = vec![0u8; len]; + bytes[..64].copy_from_slice(&head); + file.read_exact(&mut bytes[64..]).map_err(|e| e.to_string())?; + decode_header(&materials.cipher, &mut bytes).ok_or("unsupported or damaged native header transform")?; + let catalog = Catalog::parse(bytes, extent)?; + let paths = catalog + .entries + .iter() + .map(|entry| { + let exact = entry + .name_hash32 + .zip(entry.name_hash64) + .and_then(|(a, b)| materials.names.get(&(a, b, entry.type_id))); + if let Some(path) = exact { + return path.clone(); + } + let ext = rpf9_names::extension_for_type(entry.type_id).unwrap_or("bin"); + format!("entries/{:06}_{:016x}.{ext}", entry.slot, entry.name_hash64.unwrap_or(0)) + }) + .collect(); + Ok(Self { catalog, materials, paths }) + } + + pub fn find(&self, path: &str) -> Option { + if let Some(slot) = self.paths.iter().position(|p| p.eq_ignore_ascii_case(path)) { + return Some(slot); + } + let h = rpf9_names::path_hashes(path); + self.catalog.entries.iter().position(|e| { + e.type_id == h.file_type.unwrap_or(255) + && e.name_hash64 == Some(h.hash64) + && e.name_hash32.is_none_or(|v| v == h.hash32) + }) + } + + pub fn copy_to(&self, path: &Path, base: u64, entry: &NativeEntry, out: &mut dyn Write) -> Result { + let mut file = File::open(path).map_err(|e| e.to_string())?; + file.seek(SeekFrom::Start(base.checked_add(entry.offset).ok_or("offset overflow")?)) + .map_err(|e| e.to_string())?; + if matches!(entry.storage, Storage::Raw) { + let n = std::io::copy(&mut file.take(entry.size), out).map_err(|e| e.to_string())?; + return if n == entry.size { Ok(n) } else { Err("short native member".into()) }; + } + // The chunk decoder validates each decoded length and checksum. + self.copy_chunks(file, entry, out) + } + + fn copy_chunks(&self, _file: File, _entry: &NativeEntry, _out: &mut dyn Write) -> Result { + Err("native payload layout is not supported yet".into()) + } +} diff --git a/docs/rpf9-name-hashes.md b/docs/rpf9-name-hashes.md new file mode 100644 index 0000000..d731558 --- /dev/null +++ b/docs/rpf9-name-hashes.md @@ -0,0 +1,109 @@ +# Scarlett native name lookup + +The target is the executable identified in [rpf9-scarlett.md](rpf9-scarlett.md). +These observations use offline GNU objdump disassembly, original-file byte +reads, and isolated calls to three pure hash leaves in private mapped memory. +They are not observations of the running game. No original game file was +written, and no executable entry point or initialization code was called. + +## Lookup observations + +The function at `0x145305880` accepts a device and path string. It checks a +normalized prefix hash against device offset `0x70`, using a prefix length +from `0x78`, and then hashes the relative suffix. The suffix's last dot +selects an extension through `0x14056ee50`. A recognized extension is omitted +from the string hash and retained as a separate type. An unrecognized +extension remains part of the hashed string. + +The path lookup eventually compares typed 32-bit or 64-bit hashes, through +`0x14056ec70` and `0x14056f130`. The getters reveal the index descriptor IDs: + +| Getter | Descriptor type hash | Value | +| --- | --- | --- | +| `0x145305ee0` | `0xb7076b6245d35fb5` | u32 name hash | +| `0x145520ac0` | `0x73bcb72dce74f11f` | u64 name hash | + +These lookup paths do not compare original filename strings. Decrypting the +index therefore does not by itself reverse these hashes into all original +paths. Candidate names can be checked against the hash and type; original +spelling and case are separate unknowns. This bounded lookup inspection does +not establish that no other archive structure or metadata contains names. + +## Hash leaves and comparison + +The native normalization table at `0x1465b23b0` changes only ASCII `A`–`Z` +to `a`–`z` and backslash to slash. All other byte values are unchanged. + +| Leaf address | Algorithm | +| --- | --- | +| `0x144fc21d0` | Jenkins one-at-a-time over normalized bytes; seed zero at this caller | +| `0x144f66de0` | Normalized MurmurHash3 x64-128, seed zero, returning h1 | +| `0x144f67220` | Raw MurmurHash3 x64-128, seed zero, returning h1 | + +The two Murmur leaves XOR only the low byte of the string length into the +final states. This differs from ordinary MurmurHash3 for lengths >= 256. +The Jenkins leaf has a C-string quote rule: if the first byte is a double +quote it skips that byte and stops at the next quote or NUL. Murmur has no +such quote rule. Every leaf stops at the first NUL. + +The native 64-bit wrapper `0x144f66800` chooses a registered function pointer +at `registry + mode * 0x58 + 0x28`. Static initialization at `0x145c35461` +loads the registry pointer, puts the raw leaf at offset `0x28`, and puts the +normalized leaf at offset `0x80` (`0x145c35491`). Thus the inspected +initialization configures mode 0 as raw and mode 1 as normalized. The native +path lookup selects mode 1. This is static initialization evidence, not a +recording of the running game's registration state. + +A small Linux C harness mapped PE sections privately at the preferred image +base, replaced the imported `strlen` trampoline in that private copy with +a local Microsoft-ABI `strlen` stub, and called only the three leaf addresses. +A separately written Python algorithm matched all 354 results for 118 +synthetic inputs: empty/quoted/path strings and deterministic strings with +lengths 1–99, 127–129, 254–257, 511–513 and 1023–1024. An additional six +synthetic repeated-character vectors covered 15/16/17 and 255/256/257 bytes. +The Rust implementation also matched all 354 native outputs for the same +118 synthetic strings. The Rust tests retain selected synthetic inputs and numeric outputs, without +executable code, game data, normalization-table bytes, or keys. + +## Static extension types + +The built-in dispatcher compares `rpf` with type 0 and has three alias +families, with prefixes `z`, `i`, and `#`: + +| Type | Suffix after the family prefix | +| ---: | --- | +| 1 | mf | +| 2 | dr | +| 3 | ft | +| 4 | dd | +| 5 | td | +| 6 | bn | +| 7 | bd | +| 8 | pd | +| 9 | bs | +| 10 | sd | +| 11 | mt | +| 12 | sc | +| 13 | cs | +| 14 | datb | +| 15 | bdr | +| 16 | bdd | +| 17 | bft | +| 18 | vert | + +The dispatcher uses the imported C `strcmp` and can consult additional +registered callbacks. `y`-prefixed GTA V extensions are not assumed to be +aliases. The Rust candidate helper lowercases extensions before matching as +an explicit candidate-generation convention, rather than claiming that the +native `strcmp` itself ignores case. Runtime extension registrations and +their complete type dictionary remain unobserved. + +## Candidate collection + +The executable scanner accepts NUL-terminated ASCII strings of 3–1024 bytes +containing a slash or a recognized static resource/media extension. It +normalizes slash direction and removes literal `mount:/` prefixes, consistent +with the inspected device suffix lookup. It synthesizes no directory or +extension guesses. Absolute paths, traversal, invalid filename characters +and format placeholders are rejected. The result is candidate text, never a +verified original name until its hashes and type match a catalog entry. diff --git a/docs/rpf9-scarlett.md b/docs/rpf9-scarlett.md new file mode 100644 index 0000000..1521379 --- /dev/null +++ b/docs/rpf9-scarlett.md @@ -0,0 +1,100 @@ +# Scarlett RPF9 header observations + +These are static observations of a user-supplied x86-64 PE file, inspected with +GNU `objdump` and a Python byte reader. The executable was read as data and was +not run. No game code, game bytes, cipher tables, or keys are included here. + +Executable: `game_scarlett_master.exe`, 120,181,760 bytes. + +SHA-256: `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993`. Addresses below are virtual addresses at image base +`0x140000000`. In this build's `.text`, file offset = VA - image base - `0xc00`. +The addresses are build-specific research references, not stable APIs. + +REA CLI 6.8.0 was available, but its doctor reported no configured native +decompiler engine (Ghidra, IDA, Hopper, or Kuna). The following native findings +therefore come from ordinary offline disassembly, not REA decompilation or +runtime evidence. + +## Clear header fields + +| Offset | Width | Observation | +| --- | --- | --- | +| `0x00` | u32 | Magic `0x52504639` | +| `0x04` | u32 | Full header extent used by loader mode 0; recovery data start | +| `0x08` | u32 | Initial header extent used by loader mode 1; the remaining header span is loaded separately | +| `0x24` | u32 | Declared entry/record count; used in layout size arithmetic | +| `0x2e` | u8 | Initial header transform selector; zero skips this transform | + +All integer fields above are little-endian. The count is a declaration; +reading it does not validate or decode the entry table. A nonzero transform +selector does not establish that every payload is encrypted. + +The loader at `0x141fb2600` reads 16 bytes and checks the magic +(`0x141fb268e`). At `0x141fb269e` it converts the caller's mode into an index +of zero or one and reads `[header + 4 + index * 4]` at `0x141fb26a7`. It +allocates that extent and reads the remainder after the initial 16 bytes. +For mode 1, `0x141fb26ec` loads the value at `+4`, `0x141fb26f1` loads `+8`, +and `0x141fb26ff` subtracts the latter from the former. The resulting byte +count is read at archive-relative offset `+8` (`0x141fb2730`–`0x141fb2744`). +Thus `+8` is a split boundary inside the header, not the archive data start. + +The layout builder at `0x14087af70` reads `+0x24` into `r10d` +(`0x14087af9a`) and passes it to `0x14087aff0`. The latter computes successive +table ranges, including `count * 24` (`0x14087b05c`, `0x14087b06d`) and +`(count - subcount) * stride * alignment` (`0x14087b07a`–`0x14087b083`). +This supports exposing the raw count as declared entries, without claiming +those entries have been recovered. + +The transform dispatcher at `0x140a348a0` reads byte `+0x2e` +(`0x140a348ae`), tests it through `0x140b85020` (a nonzero test), then +selects a family with `selector >> 1` (`0x140a348c0`). Selector zero takes +the success return without a transform. A nonzero selector's low bit +selects one combined span or two spans (`0x140a348d3`–`0x140a34962`). +Every root sample below has selector 9. + +## Root archive sample inventory + +Only the first 64 bytes and the full declared header were read for this +inventory. Hashes below identify the **stored full header**, not the complete +archive or its payload. All twelve root archives were sampled. + +| Archive | File bytes | +4 | +8 | Declared entries | Selector | Stored header SHA-256 | +| --- | ---: | ---: | ---: | ---: | ---: | --- | +| `anim.rpf` | 4407626384 | 18016 | 15360 | 265 | 9 | `4d9c1d570f50458508172613902a3075b033e907914c943fddc903d877cce7b2` | +| `appdata0.rpf` | 8880 | 864 | 832 | 2 | 9 | `fdbfc25bd0c41027e9d69d4324291f997db29d39c9513a8f72a512c4113fe95c` | +| `audio.rpf` | 28543454672 | 4944 | 4016 | 103 | 9 | `833969e3c6f13247f9da028653618b7df7733e5e7e51ddb889ffb9293121213a` | +| `common.rpf` | 6642192 | 38272 | 34080 | 418 | 9 | `c00636117394cf649c86c5cb90c1e067132d3d16ef2c66029a517c40c8ba2260` | +| `data.rpf` | 481544304 | 69728 | 62736 | 699 | 9 | `294db409d725a280ca510afe9b41afc40e4c35095545c9f1025976739eda7f42` | +| `levels.rpf` | 76155065056 | 110704 | 89920 | 2078 | 9 | `c34165af2bd74fce0f94ec36973e67796205e73fd36b67bcc79f595fe4b86a57` | +| `movies.rpf` | 8832481776 | 27328 | 22176 | 515 | 9 | `7601da37efd4c06dfc820fe0fc2662ce1e6a2a83515cb066e40eb750cb40ba59` | +| `navmeshes.rpf` | 6707512496 | 1920 | 1648 | 29 | 9 | `fccaa6261127a1628762fe6678e63920d218bedec78c81ecb1b794ef14094290` | +| `packs.rpf` | 4798213264 | 17744 | 16192 | 172 | 9 | `cf37936da5693d17c31445ae0c8f825d645f929433d45d87f7c548bd41722890` | +| `script.rpf` | 4358960 | 608 | 576 | 2 | 9 | `6739bfa0ed3f2ca735db2d7b6b5c5dddfdb0c6d844c27ddbf921eebd57513f1b` | +| `shaders.rpf` | 411695600 | 34368 | 34336 | 3 | 9 | `15f896951d3608eb45ca446c9d8198513076c0c9f2c3dd79981af8eb083a9af1` | +| `textures.rpf` | 192585024 | 1936 | 1728 | 22 | 9 | `d730f6a42de5474a7d9d490c672d4a2c0e35409a238508caf0943fdc660052e9` | + +## Remaining decoder work + +OpenRAGE's recovery scanner does not yet decode the protected native table. +The executable being present is not itself a verified decryption algorithm. +Further work must reconstruct the transform family and descriptor handling, +validate table bounds and member layouts, and compare decoded lengths and +checksums against representative local archives before enabling native index +browsing. Original path recovery, nested index navigation, signature checks, +and archive writing are separate work. + +Concrete static entry points for that work are the transform span builder +`0x1428ceb20`, descriptor setup `0x140a349a0`, transform dispatch +`0x1406bd160` / `0x140536a70`, and later header processing +`0x1408ec210`. These are leads, not proof of a complete decoder. + +## Local recovery validation + +The updated CLI was built and tested against the local `common.rpf` above. +`info` reported 418 declared native slots and transform tag `0x09` without +scanning the archive. `verify common.rpf` recovered and decoded 277 entries +(47.9 MiB unpacked), with zero read/checksum/length errors. A recursive JSON +listing contained the same 277 entries. Extracting its recovery `xml` folder +wrote 259 files (40.6 MiB) with zero failures, into a temporary output folder. +These checks validate the recovery path only; 277 streams must not be +interpreted as 277 of the 418 native slots. No original archive was changed. From 004f75a2412f39b43291fdd74ea4c4a32b757970 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 04:20:40 +0100 Subject: [PATCH 03/31] GTA VI: read members and browse archives by their own table Members are decoded from their chunk, encryption and resource records; nested archives open like folders. Names come from strings in the executable and the game's metadata, checked against the table's hashes. Also regenerates the third-party licence files. Co-Authored-By: Claude Opus 5.5 --- README.md | 8 +- THIRD_PARTY_LICENSES.md | 209 +++++++++----- crates/openrage-app/src/gta6_models.rs | 10 +- crates/openrage-app/src/metadata.rs | 2 +- crates/openrage-app/src/rpf9.rs | 22 +- .../src/third_party_licenses.json | 2 +- crates/openrage-cli/src/cmd/archive.rs | 56 +++- crates/openrage-cli/src/cmd/verify.rs | 11 +- crates/openrage-gui/src/browser.rs | 14 +- crates/openrage-gui/src/navigate.rs | 5 +- crates/openrage-gui/src/preview.rs | 18 +- crates/rage-rpf/src/rpf9.rs | 145 +++++++++- crates/rage-rpf/src/rpf9_cipher.rs | 69 +++-- crates/rage-rpf/src/rpf9_index.rs | 93 ++++++ crates/rage-rpf/src/rpf9_names.rs | 106 +++++++ crates/rage-rpf/src/rpf9_native.rs | 272 +++++++++++++++--- crates/rage-rpf/src/vfs.rs | 41 ++- docs/rpf9-scarlett.md | 61 +++- 18 files changed, 908 insertions(+), 236 deletions(-) diff --git a/README.md b/README.md index cb3944c..daea560 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ OpenIV's last release was in January 2022. OpenRAGE picks up where it left off a - **Mods, safely:** changes go to OpenIV's `mods` folder, never into your game files; every change and every `.oiv` package can be undone. - **Models in:** replace props and vehicle bodies of GTA V Enhanced with your own OBJ models; doors and bonnets keep moving (preview). - **ASI mods:** see and switch GTA V's ASI mods, and on Linux let Proton load the ASI loader with one click. -- **GTA VI explorer (preview):** browse and extract recoverable RPF9 data; preview supported models and texture pools from the Scarlett build. +- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; preview supported models and texture pools from the Scarlett build. - **Tested on the whole game:** every format is checked against every file of GTA V ([details](https://two-play.github.io/openrage/#status)).
@@ -62,7 +62,7 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p |---|---|---| | **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | | **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) | -| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9 recovery view: scan, browse and extract recoverable data; encrypted table of contents and original paths are not decoded | ◐ models · texture pools (`.ttpf`) · recovered text, audio containers and Bink 2 video files; recovery is incomplete | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names inside nested archives are mostly unknown | ◐ models · texture pools (`.ttpf`) · text, audio containers and Bink 2 video files | | **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) @@ -71,9 +71,9 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p Download the [latest release](https://github.com/Two-Play/openrage/releases/latest) for Linux (AppImage, Flatpak or `.tar.gz`) or Windows (`.zip`) and start `openrage-gui`. On first start it finds your game and sets up the keys. Step by step: **[Getting started](https://two-play.github.io/openrage/getting-started/)**. -For the GTA VI preview, choose the folder containing `game_scarlett_master.exe` or RPF9 archives. The explorer indexes the archives in the background and caches the results; scanning large archives for the first time can take several minutes. Recovered entries are grouped by file type and offset, with model names recovered from their data where possible. The executable is recognized for game selection and its icon; its presence does not unlock encrypted archive data. Editing RPF9 archives is not supported. +For the GTA VI preview, choose the folder containing `game_scarlett_master.exe` or RPF9 archives. With the supported executable beside the archives, OpenRAGE reads their tables of contents with the keys in it (the keys are not stored), so archives open at once. Names are matched to the hashes in the tables; files without a match are listed under `entries/`. Without the executable, or with another build, the explorer indexes the archives in the background and caches the results, which can take several minutes for large archives; recovered entries are then grouped by file type and offset, with model names recovered from their data where possible. Editing RPF9 archives is not supported. -The CLI also supports recovery browsing, extraction and verification, for example `openrage --game ls common.rpf` and `openrage --game verify common.rpf` (or a recovered folder or file inside it). Running `verify` without a path checks all RPF9 archives below the game folder. Verification streams the recovered entries through zlib and size/bounds checks, reports recovery coverage, and returns an error on a failed entry; unread data and the encrypted table of contents are outside its coverage. Format-specific verification and `--rebuild` are not supported for GTA VI yet. +The CLI also supports browsing, extraction and verification, for example `openrage --game ls common.rpf` and `openrage --game verify common.rpf` (or a folder or file inside it). Running `verify` without a path checks all RPF9 archives below the game folder. Verification decodes the entries with checksum, size and bounds checks and returns an error on a failed entry; in the recovery view, unread data is outside its coverage. Nested archives are checked when their path is given. Format-specific verification and `--rebuild` are not supported for GTA VI yet. To build from source (Rust, pinned in `rust-toolchain.toml`; on Linux also the fontconfig, xkbcommon, Wayland and ALSA development packages): diff --git a/THIRD_PARTY_LICENSES.md b/THIRD_PARTY_LICENSES.md index 8dff725..65eecd2 100644 --- a/THIRD_PARTY_LICENSES.md +++ b/THIRD_PARTY_LICENSES.md @@ -3,7 +3,7 @@ OpenRAGE is licensed under the GPL-3.0-only (see `LICENSE`); `crates/rage-tfit2` under the AGPL-3.0-only. Credits for format knowledge and ported code are in `NOTICE.md`. -The OpenRAGE programs contain the following 546 Rust crates. Their license texts +The OpenRAGE programs contain the following 547 Rust crates. Their license texts follow, each with the crates it applies to. This file is generated by `dev/third_party_licenses.py`; do not edit it by hand. @@ -281,6 +281,7 @@ This file is generated by `dev/third_party_licenses.py`; do not edit it by hand. | [once_cell_polyfill](https://github.com/polyfill-rs/once_cell_polyfill) | 1.70.2 | MIT OR Apache-2.0 | | [oozextract](https://github.com/lvlvllvlvllvlvl/oozextract) | 0.5.7 | MIT | | [option-ext](https://github.com/soc/option-ext.git) | 0.2.0 | MPL-2.0 | +| [opus-rs](https://github.com/restsend/opus-rs) | 0.1.42 | BSD-3-Clause | | [ordered-float](https://github.com/reem/rust-ordered-float) | 5.5.1 | MIT | | [ordered-stream](https://github.com/danieldg/ordered-stream) | 0.2.0 | MIT OR Apache-2.0 | | [os_pipe](https://github.com/oconnor663/os_pipe.rs) | 1.2.3 | MIT | @@ -8365,6 +8366,60 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #44 +Used by: opus-rs 0.1.42 + +~~~~text + +Copyright 2026 restsend.com + +Copyright 2001-2023 Xiph.Org, Skype Limited, Octasic, + Jean-Marc Valin, Timothy B. Terriberry, + CSIRO, Gregory Maxwell, Mark Borgerding, + Erik de Castro Lopo, Mozilla, Amazon + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +- Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +- Neither the name of Internet Society, IETF or IETF Trust, nor the +names of specific contributors, may be used to endorse or promote +products derived from this software without specific prior written +permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER +OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Opus is subject to the royalty-free patent licenses which are +specified at: + +Xiph.Org Foundation: +https://datatracker.ietf.org/ipr/1524/ + +Microsoft Corporation: +https://datatracker.ietf.org/ipr/1914/ + +Broadcom Corporation: +https://datatracker.ietf.org/ipr/1526/ +~~~~ + +### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #45 + Used by: encoding_rs 0.8.44 ~~~~text @@ -8424,7 +8479,7 @@ pub(crate) static GB18030_2022_OVERRIDE_BYTES: [[u8; 2]; 18] = [ ]; ~~~~ -### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #45 +### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #46 Used by: tiny-skia 0.11.4, tiny-skia 0.12.0, tiny-skia-path 0.11.4, tiny-skia-path 0.12.0 @@ -8461,7 +8516,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ~~~~ -### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #46 +### BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) #47 Used by: encoding_rs 0.8.44 @@ -8494,7 +8549,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ~~~~ -### Boost Software License 1.0 (BSL-1.0) #47 +### Boost Software License 1.0 (BSL-1.0) #48 Used by: error-code 3.4.0 @@ -8524,7 +8579,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### Boost Software License 1.0 (BSL-1.0) #48 +### Boost Software License 1.0 (BSL-1.0) #49 Used by: clipboard-win 5.4.3 @@ -8538,7 +8593,7 @@ The copyright notices in the Software and this entire statement, including the a THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### GNU General Public License v3.0 only (GPL-3.0-only) #49 +### GNU General Public License v3.0 only (GPL-3.0-only) #50 Used by: i-slint-backend-selector 1.18.1, i-slint-backend-winit 1.18.1, i-slint-common 1.18.1, i-slint-compiler 1.18.1, i-slint-core 1.18.1, i-slint-core-macros 1.18.1, i-slint-renderer-femtovg 1.18.1, i-slint-renderer-software 1.18.1, slint 1.18.1, slint-build 1.18.1, slint-macros 1.18.1 @@ -8777,7 +8832,7 @@ You should also get your employer (if you work as a programmer) or school, if an The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ~~~~ -### ISC License (ISC) #50 +### ISC License (ISC) #51 Used by: libloading 0.8.9 @@ -8796,7 +8851,7 @@ NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE US THIS SOFTWARE. ~~~~ -### MIT License (MIT) #51 +### MIT License (MIT) #52 Used by: uds_windows 1.2.1 @@ -8824,7 +8879,7 @@ Used by: uds_windows 1.2.1 SOFTWARE ~~~~ -### MIT License (MIT) #52 +### MIT License (MIT) #53 Used by: cfg_aliases 0.2.2 @@ -8857,7 +8912,7 @@ The `cfg_aliases!` macro uses a lot of the code from [`tectonic_cfg_support::tar --- ~~~~ -### MIT License (MIT) #53 +### MIT License (MIT) #54 Used by: texpresso 2.0.2 @@ -8924,7 +8979,7 @@ where } ~~~~ -### MIT License (MIT) #54 +### MIT License (MIT) #55 Used by: mio 1.2.4 @@ -8950,7 +9005,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #55 +### MIT License (MIT) #56 Used by: libsqlite3-sys 0.39.1, rusqlite 0.41.1 @@ -8976,7 +9031,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #56 +### MIT License (MIT) #57 Used by: nom 8.0.0 @@ -9003,7 +9058,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #57 +### MIT License (MIT) #58 Used by: float-cmp 0.9.0 @@ -9029,7 +9084,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #58 +### MIT License (MIT) #59 Used by: wayland-backend 0.3.17, wayland-client 0.31.15, wayland-cursor 0.31.14, wayland-protocols 0.32.13, wayland-protocols-plasma 0.3.12, wayland-protocols-wlr 0.3.12, wayland-scanner 0.31.11, wayland-sys 0.31.11 @@ -9055,7 +9110,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #59 +### MIT License (MIT) #60 Used by: ordered-float 5.5.1 @@ -9087,7 +9142,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #60 +### MIT License (MIT) #61 Used by: dlib 0.5.3 @@ -9113,7 +9168,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #61 +### MIT License (MIT) #62 Used by: memoffset 0.9.1 @@ -9139,7 +9194,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #62 +### MIT License (MIT) #63 Used by: bytes 1.12.1 @@ -9171,7 +9226,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #63 +### MIT License (MIT) #64 Used by: smithay-client-toolkit 0.19.2 @@ -9197,7 +9252,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #64 +### MIT License (MIT) #65 Used by: calloop 0.13.0 @@ -9223,7 +9278,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #65 +### MIT License (MIT) #66 Used by: slab 0.4.12 @@ -9255,7 +9310,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #66 +### MIT License (MIT) #67 Used by: tracing 0.1.44, tracing-attributes 0.1.31, tracing-core 0.1.36 @@ -9287,7 +9342,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #67 +### MIT License (MIT) #68 Used by: pico-args 0.5.0 @@ -9313,7 +9368,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #68 +### MIT License (MIT) #69 Used by: pin-weak 1.1.0 @@ -9339,7 +9394,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #69 +### MIT License (MIT) #70 Used by: clru 0.6.3 @@ -9365,7 +9420,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #70 +### MIT License (MIT) #71 Used by: strict-num 0.1.1 @@ -9391,7 +9446,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #71 +### MIT License (MIT) #72 Used by: calloop-wayland-source 0.3.0 @@ -9417,7 +9472,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #72 +### MIT License (MIT) #73 Used by: wayland-csd-frame 0.3.0 @@ -9443,7 +9498,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #73 +### MIT License (MIT) #74 Used by: zbus 5.19.0, zbus_macros 5.19.0, zbus_names 4.3.5, zbus_xml 5.2.1, zvariant 5.15.1, zvariant_derive 5.15.1 @@ -9475,7 +9530,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #74 +### MIT License (MIT) #75 Used by: zcheapstr 1.2.0 @@ -9507,7 +9562,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #75 +### MIT License (MIT) #76 Used by: winresource 0.1.34 @@ -9539,7 +9594,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #76 +### MIT License (MIT) #77 Used by: synstructure 0.14.0 @@ -9553,7 +9608,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #77 +### MIT License (MIT) #78 Used by: wayland-protocols 0.32.13 @@ -9593,7 +9648,7 @@ The above is the version of the MIT "Expat" License used by X.org: http://cgit.freedesktop.org/xorg/xserver/tree/COPYING ~~~~ -### MIT License (MIT) #78 +### MIT License (MIT) #79 Used by: glutin-winit 0.5.0 @@ -9619,7 +9674,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #79 +### MIT License (MIT) #80 Used by: texpresso 2.0.2 @@ -9648,7 +9703,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #80 +### MIT License (MIT) #81 Used by: tree_magic_mini 3.2.2 @@ -9676,7 +9731,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #81 +### MIT License (MIT) #82 Used by: imagesize 0.15.0 @@ -9704,7 +9759,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #82 +### MIT License (MIT) #83 Used by: alsa-sys 0.4.0 @@ -9732,7 +9787,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #83 +### MIT License (MIT) #84 Used by: rgb 0.8.53 @@ -9760,7 +9815,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #84 +### MIT License (MIT) #85 Used by: strum 0.28.0, strum_macros 0.28.0 @@ -9788,7 +9843,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #85 +### MIT License (MIT) #86 Used by: ashpd 0.11.1 @@ -9816,7 +9871,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #86 +### MIT License (MIT) #87 Used by: cfg_aliases 0.2.2 @@ -9832,7 +9887,7 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #87 +### MIT License (MIT) #88 Used by: xcursor 0.3.11 @@ -9860,7 +9915,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #88 +### MIT License (MIT) #89 Used by: rfd 0.15.4, sctk-adwaita 0.10.1 @@ -9888,7 +9943,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #89 +### MIT License (MIT) #90 Used by: convert_case 0.10.0 @@ -9916,7 +9971,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #90 +### MIT License (MIT) #91 Used by: dpi 0.1.2, libm 0.2.16, oozextract 0.5.7, rspolib 0.1.2, taffy 0.10.1 @@ -9941,7 +9996,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTI USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #91 +### MIT License (MIT) #92 Used by: tokio 1.54.1 @@ -9969,7 +10024,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #92 +### MIT License (MIT) #93 Used by: simd-adler32 0.3.10 @@ -9997,7 +10052,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #93 +### MIT License (MIT) #94 Used by: wayland-protocols-plasma 0.3.12 @@ -10023,7 +10078,7 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #94 +### MIT License (MIT) #95 Used by: endi 1.1.1, x11-dl 2.21.0, zbus-lockstep 0.5.2, zbus-lockstep-macros 0.5.2, zmij 1.0.23, zvariant_utils 4.2.0 @@ -10053,7 +10108,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #95 +### MIT License (MIT) #96 Used by: winnow 1.0.5 @@ -10078,7 +10133,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #96 +### MIT License (MIT) #97 Used by: pulldown-cmark 0.13.6 @@ -10106,7 +10161,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #97 +### MIT License (MIT) #98 Used by: tracing-core 0.1.36, zip 9.5.0 @@ -10134,7 +10189,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #98 +### MIT License (MIT) #99 Used by: xml-rs 0.8.29 @@ -10162,7 +10217,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #99 +### MIT License (MIT) #100 Used by: natord 1.0.9 @@ -10190,7 +10245,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #100 +### MIT License (MIT) #101 Used by: phf 0.13.1, phf_generator 0.13.1, phf_macros 0.13.1, phf_shared 0.13.1 @@ -10217,7 +10272,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #101 +### MIT License (MIT) #102 Used by: byteorder 1.5.0, byteorder-lite 0.1.0, memchr 2.8.3, termcolor 1.4.1 @@ -10245,7 +10300,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #102 +### MIT License (MIT) #103 Used by: strsim 0.11.1 @@ -10275,7 +10330,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #103 +### MIT License (MIT) #104 Used by: derive_more 2.1.1, derive_more-impl 2.1.1 @@ -10303,7 +10358,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #104 +### MIT License (MIT) #105 Used by: color_quant 1.1.0 @@ -10331,7 +10386,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #105 +### MIT License (MIT) #106 Used by: winapi-util 0.1.11 @@ -10359,7 +10414,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #106 +### MIT License (MIT) #107 Used by: xmlwriter 0.1.0 @@ -10387,7 +10442,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #107 +### MIT License (MIT) #108 Used by: fontdb 0.24.0 @@ -10415,7 +10470,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #108 +### MIT License (MIT) #109 Used by: xkbcommon-dl 0.4.2 @@ -10443,7 +10498,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #109 +### MIT License (MIT) #110 Used by: harfrust 0.12.0 @@ -10472,7 +10527,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #110 +### MIT License (MIT) #111 Used by: yeslogic-fontconfig-sys 6.0.1 @@ -10503,7 +10558,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #111 +### MIT License (MIT) #112 Used by: os_pipe 1.2.3 @@ -10529,7 +10584,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #112 +### MIT License (MIT) #113 Used by: generic-array 0.14.7 @@ -10557,7 +10612,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #113 +### MIT License (MIT) #114 Used by: quick-xml 0.41.0 @@ -10587,7 +10642,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### MIT License (MIT) #114 +### MIT License (MIT) #115 Used by: urlencoding 2.1.3 @@ -10614,7 +10669,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ~~~~ -### Mozilla Public License 2.0 (MPL-2.0) #115 +### Mozilla Public License 2.0 (MPL-2.0) #116 Used by: symphonia 0.6.1, symphonia-bundle-mp3 0.6.1, symphonia-core 0.6.1, symphonia-metadata 0.6.1 @@ -10994,7 +11049,7 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice defined by the Mozilla Public License, v. 2.0. ~~~~ -### Mozilla Public License 2.0 (MPL-2.0) #116 +### Mozilla Public License 2.0 (MPL-2.0) #117 Used by: option-ext 0.2.0 @@ -11374,7 +11429,7 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice defined by the Mozilla Public License, v. 2.0. ~~~~ -### Unicode License v3 (Unicode-3.0) #117 +### Unicode License v3 (Unicode-3.0) #118 Used by: unicode-ident 1.0.27 @@ -11420,7 +11475,7 @@ dealings in these Data Files or Software without prior written authorization of the copyright holder. ~~~~ -### Unicode License v3 (Unicode-3.0) #118 +### Unicode License v3 (Unicode-3.0) #119 Used by: fixed_decimal 0.7.3, icu_collections 2.4.0, icu_decimal 2.4.0, icu_decimal_data 2.4.0, icu_locale_core 2.4.0, icu_locale_fallback 2.4.0, icu_locale_fallback_data 2.4.0, icu_normalizer 2.4.0, icu_normalizer_data 2.4.0, icu_properties 2.4.0, icu_properties_data 2.4.0, icu_provider 2.4.0, icu_segmenter 2.4.0, icu_segmenter_data 2.4.0, litemap 0.8.3, potential_utf 0.1.6, tinystr 0.8.5, writeable 0.6.4, yoke 0.8.4, yoke-derive 0.8.4, zerofrom 0.1.8, zerofrom-derive 0.1.8, zerotrie 0.2.5, zerovec 0.11.9, zerovec-derive 0.11.7 @@ -11473,7 +11528,7 @@ Portions of ICU4X may have been adapted from ICU4C and/or ICU4J. ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others. ~~~~ -### zlib License (Zlib) #119 +### zlib License (Zlib) #120 Used by: slotmap 1.1.1 @@ -11499,7 +11554,7 @@ the following restrictions: 3. This notice may not be removed or altered from any source distribution. ~~~~ -### zlib License (Zlib) #120 +### zlib License (Zlib) #121 Used by: foldhash 0.1.5, foldhash 0.2.0 diff --git a/crates/openrage-app/src/gta6_models.rs b/crates/openrage-app/src/gta6_models.rs index 9ecc567..400059a 100644 --- a/crates/openrage-app/src/gta6_models.rs +++ b/crates/openrage-app/src/gta6_models.rs @@ -1,7 +1,7 @@ -//! GTA VI models from the recovery view of an archive. +//! GTA VI models. //! -//! A model is stored as its system part and then its graphics part, each -//! cut into zlib streams of 64 KiB. Without the table of contents nothing +//! A model is stored as its system part and then its graphics part. The +//! archive's table says how long they are. In the recovery view both are cut into zlib streams of 64 KiB. Without the table of contents nothing //! says where one part ends: the recovery view lists a resource as its first //! entry (which starts the system part) and what follows it. So the parts //! are found by trying: every cut between two streams is a possible end of @@ -29,6 +29,10 @@ pub fn load(rpf: &Rpf9, index: usize) -> Result> { if drawable6::root(&data).is_none() { bail!("this resource is not a model"); } + if let Some((system, _)) = rpf.resource_parts(first) { + let (system, graphics) = data.split_at_checked(system as usize).context("the resource is cut off")?; + return Ok(named(drawable6::parse(system, graphics)?)); + } // Where streams end: the possible ends of the system part. let mut cuts: Vec = (1..=data.len().div_ceil(STREAM)).map(|i| (i * STREAM).min(data.len())).collect(); let mut last = index; diff --git a/crates/openrage-app/src/metadata.rs b/crates/openrage-app/src/metadata.rs index b83c5fb..e352788 100644 --- a/crates/openrage-app/src/metadata.rs +++ b/crates/openrage-app/src/metadata.rs @@ -12,7 +12,7 @@ use rage_resource::Resource; use rage_rpf::vfs::Node; /// Extensions of files that hold metadata. -pub const EXTENSIONS: &[&str] = &["ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0"]; +pub const EXTENSIONS: &[&str] = &["ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0", "#mt"]; pub fn is_metadata(name: &str) -> bool { let lower = name.to_ascii_lowercase(); diff --git a/crates/openrage-app/src/rpf9.rs b/crates/openrage-app/src/rpf9.rs index b57f2ad..186ba25 100644 --- a/crates/openrage-app/src/rpf9.rs +++ b/crates/openrage-app/src/rpf9.rs @@ -1,7 +1,7 @@ //! GTA VI archives (RPF9): the stored index of their recovery view, and //! extraction. //! -//! Finding the files of an RPF9 archive means reading all of it (see +//! The recovery view is for archives whose own table cannot be read. Finding the files of an RPF9 archive means reading all of it (see //! [`rage_rpf::rpf9`]), which takes minutes for the large ones. The result //! is kept in the cache directory, one file per archive, and used as long as //! the archive's size and modification time stay the same. @@ -201,6 +201,9 @@ fn index(rpf: &Rpf9, cancel: &AtomicBool, report: &Report) -> Result, /// Finds and stores the names of an archive's models, unless they are /// stored already, and gives them to `rpf`. pub fn ensure_names(rpf: &Rpf9, entries: &[Entry], cancel: &AtomicBool, report: &Report) { + if rpf.is_native() { + return; + } let lock = scan_lock(rpf.path()); let _scanning = lock.lock().unwrap_or_else(|e| e.into_inner()); if load_names(rpf.path()).is_some() { @@ -259,13 +262,21 @@ pub fn index_in_background(game_dir: &Path) { break; } let Ok(rpf) = Rpf9::open(&archive) else { continue }; + if rpf.is_native() { + continue; + } let Ok(entries) = index(&rpf, &stop, report) else { continue }; ensure_names(&rpf, &entries, &stop, report); } }); } -/// Totals of a recovery view. +/// The entries of an archive if they are at hand without scanning it. +pub fn known_entries(rpf: &Rpf9) -> Option>> { + rpf.loaded().or_else(|| if rpf.is_native() { rpf.entries().ok() } else { load_index(rpf.path()).map(Arc::new) }) +} + +/// Totals of an archive's entries. #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)] pub struct Coverage { pub files: u64, @@ -288,7 +299,7 @@ pub fn coverage(rpf: &Rpf9, entries: &[Entry]) -> Coverage { } } -/// Extracts from the recovery view into `out`: one file (`file`), or +/// Extracts from a GTA VI archive into `out`: one file (`file`), or /// everything below folder `dir`. Files are written unpacked, straight to /// disk. Unreadable files are listed in `failures` and skipped. pub fn extract( @@ -332,7 +343,10 @@ pub fn extract( let prefix = if dir.is_empty() { String::new() } else { format!("{}/", dir.to_ascii_lowercase()) }; for (i, e) in entries.iter().enumerate() { let name = rpf.entry_name(e); - let Some(rel) = name.strip_prefix(&prefix) else { continue }; + let Some(rel) = name.get(..prefix.len()).filter(|s| s.eq_ignore_ascii_case(&prefix)).map(|s| &name[s.len()..]) + else { + continue; + }; if cancel.load(Ordering::Relaxed) { summary.cancelled = true; break; diff --git a/crates/openrage-app/src/third_party_licenses.json b/crates/openrage-app/src/third_party_licenses.json index 4002005..27ab2b8 100644 --- a/crates/openrage-app/src/third_party_licenses.json +++ b/crates/openrage-app/src/third_party_licenses.json @@ -1 +1 @@ -{"crates":[{"name":"ab_glyph","version":"0.2.32","license":"Apache-2.0","repository":"https://github.com/alexheretic/ab-glyph","texts":[40]},{"name":"ab_glyph_rasterizer","version":"0.1.10","license":"Apache-2.0","repository":"https://github.com/alexheretic/ab-glyph","texts":[40]},{"name":"accesskit","version":"0.24.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_atspi_common","version":"0.19.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_consumer","version":"0.38.0","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_unix","version":"0.22.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_windows","version":"0.34.0","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_winit","version":"0.33.2","license":"Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"adler2","version":"2.0.1","license":"0BSD OR MIT OR Apache-2.0","repository":"https://github.com/oyvindln/adler2","texts":[0]},{"name":"aes","version":"0.8.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/block-ciphers","texts":[24]},{"name":"ahash","version":"0.8.12","license":"MIT OR Apache-2.0","repository":"https://github.com/tkaitchuck/ahash","texts":[21]},{"name":"allocator-api2","version":"0.2.21","license":"MIT OR Apache-2.0","repository":"https://github.com/zakarumych/allocator-api2","texts":[40]},{"name":"alsa","version":"0.11.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/diwic/alsa-rs","texts":[40]},{"name":"alsa-sys","version":"0.4.0","license":"MIT","repository":"https://github.com/diwic/alsa-sys","texts":[81]},{"name":"annotate-snippets","version":"0.12.17","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/annotate-snippets-rs","texts":[9]},{"name":"anstream","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle","version":"1.0.14","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-parse","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-query","version":"1.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-wincon","version":"3.0.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anyhow","version":"1.0.104","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/anyhow","texts":[40]},{"name":"arbitrary","version":"1.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-fuzz/arbitrary/","texts":[21]},{"name":"arboard","version":"3.7.0","license":"MIT OR Apache-2.0","repository":"https://github.com/1Password/arboard","texts":[40]},{"name":"arrayref","version":"0.3.9","license":"BSD-2-Clause","repository":"https://github.com/droundy/arrayref","texts":[42]},{"name":"arrayvec","version":"0.7.8","license":"MIT OR Apache-2.0","repository":"https://github.com/bluss/arrayvec","texts":[21]},{"name":"as-raw-xcb-connection","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/as-raw-xcb-connection","texts":[3]},{"name":"ash","version":"0.38.0+1.3.281","license":"MIT OR Apache-2.0","repository":"https://github.com/ash-rs/ash","texts":[34]},{"name":"ashpd","version":"0.11.1","license":"MIT","repository":"https://github.com/bilelmoussaoui/ashpd","texts":[84]},{"name":"async-broadcast","version":"0.7.2","license":"MIT OR Apache-2.0","repository":"https://github.com/smol-rs/async-broadcast","texts":[11]},{"name":"async-channel","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-channel","texts":[21]},{"name":"async-executor","version":"1.14.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-executor","texts":[21]},{"name":"async-fs","version":"2.2.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-fs","texts":[21]},{"name":"async-io","version":"2.6.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-io","texts":[21]},{"name":"async-lock","version":"3.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-lock","texts":[21]},{"name":"async-net","version":"2.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-net","texts":[21]},{"name":"async-process","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-process","texts":[21]},{"name":"async-recursion","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/dcchut/async-recursion","texts":[20]},{"name":"async-signal","version":"0.2.14","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-signal","texts":[21]},{"name":"async-task","version":"4.7.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-task","texts":[21]},{"name":"async-trait","version":"0.1.92","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/async-trait","texts":[40]},{"name":"atomic-waker","version":"1.1.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/atomic-waker","texts":[21]},{"name":"atspi","version":"0.29.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"atspi-common","version":"0.13.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"atspi-proxies","version":"0.13.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"autocfg","version":"1.5.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/cuviper/autocfg","texts":[21]},{"name":"base64","version":"0.23.1","license":"MIT OR Apache-2.0","repository":"https://github.com/marshallpierce/rust-base64","texts":[21]},{"name":"bit-set","version":"0.10.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/contain-rs/bit-set","texts":[23]},{"name":"bit-vec","version":"0.9.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/contain-rs/bit-vec","texts":[23]},{"name":"bitflags","version":"2.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/bitflags/bitflags","texts":[21]},{"name":"block-buffer","version":"0.10.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"blocking","version":"1.7.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/blocking","texts":[21]},{"name":"bumpalo","version":"3.20.3","license":"MIT OR Apache-2.0","repository":"https://github.com/fitzgen/bumpalo","texts":[21]},{"name":"by_address","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/mbrubeck/by_address","texts":[21]},{"name":"bytemuck","version":"1.25.2","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/bytemuck","texts":[39]},{"name":"bytemuck_derive","version":"1.12.1","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/bytemuck","texts":[39]},{"name":"byteorder","version":"1.5.0","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/byteorder","texts":[100]},{"name":"byteorder-lite","version":"0.1.0","license":"Unlicense OR MIT","repository":"https://github.com/image-rs/byteorder-lite","texts":[100]},{"name":"bytes","version":"1.12.1","license":"MIT","repository":"https://github.com/tokio-rs/bytes","texts":[61]},{"name":"calloop","version":"0.13.0","license":"MIT","repository":"https://github.com/Smithay/calloop","texts":[63]},{"name":"calloop-wayland-source","version":"0.3.0","license":"MIT","repository":"https://github.com/smithay/calloop-wayland-source","texts":[70]},{"name":"cc","version":"1.11.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cc-rs","texts":[21]},{"name":"cfg-if","version":"1.0.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cfg-if","texts":[21]},{"name":"cfg_aliases","version":"0.2.2","license":"MIT","repository":"https://github.com/katharostech/cfg_aliases","texts":[51,85]},{"name":"chacha20","version":"0.10.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/stream-ciphers","texts":[24]},{"name":"chrono","version":"0.4.45","license":"MIT OR Apache-2.0","repository":"https://github.com/chronotope/chrono","texts":[41]},{"name":"cipher","version":"0.4.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"clap","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_builder","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_derive","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_lex","version":"1.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clipboard-win","version":"5.4.3","license":"BSL-1.0","repository":"https://github.com/DoumanAsh/clipboard-win","texts":[47]},{"name":"clru","version":"0.6.3","license":"MIT","repository":"https://github.com/marmeladema/clru-rs","texts":[68]},{"name":"cobs","version":"0.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/jamesmunns/cobs.rs","texts":[10]},{"name":"codespan-reporting","version":"0.13.1","license":"Apache-2.0","repository":"https://github.com/brendanzab/codespan","texts":[8]},{"name":"color_quant","version":"1.1.0","license":"MIT","repository":"https://github.com/image-rs/color_quant.git","texts":[103]},{"name":"colorchoice","version":"1.0.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"concurrent-queue","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/concurrent-queue","texts":[21]},{"name":"const-field-offset","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"const-field-offset-macro","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"constant_time_eq","version":"0.6.1","license":"CC0-1.0 OR MIT-0 OR Apache-2.0","repository":"https://codeberg.org/cesarb/constant_time_eq","texts":[40]},{"name":"convert_case","version":"0.10.0","license":"MIT","repository":"https://github.com/rutrum/convert-case","texts":[88]},{"name":"core_detect","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/thomcc/core_detect","texts":[20]},{"name":"countme","version":"3.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/matklad/countme","texts":[21]},{"name":"cpal","version":"0.18.2","license":"Apache-2.0","repository":"https://github.com/RustAudio/cpal","texts":[8]},{"name":"cpufeatures","version":"0.2.17","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"cpufeatures","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"cranelift-assembler-x64","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"cranelift-assembler-x64-meta","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"cranelift-bforest","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-bitset","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"cranelift-codegen","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-codegen-meta","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-codegen-shared","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-control","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-entity","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-frontend","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-isle","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/cranelift/isle","texts":[40]},{"name":"cranelift-native","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-srcgen","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"crc32fast","version":"1.5.5","license":"MIT OR Apache-2.0","repository":"https://github.com/srijs/rust-crc32fast","texts":[10]},{"name":"critical-section","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-embedded/critical-section","texts":[21]},{"name":"crossbeam-channel","version":"0.5.17","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-deque","version":"0.8.8","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-epoch","version":"0.9.21","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-utils","version":"0.8.23","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crypto-common","version":"0.1.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"ctor","version":"0.10.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/mmastrac/rust-ctor","texts":[38]},{"name":"cursor-icon","version":"1.2.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/cursor-icon","texts":[2]},{"name":"dasp_sample","version":"0.11.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rustaudio/sample.git","texts":[40]},{"name":"data-url","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"derive_more","version":"2.1.1","license":"MIT","repository":"https://github.com/JelteF/derive_more","texts":[102]},{"name":"derive_more-impl","version":"2.1.1","license":"MIT","repository":"https://github.com/JelteF/derive_more","texts":[102]},{"name":"digest","version":"0.10.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"dirs","version":"6.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/soc/dirs-rs","texts":[40]},{"name":"dirs-sys","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/dirs-dev/dirs-sys-rs","texts":[40]},{"name":"displaydoc","version":"0.2.7","license":"MIT OR Apache-2.0","repository":"https://github.com/yaahc/displaydoc","texts":[21]},{"name":"dlib","version":"0.5.3","license":"MIT","repository":"https://github.com/elinorbgr/dlib","texts":[59]},{"name":"document-features","version":"0.2.12","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/document-features","texts":[40]},{"name":"downcast-rs","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/marcianx/downcast-rs","texts":[23]},{"name":"dpi","version":"0.1.2","license":"Apache-2.0 AND MIT","repository":"https://github.com/rust-windowing/winit","texts":[37,89]},{"name":"either","version":"1.19.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/either","texts":[21]},{"name":"encoding_rs","version":"0.8.44","license":"(Apache-2.0 OR MIT) AND BSD-3-Clause","repository":"https://github.com/hsivonen/encoding_rs","texts":[3,43,45]},{"name":"endi","version":"1.1.1","license":"MIT","repository":"https://github.com/zeenix/endi","texts":[93]},{"name":"enumflags2","version":"0.7.12","license":"MIT OR Apache-2.0","repository":"https://github.com/meithecatte/enumflags2","texts":[32]},{"name":"enumflags2_derive","version":"0.7.12","license":"MIT OR Apache-2.0","repository":"https://github.com/meithecatte/enumflags2","texts":[33]},{"name":"env_filter","version":"2.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/env_logger","texts":[10]},{"name":"env_logger","version":"0.11.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/env_logger","texts":[10]},{"name":"equivalent","version":"1.0.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/indexmap-rs/equivalent","texts":[21]},{"name":"errno","version":"0.3.14","license":"MIT OR Apache-2.0","repository":"https://github.com/lambda-fairy/rust-errno","texts":[21]},{"name":"error-code","version":"3.4.0","license":"BSL-1.0","repository":"https://github.com/DoumanAsh/error-code","texts":[46]},{"name":"euclid","version":"0.22.14","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/euclid","texts":[21]},{"name":"event-listener","version":"5.4.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/event-listener","texts":[21]},{"name":"event-listener-strategy","version":"0.5.4","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/event-listener-strategy","texts":[21]},{"name":"fallible-iterator","version":"0.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/sfackler/rust-fallible-iterator","texts":[10]},{"name":"fallible-streaming-iterator","version":"0.1.9","license":"MIT OR Apache-2.0","repository":"https://github.com/sfackler/fallible-streaming-iterator","texts":[10]},{"name":"fastrand","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/fastrand","texts":[21]},{"name":"fdeflate","version":"0.3.7","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/fdeflate","texts":[40]},{"name":"femtovg","version":"0.27.0","license":"MIT OR Apache-2.0","repository":"https://github.com/femtovg/femtovg","texts":[40]},{"name":"field-offset","version":"0.3.6","license":"MIT OR Apache-2.0","repository":"https://github.com/Diggsey/rust-field-offset","texts":[40]},{"name":"find-msvc-tools","version":"0.1.15","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cc-rs","texts":[21]},{"name":"fixed_decimal","version":"0.7.3","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"fixedbitset","version":"0.5.9","license":"MIT OR Apache-2.0","repository":"https://github.com/petgraph/fixedbitset","texts":[21]},{"name":"flate2","version":"1.1.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/flate2-rs","texts":[21]},{"name":"float-cmp","version":"0.9.0","license":"MIT","repository":"https://github.com/mikedilger/float-cmp","texts":[56]},{"name":"fnv","version":"1.0.7","license":"Apache-2.0 OR MIT","repository":"https://github.com/servo/rust-fnv","texts":[21]},{"name":"foldhash","version":"0.1.5","license":"Zlib","repository":"https://github.com/orlp/foldhash","texts":[119]},{"name":"foldhash","version":"0.2.0","license":"Zlib","repository":"https://github.com/orlp/foldhash","texts":[119]},{"name":"font-types","version":"0.12.7","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"fontdb","version":"0.24.0","license":"MIT","repository":"https://github.com/RazrFalcon/fontdb","texts":[106]},{"name":"fontique","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"form_urlencoded","version":"1.2.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"futures","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-channel","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-core","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-executor","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-io","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-lite","version":"2.6.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/futures-lite","texts":[21]},{"name":"futures-macro","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-sink","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-task","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-util","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"generic-array","version":"0.14.7","license":"MIT","repository":"https://github.com/fizyk20/generic-array.git","texts":[111]},{"name":"gethostname","version":"1.1.0","license":"Apache-2.0","repository":"https://codeberg.org/swsnr/gethostname.rs.git","texts":[21]},{"name":"getrandom","version":"0.3.4","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/getrandom","texts":[27]},{"name":"getrandom","version":"0.4.3","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/getrandom","texts":[27]},{"name":"gif","version":"0.14.2","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-gif","texts":[20]},{"name":"gimli","version":"0.33.0","license":"MIT OR Apache-2.0","repository":"https://github.com/gimli-rs/gimli","texts":[21]},{"name":"gl_generator","version":"0.14.0","license":"Apache-2.0","repository":"https://github.com/brendanzab/gl-rs/","texts":[40]},{"name":"glow","version":"0.17.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/grovesNL/glow","texts":[20]},{"name":"glow","version":"0.18.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/grovesNL/glow","texts":[20]},{"name":"glutin","version":"0.32.3","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin-winit","version":"0.5.0","license":"MIT","repository":"https://github.com/rust-windowing/glutin","texts":[77]},{"name":"glutin_egl_sys","version":"0.7.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin_glx_sys","version":"0.6.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin_wgl_sys","version":"0.6.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"gpu-allocator","version":"0.28.0","license":"MIT OR Apache-2.0","repository":"https://github.com/Traverse-Research/gpu-allocator","texts":[18]},{"name":"half","version":"2.7.1","license":"MIT OR Apache-2.0","repository":"https://github.com/VoidStarKat/half-rs","texts":[40]},{"name":"harfrust","version":"0.12.0","license":"MIT","repository":"https://github.com/harfbuzz/harfrust","texts":[108]},{"name":"hashbrown","version":"0.14.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.15.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.16.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.17.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashlink","version":"0.12.2","license":"MIT OR Apache-2.0","repository":"https://github.com/djc/hashlink","texts":[22]},{"name":"heck","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/withoutboats/heck","texts":[21]},{"name":"hex","version":"0.4.3","license":"MIT OR Apache-2.0","repository":"https://github.com/KokaKiwi/rust-hex","texts":[10]},{"name":"htmlparser","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/jdrouet/htmlparser.git","texts":[21]},{"name":"i-slint-backend-selector","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-backend-winit","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-common","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-compiler","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-core","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-core-macros","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-renderer-femtovg","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"i-slint-renderer-software","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"iana-time-zone","version":"0.1.65","license":"MIT OR Apache-2.0","repository":"https://github.com/strawlab/iana-time-zone","texts":[17]},{"name":"icu_collections","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_decimal","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_decimal_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_locale_core","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_locale_fallback","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_locale_fallback_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_normalizer","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_normalizer_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_properties","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_properties_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_provider","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_segmenter","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"icu_segmenter_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"id-arena","version":"2.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/fitzgen/id-arena","texts":[21]},{"name":"idna","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url/","texts":[21]},{"name":"idna_adapter","version":"1.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/idna_adapter","texts":[21]},{"name":"image","version":"0.25.10","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image","texts":[40]},{"name":"image-webp","version":"0.2.4","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-webp","texts":[40]},{"name":"imagesize","version":"0.15.0","license":"MIT","repository":"https://github.com/Roughsketch/imagesize","texts":[80]},{"name":"imgref","version":"1.12.3","license":"CC0-1.0 OR Apache-2.0","repository":"https://github.com/kornelski/imgref","texts":[8]},{"name":"indexmap","version":"2.14.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/indexmap-rs/indexmap","texts":[21]},{"name":"inout","version":"0.1.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"is_terminal_polyfill","version":"1.70.2","license":"MIT OR Apache-2.0","repository":"https://github.com/polyfill-rs/is_terminal_polyfill","texts":[10]},{"name":"itertools","version":"0.14.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-itertools/itertools","texts":[21]},{"name":"itertools","version":"0.15.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-itertools/itertools","texts":[21]},{"name":"itoa","version":"1.0.19","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/itoa","texts":[40]},{"name":"keyboard-types","version":"0.7.0","license":"MIT OR Apache-2.0","repository":"https://github.com/pyfisch/keyboard-types","texts":[20]},{"name":"khronos-egl","version":"6.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/timothee-haudebourg/khronos-egl","texts":[21]},{"name":"khronos_api","version":"3.1.0","license":"Apache-2.0","repository":"https://github.com/brendanzab/gl-rs/","texts":[40]},{"name":"kurbo","version":"0.13.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/kurbo","texts":[3]},{"name":"lazy_static","version":"1.5.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang-nursery/lazy-static.rs","texts":[21]},{"name":"leb128fmt","version":"0.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bluk/leb128fmt","texts":[21]},{"name":"lewton","version":"0.10.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RustAudio/lewton","texts":[40]},{"name":"libc","version":"0.2.191","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/libc","texts":[40]},{"name":"libloading","version":"0.8.9","license":"ISC","repository":"https://github.com/nagisa/rust_libloading/","texts":[49]},{"name":"libm","version":"0.2.16","license":"MIT","repository":"https://github.com/rust-lang/compiler-builtins","texts":[89]},{"name":"libsqlite3-sys","version":"0.39.1","license":"MIT","repository":"https://github.com/rusqlite/rusqlite","texts":[54]},{"name":"linebender_resource_handle","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/raw_resource_handle","texts":[40]},{"name":"linux-raw-sys","version":"0.12.1","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/linux-raw-sys","texts":[4,21]},{"name":"linux-raw-sys","version":"0.4.15","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/linux-raw-sys","texts":[4,21]},{"name":"litemap","version":"0.8.3","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"litrs","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/LukasKalbertodt/litrs","texts":[40]},{"name":"lock_api","version":"0.4.14","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"log","version":"0.4.35","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/log","texts":[21]},{"name":"lyon_algorithms","version":"1.0.22","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_extra","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_geom","version":"1.0.20","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_path","version":"1.0.19","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"memchr","version":"2.8.3","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/memchr","texts":[100]},{"name":"memfd","version":"0.6.6","license":"MIT OR Apache-2.0","repository":"https://github.com/lucab/memfd-rs","texts":[8]},{"name":"memmap2","version":"0.9.12","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/memmap2-rs","texts":[19]},{"name":"memoffset","version":"0.9.1","license":"MIT","repository":"https://github.com/Gilnaa/memoffset","texts":[60]},{"name":"miniz_oxide","version":"0.8.9","license":"MIT OR Zlib OR Apache-2.0","repository":"https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide","texts":[40]},{"name":"miniz_oxide","version":"0.9.1","license":"MIT OR Zlib OR Apache-2.0","repository":"https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide","texts":[40]},{"name":"mio","version":"1.2.4","license":"MIT","repository":"https://github.com/tokio-rs/mio","texts":[53]},{"name":"moxcms","version":"0.8.1","license":"BSD-3-Clause OR Apache-2.0","repository":"https://github.com/awxkee/moxcms.git","texts":[7]},{"name":"muda","version":"0.19.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/tauri-apps/muda","texts":[21]},{"name":"multiversion_no_op","version":"1.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/multiversion_no_op","texts":[3]},{"name":"naga","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"naga-types","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"natord","version":"1.0.9","license":"MIT","repository":"https://github.com/lifthrasiir/rust-natord","texts":[98]},{"name":"nom","version":"8.0.0","license":"MIT","repository":"https://github.com/rust-bakery/nom","texts":[55]},{"name":"num-bigint","version":"0.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-bigint","texts":[21]},{"name":"num-complex","version":"0.4.6","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-complex","texts":[21]},{"name":"num-integer","version":"0.1.47","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-integer","texts":[21]},{"name":"num-rational","version":"0.4.2","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-rational","texts":[21]},{"name":"num-traits","version":"0.2.19","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-traits","texts":[21]},{"name":"num_enum","version":"0.7.6","license":"BSD-3-Clause OR MIT OR Apache-2.0","repository":"https://github.com/illicitonion/num_enum","texts":[40]},{"name":"num_enum_derive","version":"0.7.6","license":"BSD-3-Clause OR MIT OR Apache-2.0","repository":"https://github.com/illicitonion/num_enum","texts":[40]},{"name":"object","version":"0.40.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/gimli-rs/object","texts":[21]},{"name":"once_cell","version":"1.21.4","license":"MIT OR Apache-2.0","repository":"https://github.com/matklad/once_cell","texts":[21]},{"name":"once_cell_polyfill","version":"1.70.2","license":"MIT OR Apache-2.0","repository":"https://github.com/polyfill-rs/once_cell_polyfill","texts":[10]},{"name":"oozextract","version":"0.5.7","license":"MIT","repository":"https://github.com/lvlvllvlvllvlvl/oozextract","texts":[89]},{"name":"option-ext","version":"0.2.0","license":"MPL-2.0","repository":"https://github.com/soc/option-ext.git","texts":[115]},{"name":"ordered-float","version":"5.5.1","license":"MIT","repository":"https://github.com/reem/rust-ordered-float","texts":[58]},{"name":"ordered-stream","version":"0.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/danieldg/ordered-stream","texts":[21]},{"name":"os_pipe","version":"1.2.3","license":"MIT","repository":"https://github.com/oconnor663/os_pipe.rs","texts":[110]},{"name":"owned_ttf_parser","version":"0.25.1","license":"Apache-2.0","repository":"https://github.com/alexheretic/owned-ttf-parser","texts":[40]},{"name":"parking","version":"2.2.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/parking","texts":[21]},{"name":"parking_lot","version":"0.12.5","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"parking_lot_core","version":"0.9.12","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"parlance","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"parley","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"parley_data","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"paste","version":"1.0.15","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/paste","texts":[40]},{"name":"percent-encoding","version":"2.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url/","texts":[21]},{"name":"petgraph","version":"0.8.3","license":"MIT OR Apache-2.0","repository":"https://github.com/petgraph/petgraph","texts":[21]},{"name":"phf","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[99]},{"name":"phf_generator","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[99]},{"name":"phf_macros","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[99]},{"name":"phf_shared","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[99]},{"name":"pico-args","version":"0.5.0","license":"MIT","repository":"https://github.com/RazrFalcon/pico-args","texts":[66]},{"name":"pin-project","version":"1.1.13","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project","texts":[40]},{"name":"pin-project-internal","version":"1.1.13","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project","texts":[40]},{"name":"pin-project-lite","version":"0.2.17","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project-lite","texts":[40]},{"name":"pin-utils","version":"0.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/pin-utils","texts":[14]},{"name":"pin-weak","version":"1.1.0","license":"MIT","repository":"https://github.com/sixtyfpsui/pin-weak","texts":[67]},{"name":"piper","version":"0.2.5","license":"MIT OR Apache-2.0","repository":"https://github.com/smol-rs/piper","texts":[21]},{"name":"pkg-config","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/pkg-config-rs","texts":[21]},{"name":"png","version":"0.18.1","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-png","texts":[21]},{"name":"polling","version":"3.11.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/polling","texts":[21]},{"name":"pollster","version":"0.4.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/zesterer/pollster","texts":[21]},{"name":"pollster","version":"1.0.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/zesterer/pollster","texts":[21]},{"name":"polycool","version":"0.4.0","license":"MIT OR Apache-2.0","repository":"https://github.com/linebender/kurbo","texts":[3]},{"name":"portable-atomic","version":"1.15.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/portable-atomic","texts":[40]},{"name":"postcard","version":"1.1.3","license":"MIT OR Apache-2.0","repository":"https://github.com/jamesmunns/postcard","texts":[21]},{"name":"potential_utf","version":"0.1.6","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"ppv-lite86","version":"0.2.21","license":"MIT OR Apache-2.0","repository":"https://github.com/cryptocorrosion/cryptocorrosion","texts":[15]},{"name":"presser","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/EmbarkStudios/presser","texts":[23]},{"name":"proc-macro-crate","version":"3.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bkchr/proc-macro-crate","texts":[28]},{"name":"proc-macro2","version":"1.0.107","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/proc-macro2","texts":[40]},{"name":"profiling","version":"1.0.18","license":"MIT OR Apache-2.0","repository":"https://github.com/aclysma/profiling","texts":[40]},{"name":"pulldown-cmark","version":"0.13.6","license":"MIT","repository":"https://github.com/raphlinus/pulldown-cmark","texts":[95]},{"name":"pulley-interpreter","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/pulley","texts":[40]},{"name":"pulley-macros","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/pulley/macros","texts":[40]},{"name":"pxfm","version":"0.1.30","license":"BSD-3-Clause OR Apache-2.0","repository":"https://github.com/awxkee/pxfm","texts":[7]},{"name":"quick-error","version":"2.0.1","license":"MIT OR Apache-2.0","repository":"http://github.com/tailhook/quick-error","texts":[10]},{"name":"quick-xml","version":"0.41.0","license":"MIT","repository":"https://github.com/tafia/quick-xml","texts":[112]},{"name":"quote","version":"1.0.47","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/quote","texts":[40]},{"name":"rand","version":"0.10.3","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand_chacha","version":"0.9.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand_core","version":"0.10.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand_core","texts":[26]},{"name":"rand_core","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[26]},{"name":"range-alloc","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/range-alloc","texts":[40]},{"name":"raw-window-handle","version":"0.6.2","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/raw-window-handle","texts":[40]},{"name":"rayon","version":"1.12.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/rayon","texts":[21]},{"name":"rayon-core","version":"1.13.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/rayon","texts":[21]},{"name":"read-fonts","version":"0.41.0","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"regalloc2","version":"0.15.2","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/regalloc2","texts":[4]},{"name":"regex-lite","version":"0.1.9","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/regex","texts":[21]},{"name":"renderdoc-sys","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/ebkalderon/renderdoc-rs","texts":[21]},{"name":"resvg","version":"0.48.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/resvg","texts":[40]},{"name":"rfd","version":"0.15.4","license":"MIT","repository":"https://github.com/PolyMeilex/rfd","texts":[87]},{"name":"rgb","version":"0.8.53","license":"MIT","repository":"https://github.com/kornelski/rust-rgb","texts":[82]},{"name":"rodio","version":"0.23.0","license":"MIT OR Apache-2.0","repository":"https://github.com/RustAudio/rodio","texts":[40]},{"name":"rowan","version":"0.17.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/rowan","texts":[21]},{"name":"roxmltree","version":"0.21.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/roxmltree","texts":[21]},{"name":"rspolib","version":"0.1.2","license":"MIT","repository":"https://github.com/mondeja/rspolib","texts":[89]},{"name":"rusqlite","version":"0.41.1","license":"MIT","repository":"https://github.com/rusqlite/rusqlite","texts":[54]},{"name":"rustc-hash","version":"1.1.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/rust-lang-nursery/rustc-hash","texts":[21]},{"name":"rustc-hash","version":"2.1.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/rust-lang/rustc-hash","texts":[40]},{"name":"rustc_version","version":"0.4.1","license":"MIT OR Apache-2.0","repository":"https://github.com/djc/rustc-version-rs","texts":[21]},{"name":"rustix","version":"0.38.44","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/rustix","texts":[4,21]},{"name":"rustix","version":"1.1.6","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/rustix","texts":[4,21]},{"name":"rustix-linux-procfs","version":"0.1.1","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/rustix-linux-procfs","texts":[4,21]},{"name":"rustversion","version":"1.0.23","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/rustversion","texts":[40]},{"name":"safe_arch","version":"0.7.4","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/safe_arch","texts":[39]},{"name":"scoped-tls","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/alexcrichton/scoped-tls","texts":[21]},{"name":"scoped-tls-hkt","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/Diggsey/scoped-tls-hkt","texts":[21]},{"name":"scopeguard","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bluss/scopeguard","texts":[21]},{"name":"sctk-adwaita","version":"0.10.1","license":"MIT","repository":"https://github.com/PolyMeilex/sctk-adwaita","texts":[87]},{"name":"semver","version":"1.0.28","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/semver","texts":[40]},{"name":"serde","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_core","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_derive","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_json","version":"1.0.154","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/json","texts":[40]},{"name":"serde_repr","version":"0.1.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/serde-repr","texts":[40]},{"name":"serde_spanned","version":"1.1.3","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"sha1","version":"0.10.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/hashes","texts":[24]},{"name":"sha2","version":"0.10.9","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/hashes","texts":[24]},{"name":"shlex","version":"2.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/comex/rust-shlex","texts":[40]},{"name":"signal-hook-registry","version":"1.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/vorner/signal-hook","texts":[21]},{"name":"simd-adler32","version":"0.3.10","license":"MIT","repository":"https://github.com/mcountryman/simd-adler32","texts":[91]},{"name":"simdutf8","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rusticstuff/simdutf8","texts":[40]},{"name":"simplecss","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/simplecss","texts":[21]},{"name":"siphasher","version":"1.0.4","license":"MIT OR Apache-2.0","repository":"https://github.com/jedisct1/rust-siphash","texts":[3]},{"name":"skrifa","version":"0.44.0","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"slab","version":"0.4.12","license":"MIT","repository":"https://github.com/tokio-rs/slab","texts":[64]},{"name":"slint","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"slint-build","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"slint-macros","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[48]},{"name":"slotmap","version":"1.1.1","license":"Zlib","repository":"https://github.com/orlp/slotmap","texts":[118]},{"name":"smallvec","version":"1.16.5","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-smallvec","texts":[21]},{"name":"smithay-client-toolkit","version":"0.19.2","license":"MIT","repository":"https://github.com/smithay/client-toolkit","texts":[62]},{"name":"smol_str","version":"0.2.2","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/smol_str","texts":[21]},{"name":"smol_str","version":"0.3.7","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/rust-analyzer/tree/master/lib/smol_str","texts":[21]},{"name":"snafu","version":"0.8.9","license":"MIT OR Apache-2.0","repository":"https://github.com/shepmaster/snafu","texts":[16]},{"name":"snafu-derive","version":"0.8.9","license":"MIT OR Apache-2.0","repository":"https://github.com/shepmaster/snafu","texts":[16]},{"name":"socket2","version":"0.6.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/socket2","texts":[21]},{"name":"softbuffer","version":"0.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-windowing/softbuffer","texts":[36]},{"name":"spin_on","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"","texts":[21]},{"name":"spirv","version":"0.4.0+sdk-1.4.341.0","license":"Apache-2.0","repository":"https://github.com/gfx-rs/rspirv","texts":[40]},{"name":"stable_deref_trait","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/storyyeller/stable_deref_trait","texts":[21]},{"name":"static_assertions","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/nvzqz/static-assertions-rs","texts":[3]},{"name":"strict-num","version":"0.1.1","license":"MIT","repository":"https://github.com/RazrFalcon/strict-num","texts":[69]},{"name":"strsim","version":"0.11.1","license":"MIT","repository":"https://github.com/rapidfuzz/strsim-rs","texts":[101]},{"name":"strum","version":"0.28.0","license":"MIT","repository":"https://github.com/Peternator7/strum","texts":[83]},{"name":"strum_macros","version":"0.28.0","license":"MIT","repository":"https://github.com/Peternator7/strum","texts":[83]},{"name":"svgtypes","version":"0.16.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/svgtypes","texts":[21]},{"name":"swash","version":"0.2.10","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/swash","texts":[21]},{"name":"symphonia","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[114]},{"name":"symphonia-bundle-mp3","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[114]},{"name":"symphonia-core","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[114]},{"name":"symphonia-metadata","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[114]},{"name":"syn","version":"2.0.119","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/syn","texts":[40]},{"name":"syn","version":"3.0.10","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/syn","texts":[40]},{"name":"synstructure","version":"0.14.0","license":"MIT","repository":"https://github.com/mystor/synstructure","texts":[75]},{"name":"sys-locale","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/1Password/sys-locale","texts":[8]},{"name":"taffy","version":"0.10.1","license":"MIT","repository":"https://github.com/DioxusLabs/taffy","texts":[89]},{"name":"target-lexicon","version":"0.13.5","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/target-lexicon","texts":[4]},{"name":"tempfile","version":"3.27.0","license":"MIT OR Apache-2.0","repository":"https://github.com/Stebalien/tempfile","texts":[21]},{"name":"termcolor","version":"1.4.1","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/termcolor","texts":[100]},{"name":"test-log","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"test-log-core","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"test-log-macros","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"texpresso","version":"2.0.2","license":"MIT","repository":"https://github.com/jansol/texpresso","texts":[52,78]},{"name":"text-size","version":"1.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/text-size","texts":[21]},{"name":"texture2ddecoder","version":"0.1.2","license":"MIT OR Apache-2.0","repository":"https://github.com/UniversalGameExtraction/texture2ddecoder","texts":[40]},{"name":"thiserror","version":"1.0.69","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror","version":"2.0.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror-impl","version":"1.0.69","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror-impl","version":"2.0.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"tiny-skia","version":"0.11.4","license":"BSD-3-Clause","repository":"https://github.com/RazrFalcon/tiny-skia","texts":[44]},{"name":"tiny-skia","version":"0.12.0","license":"BSD-3-Clause","repository":"https://github.com/linebender/tiny-skia","texts":[44]},{"name":"tiny-skia-path","version":"0.11.4","license":"BSD-3-Clause","repository":"https://github.com/RazrFalcon/tiny-skia/tree/master/path","texts":[44]},{"name":"tiny-skia-path","version":"0.12.0","license":"BSD-3-Clause","repository":"https://github.com/linebender/tiny-skia/tree/master/path","texts":[44]},{"name":"tiny-xlib","version":"0.2.5","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/tiny-xlib","texts":[40]},{"name":"tinystr","version":"0.8.5","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"tinyvec","version":"1.13.3","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/tinyvec","texts":[3]},{"name":"tokio","version":"1.54.1","license":"MIT","repository":"https://github.com/tokio-rs/tokio","texts":[90]},{"name":"toml","version":"1.2.1+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_datetime","version":"1.1.3+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_edit","version":"0.25.19+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_parser","version":"1.1.5+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_writer","version":"1.2.0+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"tracing","version":"0.1.44","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[65]},{"name":"tracing-attributes","version":"0.1.31","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[65]},{"name":"tracing-core","version":"0.1.36","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[65,96]},{"name":"tree_magic_mini","version":"3.2.2","license":"MIT","repository":"https://github.com/mbrubeck/tree_magic/","texts":[79]},{"name":"ttf-parser","version":"0.25.1","license":"MIT OR Apache-2.0","repository":"https://github.com/harfbuzz/ttf-parser","texts":[21]},{"name":"typed-index-collections","version":"3.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/zheland/typed-index-collections","texts":[40]},{"name":"typed-path","version":"0.13.0","license":"MIT OR Apache-2.0","repository":"https://github.com/chipsenkbeil/typed-path","texts":[40]},{"name":"typenum","version":"1.20.1","license":"MIT OR Apache-2.0","repository":"https://github.com/paholg/typenum","texts":[13]},{"name":"uds_windows","version":"1.2.1","license":"MIT","repository":"https://github.com/haraldh/rust_uds_windows","texts":[50]},{"name":"unicase","version":"2.10.0","license":"MIT OR Apache-2.0","repository":"https://github.com/seanmonstar/unicase","texts":[21]},{"name":"unicode-bidi","version":"0.3.18","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/unicode-bidi","texts":[21]},{"name":"unicode-ident","version":"1.0.27","license":"(MIT OR Apache-2.0) AND Unicode-3.0","repository":"https://github.com/dtolnay/unicode-ident","texts":[40,116]},{"name":"unicode-linebreak","version":"0.1.5","license":"Apache-2.0","repository":"https://github.com/axelf4/unicode-linebreak","texts":[8]},{"name":"unicode-script","version":"0.5.9","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-script","texts":[29]},{"name":"unicode-segmentation","version":"1.13.3","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-segmentation","texts":[21]},{"name":"unicode-vo","version":"0.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/unicode-vo","texts":[21]},{"name":"unicode-width","version":"0.2.3","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-width","texts":[21]},{"name":"unicode-xid","version":"0.2.6","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-xid","texts":[21]},{"name":"url","version":"2.5.8","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"urlencoding","version":"2.1.3","license":"MIT","repository":"https://github.com/kornelski/rust_urlencoding","texts":[113]},{"name":"usvg","version":"0.48.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/resvg","texts":[40]},{"name":"utf8_iter","version":"1.1.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/utf8_iter","texts":[3]},{"name":"utf8parse","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/alacritty/vte","texts":[40]},{"name":"utf_types","version":"1.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/utf_types","texts":[3]},{"name":"uuid","version":"1.29.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/uuid-rs/uuid","texts":[21]},{"name":"vcpkg","version":"0.2.15","license":"MIT OR Apache-2.0","repository":"https://github.com/mcgoo/vcpkg-rs","texts":[30]},{"name":"version_check","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/SergioBenitez/version_check","texts":[21]},{"name":"vtable","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"vtable-macro","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"wasm-encoder","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder","texts":[4,21]},{"name":"wasm-metadata","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-metadata","texts":[4,21]},{"name":"wasmparser","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser","texts":[4,21]},{"name":"wasmprinter","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmprinter","texts":[4,21]},{"name":"wasmtime","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-environ","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-component-macro","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-component-util","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-core","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"wasmtime-internal-cranelift","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-fiber","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-jit-icache-coherence","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-unwinder","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-versioned-export-macros","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-wit-bindgen","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-wasi","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-wasi-io","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wayland-backend","version":"0.3.17","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-client","version":"0.31.15","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-csd-frame","version":"0.3.0","license":"MIT","repository":"https://github.com/rust-windowing/wayland-csd-frame","texts":[71]},{"name":"wayland-cursor","version":"0.31.14","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-protocols","version":"0.32.13","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57,76]},{"name":"wayland-protocols-plasma","version":"0.3.12","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57,92]},{"name":"wayland-protocols-wlr","version":"0.3.12","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-scanner","version":"0.31.11","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"wayland-sys","version":"0.31.11","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[57]},{"name":"webbrowser","version":"1.2.6","license":"MIT OR Apache-2.0","repository":"https://github.com/amodm/webbrowser-rs","texts":[25]},{"name":"weezl","version":"0.1.12","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/weezl","texts":[20]},{"name":"wgpu","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-core","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-core-deps-windows-linux-android","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-hal","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-naga-bridge","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-types","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wide","version":"0.7.33","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/wide","texts":[40]},{"name":"winapi-util","version":"0.1.11","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/winapi-util","texts":[104]},{"name":"windows","version":"0.62.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-collections","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-core","version":"0.62.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-future","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-implement","version":"0.60.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-interface","version":"0.59.3","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-link","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-numerics","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-result","version":"0.4.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-strings","version":"0.5.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.52.0","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.59.0","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.61.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-targets","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-threading","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows_x86_64_gnu","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows_x86_64_msvc","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"winit","version":"0.30.13","license":"Apache-2.0","repository":"https://github.com/rust-windowing/winit","texts":[37]},{"name":"winnow","version":"1.0.5","license":"MIT","repository":"https://github.com/winnow-rs/winnow","texts":[94]},{"name":"winresource","version":"0.1.34","license":"MIT","repository":"https://github.com/BenjaminRi/winresource","texts":[74]},{"name":"wit-component","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-component","texts":[4,21]},{"name":"wit-parser","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser","texts":[4,21]},{"name":"wl-clipboard-rs","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/YaLTeR/wl-clipboard-rs","texts":[21]},{"name":"writeable","version":"0.6.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"x11-dl","version":"2.21.0","license":"MIT","repository":"https://github.com/AltF02/x11-rs.git","texts":[93]},{"name":"x11rb","version":"0.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/x11rb","texts":[3]},{"name":"x11rb-protocol","version":"0.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/x11rb","texts":[3]},{"name":"xcursor","version":"0.3.11","license":"MIT","repository":"https://github.com/esposm03/xcursor-rs","texts":[86]},{"name":"xkbcommon-dl","version":"0.4.2","license":"MIT","repository":"https://github.com/rust-windowing/xkbcommon-dl","texts":[107]},{"name":"xkeysym","version":"0.2.1","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/notgull/xkeysym","texts":[1]},{"name":"xml-rs","version":"0.8.29","license":"MIT","repository":"https://github.com/kornelski/xml-rs","texts":[97]},{"name":"xmlwriter","version":"0.1.0","license":"MIT","repository":"https://github.com/RazrFalcon/xmlwriter","texts":[105]},{"name":"yazi","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/yazi","texts":[21]},{"name":"yeslogic-fontconfig-sys","version":"6.0.1","license":"MIT","repository":"https://github.com/yeslogic/fontconfig-rs","texts":[109]},{"name":"yoke","version":"0.8.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"yoke-derive","version":"0.8.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zbus","version":"5.19.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zbus-lockstep","version":"0.5.2","license":"MIT","repository":"https://github.com/luukvanderduim/zbus-lockstep","texts":[93]},{"name":"zbus-lockstep-macros","version":"0.5.2","license":"MIT","repository":"https://github.com/luukvanderduim/zbus-lockstep","texts":[93]},{"name":"zbus_macros","version":"5.19.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zbus_names","version":"4.3.5","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zbus_xml","version":"5.2.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zcheapstr","version":"1.2.0","license":"MIT","repository":"https://github.com/z-galaxy/zcheapstr/","texts":[73]},{"name":"zeno","version":"0.3.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/zeno","texts":[21]},{"name":"zerocopy","version":"0.8.63","license":"BSD-2-Clause OR Apache-2.0 OR MIT","repository":"https://github.com/google/zerocopy","texts":[6]},{"name":"zerocopy-derive","version":"0.8.63","license":"BSD-2-Clause OR Apache-2.0 OR MIT","repository":"https://github.com/google/zerocopy","texts":[6]},{"name":"zerofrom","version":"0.1.8","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zerofrom-derive","version":"0.1.8","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zeroize","version":"1.9.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/RustCrypto/utils","texts":[3]},{"name":"zeroize_derive","version":"1.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/RustCrypto/utils","texts":[3]},{"name":"zerotrie","version":"0.2.5","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zerovec","version":"0.11.9","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zerovec-derive","version":"0.11.7","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[117]},{"name":"zip","version":"9.5.0","license":"MIT","repository":"https://github.com/zip-rs/zip2","texts":[96]},{"name":"zmij","version":"1.0.23","license":"MIT","repository":"https://github.com/dtolnay/zmij","texts":[93]},{"name":"zune-core","version":"0.5.3","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/etemesi254/zune-image","texts":[8]},{"name":"zune-jpeg","version":"0.5.15","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/etemesi254/zune-image/tree/dev/crates/zune-jpeg","texts":[8]},{"name":"zvariant","version":"5.15.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zvariant_derive","version":"5.15.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[72]},{"name":"zvariant_utils","version":"4.2.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[93]}],"licenses":[{"id":"0BSD","name":"BSD Zero Clause License","text":"Copyright (C) Jonas Schievink \n\nPermission to use, copy, modify, and/or distribute this software for\nany purpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN\nAN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT\nOF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2022-2023 John Nunley\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2023 Kirill Chibisov\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\n--- LLVM Exceptions to the Apache 2.0 License ----\n\nAs an exception, if, as a result of your compiling your source code, portions\nof this Software are embedded into an Object form of such source code, you\nmay redistribute such embedded portions in such Object form without complying\nwith the conditions of Sections 4(a), 4(b) and 4(d) of the License.\n\nIn addition, if you combine or link compiled forms of this Software with\nsoftware that is licensed under the GPLv2 (\"Combined Software\") and if a\ncourt of competent jurisdiction determines that the patent provision (Section\n3), the indemnity provision (Section 9) or other Section of the License\nconflicts with the conditions of the GPLv2, you may retroactively and\nprospectively choose to deem waived or otherwise exclude such Section(s) of\nthe License, but only in their entirety and only with respect to the Combined\nSoftware.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (c) Microsoft Corporation.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2023 The Fuchsia Authors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2024 Radzivon Bartoshyk\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright Individual contributors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n Copyright 2020 Yoshua Wuyts\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright (c) 2016 Alex Crichton\nCopyright (c) 2017 The Tokio Authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2014 Paho Lurie-Gregg\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2018 The pin-utils authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2019 The CryptoCorrosion Contributors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2019- Jake Goulding\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2020 Andrew Straw\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2021 Traverse Research B.V.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [2015] [Dan Burkert]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright (c) 2015-2022 Amod Malviya\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/LICENSE-2.0\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2021 The Unicode-rs Developers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright 2019 Fontations Developers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\n\nCopyright 2017-2023 Maik Klein, Maja Kądziołka\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\n\nCopyright [2017] [Maik Klein]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright 2016 Maik Klein\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2022 Kirill Chibisov\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Rust-chrono is dual-licensed under The MIT License [1] and\nApache 2.0 License [2]. Copyright (c) 2014--2026, Kang Seonghoon and\ncontributors.\n\nNota Bene: This is same as the Rust Project's own license.\n\n\n[1]: , which is reproduced below:\n\n~~~~\nThe MIT License (MIT)\n\nCopyright (c) 2014, Kang Seonghoon.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n~~~~\n\n\n[2]: , which is reproduced below:\n\n~~~~\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n~~~~\n\n"},{"id":"BSD-2-Clause","name":"BSD 2-Clause \"Simplified\" License","text":"Copyright (c) 2015 David Roundy \nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the\n distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"// Copyright © WHATWG (Apple, Google, Mozilla, Microsoft).\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// 1. Redistributions of source code must retain the above copyright notice, this\n// list of conditions and the following disclaimer.\n//\n// 2. Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// 3. Neither the name of the copyright holder nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n/// The PUA code points special-cased in the GB18030 encoder.\npub(crate) static GB18030_2022_OVERRIDE_PUA: [u16; 18] = [\n 0xE78D, 0xE78E, 0xE78F, 0xE790, 0xE791, 0xE792, 0xE793, 0xE794, 0xE795, 0xE796, 0xE81E, 0xE826,\n 0xE82B, 0xE82C, 0xE832, 0xE843, 0xE854, 0xE864,\n];\n\n/// The bytes corresponding to the PUA code points special-cased in the GB18030 encoder.\npub(crate) static GB18030_2022_OVERRIDE_BYTES: [[u8; 2]; 18] = [\n [0xA6, 0xD9],\n [0xA6, 0xDA],\n [0xA6, 0xDB],\n [0xA6, 0xDC],\n [0xA6, 0xDD],\n [0xA6, 0xDE],\n [0xA6, 0xDF],\n [0xA6, 0xEC],\n [0xA6, 0xED],\n [0xA6, 0xF3],\n [0xFE, 0x59],\n [0xFE, 0x61],\n [0xFE, 0x66],\n [0xFE, 0x67],\n [0xFE, 0x6D],\n [0xFE, 0x7E],\n [0xFE, 0x90],\n [0xFE, 0xA0],\n];\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"Copyright (c) 2011 Google Inc. All rights reserved.\nCopyright (c) 2020 Yevhenii Reizner All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and/or other materials provided with the\n distribution.\n\n * Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived\n from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"Copyright © WHATWG (Apple, Google, Mozilla, Microsoft).\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSL-1.0","name":"Boost Software License 1.0","text":"Boost Software License - Version 1.0 - August 17th, 2003\n\nPermission is hereby granted, free of charge, to any person or organization\nobtaining a copy of the software and accompanying documentation covered by\nthis license (the \"Software\") to use, reproduce, display, distribute,\nexecute, and transmit the Software, and to prepare derivative works of the\nSoftware, and to permit third-parties to whom the Software is furnished to\ndo so, all subject to the following:\n\nThe copyright notices in the Software and this entire statement, including\nthe above license grant, this restriction and the following disclaimer,\nmust be included in all copies of the Software, in whole or in part, and\nall derivative works of the Software, unless such copies or derivative\nworks are solely in the form of machine-executable object code generated by\na source language processor.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT\nSHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE\nFOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"BSL-1.0","name":"Boost Software License 1.0","text":"Boost Software License - Version 1.0 - August 17th, 2003\n\nPermission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the \"Software\") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:\n\nThe copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"GPL-3.0-only","name":"GNU General Public License v3.0 only","text":"GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright © 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\n“This License” refers to version 3 of the GNU General Public License.\n\n“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.\n\nTo “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.\n\nA “covered work” means either the unmodified Program or a work based on the Program.\n\nTo “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.\n\nA “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.\n\nA contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .\n"},{"id":"ISC","name":"ISC License","text":"Copyright © 2015, Simonas Kazlauskas\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without\nfee is hereby granted, provided that the above copyright notice and this permission notice appear\nin all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS\nSOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE\nAUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,\nNEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":" MIT License\n\n Copyright (c) Microsoft Corporation. All rights reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n"},{"id":"MIT","name":"MIT License","text":"# 3rd Party Notices\n\nThe `cfg_aliases!` macro uses a lot of the code from [`tectonic_cfg_support::target_cfg!`] macro which is under the following license:\n\n[`tectonic_cfg_support::target_cfg!`]: https://github.com/tectonic-typesetting/tectonic/blob/f2439b936470ad27bdf92882064bc4702ee01899/cfg_support/src/lib.rs#L166\n\n tectonic_cfg_support is licensed under the MIT License.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the “Software”), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n---\n"},{"id":"MIT","name":"MIT License","text":"// Copyright (c) 2006 Simon Brown \n// Copyright (c) 2018-2021 Jan Solanti \n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// \"Software\"), to\tdeal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmod cluster;\nmod range;\nmod single;\nmod single_lut;\n\npub use self::cluster::ClusterFit;\npub use self::range::RangeFit;\npub use self::single::SingleColourFit;\n\npub trait ColourFit<'a> {\n fn compress(&'a mut self, block: &mut [u8]);\n}\n\npub trait ColourFitImpl<'a> {\n fn is_bc1(&self) -> bool;\n fn is_transparent(&self) -> bool;\n fn compress3(&mut self);\n fn compress4(&mut self);\n fn best_compressed(&'a self) -> &'a [u8];\n}\n\nimpl<'a, T> ColourFit<'a> for T\nwhere\n T: ColourFitImpl<'a>,\n{\n fn compress(&'a mut self, block: &mut [u8]) {\n if self.is_bc1() {\n self.compress3();\n if !self.is_transparent() {\n self.compress4();\n }\n } else {\n self.compress4();\n }\n\n block.copy_from_slice(self.best_compressed());\n }\n}\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014 Carl Lerche and other MIO contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014 The rusqlite developers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014-2019 Geoffroy Couprie\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014-2020 Optimal Computing (NZ) Ltd\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Elinor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Jonathan Reem\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2017 Gilad Naaman\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Tokio Contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2020 Olivier Goffart \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2020 Élie ROUDNINSKI (marmeladema) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2022 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2024 Zeeshan Ali Khan & zbus contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2026 Zeeshan Ali Khan & zcheapstr contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright 2016 Max Resch\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright 2016 Nika Layzell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright © 2008-2013 Kristian Høgsberg\nCopyright © 2010-2013 Intel Corporation\nCopyright © 2013 Rafael Antognolli\nCopyright © 2013 Jasper St. Pierre\nCopyright © 2014 Jonas Ådahl\nCopyright © 2014 Jason Ekstrand\nCopyright © 2014-2015 Collabora, Ltd.\nCopyright © 2015 Red Hat Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\n---\n\nThe above is the version of the MIT \"Expat\" License used by X.org:\n\n http://cgit.freedesktop.org/xorg/xserver/tree/COPYING\n"},{"id":"MIT","name":"MIT License","text":"Copyright © 2022 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2006 Simon Brown \nCopyright (c) 2018-2021 Jan Solanti \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2017 Aaron Hancock\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2017 Maiddog\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2018 diwic\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2019 Kornel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2019 Peter Glotfelty\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Bilal Elmoussaoui\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Katharos Technology\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Samuele Esposito\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2022 Bartłomiej Maryńczak\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2025 rutrum\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO\nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) Tokio Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) [2021] [Marvin Countryman]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License Copyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS\nOR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\nOR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Permission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License\n\nCopyright 2015 Google Inc. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014 Mathijs van de Nes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014 Vladimir Matveev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014, Kang Seonghoon.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014-2022 Steven Fackler, Yuki Okushi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Danny Guo\nCopyright (c) 2016 Titus Wormer \nCopyright (c) 2018 Akash Kurdekar\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 Jelte Fennema\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 PistonDevelopers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2017 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2019 Reizner Evgeniy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2020 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) HarfBuzz developers\nCopyright (c) 2020 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright 2019 YesLogic Pty. Ltd.\nCopyright 2016 Manuel Reinhardt\nCopyright 2014 Austin Bonander\nCopyright 2013 The Servo Project Developers.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Bartłomiej Kamiński\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 Johann Tuffe\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"© 2016 Bertram Truong\n© 2021 Kornel Lesiński\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MPL-2.0","name":"Mozilla Public License 2.0","text":"Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in \n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0."},{"id":"MPL-2.0","name":"Mozilla Public License 2.0","text":"Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in \n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0.\n"},{"id":"Unicode-3.0","name":"Unicode License v3","text":"UNICODE LICENSE V3\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright © 1991-2023 Unicode, Inc.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY\nDOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR\nSOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT\nDOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of data files and any associated documentation (the \"Data Files\") or\nsoftware and any associated documentation (the \"Software\") to deal in the\nData Files or Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or sell\ncopies of the Data Files or Software, and to permit persons to whom the\nData Files or Software are furnished to do so, provided that either (a)\nthis copyright and permission notice appear with all copies of the Data\nFiles or Software, or (b) this copyright and permission notice appear in\nassociated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\nKIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\nTHIRD PARTY RIGHTS.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE\nBE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,\nOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\nARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA\nFILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall\nnot be used in advertising or otherwise to promote the sale, use or other\ndealings in these Data Files or Software without prior written\nauthorization of the copyright holder.\n"},{"id":"Unicode-3.0","name":"Unicode License v3","text":"UNICODE LICENSE V3\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright © 2020-2024 Unicode, Inc.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY\nDOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR\nSOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT\nDOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of data files and any associated documentation (the \"Data Files\") or\nsoftware and any associated documentation (the \"Software\") to deal in the\nData Files or Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or sell\ncopies of the Data Files or Software, and to permit persons to whom the\nData Files or Software are furnished to do so, provided that either (a)\nthis copyright and permission notice appear with all copies of the Data\nFiles or Software, or (b) this copyright and permission notice appear in\nassociated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\nKIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\nTHIRD PARTY RIGHTS.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE\nBE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,\nOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\nARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA\nFILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall\nnot be used in advertising or otherwise to promote the sale, use or other\ndealings in these Data Files or Software without prior written\nauthorization of the copyright holder.\n\nSPDX-License-Identifier: Unicode-3.0\n\n—\n\nPortions of ICU4X may have been adapted from ICU4C and/or ICU4J.\nICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others.\n"},{"id":"Zlib","name":"zlib License","text":"Copyright (c) 2021 Orson Peters \n\nThis software is provided 'as-is', without any express or implied warranty. In\nno event will the authors be held liable for any damages arising from the use of\nthis software.\n\nPermission is granted to anyone to use this software for any purpose, including\ncommercial applications, and to alter it and redistribute it freely, subject to\nthe following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not claim\n that you wrote the original software. If you use this software in a product,\n an acknowledgment in the product documentation would be appreciated but is\n not required.\n\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n\n 3. This notice may not be removed or altered from any source distribution.\n"},{"id":"Zlib","name":"zlib License","text":"Copyright (c) 2024 Orson Peters\n\nThis software is provided 'as-is', without any express or implied warranty. In\nno event will the authors be held liable for any damages arising from the use of\nthis software.\n\nPermission is granted to anyone to use this software for any purpose, including\ncommercial applications, and to alter it and redistribute it freely, subject to\nthe following restrictions:\n\n1. The origin of this software must not be misrepresented; you must not claim\n that you wrote the original software. If you use this software in a product,\n an acknowledgment in the product documentation would be appreciated but is\n not required.\n\n2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n\n3. This notice may not be removed or altered from any source distribution."}]} +{"crates":[{"name":"ab_glyph","version":"0.2.32","license":"Apache-2.0","repository":"https://github.com/alexheretic/ab-glyph","texts":[40]},{"name":"ab_glyph_rasterizer","version":"0.1.10","license":"Apache-2.0","repository":"https://github.com/alexheretic/ab-glyph","texts":[40]},{"name":"accesskit","version":"0.24.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_atspi_common","version":"0.19.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_consumer","version":"0.38.0","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_unix","version":"0.22.1","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_windows","version":"0.34.0","license":"MIT OR Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"accesskit_winit","version":"0.33.2","license":"Apache-2.0","repository":"https://github.com/AccessKit/accesskit","texts":[40]},{"name":"adler2","version":"2.0.1","license":"0BSD OR MIT OR Apache-2.0","repository":"https://github.com/oyvindln/adler2","texts":[0]},{"name":"aes","version":"0.8.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/block-ciphers","texts":[24]},{"name":"ahash","version":"0.8.12","license":"MIT OR Apache-2.0","repository":"https://github.com/tkaitchuck/ahash","texts":[21]},{"name":"allocator-api2","version":"0.2.21","license":"MIT OR Apache-2.0","repository":"https://github.com/zakarumych/allocator-api2","texts":[40]},{"name":"alsa","version":"0.11.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/diwic/alsa-rs","texts":[40]},{"name":"alsa-sys","version":"0.4.0","license":"MIT","repository":"https://github.com/diwic/alsa-sys","texts":[82]},{"name":"annotate-snippets","version":"0.12.17","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/annotate-snippets-rs","texts":[9]},{"name":"anstream","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle","version":"1.0.14","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-parse","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-query","version":"1.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anstyle-wincon","version":"3.0.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"anyhow","version":"1.0.104","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/anyhow","texts":[40]},{"name":"arbitrary","version":"1.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-fuzz/arbitrary/","texts":[21]},{"name":"arboard","version":"3.7.0","license":"MIT OR Apache-2.0","repository":"https://github.com/1Password/arboard","texts":[40]},{"name":"arrayref","version":"0.3.9","license":"BSD-2-Clause","repository":"https://github.com/droundy/arrayref","texts":[42]},{"name":"arrayvec","version":"0.7.8","license":"MIT OR Apache-2.0","repository":"https://github.com/bluss/arrayvec","texts":[21]},{"name":"as-raw-xcb-connection","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/as-raw-xcb-connection","texts":[3]},{"name":"ash","version":"0.38.0+1.3.281","license":"MIT OR Apache-2.0","repository":"https://github.com/ash-rs/ash","texts":[34]},{"name":"ashpd","version":"0.11.1","license":"MIT","repository":"https://github.com/bilelmoussaoui/ashpd","texts":[85]},{"name":"async-broadcast","version":"0.7.2","license":"MIT OR Apache-2.0","repository":"https://github.com/smol-rs/async-broadcast","texts":[11]},{"name":"async-channel","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-channel","texts":[21]},{"name":"async-executor","version":"1.14.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-executor","texts":[21]},{"name":"async-fs","version":"2.2.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-fs","texts":[21]},{"name":"async-io","version":"2.6.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-io","texts":[21]},{"name":"async-lock","version":"3.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-lock","texts":[21]},{"name":"async-net","version":"2.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-net","texts":[21]},{"name":"async-process","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-process","texts":[21]},{"name":"async-recursion","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/dcchut/async-recursion","texts":[20]},{"name":"async-signal","version":"0.2.14","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-signal","texts":[21]},{"name":"async-task","version":"4.7.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/async-task","texts":[21]},{"name":"async-trait","version":"0.1.92","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/async-trait","texts":[40]},{"name":"atomic-waker","version":"1.1.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/atomic-waker","texts":[21]},{"name":"atspi","version":"0.29.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"atspi-common","version":"0.13.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"atspi-proxies","version":"0.13.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/odilia-app/atspi","texts":[35]},{"name":"autocfg","version":"1.5.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/cuviper/autocfg","texts":[21]},{"name":"base64","version":"0.23.1","license":"MIT OR Apache-2.0","repository":"https://github.com/marshallpierce/rust-base64","texts":[21]},{"name":"bit-set","version":"0.10.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/contain-rs/bit-set","texts":[23]},{"name":"bit-vec","version":"0.9.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/contain-rs/bit-vec","texts":[23]},{"name":"bitflags","version":"2.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/bitflags/bitflags","texts":[21]},{"name":"block-buffer","version":"0.10.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"blocking","version":"1.7.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/blocking","texts":[21]},{"name":"bumpalo","version":"3.20.3","license":"MIT OR Apache-2.0","repository":"https://github.com/fitzgen/bumpalo","texts":[21]},{"name":"by_address","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/mbrubeck/by_address","texts":[21]},{"name":"bytemuck","version":"1.25.2","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/bytemuck","texts":[39]},{"name":"bytemuck_derive","version":"1.12.1","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/bytemuck","texts":[39]},{"name":"byteorder","version":"1.5.0","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/byteorder","texts":[101]},{"name":"byteorder-lite","version":"0.1.0","license":"Unlicense OR MIT","repository":"https://github.com/image-rs/byteorder-lite","texts":[101]},{"name":"bytes","version":"1.12.1","license":"MIT","repository":"https://github.com/tokio-rs/bytes","texts":[62]},{"name":"calloop","version":"0.13.0","license":"MIT","repository":"https://github.com/Smithay/calloop","texts":[64]},{"name":"calloop-wayland-source","version":"0.3.0","license":"MIT","repository":"https://github.com/smithay/calloop-wayland-source","texts":[71]},{"name":"cc","version":"1.11.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cc-rs","texts":[21]},{"name":"cfg-if","version":"1.0.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cfg-if","texts":[21]},{"name":"cfg_aliases","version":"0.2.2","license":"MIT","repository":"https://github.com/katharostech/cfg_aliases","texts":[52,86]},{"name":"chacha20","version":"0.10.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/stream-ciphers","texts":[24]},{"name":"chrono","version":"0.4.45","license":"MIT OR Apache-2.0","repository":"https://github.com/chronotope/chrono","texts":[41]},{"name":"cipher","version":"0.4.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"clap","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_builder","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_derive","version":"4.6.7","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clap_lex","version":"1.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/clap-rs/clap","texts":[9]},{"name":"clipboard-win","version":"5.4.3","license":"BSL-1.0","repository":"https://github.com/DoumanAsh/clipboard-win","texts":[48]},{"name":"clru","version":"0.6.3","license":"MIT","repository":"https://github.com/marmeladema/clru-rs","texts":[69]},{"name":"cobs","version":"0.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/jamesmunns/cobs.rs","texts":[10]},{"name":"codespan-reporting","version":"0.13.1","license":"Apache-2.0","repository":"https://github.com/brendanzab/codespan","texts":[8]},{"name":"color_quant","version":"1.1.0","license":"MIT","repository":"https://github.com/image-rs/color_quant.git","texts":[104]},{"name":"colorchoice","version":"1.0.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/anstyle.git","texts":[10]},{"name":"concurrent-queue","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/concurrent-queue","texts":[21]},{"name":"const-field-offset","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"const-field-offset-macro","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"constant_time_eq","version":"0.6.1","license":"CC0-1.0 OR MIT-0 OR Apache-2.0","repository":"https://codeberg.org/cesarb/constant_time_eq","texts":[40]},{"name":"convert_case","version":"0.10.0","license":"MIT","repository":"https://github.com/rutrum/convert-case","texts":[89]},{"name":"core_detect","version":"1.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/thomcc/core_detect","texts":[20]},{"name":"countme","version":"3.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/matklad/countme","texts":[21]},{"name":"cpal","version":"0.18.2","license":"Apache-2.0","repository":"https://github.com/RustAudio/cpal","texts":[8]},{"name":"cpufeatures","version":"0.2.17","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"cpufeatures","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"cranelift-assembler-x64","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"cranelift-assembler-x64-meta","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"cranelift-bforest","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-bitset","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"cranelift-codegen","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-codegen-meta","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-codegen-shared","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-control","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-entity","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-frontend","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-isle","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/cranelift/isle","texts":[40]},{"name":"cranelift-native","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"cranelift-srcgen","version":"0.137.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"crc32fast","version":"1.5.5","license":"MIT OR Apache-2.0","repository":"https://github.com/srijs/rust-crc32fast","texts":[10]},{"name":"critical-section","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-embedded/critical-section","texts":[21]},{"name":"crossbeam-channel","version":"0.5.17","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-deque","version":"0.8.8","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-epoch","version":"0.9.21","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crossbeam-utils","version":"0.8.23","license":"MIT OR Apache-2.0","repository":"https://github.com/crossbeam-rs/crossbeam","texts":[21]},{"name":"crypto-common","version":"0.1.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"ctor","version":"0.10.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/mmastrac/rust-ctor","texts":[38]},{"name":"cursor-icon","version":"1.2.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/cursor-icon","texts":[2]},{"name":"dasp_sample","version":"0.11.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rustaudio/sample.git","texts":[40]},{"name":"data-url","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"derive_more","version":"2.1.1","license":"MIT","repository":"https://github.com/JelteF/derive_more","texts":[103]},{"name":"derive_more-impl","version":"2.1.1","license":"MIT","repository":"https://github.com/JelteF/derive_more","texts":[103]},{"name":"digest","version":"0.10.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/traits","texts":[24]},{"name":"dirs","version":"6.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/soc/dirs-rs","texts":[40]},{"name":"dirs-sys","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/dirs-dev/dirs-sys-rs","texts":[40]},{"name":"displaydoc","version":"0.2.7","license":"MIT OR Apache-2.0","repository":"https://github.com/yaahc/displaydoc","texts":[21]},{"name":"dlib","version":"0.5.3","license":"MIT","repository":"https://github.com/elinorbgr/dlib","texts":[60]},{"name":"document-features","version":"0.2.12","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/document-features","texts":[40]},{"name":"downcast-rs","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/marcianx/downcast-rs","texts":[23]},{"name":"dpi","version":"0.1.2","license":"Apache-2.0 AND MIT","repository":"https://github.com/rust-windowing/winit","texts":[37,90]},{"name":"either","version":"1.19.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/either","texts":[21]},{"name":"encoding_rs","version":"0.8.44","license":"(Apache-2.0 OR MIT) AND BSD-3-Clause","repository":"https://github.com/hsivonen/encoding_rs","texts":[3,44,46]},{"name":"endi","version":"1.1.1","license":"MIT","repository":"https://github.com/zeenix/endi","texts":[94]},{"name":"enumflags2","version":"0.7.12","license":"MIT OR Apache-2.0","repository":"https://github.com/meithecatte/enumflags2","texts":[32]},{"name":"enumflags2_derive","version":"0.7.12","license":"MIT OR Apache-2.0","repository":"https://github.com/meithecatte/enumflags2","texts":[33]},{"name":"env_filter","version":"2.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/env_logger","texts":[10]},{"name":"env_logger","version":"0.11.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-cli/env_logger","texts":[10]},{"name":"equivalent","version":"1.0.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/indexmap-rs/equivalent","texts":[21]},{"name":"errno","version":"0.3.14","license":"MIT OR Apache-2.0","repository":"https://github.com/lambda-fairy/rust-errno","texts":[21]},{"name":"error-code","version":"3.4.0","license":"BSL-1.0","repository":"https://github.com/DoumanAsh/error-code","texts":[47]},{"name":"euclid","version":"0.22.14","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/euclid","texts":[21]},{"name":"event-listener","version":"5.4.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/event-listener","texts":[21]},{"name":"event-listener-strategy","version":"0.5.4","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/event-listener-strategy","texts":[21]},{"name":"fallible-iterator","version":"0.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/sfackler/rust-fallible-iterator","texts":[10]},{"name":"fallible-streaming-iterator","version":"0.1.9","license":"MIT OR Apache-2.0","repository":"https://github.com/sfackler/fallible-streaming-iterator","texts":[10]},{"name":"fastrand","version":"2.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/fastrand","texts":[21]},{"name":"fdeflate","version":"0.3.7","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/fdeflate","texts":[40]},{"name":"femtovg","version":"0.27.0","license":"MIT OR Apache-2.0","repository":"https://github.com/femtovg/femtovg","texts":[40]},{"name":"field-offset","version":"0.3.6","license":"MIT OR Apache-2.0","repository":"https://github.com/Diggsey/rust-field-offset","texts":[40]},{"name":"find-msvc-tools","version":"0.1.15","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/cc-rs","texts":[21]},{"name":"fixed_decimal","version":"0.7.3","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"fixedbitset","version":"0.5.9","license":"MIT OR Apache-2.0","repository":"https://github.com/petgraph/fixedbitset","texts":[21]},{"name":"flate2","version":"1.1.11","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/flate2-rs","texts":[21]},{"name":"float-cmp","version":"0.9.0","license":"MIT","repository":"https://github.com/mikedilger/float-cmp","texts":[57]},{"name":"fnv","version":"1.0.7","license":"Apache-2.0 OR MIT","repository":"https://github.com/servo/rust-fnv","texts":[21]},{"name":"foldhash","version":"0.1.5","license":"Zlib","repository":"https://github.com/orlp/foldhash","texts":[120]},{"name":"foldhash","version":"0.2.0","license":"Zlib","repository":"https://github.com/orlp/foldhash","texts":[120]},{"name":"font-types","version":"0.12.7","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"fontdb","version":"0.24.0","license":"MIT","repository":"https://github.com/RazrFalcon/fontdb","texts":[107]},{"name":"fontique","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"form_urlencoded","version":"1.2.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"futures","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-channel","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-core","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-executor","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-io","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-lite","version":"2.6.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/futures-lite","texts":[21]},{"name":"futures-macro","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-sink","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-task","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"futures-util","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/futures-rs","texts":[12]},{"name":"generic-array","version":"0.14.7","license":"MIT","repository":"https://github.com/fizyk20/generic-array.git","texts":[112]},{"name":"gethostname","version":"1.1.0","license":"Apache-2.0","repository":"https://codeberg.org/swsnr/gethostname.rs.git","texts":[21]},{"name":"getrandom","version":"0.3.4","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/getrandom","texts":[27]},{"name":"getrandom","version":"0.4.3","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/getrandom","texts":[27]},{"name":"gif","version":"0.14.2","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-gif","texts":[20]},{"name":"gimli","version":"0.33.0","license":"MIT OR Apache-2.0","repository":"https://github.com/gimli-rs/gimli","texts":[21]},{"name":"gl_generator","version":"0.14.0","license":"Apache-2.0","repository":"https://github.com/brendanzab/gl-rs/","texts":[40]},{"name":"glow","version":"0.17.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/grovesNL/glow","texts":[20]},{"name":"glow","version":"0.18.0","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/grovesNL/glow","texts":[20]},{"name":"glutin","version":"0.32.3","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin-winit","version":"0.5.0","license":"MIT","repository":"https://github.com/rust-windowing/glutin","texts":[78]},{"name":"glutin_egl_sys","version":"0.7.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin_glx_sys","version":"0.6.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"glutin_wgl_sys","version":"0.6.1","license":"Apache-2.0","repository":"https://github.com/rust-windowing/glutin","texts":[36]},{"name":"gpu-allocator","version":"0.28.0","license":"MIT OR Apache-2.0","repository":"https://github.com/Traverse-Research/gpu-allocator","texts":[18]},{"name":"half","version":"2.7.1","license":"MIT OR Apache-2.0","repository":"https://github.com/VoidStarKat/half-rs","texts":[40]},{"name":"harfrust","version":"0.12.0","license":"MIT","repository":"https://github.com/harfbuzz/harfrust","texts":[109]},{"name":"hashbrown","version":"0.14.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.15.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.16.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashbrown","version":"0.17.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/hashbrown","texts":[21]},{"name":"hashlink","version":"0.12.2","license":"MIT OR Apache-2.0","repository":"https://github.com/djc/hashlink","texts":[22]},{"name":"heck","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/withoutboats/heck","texts":[21]},{"name":"hex","version":"0.4.3","license":"MIT OR Apache-2.0","repository":"https://github.com/KokaKiwi/rust-hex","texts":[10]},{"name":"htmlparser","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/jdrouet/htmlparser.git","texts":[21]},{"name":"i-slint-backend-selector","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-backend-winit","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-common","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-compiler","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-core","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-core-macros","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-renderer-femtovg","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"i-slint-renderer-software","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"iana-time-zone","version":"0.1.65","license":"MIT OR Apache-2.0","repository":"https://github.com/strawlab/iana-time-zone","texts":[17]},{"name":"icu_collections","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_decimal","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_decimal_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_locale_core","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_locale_fallback","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_locale_fallback_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_normalizer","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_normalizer_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_properties","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_properties_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_provider","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_segmenter","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"icu_segmenter_data","version":"2.4.0","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"id-arena","version":"2.3.0","license":"MIT OR Apache-2.0","repository":"https://github.com/fitzgen/id-arena","texts":[21]},{"name":"idna","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url/","texts":[21]},{"name":"idna_adapter","version":"1.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/idna_adapter","texts":[21]},{"name":"image","version":"0.25.10","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image","texts":[40]},{"name":"image-webp","version":"0.2.4","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-webp","texts":[40]},{"name":"imagesize","version":"0.15.0","license":"MIT","repository":"https://github.com/Roughsketch/imagesize","texts":[81]},{"name":"imgref","version":"1.12.3","license":"CC0-1.0 OR Apache-2.0","repository":"https://github.com/kornelski/imgref","texts":[8]},{"name":"indexmap","version":"2.14.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/indexmap-rs/indexmap","texts":[21]},{"name":"inout","version":"0.1.4","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/utils","texts":[24]},{"name":"is_terminal_polyfill","version":"1.70.2","license":"MIT OR Apache-2.0","repository":"https://github.com/polyfill-rs/is_terminal_polyfill","texts":[10]},{"name":"itertools","version":"0.14.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-itertools/itertools","texts":[21]},{"name":"itertools","version":"0.15.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-itertools/itertools","texts":[21]},{"name":"itoa","version":"1.0.19","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/itoa","texts":[40]},{"name":"keyboard-types","version":"0.7.0","license":"MIT OR Apache-2.0","repository":"https://github.com/pyfisch/keyboard-types","texts":[20]},{"name":"khronos-egl","version":"6.0.0","license":"MIT OR Apache-2.0","repository":"https://github.com/timothee-haudebourg/khronos-egl","texts":[21]},{"name":"khronos_api","version":"3.1.0","license":"Apache-2.0","repository":"https://github.com/brendanzab/gl-rs/","texts":[40]},{"name":"kurbo","version":"0.13.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/kurbo","texts":[3]},{"name":"lazy_static","version":"1.5.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang-nursery/lazy-static.rs","texts":[21]},{"name":"leb128fmt","version":"0.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bluk/leb128fmt","texts":[21]},{"name":"lewton","version":"0.10.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RustAudio/lewton","texts":[40]},{"name":"libc","version":"0.2.191","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/libc","texts":[40]},{"name":"libloading","version":"0.8.9","license":"ISC","repository":"https://github.com/nagisa/rust_libloading/","texts":[50]},{"name":"libm","version":"0.2.16","license":"MIT","repository":"https://github.com/rust-lang/compiler-builtins","texts":[90]},{"name":"libsqlite3-sys","version":"0.39.1","license":"MIT","repository":"https://github.com/rusqlite/rusqlite","texts":[55]},{"name":"linebender_resource_handle","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/raw_resource_handle","texts":[40]},{"name":"linux-raw-sys","version":"0.12.1","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/linux-raw-sys","texts":[4,21]},{"name":"linux-raw-sys","version":"0.4.15","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/linux-raw-sys","texts":[4,21]},{"name":"litemap","version":"0.8.3","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"litrs","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/LukasKalbertodt/litrs","texts":[40]},{"name":"lock_api","version":"0.4.14","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"log","version":"0.4.35","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/log","texts":[21]},{"name":"lyon_algorithms","version":"1.0.22","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_extra","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_geom","version":"1.0.20","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"lyon_path","version":"1.0.19","license":"MIT OR Apache-2.0","repository":"https://github.com/nical/lyon","texts":[40]},{"name":"memchr","version":"2.8.3","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/memchr","texts":[101]},{"name":"memfd","version":"0.6.6","license":"MIT OR Apache-2.0","repository":"https://github.com/lucab/memfd-rs","texts":[8]},{"name":"memmap2","version":"0.9.12","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/memmap2-rs","texts":[19]},{"name":"memoffset","version":"0.9.1","license":"MIT","repository":"https://github.com/Gilnaa/memoffset","texts":[61]},{"name":"miniz_oxide","version":"0.8.9","license":"MIT OR Zlib OR Apache-2.0","repository":"https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide","texts":[40]},{"name":"miniz_oxide","version":"0.9.1","license":"MIT OR Zlib OR Apache-2.0","repository":"https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide","texts":[40]},{"name":"mio","version":"1.2.4","license":"MIT","repository":"https://github.com/tokio-rs/mio","texts":[54]},{"name":"moxcms","version":"0.8.1","license":"BSD-3-Clause OR Apache-2.0","repository":"https://github.com/awxkee/moxcms.git","texts":[7]},{"name":"muda","version":"0.19.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/tauri-apps/muda","texts":[21]},{"name":"multiversion_no_op","version":"1.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/multiversion_no_op","texts":[3]},{"name":"naga","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"naga-types","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"natord","version":"1.0.9","license":"MIT","repository":"https://github.com/lifthrasiir/rust-natord","texts":[99]},{"name":"nom","version":"8.0.0","license":"MIT","repository":"https://github.com/rust-bakery/nom","texts":[56]},{"name":"num-bigint","version":"0.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-bigint","texts":[21]},{"name":"num-complex","version":"0.4.6","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-complex","texts":[21]},{"name":"num-integer","version":"0.1.47","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-integer","texts":[21]},{"name":"num-rational","version":"0.4.2","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-rational","texts":[21]},{"name":"num-traits","version":"0.2.19","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-num/num-traits","texts":[21]},{"name":"num_enum","version":"0.7.6","license":"BSD-3-Clause OR MIT OR Apache-2.0","repository":"https://github.com/illicitonion/num_enum","texts":[40]},{"name":"num_enum_derive","version":"0.7.6","license":"BSD-3-Clause OR MIT OR Apache-2.0","repository":"https://github.com/illicitonion/num_enum","texts":[40]},{"name":"object","version":"0.40.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/gimli-rs/object","texts":[21]},{"name":"once_cell","version":"1.21.4","license":"MIT OR Apache-2.0","repository":"https://github.com/matklad/once_cell","texts":[21]},{"name":"once_cell_polyfill","version":"1.70.2","license":"MIT OR Apache-2.0","repository":"https://github.com/polyfill-rs/once_cell_polyfill","texts":[10]},{"name":"oozextract","version":"0.5.7","license":"MIT","repository":"https://github.com/lvlvllvlvllvlvl/oozextract","texts":[90]},{"name":"option-ext","version":"0.2.0","license":"MPL-2.0","repository":"https://github.com/soc/option-ext.git","texts":[116]},{"name":"opus-rs","version":"0.1.42","license":"BSD-3-Clause","repository":"https://github.com/restsend/opus-rs","texts":[43]},{"name":"ordered-float","version":"5.5.1","license":"MIT","repository":"https://github.com/reem/rust-ordered-float","texts":[59]},{"name":"ordered-stream","version":"0.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/danieldg/ordered-stream","texts":[21]},{"name":"os_pipe","version":"1.2.3","license":"MIT","repository":"https://github.com/oconnor663/os_pipe.rs","texts":[111]},{"name":"owned_ttf_parser","version":"0.25.1","license":"Apache-2.0","repository":"https://github.com/alexheretic/owned-ttf-parser","texts":[40]},{"name":"parking","version":"2.2.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/parking","texts":[21]},{"name":"parking_lot","version":"0.12.5","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"parking_lot_core","version":"0.9.12","license":"MIT OR Apache-2.0","repository":"https://github.com/Amanieu/parking_lot","texts":[21]},{"name":"parlance","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"parley","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"parley_data","version":"0.11.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/parley","texts":[21]},{"name":"paste","version":"1.0.15","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/paste","texts":[40]},{"name":"percent-encoding","version":"2.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url/","texts":[21]},{"name":"petgraph","version":"0.8.3","license":"MIT OR Apache-2.0","repository":"https://github.com/petgraph/petgraph","texts":[21]},{"name":"phf","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[100]},{"name":"phf_generator","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[100]},{"name":"phf_macros","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[100]},{"name":"phf_shared","version":"0.13.1","license":"MIT","repository":"https://github.com/rust-phf/rust-phf","texts":[100]},{"name":"pico-args","version":"0.5.0","license":"MIT","repository":"https://github.com/RazrFalcon/pico-args","texts":[67]},{"name":"pin-project","version":"1.1.13","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project","texts":[40]},{"name":"pin-project-internal","version":"1.1.13","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project","texts":[40]},{"name":"pin-project-lite","version":"0.2.17","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/pin-project-lite","texts":[40]},{"name":"pin-utils","version":"0.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/pin-utils","texts":[14]},{"name":"pin-weak","version":"1.1.0","license":"MIT","repository":"https://github.com/sixtyfpsui/pin-weak","texts":[68]},{"name":"piper","version":"0.2.5","license":"MIT OR Apache-2.0","repository":"https://github.com/smol-rs/piper","texts":[21]},{"name":"pkg-config","version":"0.3.34","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/pkg-config-rs","texts":[21]},{"name":"png","version":"0.18.1","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/image-png","texts":[21]},{"name":"polling","version":"3.11.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/smol-rs/polling","texts":[21]},{"name":"pollster","version":"0.4.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/zesterer/pollster","texts":[21]},{"name":"pollster","version":"1.0.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/zesterer/pollster","texts":[21]},{"name":"polycool","version":"0.4.0","license":"MIT OR Apache-2.0","repository":"https://github.com/linebender/kurbo","texts":[3]},{"name":"portable-atomic","version":"1.15.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/taiki-e/portable-atomic","texts":[40]},{"name":"postcard","version":"1.1.3","license":"MIT OR Apache-2.0","repository":"https://github.com/jamesmunns/postcard","texts":[21]},{"name":"potential_utf","version":"0.1.6","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"ppv-lite86","version":"0.2.21","license":"MIT OR Apache-2.0","repository":"https://github.com/cryptocorrosion/cryptocorrosion","texts":[15]},{"name":"presser","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/EmbarkStudios/presser","texts":[23]},{"name":"proc-macro-crate","version":"3.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bkchr/proc-macro-crate","texts":[28]},{"name":"proc-macro2","version":"1.0.107","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/proc-macro2","texts":[40]},{"name":"profiling","version":"1.0.18","license":"MIT OR Apache-2.0","repository":"https://github.com/aclysma/profiling","texts":[40]},{"name":"pulldown-cmark","version":"0.13.6","license":"MIT","repository":"https://github.com/raphlinus/pulldown-cmark","texts":[96]},{"name":"pulley-interpreter","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/pulley","texts":[40]},{"name":"pulley-macros","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime/tree/main/pulley/macros","texts":[40]},{"name":"pxfm","version":"0.1.30","license":"BSD-3-Clause OR Apache-2.0","repository":"https://github.com/awxkee/pxfm","texts":[7]},{"name":"quick-error","version":"2.0.1","license":"MIT OR Apache-2.0","repository":"http://github.com/tailhook/quick-error","texts":[10]},{"name":"quick-xml","version":"0.41.0","license":"MIT","repository":"https://github.com/tafia/quick-xml","texts":[113]},{"name":"quote","version":"1.0.47","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/quote","texts":[40]},{"name":"rand","version":"0.10.3","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand_chacha","version":"0.9.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[40]},{"name":"rand_core","version":"0.10.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand_core","texts":[26]},{"name":"rand_core","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-random/rand","texts":[26]},{"name":"range-alloc","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/range-alloc","texts":[40]},{"name":"raw-window-handle","version":"0.6.2","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/raw-window-handle","texts":[40]},{"name":"rayon","version":"1.12.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/rayon","texts":[21]},{"name":"rayon-core","version":"1.13.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rayon-rs/rayon","texts":[21]},{"name":"read-fonts","version":"0.41.0","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"regalloc2","version":"0.15.2","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/regalloc2","texts":[4]},{"name":"regex-lite","version":"0.1.9","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/regex","texts":[21]},{"name":"renderdoc-sys","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/ebkalderon/renderdoc-rs","texts":[21]},{"name":"resvg","version":"0.48.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/resvg","texts":[40]},{"name":"rfd","version":"0.15.4","license":"MIT","repository":"https://github.com/PolyMeilex/rfd","texts":[88]},{"name":"rgb","version":"0.8.53","license":"MIT","repository":"https://github.com/kornelski/rust-rgb","texts":[83]},{"name":"rodio","version":"0.23.0","license":"MIT OR Apache-2.0","repository":"https://github.com/RustAudio/rodio","texts":[40]},{"name":"rowan","version":"0.17.0","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/rowan","texts":[21]},{"name":"roxmltree","version":"0.21.2","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/roxmltree","texts":[21]},{"name":"rspolib","version":"0.1.2","license":"MIT","repository":"https://github.com/mondeja/rspolib","texts":[90]},{"name":"rusqlite","version":"0.41.1","license":"MIT","repository":"https://github.com/rusqlite/rusqlite","texts":[55]},{"name":"rustc-hash","version":"1.1.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/rust-lang-nursery/rustc-hash","texts":[21]},{"name":"rustc-hash","version":"2.1.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/rust-lang/rustc-hash","texts":[40]},{"name":"rustc_version","version":"0.4.1","license":"MIT OR Apache-2.0","repository":"https://github.com/djc/rustc-version-rs","texts":[21]},{"name":"rustix","version":"0.38.44","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/rustix","texts":[4,21]},{"name":"rustix","version":"1.1.6","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/rustix","texts":[4,21]},{"name":"rustix-linux-procfs","version":"0.1.1","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/sunfishcode/rustix-linux-procfs","texts":[4,21]},{"name":"rustversion","version":"1.0.23","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/rustversion","texts":[40]},{"name":"safe_arch","version":"0.7.4","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/safe_arch","texts":[39]},{"name":"scoped-tls","version":"1.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/alexcrichton/scoped-tls","texts":[21]},{"name":"scoped-tls-hkt","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/Diggsey/scoped-tls-hkt","texts":[21]},{"name":"scopeguard","version":"1.2.0","license":"MIT OR Apache-2.0","repository":"https://github.com/bluss/scopeguard","texts":[21]},{"name":"sctk-adwaita","version":"0.10.1","license":"MIT","repository":"https://github.com/PolyMeilex/sctk-adwaita","texts":[88]},{"name":"semver","version":"1.0.28","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/semver","texts":[40]},{"name":"serde","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_core","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_derive","version":"1.0.229","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/serde","texts":[40]},{"name":"serde_json","version":"1.0.154","license":"MIT OR Apache-2.0","repository":"https://github.com/serde-rs/json","texts":[40]},{"name":"serde_repr","version":"0.1.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/serde-repr","texts":[40]},{"name":"serde_spanned","version":"1.1.3","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"sha1","version":"0.10.7","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/hashes","texts":[24]},{"name":"sha2","version":"0.10.9","license":"MIT OR Apache-2.0","repository":"https://github.com/RustCrypto/hashes","texts":[24]},{"name":"shlex","version":"2.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/comex/rust-shlex","texts":[40]},{"name":"signal-hook-registry","version":"1.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/vorner/signal-hook","texts":[21]},{"name":"simd-adler32","version":"0.3.10","license":"MIT","repository":"https://github.com/mcountryman/simd-adler32","texts":[92]},{"name":"simdutf8","version":"0.1.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rusticstuff/simdutf8","texts":[40]},{"name":"simplecss","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/simplecss","texts":[21]},{"name":"siphasher","version":"1.0.4","license":"MIT OR Apache-2.0","repository":"https://github.com/jedisct1/rust-siphash","texts":[3]},{"name":"skrifa","version":"0.44.0","license":"MIT OR Apache-2.0","repository":"https://github.com/googlefonts/fontations","texts":[31]},{"name":"slab","version":"0.4.12","license":"MIT","repository":"https://github.com/tokio-rs/slab","texts":[65]},{"name":"slint","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"slint-build","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"slint-macros","version":"1.18.1","license":"GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0","repository":"https://github.com/slint-ui/slint","texts":[49]},{"name":"slotmap","version":"1.1.1","license":"Zlib","repository":"https://github.com/orlp/slotmap","texts":[119]},{"name":"smallvec","version":"1.16.5","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-smallvec","texts":[21]},{"name":"smithay-client-toolkit","version":"0.19.2","license":"MIT","repository":"https://github.com/smithay/client-toolkit","texts":[63]},{"name":"smol_str","version":"0.2.2","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/smol_str","texts":[21]},{"name":"smol_str","version":"0.3.7","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/rust-analyzer/tree/master/lib/smol_str","texts":[21]},{"name":"snafu","version":"0.8.9","license":"MIT OR Apache-2.0","repository":"https://github.com/shepmaster/snafu","texts":[16]},{"name":"snafu-derive","version":"0.8.9","license":"MIT OR Apache-2.0","repository":"https://github.com/shepmaster/snafu","texts":[16]},{"name":"socket2","version":"0.6.5","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-lang/socket2","texts":[21]},{"name":"softbuffer","version":"0.4.8","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-windowing/softbuffer","texts":[36]},{"name":"spin_on","version":"0.1.1","license":"Apache-2.0 OR MIT","repository":"","texts":[21]},{"name":"spirv","version":"0.4.0+sdk-1.4.341.0","license":"Apache-2.0","repository":"https://github.com/gfx-rs/rspirv","texts":[40]},{"name":"stable_deref_trait","version":"1.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/storyyeller/stable_deref_trait","texts":[21]},{"name":"static_assertions","version":"1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/nvzqz/static-assertions-rs","texts":[3]},{"name":"strict-num","version":"0.1.1","license":"MIT","repository":"https://github.com/RazrFalcon/strict-num","texts":[70]},{"name":"strsim","version":"0.11.1","license":"MIT","repository":"https://github.com/rapidfuzz/strsim-rs","texts":[102]},{"name":"strum","version":"0.28.0","license":"MIT","repository":"https://github.com/Peternator7/strum","texts":[84]},{"name":"strum_macros","version":"0.28.0","license":"MIT","repository":"https://github.com/Peternator7/strum","texts":[84]},{"name":"svgtypes","version":"0.16.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/svgtypes","texts":[21]},{"name":"swash","version":"0.2.10","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/swash","texts":[21]},{"name":"symphonia","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[115]},{"name":"symphonia-bundle-mp3","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[115]},{"name":"symphonia-core","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[115]},{"name":"symphonia-metadata","version":"0.6.1","license":"MPL-2.0","repository":"https://github.com/pdeljanov/Symphonia","texts":[115]},{"name":"syn","version":"2.0.119","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/syn","texts":[40]},{"name":"syn","version":"3.0.10","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/syn","texts":[40]},{"name":"synstructure","version":"0.14.0","license":"MIT","repository":"https://github.com/mystor/synstructure","texts":[76]},{"name":"sys-locale","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/1Password/sys-locale","texts":[8]},{"name":"taffy","version":"0.10.1","license":"MIT","repository":"https://github.com/DioxusLabs/taffy","texts":[90]},{"name":"target-lexicon","version":"0.13.5","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/target-lexicon","texts":[4]},{"name":"tempfile","version":"3.27.0","license":"MIT OR Apache-2.0","repository":"https://github.com/Stebalien/tempfile","texts":[21]},{"name":"termcolor","version":"1.4.1","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/termcolor","texts":[101]},{"name":"test-log","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"test-log-core","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"test-log-macros","version":"0.2.21","license":"Apache-2.0 OR MIT","repository":"https://github.com/d-e-s-o/test-log.git","texts":[27]},{"name":"texpresso","version":"2.0.2","license":"MIT","repository":"https://github.com/jansol/texpresso","texts":[53,79]},{"name":"text-size","version":"1.1.1","license":"MIT OR Apache-2.0","repository":"https://github.com/rust-analyzer/text-size","texts":[21]},{"name":"texture2ddecoder","version":"0.1.2","license":"MIT OR Apache-2.0","repository":"https://github.com/UniversalGameExtraction/texture2ddecoder","texts":[40]},{"name":"thiserror","version":"1.0.69","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror","version":"2.0.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror-impl","version":"1.0.69","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"thiserror-impl","version":"2.0.21","license":"MIT OR Apache-2.0","repository":"https://github.com/dtolnay/thiserror","texts":[40]},{"name":"tiny-skia","version":"0.11.4","license":"BSD-3-Clause","repository":"https://github.com/RazrFalcon/tiny-skia","texts":[45]},{"name":"tiny-skia","version":"0.12.0","license":"BSD-3-Clause","repository":"https://github.com/linebender/tiny-skia","texts":[45]},{"name":"tiny-skia-path","version":"0.11.4","license":"BSD-3-Clause","repository":"https://github.com/RazrFalcon/tiny-skia/tree/master/path","texts":[45]},{"name":"tiny-skia-path","version":"0.12.0","license":"BSD-3-Clause","repository":"https://github.com/linebender/tiny-skia/tree/master/path","texts":[45]},{"name":"tiny-xlib","version":"0.2.5","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/rust-windowing/tiny-xlib","texts":[40]},{"name":"tinystr","version":"0.8.5","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"tinyvec","version":"1.13.3","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/tinyvec","texts":[3]},{"name":"tokio","version":"1.54.1","license":"MIT","repository":"https://github.com/tokio-rs/tokio","texts":[91]},{"name":"toml","version":"1.2.1+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_datetime","version":"1.1.3+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_edit","version":"0.25.19+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_parser","version":"1.1.5+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"toml_writer","version":"1.2.0+spec-1.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/toml-rs/toml","texts":[9]},{"name":"tracing","version":"0.1.44","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[66]},{"name":"tracing-attributes","version":"0.1.31","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[66]},{"name":"tracing-core","version":"0.1.36","license":"MIT","repository":"https://github.com/tokio-rs/tracing","texts":[66,97]},{"name":"tree_magic_mini","version":"3.2.2","license":"MIT","repository":"https://github.com/mbrubeck/tree_magic/","texts":[80]},{"name":"ttf-parser","version":"0.25.1","license":"MIT OR Apache-2.0","repository":"https://github.com/harfbuzz/ttf-parser","texts":[21]},{"name":"typed-index-collections","version":"3.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/zheland/typed-index-collections","texts":[40]},{"name":"typed-path","version":"0.13.0","license":"MIT OR Apache-2.0","repository":"https://github.com/chipsenkbeil/typed-path","texts":[40]},{"name":"typenum","version":"1.20.1","license":"MIT OR Apache-2.0","repository":"https://github.com/paholg/typenum","texts":[13]},{"name":"uds_windows","version":"1.2.1","license":"MIT","repository":"https://github.com/haraldh/rust_uds_windows","texts":[51]},{"name":"unicase","version":"2.10.0","license":"MIT OR Apache-2.0","repository":"https://github.com/seanmonstar/unicase","texts":[21]},{"name":"unicode-bidi","version":"0.3.18","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/unicode-bidi","texts":[21]},{"name":"unicode-ident","version":"1.0.27","license":"(MIT OR Apache-2.0) AND Unicode-3.0","repository":"https://github.com/dtolnay/unicode-ident","texts":[40,117]},{"name":"unicode-linebreak","version":"0.1.5","license":"Apache-2.0","repository":"https://github.com/axelf4/unicode-linebreak","texts":[8]},{"name":"unicode-script","version":"0.5.9","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-script","texts":[29]},{"name":"unicode-segmentation","version":"1.13.3","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-segmentation","texts":[21]},{"name":"unicode-vo","version":"0.1.0","license":"MIT OR Apache-2.0","repository":"https://github.com/RazrFalcon/unicode-vo","texts":[21]},{"name":"unicode-width","version":"0.2.3","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-width","texts":[21]},{"name":"unicode-xid","version":"0.2.6","license":"MIT OR Apache-2.0","repository":"https://github.com/unicode-rs/unicode-xid","texts":[21]},{"name":"url","version":"2.5.8","license":"MIT OR Apache-2.0","repository":"https://github.com/servo/rust-url","texts":[21]},{"name":"urlencoding","version":"2.1.3","license":"MIT","repository":"https://github.com/kornelski/rust_urlencoding","texts":[114]},{"name":"usvg","version":"0.48.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/linebender/resvg","texts":[40]},{"name":"utf8_iter","version":"1.1.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/utf8_iter","texts":[3]},{"name":"utf8parse","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/alacritty/vte","texts":[40]},{"name":"utf_types","version":"1.0.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/hsivonen/utf_types","texts":[3]},{"name":"uuid","version":"1.29.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/uuid-rs/uuid","texts":[21]},{"name":"vcpkg","version":"0.2.15","license":"MIT OR Apache-2.0","repository":"https://github.com/mcgoo/vcpkg-rs","texts":[30]},{"name":"version_check","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/SergioBenitez/version_check","texts":[21]},{"name":"vtable","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"vtable-macro","version":"0.5.0","license":"MIT OR Apache-2.0","repository":"https://github.com/slint-ui/slint","texts":[40]},{"name":"wasm-encoder","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-encoder","texts":[4,21]},{"name":"wasm-metadata","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-metadata","texts":[4,21]},{"name":"wasmparser","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser","texts":[4,21]},{"name":"wasmprinter","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmprinter","texts":[4,21]},{"name":"wasmtime","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-environ","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-component-macro","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-component-util","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-core","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"","texts":[40]},{"name":"wasmtime-internal-cranelift","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-fiber","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-jit-icache-coherence","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-unwinder","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-internal-versioned-export-macros","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-internal-wit-bindgen","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wasmtime-wasi","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[4]},{"name":"wasmtime-wasi-io","version":"50.0.1","license":"Apache-2.0 WITH LLVM-exception","repository":"https://github.com/bytecodealliance/wasmtime","texts":[40]},{"name":"wayland-backend","version":"0.3.17","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-client","version":"0.31.15","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-csd-frame","version":"0.3.0","license":"MIT","repository":"https://github.com/rust-windowing/wayland-csd-frame","texts":[72]},{"name":"wayland-cursor","version":"0.31.14","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-protocols","version":"0.32.13","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58,77]},{"name":"wayland-protocols-plasma","version":"0.3.12","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58,93]},{"name":"wayland-protocols-wlr","version":"0.3.12","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-scanner","version":"0.31.11","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"wayland-sys","version":"0.31.11","license":"MIT","repository":"https://github.com/smithay/wayland-rs","texts":[58]},{"name":"webbrowser","version":"1.2.6","license":"MIT OR Apache-2.0","repository":"https://github.com/amodm/webbrowser-rs","texts":[25]},{"name":"weezl","version":"0.1.12","license":"MIT OR Apache-2.0","repository":"https://github.com/image-rs/weezl","texts":[20]},{"name":"wgpu","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-core","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-core-deps-windows-linux-android","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-hal","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-naga-bridge","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wgpu-types","version":"30.0.1","license":"MIT OR Apache-2.0","repository":"https://github.com/gfx-rs/wgpu","texts":[40]},{"name":"wide","version":"0.7.33","license":"Zlib OR Apache-2.0 OR MIT","repository":"https://github.com/Lokathor/wide","texts":[40]},{"name":"winapi-util","version":"0.1.11","license":"Unlicense OR MIT","repository":"https://github.com/BurntSushi/winapi-util","texts":[105]},{"name":"windows","version":"0.62.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-collections","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-core","version":"0.62.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-future","version":"0.3.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-implement","version":"0.60.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-interface","version":"0.59.3","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-link","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-numerics","version":"0.3.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-result","version":"0.4.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-strings","version":"0.5.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.52.0","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.59.0","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-sys","version":"0.61.2","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-targets","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows-threading","version":"0.2.1","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows_x86_64_gnu","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"windows_x86_64_msvc","version":"0.52.6","license":"MIT OR Apache-2.0","repository":"https://github.com/microsoft/windows-rs","texts":[5]},{"name":"winit","version":"0.30.13","license":"Apache-2.0","repository":"https://github.com/rust-windowing/winit","texts":[37]},{"name":"winnow","version":"1.0.5","license":"MIT","repository":"https://github.com/winnow-rs/winnow","texts":[95]},{"name":"winresource","version":"0.1.34","license":"MIT","repository":"https://github.com/BenjaminRi/winresource","texts":[75]},{"name":"wit-component","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-component","texts":[4,21]},{"name":"wit-parser","version":"0.261.0","license":"Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT","repository":"https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wit-parser","texts":[4,21]},{"name":"wl-clipboard-rs","version":"0.9.5","license":"MIT OR Apache-2.0","repository":"https://github.com/YaLTeR/wl-clipboard-rs","texts":[21]},{"name":"writeable","version":"0.6.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"x11-dl","version":"2.21.0","license":"MIT","repository":"https://github.com/AltF02/x11-rs.git","texts":[94]},{"name":"x11rb","version":"0.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/x11rb","texts":[3]},{"name":"x11rb-protocol","version":"0.13.2","license":"MIT OR Apache-2.0","repository":"https://github.com/psychon/x11rb","texts":[3]},{"name":"xcursor","version":"0.3.11","license":"MIT","repository":"https://github.com/esposm03/xcursor-rs","texts":[87]},{"name":"xkbcommon-dl","version":"0.4.2","license":"MIT","repository":"https://github.com/rust-windowing/xkbcommon-dl","texts":[108]},{"name":"xkeysym","version":"0.2.1","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/notgull/xkeysym","texts":[1]},{"name":"xml-rs","version":"0.8.29","license":"MIT","repository":"https://github.com/kornelski/xml-rs","texts":[98]},{"name":"xmlwriter","version":"0.1.0","license":"MIT","repository":"https://github.com/RazrFalcon/xmlwriter","texts":[106]},{"name":"yazi","version":"0.2.2","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/yazi","texts":[21]},{"name":"yeslogic-fontconfig-sys","version":"6.0.1","license":"MIT","repository":"https://github.com/yeslogic/fontconfig-rs","texts":[110]},{"name":"yoke","version":"0.8.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"yoke-derive","version":"0.8.4","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zbus","version":"5.19.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zbus-lockstep","version":"0.5.2","license":"MIT","repository":"https://github.com/luukvanderduim/zbus-lockstep","texts":[94]},{"name":"zbus-lockstep-macros","version":"0.5.2","license":"MIT","repository":"https://github.com/luukvanderduim/zbus-lockstep","texts":[94]},{"name":"zbus_macros","version":"5.19.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zbus_names","version":"4.3.5","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zbus_xml","version":"5.2.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zcheapstr","version":"1.2.0","license":"MIT","repository":"https://github.com/z-galaxy/zcheapstr/","texts":[74]},{"name":"zeno","version":"0.3.3","license":"Apache-2.0 OR MIT","repository":"https://github.com/dfrg/zeno","texts":[21]},{"name":"zerocopy","version":"0.8.63","license":"BSD-2-Clause OR Apache-2.0 OR MIT","repository":"https://github.com/google/zerocopy","texts":[6]},{"name":"zerocopy-derive","version":"0.8.63","license":"BSD-2-Clause OR Apache-2.0 OR MIT","repository":"https://github.com/google/zerocopy","texts":[6]},{"name":"zerofrom","version":"0.1.8","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zerofrom-derive","version":"0.1.8","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zeroize","version":"1.9.1","license":"Apache-2.0 OR MIT","repository":"https://github.com/RustCrypto/utils","texts":[3]},{"name":"zeroize_derive","version":"1.5.0","license":"Apache-2.0 OR MIT","repository":"https://github.com/RustCrypto/utils","texts":[3]},{"name":"zerotrie","version":"0.2.5","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zerovec","version":"0.11.9","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zerovec-derive","version":"0.11.7","license":"Unicode-3.0","repository":"https://github.com/unicode-org/icu4x","texts":[118]},{"name":"zip","version":"9.5.0","license":"MIT","repository":"https://github.com/zip-rs/zip2","texts":[97]},{"name":"zmij","version":"1.0.23","license":"MIT","repository":"https://github.com/dtolnay/zmij","texts":[94]},{"name":"zune-core","version":"0.5.3","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/etemesi254/zune-image","texts":[8]},{"name":"zune-jpeg","version":"0.5.15","license":"MIT OR Apache-2.0 OR Zlib","repository":"https://github.com/etemesi254/zune-image/tree/dev/crates/zune-jpeg","texts":[8]},{"name":"zvariant","version":"5.15.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zvariant_derive","version":"5.15.1","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[73]},{"name":"zvariant_utils","version":"4.2.0","license":"MIT","repository":"https://github.com/z-galaxy/zbus/","texts":[94]}],"licenses":[{"id":"0BSD","name":"BSD Zero Clause License","text":"Copyright (C) Jonas Schievink \n\nPermission to use, copy, modify, and/or distribute this software for\nany purpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN\nAN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT\nOF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2022-2023 John Nunley\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2023 Kirill Chibisov\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\n--- LLVM Exceptions to the Apache 2.0 License ----\n\nAs an exception, if, as a result of your compiling your source code, portions\nof this Software are embedded into an Object form of such source code, you\nmay redistribute such embedded portions in such Object form without complying\nwith the conditions of Sections 4(a), 4(b) and 4(d) of the License.\n\nIn addition, if you combine or link compiled forms of this Software with\nsoftware that is licensed under the GPLv2 (\"Combined Software\") and if a\ncourt of competent jurisdiction determines that the patent provision (Section\n3), the indemnity provision (Section 9) or other Section of the License\nconflicts with the conditions of the GPLv2, you may retroactively and\nprospectively choose to deem waived or otherwise exclude such Section(s) of\nthe License, but only in their entirety and only with respect to the Combined\nSoftware.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (c) Microsoft Corporation.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2023 The Fuchsia Authors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2024 Radzivon Bartoshyk\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright Individual contributors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n Copyright 2020 Yoshua Wuyts\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright (c) 2016 Alex Crichton\nCopyright (c) 2017 The Tokio Authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2014 Paho Lurie-Gregg\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2018 The pin-utils authors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2019 The CryptoCorrosion Contributors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2019- Jake Goulding\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2020 Andrew Straw\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2021 Traverse Research B.V.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [2015] [Dan Burkert]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright (c) 2015-2022 Amod Malviya\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/LICENSE-2.0\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright 2021 The Unicode-rs Developers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":" Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright 2019 Fontations Developers\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\n\nCopyright 2017-2023 Maik Klein, Maja Kądziołka\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\n\nCopyright [2017] [Maik Klein]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n\nVersion 2.0, January 2004\n\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of this License; and\nYou must cause any modified files to carry prominent notices stating that You changed the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. \n\nYou may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nCopyright 2016 Maik Klein\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright 2022 Kirill Chibisov\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License."},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"},{"id":"Apache-2.0","name":"Apache License 2.0","text":"Rust-chrono is dual-licensed under The MIT License [1] and\nApache 2.0 License [2]. Copyright (c) 2014--2026, Kang Seonghoon and\ncontributors.\n\nNota Bene: This is same as the Rust Project's own license.\n\n\n[1]: , which is reproduced below:\n\n~~~~\nThe MIT License (MIT)\n\nCopyright (c) 2014, Kang Seonghoon.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n~~~~\n\n\n[2]: , which is reproduced below:\n\n~~~~\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n~~~~\n\n"},{"id":"BSD-2-Clause","name":"BSD 2-Clause \"Simplified\" License","text":"Copyright (c) 2015 David Roundy \nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the\n distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nHOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"\nCopyright 2026 restsend.com\n\nCopyright 2001-2023 Xiph.Org, Skype Limited, Octasic,\n Jean-Marc Valin, Timothy B. Terriberry,\n CSIRO, Gregory Maxwell, Mark Borgerding,\n Erik de Castro Lopo, Mozilla, Amazon\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n- Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n\n- Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in the\ndocumentation and/or other materials provided with the distribution.\n\n- Neither the name of Internet Society, IETF or IETF Trust, nor the\nnames of specific contributors, may be used to endorse or promote\nproducts derived from this software without specific prior written\npermission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER\nOR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nOpus is subject to the royalty-free patent licenses which are\nspecified at:\n\nXiph.Org Foundation:\nhttps://datatracker.ietf.org/ipr/1524/\n\nMicrosoft Corporation:\nhttps://datatracker.ietf.org/ipr/1914/\n\nBroadcom Corporation:\nhttps://datatracker.ietf.org/ipr/1526/"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"// Copyright © WHATWG (Apple, Google, Mozilla, Microsoft).\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// 1. Redistributions of source code must retain the above copyright notice, this\n// list of conditions and the following disclaimer.\n//\n// 2. Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// 3. Neither the name of the copyright holder nor the names of its\n// contributors may be used to endorse or promote products derived from\n// this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n/// The PUA code points special-cased in the GB18030 encoder.\npub(crate) static GB18030_2022_OVERRIDE_PUA: [u16; 18] = [\n 0xE78D, 0xE78E, 0xE78F, 0xE790, 0xE791, 0xE792, 0xE793, 0xE794, 0xE795, 0xE796, 0xE81E, 0xE826,\n 0xE82B, 0xE82C, 0xE832, 0xE843, 0xE854, 0xE864,\n];\n\n/// The bytes corresponding to the PUA code points special-cased in the GB18030 encoder.\npub(crate) static GB18030_2022_OVERRIDE_BYTES: [[u8; 2]; 18] = [\n [0xA6, 0xD9],\n [0xA6, 0xDA],\n [0xA6, 0xDB],\n [0xA6, 0xDC],\n [0xA6, 0xDD],\n [0xA6, 0xDE],\n [0xA6, 0xDF],\n [0xA6, 0xEC],\n [0xA6, 0xED],\n [0xA6, 0xF3],\n [0xFE, 0x59],\n [0xFE, 0x61],\n [0xFE, 0x66],\n [0xFE, 0x67],\n [0xFE, 0x6D],\n [0xFE, 0x7E],\n [0xFE, 0x90],\n [0xFE, 0xA0],\n];\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"Copyright (c) 2011 Google Inc. All rights reserved.\nCopyright (c) 2020 Yevhenii Reizner All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and/or other materials provided with the\n distribution.\n\n * Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived\n from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSD-3-Clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","text":"Copyright © WHATWG (Apple, Google, Mozilla, Microsoft).\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"},{"id":"BSL-1.0","name":"Boost Software License 1.0","text":"Boost Software License - Version 1.0 - August 17th, 2003\n\nPermission is hereby granted, free of charge, to any person or organization\nobtaining a copy of the software and accompanying documentation covered by\nthis license (the \"Software\") to use, reproduce, display, distribute,\nexecute, and transmit the Software, and to prepare derivative works of the\nSoftware, and to permit third-parties to whom the Software is furnished to\ndo so, all subject to the following:\n\nThe copyright notices in the Software and this entire statement, including\nthe above license grant, this restriction and the following disclaimer,\nmust be included in all copies of the Software, in whole or in part, and\nall derivative works of the Software, unless such copies or derivative\nworks are solely in the form of machine-executable object code generated by\na source language processor.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT\nSHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE\nFOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"BSL-1.0","name":"Boost Software License 1.0","text":"Boost Software License - Version 1.0 - August 17th, 2003\n\nPermission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the \"Software\") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:\n\nThe copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"GPL-3.0-only","name":"GNU General Public License v3.0 only","text":"GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright © 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\n“This License” refers to version 3 of the GNU General Public License.\n\n“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.\n\nTo “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.\n\nA “covered work” means either the unmodified Program or a work based on the Program.\n\nTo “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.\n\nA “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.\n\nA contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .\n"},{"id":"ISC","name":"ISC License","text":"Copyright © 2015, Simonas Kazlauskas\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without\nfee is hereby granted, provided that the above copyright notice and this permission notice appear\nin all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS\nSOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE\nAUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,\nNEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":" MIT License\n\n Copyright (c) Microsoft Corporation. All rights reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n"},{"id":"MIT","name":"MIT License","text":"# 3rd Party Notices\n\nThe `cfg_aliases!` macro uses a lot of the code from [`tectonic_cfg_support::target_cfg!`] macro which is under the following license:\n\n[`tectonic_cfg_support::target_cfg!`]: https://github.com/tectonic-typesetting/tectonic/blob/f2439b936470ad27bdf92882064bc4702ee01899/cfg_support/src/lib.rs#L166\n\n tectonic_cfg_support is licensed under the MIT License.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the “Software”), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n---\n"},{"id":"MIT","name":"MIT License","text":"// Copyright (c) 2006 Simon Brown \n// Copyright (c) 2018-2021 Jan Solanti \n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// \"Software\"), to\tdeal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmod cluster;\nmod range;\nmod single;\nmod single_lut;\n\npub use self::cluster::ClusterFit;\npub use self::range::RangeFit;\npub use self::single::SingleColourFit;\n\npub trait ColourFit<'a> {\n fn compress(&'a mut self, block: &mut [u8]);\n}\n\npub trait ColourFitImpl<'a> {\n fn is_bc1(&self) -> bool;\n fn is_transparent(&self) -> bool;\n fn compress3(&mut self);\n fn compress4(&mut self);\n fn best_compressed(&'a self) -> &'a [u8];\n}\n\nimpl<'a, T> ColourFit<'a> for T\nwhere\n T: ColourFitImpl<'a>,\n{\n fn compress(&'a mut self, block: &mut [u8]) {\n if self.is_bc1() {\n self.compress3();\n if !self.is_transparent() {\n self.compress4();\n }\n } else {\n self.compress4();\n }\n\n block.copy_from_slice(self.best_compressed());\n }\n}\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014 Carl Lerche and other MIO contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014 The rusqlite developers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014-2019 Geoffroy Couprie\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2014-2020 Optimal Computing (NZ) Ltd\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\nIN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Elinor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Jonathan Reem\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2015 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2017 Gilad Naaman\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2018 Victor Berger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Tokio Contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2019 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2020 Olivier Goffart \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2020 Élie ROUDNINSKI (marmeladema) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2022 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2024 Zeeshan Ali Khan & zbus contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright (c) 2026 Zeeshan Ali Khan & zcheapstr contributors\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright 2016 Max Resch\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright 2016 Nika Layzell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Copyright © 2008-2013 Kristian Høgsberg\nCopyright © 2010-2013 Intel Corporation\nCopyright © 2013 Rafael Antognolli\nCopyright © 2013 Jasper St. Pierre\nCopyright © 2014 Jonas Ådahl\nCopyright © 2014 Jason Ekstrand\nCopyright © 2014-2015 Collabora, Ltd.\nCopyright © 2015 Red Hat Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\n---\n\nThe above is the version of the MIT \"Expat\" License used by X.org:\n\n http://cgit.freedesktop.org/xorg/xserver/tree/COPYING\n"},{"id":"MIT","name":"MIT License","text":"Copyright © 2022 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2006 Simon Brown \nCopyright (c) 2018-2021 Jan Solanti \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2017 Aaron Hancock\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2017 Maiddog\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2018 diwic\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2019 Kornel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2019 Peter Glotfelty\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Bilal Elmoussaoui\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Katharos Technology\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2020 Samuele Esposito\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2022 Bartłomiej Maryńczak\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) 2025 rutrum\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO\nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\nUSE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) Tokio Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License\n\nCopyright (c) [2021] [Marvin Countryman]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"MIT License Copyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS\nOR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF\nOR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Permission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License\n\nCopyright 2015 Google Inc. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014 Mathijs van de Nes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014 Vladimir Matveev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014, Kang Seonghoon.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2014-2022 Steven Fackler, Yuki Okushi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Danny Guo\nCopyright (c) 2016 Titus Wormer \nCopyright (c) 2018 Akash Kurdekar\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 Jelte Fennema\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 PistonDevelopers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2017 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2019 Reizner Evgeniy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2020 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2023 Kirill Chibisov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) HarfBuzz developers\nCopyright (c) 2020 Yevhenii Reizner\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright 2019 YesLogic Pty. Ltd.\nCopyright 2016 Manuel Reinhardt\nCopyright 2014 Austin Bonander\nCopyright 2013 The Servo Project Developers.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2015 Bartłomiej Kamiński\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."},{"id":"MIT","name":"MIT License","text":"The MIT License (MIT)\n\nCopyright (c) 2016 Johann Tuffe\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MIT","name":"MIT License","text":"© 2016 Bertram Truong\n© 2021 Kornel Lesiński\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"},{"id":"MPL-2.0","name":"Mozilla Public License 2.0","text":"Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in \n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0."},{"id":"MPL-2.0","name":"Mozilla Public License 2.0","text":"Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in \n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0.\n"},{"id":"Unicode-3.0","name":"Unicode License v3","text":"UNICODE LICENSE V3\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright © 1991-2023 Unicode, Inc.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY\nDOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR\nSOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT\nDOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of data files and any associated documentation (the \"Data Files\") or\nsoftware and any associated documentation (the \"Software\") to deal in the\nData Files or Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or sell\ncopies of the Data Files or Software, and to permit persons to whom the\nData Files or Software are furnished to do so, provided that either (a)\nthis copyright and permission notice appear with all copies of the Data\nFiles or Software, or (b) this copyright and permission notice appear in\nassociated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\nKIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\nTHIRD PARTY RIGHTS.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE\nBE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,\nOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\nARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA\nFILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall\nnot be used in advertising or otherwise to promote the sale, use or other\ndealings in these Data Files or Software without prior written\nauthorization of the copyright holder.\n"},{"id":"Unicode-3.0","name":"Unicode License v3","text":"UNICODE LICENSE V3\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright © 2020-2024 Unicode, Inc.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY\nDOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR\nSOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT\nDOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of data files and any associated documentation (the \"Data Files\") or\nsoftware and any associated documentation (the \"Software\") to deal in the\nData Files or Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, and/or sell\ncopies of the Data Files or Software, and to permit persons to whom the\nData Files or Software are furnished to do so, provided that either (a)\nthis copyright and permission notice appear with all copies of the Data\nFiles or Software, or (b) this copyright and permission notice appear in\nassociated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY\nKIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\nTHIRD PARTY RIGHTS.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE\nBE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,\nOR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\nWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\nARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA\nFILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall\nnot be used in advertising or otherwise to promote the sale, use or other\ndealings in these Data Files or Software without prior written\nauthorization of the copyright holder.\n\nSPDX-License-Identifier: Unicode-3.0\n\n—\n\nPortions of ICU4X may have been adapted from ICU4C and/or ICU4J.\nICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others.\n"},{"id":"Zlib","name":"zlib License","text":"Copyright (c) 2021 Orson Peters \n\nThis software is provided 'as-is', without any express or implied warranty. In\nno event will the authors be held liable for any damages arising from the use of\nthis software.\n\nPermission is granted to anyone to use this software for any purpose, including\ncommercial applications, and to alter it and redistribute it freely, subject to\nthe following restrictions:\n\n 1. The origin of this software must not be misrepresented; you must not claim\n that you wrote the original software. If you use this software in a product,\n an acknowledgment in the product documentation would be appreciated but is\n not required.\n\n 2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n\n 3. This notice may not be removed or altered from any source distribution.\n"},{"id":"Zlib","name":"zlib License","text":"Copyright (c) 2024 Orson Peters\n\nThis software is provided 'as-is', without any express or implied warranty. In\nno event will the authors be held liable for any damages arising from the use of\nthis software.\n\nPermission is granted to anyone to use this software for any purpose, including\ncommercial applications, and to alter it and redistribute it freely, subject to\nthe following restrictions:\n\n1. The origin of this software must not be misrepresented; you must not claim\n that you wrote the original software. If you use this software in a product,\n an acknowledgment in the product documentation would be appreciated but is\n not required.\n\n2. Altered source versions must be plainly marked as such, and must not be\n misrepresented as being the original software.\n\n3. This notice may not be removed or altered from any source distribution."}]} diff --git a/crates/openrage-cli/src/cmd/archive.rs b/crates/openrage-cli/src/cmd/archive.rs index 7848572..38e712c 100644 --- a/crates/openrage-cli/src/cmd/archive.rs +++ b/crates/openrage-cli/src/cmd/archive.rs @@ -163,7 +163,7 @@ pub(crate) fn cmd_ls(game_dir: &Path, path: &str, recursive: bool, keys: Option< } Node::Rpf9File(rpf, i) => { let entries = rpf.entries()?; - print_rpf9_entry(&mut out, &entries[i], &rpf.entry_name(&entries[i])); + print_rpf9_entry(&mut out, &rpf, &entries[i], &rpf.entry_name(&entries[i])); } Node::Rpf9Dir(rpf, dir) => { let entries = rpf.entries()?; @@ -172,8 +172,9 @@ pub(crate) fn cmd_ls(game_dir: &Path, path: &str, recursive: bool, keys: Option< let prefix = if dir.is_empty() { String::new() } else { format!("{dir}/") }; for e in entries.iter() { let name = rpf.entry_name(e); - if let Some(rel) = name.strip_prefix(&prefix) { - print_rpf9_entry(&mut out, e, rel); + let below = name.get(..prefix.len()).is_some_and(|s| s.eq_ignore_ascii_case(&prefix)); + if let Some(rel) = name.get(prefix.len()..).filter(|_| below) { + print_rpf9_entry(&mut out, &rpf, e, rel); } } } else { @@ -183,7 +184,7 @@ pub(crate) fn cmd_ls(game_dir: &Path, path: &str, recursive: bool, keys: Option< } for i in files { let name = rpf.entry_name(&entries[i]); - print_rpf9_entry(&mut out, &entries[i], name.rsplit('/').next().unwrap_or(&name)); + print_rpf9_entry(&mut out, &rpf, &entries[i], name.rsplit('/').next().unwrap_or(&name)); } } } @@ -264,24 +265,31 @@ pub(crate) fn cmd_info(game_dir: &Path, path: &str, keys: Option>) outln!("Size: {} ({} bytes)", human(rpf.size()), rpf.size()); outln!("Index slots: {} (declared in header; distinct from recovered streams)", rpf.header().entry_count); outln!("TOC tag: {:#04x} (native transform selector)", rpf.header().toc_transform); - outln!("Table: encrypted, not read (file names and folders are unknown)"); + if rpf.is_native() { + outln!("Table: read with the game's executable"); + } else { + outln!("Table: encrypted, not read (file names and folders are unknown)"); + } outln!("Data: from offset {:#x}, {}", rpf.header().data_offset, human(rpf.data_len())); // The archive itself is described without reading all of it. - let known = rpf.loaded().or_else(|| openrage_app::rpf9::load_index(rpf.path()).map(Arc::new)); + let known = openrage_app::rpf9::known_entries(&rpf); let entries = if dir.is_empty() { known } else { Some(rpf.entries()?) }; match entries { Some(entries) => { let c = openrage_app::rpf9::coverage(&rpf, &entries); outln!( - "Recovered: {} files, {} in the archive, {} unpacked", + "{} {} files, {} in the archive, {} unpacked", + if rpf.is_native() { "Contents: " } else { "Recovered:" }, c.files, human(c.stored), human(c.unpacked) ); - outln!( - "Not read: {} (padding, and data that is neither zlib, Bink 2 nor an audio container)", - human(c.unread) - ); + if !rpf.is_native() { + outln!( + "Not read: {} (padding, and data that is neither zlib, Bink 2 nor an audio container)", + human(c.unread) + ); + } } None => outln!("Recovered: not indexed yet; `openrage ls` on the archive reads all of it once"), } @@ -293,13 +301,23 @@ pub(crate) fn cmd_info(game_dir: &Path, path: &str, keys: Option>) let entries = rpf.entries()?; let e = &entries[i]; outln!("Path: {}/{}", rpf.display_name(), rpf.entry_name(e)); - outln!("Kind: recovered file (its name is its offset; the real name is unknown)"); + if rpf.is_native() { + outln!("Kind: {}", if rpf.resource_parts(e).is_some() { "resource" } else { "file" }); + } else { + outln!("Kind: recovered file (its name is its offset; the real name is unknown)"); + } outln!("Offset: {:#x}", e.offset); outln!("Size: {} ({} on disk)", human(e.size), human(e.stored)); match e.kind { rage_rpf::rpf9::Kind::Zlib => outln!("Stored as: {} zlib stream(s)", e.streams), rage_rpf::rpf9::Kind::Bink2 => outln!("Stored as: Bink 2 video"), rage_rpf::rpf9::Kind::Awc => outln!("Stored as: audio container"), + rage_rpf::rpf9::Kind::Native { slot } => { + outln!("Slot: {slot}"); + if let Some((system, graphics)) = rpf.resource_parts(e) { + outln!("Parts: {} system, {} graphics", human(system), human(graphics)); + } + } } } Node::Rpf8File(rpf, i) => { @@ -382,9 +400,17 @@ pub(crate) fn report_rpf9_extract(rpf: &rage_rpf::Rpf9, dir: &str, file: Option< extraction_result(s.failures.len()) } -/// One recovered file of a GTA VI archive. -pub(crate) fn print_rpf9_entry(out: &mut Rows, e: &rage_rpf::rpf9::Entry, name: &str) { - ls_row(out, "file", Some(e.size), "", name, false); +/// One file of a GTA VI archive. +pub(crate) fn print_rpf9_entry(out: &mut Rows, rpf: &rage_rpf::Rpf9, e: &rage_rpf::rpf9::Entry, name: &str) { + let archive = rpf.is_archive(e); + let kind = if archive { + "rpf" + } else if rpf.resource_parts(e).is_some() { + "resource" + } else { + "file" + }; + ls_row(out, kind, Some(e.size), "", name, archive); } /// Extraction goes on past single failures, but the command still fails then, diff --git a/crates/openrage-cli/src/cmd/verify.rs b/crates/openrage-cli/src/cmd/verify.rs index e583d81..ab2cb87 100644 --- a/crates/openrage-cli/src/cmd/verify.rs +++ b/crates/openrage-cli/src/cmd/verify.rs @@ -1471,8 +1471,8 @@ pub(crate) fn cmd_verify(game_dir: &Path, within: &str, keys: Option Result<()> { let started = Instant::now(); let mut total = VerifyStats::default(); @@ -1501,7 +1501,7 @@ fn verify_rpf9(node: Node, within: &str) -> Result<()> { outln!("FAIL {error}"); } outln!( - "{} RPF9 archives, {} recovered files checked, {} decoded, {} errors ({:.1}s)", + "{} RPF9 archives, {} files checked, {} decoded, {} errors ({:.1}s)", total.archives, total.files, human(total.bytes), @@ -1509,7 +1509,7 @@ fn verify_rpf9(node: Node, within: &str) -> Result<()> { started.elapsed().as_secs_f32() ); outln!( - "Recovery verification only: zlib decoding, entry bounds and unpacked sizes. Original names, encrypted table of contents and undiscovered data are not verified; raw audio/video checks do not validate their media contents." + "For archives whose own table is not read, this checks zlib decoding, entry bounds and unpacked sizes. Original names, encrypted table of contents and undiscovered data are not verified; raw audio/video checks do not validate their media contents." ); if !total.errors.is_empty() { bail!("verification found {} errors", total.errors.len()); @@ -1522,8 +1522,9 @@ fn verify_rpf9_archive(rpf: &rage_rpf::Rpf9, dir: &str, file: Option, tot total.archives += 1; let coverage = openrage_app::rpf9::coverage(rpf, &entries); outln!( - "{}: recovery coverage: {} files, {} stored of {} data, {} unread (includes padding)", + "{}: {}: {} files, {} stored of {} data, {} unread (includes padding)", rpf.display_name(), + if rpf.is_native() { "archive table" } else { "recovery coverage" }, coverage.files, human(coverage.stored), human(rpf.data_len()), diff --git a/crates/openrage-gui/src/browser.rs b/crates/openrage-gui/src/browser.rs index 3da1f78..a53cdfb 100644 --- a/crates/openrage-gui/src/browser.rs +++ b/crates/openrage-gui/src/browser.rs @@ -82,7 +82,7 @@ pub enum Location { Archive(Arc, EntryId), /// A folder inside a Red Dead Redemption 2 archive (read-only). Rpf8(Arc, String), - /// A folder of the recovery view of a GTA VI archive (read-only). + /// A folder of a GTA VI archive (read-only). Rpf9(Arc, String), /// A folder inside a GTA IV archive (`.img`, RPF2/RPF3; read-only). Gta4(Arc, rage_rpf::Gta4EntryId), @@ -667,7 +667,7 @@ fn list_rpf8(vpath: String, rpf: Arc, dir: String, origin: Origi Listing { vpath, origin, location: Location::Rpf8(rpf, dir), items } } -/// A folder of the recovery view of a GTA VI archive: files named by their +/// A folder of a GTA VI archive. In the recovery view files are named by their /// offset, in folders by what they look like. fn list_rpf9(vpath: String, rpf: Arc, dir: String, origin: Origin) -> Result { let entries = rpf.entries()?; @@ -690,10 +690,16 @@ fn list_rpf9(vpath: String, rpf: Arc, dir: String, origin: Origi rage_rpf::rpf9::Kind::Bink2 => "video".to_owned(), rage_rpf::rpf9::Kind::Awc => "sounds".to_owned(), rage_rpf::rpf9::Kind::Zlib if e.streams > 1 => format!("{} chunks", e.streams), - rage_rpf::rpf9::Kind::Zlib => String::new(), + _ => String::new(), }; // The entries known to be models open in the viewer. - let kind = if openrage_app::models::is_model(&full) { ItemKind::Resource } else { ItemKind::File }; + let kind = if rpf.is_archive(e) { + ItemKind::Archive + } else if openrage_app::models::is_model(&full) || rpf.resource_parts(e).is_some() { + ItemKind::Resource + } else { + ItemKind::File + }; items.push(item(full.rsplit('/').next().unwrap_or(&full).to_owned(), kind, e.size, info)); } Ok(Listing { vpath, origin, location: Location::Rpf9(rpf, dir), items }) diff --git a/crates/openrage-gui/src/navigate.rs b/crates/openrage-gui/src/navigate.rs index eb4b73b..87f846d 100644 --- a/crates/openrage-gui/src/navigate.rs +++ b/crates/openrage-gui/src/navigate.rs @@ -622,7 +622,10 @@ pub(crate) fn show_folder_info(ui: &AppWindow) { } Location::Rpf9(rpf, _) => { let mut meta = vec![ - kv("Type", "Recovered from a GTA VI archive"), + kv( + "Type", + if rpf.is_native() { "Inside a GTA VI archive" } else { "Recovered from a GTA VI archive" }, + ), kv("Archive", rpf.display_name().rsplit('/').next().unwrap_or_default()), ]; meta.extend(crate::preview::rpf9_archive_info(rpf)); diff --git a/crates/openrage-gui/src/preview.rs b/crates/openrage-gui/src/preview.rs index 14a066f..974c971 100644 --- a/crates/openrage-gui/src/preview.rs +++ b/crates/openrage-gui/src/preview.rs @@ -812,11 +812,18 @@ pub(crate) fn rpf9_archive_info(rpf: &rage_rpf::Rpf9) -> Meta { kv("Declared index slots", grouped(rpf.header().entry_count as usize)), kv("TOC transform tag", format!("{:#04x}", rpf.header().toc_transform)), ]; - match rpf.loaded().or_else(|| openrage_app::rpf9::load_index(rpf.path()).map(Arc::new)) { + match openrage_app::rpf9::known_entries(rpf) { Some(entries) => { let c = openrage_app::rpf9::coverage(rpf, &entries); - meta.push(kv("Recovered files", grouped(c.files as usize))); + meta.push(kv(if rpf.is_native() { "Files" } else { "Recovered files" }, grouped(c.files as usize))); meta.push(kv("Unpacked", human_size(c.unpacked))); + if rpf.is_native() { + meta.push(note( + "Read with the game's executable. The table holds only hashes of names: files whose name is \ + not known are under entries/.", + )); + return meta; + } meta.push(kv("Not read", human_size(c.unread))); } None => meta.push(note( @@ -846,10 +853,15 @@ pub(crate) fn rpf9_preview(rpf: &rage_rpf::Rpf9, i: usize) -> (Meta, String) { rage_rpf::rpf9::Kind::Awc => "audio container".to_owned(), rage_rpf::rpf9::Kind::Zlib if e.streams > 1 => format!("{} zlib streams", e.streams), rage_rpf::rpf9::Kind::Zlib => "zlib stream".to_owned(), + rage_rpf::rpf9::Kind::Native { slot } => format!("slot {slot}"), }, ), ]; - if e.kind != rage_rpf::rpf9::Kind::Zlib { + if let Some((system, graphics)) = rpf.resource_parts(e) { + meta.push(kv("System part", openrage_app::extract::human_size(system))); + meta.push(kv("Graphics part", openrage_app::extract::human_size(graphics))); + } + if matches!(e.kind, rage_rpf::rpf9::Kind::Bink2 | rage_rpf::rpf9::Kind::Awc) || rpf.is_archive(e) { return (meta, String::new()); } // The start is enough for a look; large files are not unpacked whole. diff --git a/crates/rage-rpf/src/rpf9.rs b/crates/rage-rpf/src/rpf9.rs index bd45c4e..b016ebb 100644 --- a/crates/rage-rpf/src/rpf9.rs +++ b/crates/rage-rpf/src/rpf9.rs @@ -1,12 +1,18 @@ -//! RPF9 archives (GTA VI), read without their table of contents. +//! RPF9 archives (GTA VI). +//! +//! With the game's executable (`game_scarlett_master.exe`, the supported +//! build) in the archive's folder or one above, the archive's own table of +//! contents is read: all its files, their folders and — as far as they can be +//! matched to the hashes in the table — names, and the archives inside it +//! ([`Rpf9::open_child`]). Nothing from the executable is stored. +//! +//! Without it, an archive is read without its table of contents, as below. //! //! Layout (little-endian): //! - 64-byte header: magic `RPF9`, then the offset where the file data //! starts, a declared entry count at `0x24` and transform tag at `0x2e`. -//! The protected index itself is not decoded. //! - The table of contents (names, sizes, offsets) up to the data offset. It -//! is encrypted with keys that only the game's executable has; OpenRAGE -//! does not read it. +//! is encrypted with keys that only the game's executable has. //! - The file data. Most of it is not encrypted: zlib streams laid end to //! end, each starting on a 16-byte boundary, Bink 2 videos and audio //! containers (`ADAT`). @@ -33,6 +39,8 @@ use std::sync::{Arc, Mutex, OnceLock, RwLock}; use rayon::prelude::*; use crate::RpfError; +use crate::rpf9_index::{NativeEntry, Storage}; +use crate::rpf9_native::{self, NativeArchive}; const MAGIC: u32 = 0x5250_4639; /// Length of the header in front of the table of contents. @@ -86,6 +94,8 @@ pub enum Kind { Bink2, /// An audio container (`ADAT`), stored as is. Awc, + /// A file of the archive's own table, at this slot. + Native { slot: u32 }, } /// One recovered file. @@ -106,6 +116,11 @@ pub struct Entry { } impl Entry { + fn native(e: &NativeEntry) -> Entry { + let kind = Kind::Native { slot: e.slot as u32 }; + Entry { offset: e.offset, stored: e.stored, size: e.size, streams: 1, kind, head: [0; 16], head_len: 0 } + } + /// The first unpacked bytes. pub fn head(&self) -> &[u8] { &self.head[..usize::from(self.head_len).min(16)] @@ -129,7 +144,7 @@ impl Entry { match self.kind { Kind::Bink2 => return "bk2".into(), Kind::Awc => return "awc".into(), - Kind::Zlib => {} + Kind::Zlib | Kind::Native { .. } => {} } if self.is_resource() { return "res".into(); @@ -274,6 +289,10 @@ pub struct Rpf9 { display: String, header: Header, size: u64, + /// Where the archive starts in the file: a nested one, inside its parent. + base: u64, + /// The archive's own table, read on first use. + native: OnceLock>, /// Filled on first use: finding the entries means reading the archive. entries: Mutex>>>, /// Filled on first use. @@ -307,7 +326,92 @@ impl Rpf9 { if u64::from(header.data_offset) < HEADER_LEN as u64 || u64::from(header.data_offset) > size { return Err(RpfError::CorruptToc { archive: display, reason: "the data starts outside the file".into() }); } - Ok(Rpf9 { path: path.to_path_buf(), display, header, size, entries: Mutex::new(None), names: Mutex::new(None) }) + Ok(Rpf9 { + path: path.to_path_buf(), + display, + header, + size, + base: 0, + native: OnceLock::new(), + entries: Mutex::new(None), + names: Mutex::new(None), + }) + } + + /// The archive's own table; `None` without the game's executable (or + /// with another build's) and for damaged tables. + fn native(&self) -> Option<&NativeArchive> { + self.native + .get_or_init(|| { + let materials = rpf9_native::materials(&self.path)?; + NativeArchive::open(&self.path, self.base, self.size, materials).ok() + }) + .as_ref() + } + + /// Whether the archive's own table is read, rather than a recovery view + /// made by scanning. Decides it on first use, without a scan. + pub fn is_native(&self) -> bool { + self.native().is_some() + } + + /// Whether the archive lies inside another one. + pub fn is_nested(&self) -> bool { + self.base != 0 + } + + /// The record of an entry in the archive's own table. + fn native_entry(&self, entry: &Entry) -> Option<(&NativeArchive, &NativeEntry)> { + let Kind::Native { slot } = entry.kind else { return None }; + let native = self.native()?; + Some((native, native.catalog.entries.get(slot as usize)?)) + } + + /// Whether an entry is an archive that [`Rpf9::open_child`] opens. + pub fn is_archive(&self, entry: &Entry) -> bool { + self.native_entry(entry).is_some_and(|(_, e)| e.type_id == 0) + } + + /// The sizes of a resource's system and graphics parts, which follow + /// each other in its data. `None` for other files. + pub fn resource_parts(&self, entry: &Entry) -> Option<(u64, u64)> { + match self.native_entry(entry)?.1.storage { + Storage::Resource { system_flags, graphics_flags } => { + Some((u64::from(system_flags & 0x7fff_fff0), u64::from(graphics_flags & 0xffff_fff0))) + } + _ => None, + } + } + + /// Opens an archive inside this one. + pub fn open_child(&self, entry: &Entry) -> Result { + let display = format!("{}/{}", self.display, self.entry_name(entry)); + // Archives are stored as they are, so they can be read in place. + if !self.is_archive(entry) || entry.stored != entry.size { + return Err(RpfError::NotAnArchive(display)); + } + let base = self.base + entry.offset; + let mut file = File::open(&self.path)?; + file.seek(SeekFrom::Start(base))?; + let mut head = [0u8; HEADER_LEN]; + file.read_exact(&mut head)?; + let Some(header) = Header::parse(&head) else { + return Err(RpfError::BadMagic(display, crate::word(&head, 0))); + }; + let child = Rpf9 { + path: self.path.clone(), + display, + header, + size: entry.size, + base, + native: OnceLock::new(), + entries: Mutex::new(None), + names: Mutex::new(None), + }; + if child.native().is_none() { + return Err(RpfError::CorruptToc { archive: child.display, reason: "its table cannot be read".into() }); + } + Ok(child) } pub fn header(&self) -> Header { @@ -345,7 +449,8 @@ impl Rpf9 { } } - /// The entries, sorted by offset. The first call loads them with the + /// The entries: in the order of the archive's own table if that is read, + /// else sorted by offset. Then the first call loads them with the /// registered [`set_indexer`] loader, or scans the archive, which reads /// all of it. A failure is not remembered: the next call tries again. pub fn entries(&self) -> Result>, RpfError> { @@ -354,9 +459,10 @@ impl Rpf9 { return Ok(Arc::clone(entries)); } let load = indexer().read().ok().and_then(|l| l.clone()); - let entries = Arc::new(match load { - Some(load) => load(self)?, - None => self.scan(&AtomicBool::new(false), &|_, _| {})?, + let entries = Arc::new(match (self.native(), load) { + (Some(native), _) => native.catalog.entries.iter().map(Entry::native).collect(), + (None, Some(load)) => load(self)?, + (None, None) => self.scan(&AtomicBool::new(false), &|_, _| {})?, }); *slot = Some(Arc::clone(&entries)); Ok(entries) @@ -392,7 +498,8 @@ impl Rpf9 { if let Some(names) = slot.as_ref() { return Arc::clone(names); } - let load = namer().read().ok().and_then(|l| l.clone()); + // The names of models in the recovery view; the table has its own. + let load = if self.is_native() { None } else { namer().read().ok().and_then(|l| l.clone()) }; let names = Arc::new(load.and_then(|load| load(self)).unwrap_or_default()); *slot = Some(Arc::clone(&names)); names @@ -414,6 +521,9 @@ impl Rpf9 { } fn entry_name_with(&self, names: &Names, entry: &Entry) -> String { + if let Some((native, e)) = self.native_entry(entry) { + return native.paths[e.slot].clone(); + } if let Some(name) = names.get(entry.offset) { return format!("{NAMED}/{}/{name}", Names::group(name)); } @@ -430,6 +540,10 @@ impl Rpf9 { /// The entry with this name (case-insensitive). pub fn find(&self, entries: &[Entry], path: &str) -> Option { + if let Some(native) = self.native() { + // Entries are in the order of the slots. + return native.find(path).filter(|slot| *slot < entries.len()); + } let names = self.names(); let file = path.rsplit('/').next()?; let by_offset = file.split('.').next().and_then(|stem| u64::from_str_radix(stem, 16).ok()); @@ -478,6 +592,13 @@ impl Rpf9 { /// Writes an entry unpacked to `out` and returns the bytes written. pub fn copy_to(&self, entry: &Entry, out: &mut dyn Write) -> Result { let name = self.entry_name(entry); + if let Some((native, e)) = self.native_entry(entry) { + return native.copy_to(&self.path, self.base, e, out).map_err(|reason| RpfError::Inflate { + archive: self.display.clone(), + entry: name, + source: std::io::Error::new(std::io::ErrorKind::InvalidData, reason), + }); + } let outside = || RpfError::OutOfBounds { archive: self.display.clone(), entry: name.clone() }; if entry.offset < u64::from(self.header.data_offset) || entry.stored == 0 @@ -816,6 +937,8 @@ pub fn encode_index(entries: &[Entry]) -> Vec { Kind::Zlib => 0, Kind::Bink2 => 1, Kind::Awc => 2, + // Read from the archive, never stored. + Kind::Native { .. } => u8::MAX, }); out.push(e.head_len.min(16)); out.extend_from_slice(&e.head); diff --git a/crates/rage-rpf/src/rpf9_cipher.rs b/crates/rage-rpf/src/rpf9_cipher.rs index 0d32c26..954b54e 100644 --- a/crates/rage-rpf/src/rpf9_cipher.rs +++ b/crates/rage-rpf/src/rpf9_cipher.rs @@ -4,9 +4,6 @@ //! identified below. Tables and key schedules are read from the user's file; //! none are bundled. This module supports only that exact executable build. -// Not yet wired into the archive reader; integration follows. -#![allow(dead_code, clippy::items_after_test_module)] - use std::collections::BTreeMap; use sha2::{Digest, Sha256}; @@ -227,6 +224,39 @@ impl Cipher { } } +/// Converts an original-file PE address to a bounded source range. No +/// executable code is loaded or run by the parser. +fn pe_bytes(exe: &[u8], address: u64, len: usize) -> Option<&[u8]> { + if exe.get(..2)? != b"MZ" { + return None; + } + let pe = u32::from_le_bytes(exe.get(0x3c..0x40)?.try_into().ok()?) as usize; + if exe.get(pe..pe.checked_add(4)?)? != b"PE\0\0" { + return None; + } + let count = u16::from_le_bytes(exe.get(pe + 6..pe + 8)?.try_into().ok()?) as usize; + let opt_len = u16::from_le_bytes(exe.get(pe + 20..pe + 22)?.try_into().ok()?) as usize; + if count > 96 || opt_len < 32 || exe.get(pe + 24..pe + 26)? != [0x0b, 0x02] { + return None; + } + let base = u64::from_le_bytes(exe.get(pe + 48..pe + 56)?.try_into().ok()?); + let rva = address.checked_sub(base)?; + let start = pe.checked_add(24)?.checked_add(opt_len)?; + let sections = exe.get(start..start.checked_add(count.checked_mul(40)?)?)?; + for section in sections.as_chunks::<40>().0 { + let virtual_start = u32::from_le_bytes(section[12..16].try_into().ok()?) as u64; + let stored_len = u32::from_le_bytes(section[16..20].try_into().ok()?) as u64; + let stored_start = u32::from_le_bytes(section[20..24].try_into().ok()?) as u64; + let Some(relative) = rva.checked_sub(virtual_start) else { continue }; + if relative.checked_add(len as u64)? > stored_len { + continue; + } + let offset = usize::try_from(stored_start.checked_add(relative)?).ok()?; + return exe.get(offset..offset.checked_add(len)?); + } + None +} + #[cfg(test)] mod tests { use super::*; @@ -325,36 +355,3 @@ mod tests { assert_eq!(whole, plain); } } - -/// Converts an original-file PE address to a bounded source range. No -/// executable code is loaded or run by the parser. -fn pe_bytes(exe: &[u8], address: u64, len: usize) -> Option<&[u8]> { - if exe.get(..2)? != b"MZ" { - return None; - } - let pe = u32::from_le_bytes(exe.get(0x3c..0x40)?.try_into().ok()?) as usize; - if exe.get(pe..pe.checked_add(4)?)? != b"PE\0\0" { - return None; - } - let count = u16::from_le_bytes(exe.get(pe + 6..pe + 8)?.try_into().ok()?) as usize; - let opt_len = u16::from_le_bytes(exe.get(pe + 20..pe + 22)?.try_into().ok()?) as usize; - if count > 96 || opt_len < 32 || exe.get(pe + 24..pe + 26)? != [0x0b, 0x02] { - return None; - } - let base = u64::from_le_bytes(exe.get(pe + 48..pe + 56)?.try_into().ok()?); - let rva = address.checked_sub(base)?; - let start = pe.checked_add(24)?.checked_add(opt_len)?; - let sections = exe.get(start..start.checked_add(count.checked_mul(40)?)?)?; - for section in sections.as_chunks::<40>().0 { - let virtual_start = u32::from_le_bytes(section[12..16].try_into().ok()?) as u64; - let stored_len = u32::from_le_bytes(section[16..20].try_into().ok()?) as u64; - let stored_start = u32::from_le_bytes(section[20..24].try_into().ok()?) as u64; - let Some(relative) = rva.checked_sub(virtual_start) else { continue }; - if relative.checked_add(len as u64)? > stored_len { - continue; - } - let offset = usize::try_from(stored_start.checked_add(relative)?).ok()?; - return exe.get(offset..offset.checked_add(len)?); - } - None -} diff --git a/crates/rage-rpf/src/rpf9_index.rs b/crates/rage-rpf/src/rpf9_index.rs index aac2fca..5ecaead 100644 --- a/crates/rage-rpf/src/rpf9_index.rs +++ b/crates/rage-rpf/src/rpf9_index.rs @@ -38,6 +38,19 @@ pub struct NativeEntry { records: Vec>, } +/// One chunk of a member's data. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub struct Chunk { + /// From the start of the member's data, after a resource's prefix. + pub offset: u64, + /// Stored bytes, without padding. + pub stored: u64, + /// Decoded bytes. + pub size: u64, + /// A zlib stream; otherwise the bytes as they are. + pub zlib: bool, +} + #[derive(Debug, Clone)] pub struct Table { pub type_hash: u64, @@ -229,6 +242,48 @@ impl Catalog { Ok(Self { entries, tables, header, split }) } + /// The chunks a member is stored in, or `None` if it is stored whole. A + /// chunk record holds where its list starts, counted from the record + /// itself, the number of chunks, the size of a list item and its format. + pub fn chunks(&self, slot: usize) -> Result>, String> { + let Some(column) = self.tables.iter().position(|t| t.type_hash == CHUNKS) else { return Ok(None) }; + let at = self.entries.get(slot).and_then(|e| e.records.get(column).copied().flatten()); + let Some(at) = at else { return Ok(None) }; + if self.tables[column].stride != 8 || self.header[at + 6] != 8 { + return Err("unsupported chunk record".into()); + } + let list = sum(at, u32_at(&self.header, at) as usize)?; + let count = usize::from(u16_at(&self.header, at + 4)); + let items = self.header.get(list..sum(list, count * 8)?).ok_or("chunk list lies outside the header")?; + let mut chunks = Vec::with_capacity(count); + // Formats 2 and 4 have no offsets: chunks follow each other, padded. + let mut next = 0u64; + for item in items.as_chunks::<8>().0 { + let value = u64::from_le_bytes(*item); + let (low, high) = (value as u32, (value >> 32) as u32); + let wrapped = |v: u32| 0x10000 - u64::from(v & 0xffff); + let (offset, stored, size, codec) = match self.header[at + 7] { + 2 => { + let padded = u64::from(high & 0x03ff_ffff) << 4; + (next, padded.checked_sub(u64::from(high >> 26 & 15)), u64::from(low) << 4, high >> 30) + } + 3 => (u64::from(high & 0x0fff_ffff) << 4, Some(wrapped(low >> 16)), wrapped(low), high >> 28), + 4 => { + let padded = value >> 24 & 0xff_ffff; + (next, padded.checked_sub(u64::from(high >> 20 & 15)), value & 0xff_ffff, high >> 24) + } + format => return Err(format!("chunk format {format} is not supported")), + }; + let stored = stored.ok_or("a chunk is shorter than its padding")?; + if !matches!(codec, 0 | 3) { + return Err(format!("chunk codec {codec} is not supported")); + } + next = (offset + stored).next_multiple_of(16); + chunks.push(Chunk { offset, stored, size, zlib: codec == 3 }); + } + Ok(Some(chunks)) + } + /// A selected row's native table record, including optional tables whose /// interpretation is handled by the payload decoder. pub fn record(&self, slot: usize, table_type: u64) -> Option<&[u8]> { @@ -304,6 +359,44 @@ mod tests { assert!(Catalog::parse(fixture(), 200).is_err()); } + #[test] + fn reads_the_three_chunk_formats() { + let chunks = |format: u8, items: &[[u8; 8]]| { + // The second table (hashes, 8-byte records here) becomes chunks; + // the list follows the header's other data. + let mut b = fixture(); + b[112..120].copy_from_slice(&CHUNKS.to_le_bytes()); + let record = 200; + let list = b.len(); + b[record..record + 4].copy_from_slice(&((list - record) as u32).to_le_bytes()); + b[record + 4..record + 8].copy_from_slice(&[items.len() as u8, 0, 8, format]); + items.iter().for_each(|item| b.extend_from_slice(item)); + let len = b.len() as u32; + b[4..8].copy_from_slice(&len.to_le_bytes()); + for slot in 0..2 { + b[148 + slot * 16..152 + slot * 16].copy_from_slice(&32u32.to_le_bytes()); + } + Catalog::parse(b, 1024).unwrap().chunks(0) + }; + let chunk = |offset, stored, size, zlib| Chunk { offset, stored, size, zlib }; + // 2: sizes in units of 16, padding in the last one. + let items = [[0, 0x40, 1, 0, 0xfd, 0x50, 0, 0xd4], [2, 0, 0, 0, 2, 0, 0, 0]]; + let expected = vec![chunk(0, 0x50fd0 - 5, 0x14_0000, true), chunk(0x50fd0, 32, 32, false)]; + assert_eq!(chunks(2, &items), Ok(Some(expected))); + // 3: sizes counted down from 64 KiB, with the chunk's offset. + let items = [[0, 0, 0x41, 0xb8, 0, 0, 0, 0x30], [0xf1, 0xff, 0xf1, 0xff, 0x7c, 4, 0, 0]]; + let expected = vec![chunk(0, 0x47bf, 0x10000, true), chunk(0x47c0, 15, 15, false)]; + assert_eq!(chunks(3, &items), Ok(Some(expected))); + // 4: 24-bit sizes, padding, codec. + let items = [[0, 0, 0x13, 0x70, 0xaa, 4, 0x70, 3], [0x0f, 0, 0, 0x10, 0, 0, 0x10, 0]]; + let expected = vec![chunk(0, 0x4aa70 - 7, 0x13_0000, true), chunk(0x4aa70, 15, 15, false)]; + assert_eq!(chunks(4, &items), Ok(Some(expected))); + assert!(chunks(5, &items).is_err()); + assert!(chunks(4, &[[0, 0, 0, 0, 0, 0, 0, 9]]).is_err()); + // Less stored than padding. + assert!(chunks(4, &[[1, 0, 0, 0, 0, 0, 0x10, 0]]).is_err()); + } + #[test] fn rejects_bad_dimensions_and_missing_storage() { let mut b = fixture(); diff --git a/crates/rage-rpf/src/rpf9_names.rs b/crates/rage-rpf/src/rpf9_names.rs index 93e8e67..12b3ea6 100644 --- a/crates/rage-rpf/src/rpf9_names.rs +++ b/crates/rage-rpf/src/rpf9_names.rs @@ -11,6 +11,8 @@ //! leaf does not have that quote rule. See `docs/rpf9-name-hashes.md` for the //! observation and isolated native comparison boundaries. +use std::collections::HashMap; + /// ASCII path normalization shared by the observed native hash leaves. pub fn normalize_byte(byte: u8) -> u8 { match byte { @@ -154,6 +156,93 @@ pub fn extension_for_type(type_id: u8) -> Option<&'static str> { }) } +/// The extension an entry of this type is shown with when its own is not +/// known: the canonical one, or `type` for types the game registers. +pub fn type_extension(type_id: u8) -> String { + match extension_for_type(type_id) { + Some(ext) => ext.to_owned(), + None if type_id == u8::MAX => "bin".to_owned(), + None => format!("type{type_id}"), + } +} + +/// Texts that may be paths, found by the hashes of the names they could be. +#[derive(Debug, Default)] +pub struct Dictionary { + texts: Vec>, + /// Hash to the text and the part of it that has the hash. + by_hash: HashMap, +} + +impl Dictionary { + /// Adds a path, `mount:/path` or plain name. The mount is dropped, and + /// what follows each slash is a name as well: files name others from + /// different folders up. Names count with and without their extension, + /// as the index leaves out those it has a type for. + pub fn add(&mut self, text: &str) { + if text.len() > 1024 { + return; + } + let Ok(number) = u32::try_from(self.texts.len()) else { return }; + let from = text.find(":/").map_or(0, |at| at + 2); + let starts = std::iter::once(from).chain(text[from..].match_indices('/').map(|(at, _)| from + at + 1)); + let mut used = false; + for start in starts { + let name = &text[start..]; + let stem = name.rsplit_once('.').filter(|(_, ext)| !ext.contains('/')).map(|(stem, _)| stem); + for part in std::iter::once(name).chain(stem).filter(|part| is_relative(part)) { + self.by_hash.entry(hash64(part.as_bytes())).or_insert_with(|| { + used = true; + (number, start as u16, (start + part.len()) as u16) + }); + } + } + if used { + self.texts.push(text.into()); + } + } + + pub fn len(&self) -> usize { + self.by_hash.len() + } + + pub fn is_empty(&self) -> bool { + self.by_hash.is_empty() + } + + /// The path of an entry with these hashes and this type. + pub fn find(&self, hash64: u64, hash32: Option, type_id: u8) -> Option { + let &(number, start, end) = self.by_hash.get(&hash64)?; + let name = &self.texts[number as usize][usize::from(start)..usize::from(end)]; + if hash32.is_some_and(|expected| expected != self::hash32(name.as_bytes())) { + return None; + } + // Texts differ in how they write folders; hashes ignore case. + let folder = name.rfind('/').map_or(0, |at| at + 1); + let name = name[..folder].to_ascii_lowercase() + &name[folder..]; + Some(if type_id == u8::MAX { name } else { format!("{name}.{}", type_extension(type_id)) }) + } +} + +fn is_relative(path: &str) -> bool { + path.len() >= 2 + && !path.contains([':', '%']) + && path.split('/').all(|part| !part.is_empty() && part != "." && part != "..") +} + +/// The texts in a file's data that may be paths or names of files. +pub fn tokens(data: &[u8]) -> Vec { + let belongs = |b: &u8| b.is_ascii_alphanumeric() || b"_/\\.-#@+$:".contains(b); + let mut found: Vec = data + .split(|b| !belongs(b)) + .filter(|t| (3..=255).contains(&t.len()) && t.iter().any(u8::is_ascii_alphabetic)) + .map(|t| String::from_utf8_lossy(t).replace('\\', "/")) + .collect(); + found.sort_unstable(); + found.dedup(); + found +} + /// Candidate path hashes and the recognized static extension type, if any. #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub struct PathHashes { @@ -291,6 +380,23 @@ mod tests { assert_eq!(unknown.hash64, hash64(b"data/example.xml")); } + #[test] + fn dictionary_finds_names_below_mounts_and_folders() { + let mut names = Dictionary::default(); + names.add("platform:/levels/Props/barrel.rpf"); + names.add("/movies/Intro.bk2"); + names.add("../secret/file.xml"); + let find = |name: &str, ty| names.find(hash64(name.as_bytes()), Some(hash32(name.as_bytes())), ty); + assert_eq!(find("levels/props/barrel", 0).as_deref(), Some("levels/props/barrel.rpf")); + assert_eq!(find("props/barrel", 2).as_deref(), Some("props/barrel.#dr")); + assert_eq!(find("barrel", 74).as_deref(), Some("barrel.type74")); + assert_eq!(find("movies/intro.bk2", 255).as_deref(), Some("movies/Intro.bk2")); + assert_eq!(find("secret/file.xml", 255).as_deref(), Some("secret/file.xml")); + assert!(find("../secret/file.xml", 255).is_none()); + assert!(names.find(hash64(b"barrel"), Some(1), 0).is_none()); + assert_eq!(tokens(b"\x01ab\0data\\x.xml\xff123 name"), ["data/x.xml", "name"]); + } + #[test] fn executable_candidates_are_literal_bounded_and_relative() { let bytes = b"\xffcommon:/Data\\Example.zdr\0common:/Data/Example.zdr\0intro.bk2\0audio.awc\0pack.rpf\0plain.txt\0../bad/file.xml\0https://host/file.xml\0/absolute/file.xml\0%s/path.xml\0word with no path\0unterminated/path.xml"; diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs index 1142ca0..59ce315 100644 --- a/crates/rage-rpf/src/rpf9_native.rs +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -1,26 +1,25 @@ //! Executable-backed native RPF9 indexes. The executable is parsed as data. -// Not yet wired into the archive reader; integration follows. -#![allow(dead_code)] - use std::collections::HashMap; use std::fs::File; -use std::io::{Read, Seek, SeekFrom, Write}; +use std::io::{BufReader, Read, Seek, SeekFrom, Write}; use std::path::{Path, PathBuf}; use std::sync::{Arc, Mutex, OnceLock}; +use rayon::prelude::*; + use crate::rpf9_cipher::Cipher; -use crate::rpf9_index::{Catalog, NativeEntry, Storage}; +use crate::rpf9_index::{Catalog, Chunk, ENCRYPTION, NativeEntry, Storage}; use crate::rpf9_names; pub(crate) struct Materials { pub cipher: Cipher, - names: HashMap<(u32, u64, u8), String>, + names: rpf9_names::Dictionary, } impl std::fmt::Debug for Materials { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - f.debug_struct("Materials").field("candidate_names", &self.names.len()).finish_non_exhaustive() + f.debug_struct("Materials").field("names", &self.names.len()).finish_non_exhaustive() } } @@ -35,12 +34,20 @@ pub(crate) fn materials(path: &Path) -> Option> { } let bytes = std::fs::read(&executable).ok()?; let cipher = Cipher::from_exe(&bytes)?; - let mut names = HashMap::new(); + // Names: path strings of the executable and of the metadata in the two + // archives that list most of the game's files. + let mut names = rpf9_names::Dictionary::default(); for candidate in rpf9_names::candidates(&bytes) { - let hashes = rpf9_names::path_hashes(&candidate); - let key = (hashes.hash32, hashes.hash64, hashes.file_type.unwrap_or(255)); - names.entry(key).or_insert(candidate); + names.add(&candidate); + } + drop(bytes); + let nameless = Arc::new(Materials { cipher, names: Default::default() }); + let mut strings = Vec::new(); + for archive in ["common.rpf", "data.rpf"].map(|name| executable.with_file_name(name)) { + strings.extend(NativeArchive::strings(&archive, &nameless).unwrap_or_default()); } + strings.iter().for_each(|text| names.add(text)); + let cipher = Arc::into_inner(nameless)?.cipher; let materials = Arc::new(Materials { cipher, names }); cache.insert(executable, Arc::clone(&materials)); Some(materials) @@ -49,8 +56,11 @@ pub(crate) fn materials(path: &Path) -> Option> { #[derive(Debug)] pub(crate) struct NativeArchive { pub catalog: Catalog, - pub materials: Arc, + materials: Arc, + /// The entries' paths, by slot. pub paths: Vec, + /// Lower-case path to slot. + by_path: HashMap, } fn u16_at(b: &[u8], at: usize) -> Option { @@ -116,49 +126,221 @@ impl NativeArchive { file.read_exact(&mut bytes[64..]).map_err(|e| e.to_string())?; decode_header(&materials.cipher, &mut bytes).ok_or("unsupported or damaged native header transform")?; let catalog = Catalog::parse(bytes, extent)?; - let paths = catalog - .entries - .iter() - .map(|entry| { - let exact = entry - .name_hash32 - .zip(entry.name_hash64) - .and_then(|(a, b)| materials.names.get(&(a, b, entry.type_id))); - if let Some(path) = exact { - return path.clone(); - } - let ext = rpf9_names::extension_for_type(entry.type_id).unwrap_or("bin"); + let mut paths = Vec::with_capacity(catalog.entries.len()); + let mut by_path = HashMap::with_capacity(catalog.entries.len()); + for entry in &catalog.entries { + let name = entry + .name_hash64 + .and_then(|hash| materials.names.find(hash, entry.name_hash32, entry.type_id)) + .filter(|name| !by_path.contains_key(&name.to_ascii_lowercase())); + let path = name.unwrap_or_else(|| { + let ext = rpf9_names::type_extension(entry.type_id); format!("entries/{:06}_{:016x}.{ext}", entry.slot, entry.name_hash64.unwrap_or(0)) + }); + by_path.insert(path.to_ascii_lowercase(), entry.slot); + paths.push(path); + } + Ok(Self { catalog, materials, paths, by_path }) + } + + /// The slot with this path (case-insensitive). + pub fn find(&self, path: &str) -> Option { + self.by_path.get(&path.to_ascii_lowercase()).copied() + } + + /// The path-like strings in an archive's own files. + fn strings(path: &Path, materials: &Arc) -> Result, String> { + let size = std::fs::metadata(path).map_err(|e| e.to_string())?.len(); + let archive = Self::open(path, 0, size, Arc::clone(materials))?; + let mut found: Vec = archive + .catalog + .entries + .par_iter() + .filter(|e| e.type_id != 0 && e.size <= STRINGS_MAX) + .flat_map_iter(|e| { + let mut data = Vec::new(); + let read = archive.copy_to(path, 0, e, &mut data); + if read.is_ok() { rpf9_names::tokens(&data) } else { Vec::new() } }) .collect(); - Ok(Self { catalog, materials, paths }) + found.par_sort_unstable(); + found.dedup(); + Ok(found) } - pub fn find(&self, path: &str) -> Option { - if let Some(slot) = self.paths.iter().position(|p| p.eq_ignore_ascii_case(path)) { - return Some(slot); + /// Writes a member's decoded bytes to `out` and returns their number. A + /// resource comes out as its system part followed by its graphics part. + pub fn copy_to(&self, path: &Path, base: u64, entry: &NativeEntry, out: &mut dyn Write) -> Result { + let file = File::open(path).map_err(|e| e.to_string())?; + // A resource starts with a clear 16-byte prefix; the encryption + // pattern and the chunks count from its end. + let resource = matches!(entry.storage, Storage::Resource { .. }); + let prefix = if resource { RESOURCE_PREFIX } else { 0 }; + let start = base.checked_add(entry.offset).and_then(|v| v.checked_add(prefix)).ok_or("offset overflow")?; + let len = if entry.stored == 0 { + 0 + } else { + entry.stored.checked_sub(prefix).ok_or("a resource is shorter than its prefix")? + }; + let cipher = match self.catalog.record(entry.slot, ENCRYPTION) { + Some(record) => Some((&self.materials.cipher, Encryption::parse(record, len)?)), + None => None, + }; + let mut member = Member { file, start, len, at: 0, cipher }; + if let Some(chunks) = self.catalog.chunks(entry.slot)? { + return copy_chunks(&mut member, &chunks, entry.size, out); } - let h = rpf9_names::path_hashes(path); - self.catalog.entries.iter().position(|e| { - e.type_id == h.file_type.unwrap_or(255) - && e.name_hash64 == Some(h.hash64) - && e.name_hash32.is_none_or(|v| v == h.hash32) - }) + let written = match entry.layout { + 0 if !resource && entry.size <= len => { + std::io::copy(&mut (&mut member).take(entry.size), out).map_err(|e| e.to_string())? + } + // One raw DEFLATE stream. + 1 if !resource => { + let mut inflate = flate2::bufread::DeflateDecoder::new(BufReader::with_capacity(1 << 16, member)); + // One byte more shows a stream longer than declared. + std::io::copy(&mut (&mut inflate).take(entry.size.saturating_add(1)), out).map_err(|e| e.to_string())? + } + layout => return Err(format!("storage layout {layout} is not supported")), + }; + if written == entry.size { Ok(written) } else { Err("decoded size differs from the index".into()) } } +} - pub fn copy_to(&self, path: &Path, base: u64, entry: &NativeEntry, out: &mut dyn Write) -> Result { - let mut file = File::open(path).map_err(|e| e.to_string())?; - file.seek(SeekFrom::Start(base.checked_add(entry.offset).ok_or("offset overflow")?)) - .map_err(|e| e.to_string())?; - if matches!(entry.storage, Storage::Raw) { - let n = std::io::copy(&mut file.take(entry.size), out).map_err(|e| e.to_string())?; - return if n == entry.size { Ok(n) } else { Err("short native member".into()) }; +/// Larger members are not searched for names. +const STRINGS_MAX: u64 = 64 << 20; + +/// Clear bytes in front of a resource's chunks. +const RESOURCE_PREFIX: u64 = 16; + +/// Which bytes of a member are encrypted, and with what. Members are often +/// encrypted only in part: `head` bytes, then from there on `run` bytes of +/// every `run + gap`, and `tail` bytes at the end. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +struct Encryption { + key: u32, + iv: [u8; 16], + head: u64, + run: u64, + gap: u64, + tail_start: u64, +} + +impl Encryption { + fn parse(record: &[u8], len: u64) -> Result { + let word = |at: usize| u32_at(record, at).map(|v| v as u64).ok_or("short encryption record"); + if u16_at(record, 4) != Some(17) { + return Err("unsupported encryption algorithm".into()); + } + let iv = record.get(6..22).and_then(|iv| iv.try_into().ok()).ok_or("short encryption record")?; + let (head, run, gap, tail) = (word(24)?, word(32)?, word(40)?, word(48)?); + if [head, run, gap, tail].iter().any(|v| v % 16 != 0) { + return Err("unaligned encryption pattern".into()); + } + Ok(Self { key: word(0)? as u32, iv, head, run, gap, tail_start: len.saturating_sub(tail) }) + } + + /// Whether the byte at `at` is encrypted, and where that may change next. + fn span(&self, at: u64) -> (bool, u64) { + if at < self.head { + return (true, self.head); + } + if at >= self.tail_start { + return (true, u64::MAX); + } + let period = self.run + self.gap; + if period == 0 { + return (false, self.tail_start); + } + let within = (at - self.head) % period; + let (encrypted, left) = if within < self.run { (true, self.run - within) } else { (false, period - within) }; + (encrypted, at.saturating_add(left).min(self.tail_start)) + } +} + +/// A member's stored bytes, decrypted. +struct Member<'a> { + file: File, + start: u64, + len: u64, + at: u64, + cipher: Option<(&'a Cipher, Encryption)>, +} + +impl Read for Member<'_> { + fn read(&mut self, buf: &mut [u8]) -> std::io::Result { + let mut want = (self.len - self.at).min(buf.len() as u64); + if want == 0 { + return Ok(0); + } + let span = self.cipher.as_ref().map(|(_, e)| e.span(self.at)); + if let Some((_, end)) = span { + want = want.min(end - self.at); } - // The chunk decoder validates each decoded length and checksum. - self.copy_chunks(file, entry, out) + self.file.seek(SeekFrom::Start(self.start + self.at))?; + let n = self.file.read(&mut buf[..want as usize])?; + if let (Some((cipher, e)), Some((true, _))) = (&self.cipher, span) { + cipher + .crypt_ctr(e.key, &mut buf[..n], &e.iv, self.at) + .ok_or_else(|| std::io::Error::other("no key for this member"))?; + } + self.at += n as u64; + Ok(n) } +} - fn copy_chunks(&self, _file: File, _entry: &NativeEntry, _out: &mut dyn Write) -> Result { - Err("native payload layout is not supported yet".into()) +fn copy_chunks(member: &mut Member, chunks: &[Chunk], size: u64, out: &mut dyn Write) -> Result { + if chunks.iter().try_fold(0u64, |sum, c| sum.checked_add(c.size)) != Some(size) { + return Err("chunk sizes do not add up to the member size".into()); + } + for chunk in chunks { + if chunk.offset.checked_add(chunk.stored).is_none_or(|end| end > member.len) { + return Err("a chunk lies outside its member".into()); + } + member.at = chunk.offset; + let mut stored = member.by_ref().take(chunk.stored); + let written = if chunk.zlib { + let mut inflate = flate2::bufread::ZlibDecoder::new(BufReader::with_capacity(1 << 16, stored)); + // One byte more shows a stream longer than declared, and reading + // to the end checks the stream's checksum. + std::io::copy(&mut (&mut inflate).take(chunk.size + 1), out) + } else { + std::io::copy(&mut stored, out) + } + .map_err(|e| e.to_string())?; + if written != chunk.size { + return Err("a chunk's decoded size differs from the index".into()); + } + } + Ok(size) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn encryption_patterns_name_the_encrypted_spans() { + let mut record = [0u8; 64]; + record[4] = 17; + for (at, v) in [(24, 0x400u32), (32, 0x400), (40, 0x1c00)] { + record[at..at + 4].copy_from_slice(&v.to_le_bytes()); + } + let e = Encryption::parse(&record, 0x10000).unwrap(); + assert_eq!(e.span(0), (true, 0x400)); + assert_eq!(e.span(0x400), (true, 0x800)); + assert_eq!(e.span(0x800), (false, 0x2400)); + assert_eq!(e.span(0x2410), (true, 0x2800)); + assert!(e.span(0xffff).0 == ((0xffff - 0x400) % 0x2000 < 0x400)); + record[48..52].copy_from_slice(&0x1000u32.to_le_bytes()); + let e = Encryption::parse(&record, 0x10000).unwrap(); + assert_eq!(e.span(0xf000), (true, u64::MAX)); + // Without a gap everything is encrypted. + record[24..28].fill(0); + record[40..44].fill(0); + let e = Encryption::parse(&record, 0x10000).unwrap(); + assert!((0..0x10000).step_by(0x100).all(|at| e.span(at).0)); + record[4] = 16; + assert!(Encryption::parse(&record, 0x10000).is_err()); + assert!(Encryption::parse(&record[..30], 0x10000).is_err()); } } diff --git a/crates/rage-rpf/src/vfs.rs b/crates/rage-rpf/src/vfs.rs index 30c5bb1..678b5f1 100644 --- a/crates/rage-rpf/src/vfs.rs +++ b/crates/rage-rpf/src/vfs.rs @@ -37,9 +37,9 @@ pub enum Node { Gta4Dir(Arc, Gta4EntryId), /// A file inside a GTA IV archive. Gta4File(Arc, Gta4EntryId), - /// A folder of the recovery view of a GTA VI archive ("" for its top). + /// A folder of a GTA VI archive ("" for its top). Rpf9Dir(Arc, String), - /// A recovered file of a GTA VI archive (index into its entries). + /// A file of a GTA VI archive (index into its entries). Rpf9File(Arc, usize), } @@ -137,20 +137,37 @@ fn resolve_rpf8(mut archive: Arc, rest: &[String], vpath: &str) -> Result< Ok(Node::Rpf8Dir(archive, dir)) } -/// Walks the rest of a path inside a GTA VI archive. The archive itself -/// resolves without its entries; anything below needs them, which scans the -/// archive unless an index is at hand. -fn resolve_rpf9(archive: Arc, rest: &[String], vpath: &str) -> Result { +/// Walks the rest of a path inside a GTA VI archive; nested archives are +/// entered. The archive itself resolves without its entries; anything below +/// needs them, which scans the archive if its own table cannot be read and no +/// index is at hand. +fn resolve_rpf9(mut archive: Arc, rest: &[String], vpath: &str) -> Result { if rest.is_empty() { return Ok(Node::Rpf9Dir(archive, String::new())); } - let path = rest.join("/"); - let entries = archive.entries()?; - if let Some(i) = archive.find(&entries, &path) { - return Ok(Node::Rpf9File(archive, i)); + let mut dir = String::new(); + for (n, comp) in rest.iter().enumerate() { + if !dir.is_empty() { + dir.push('/'); + } + dir.push_str(comp); + // Only the last component and archives on the way are entries. + if n + 1 < rest.len() && !is_rpf(comp) { + continue; + } + let entries = archive.entries()?; + let Some(i) = archive.find(&entries, &dir) else { continue }; + if archive.is_archive(&entries[i]) { + archive = Arc::new(archive.open_child(&entries[i])?); + dir.clear(); + } else if n + 1 == rest.len() { + return Ok(Node::Rpf9File(archive, i)); + } else { + return Err(RpfError::NotFound(vpath.to_owned())); + } } - if archive.is_dir(&entries, &path) { - return Ok(Node::Rpf9Dir(archive, path.to_ascii_lowercase())); + if archive.is_dir(&archive.entries()?, &dir) { + return Ok(Node::Rpf9Dir(archive, dir.to_ascii_lowercase())); } Err(RpfError::NotFound(vpath.to_owned())) } diff --git a/docs/rpf9-scarlett.md b/docs/rpf9-scarlett.md index 1521379..1634972 100644 --- a/docs/rpf9-scarlett.md +++ b/docs/rpf9-scarlett.md @@ -73,20 +73,53 @@ archive or its payload. All twelve root archives were sampled. | `shaders.rpf` | 411695600 | 34368 | 34336 | 3 | 9 | `15f896951d3608eb45ca446c9d8198513076c0c9f2c3dd79981af8eb083a9af1` | | `textures.rpf` | 192585024 | 1936 | 1728 | 22 | 9 | `d730f6a42de5474a7d9d490c672d4a2c0e35409a238508caf0943fdc660052e9` | -## Remaining decoder work - -OpenRAGE's recovery scanner does not yet decode the protected native table. -The executable being present is not itself a verified decryption algorithm. -Further work must reconstruct the transform family and descriptor handling, -validate table bounds and member layouts, and compare decoded lengths and -checksums against representative local archives before enabling native index -browsing. Original path recovery, nested index navigation, signature checks, -and archive writing are separate work. - -Concrete static entry points for that work are the transform span builder -`0x1428ceb20`, descriptor setup `0x140a349a0`, transform dispatch -`0x1406bd160` / `0x140536a70`, and later header processing -`0x1408ec210`. These are leads, not proof of a complete decoder. +## Members + +With the header decoded, a member is described by one payload record (raw, +chunked or resource) and optional encryption and chunk records. + +An encryption record is 64 bytes: u32 key, u16 algorithm (17: counter mode +with a big-endian 16-byte counter), the initial counter at `+6`, and a +pattern of byte counts: `+24` head, `+32` run, `+40` gap, `+48` tail. The +head is encrypted, then `run` bytes of every `run + gap`, then the tail. The +counter follows the position in the member, encrypted or not. The usual +pattern (`0x400`, `0x400`, `0x1c00`) encrypts the first 2 KiB and 1 KiB of +every 8 KiB after. The tail field was seen in one resource only. + +A resource starts with a clear 16-byte prefix. The encryption pattern and the +chunks count from its end. Decoded, the system part is followed by the +graphics part. + +A chunk record is 8 bytes: u32 start of the list *counted from the record*, +u16 number of chunks, u8 item size (8), u8 format. Members with lists at the +same distance share records. Items, with codec 0 (stored) or 3 (zlib): + +| Format | Decoded size | Stored size | Offset | Codec | +| ---: | --- | --- | --- | --- | +| 2 | u32 × 16 | bits 32–57 × 16, less padding in bits 58–61 | follows | bits 62–63 | +| 3 | 65536 − bits 0–15 | 65536 − bits 16–31 | bits 32–59 × 16 | bits 60–63 | +| 4 | bits 0–23 | bits 24–47, less padding in bits 52–55 | follows | bits 56–63 | + +A chunk that follows another starts on the next multiple of 16. Members +without a chunk record are stored as they are (layout 0) or as one raw +DEFLATE stream (layout 1). + +All members of the archives above up to 256 MiB, and all members of the +archives inside them, were decoded with this: 790,347 members, with the zlib +checksums and every decoded length matching. + +## Names + +The table holds only hashes, of paths relative to the archive without the +extensions that have a type number. Names come from path strings in the +executable and in the files of `common.rpf` and `data.rpf`, checked against +the hashes. They cover most top-level files; those without are listed as +`entries/_`. + +## Remaining work + +Names inside nested archives, the extensions of types the game registers at +run time (shown as `type`), signature checks and archive writing. ## Local recovery validation From a0f5463c3432e309dbdb4658c11c5f50e7f58f79 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 04:42:06 +0100 Subject: [PATCH 04/31] GTA VI: names inside nested archives, expand archives on extraction Models, clip dictionaries and some other types hold their own name, which is checked against the hash in the archive's table. Opened tables are kept. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- crates/openrage-app/src/rpf9.rs | 105 ++++++++++++++++--------- crates/openrage-cli/src/cmd/archive.rs | 14 +++- crates/openrage-gui/src/extract_ui.rs | 2 +- crates/rage-rpf/src/rpf9.rs | 11 +-- crates/rage-rpf/src/rpf9_native.rs | 86 +++++++++++++++++--- docs/rpf9-scarlett.md | 8 +- 7 files changed, 164 insertions(+), 64 deletions(-) diff --git a/README.md b/README.md index daea560..8187db1 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p |---|---|---| | **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | | **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) | -| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names inside nested archives are mostly unknown | ◐ models · texture pools (`.ttpf`) · text, audio containers and Bink 2 video files | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models · texture pools (`.ttpf`) · text, audio containers and Bink 2 video files | | **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) diff --git a/crates/openrage-app/src/rpf9.rs b/crates/openrage-app/src/rpf9.rs index 186ba25..2dc4acc 100644 --- a/crates/openrage-app/src/rpf9.rs +++ b/crates/openrage-app/src/rpf9.rs @@ -301,59 +301,92 @@ pub fn coverage(rpf: &Rpf9, entries: &[Entry]) -> Coverage { /// Extracts from a GTA VI archive into `out`: one file (`file`), or /// everything below folder `dir`. Files are written unpacked, straight to -/// disk. Unreadable files are listed in `failures` and skipped. +/// disk; with `expand`, archives inside become folders. Unreadable files are +/// listed in `failures` and skipped. pub fn extract( rpf: &Rpf9, dir: &str, file: Option, out: &Path, + expand: bool, cancel: &AtomicBool, progress: &mut dyn FnMut(&ExtractSummary, &str), ) -> Result { - let entries = rpf.entries()?; let mut summary = ExtractSummary { target: out.to_path_buf(), ..Default::default() }; - let mut write = |i: usize, rel: &str, s: &mut ExtractSummary| -> Result<()> { - let target = out.join(vfs::safe_relative_path(rel).with_context(|| format!("unsafe path {rel}"))?); - if let Some(parent) = target.parent() { - fs::create_dir_all(parent)?; - } - let mut writer = BufWriter::new(fs::File::create(&target)?); - match rpf.copy_to(&entries[i], &mut writer).and_then(|n| Ok(writer.flush().map(|()| n)?)) { - Ok(bytes) => { - s.files += 1; - s.bytes += bytes; - } - Err(e) => { - drop(writer); - let _ = fs::remove_file(&target); - s.failures.push(e.to_string()); - } - } - progress(s, rel); - Ok(()) - }; if let Some(i) = file { - let name = rpf.entry_name(&entries[i]); + let entries = rpf.entries()?; + let entry = entries.get(i).context("no such entry")?; + let name = rpf.entry_name(entry); let base = name.rsplit('/').next().unwrap_or(&name).to_owned(); - write(i, &base, &mut summary)?; + extract_entry(rpf, entry, &base, out, expand, cancel, progress, &mut summary)?; summary.target = out.join(base); - return Ok(summary); + } else { + extract_dir(rpf, dir, out, expand, cancel, progress, &mut summary)?; } - // Everything below `dir`, with its path from there on. - let prefix = if dir.is_empty() { String::new() } else { format!("{}/", dir.to_ascii_lowercase()) }; - for (i, e) in entries.iter().enumerate() { + Ok(summary) +} + +/// Everything below `dir`, with its path from there on. +fn extract_dir( + rpf: &Rpf9, + dir: &str, + out: &Path, + expand: bool, + cancel: &AtomicBool, + progress: &mut dyn FnMut(&ExtractSummary, &str), + summary: &mut ExtractSummary, +) -> Result<()> { + let prefix = if dir.is_empty() { String::new() } else { format!("{dir}/") }; + for e in rpf.entries()?.iter() { let name = rpf.entry_name(e); - let Some(rel) = name.get(..prefix.len()).filter(|s| s.eq_ignore_ascii_case(&prefix)).map(|s| &name[s.len()..]) - else { + if !name.get(..prefix.len()).is_some_and(|start| start.eq_ignore_ascii_case(&prefix)) { continue; - }; + } if cancel.load(Ordering::Relaxed) { summary.cancelled = true; break; } - write(i, rel, &mut summary)?; + extract_entry(rpf, e, &name[prefix.len()..], out, expand, cancel, progress, summary)?; } - Ok(summary) + Ok(()) +} + +#[expect(clippy::too_many_arguments)] +fn extract_entry( + rpf: &Rpf9, + entry: &Entry, + rel: &str, + out: &Path, + expand: bool, + cancel: &AtomicBool, + progress: &mut dyn FnMut(&ExtractSummary, &str), + summary: &mut ExtractSummary, +) -> Result<()> { + let target = out.join(vfs::safe_relative_path(rel).with_context(|| format!("unsafe path {rel}"))?); + if expand && rpf.is_archive(entry) { + match rpf.open_child(entry) { + Ok(child) => return extract_dir(&child, "", &target, expand, cancel, progress, summary), + Err(e) => summary.failures.push(e.to_string()), + } + return Ok(()); + } + if let Some(parent) = target.parent() { + fs::create_dir_all(parent)?; + } + let mut writer = BufWriter::new(fs::File::create(&target)?); + match rpf.copy_to(entry, &mut writer).and_then(|n| Ok(writer.flush().map(|()| n)?)) { + Ok(bytes) => { + summary.files += 1; + summary.bytes += bytes; + } + Err(e) => { + drop(writer); + let _ = fs::remove_file(&target); + summary.failures.push(e.to_string()); + } + } + progress(summary, rel); + Ok(()) } #[cfg(test)] @@ -419,11 +452,11 @@ mod tests { rpf.set_entries(rpf.scan(&AtomicBool::new(false), &|_, _| {}).unwrap()); let quiet = AtomicBool::new(false); - let all = extract(&rpf, "", None, &dir.join("all"), &quiet, &mut |_, _| {}).unwrap(); + let all = extract(&rpf, "", None, &dir.join("all"), false, &quiet, &mut |_, _| {}).unwrap(); assert_eq!((all.files, all.failures.len()), (2, 0)); assert_eq!(fs::read(dir.join("all/xml/000000000040.xml")).unwrap(), b""); - let psin = extract(&rpf, "PSIN", None, &dir.join("psin"), &quiet, &mut |_, _| {}).unwrap(); + let psin = extract(&rpf, "PSIN", None, &dir.join("psin"), false, &quiet, &mut |_, _| {}).unwrap(); assert_eq!(psin.files, 1); assert!( fs::read_dir(dir.join("psin")) @@ -432,7 +465,7 @@ mod tests { .all(|f| f.file_name().to_string_lossy().ends_with(".psin")) ); - let one = extract(&rpf, "", Some(0), &dir.join("one"), &quiet, &mut |_, _| {}).unwrap(); + let one = extract(&rpf, "", Some(0), &dir.join("one"), false, &quiet, &mut |_, _| {}).unwrap(); assert_eq!(one.target, dir.join("one/000000000040.xml")); assert!(one.target.is_file()); fs::remove_dir_all(dir).unwrap(); diff --git a/crates/openrage-cli/src/cmd/archive.rs b/crates/openrage-cli/src/cmd/archive.rs index 38e712c..af6cc10 100644 --- a/crates/openrage-cli/src/cmd/archive.rs +++ b/crates/openrage-cli/src/cmd/archive.rs @@ -391,8 +391,14 @@ pub(crate) fn report_rpf8_extract(rpf: &rage_rpf::Rpf8, dir: &str, file: Option< extraction_result(s.failures.len()) } -pub(crate) fn report_rpf9_extract(rpf: &rage_rpf::Rpf9, dir: &str, file: Option, out: &Path) -> Result<()> { - let s = openrage_app::rpf9::extract(rpf, dir, file, out, &AtomicBool::new(false), &mut |_, _| {})?; +pub(crate) fn report_rpf9_extract( + rpf: &rage_rpf::Rpf9, + dir: &str, + file: Option, + out: &Path, + expand: bool, +) -> Result<()> { + let s = openrage_app::rpf9::extract(rpf, dir, file, out, expand, &AtomicBool::new(false), &mut |_, _| {})?; for f in &s.failures { eprintln!("warning: {f}"); } @@ -446,8 +452,8 @@ pub(crate) fn cmd_extract( Node::ArchiveFile(rpf, id) | Node::ArchiveDir(rpf, id) => (rpf, id), Node::Rpf8File(rpf, i) => return report_rpf8_extract(&rpf, "", Some(i), out), Node::Rpf8Dir(rpf, dir) => return report_rpf8_extract(&rpf, &dir, None, out), - Node::Rpf9File(rpf, i) => return report_rpf9_extract(&rpf, "", Some(i), out), - Node::Rpf9Dir(rpf, dir) => return report_rpf9_extract(&rpf, &dir, None, out), + Node::Rpf9File(rpf, i) => return report_rpf9_extract(&rpf, "", Some(i), out, expand), + Node::Rpf9Dir(rpf, dir) => return report_rpf9_extract(&rpf, &dir, None, out, expand), Node::Gta4Dir(a, id) | Node::Gta4File(a, id) => { let s = openrage_app::gta4::extract(&a, id, out, &AtomicBool::new(false), &mut |_, _| {})?; for f in &s.failures { diff --git a/crates/openrage-gui/src/extract_ui.rs b/crates/openrage-gui/src/extract_ui.rs index 54466f6..56ce5f1 100644 --- a/crates/openrage-gui/src/extract_ui.rs +++ b/crates/openrage-gui/src/extract_ui.rs @@ -75,7 +75,7 @@ pub(crate) fn start_extract(ui: &AppWindow) { }); if let Some((rpf, dir, file)) = gta6 { spawn_extract(ui, move |out, cancel, progress| { - openrage_app::rpf9::extract(&rpf, &dir, file, out, cancel, progress) + openrage_app::rpf9::extract(&rpf, &dir, file, out, false, cancel, progress) }); return; } diff --git a/crates/rage-rpf/src/rpf9.rs b/crates/rage-rpf/src/rpf9.rs index b016ebb..3fbdd24 100644 --- a/crates/rage-rpf/src/rpf9.rs +++ b/crates/rage-rpf/src/rpf9.rs @@ -40,7 +40,7 @@ use rayon::prelude::*; use crate::RpfError; use crate::rpf9_index::{NativeEntry, Storage}; -use crate::rpf9_native::{self, NativeArchive}; +use crate::rpf9_native::NativeArchive; const MAGIC: u32 = 0x5250_4639; /// Length of the header in front of the table of contents. @@ -292,7 +292,7 @@ pub struct Rpf9 { /// Where the archive starts in the file: a nested one, inside its parent. base: u64, /// The archive's own table, read on first use. - native: OnceLock>, + native: OnceLock>>, /// Filled on first use: finding the entries means reading the archive. entries: Mutex>>>, /// Filled on first use. @@ -341,12 +341,7 @@ impl Rpf9 { /// The archive's own table; `None` without the game's executable (or /// with another build's) and for damaged tables. fn native(&self) -> Option<&NativeArchive> { - self.native - .get_or_init(|| { - let materials = rpf9_native::materials(&self.path)?; - NativeArchive::open(&self.path, self.base, self.size, materials).ok() - }) - .as_ref() + self.native.get_or_init(|| NativeArchive::cached(&self.path, self.base, self.size)).as_deref() } /// Whether the archive's own table is read, rather than a recovery view diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs index 59ce315..9a81193 100644 --- a/crates/rage-rpf/src/rpf9_native.rs +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -126,21 +126,74 @@ impl NativeArchive { file.read_exact(&mut bytes[64..]).map_err(|e| e.to_string())?; decode_header(&materials.cipher, &mut bytes).ok_or("unsupported or damaged native header transform")?; let catalog = Catalog::parse(bytes, extent)?; - let mut paths = Vec::with_capacity(catalog.entries.len()); - let mut by_path = HashMap::with_capacity(catalog.entries.len()); - for entry in &catalog.entries { - let name = entry - .name_hash64 - .and_then(|hash| materials.names.find(hash, entry.name_hash32, entry.type_id)) - .filter(|name| !by_path.contains_key(&name.to_ascii_lowercase())); + let mut archive = Self { catalog, materials, paths: Vec::new(), by_path: HashMap::new() }; + archive.name_entries(&HashMap::new()); + Ok(archive) + } + + /// The archive at `base` in a file, with the names its own files tell. + /// The last few opened ones are kept. + pub fn cached(path: &Path, base: u64, extent: u64) -> Option> { + type Key = (PathBuf, u64, u64, Option); + static OPENED: Mutex)>> = Mutex::new(Vec::new()); + let key = (path.to_path_buf(), base, extent, std::fs::metadata(path).and_then(|m| m.modified()).ok()); + if let Some((_, found)) = OPENED.lock().ok()?.iter().find(|(k, _)| *k == key) { + return Some(Arc::clone(found)); + } + let mut archive = Self::open(path, base, extent, materials(path)?).ok()?; + let learned = archive.learn_names(path, base); + if !learned.is_empty() { + archive.name_entries(&learned); + } + let archive = Arc::new(archive); + let mut opened = OPENED.lock().ok()?; + if opened.len() >= KEPT { + opened.remove(0); + } + opened.push((key, Arc::clone(&archive))); + Some(archive) + } + + /// Gives the entries their paths: names by slot, then the known ones. + fn name_entries(&mut self, learned: &HashMap) { + self.paths = Vec::with_capacity(self.catalog.entries.len()); + self.by_path = HashMap::with_capacity(self.catalog.entries.len()); + for entry in &self.catalog.entries { + let name = learned + .get(&entry.slot) + .cloned() + .or_else(|| { + let hash = entry.name_hash64?; + self.materials.names.find(hash, entry.name_hash32, entry.type_id) + }) + .filter(|name| !self.by_path.contains_key(&name.to_ascii_lowercase())); let path = name.unwrap_or_else(|| { let ext = rpf9_names::type_extension(entry.type_id); - format!("entries/{:06}_{:016x}.{ext}", entry.slot, entry.name_hash64.unwrap_or(0)) + format!("{UNNAMED}/{:06}_{:016x}.{ext}", entry.slot, entry.name_hash64.unwrap_or(0)) }); - by_path.insert(path.to_ascii_lowercase(), entry.slot); - paths.push(path); + self.by_path.insert(path.to_ascii_lowercase(), entry.slot); + self.paths.push(path); } - Ok(Self { catalog, materials, paths, by_path }) + } + + /// Names of unnamed entries, found in their own data: models, clip + /// dictionaries and some others hold their name. What is found is + /// checked against the hash in the table. + fn learn_names(&self, path: &Path, base: u64) -> HashMap { + self.catalog + .entries + .par_iter() + .filter(|e| SELF_NAMED.contains(&e.type_id) && e.size <= LEARN_MAX) + .filter(|e| self.paths[e.slot].strip_prefix(UNNAMED).is_some_and(|rest| rest.starts_with('/'))) + .filter_map(|e| { + let wanted = e.name_hash64?; + let mut data = Vec::new(); + self.copy_to(path, base, e, &mut data).ok()?; + let mut names = rpf9_names::Dictionary::default(); + rpf9_names::tokens(&data).iter().for_each(|text| names.add(text)); + Some((e.slot, names.find(wanted, e.name_hash32, e.type_id)?)) + }) + .collect() } /// The slot with this path (case-insensitive). @@ -206,7 +259,16 @@ impl NativeArchive { } } -/// Larger members are not searched for names. +/// Where entries without a known name are listed. +const UNNAMED: &str = "entries"; +/// Types whose files hold their own name: drawables, fragments, drawable +/// dictionaries, and registered ones where this was seen in the game's data. +const SELF_NAMED: [u8; 10] = [2, 3, 4, 66, 67, 69, 70, 72, 102, 109]; +/// Larger members are not searched for their own name. +const LEARN_MAX: u64 = 8 << 20; +/// Opened archives to keep. +const KEPT: usize = 16; +/// Larger members are not searched for names of others. const STRINGS_MAX: u64 = 64 << 20; /// Clear bytes in front of a resource's chunks. diff --git a/docs/rpf9-scarlett.md b/docs/rpf9-scarlett.md index 1634972..50c1338 100644 --- a/docs/rpf9-scarlett.md +++ b/docs/rpf9-scarlett.md @@ -113,12 +113,16 @@ checksums and every decoded length matching. The table holds only hashes, of paths relative to the archive without the extensions that have a type number. Names come from path strings in the executable and in the files of `common.rpf` and `data.rpf`, checked against -the hashes. They cover most top-level files; those without are listed as +the hashes. They cover most top-level files. Inside nested archives, drawables, fragments, +clip dictionaries and some other types hold their own name, which is checked +against the hash the same way (over 99% of drawables and fragments in a sample +of 1,826 archives). Files without a name are listed as `entries/_`. ## Remaining work -Names inside nested archives, the extensions of types the game registers at +Names of the other types inside nested archives (textures, collisions, maps), +the extensions of types the game registers at run time (shown as `type`), signature checks and archive writing. ## Local recovery validation From 66de91eb72c09cf90da0b418d73fcacc68e6d647 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 04:51:27 +0100 Subject: [PATCH 05/31] GTA VI: extensions of registered types, names that follow patterns Co-Authored-By: Claude Opus 5.5 --- crates/rage-rpf/src/rpf9_names.rs | 180 +++++++++++++++++++---------- crates/rage-rpf/src/rpf9_native.rs | 63 ++++++++-- docs/rpf9-name-hashes.md | 9 +- docs/rpf9-scarlett.md | 10 +- 4 files changed, 187 insertions(+), 75 deletions(-) diff --git a/crates/rage-rpf/src/rpf9_names.rs b/crates/rage-rpf/src/rpf9_names.rs index 12b3ea6..0c974a4 100644 --- a/crates/rage-rpf/src/rpf9_names.rs +++ b/crates/rage-rpf/src/rpf9_names.rs @@ -94,73 +94,62 @@ fn fmix(mut value: u64) -> u64 { value ^ (value >> 33) } -/// The built-in native extension type for a lower-case extension without `.`. -/// -/// Only the observed static mapping is represented. Additional types can be -/// registered by the game; this function returns `None` for unknown types. -/// The z/i/# families are aliases for each numeric type. In particular the -/// GTA V `y` family is not assumed to be an alias. +/// The extensions of the built-in types, by number, after their family +/// prefix: `z`, `i` and `#` are aliases for each. 0 is `rpf`, without one. +const BUILT_IN: [&str; 19] = [ + "rpf", "mf", "dr", "ft", "dd", "td", "bn", "bd", "pd", "bs", "sd", "mt", "sc", "cs", "datb", "bdr", "bdd", "bft", + "vert", +]; +/// The number of the first type the game registers. +const REGISTERED_FROM: u8 = 64; +/// The extensions of the registered types, in the order of the executable's +/// table (pointers at VA 0x14618dd20 for the `#` family). Those that start +/// with `.` here have no family prefix. +const REGISTERED: [&str; 52] = [ + ".mrf", ".cut", ".gfx", "cd", "ld", "pmd", "pm", "ed", "pt", "map", "typ", "ch", "ldb", "jd", "ad", "nv", "nvs", + "pl", "nd", "vr", "wr", "nh", "fd", "as", "sm", "script", "ascript", "sma", ".iasf", "fc", "lfc", "cg", "asd", + ".rdb", "fbs", "cps", "sp", "tsl", "mmd", "fid", "msk", "hdat", "nmd", "smm", "ascd", "rd", "smam", "ldbmt", "nmd", + "kit", "cgc", "cov", +]; + +/// The type of a lower-case extension without `.`; `None` for extensions that +/// stay in a file's name. The `y` family of GTA V is not an alias. Of the two +/// types with the extension `nmd` this is the first. pub fn extension_type(extension: &str) -> Option { if extension == "rpf" { return Some(0); } - let rest = extension.strip_prefix(['z', 'i', '#'])?; - Some(match rest { - "mf" => 1, - "dr" => 2, - "ft" => 3, - "dd" => 4, - "td" => 5, - "bn" => 6, - "bd" => 7, - "pd" => 8, - "bs" => 9, - "sd" => 10, - "mt" => 11, - "sc" => 12, - "cs" => 13, - "datb" => 14, - "bdr" => 15, - "bdd" => 16, - "bft" => 17, - "vert" => 18, - _ => return None, - }) + let rest = extension.strip_prefix(['z', 'i', '#']); + let built_in = || BUILT_IN.iter().skip(1).position(|e| Some(*e) == rest).map(|i| i as u8 + 1); + let registered = || { + let found = REGISTERED.iter().position(|e| match e.strip_prefix('.') { + Some(whole) => whole == extension, + None => Some(*e) == rest, + }); + found.map(|i| i as u8 + REGISTERED_FROM) + }; + built_in().or_else(registered) } -/// The canonical extension for a built-in native type, the inverse of -/// [`extension_type`] over its `#` family. `None` for an unknown type. -/// Used to name an entry whose path is not recovered. -pub fn extension_for_type(type_id: u8) -> Option<&'static str> { - Some(match type_id { - 0 => "rpf", - 1 => "#mf", - 2 => "#dr", - 3 => "#ft", - 4 => "#dd", - 5 => "#td", - 6 => "#bn", - 7 => "#bd", - 8 => "#pd", - 9 => "#bs", - 10 => "#sd", - 11 => "#mt", - 12 => "#sc", - 13 => "#cs", - 14 => "#datb", - 15 => "#bdr", - 16 => "#bdd", - 17 => "#bft", - 18 => "#vert", - _ => return None, +/// The extension of a type, of the `#` family; the inverse of +/// [`extension_type`]. `None` for an unknown type. Used to name entries. +pub fn extension_for_type(type_id: u8) -> Option { + let extension = match type_id.checked_sub(REGISTERED_FROM) { + Some(index) => REGISTERED.get(usize::from(index))?, + None => BUILT_IN.get(usize::from(type_id))?, + }; + Some(match extension.strip_prefix('.') { + Some(whole) => whole.to_owned(), + None if type_id == 0 => (*extension).to_owned(), + None => format!("#{extension}"), }) } /// The extension an entry of this type is shown with when its own is not -/// known: the canonical one, or `type` for types the game registers. +/// known: the canonical one, or `type` for an unknown type. pub fn type_extension(type_id: u8) -> String { match extension_for_type(type_id) { - Some(ext) => ext.to_owned(), + Some(ext) => ext, None if type_id == u8::MAX => "bin".to_owned(), None => format!("type{type_id}"), } @@ -217,19 +206,68 @@ impl Dictionary { if hash32.is_some_and(|expected| expected != self::hash32(name.as_bytes())) { return None; } - // Texts differ in how they write folders; hashes ignore case. - let folder = name.rfind('/').map_or(0, |at| at + 1); - let name = name[..folder].to_ascii_lowercase() + &name[folder..]; - Some(if type_id == u8::MAX { name } else { format!("{name}.{}", type_extension(type_id)) }) + Some(with_type(name, type_id)) } } +/// The path of an entry with this name and type. +pub fn with_type(name: &str, type_id: u8) -> String { + // Texts differ in how they write folders; hashes ignore case. + let folder = name.rfind('/').map_or(0, |at| at + 1); + let name = name[..folder].to_ascii_lowercase() + &name[folder..]; + if type_id == u8::MAX { name } else { format!("{name}.{}", type_extension(type_id)) } +} + fn is_relative(path: &str) -> bool { path.len() >= 2 && !path.contains([':', '%']) && path.split('/').all(|part| !part.is_empty() && part != "." && part != "..") } +/// What follows a name in the name of a file that belongs to it. +const VARIANTS: [&str; 10] = ["", "_hi", "+hi", "_lod", "_b", "_c", "_decals", "_cloth", "_occl", "_metadata"]; + +/// Calls `try_name` with the names that files near the one called `name` +/// may have: its variants, and those of what it starts with. +pub fn related(name: &str, try_name: &mut dyn FnMut(&str)) { + let mut stem = name; + loop { + for variant in VARIANTS { + try_name(&format!("{stem}{variant}")); + } + let Some((shorter, _)) = stem.rsplit_once('_') else { break }; + stem = shorter; + } +} + +/// Calls `try_name` with the numbered names files of a type may have, in a +/// part of them: `part` is below [`GRID_PARTS`]. Navigation meshes and cover +/// are named by their cell of the world, collisions of the terrain by its +/// cell (`s09_w04_55`), height data by its tile. +pub fn numbered(type_id: u8, part: u32, try_name: &mut dyn FnMut(&str)) { + match type_id { + 79 | 100 | 115 => { + let name = if type_id == 115 { "coverregion" } else { "navmesh" }; + (0..GRID_PARTS).for_each(|y| try_name(&format!("{name}[{part}][{y}]"))); + } + 104 | 105 if part < 100 => { + let name = if type_id == 104 { "moverdeepsurfacetype" } else { "minmaxheight" }; + (0..100).for_each(|y| try_name(&format!("{name}/tile_{part}_{y}"))); + } + 6 if part < 80 => { + let row = format!("{}{:02}", if part < 40 { 'n' } else { 's' }, part % 40); + for column in 0..80 { + let cell = format!("{row}_{}{:02}", if column < 40 { 'e' } else { 'w' }, column % 40); + (0..300).for_each(|i| try_name(&format!("{cell}_{i}"))); + } + } + _ => {} + } +} + +/// Number of parts of [`numbered`]: more than the world has cells one way. +pub const GRID_PARTS: u32 = 512; + /// The texts in a file's data that may be paths or names of files. pub fn tokens(data: &[u8]) -> Vec { let belongs = |b: &u8| b.is_ascii_alphanumeric() || b"_/\\.-#@+$:".contains(b); @@ -369,6 +407,13 @@ mod tests { assert_eq!(extension_type("idr"), Some(2)); assert_eq!(extension_type("#dr"), Some(2)); assert_eq!(extension_type("ydr"), None); + assert_eq!((extension_type("vert"), extension_type("#vert"), extension_type("xml")), (None, Some(18), None)); + assert_eq!((extension_type("gfx"), extension_type("#gfx"), extension_type("zcd")), (Some(66), None, Some(67))); + assert_eq!((extension_type("#script"), extension_type("#cov")), (Some(89), Some(115))); + for id in (0..=18).chain(64..=115).filter(|id| *id != 112) { + assert_eq!(extension_type(&extension_for_type(id).unwrap()), Some(id)); + } + assert_eq!([19, 63, 116, 255].map(extension_for_type), [const { None }; 4]); let recognized = path_hashes("Models\\Example.ZDR"); assert_eq!( recognized, @@ -389,7 +434,7 @@ mod tests { let find = |name: &str, ty| names.find(hash64(name.as_bytes()), Some(hash32(name.as_bytes())), ty); assert_eq!(find("levels/props/barrel", 0).as_deref(), Some("levels/props/barrel.rpf")); assert_eq!(find("props/barrel", 2).as_deref(), Some("props/barrel.#dr")); - assert_eq!(find("barrel", 74).as_deref(), Some("barrel.type74")); + assert_eq!(find("barrel", 74).as_deref(), Some("barrel.#typ")); assert_eq!(find("movies/intro.bk2", 255).as_deref(), Some("movies/Intro.bk2")); assert_eq!(find("secret/file.xml", 255).as_deref(), Some("secret/file.xml")); assert!(find("../secret/file.xml", 255).is_none()); @@ -397,6 +442,21 @@ mod tests { assert_eq!(tokens(b"\x01ab\0data\\x.xml\xff123 name"), ["data/x.xml", "name"]); } + #[test] + fn generates_numbered_and_related_names() { + let has = |type_id, part, wanted: &str| { + let mut found = false; + numbered(type_id, part, &mut |name| found |= name == wanted); + found + }; + assert!(has(79, 204, "navmesh[204][293]") && has(115, 0, "coverregion[0][511]")); + assert!(has(104, 36, "moverdeepsurfacetype/tile_36_34") && has(105, 1, "minmaxheight/tile_1_41")); + assert!(has(6, 49, "s09_w04_55") && has(6, 1, "n01_e00_0") && !has(2, 1, "n01_e00_0")); + let mut names = Vec::new(); + related("sandking_4dr", &mut |name| names.push(name.to_owned())); + assert!(["sandking_4dr_hi", "sandking", "sandking+hi"].iter().all(|n| names.iter().any(|m| m == n))); + } + #[test] fn executable_candidates_are_literal_bounded_and_relative() { let bytes = b"\xffcommon:/Data\\Example.zdr\0common:/Data/Example.zdr\0intro.bk2\0audio.awc\0pack.rpf\0plain.txt\0../bad/file.xml\0https://host/file.xml\0/absolute/file.xml\0%s/path.xml\0word with no path\0unterminated/path.xml"; diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs index 9a81193..ba34892 100644 --- a/crates/rage-rpf/src/rpf9_native.rs +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -1,6 +1,6 @@ //! Executable-backed native RPF9 indexes. The executable is parsed as data. -use std::collections::HashMap; +use std::collections::{BTreeSet, HashMap}; use std::fs::File; use std::io::{BufReader, Read, Seek, SeekFrom, Write}; use std::path::{Path, PathBuf}; @@ -142,8 +142,11 @@ impl NativeArchive { } let mut archive = Self::open(path, base, extent, materials(path)?).ok()?; let learned = archive.learn_names(path, base); - if !learned.is_empty() { - archive.name_entries(&learned); + archive.name_entries(&learned); + let mut guessed = archive.guess_names(); + if !guessed.is_empty() { + guessed.extend(learned); + archive.name_entries(&guessed); } let archive = Arc::new(archive); let mut opened = OPENED.lock().ok()?; @@ -176,15 +179,59 @@ impl NativeArchive { } } + fn unnamed(&self) -> impl Iterator { + self.catalog + .entries + .iter() + .filter(|e| self.paths[e.slot].strip_prefix(UNNAMED).is_some_and(|rest| rest.starts_with('/'))) + } + + /// Names of unnamed entries that follow from a pattern or from the names + /// of others in the archive; checked against the hashes in the table. + fn guess_names(&self) -> HashMap { + let mut wanted: HashMap> = HashMap::new(); + let mut types = BTreeSet::new(); + for e in self.unnamed() { + if let Some(hash) = e.name_hash64 { + wanted.entry(hash).or_default().push(e); + types.insert(e.type_id); + } + } + let matching = |name: &str, found: &mut Vec<(usize, String)>| { + for e in wanted.get(&rpf9_names::hash64(name.as_bytes())).into_iter().flatten() { + if e.name_hash32.is_none_or(|hash| hash == rpf9_names::hash32(name.as_bytes())) { + found.push((e.slot, rpf9_names::with_type(name, e.type_id))); + } + } + }; + let mut found: Vec<(usize, String)> = types + .into_par_iter() + .flat_map(|type_id| (0..rpf9_names::GRID_PARTS).into_par_iter().map(move |part| (type_id, part))) + .flat_map_iter(|(type_id, part)| { + let mut found = Vec::new(); + rpf9_names::numbered(type_id, part, &mut |name| matching(name, &mut found)); + found + }) + .collect(); + if !wanted.is_empty() { + found.par_extend(self.paths.par_iter().flat_map_iter(|path| { + let mut found = Vec::new(); + let stem = path.rsplit_once('.').map_or(path.as_str(), |(stem, _)| stem); + rpf9_names::related(stem, &mut |name| matching(name, &mut found)); + found + })); + } + found.into_iter().collect() + } + /// Names of unnamed entries, found in their own data: models, clip /// dictionaries and some others hold their name. What is found is /// checked against the hash in the table. fn learn_names(&self, path: &Path, base: u64) -> HashMap { - self.catalog - .entries - .par_iter() - .filter(|e| SELF_NAMED.contains(&e.type_id) && e.size <= LEARN_MAX) - .filter(|e| self.paths[e.slot].strip_prefix(UNNAMED).is_some_and(|rest| rest.starts_with('/'))) + let candidates: Vec<&NativeEntry> = + self.unnamed().filter(|e| SELF_NAMED.contains(&e.type_id) && e.size <= LEARN_MAX).collect(); + candidates + .into_par_iter() .filter_map(|e| { let wanted = e.name_hash64?; let mut data = Vec::new(); diff --git a/docs/rpf9-name-hashes.md b/docs/rpf9-name-hashes.md index d731558..49150c0 100644 --- a/docs/rpf9-name-hashes.md +++ b/docs/rpf9-name-hashes.md @@ -92,11 +92,14 @@ families, with prefixes `z`, `i`, and `#`: | 18 | vert | The dispatcher uses the imported C `strcmp` and can consult additional -registered callbacks. `y`-prefixed GTA V extensions are not assumed to be +registered callbacks. The registered types are numbered from 64 in the order +of three more pointer tables of 52 strings each, before VA `0x14618dec0` (the +`#` family; the `z` and `i` families precede it): `mrf`, `cut`, `gfx`, `#cd`, +`#ld`, … `#cov`. The numbers agree with the content of the archives (66 +Scaleform, 67 clips, 72 particles, 79 navigation meshes, 89 scripts). `y`-prefixed GTA V extensions are not assumed to be aliases. The Rust candidate helper lowercases extensions before matching as an explicit candidate-generation convention, rather than claiming that the -native `strcmp` itself ignores case. Runtime extension registrations and -their complete type dictionary remain unobserved. +native `strcmp` itself ignores case. ## Candidate collection diff --git a/docs/rpf9-scarlett.md b/docs/rpf9-scarlett.md index 50c1338..020ee2b 100644 --- a/docs/rpf9-scarlett.md +++ b/docs/rpf9-scarlett.md @@ -116,14 +116,16 @@ executable and in the files of `common.rpf` and `data.rpf`, checked against the hashes. They cover most top-level files. Inside nested archives, drawables, fragments, clip dictionaries and some other types hold their own name, which is checked against the hash the same way (over 99% of drawables and fragments in a sample -of 1,826 archives). Files without a name are listed as +of 1,826 archives). Some names follow a pattern: navigation meshes +(`navmesh[204][293]`), cover (`coverregion[199][257]`), height and surface +tiles, the terrain's collisions (`s09_w04_55`) and variants of other files +(`_hi`, `+hi`, `_lod`). Files without a name are listed as `entries/_`. ## Remaining work -Names of the other types inside nested archives (textures, collisions, maps), -the extensions of types the game registers at -run time (shown as `type`), signature checks and archive writing. +Names of the other types inside nested archives (most textures, maps and the +collisions of buildings) and of the audio archives, signature checks and archive writing. ## Local recovery validation From 036e5f022e5d37011cbd327ab09015feecfb5390 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 05:01:48 +0100 Subject: [PATCH 06/31] GTA VI: tell sounds and other unnamed files by their content Co-Authored-By: Claude Opus 5.5 --- crates/rage-rpf/src/rpf9.rs | 38 +++++++++++++++++------------- crates/rage-rpf/src/rpf9_native.rs | 38 ++++++++++++++++++++++++++++-- 2 files changed, 58 insertions(+), 18 deletions(-) diff --git a/crates/rage-rpf/src/rpf9.rs b/crates/rage-rpf/src/rpf9.rs index 3fbdd24..de42075 100644 --- a/crates/rage-rpf/src/rpf9.rs +++ b/crates/rage-rpf/src/rpf9.rs @@ -149,25 +149,31 @@ impl Entry { if self.is_resource() { return "res".into(); } - let head = self.head(); - let text = head.strip_prefix(b"\xEF\xBB\xBF").unwrap_or(head); - // Text only when all of the first bytes are: binary files start with - // `<` and a letter often enough (an offset table, for instance). - let printable = |b: &u8| b.is_ascii_graphic() || matches!(b, b' ' | b'\t' | b'\r' | b'\n'); - if !text.is_empty() && text.iter().all(printable) { - let markup = text.starts_with(b" Option { + if head.starts_with(b"ADAT") { + return Some("awc".into()); + } + if head.starts_with(b"KB2") { + return Some("bk2".into()); + } + let text = head.strip_prefix(b"\xEF\xBB\xBF").unwrap_or(head); + // Text only when all of the first bytes are: binary files start with + // `<` and a letter often enough (an offset table, for instance). + let printable = |b: &u8| b.is_ascii_graphic() || matches!(b, b' ' | b'\t' | b'\r' | b'\n'); + if !text.is_empty() && text.iter().all(printable) { + let markup = text.starts_with(b", /// Lower-case path to slot. by_path: HashMap, + /// Extensions of unnamed entries without a type, from their content. + sniffed: HashMap, } fn u16_at(b: &[u8], at: usize) -> Option { @@ -126,7 +128,8 @@ impl NativeArchive { file.read_exact(&mut bytes[64..]).map_err(|e| e.to_string())?; decode_header(&materials.cipher, &mut bytes).ok_or("unsupported or damaged native header transform")?; let catalog = Catalog::parse(bytes, extent)?; - let mut archive = Self { catalog, materials, paths: Vec::new(), by_path: HashMap::new() }; + let mut archive = + Self { catalog, materials, paths: Vec::new(), by_path: HashMap::new(), sniffed: HashMap::new() }; archive.name_entries(&HashMap::new()); Ok(archive) } @@ -142,6 +145,7 @@ impl NativeArchive { } let mut archive = Self::open(path, base, extent, materials(path)?).ok()?; let learned = archive.learn_names(path, base); + archive.sniffed = archive.sniff(path, base); archive.name_entries(&learned); let mut guessed = archive.guess_names(); if !guessed.is_empty() { @@ -171,7 +175,8 @@ impl NativeArchive { }) .filter(|name| !self.by_path.contains_key(&name.to_ascii_lowercase())); let path = name.unwrap_or_else(|| { - let ext = rpf9_names::type_extension(entry.type_id); + let sniffed = self.sniffed.get(&entry.slot).cloned(); + let ext = sniffed.unwrap_or_else(|| rpf9_names::type_extension(entry.type_id)); format!("{UNNAMED}/{:06}_{:016x}.{ext}", entry.slot, entry.name_hash64.unwrap_or(0)) }); self.by_path.insert(path.to_ascii_lowercase(), entry.slot); @@ -224,6 +229,35 @@ impl NativeArchive { found.into_iter().collect() } + /// The extensions of unnamed entries without a type, by how they start. + fn sniff(&self, path: &Path, base: u64) -> HashMap { + /// Takes the first bytes, then ends the unpacking. + struct Head(Vec); + impl Write for Head { + fn write(&mut self, buf: &[u8]) -> std::io::Result { + if self.0.len() >= 16 { + return Err(std::io::ErrorKind::WriteZero.into()); + } + let n = buf.len().min(16 - self.0.len()); + self.0.extend_from_slice(&buf[..n]); + Ok(n) + } + fn flush(&mut self) -> std::io::Result<()> { + Ok(()) + } + } + let unnamed: Vec<&NativeEntry> = self.unnamed().filter(|e| e.type_id == u8::MAX).collect(); + unnamed + .into_par_iter() + .filter_map(|e| { + let mut head = Head(Vec::new()); + // Fails when the head is full, which is fine. + let _ = self.copy_to(path, base, e, &mut head); + Some((e.slot, crate::rpf9::extension_of(&head.0)?)) + }) + .collect() + } + /// Names of unnamed entries, found in their own data: models, clip /// dictionaries and some others hold their name. What is found is /// checked against the hash in the table. From 58b546af2acc1883038c7b6c2c6b5f124a634c2e Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 05:17:55 +0100 Subject: [PATCH 07/31] GTA VI: texture dictionaries, maps and types; containers with one sound play at once Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/metadata.rs | 14 ++- crates/openrage-app/src/rpf9.rs | 13 +++ crates/openrage-app/src/textures.rs | 6 ++ crates/openrage-cli/src/cmd/edit.rs | 1 + crates/openrage-gui/src/browser.rs | 7 +- crates/openrage-gui/src/callbacks.rs | 21 ++++ crates/openrage-gui/src/preview.rs | 10 +- crates/openrage-gui/src/sound_ui.rs | 47 ++++---- crates/rage-formats/src/lib.rs | 1 + crates/rage-formats/src/meta.rs | 74 +++++++++++-- crates/rage-formats/src/td6.rs | 154 +++++++++++++++++++++++++++ crates/rage-formats/src/ttpf.rs | 24 ++++- 12 files changed, 334 insertions(+), 38 deletions(-) create mode 100644 crates/rage-formats/src/td6.rs diff --git a/crates/openrage-app/src/metadata.rs b/crates/openrage-app/src/metadata.rs index e352788..df439a0 100644 --- a/crates/openrage-app/src/metadata.rs +++ b/crates/openrage-app/src/metadata.rs @@ -12,7 +12,7 @@ use rage_resource::Resource; use rage_rpf::vfs::Node; /// Extensions of files that hold metadata. -pub const EXTENSIONS: &[&str] = &["ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0", "#mt"]; +pub const EXTENSIONS: &[&str] = &["ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0", "#mt", "#map", "#typ"]; pub fn is_metadata(name: &str) -> bool { let lower = name.to_ascii_lowercase(); @@ -114,6 +114,16 @@ pub fn from_rpf8(rpf: &rage_rpf::Rpf8, i: usize) -> Result { from_bytes_rdr2(&rpf.read(entry)?) } +/// Converts a metadata file in a GTA VI archive (resource or PSO) to XML. +pub fn from_rpf9(rpf: &rage_rpf::Rpf9, i: usize) -> Result { + match crate::rpf9::resource(rpf, i) { + Ok((system, graphics)) if rage_formats::meta::is_gta6(&system) => { + from_resource(&Resource { version: rage_formats::meta::VERSION_RDR2, system, graphics }) + } + _ => from_bytes(&rpf.read_at(i)?), + } +} + /// Reads a metadata file (mods included) and converts it to XML. pub fn load(game_dir: &Path, keys: Option>, vpath: &str) -> Result { let (node, _) = rage_mods::resolve(game_dir, vpath, keys)?; @@ -121,7 +131,7 @@ pub fn load(game_dir: &Path, keys: Option>, vpath: &str) -> Result Node::ArchiveFile(rpf, id) => rpf.read(id)?, Node::PlainFile(p) => std::fs::read(p)?, Node::Rpf8File(rpf, i) => return from_rpf8(&rpf, i), - Node::Rpf9File(rpf, i) => rpf.read_at(i)?, + Node::Rpf9File(rpf, i) => return from_rpf9(&rpf, i), _ => bail!("{vpath} is not a file"), }; from_bytes(&data) diff --git a/crates/openrage-app/src/rpf9.rs b/crates/openrage-app/src/rpf9.rs index 2dc4acc..3afe4e3 100644 --- a/crates/openrage-app/src/rpf9.rs +++ b/crates/openrage-app/src/rpf9.rs @@ -299,6 +299,19 @@ pub fn coverage(rpf: &Rpf9, entries: &[Entry]) -> Coverage { } } +/// The system and graphics parts of a resource. +pub fn resource(rpf: &Rpf9, index: usize) -> Result<(Vec, Vec)> { + let entries = rpf.entries()?; + let entry = entries.get(index).context("no such entry")?; + let (system, _) = rpf.resource_parts(entry).context("not a resource")?; + let mut data = rpf.read(entry)?; + if system as usize > data.len() { + anyhow::bail!("the resource is cut off"); + } + let graphics = data.split_off(system as usize); + Ok((data, graphics)) +} + /// Extracts from a GTA VI archive into `out`: one file (`file`), or /// everything below folder `dir`. Files are written unpacked, straight to /// disk; with `expand`, archives inside become folders. Unreadable files are diff --git a/crates/openrage-app/src/textures.rs b/crates/openrage-app/src/textures.rs index 656f007..e2b2d9d 100644 --- a/crates/openrage-app/src/textures.rs +++ b/crates/openrage-app/src/textures.rs @@ -93,6 +93,12 @@ pub fn edit_textures( Ok((result, applied.path)) } +/// The textures of a GTA VI dictionary (`.#td`). +pub fn gta6_dictionary(rpf: &rage_rpf::Rpf9, index: usize) -> Result { + let (system, graphics) = crate::rpf9::resource(rpf, index)?; + Ok(rage_formats::td6::parse(&system, &graphics)?) +} + /// The extension of a GTA V model (`ydr`, `yft`, `ydd`) named by `vpath`. pub fn gta5_model_ext(vpath: &str) -> Option<&str> { let ext = vpath.rsplit('.').next()?; diff --git a/crates/openrage-cli/src/cmd/edit.rs b/crates/openrage-cli/src/cmd/edit.rs index bf1a3f8..0d43343 100644 --- a/crates/openrage-cli/src/cmd/edit.rs +++ b/crates/openrage-cli/src/cmd/edit.rs @@ -57,6 +57,7 @@ pub(crate) fn load_ytd( .with_context(|| format!("{path} is not a file inside an archive or an RSC8 resource"))?; Ok(rage_formats::ytd::parse_rdr2(&res)?) } + Node::Rpf9File(rpf, i) => openrage_app::textures::gta6_dictionary(&rpf, i), _ => bail!("{path} is not a file inside an archive"), } } diff --git a/crates/openrage-gui/src/browser.rs b/crates/openrage-gui/src/browser.rs index a53cdfb..2dd8de4 100644 --- a/crates/openrage-gui/src/browser.rs +++ b/crates/openrage-gui/src/browser.rs @@ -118,7 +118,7 @@ pub fn is_audio(name: &str) -> bool { /// Whether a file name is a texture dictionary that can be opened like a folder. pub fn is_texture_dict(name: &str) -> bool { let lower = name.to_ascii_lowercase(); - lower.ends_with(".ytd") || lower.ends_with(".ypt") || lower.ends_with(".wtd") + lower.ends_with(".ytd") || lower.ends_with(".ypt") || lower.ends_with(".wtd") || lower.ends_with(".#td") } /// GTA VI texture pools (`.ttpf`): they open as folders of [`POOL_PAGE`] @@ -377,6 +377,11 @@ pub fn list( } Node::PlainFile(file) if is_texture_pool(&vpath) => Ok((list_pool(vpath, &file, origin)?, None)), Node::Rpf9Dir(rpf, dir) => Ok((list_rpf9(vpath, rpf, dir, origin)?, None)), + Node::Rpf9File(rpf, i) if is_texture_dict(&vpath) => { + let dict = openrage_app::textures::gta6_dictionary(&rpf, i) + .map_err(|e| RpfError::BadResource { path: vpath.clone(), reason: format!("{e:#}") })?; + Ok((texture_listing(vpath, dict, origin, true), None)) + } Node::Rpf9File(rpf, i) if is_audio(&vpath) => { let awc = rage_formats::awc::Awc::parse(rpf.read_at(i)?, None) .map_err(|e| RpfError::BadResource { path: vpath.clone(), reason: format!("{e:#}") })?; diff --git a/crates/openrage-gui/src/callbacks.rs b/crates/openrage-gui/src/callbacks.rs index 34cce21..2522efc 100644 --- a/crates/openrage-gui/src/callbacks.rs +++ b/crates/openrage-gui/src/callbacks.rs @@ -182,6 +182,27 @@ fn wire_files(ui: &AppWindow) { open_with_system(ui, vpath); return; } + // An audio container with one sound: the row plays it (it is + // selected, so the sound is loaded or about to be). + let is_container = with_app(|a| { + let listing = a.listing.as_ref()?; + let item = &listing.items[*a.visible.get(i as usize)?]; + Some(item.kind == ItemKind::File && item.vpath.is_none() && browser::is_audio(&item.name)) + }); + if is_container == Some(true) { + if ui.get_file_selected() != i { + select_row(ui, i as usize); + } + if ui.get_audio_mode() { + toggle_sound(ui); + return; + } + // Still decoding; a container with several has its list by now. + if ui.get_preview_loading() { + with_app(|a| a.play_when_ready = true); + return; + } + } let is_ycd = with_app(|a| { let listing = a.listing.as_ref()?; Some(is_clip_dictionary(&listing.items[*a.visible.get(i as usize)?])) diff --git a/crates/openrage-gui/src/preview.rs b/crates/openrage-gui/src/preview.rs index 974c971..52e320b 100644 --- a/crates/openrage-gui/src/preview.rs +++ b/crates/openrage-gui/src/preview.rs @@ -183,7 +183,7 @@ pub(crate) fn select_row(ui: &AppWindow, row: usize) { return; } if browser::is_audio(&item.name) && item.kind == ItemKind::File && item.mark != Some(Mark::Removed) { - show_audio_container(ui, vpath.clone(), info); + show_audio_container(ui, vpath.clone(), info, generation); return; } if item.kind == ItemKind::Sound { @@ -861,6 +861,14 @@ pub(crate) fn rpf9_preview(rpf: &rage_rpf::Rpf9, i: usize) -> (Meta, String) { meta.push(kv("System part", openrage_app::extract::human_size(system))); meta.push(kv("Graphics part", openrage_app::extract::human_size(graphics))); } + if openrage_app::metadata::is_metadata(&rpf.entry_name(e)) + && e.size <= 64 << 20 + && let Ok(xml) = openrage_app::metadata::from_rpf9(rpf, i) + { + let (more, text) = metadata_lines(xml); + meta.extend(more); + return (meta, text); + } if matches!(e.kind, rage_rpf::rpf9::Kind::Bink2 | rage_rpf::rpf9::Kind::Awc) || rpf.is_archive(e) { return (meta, String::new()); } diff --git a/crates/openrage-gui/src/sound_ui.rs b/crates/openrage-gui/src/sound_ui.rs index 77a04aa..1fd8b56 100644 --- a/crates/openrage-gui/src/sound_ui.rs +++ b/crates/openrage-gui/src/sound_ui.rs @@ -3,41 +3,34 @@ use crate::*; /// Selecting an `.awc`: its sounds as a list (click one to play it). -pub(crate) fn show_audio_container(ui: &AppWindow, vpath: String, mut info: Meta) { +/// A container with only one sound is played like a sound. +pub(crate) fn show_audio_container(ui: &AppWindow, vpath: String, mut info: Meta, generation: u64) { let (keys, rdr2) = with_app(|a| (a.keys.clone(), a.game_dir.as_deref().is_some_and(is_rdr2_dir))); let parse = |d: Vec| -> anyhow::Result { if rdr2 { Ok(rage_formats::awc::Awc::parse_rdr2(d)?) } else { openrage_app::audio::parse(d, keys.as_deref()) } }; match read_file(ui, &vpath).and_then(parse) { + Ok(awc) if awc.stream_format.is_some() || awc.sounds.len() == 1 => { + start_sound_preview(ui, Arc::new(awc), 0, info, generation); + } Ok(awc) => { - let (names, rows): (Vec, Vec) = match &awc.stream_format { - Some(f) => { - let stem = vpath.rsplit('/').next().unwrap_or(&vpath).trim_end_matches(".awc").to_owned(); - let secs = awc.sounds.first().map_or(0.0, |s| s.duration_secs()); - let name = format!("{stem} (stream)"); - let info = format!("{} · {} channels · music/stream", browser::seconds(secs), f.channels); - (vec![name.clone()], vec![ClipRow { name: name.into(), info: info.into() }]) - } - None => awc - .sounds - .iter() - .map(|s| { - let name = format!("{:08x}", s.id); - let info = format!( - "{} · {} Hz · {}", - browser::seconds(s.duration_secs()), - s.sample_rate, - s.codec.name().replace("codec 7", "MPEG") - ); - (name.clone(), ClipRow { name: name.into(), info: info.into() }) - }) - .unzip(), - }; + let (names, rows): (Vec, Vec) = awc + .sounds + .iter() + .map(|s| { + let name = format!("{:08x}", s.id); + let info = format!( + "{} · {} Hz · {}", + browser::seconds(s.duration_secs()), + s.sample_rate, + s.codec.name().replace("codec 7", "MPEG") + ); + (name.clone(), ClipRow { name: name.into(), info: info.into() }) + }) + .unzip(); let total: f32 = awc.sounds.iter().map(|s| s.duration_secs()).sum(); info.push(kv("Contains", format!("{} sound(s)", rows.len()))); - if awc.stream_format.is_none() { - info.push(kv("Total length", browser::seconds(total))); - } + info.push(kv("Total length", browser::seconds(total))); if awc.encrypted || awc.flags & 0xA != 0 { info.push(kv("Encrypted", "yes")); } diff --git a/crates/rage-formats/src/lib.rs b/crates/rage-formats/src/lib.rs index 39189f6..4461643 100644 --- a/crates/rage-formats/src/lib.rs +++ b/crates/rage-formats/src/lib.rs @@ -32,6 +32,7 @@ pub mod pso; pub mod rbf; pub mod sco; pub mod shaders; +pub mod td6; pub mod texture; pub mod ttpf; pub mod wad; diff --git a/crates/rage-formats/src/meta.rs b/crates/rage-formats/src/meta.rs index 4bb9342..22aa446 100644 --- a/crates/rage-formats/src/meta.rs +++ b/crates/rage-formats/src/meta.rs @@ -61,6 +61,17 @@ mod ty { pub const OPAQUE32: u8 = 0x53; /// RDR2: a map; the entry's key holds the key and value type indices. pub const MAP: u8 = 0x71; + /// GTA VI: 2D vector, 3D vector without padding, 3×4 matrix. + pub const VEC2: u8 = 0x30; + pub const VEC3: u8 = 0x32; + pub const MATRIX34: u8 = 0x35; + /// GTA VI: another 32-bit name hash, a 64-bit one, a 16-bit enum. + pub const HASH2: u8 = 0x4D; + pub const HASH64: u8 = 0x4F; + pub const SHORT_ENUM: u8 = 0x61; + /// GTA VI: 16-byte values of unknown layout (shown as bytes). + pub const OPAQUE16: u8 = 0x5C; + pub const OPAQUE16B: u8 = 0x67; pub const STRUCTURE: u8 = 0x05; pub const STRUCTURE_POINTER: u8 = 0x07; pub const SBYTE: u8 = 0x10; @@ -123,6 +134,12 @@ pub fn is_meta(version: u32) -> bool { version == VERSION || version == VERSION_RDR2 } +/// Whether this is the system part of a GTA VI meta file. They are laid out +/// like Red Dead Redemption 2's ([`VERSION_RDR2`]). +pub fn is_gta6(system: &[u8]) -> bool { + system.get(0x10..0x18) == Some(b"0DRP\x7a\0\0\0") +} + pub fn parse(res: &Resource) -> Result { let root = Resource::ROOT; let i16_at = |off: u64| -> Result { Ok((res.u16(root + off)? as i16).max(0) as usize) }; @@ -133,7 +150,9 @@ pub fn parse(res: &Resource) -> Result { let shift = if res.version == VERSION_RDR2 { 8 } else { 0 }; let root_block = res.u32(root + if res.version == VERSION_RDR2 { 0x20 } else { 0x1C })? as usize; let name_ptr = res.u64(root + 0x38 + shift)?; - let name = if name_ptr != 0 { res.string(name_ptr).unwrap_or_default() } else { String::new() }; + // GTA VI has a list in place of the name. + let name = + if name_ptr != 0 && !is_gta6(&res.system) { res.string(name_ptr).unwrap_or_default() } else { String::new() }; let mut structs = HashMap::new(); let infos = res.u64(root + 0x20 + shift)?; @@ -232,6 +251,11 @@ fn vector_attrs(name: &str, v: &[f32]) -> String { s } +/// A 64-bit name hash; nothing for 0. +fn hash64_text(hash: u64) -> String { + if hash == 0 { String::new() } else { format!("hash_{hash:016X}") } +} + #[derive(Clone, Copy, PartialEq)] enum Tag { None, @@ -424,7 +448,7 @@ impl Meta { ty::FLOAT => w.value(level, ename, &xml::float(f32_at(data, at)?)), ty::FLOAT_XYZ => w.empty(level, &vector_attrs(ename, &vector(data, at, 3)?)), ty::FLOAT_XYZW => w.empty(level, &vector_attrs(ename, &vector(data, at, 4)?)), - ty::HASH => w.string(level, ename, &names::value(u32_at(data, at)?)), + ty::HASH | ty::HASH2 => w.string(level, ename, &names::value(u32_at(data, at)?)), // RDR2's 0x63 flags are a single byte. ty::INT_FLAGS1 if self.offset_shift == 20 => { w.string(level, ename, &self.enum_string(entry, i32::from(byte(at)?))); @@ -446,9 +470,18 @@ impl Meta { m.chunks(4).map(|r| r.iter().map(|v| xml::float(*v)).collect::>().join(" ")).collect(); w.raw_array(level, ename, &rows, 1); } - ty::OPAQUE32 => { + ty::VEC2 => w.empty(level, &vector_attrs(ename, &vector(data, at, 2)?)), + ty::VEC3 => w.empty(level, &vector_attrs(ename, &vector(data, at, 3)?)), + ty::MATRIX34 => { + let v: Vec = vector(data, at, 12)?.into_iter().map(xml::float).collect(); + w.raw_array(level, ename, &v, 4); + } + ty::HASH64 => w.text(level, ename, &hash64_text(u64_at(data, at)?)), + ty::SHORT_ENUM => w.value(level, ename, &u16_at(data, at)?.to_string()), + ty::OPAQUE32 | ty::OPAQUE16 | ty::OPAQUE16B => { + let size = if entry.kind == ty::OPAQUE32 { 32 } else { 16 }; let b: Vec = - (0..32).map(|i| byte(at + i).map(|v| format!("{v:02X}"))).collect::>()?; + (0..size).map(|i| byte(at + i).map(|v| format!("{v:02X}"))).collect::>()?; w.raw_array(level, ename, &b, 16); } ty::SINT => w.value(level, ename, &(u32_at(data, at)? as i32).to_string()), @@ -519,7 +552,9 @@ impl Meta { ty::ARRAY => 16, ty::STRUCTURE => self.structs.get(&value_entry.key).map_or(8, |s| s.size), ty::INT_FLAGS1 if self.offset_shift == 20 => 1, - ty::HASH | ty::UINT | ty::SINT | ty::FLOAT | ty::INT_ENUM | ty::INT_FLAGS1 | ty::INT_FLAGS2 => 4, + ty::HASH | ty::HASH2 | ty::UINT | ty::SINT | ty::FLOAT | ty::INT_ENUM | ty::INT_FLAGS1 | ty::INT_FLAGS2 => { + 4 + } ty::BOOLEAN | ty::UBYTE | ty::SBYTE | ty::BYTE_ENUM => 1, ty::USHORT | ty::SSHORT | ty::SHORT_FLAGS => 2, ty::FLOAT_XYZ | ty::FLOAT_XYZW => 16, @@ -637,7 +672,34 @@ impl Meta { })?; w.item_array(level, ename, &v); } - ty::HASH => { + ty::HASH64 => { + let v = numbers(8, &|b| hash64_text(u64::from_le_bytes(b.try_into().unwrap_or_default())))?; + w.item_array(level, ename, &v); + } + ty::ULONG | ty::ULONG2 => { + let v = numbers(8, &|b| u64::from_le_bytes(b.try_into().unwrap_or_default()).to_string())?; + w.raw_array(level, ename, &v, 10); + } + ty::SINT => { + let v = numbers(4, &|b| i32::from_le_bytes(b.try_into().unwrap_or_default()).to_string())?; + w.raw_array(level, ename, &v, 10); + } + ty::SSHORT => { + let v = numbers(2, &|b| i16::from_le_bytes(b.try_into().unwrap_or_default()).to_string())?; + w.raw_array(level, ename, &v, 10); + } + ty::FLOAT_XYZW => { + let v = numbers(16, &|b| { + b.as_chunks::<4>() + .0 + .iter() + .map(|c| xml::float(f32::from_le_bytes(*c))) + .collect::>() + .join(", ") + })?; + w.item_array(level, ename, &v); + } + ty::HASH | ty::HASH2 => { let v = numbers(4, &|b| names::value(u32::from_le_bytes(b.try_into().unwrap_or_default())))?; w.item_array(level, ename, &v); } diff --git a/crates/rage-formats/src/td6.rs b/crates/rage-formats/src/td6.rs new file mode 100644 index 0000000..8c28208 --- /dev/null +++ b/crates/rage-formats/src/td6.rs @@ -0,0 +1,154 @@ +//! GTA VI texture dictionaries (`.#td`). +//! +//! Layout of the system part (pointers into it start at `0x5000_0000`, into +//! the graphics part at `0x6000_0000`): name hashes at 32 and texture +//! pointers at 48, each a pointer and a 16-bit count. A texture has, from its +//! start: at 8 the size of its data in elements (pixels, or 4×4 blocks), at 24 the pointer +//! to it, at 48 8 bytes before its name, at 56 width, height and slices (16 bits each), then +//! a byte each for the shape (1: 2D, 2: cube map, 3: volume) and the pixel +//! format (DXGI), at 66 the number of mip levels (7 bits). +//! +//! The data is tiled like that of the texture pools ([`crate::ttpf`]), which +//! tile size is told by its length. The slices of an array follow each other. + +use rage_core::bytes::LeRead; + +use crate::texture::{Dimension, Format, Texture}; +use crate::ttpf::Tiling; +use crate::ytd::{Layout, TextureDictionary}; + +const SYSTEM: u64 = 0x5000_0000; +const GRAPHICS: u64 = 0x6000_0000; +const PART: u64 = 0x1000_0000; + +#[derive(Debug, thiserror::Error)] +#[error("not a GTA VI texture dictionary: {0}")] +pub struct TdError(&'static str); + +fn system_pointer(system: &[u8], at: usize) -> Option { + let p = system.u64_at(at)?; + (SYSTEM..SYSTEM + PART).contains(&p).then(|| (p - SYSTEM) as usize) +} + +/// Reads the textures of a dictionary: the largest level of each, of every +/// slice of an array and face of a cube map. Those that cannot be read are +/// listed as errors. +pub fn parse(system: &[u8], graphics: &[u8]) -> Result { + if system.len() < 64 || system.u64_at(0) != Some(0) || system_pointer(system, 8).is_none() { + return Err(TdError("no resource header")); + } + let count = usize::from(system.u16_at(56).unwrap_or(0)); + let list = match system_pointer(system, 48) { + Some(list) => list, + None if count == 0 => 0, + None => return Err(TdError("no list of textures")), + }; + if list + count * 8 > system.len() { + return Err(TdError("the list of textures is cut off")); + } + let mut dict = TextureDictionary { + textures: Vec::with_capacity(count), + errors: Vec::new(), + layout: Layout::Enhanced, + version: 0, + root: Vec::new(), + stored: Vec::new(), + }; + for i in 0..count { + let at = system_pointer(system, list + i * 8); + let name = at.and_then(|at| name(system, at)).unwrap_or_else(|| format!("texture_{i}")); + match at.map(|at| texture(system, graphics, at, name.clone())) { + Some(Ok(texture)) => dict.textures.push(texture), + Some(Err(reason)) => dict.errors.push(format!("{name}: {reason}")), + None => dict.errors.push(format!("{name}: no such texture")), + } + } + Ok(dict) +} + +fn name(system: &[u8], at: usize) -> Option { + let bytes = system.get(system_pointer(system, at + 48)? + 8..)?; + let end = bytes.iter().take(256).position(|b| *b == 0)?; + let name = std::str::from_utf8(&bytes[..end]).ok()?; + (!name.is_empty() && !name.chars().any(char::is_control)).then(|| name.to_owned()) +} + +fn texture(system: &[u8], graphics: &[u8], at: usize, name: String) -> Result { + let record = system.get(at..at + 80).ok_or("its record is cut off")?; + let u16_at = |at: usize| u32::from(record.u16_at(at).unwrap_or(0)); + let (width, height, slices) = (u16_at(56), u16_at(58), u16_at(60)); + let (shape, format, mips) = (record[62], u32::from(record[63]), u32::from(record[66] & 0x7f)); + let element = crate::ttpf::element_bytes(format).ok_or_else(|| format!("unknown pixel format {format}"))?; + let size = record.u32_at(8).unwrap_or(0) as usize * element; + if width == 0 || height == 0 || !(1..=4096).contains(&slices) { + return Err("impossible size".into()); + } + let dimension = match shape { + 1 => Dimension::Texture2D, + 2 => Dimension::Cube, + _ => return Err("a volume, which is not read yet".into()), + }; + let offset = record.u64_at(24).and_then(|p| p.checked_sub(GRAPHICS)).filter(|o| *o < PART); + let offset = offset.ok_or("its data is not in this file")? as usize; + let data = graphics.get(offset..).and_then(|d| d.get(..size)).ok_or("its data is cut off")?; + let tiling = Tiling::by_size(width, height, mips, format, slices, size).ok_or("its layout is not understood")?; + let mut rows = Vec::new(); + for slice in 0..slices as usize { + rows.extend(tiling.largest(data, slice).ok_or("its data is cut off")?); + } + Ok(Texture { + name, + width, + height, + depth: slices, + levels: 1, + format: Format(format), + dimension, + usage: 0, + data: rows, + }) +} + +#[cfg(test)] +mod tests { + use super::*; + + fn dictionary(shape: u8) -> (Vec, Vec) { + let mut system = vec![0u8; 0x100]; + let put = |s: &mut Vec, at: usize, v: u64| s[at..at + 8].copy_from_slice(&v.to_le_bytes()); + put(&mut system, 8, SYSTEM + 0xf0); + put(&mut system, 48, SYSTEM + 0xe0); + system[56] = 1; + put(&mut system, 0xe0, SYSTEM + 0x40); + // 64×64 pixels of 4 bytes: 4 tiles of 4 KiB. + put(&mut system, 0x48, 0x1000); + put(&mut system, 0x58, GRAPHICS); + put(&mut system, 0x70, SYSTEM + 0xa0); + system[0x78..0x82].copy_from_slice(&[64, 0, 64, 0, 1, 0, shape, 28, 5, 0]); + system[0x82] = 1; + system[0xa8..0xac].copy_from_slice(b"tile"); + let mut graphics = vec![0u8; 0x4000]; + // The first pixel of the second tile is the 33rd of the first row. + graphics[0x1000..0x1004].copy_from_slice(&[1, 2, 3, 4]); + (system, graphics) + } + + #[test] + fn reads_a_tiled_texture() { + let (system, graphics) = dictionary(1); + let dict = parse(&system, &graphics).unwrap(); + let t = &dict.textures[0]; + assert_eq!((t.name.as_str(), t.width, t.height, t.data.len()), ("tile", 64, 64, 0x4000)); + assert_eq!(t.data[32 * 4..33 * 4], [1, 2, 3, 4]); + } + + #[test] + fn damaged_dictionaries_are_errors() { + let (system, graphics) = dictionary(3); + assert_eq!(parse(&system, &graphics).unwrap().errors.len(), 1); + let (system, graphics) = dictionary(1); + assert_eq!(parse(&system, &graphics[..100]).unwrap().errors.len(), 1); + assert!(parse(&system[..40], &graphics).is_err()); + assert!(parse(&system[..0xe4], &graphics).is_err()); + } +} diff --git a/crates/rage-formats/src/ttpf.rs b/crates/rage-formats/src/ttpf.rs index ec076a3..e81bdeb 100644 --- a/crates/rage-formats/src/ttpf.rs +++ b/crates/rage-formats/src/ttpf.rs @@ -131,7 +131,7 @@ impl Descriptor { } /// Bytes of one pixel, or of one 4×4 block of a compressed format. -fn element_bytes(format: u32) -> Option { +pub(crate) fn element_bytes(format: u32) -> Option { Some(match format { 2..=4 => 16, 6..=8 => 12, @@ -299,6 +299,28 @@ impl Layout { } } +/// How the data of a texture outside the pools is tiled. +pub(crate) struct Tiling(Layout); + +impl Tiling { + /// The layout that makes `slices` slices take `size` bytes. + pub(crate) fn by_size(width: u32, height: u32, mips: u32, format: u32, slices: u32, size: usize) -> Option { + let element = element_bytes(format)?; + let block = if is_block_format(format) { 4 } else { 1 }; + [4096, 65536].into_iter().find_map(|tile| { + let layout = Layout::new(width, height, mips, element, block, tile)?; + (layout.size.checked_mul(slices as usize)? == size).then_some(Tiling(layout)) + }) + } + + /// The largest level of a slice, in rows. + pub(crate) fn largest(&self, data: &[u8], slice: usize) -> Option> { + let level = self.0.levels.first()?; + let start = slice * self.0.size + level.offset; + self.0.untile(level, data.get(start..start + level.region)?) + } +} + /// An opened texture pool. #[derive(Debug)] pub struct Pool { From 9d836913ac9f11b9e0f7fd29d66d85eefab2c139 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 05:26:33 +0100 Subject: [PATCH 08/31] GTA VI: show collisions Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/models.rs | 12 ++ crates/rage-formats/src/bn6.rs | 257 ++++++++++++++++++++++++++++++ crates/rage-formats/src/lib.rs | 1 + 3 files changed, 270 insertions(+) create mode 100644 crates/rage-formats/src/bn6.rs diff --git a/crates/openrage-app/src/models.rs b/crates/openrage-app/src/models.rs index bb7256d..be49d32 100644 --- a/crates/openrage-app/src/models.rs +++ b/crates/openrage-app/src/models.rs @@ -537,6 +537,7 @@ pub fn is_model(name: &str) -> bool { || n.ends_with(".#dr") || n.ends_with(".#ft") || n.ends_with(".#dd") + || n.ends_with(".#bn") || rage_formats::paths::is_path_file(&n) } @@ -680,6 +681,17 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu return load_gta4(&archive, id); } if let Node::Rpf9File(rpf, i) = node { + if vpath.to_ascii_lowercase().ends_with(".#bn") { + let (system, _) = crate::rpf9::resource(&rpf, i)?; + let (collision, stats) = rage_formats::bn6::parse(&system)?; + for material in stats.materials { + let label = format!("Material {material:04x}"); + let color = material_color(&label, material as u8); + let id = rage_formats::ybn::MATERIAL_BASE + u32::from(material); + rage_formats::shaders::register(id, label, color); + } + return Ok(LoadedModel::from_drawables(vec![("collision".to_owned(), collision)])); + } let drawables = crate::gta6_models::load(&rpf, i)?; let textures = crate::gta6_textures::for_drawables(game_dir, &drawables); let mut model = LoadedModel::from_drawables(drawables); diff --git a/crates/rage-formats/src/bn6.rs b/crates/rage-formats/src/bn6.rs new file mode 100644 index 0000000..5dd2ed2 --- /dev/null +++ b/crates/rage-formats/src/bn6.rs @@ -0,0 +1,257 @@ +//! GTA VI collisions (`.#bn`), turned into meshes for display. +//! +//! Like GTA V's ([`crate::ybn`]), with other numbers for the kinds and places +//! of some fields. A bound has its kind at 16. Two kinds were seen: +//! - 6, a composite: child pointers at `0x70`, transforms (4×4 floats) at +//! `0x78`, child count (16 bits) at `0x98`. +//! - 5, geometry: polygons at `0x88` (16 bytes each), quantum at `0x90`, +//! centre at `0xA0`, vertices at `0xB0` (3 × i16, × quantum + centre), +//! vertex and polygon counts at `0xD0` and `0xD4`, materials at `0xF0` +//! (8 bytes, type in the low 16 bits), material number per polygon at +//! `0x118`, material count at `0x120`. +//! +//! A polygon has its kind in byte 3. 0 is a triangle: vertex numbers at 4, 6 +//! and 8. 2 and 4 are a capsule and a cylinder: vertices at 0 and 8, radius +//! at 4. Others were not seen and are counted as unknown. + +use rage_core::bytes::LeRead; + +use crate::drawable::{Drawable, Mesh, Shader}; +use crate::geometry::Builder; +use crate::math::{self, Mat4}; +use crate::ybn::MATERIAL_BASE; + +const SYSTEM: u64 = 0x5000_0000; +const MAX_BOUNDS: usize = 100_000; + +#[derive(Debug, thiserror::Error)] +#[error("damaged or unknown collision data: {0}")] +pub struct BnError(&'static str); + +/// What a collision file contains. +#[derive(Debug, Clone, Default, PartialEq, Eq)] +pub struct Stats { + pub bounds: usize, + pub triangles: usize, + /// Capsules and cylinders. + pub primitives: usize, + /// Bounds and polygons of an unknown kind, which are left out. + pub unknown: usize, + /// Material types used (16-bit numbers; their names are not known). + pub materials: Vec, +} + +struct Reader<'a> { + sys: &'a [u8], + builder: Builder, + stats: Stats, +} + +impl Reader<'_> { + /// The target of a pointer, with `len` bytes there. + fn pointer(&self, at: usize, len: usize) -> Result { + let p = self.sys.u64_at(at).ok_or(BnError("a bound is cut off"))?; + let p = + p.checked_sub(SYSTEM).and_then(|p| usize::try_from(p).ok()).ok_or(BnError("a pointer leads nowhere"))?; + let end = p.checked_add(len).filter(|end| *end <= self.sys.len()); + end.map(|_| p).ok_or(BnError("a pointer leads nowhere")) + } + + fn vec3(&self, at: usize) -> Result<[f32; 3], BnError> { + let mut v = [0.0; 3]; + for (i, v) in v.iter_mut().enumerate() { + *v = self.sys.f32_at(at + i * 4).filter(|f| f.is_finite()).ok_or(BnError("a vector is damaged"))?; + } + Ok(v) + } + + fn bound(&mut self, at: usize, m: &Mat4, depth: usize) -> Result<(), BnError> { + self.stats.bounds += 1; + if depth > 8 || self.stats.bounds > MAX_BOUNDS { + return Err(BnError("bounds nested too deeply")); + } + match self.sys.get(at + 16) { + Some(6) => { + let count = usize::from(self.sys.u16_at(at + 0x98).ok_or(BnError("a bound is cut off"))?); + if count == 0 { + return Ok(()); + } + let children = self.pointer(at + 0x70, count * 8)?; + let transforms = match self.sys.u64_at(at + 0x78) { + Some(0) => None, + _ => Some(self.pointer(at + 0x78, count * 64)?), + }; + for i in 0..count { + if self.sys.u64_at(children + i * 8) == Some(0) { + continue; + } + let child = self.pointer(children + i * 8, 0x70)?; + let mut t = math::IDENTITY; + if let Some(transforms) = transforms { + for (k, v) in t.iter_mut().enumerate() { + *v = self.sys.f32_at(transforms + i * 64 + k * 4).unwrap_or(0.0); + } + (t[3], t[7], t[11], t[15]) = (0.0, 0.0, 0.0, 1.0); + } + self.bound(child, &math::mul(m, &t), depth + 1)?; + } + Ok(()) + } + Some(5) => self.geometry(at, m), + Some(_) => { + self.stats.unknown += 1; + Ok(()) + } + None => Err(BnError("a bound is cut off")), + } + } + + fn geometry(&mut self, at: usize, m: &Mat4) -> Result<(), BnError> { + let sys = self.sys; + let count = |at: usize| sys.u32_at(at).map(|n| n as usize).filter(|n| *n <= 1 << 21); + let vertex_count = count(at + 0xD0).ok_or(BnError("impossible vertex count"))?; + let polygon_count = count(at + 0xD4).ok_or(BnError("impossible polygon count"))?; + if vertex_count == 0 || polygon_count == 0 { + return Ok(()); + } + let (quantum, centre) = (self.vec3(at + 0x90)?, self.vec3(at + 0xA0)?); + let vertices_at = self.pointer(at + 0xB0, vertex_count * 6)?; + let polygons = self.pointer(at + 0x88, polygon_count * 16)?; + let vertices: Vec<[f32; 3]> = sys[vertices_at..vertices_at + vertex_count * 6] + .as_chunks::<6>() + .0 + .iter() + .map(|c| { + std::array::from_fn(|k| { + f32::from(i16::from_le_bytes([c[k * 2], c[k * 2 + 1]])) * quantum[k] + centre[k] + }) + }) + .collect(); + let material_count = usize::from(sys.get(at + 0x120).copied().unwrap_or(0)); + let types = self.pointer(at + 0xF0, material_count * 8).ok(); + let numbers = self.pointer(at + 0x118, polygon_count).ok(); + for (i, p) in sys[polygons..polygons + polygon_count * 16].as_chunks::<16>().0.iter().enumerate() { + let number = numbers.map_or(0, |n| usize::from(sys[n + i])); + let kind = types.filter(|_| number < material_count).and_then(|t| sys.u16_at(t + number * 8)).unwrap_or(0); + let material = self.material(kind); + let vertex = |at: usize| vertices.get(usize::from(u16::from_le_bytes([p[at], p[at + 1]]))).copied(); + match p[3] { + 0 => { + let (Some(a), Some(b), Some(c)) = (vertex(4), vertex(6), vertex(8)) else { + return Err(BnError("a triangle names no vertex")); + }; + self.builder.triangle(material, m, [a, b, c]); + self.stats.triangles += 1; + } + 2 | 4 => { + let radius = f32::from_le_bytes([p[4], p[5], p[6], p[7]]); + let (Some(a), Some(b), true) = (vertex(0), vertex(8), radius.is_finite()) else { + return Err(BnError("a capsule names no vertex")); + }; + self.builder.round(material, m, a, b, radius, p[3] == 2); + self.stats.primitives += 1; + } + _ => self.stats.unknown += 1, + } + } + Ok(()) + } + + /// The number a material type goes by while building (the last one for + /// all that do not fit). + fn material(&mut self, kind: u16) -> u8 { + let known = &mut self.stats.materials; + let i = known.iter().position(|k| *k == kind).unwrap_or_else(|| { + if known.len() <= usize::from(u8::MAX) { + known.push(kind); + } + known.len() - 1 + }); + i as u8 + } +} + +/// Reads a collision file and turns it into a drawable: one mesh per material +/// type, shader name hash [`MATERIAL_BASE`] + the type. +pub fn parse(system: &[u8]) -> Result<(Drawable, Stats), BnError> { + if system.u64_at(0) != Some(0) || !matches!(system.get(16), Some(5 | 6)) { + return Err(BnError("no collision")); + } + let mut r = Reader { sys: system, builder: Builder::default(), stats: Stats::default() }; + r.bound(0, &math::IDENTITY, 0)?; + let mut d = Drawable { name: "collision".into(), ..Default::default() }; + let (mut lo, mut hi) = ([f32::MAX; 3], [f32::MIN; 3]); + for (i, (material, mesh)) in r.builder.meshes.into_iter().enumerate() { + for p in &mesh.positions { + for k in 0..3 { + lo[k] = lo[k].min(p[k]); + hi[k] = hi[k].max(p[k]); + } + } + let kind = r.stats.materials.get(usize::from(material)).copied().unwrap_or(0); + d.shaders.push(Shader { name_hash: MATERIAL_BASE + u32::from(kind), ..Default::default() }); + d.meshes.push(Mesh { shader: i as u16, ..mesh }); + } + if lo[0] <= hi[0] { + (d.bounds_min, d.bounds_max) = (lo, hi); + } + Ok((d, r.stats)) +} + +#[cfg(test)] +mod tests { + use super::*; + + /// A composite with one geometry: a triangle and a capsule. + fn collision() -> Vec { + let mut d = vec![0u8; 0x400]; + let put = |d: &mut Vec, at: usize, bytes: &[u8]| d[at..at + bytes.len()].copy_from_slice(bytes); + let pointer = |to: u64| (SYSTEM + to).to_le_bytes(); + d[16] = 6; + put(&mut d, 0x70, &pointer(0xB0)); + d[0x98] = 1; + put(&mut d, 0xB0, &pointer(0x100)); + let at = 0x100; + d[at + 16] = 5; + put(&mut d, at + 0x88, &pointer(0x300)); + for k in 0..3 { + put(&mut d, at + 0x90 + k * 4, &0.5f32.to_le_bytes()); + put(&mut d, at + 0xA0 + k * 4, &10f32.to_le_bytes()); + } + put(&mut d, at + 0xB0, &pointer(0x340)); + d[at + 0xD0] = 3; + d[at + 0xD4] = 2; + put(&mut d, at + 0xF0, &pointer(0x360)); + put(&mut d, at + 0x118, &pointer(0x370)); + d[at + 0x120] = 1; + put(&mut d, 0x300, &[0xff, 0, 1, 0, 0, 0, 1, 0, 2, 0]); + put(&mut d, 0x310, &[0, 0, 0, 2]); + put(&mut d, 0x314, &1f32.to_le_bytes()); + put(&mut d, 0x318, &[1, 0]); + put(&mut d, 0x340, &[0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0xfe, 0xff, 0, 0]); + put(&mut d, 0x360, &[0xef, 0x5d, 0, 0]); + d + } + + #[test] + fn reads_triangles_and_capsules() { + let (d, stats) = parse(&collision()).unwrap(); + let expected = Stats { bounds: 2, triangles: 1, primitives: 1, unknown: 0, materials: vec![0x5def] }; + assert_eq!(stats, expected); + assert_eq!(d.meshes[0].positions[..3], [[10.0, 10.0, 10.0], [12.0, 10.0, 10.0], [10.0, 9.0, 10.0]]); + assert_eq!(d.shaders[0].name_hash, MATERIAL_BASE + 0x5def); + } + + #[test] + fn damaged_collisions_are_errors() { + assert!(parse(&collision()[..0x345]).is_err()); + assert!(parse(&[0; 64]).is_err()); + let mut d = collision(); + d[0x304] = 9; + assert!(parse(&d).is_err()); + // A composite that contains itself. + let mut d = collision(); + d[0xB0..0xB8].copy_from_slice(&SYSTEM.to_le_bytes()); + assert!(parse(&d).is_err()); + } +} diff --git a/crates/rage-formats/src/lib.rs b/crates/rage-formats/src/lib.rs index 4461643..fd9bc09 100644 --- a/crates/rage-formats/src/lib.rs +++ b/crates/rage-formats/src/lib.rs @@ -9,6 +9,7 @@ pub mod awc; pub mod bcpack; +pub mod bn6; pub mod clip; pub mod dds; pub mod drawable; From b45fab72a235eea0ff866e5fe21c54e58d044862 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 05:43:39 +0100 Subject: [PATCH 09/31] Preview: centre models, sharp on scaled screens, waveforms fill the area; GTA VI texture sheets and icons Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/render.rs | 23 ++++++++++++++++++++--- crates/openrage-gui/src/badges.rs | 24 +++++++++++++++++------- crates/openrage-gui/src/debug.rs | 4 +++- crates/openrage-gui/src/model_ui.rs | 10 ++++++++-- crates/openrage-gui/src/preview.rs | 12 ++++++++++++ crates/openrage-gui/src/sound_ui.rs | 5 +---- crates/openrage-gui/ui/app.slint | 8 +++++++- 7 files changed, 68 insertions(+), 18 deletions(-) diff --git a/crates/openrage-app/src/render.rs b/crates/openrage-app/src/render.rs index 3b74717..40777aa 100644 --- a/crates/openrage-app/src/render.rs +++ b/crates/openrage-app/src/render.rs @@ -160,12 +160,29 @@ pub fn orbit_camera(lo: [f32; 3], hi: [f32; 3], view: View) -> Camera { let center = [(lo[0] + hi[0]) / 2.0, (lo[1] + hi[1]) / 2.0, (lo[2] + hi[2]) / 2.0]; let radius = (dot(sub(hi, lo), sub(hi, lo)).sqrt() / 2.0).max(1e-3); let fov = 40f32.to_radians(); - let distance = radius / (fov / 2.0).sin() / view.zoom.max(0.05); + // A little room around the model. + let whole = radius / (fov / 2.0).sin() * 1.05; + let distance = whole / view.zoom.max(0.05); let (cp, sp, cy, sy) = (view.pitch.cos(), view.pitch.sin(), view.yaw.cos(), view.yaw.sin()); - let eye = [center[0] + distance * cp * cy, center[1] + distance * cp * sy, center[2] + distance * sp]; - let forward = norm(sub(center, eye)); + let towards = [cp * cy, cp * sy, sp]; + let forward = norm([-towards[0], -towards[1], -towards[2]]); let right = norm(cross(forward, [0.0, 0.0, 1.0])); let up = cross(right, forward); + // What is near looks larger, so the middle of the picture is not that of + // the model. The camera moves sideways by the difference (the same at + // every zoom). + let half = [(hi[0] - lo[0]) / 2.0, (hi[1] - lo[1]) / 2.0, (hi[2] - lo[2]) / 2.0]; + let shift = |axis: V3| { + let (mut min, mut max) = (f32::MAX, f32::MIN); + for corner in 0..8 { + let p: V3 = std::array::from_fn(|k| if corner >> k & 1 == 0 { -half[k] } else { half[k] }); + let seen = dot(p, axis) / (whole + dot(p, forward)); + (min, max) = (min.min(seen), max.max(seen)); + } + (min + max) / 2.0 * whole + }; + let (sx, sy) = (shift(right), shift(up)); + let eye = std::array::from_fn(|k| center[k] + distance * towards[k] + sx * right[k] + sy * up[k]); Camera { eye, forward, right, up, distance, radius, fov } } diff --git a/crates/openrage-gui/src/badges.rs b/crates/openrage-gui/src/badges.rs index 819fe7f..7da2eef 100644 --- a/crates/openrage-gui/src/badges.rs +++ b/crates/openrage-gui/src/badges.rs @@ -12,7 +12,12 @@ const fn rgb(hex: u32) -> Color { pub const NEUTRAL: Color = rgb(0x7C8592); fn extension(name: &str) -> String { - name.rsplit_once('.').map(|(_, e)| e.to_ascii_lowercase()).unwrap_or_default() + let ext = name.rsplit_once('.').map(|(_, e)| e.to_ascii_lowercase()).unwrap_or_default(); + // GTA VI's `#dr` is what GTA V's `ydr` was, and so on. + match ext.strip_prefix('#') { + Some(rest) => format!("y{rest}"), + None => ext, + } } /// Icon (a name known to the UI's `Icons.get`) and tint for a file, so @@ -42,15 +47,15 @@ fn core_icon(ext: &str) -> Option<(&'static str, Color)> { "ydr" | "ydd" | "yft" | "yld" | "wdr" | "wdd" | "wft" => ("model", rgb(0x3B82F6)), "ypt" => ("particles", rgb(0xE0679B)), "ybn" | "wbn" | "wbd" => ("collision", rgb(0x14A08F)), - "ynv" | "ynd" | "yvr" | "ywr" | "nod" => ("path", rgb(0x14A08F)), + "ynv" | "ynvs" | "ycov" | "ynd" | "yvr" | "ywr" | "nod" => ("path", rgb(0x14A08F)), "ymap" | "wpl" | "ytyp" | "ipl" | "ide" => ("map", rgb(0x2FA866)), - "ymt" | "ymf" | "meta" | "xml" | "dat" | "json" | "pso" => ("data", rgb(0x2FA866)), + "ymt" | "ymf" | "yhdat" | "ymsk" | "ykit" | "meta" | "xml" | "dat" | "json" | "pso" => ("data", rgb(0x2FA866)), "cut" => ("anim", rgb(0xDB4F8A)), "txt" | "log" | "ini" | "cfg" => ("text", rgb(0x7C8592)), - "ycd" | "yed" => ("anim", rgb(0xDB4F8A)), + "ycd" | "yed" | "yas" | "yascd" | "ysmm" => ("anim", rgb(0xDB4F8A)), "awc" | "rel" | "dat151" | "dat54" | "dat4" | "dat10" | "dat15" | "dat16" | "dat22" => ("audio", rgb(0xDB4F8A)), - "ysc" | "sco" | "asi" | "dll" | "lua" | "cs" => ("script", rgb(0xE05252)), - "gxt2" | "gxt" => ("lang", rgb(0x5B76DE)), + "ysc" | "yscript" | "sco" | "asi" | "dll" | "lua" | "cs" => ("script", rgb(0xE05252)), + "gxt2" | "gxt" | "yldb" | "yldbmt" => ("lang", rgb(0x5B76DE)), "oiv" | "orp" | "zip" | "7z" | "rar" => ("package", rgb(0xD9822B)), _ => return None, }) @@ -96,6 +101,7 @@ pub fn type_name(name: &str, kind: ItemKind) -> String { } else if ext.is_empty() { "File".into() } else { + let ext = name.rsplit_once('.').map_or(ext.as_str(), |(_, e)| e); format!("{} file", ext.to_ascii_uppercase()) } } @@ -110,7 +116,11 @@ fn known_name(ext: &str) -> &'static str { "ypt" => "Particles", "ybn" | "wbn" => "Bounds", "wbd" => "Bounds dict", - "ynv" => "Nav mesh", + "ynv" | "ynvs" => "Nav mesh", + "ycov" => "Cover", + "yscript" => "Script", + "yldb" | "yldbmt" => "Text table", + "yhdat" => "Height data", "ynd" => "Path nodes", "ymap" | "wpl" => "Map placement", "ytyp" => "Archetypes", diff --git a/crates/openrage-gui/src/debug.rs b/crates/openrage-gui/src/debug.rs index dfc34f5..c59638b 100644 --- a/crates/openrage-gui/src/debug.rs +++ b/crates/openrage-gui/src/debug.rs @@ -13,7 +13,9 @@ pub(crate) fn debug_snapshot(ui: &AppWindow) { } let Ok(path) = std::env::var("OPENRAGE_SNAPSHOT") else { return }; let weak = ui.as_weak(); - slint::Timer::single_shot(Duration::from_secs(5), move || { + // `OPENRAGE_SNAPSHOT_DELAY=`: for folders that open slowly. + let delay = std::env::var("OPENRAGE_SNAPSHOT_DELAY").ok().and_then(|s| s.parse().ok()).unwrap_or(5); + slint::Timer::single_shot(Duration::from_secs(delay), move || { let Some(ui) = weak.upgrade() else { return }; debug_viewer(&ui); if std::env::var("OPENRAGE_FLY").is_ok() diff --git a/crates/openrage-gui/src/model_ui.rs b/crates/openrage-gui/src/model_ui.rs index ff73b76..ccc6064 100644 --- a/crates/openrage-gui/src/model_ui.rs +++ b/crates/openrage-gui/src/model_ui.rs @@ -354,11 +354,17 @@ pub(crate) fn axis_view(axis: i32, current: openrage_app::render::View) -> openr v } +/// The size of pictures made for the preview area, in the screen's pixels. +pub(crate) fn preview_pixels(ui: &AppWindow) -> (usize, usize) { + let scale = ui.window().scale_factor().clamp(0.5, 4.0); + let pixels = |length: f32| ((length - 16.0).max(64.0) * scale).round() as usize; + (pixels(ui.get_preview_area_width()), pixels(ui.get_preview_area_height())) +} + /// Renders the current model at the size of the preview area. pub(crate) fn render_model(ui: &AppWindow) { let Some((model, view)) = with_app(|a| a.model.clone().map(|m| (m, a.model_view))) else { return }; - let w = (ui.get_preview_area_width() - 16.0).max(64.0) as usize; - let h = (ui.get_preview_area_height() - 16.0).max(64.0) as usize; + let (w, h) = preview_pixels(ui); if let Some((img, gizmo)) = render_image(&model, |lo, hi| openrage_app::render::orbit_camera(lo, hi, view), None, w, h) { diff --git a/crates/openrage-gui/src/preview.rs b/crates/openrage-gui/src/preview.rs index 52e320b..768abc7 100644 --- a/crates/openrage-gui/src/preview.rs +++ b/crates/openrage-gui/src/preview.rs @@ -327,6 +327,12 @@ pub(crate) fn texture_image(t: &rage_formats::texture::Texture) -> Option /// Preview with an optional image: textures and texture dictionaries show a picture. pub(crate) fn load_preview(source: PreviewSource, keys: Option>) -> (Meta, String, Option) { match source { + PreviewSource::Rpf9(rpf, i) if rpf9_texture_dict(&rpf, i) => { + match openrage_app::textures::gta6_dictionary(&rpf, i) { + Ok(dict) => texture_dict_preview(&dict), + Err(e) => (vec![kv("Error", format!("{e:#}"))], String::new(), None), + } + } PreviewSource::Texture(dict, idx) => match dict.textures.get(idx) { Some(t) => { let image = texture_image(t); @@ -838,6 +844,12 @@ pub(crate) fn rpf9_archive_info(rpf: &rage_rpf::Rpf9) -> Meta { meta } +/// Whether an entry of a GTA VI archive is a texture dictionary. +fn rpf9_texture_dict(rpf: &rage_rpf::Rpf9, i: usize) -> bool { + let name = rpf.loaded().and_then(|entries| Some(rpf.entry_name(entries.get(i)?))); + name.is_some_and(|name| browser::is_texture_dict(&name)) +} + /// Facts about a recovered file of a GTA VI archive, and the start of it as /// text or hex. pub(crate) fn rpf9_preview(rpf: &rage_rpf::Rpf9, i: usize) -> (Meta, String) { diff --git a/crates/openrage-gui/src/sound_ui.rs b/crates/openrage-gui/src/sound_ui.rs index 1fd8b56..a8d7c03 100644 --- a/crates/openrage-gui/src/sound_ui.rs +++ b/crates/openrage-gui/src/sound_ui.rs @@ -60,10 +60,7 @@ pub(crate) fn start_sound_preview( ) { let counter = with_app(|a| Arc::clone(&a.preview_generation)); ui.set_preview_loading(true); - let (w, h) = ( - (ui.get_preview_area_width() - 16.0).max(64.0) as usize, - (ui.get_preview_area_height() - 16.0).max(64.0) as usize, - ); + let (w, h) = preview_pixels(ui); let weak = ui.as_weak(); std::thread::spawn(move || { let sound = awc.sounds.get(index).cloned(); diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index 7e84da4..49a0307 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -2683,7 +2683,8 @@ export component AppWindow inherits Window { width: parent.width - 16px; height: parent.height - 16px; source: root.preview-image; - image-fit: contain; + // A waveform spans the area, as its position line does. + image-fit: root.audio-mode ? fill : contain; image-rendering: smooth; accessible-role: image; accessible-label: @tr("Preview of {}", root.info-title); @@ -2700,6 +2701,8 @@ export component AppWindow inherits Window { if root.audio-mode: Text { x: Theme.space-s; y: parent.height - self.height - Theme.space-s; + width: parent.width - 2 * Theme.space-s; + overflow: elide; text: @tr("Click the waveform to jump · Space plays and pauses"); font-size: Theme.font-small; color: Theme.text-faint; @@ -2718,6 +2721,9 @@ export component AppWindow inherits Window { if root.model-mode: Text { x: Theme.space-s; y: parent.height - self.height - Theme.space-s; + // Beside the axes in the corner. + width: max(0px, parent.width - 110px); + overflow: elide; text: @tr("Drag to rotate · scroll to zoom"); font-size: Theme.font-small; color: Theme.text-faint; From 5eb1f2151be29e59d85a3c2590f906d7f9c52410 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 05:46:51 +0100 Subject: [PATCH 10/31] GTA VI: show navigation meshes Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/models.rs | 5 ++++ crates/rage-formats/src/paths.rs | 43 +++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/crates/openrage-app/src/models.rs b/crates/openrage-app/src/models.rs index be49d32..bd22987 100644 --- a/crates/openrage-app/src/models.rs +++ b/crates/openrage-app/src/models.rs @@ -538,6 +538,7 @@ pub fn is_model(name: &str) -> bool { || n.ends_with(".#ft") || n.ends_with(".#dd") || n.ends_with(".#bn") + || n.ends_with(".#nv") || rage_formats::paths::is_path_file(&n) } @@ -692,6 +693,10 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu } return Ok(LoadedModel::from_drawables(vec![("collision".to_owned(), collision)])); } + if vpath.to_ascii_lowercase().ends_with(".#nv") { + let (mesh, _) = rage_formats::paths::parse_nv6(crate::rpf9::resource(&rpf, i)?.0)?; + return Ok(LoadedModel::from_drawables(vec![("nav mesh".to_owned(), mesh)])); + } let drawables = crate::gta6_models::load(&rpf, i)?; let textures = crate::gta6_textures::for_drawables(game_dir, &drawables); let mut model = LoadedModel::from_drawables(drawables); diff --git a/crates/rage-formats/src/paths.rs b/crates/rage-formats/src/paths.rs index 4d7076b..48f9410 100644 --- a/crates/rage-formats/src/paths.rs +++ b/crates/rage-formats/src/paths.rs @@ -298,6 +298,49 @@ pub fn parse_ynv(res: &Resource) -> Result<(Drawable, Stats), ResourceError> { Ok((finish(b, "nav mesh"), stats)) } +/// A GTA VI nav mesh (`.#nv`), from its system part: like GTA V's, with the +/// polygons at `0x98` and the minimum corner behind the pointer at `0xA0`. A +/// polygon (44 bytes) has at 4 its vertex count (low 4 bits) and the number +/// of its first index. What kind of surface it is, is not known. Those with +/// fewer than three vertices connect places and are left out. +pub fn parse_nv6(system: Vec) -> Result<(Drawable, Stats), ResourceError> { + let res = Resource { version: 0, system, graphics: Vec::new() }; + let root = Resource::ROOT; + let (size, min) = (vec3(&res, root + 0x60)?, vec3(&res, res.u64(root + 0xA0)?)?); + let verts: Vec<[f32; 3]> = nav_list(&res, res.u64(root + 0x70)?, 6)? + .as_chunks::<6>() + .0 + .iter() + .map(|c| { + let q = [0, 2, 4].map(|o| u16::from_le_bytes([c[o], c[o + 1]]) as f32 / 65535.0); + std::array::from_fn(|k| min[k] + q[k] * size[k]) + }) + .collect(); + let indices: Vec = + nav_list(&res, res.u64(root + 0x80)?, 2)?.as_chunks::<2>().0.iter().map(|c| u16::from_le_bytes(*c)).collect(); + let mut b = Builder::default(); + let mut stats = Stats::default(); + for p in nav_list(&res, res.u64(root + 0x98)?, 44)?.as_chunks::<44>().0 { + let word = u32::from_le_bytes([p[4], p[5], p[6], p[7]]); + let (first, count) = ((word >> 4) as usize, (word & 15) as usize); + let corners: Option> = first + .checked_add(count) + .and_then(|end| indices.get(first..end)) + .and_then(|range| range.iter().map(|&i| verts.get(usize::from(i)).copied()).collect()); + let corners = corners.ok_or_else(|| ResourceError::Format("a polygon names no vertex".into()))?; + if corners.len() < 3 { + continue; + } + stats.polygons += 1; + let lift = |v: [f32; 3]| [v[0], v[1], v[2] + 0.05]; + for k in 1..corners.len() - 1 { + let triangle = [corners[0], corners[k], corners[k + 1]].map(lift); + b.triangle(part::GROUND, &crate::math::IDENTITY, triangle); + } + } + Ok((finish(b, "nav mesh"), stats)) +} + /// Reads a path file by its extension (`ynd`, `yvr`, `ywr`, `ynv`). pub fn parse(res: &Resource, extension: &str) -> Result<(Drawable, Stats), ResourceError> { match extension.to_ascii_lowercase().as_str() { From 88b508399546a232d5eef3fbb4d9bb77af552a2c Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 06:10:16 +0100 Subject: [PATCH 11/31] Search: index GTA VI archives, their metadata and game text Native RPF9 archives and those nested in them are indexed in parts, in parallel and cancellable; metadata (#mt) as XML, language files (#ldbmt) as label hash and text. Searches find names that are only known as hashes, text hits have room beside names, words with punctuation match, paths are found, and results of every game show their matching line. Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 2 + crates/openrage-cli/src/cmd/search.rs | 85 ++++++- crates/openrage-gui/src/main.rs | 5 +- crates/openrage-gui/src/preview.rs | 29 ++- crates/openrage-gui/src/search.rs | 61 +++-- crates/rage-formats/src/meta.rs | 58 +++++ crates/rage-index/Cargo.toml | 2 + crates/rage-index/src/content.rs | 181 ++++++++++++++- crates/rage-index/src/lib.rs | 9 +- crates/rage-index/src/schema.rs | 3 +- crates/rage-index/src/search.rs | 115 ++++++++-- crates/rage-index/src/update.rs | 314 +++++++++++++++++++++++--- crates/rage-rpf/src/rpf9.rs | 7 + crates/rage-rpf/src/rpf9_native.rs | 10 +- 14 files changed, 784 insertions(+), 97 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 49a37cd..7ed6b82 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4572,6 +4572,8 @@ dependencies = [ "flate2", "rage-core", "rage-crypto", + "rage-formats", + "rage-resource", "rage-rpf", "rayon", "rusqlite", diff --git a/crates/openrage-cli/src/cmd/search.rs b/crates/openrage-cli/src/cmd/search.rs index 8ffcd55..846b6a7 100644 --- a/crates/openrage-cli/src/cmd/search.rs +++ b/crates/openrage-cli/src/cmd/search.rs @@ -9,7 +9,13 @@ pub(crate) fn open_index(game_dir: &Path) -> Result { pub(crate) fn cmd_index(game_dir: &Path, keys: Option>) -> Result<()> { let mut index = open_index(game_dir)?; + // A GTA VI archive reports each part of it: not a line for every one. + let mut last = (0, Instant::now()); let stats = index.update(game_dir, keys, &AtomicBool::new(false), &mut |p| { + if p.archives_done == last.0 && last.1.elapsed().as_secs() < 2 { + return; + } + last = (p.archives_done, Instant::now()); eprintln!(" [{}/{}] {} ({} entries)", p.archives_done, p.archives_total, p.current, p.entries); })?; let s = index.stats()?; @@ -62,7 +68,7 @@ pub(crate) fn cmd_search( .iter() .map(|hit| { let snippet = (hit.reason == rage_index::HitReason::Content) - .then(|| content_snippet(game_dir, &hit.vpath, &hit.name, &needle, keys.clone())) + .then(|| content_snippet(game_dir, &hit.vpath, &needle, keys.clone())) .flatten(); serde_json::json!({ "match": reason(&hit.reason), @@ -98,7 +104,7 @@ pub(crate) fn cmd_search( for hit in &results.hits { outln!("{:<5} {:>8} {}", reason(&hit.reason), human(hit.size), hit.vpath); if hit.reason == rage_index::HitReason::Content - && let Some(line) = content_snippet(game_dir, &hit.vpath, &hit.name, &needle, keys.clone()) + && let Some(line) = content_snippet(game_dir, &hit.vpath, &needle, keys.clone()) { outln!(" └ {line}"); } @@ -116,18 +122,38 @@ pub(crate) fn cmd_search( pub(crate) fn content_snippet( game_dir: &Path, vpath: &str, - name: &str, query: &str, keys: Option>, ) -> Option { - let Node::ArchiveFile(rpf, id) = vfs::resolve(game_dir, vpath, keys).ok()? else { return None }; - let data = rpf.read(id).ok()?; - let (text, _) = rage_index::content_for(name, &data)?; + let text = rage_index::node_text(&vfs::resolve(game_dir, vpath, keys).ok()?)?; rage_index::snippet(&text, query) } pub(crate) fn cmd_find(game_dir: &Path, within: &str, pattern: &str, keys: Option>) -> Result<()> { let needle = pattern.to_ascii_lowercase(); + match vfs::resolve(game_dir, within, keys.clone())? { + Node::Rpf9Dir(rpf, dir) => { + let prefix = within.trim_end_matches('/'); + let top = if dir.is_empty() { prefix } else { prefix[..prefix.len() - dir.len()].trim_end_matches('/') }; + return find_rpf9(&[(top.to_owned(), rpf, dir)], &needle); + } + Node::Dir(dir) if openrage_app::detect::is_gta6_dir(game_dir) => { + let mut found = Vec::new(); + collect_rpfs(&dir, &mut found); + let mut starts = Vec::new(); + for path in found.into_iter().filter(|p| rage_rpf::Rpf9::file_is_rpf9(p)) { + let rel = path.strip_prefix(game_dir).unwrap_or(&path).to_string_lossy().replace('\\', "/"); + // Asked one after the other: the first loads the keys. + match rage_rpf::Rpf9::open(&path) { + Ok(rpf) if rpf.is_native() => starts.push((rel, Arc::new(rpf), String::new())), + Ok(_) => eprintln!("warning: {rel}: its table cannot be read"), + Err(e) => eprintln!("warning: {e}"), + } + } + return find_rpf9(&starts, &needle); + } + _ => {} + } let starts = archive_roots(game_dir, within, keys)?; let started = Instant::now(); @@ -163,3 +189,50 @@ pub(crate) fn cmd_find(game_dir: &Path, within: &str, pattern: &str, keys: Optio eprintln!("{hits} matches in {total} entries ({:.1}s)", started.elapsed().as_secs_f32()); Ok(()) } + +/// `find` in GTA VI archives and those inside them, below a folder of each. +fn find_rpf9(starts: &[(String, Arc, String)], needle: &str) -> Result<()> { + fn walk(prefix: &str, rpf: &rage_rpf::Rpf9, dir: &str, needle: &str) -> (usize, usize) { + let entries = match rpf.entries() { + Ok(entries) => entries, + Err(e) => { + eprintln!("warning: {e}"); + return (0, 0); + } + }; + let below = if dir.is_empty() { String::new() } else { format!("{dir}/") }; + entries + .par_iter() + .map(|e| { + let name = rpf.entry_name(e); + if !name.get(..below.len()).is_some_and(|start| start.eq_ignore_ascii_case(&below)) { + return (0, 0); + } + let path = format!("{prefix}/{name}"); + let base = name.rsplit('/').next().unwrap_or(&name); + let mut found = (0, 1); + if base.to_ascii_lowercase().contains(needle) { + outln!("{path}"); + found.0 = 1; + } + if rpf.is_archive(e) { + match rpf.open_child(e) { + Ok(child) => { + let inside = walk(&path, &child, "", needle); + found = (found.0 + inside.0, found.1 + inside.1); + } + Err(e) => eprintln!("warning: {e}"), + } + } + found + }) + .reduce(|| (0, 0), |a, b| (a.0 + b.0, a.1 + b.1)) + } + let started = Instant::now(); + let (hits, total) = starts + .iter() + .map(|(prefix, rpf, dir)| walk(prefix, rpf, dir, needle)) + .fold((0, 0), |a, b| (a.0 + b.0, a.1 + b.1)); + eprintln!("{hits} matches in {total} entries ({:.1}s)", started.elapsed().as_secs_f32()); + Ok(()) +} diff --git a/crates/openrage-gui/src/main.rs b/crates/openrage-gui/src/main.rs index d8ebf9b..bcf31a3 100644 --- a/crates/openrage-gui/src/main.rs +++ b/crates/openrage-gui/src/main.rs @@ -131,7 +131,8 @@ struct App { suggest_awc: String, /// Models for `suggest_ycd` are still being looked for. suggest_pending: bool, - index_running: bool, + /// The game whose index is being updated, and how to stop that. + index_running: Option<(PathBuf, Arc)>, /// Plugin package shown in the install dialog. plugin_package: Option>, } @@ -227,7 +228,7 @@ fn main() -> anyhow::Result<()> { suggest_ycd: String::new(), suggest_awc: String::new(), suggest_pending: false, - index_running: false, + index_running: None, plugin_package: None, }) }); diff --git a/crates/openrage-gui/src/preview.rs b/crates/openrage-gui/src/preview.rs index 52e320b..f63388f 100644 --- a/crates/openrage-gui/src/preview.rs +++ b/crates/openrage-gui/src/preview.rs @@ -401,26 +401,23 @@ pub(crate) fn video_frame(name: &str, data: &[u8]) -> Option { /// Returns (metadata, preview body). pub(crate) fn load_preview_text(source: PreviewSource, keys: Option>) -> (Meta, String) { match source { - PreviewSource::Virtual { game_dir, vpath, query, overlay } => match if overlay { + PreviewSource::Virtual { game_dir, vpath, query: Some(query), overlay } => { + let matching = vfs::resolve(&game_dir, &vpath, keys.clone()) + .ok() + .and_then(|node| rage_index::snippet(&rage_index::node_text(&node)?, &query)); + let (mut meta, body) = + load_preview_text(PreviewSource::Virtual { game_dir, vpath, query: None, overlay }, keys); + if let Some(line) = matching { + meta.insert(0, kv("Match", line)); + } + (meta, body) + } + PreviewSource::Virtual { game_dir, vpath, query: None, overlay } => match if overlay { rage_mods::resolve(&game_dir, &vpath, keys.clone()).map(|(n, _)| n) } else { vfs::resolve(&game_dir, &vpath, keys.clone()) } { - Ok(Node::ArchiveFile(rpf, id)) => { - let (mut meta, body) = load_preview_text(PreviewSource::Entry(Arc::clone(&rpf), id), keys); - if let Some(q) = query { - let name = rpf.entry(id).name.clone(); - let line = rpf - .read(id) - .ok() - .and_then(|d| rage_index::content_for(&name, &d)) - .and_then(|(text, _)| rage_index::snippet(&text, &q)); - if let Some(line) = line { - meta.insert(0, kv("Match", line)); - } - } - (meta, body) - } + Ok(Node::ArchiveFile(rpf, id)) => load_preview_text(PreviewSource::Entry(rpf, id), keys), Ok(Node::ArchiveDir(rpf, id)) if id == Rpf7::ROOT => (archive_info(&rpf), String::new()), Ok(Node::ArchiveDir(..)) | Ok(Node::Dir(_)) => (Meta::new(), String::new()), Ok(Node::PlainFile(p)) => load_preview_text(PreviewSource::DiskFile(p), keys), diff --git a/crates/openrage-gui/src/search.rs b/crates/openrage-gui/src/search.rs index 09bfb6c..13f1d77 100644 --- a/crates/openrage-gui/src/search.rs +++ b/crates/openrage-gui/src/search.rs @@ -3,29 +3,44 @@ use crate::*; pub(crate) fn start_index_update(ui: &AppWindow) { - let Some((game_dir, keys)) = with_app(|a| { - if a.index_running { - return None; + let Some((game_dir, keys, cancel)) = with_app(|a| { + let dir = a.game_dir.clone()?; + if let Some((running, cancel)) = &a.index_running { + if *running == dir { + return None; + } + // Another game was opened meanwhile: its index comes first. + cancel.store(true, Ordering::Relaxed); } - a.index_running = true; - a.game_dir.clone().map(|d| (d, a.keys.clone())) + let cancel = Arc::new(AtomicBool::new(false)); + a.index_running = Some((dir.clone(), Arc::clone(&cancel))); + Some((dir, a.keys.clone(), cancel)) }) else { return; }; let weak = ui.as_weak(); ui.set_index_status("Index: checking…".into()); std::thread::spawn(move || { + let current = Arc::clone(&cancel); let status = |text: String| { - let _ = weak.upgrade_in_event_loop(move |ui| ui.set_index_status(text.into())); + if !cancel.load(Ordering::Relaxed) { + let _ = weak.upgrade_in_event_loop(move |ui| ui.set_index_status(text.into())); + } }; let result = (|| -> Result { + // One update at a time: a stopped one still writes what it has. + static UPDATING: std::sync::Mutex<()> = std::sync::Mutex::new(()); + let _updating = UPDATING.lock().unwrap_or_else(|e| e.into_inner()); let path = index_path(&game_dir).ok_or_else(|| std::io::Error::other("no cache directory"))?; let mut index = Index::open(&path)?; let mut last = Instant::now(); - index.update(&game_dir, keys, &AtomicBool::new(false), &mut |p| { + index.update(&game_dir, keys, &cancel, &mut |p| { if last.elapsed() > Duration::from_millis(200) { last = Instant::now(); - status(format!("Indexing {}/{} archives…", p.archives_done, p.archives_total)); + status(format!( + "Indexing {}/{} archives ({} entries)…", + p.archives_done, p.archives_total, p.entries + )); } })?; // Names of models, textures, … so hashes in metadata read as names. @@ -39,8 +54,17 @@ pub(crate) fn start_index_update(ui: &AppWindow) { Err(e) => format!("Index error: {e}"), }; let _ = weak.upgrade_in_event_loop(move |ui| { - with_app(|a| a.index_running = false); - ui.set_index_status(text.into()); + // The status belongs to the newest run. + let newest = with_app(|a| { + let newest = a.index_running.as_ref().is_some_and(|(_, c)| Arc::ptr_eq(c, ¤t)); + if newest { + a.index_running = None; + } + newest + }); + if newest { + ui.set_index_status(text.into()); + } }); }); } @@ -59,18 +83,21 @@ pub(crate) fn start_search(ui: &AppWindow, query: String, record: bool) { let result = index_path(&game_dir) .ok_or_else(|| "no cache directory".to_owned()) .and_then(|p| Index::open(&p).map_err(|e| e.to_string())) - .and_then(|idx| match idx.stats() { - Ok(s) if s.updated_at.is_none() => { - Err("the search index is still being built — please try again in a moment".to_owned()) + .and_then(|idx| { + let results = idx.search(&query, 1000, language.as_deref()).map_err(|e| e.to_string())?; + // What is indexed already can be searched meanwhile. + let complete = idx.is_complete().unwrap_or(true); + if !complete && results.hits.is_empty() { + return Err("the search index is still being built — please try again in a moment".to_owned()); } - _ => idx.search(&query, 1000, language.as_deref()).map_err(|e| e.to_string()), + Ok((results, complete)) }); let ms = started.elapsed().as_millis(); if counter.load(Ordering::SeqCst) != generation { return; } let _ = weak.upgrade_in_event_loop(move |ui| match result { - Ok(results) => show_search_results(&ui, query, results, ms, record), + Ok((results, complete)) => show_search_results(&ui, query, results, complete, ms, record), Err(e) => show_error(&ui, format!("Search failed: {e}")), }); }); @@ -80,6 +107,7 @@ pub(crate) fn show_search_results( ui: &AppWindow, query: String, results: rage_index::SearchResults, + complete: bool, ms: u128, record: bool, ) { @@ -123,6 +151,9 @@ pub(crate) fn show_search_results( items.len(), if results.limited { " (first 1000)" } else { "" } )); + if !complete { + summary.push_str(" · the index is still being built, there may be more"); + } let vpath = format!("?{query}"); with_app(|a| { if record { diff --git a/crates/rage-formats/src/meta.rs b/crates/rage-formats/src/meta.rs index 22aa446..13fb92b 100644 --- a/crates/rage-formats/src/meta.rs +++ b/crates/rage-formats/src/meta.rs @@ -129,6 +129,9 @@ pub struct Meta { offset_shift: u32, } +/// The name of a block that holds the items of a map. +const MAP_BLOCK: u32 = 0x101; + /// Whether a resource with this version is a meta file. pub fn is_meta(version: u32) -> bool { version == VERSION || version == VERSION_RDR2 @@ -278,6 +281,33 @@ impl Meta { self.block(self.root_block).map(|b| names::field(b.name)) } + /// The texts of a GTA VI language file (`#ldbmt`), by the hash of their + /// label. They are in a map: groups of 16 control bytes (above `0x7f`: no + /// item) and as many items of 16 bytes, the label's hash and a pointer to + /// a struct with the text's pointer at 8. + pub fn label_texts(&self) -> Vec<(u32, String)> { + const GROUP: usize = 16 + 16 * 16; + let text = |item: &[u8]| -> Option { + let (id, off) = self.unpack(item.u64_at(8)?); + let (id, off) = self.unpack(self.block(id)?.data.as_slice().u64_at(off + 8)?); + let start = self.block(id)?.data.get(off..)?; + let end = start.iter().position(|b| *b == 0)?; + Some(String::from_utf8_lossy(&start[..end]).into_owned()) + }; + let mut out = Vec::new(); + for block in self.blocks.iter().filter(|b| b.name == MAP_BLOCK) { + for group in block.data.as_chunks::().0 { + let (control, items) = group.split_at(16); + for (item, _) in items.as_chunks::<16>().0.iter().zip(control).filter(|(_, c)| **c < 0x80) { + if let (Some(label), Some(text)) = (item.u32_at(0), text(item)) { + out.push((label, text)); + } + } + } + } + out + } + /// Reads `count` items of `size` bytes starting at a packed pointer; long /// arrays continue in the following blocks. fn array(&self, ptr: u64, count: usize, size: usize) -> Result, String> { @@ -708,3 +738,31 @@ impl Meta { Ok(()) } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn gta6_label_texts() { + let block = |name, data: Vec| Block { name, data }; + let mut map = vec![0x80u8; 16]; + map[2] = 0x2a; + map.resize(16 + 16 * 16, 0); + map[16 + 32..16 + 36].copy_from_slice(&7u32.to_le_bytes()); + // Block 1, 16 bytes in; there the text is in block 3, 4 bytes in. + map[16 + 40..16 + 48].copy_from_slice(&(1u64 | 16 << 20).to_le_bytes()); + let mut items = vec![0u8; 32]; + items[24..].copy_from_slice(&(3u64 | 4 << 20).to_le_bytes()); + let blocks = vec![block(9, items), block(MAP_BLOCK, map), block(0x10, b"abc\0Motel\0".to_vec())]; + let meta = Meta { + name: String::new(), + root_block: 1, + structs: HashMap::new(), + enums: HashMap::new(), + blocks, + offset_shift: 20, + }; + assert_eq!(meta.label_texts(), [(7, "Motel".to_owned())]); + } +} diff --git a/crates/rage-index/Cargo.toml b/crates/rage-index/Cargo.toml index 32f7aa2..e57a7c3 100644 --- a/crates/rage-index/Cargo.toml +++ b/crates/rage-index/Cargo.toml @@ -8,6 +8,8 @@ license.workspace = true [dependencies] rage-core.workspace = true rage-crypto.workspace = true +rage-formats.workspace = true +rage-resource.workspace = true rage-rpf.workspace = true rayon.workspace = true rusqlite.workspace = true diff --git a/crates/rage-index/src/content.rs b/crates/rage-index/src/content.rs index 19bb9dc..4aa98db 100644 --- a/crates/rage-index/src/content.rs +++ b/crates/rage-index/src/content.rs @@ -1,7 +1,10 @@ //! Turns indexable files into searchable text. +use rage_core::hash::{jenkins_bytes, joaat}; use rage_core::io::u32_le; use rage_core::text::{decode_text, identifiers}; +use rage_rpf::vfs::Node; +use rage_rpf::{Rpf9, RpfError, rpf9}; const MAX_TEXT: usize = 4 << 20; @@ -19,6 +22,118 @@ pub fn is_indexable(name: &str) -> bool { ext == "gxt2" || ext == "gxt" || ext == "nametable" || TEXT_EXTENSIONS.contains(&ext.as_str()) } +/// Extensions of GTA VI files that hold metadata, beside the above. Maps and +/// archetypes (`#map`, `#typ`) are left out, as in the other games. +const GTA6_EXTENSIONS: &[&str] = &["#mt", "#ldbmt", "pso", "psin", "rbf0", "cut"]; + +/// Like [`is_indexable`], for a file of a GTA VI archive. +pub fn is_indexable_gta6(name: &str) -> bool { + is_indexable(name) || GTA6_EXTENSIONS.contains(&extension(name).as_str()) +} + +/// Searchable text for a file of a GTA VI archive: text as in other games, +/// metadata as the XML it is shown as. The names in that are hashes +/// (`hash_1234ABCD`), which searches for a name or hash look for as well. +pub fn rpf9_content(rpf: &Rpf9, entry: &rpf9::Entry, name: &str) -> Result)>, RpfError> { + let data = rpf.read(entry)?; + let parts = rpf.resource_parts(entry); + Ok(gta6_content(name, data, parts.map(|(system, _)| system as usize))) +} + +fn gta6_content(name: &str, mut data: Vec, system: Option) -> Option<(String, Vec)> { + use rage_formats::{meta, psin, pso, rbf}; + if let Some(system) = system { + if !meta::is_gta6(&data) || system > data.len() { + return None; + } + let graphics = data.split_off(system); + let resource = rage_resource::Resource { version: meta::VERSION_RDR2, system: data, graphics }; + let meta = meta::parse(&resource).ok(); + if extension(name) == "#ldbmt" { + // Like the string tables of other games. + let texts = meta?.label_texts(); + return Some((texts.iter().map(|(label, text)| format!("0x{label:08X} {text}\n")).collect(), Vec::new())); + } + return metadata_content(meta.map(|m| m.to_xml()), &resource.system); + } + if psin::is_psin(&data) { + return metadata_content(psin::parse(&data).ok().map(|p| p.to_xml()), &data); + } + if pso::is_pso(&data) { + return metadata_content(pso::parse(&data).ok().map(|p| p.to_xml()), &data); + } + if rbf::is_rbf(&data) { + return metadata_content(rbf::to_xml(&data).ok().map(|(xml, errors, _)| (xml, errors)), &data); + } + // Metadata that is text already. + content_for(if is_indexable(name) { name } else { "metadata.xml" }, &data) +} + +/// The words of metadata without its numbers, which make up most of it and +/// are no use in a search. Words stay in order, for phrases. +pub fn without_numbers(text: &str) -> String { + let is_number = + |w: &str| w.as_bytes()[0].is_ascii_digit() && (w.len() < 3 || w.bytes().all(|b| b.is_ascii_digit())); + let words = text.split(|c: char| !c.is_alphanumeric() && c != '_').filter(|w| !w.is_empty() && !is_number(w)); + let mut out = String::new(); + for word in words { + out.push_str(word); + out.push(' '); + } + out +} + +/// Metadata as XML; with the strings in the data where that could not be +/// converted in full. Hashes that stand for unknown names are no names. +fn metadata_content(converted: Option<(String, Vec)>, data: &[u8]) -> Option<(String, Vec)> { + let (mut text, incomplete) = match converted { + Some((xml, errors)) => (xml, !errors.is_empty()), + None => (String::new(), true), + }; + if incomplete { + let printable = |b: &u8| *b >= b' ' && *b != 0x7f; + for run in data.split(|b| !printable(b)).filter(|run| run.len() >= 4) { + if let Ok(run) = std::str::from_utf8(run) { + text.push('\n'); + text.push_str(run); + } + } + } + let mut words: Vec = + identifiers(&text).filter(|word| !word.starts_with("hash_")).map(str::to_owned).collect(); + words.sort_unstable(); + words.dedup(); + (!text.is_empty()).then_some((text, words)) +} + +/// The text of an indexed file, read back from where it is. +pub fn node_text(node: &Node) -> Option { + let of = |name: &str, data: &[u8]| content_for(name, data).map(|(text, _)| text); + match node { + Node::ArchiveFile(rpf, id) => of(&rpf.entry(*id).name, &rpf.read(*id).ok()?), + Node::Gta4File(archive, id) => of(&archive.entry(*id).name, &archive.read(*id).ok()?), + Node::PlainFile(path) => of(&path.file_name()?.to_string_lossy(), &std::fs::read(path).ok()?), + Node::Rpf8File(rpf, i) => of(&rpf.entry_name(*i), &rpf.read(rpf.entries()?.get(*i)?).ok()?), + Node::Rpf9File(rpf, i) => { + let entries = rpf.entries().ok()?; + let entry = entries.get(*i)?; + let name = rpf.entry_name(entry); + if !is_indexable_gta6(&name) { + return None; + } + rpf9_content(rpf, entry, &name).ok()?.map(|(text, _)| text) + } + _ => None, + } +} + +/// How metadata of unknown names refers to `name`: by its hash, of the name +/// as it is (fields and structures) or in lower case (values). +pub(crate) fn hashed_names(name: &str) -> Option<[String; 2]> { + let one_name = name.len() >= 3 && name.bytes().all(|b| b.is_ascii_alphanumeric() || b == b'_'); + one_name.then(|| [jenkins_bytes(name.as_bytes()), joaat(name)].map(|hash| format!("hash_{hash:08x}"))) +} + /// Searchable text for a file, plus names for the hash dictionary. /// /// * text formats: the text itself; dictionary = identifiers in it @@ -108,13 +223,31 @@ fn parse_gxt(data: &[u8]) -> Option { Some(out) } -/// First line of `text` containing any of the query terms (case-insensitive), shortened. +/// The line of `text` with the most of the query terms (the first such, +/// case-insensitive), shortened. +/// Names and hashes (`0x1234ABCD`) are also found as `hash_1234ABCD`. pub fn snippet(text: &str, query: &str) -> Option { + let query = query.trim(); let terms: Vec = query.split_whitespace().map(|t| t.trim_matches('"').to_lowercase()).collect(); - let line = text.lines().find(|l| { - let lower = l.to_lowercase(); - terms.iter().any(|t| !t.is_empty() && lower.contains(t.as_str())) - })?; + let find = |terms: &[String]| { + let mut best = (0, None); + for line in text.lines() { + let lower = line.to_lowercase(); + let found = terms.iter().filter(|t| !t.is_empty() && lower.contains(t.as_str())).count(); + if found > best.0 { + best = (found, Some(line)); + } + if found == terms.len() { + break; + } + } + best.1 + }; + let hashed = || match query.strip_prefix("0x") { + Some(hash) if hash.len() == 8 => find(&[format!("hash_{}", hash.to_lowercase())]), + _ => find(&hashed_names(query)?), + }; + let line = find(&terms).or_else(hashed)?; let line = line.trim(); Some(if line.chars().count() > 200 { format!("{}…", line.chars().take(200).collect::()) @@ -183,8 +316,46 @@ mod tests { assert!(content_for("x.ydr", b"abc").is_none()); } + #[test] + fn metadata_is_searched_without_numbers() { + let xml = "-12 3d_prop 0x1F4 pack.name"; + assert_eq!(without_numbers(xml), "a x 3d_prop 0x1F4 pack name a "); + } + + #[test] + fn metadata_words_leave_out_unknown_hashes() { + let xml = "weapon_pistol".to_owned(); + let (text, words) = metadata_content(Some((xml.clone(), Vec::new())), b"data").unwrap(); + assert_eq!((text, words), (xml, vec!["weapon_pistol".to_owned()])); + } + + #[test] + fn strings_stand_in_for_metadata_that_cannot_be_converted() { + let data = b"\x01\x02body_shell\0ab\0\xff\xfebinary\0Geb\xc3\xa4ude\0"; + let (text, words) = metadata_content(None, data).unwrap(); + assert_eq!(text, "\nbody_shell\nGebäude"); + assert_eq!(words, ["Geb", "body_shell", "ude"]); + assert!(metadata_content(None, b"\0\x01").is_none()); + let (text, _) = metadata_content(Some(("".to_owned(), vec!["an error".to_owned()])), data).unwrap(); + assert!(text.starts_with("\nbody_shell")); + } + + #[test] + fn finds_hashed_names() { + let [exact, lower] = hashed_names("Adder").unwrap(); + assert_eq!(lower, "hash_b779a091"); + assert_ne!(exact, lower); + assert!(hashed_names("two words").is_none() && hashed_names("a.b").is_none()); + let text = "\n \n"; + for query in ["Adder", "0xB779A091"] { + assert_eq!(snippet(text, query).as_deref(), Some("")); + } + assert_eq!(snippet(text, "0x"), None); + } + #[test] fn finds_snippet() { + assert_eq!(snippet("a gun\nthe gun of A", "of gun").as_deref(), Some("the gun of A")); assert_eq!(snippet("a\n Pistol\nc", "pistol").as_deref(), Some("Pistol")); } } diff --git a/crates/rage-index/src/lib.rs b/crates/rage-index/src/lib.rs index 77cff2b..3581417 100644 --- a/crates/rage-index/src/lib.rs +++ b/crates/rage-index/src/lib.rs @@ -6,7 +6,7 @@ //! * a hash dictionary of identifiers found in the game's text data, so a bare //! hash like `0xB779A091` can be turned back into a name; //! * a full-text index (FTS5, contentless) over text files, audio name tables -//! and GXT2 string tables. +//! and GXT2 string tables, and over the metadata of GTA VI as XML. //! //! The index is updated incrementally: only top-level archives whose size or //! modification time changed are re-read. @@ -21,7 +21,7 @@ use std::path::{Path, PathBuf}; use rusqlite::Connection; -pub use content::{content_for, snippet}; +pub use content::{content_for, node_text, snippet}; pub use search::{Hit, HitReason, LANGUAGES, SearchResults, language_of, parse_hash}; pub use update::{Progress, UpdateStats}; @@ -137,6 +137,11 @@ impl Index { }) } + /// Whether an update has run to its end. + pub fn is_complete(&self) -> Result { + Ok(schema::get_meta(&self.conn, "updated_at")?.is_some()) + } + /// Unix time the indexed archives last changed (added, changed or /// removed), not merely when they were last checked. Caches built from the /// index compare against it. Indexes from before it was recorded give the diff --git a/crates/rage-index/src/schema.rs b/crates/rage-index/src/schema.rs index 2ccc64f..cae99e3 100644 --- a/crates/rage-index/src/schema.rs +++ b/crates/rage-index/src/schema.rs @@ -5,7 +5,8 @@ use rusqlite::{Connection, OptionalExtension, params}; /// Bump when the schema or the indexing rules change; older databases are rebuilt. /// 3: GTA IV audio entries are indexed by name (not only their hash). /// 4: RDR2 archives (RPF8) are indexed; indexes that skipped them are rebuilt. -const SCHEMA_VERSION: &str = "4"; +/// 5: GTA VI archives (RPF9) are indexed; indexes that failed on them are rebuilt. +const SCHEMA_VERSION: &str = "5"; pub fn prepare(conn: &Connection) -> rusqlite::Result<()> { conn.pragma_update(None, "journal_mode", "WAL")?; diff --git a/crates/rage-index/src/search.rs b/crates/rage-index/src/search.rs index 9644f27..acc3820 100644 --- a/crates/rage-index/src/search.rs +++ b/crates/rage-index/src/search.rs @@ -5,6 +5,7 @@ use std::collections::HashSet; use rage_core::hash::joaat; use rusqlite::params; +use crate::content::hashed_names; use crate::{EntryTag, Index, IndexError}; /// Why an entry matched. @@ -60,11 +61,14 @@ pub fn parse_hash(query: &str) -> Option { None } -/// Text languages of GTA V, as used in the names of its `*.rpf` language archives. -pub const LANGUAGES: [&str; 13] = [ +/// Text languages of the games, as used in the names of its `*.rpf` language archives. +/// `brazilian` and `chinesetrad` are GTA VI's. +pub const LANGUAGES: [&str; 15] = [ "american", + "brazilian", "chinese", "chinesesimp", + "chinesetrad", "french", "german", "italian", @@ -77,26 +81,33 @@ pub const LANGUAGES: [&str; 13] = [ "spanish", ]; -/// Language of a localized file, derived from its path (`…/germandlc.rpf/…`, `…/german_rel.rpf/…`, `…/lang/german/…`). +/// Language of a localized file, derived from its path (`…/germandlc.rpf/…`, `…/german_rel.rpf/…`, +/// `…/german_final.rpf/…`, `…/lang/german/…`). pub fn language_of(vpath: &str) -> Option<&'static str> { vpath.split('/').find_map(|seg| { let seg = seg.to_ascii_lowercase(); // GTA IV keeps its text tables loose: `common/text/german.gxt`. let base = seg.strip_suffix(".rpf").or_else(|| seg.strip_suffix(".gxt")).unwrap_or(&seg); - let base = base.strip_suffix("dlc").or_else(|| base.strip_suffix("_rel")).unwrap_or(base); + let base = ["dlc", "_rel", "_final"].iter().find_map(|end| base.strip_suffix(end)).unwrap_or(base); LANGUAGES.iter().find(|&&l| l == base).copied() }) } /// FTS5 query: every whitespace-separated term must appear (prefix match). +/// Other characters end a word in the text too, so `vehicles.meta` means its +/// words next to each other. A single name may also appear as its hash. fn fts_query(query: &str) -> Option { let terms: Vec = query .split_whitespace() - .map(|t| t.chars().filter(|c| c.is_alphanumeric() || *c == '_').collect::()) - .filter(|t| !t.is_empty()) - .map(|t| format!("\"{t}\"*")) + .map(|t| t.split(|c: char| !c.is_alphanumeric() && c != '_').filter(|w| !w.is_empty()).collect::>()) + .filter(|words| !words.is_empty()) + .map(|words| format!("\"{}\"*", words.join(" "))) .collect(); - (!terms.is_empty()).then(|| terms.join(" ")) + let terms = (!terms.is_empty()).then(|| terms.join(" "))?; + Some(match hashed_names(query.trim()) { + Some([exact, lower]) => format!("{terms} OR \"{exact}\" OR \"{lower}\""), + None => terms, + }) } fn like_pattern(query: &str) -> String { @@ -155,20 +166,26 @@ impl Index { .query_map(params![hash as i64, fetch], row_to_hit(HitReason::NameHash))? .collect::>()?; push(hits, &mut results); - // GXT2 labels are indexed as `0xHASH text` lines. + // GXT2 labels are indexed as `0xHASH text` lines, unknown names in + // metadata as `hash_HASH`. let mut stmt = self.conn.prepare_cached( "SELECT e.vpath, e.name, e.kind, e.size FROM content JOIN entries e ON e.id = content.rowid WHERE content MATCH ?1 ORDER BY rank LIMIT ?2", )?; let hits: Vec = stmt - .query_map(params![format!("\"0x{hash:08x}\""), fetch * 20], row_to_hit(HitReason::Content))? + .query_map( + params![format!("\"0x{hash:08x}\" OR \"hash_{hash:08x}\""), fetch * 20], + row_to_hit(HitReason::Content), + )? .collect::>()?; push(hits.into_iter().filter(|h| wanted_language(&h.vpath)).collect(), &mut results); return Ok(results); } let mut stmt = self.conn.prepare_cached( - "SELECT vpath, name, kind, size FROM entries WHERE name LIKE ?1 ESCAPE '\\' + "SELECT vpath, name, kind, size FROM entries + WHERE name LIKE ?1 ESCAPE '\\' OR ?5 AND vpath LIKE ?1 ESCAPE '\\' + OR name_hash = ?3 OR stem_hash = ?3 -- also where only the hash is known ORDER BY CASE WHEN name_hash = ?3 OR stem_hash = ?3 THEN 0 -- exact name or stem WHEN name LIKE ?4 ESCAPE '\\' THEN 1 -- prefix @@ -176,20 +193,31 @@ impl Index { length(name), vpath LIMIT ?2", )?; let prefix = format!("{}%", like_pattern(query).trim_start_matches('%')); - let hits = stmt - .query_map(params![like_pattern(query), fetch, joaat(query) as i64, prefix], row_to_hit(HitReason::Name))? + let path = query.contains(['/', '\\']); + let pattern = like_pattern(&query.replace('\\', "/")); + let mut names: Vec = stmt + .query_map(params![pattern, fetch, joaat(query) as i64, prefix, path], row_to_hit(HitReason::Name))? .collect::>()?; - push(hits, &mut results); - + let mut texts: Vec = Vec::new(); if let Some(fts) = fts_query(query) { let mut stmt = self.conn.prepare_cached( "SELECT e.vpath, e.name, e.kind, e.size FROM content JOIN entries e ON e.id = content.rowid WHERE content MATCH ?1 ORDER BY rank LIMIT ?2", )?; - let hits: Vec = + texts = stmt.query_map(params![fts, fetch * 20], row_to_hit(HitReason::Content))?.collect::>()?; - push(hits.into_iter().filter(|h| wanted_language(&h.vpath)).collect(), &mut results); + texts.retain(|h| wanted_language(&h.vpath)); + } + // Names come first, but leave room for some text hits: a common word + // is in more names than are shown. + let named: HashSet<&str> = names.iter().map(|h| h.vpath.as_str()).collect(); + let room = texts.iter().filter(|h| !named.contains(h.vpath.as_str())).take(limit / 4).count(); + if names.len() > limit - room { + names.truncate(limit - room); + results.limited = true; } + push(names, &mut results); + push(texts, &mut results); Ok(results) } } @@ -213,12 +241,63 @@ mod tests { fn detects_languages() { assert_eq!(language_of("x64b.rpf/data/lang/chinese_rel.rpf/global.gxt2"), Some("chinese")); assert_eq!(language_of("update/x/dlc.rpf/x64/data/lang/germandlc.rpf/a.gxt2"), Some("german")); + assert_eq!(language_of("data.rpf/data/lang/chinesetrad_final.rpf/a.#ldbmt"), Some("chinesetrad")); assert_eq!(language_of("x64e.rpf/levels/gta5/vehicles.rpf/adder.yft"), None); } + #[test] + fn finds_paths_and_unnamed_entries_by_the_hash_of_their_name() { + let dir = std::env::temp_dir().join(format!("openrage-index-search-{}", std::process::id())); + let index = Index::open(&dir.join("index.sqlite")).unwrap(); + for (vpath, hash) in [("a.rpf/cars/adder.#ft", None), ("a.rpf/entries/000001_00ff.#mt", Some(joaat("adder")))] { + let name = vpath.rsplit('/').next().unwrap(); + index + .conn + .execute( + "INSERT INTO entries(source, vpath, name, kind, size, name_hash, stem_hash) + VALUES(1, ?1, ?2, 2, 0, ?3, ?3)", + params![vpath, name, hash.unwrap_or_else(|| joaat(name)) as i64], + ) + .unwrap(); + } + let hits = + |q: &str| -> Vec { index.search(q, 20, None).unwrap().hits.into_iter().map(|h| h.vpath).collect() }; + assert_eq!(hits("Adder").len(), 2); + assert_eq!(hits("0xB779A091"), ["a.rpf/entries/000001_00ff.#mt"]); + assert_eq!(hits("cars/add"), ["a.rpf/cars/adder.#ft"]); + assert_eq!(hits("cars\\add"), ["a.rpf/cars/adder.#ft"]); + assert!(hits("cars").is_empty()); + let _ = std::fs::remove_dir_all(&dir); + } + + #[test] + fn text_hits_have_room_beside_names() { + let dir = std::env::temp_dir().join(format!("openrage-index-room-{}", std::process::id())); + let index = Index::open(&dir.join("index.sqlite")).unwrap(); + for i in 0..30 { + let name = if i < 20 { format!("motel_{i}.#dr") } else { format!("{i}.xml") }; + let insert = "INSERT INTO entries(id, source, vpath, name, kind, size, name_hash, stem_hash) + VALUES(?1, 1, ?2, ?2, 2, 0, 0, 0)"; + index.conn.execute(insert, params![i, name]).unwrap(); + if i >= 20 { + index.conn.execute("INSERT INTO content(rowid, body) VALUES(?1, 'a motel')", [i]).unwrap(); + } + } + let results = index.search("motel", 12, None).unwrap(); + let texts = results.hits.iter().filter(|h| h.reason == HitReason::Content).count(); + assert_eq!((results.hits.len(), texts, results.limited), (12, 3, true)); + let results = index.search("motel", 30, None).unwrap(); + assert_eq!((results.hits.len(), results.limited), (30, false)); + let _ = std::fs::remove_dir_all(&dir); + } + #[test] fn builds_fts_queries() { - assert_eq!(fts_query("weapon_pistol").as_deref(), Some("\"weapon_pistol\"*")); + let hash = joaat("weapon_pistol"); + let expected = format!("\"weapon_pistol\"* OR \"hash_{hash:08x}\" OR \"hash_{hash:08x}\""); + assert_eq!(fts_query("weapon_pistol"), Some(expected)); + // The text is split at the dot, too. + assert_eq!(fts_query("vehicles.meta").as_deref(), Some("\"vehicles meta\"*")); assert_eq!(fts_query("a \"b\" -c").as_deref(), Some("\"a\"* \"b\"* \"c\"*")); assert_eq!(fts_query(" ").as_deref(), None); } diff --git a/crates/rage-index/src/update.rs b/crates/rage-index/src/update.rs index 68ef67f..0cbc859 100644 --- a/crates/rage-index/src/update.rs +++ b/crates/rage-index/src/update.rs @@ -5,7 +5,9 @@ //! including all archives nested inside it. Loose files are re-listed on //! every update (cheap). Archives are read in parallel; a single writer //! commits each archive in its own transaction, so a cancelled update keeps -//! everything finished so far. +//! everything finished so far. GTA VI archives hold up to thousands of others +//! and are written in parts; what a cancelled update wrote of one is replaced +//! by the next. use std::collections::{HashMap, HashSet}; use std::fs; @@ -17,11 +19,11 @@ use std::time::{Instant, SystemTime, UNIX_EPOCH}; use rage_core::hash::joaat; use rage_crypto::GtaVKeys; -use rage_rpf::{EntryKind, Gta4Archive, Rpf7, vfs}; +use rage_rpf::{EntryKind, Gta4Archive, Rpf7, Rpf9, vfs}; use rayon::prelude::*; use rusqlite::params; -use crate::content::{content_for, is_indexable}; +use crate::content::{content_for, is_indexable, is_indexable_gta6, rpf9_content, without_numbers}; use crate::{EntryTag, Index, IndexError, schema}; #[derive(Debug, Clone, Default)] @@ -53,6 +55,8 @@ struct DiskArchive { gta4: bool, /// A Red Dead Redemption 2 archive (RPF8) rather than RPF7. rdr2: bool, + /// A GTA VI archive (RPF9) rather than RPF7. + gta6: bool, } /// Largest loose file whose text is indexed (GTA IV's text tables are ~6 MB). @@ -64,8 +68,11 @@ struct Record { kind: EntryTag, size: u64, body: Option, + /// The hash of a file whose name is not known, from the archive's table. + hash: Option, } +#[derive(Default)] struct Batch { rel: String, size: i64, @@ -73,6 +80,8 @@ struct Batch { records: Vec, dictionary: HashSet, errors: usize, + /// More of the same archive follows. + partial: bool, } fn stem(name: &str) -> &str { @@ -122,7 +131,7 @@ fn scan_disk(game_dir: &Path) -> (Vec, Vec, HashSet body = Some(text); dictionary.extend(words); } - records.push(Record { vpath: rel.clone(), name, kind, size: meta.len(), body }); + records.push(Record { vpath: rel.clone(), name, kind, size: meta.len(), body, hash: None }); if meta.is_dir() { stack.push((entry.path(), rel)); } else if is_rpf { @@ -133,6 +142,7 @@ fn scan_disk(game_dir: &Path) -> (Vec, Vec, HashSet mtime: mtime_of(&meta), gta4, rdr2: !gta4 && rage_rpf::Rpf8::file_is_rpf8(&entry.path()), + gta6: !gta4 && Rpf9::file_is_rpf9(&entry.path()), }); } } @@ -171,7 +181,14 @@ fn read_gta4_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { Err(_) => batch.errors += 1, } } - batch.records.push(Record { vpath: path.to_owned(), name: e.name.clone(), kind, size: e.size(), body }); + batch.records.push(Record { + vpath: path.to_owned(), + name: e.name.clone(), + kind, + size: e.size(), + body, + hash: None, + }); }); batch } @@ -203,6 +220,7 @@ fn read_rdr2_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { kind: EntryTag::Dir, size: 0, body: None, + hash: None, }); } } @@ -213,6 +231,7 @@ fn read_rdr2_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { kind: EntryTag::Archive, size: e.size(), body: None, + hash: None, }); match rpf.open_child(e) { Ok(child) if depth < rage_rpf::MAX_NESTING => walk(&child, &vpath, depth + 1, batch), @@ -233,7 +252,7 @@ fn read_rdr2_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { Err(_) => batch.errors += 1, } } - batch.records.push(Record { vpath, name: base, kind, size: e.size(), body }); + batch.records.push(Record { vpath, name: base, kind, size: e.size(), body, hash: None }); } } match Rpf8::open_default(&archive.path) { @@ -243,16 +262,168 @@ fn read_rdr2_archive(archive: &DiskArchive, mut batch: Batch) -> Batch { batch } -/// Reads one top-level archive (and everything nested in it) into a batch. -fn read_archive(archive: &DiskArchive, keys: Option>) -> Batch { - let mut batch = Batch { - rel: archive.rel.clone(), - size: archive.size, - mtime: archive.mtime, - records: Vec::new(), - dictionary: HashSet::new(), - errors: 0, +/// Larger members of GTA VI archives are not read for their text. +const MAX_GTA6_TEXT: u64 = 64 << 20; +/// Archives with gigabytes of metadata that is all numbers. +const GTA6_NUMBERS: &str = "/audio/exterior_occlusion/"; +/// As many are read and converted at a time, and written in one transaction. +const TEXTS_AT_ONCE: usize = 64; + +/// Reads a GTA VI archive (RPF9) and the archives nested in it. Only archives +/// with a readable table are indexed: the recovery view of others takes a scan +/// of the whole file, and has no names. Every nested archive is a part of its +/// own, sent when it is read: opening one takes a while, as it learns names +/// from its members. Returns the last part, or `None` if cancelled. +fn read_gta6_archive( + archive: &DiskArchive, + mut batch: Batch, + cancel: &AtomicBool, + part: &(dyn Fn(Batch) + Sync), +) -> Option { + match Rpf9::open(&archive.path) { + Ok(rpf) if rpf.is_native() => walk_gta6(&rpf, &archive.rel, 0, cancel, part, &|| archive.part()), + // Not readable with this executable: tried again by the next update. + _ => { + batch.errors += 1; + batch.partial = true; + } + } + (!cancel.load(Ordering::Relaxed)).then_some(batch) +} + +fn walk_gta6( + rpf: &Rpf9, + prefix: &str, + depth: u8, + cancel: &AtomicBool, + part: &(dyn Fn(Batch) + Sync), + new_part: &(dyn Fn() -> Batch + Sync), +) { + let mut batch = new_part(); + let Ok(entries) = rpf.entries() else { + batch.errors += 1; + return part(batch); }; + // Folders come from the entries' paths. + let mut dirs: HashSet = HashSet::new(); + let mut children = Vec::new(); + let mut texts = Vec::new(); + for e in entries.iter() { + let name = rpf.entry_name(e); + let vpath = format!("{prefix}/{name}"); + let mut parts: Vec<&str> = name.split('/').collect(); + let base = parts.pop().unwrap_or_default().to_owned(); + let mut dir = prefix.to_owned(); + for folder in parts { + dir = format!("{dir}/{folder}"); + if dirs.insert(dir.to_ascii_lowercase()) { + batch.records.push(Record { + vpath: dir.clone(), + name: folder.to_owned(), + kind: EntryTag::Dir, + size: 0, + body: None, + hash: None, + }); + } + } + let kind = if rpf.is_archive(e) { + children.push((e, vpath.clone())); + EntryTag::Archive + } else if rpf.resource_parts(e).is_some() { + EntryTag::Resource + } else { + EntryTag::File + }; + if kind != EntryTag::Archive + && is_indexable_gta6(&base) + && e.size <= MAX_GTA6_TEXT + && !vpath.contains(GTA6_NUMBERS) + { + texts.push((e, vpath, base, kind)); + continue; + } + let hash = rpf.unnamed_hash(e); + batch.records.push(Record { vpath, name: base, kind, size: e.size, body: None, hash }); + } + if cancel.load(Ordering::Relaxed) { + return; + } + part(batch); + // A few at a time: converted metadata is several times its size. + for chunk in texts.chunks(TEXTS_AT_ONCE) { + let found: Vec<_> = chunk + .par_iter() + .filter(|_| !cancel.load(Ordering::Relaxed)) + .map(|(e, vpath, base, kind)| { + let content = rpf9_content(rpf, e, base).map(|found| { + let is_text = is_indexable(base) || base.to_ascii_lowercase().ends_with(".#ldbmt"); + found.map(|(text, words)| (if is_text { text } else { without_numbers(&text) }, words)) + }); + let hash = rpf.unnamed_hash(e); + let record = + Record { vpath: vpath.clone(), name: base.clone(), kind: *kind, size: e.size, body: None, hash }; + (record, content) + }) + .collect(); + let mut batch = new_part(); + for (mut record, content) in found { + match content { + Ok(Some((text, words))) => { + record.body = Some(text); + batch.dictionary.extend(words); + } + Ok(None) => {} + Err(_) => batch.errors += 1, + } + batch.records.push(record); + } + if cancel.load(Ordering::Relaxed) { + return; + } + part(batch); + } + children.par_iter().for_each(|(e, vpath)| { + if cancel.load(Ordering::Relaxed) { + return; + } + match rpf.open_child(e) { + Ok(child) if depth < rage_rpf::MAX_NESTING => { + walk_gta6(&child, vpath, depth + 1, cancel, part, new_part); + } + _ => part(Batch { errors: 1, ..new_part() }), + } + }); +} + +impl DiskArchive { + fn batch(&self) -> Batch { + Batch { rel: self.rel.clone(), size: self.size, mtime: self.mtime, ..Default::default() } + } + + /// For some of its entries. + fn part(&self) -> Batch { + Batch { partial: true, ..self.batch() } + } +} + +/// Reads one top-level archive (and everything nested in it) into a batch; +/// a GTA VI archive into several, of which all but the last go to `part`. +/// `None` if cancelled. +fn read_archive( + archive: &DiskArchive, + keys: Option>, + cancel: &AtomicBool, + part: &(dyn Fn(Batch) + Sync), +) -> Option { + if archive.gta6 { + return read_gta6_archive(archive, archive.batch(), cancel, part); + } + Some(read_other_archive(archive, keys)) +} + +fn read_other_archive(archive: &DiskArchive, keys: Option>) -> Batch { + let mut batch = archive.batch(); if archive.gta4 { return read_gta4_archive(archive, batch); } @@ -292,7 +463,14 @@ fn read_archive(archive: &DiskArchive, keys: Option>) -> Batch { Err(_) => errors.set(errors.get() + 1), } } - batch.records.push(Record { vpath: path.to_owned(), name: e.name.clone(), kind, size: e.size(), body }); + batch.records.push(Record { + vpath: path.to_owned(), + name: e.name.clone(), + kind, + size: e.size(), + body, + hash: None, + }); }, &mut |_| errors.set(errors.get() + 1), ); @@ -341,6 +519,12 @@ impl Index { .filter(|a| stored.get(&a.rel).is_none_or(|&(_, size, mtime)| size != a.size || mtime != a.mtime)) .collect(); todo.sort_by_key(|a| std::cmp::Reverse(a.size)); // big ones first for better parallelism + // GTA VI archives are only indexed if the game's executable gives the + // keys. Asking one here also loads those before the threads that read + // archives wait for each other to do it. + if !todo.iter().rev().filter(|a| a.gta6).any(|a| Rpf9::open(&a.path).is_ok_and(|rpf| rpf.is_native())) { + todo.retain(|a| !a.gta6); + } { let tx = self.conn.transaction()?; @@ -349,8 +533,7 @@ impl Index { tx.execute("DELETE FROM entries WHERE source = ?1", [id])?; tx.execute("DELETE FROM sources WHERE id = ?1", [id])?; } - let loose_batch = - Batch { rel: String::new(), size: 0, mtime: 0, records: loose, dictionary: loose_words, errors: 0 }; + let loose_batch = Batch { records: loose, dictionary: loose_words, ..Default::default() }; write_batch(&tx, &loose_batch)?; tx.commit()?; } @@ -362,8 +545,15 @@ impl Index { let result: Result<(), IndexError> = std::thread::scope(|scope| { scope.spawn(move || { todo.par_iter().for_each_with(sender, |s, archive| { - if !cancel.load(Ordering::Relaxed) { - let _ = s.send(read_archive(archive, keys.clone())); + if cancel.load(Ordering::Relaxed) { + return; + } + let s = &*s; + let part = |batch| { + let _ = s.send(batch); + }; + if let Some(batch) = read_archive(archive, keys.clone(), cancel, &part) { + part(batch); } }); }); @@ -371,8 +561,10 @@ impl Index { let tx = conn.transaction()?; let added = write_batch(&tx, &batch)?; tx.commit()?; - done += 1; - stats.archives_indexed += 1; + if !batch.partial { + done += 1; + stats.archives_indexed += 1; + } stats.entries_added += added; stats.read_errors += batch.errors; progress(&Progress { @@ -407,11 +599,14 @@ impl Index { } fn write_batch(tx: &rusqlite::Transaction<'_>, batch: &Batch) -> Result { - tx.execute( - "INSERT INTO sources(path, size, mtime) VALUES(?1, ?2, ?3)", - params![batch.rel, batch.size, batch.mtime], + // An archive that is not complete matches no size on disk. + let (size, mtime) = if batch.partial { (-1, -1) } else { (batch.size, batch.mtime) }; + let source: i64 = tx.query_row( + "INSERT INTO sources(path, size, mtime) VALUES(?1, ?2, ?3) + ON CONFLICT(path) DO UPDATE SET size = excluded.size, mtime = excluded.mtime RETURNING id", + params![batch.rel, size, mtime], + |r| r.get(0), )?; - let source = tx.last_insert_rowid(); let mut entry = tx.prepare_cached( "INSERT INTO entries(source, vpath, name, kind, size, name_hash, stem_hash, has_text) VALUES(?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)", @@ -424,8 +619,8 @@ fn write_batch(tx: &rusqlite::Transaction<'_>, batch: &Batch) -> Result Option { + let (native, e) = self.native_entry(entry)?; + e.name_hash32.filter(|_| native.is_unnamed(e)) + } + /// Opens an archive inside this one. pub fn open_child(&self, entry: &Entry) -> Result { let display = format!("{}/{}", self.display, self.entry_name(entry)); diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs index 983b5c8..3f7183e 100644 --- a/crates/rage-rpf/src/rpf9_native.rs +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -185,10 +185,12 @@ impl NativeArchive { } fn unnamed(&self) -> impl Iterator { - self.catalog - .entries - .iter() - .filter(|e| self.paths[e.slot].strip_prefix(UNNAMED).is_some_and(|rest| rest.starts_with('/'))) + self.catalog.entries.iter().filter(|e| self.is_unnamed(e)) + } + + /// Whether an entry is listed by its slot, as its name is not known. + pub fn is_unnamed(&self, entry: &NativeEntry) -> bool { + self.paths[entry.slot].strip_prefix(UNNAMED).is_some_and(|rest| rest.starts_with('/')) } /// Names of unnamed entries that follow from a pattern or from the names From 8ab8246f21817f210888e3cef0ddc57d0ac02208 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 06:13:29 +0100 Subject: [PATCH 12/31] GTA VI: read text tables Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/metadata.rs | 3 +- crates/rage-formats/src/meta.rs | 44 +++++++++++++++++++++++++---- 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/crates/openrage-app/src/metadata.rs b/crates/openrage-app/src/metadata.rs index df439a0..d718839 100644 --- a/crates/openrage-app/src/metadata.rs +++ b/crates/openrage-app/src/metadata.rs @@ -12,7 +12,8 @@ use rage_resource::Resource; use rage_rpf::vfs::Node; /// Extensions of files that hold metadata. -pub const EXTENSIONS: &[&str] = &["ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0", "#mt", "#map", "#typ"]; +pub const EXTENSIONS: &[&str] = + &["ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0", "#mt", "#map", "#typ", "#ldb", "#ldbmt"]; pub fn is_metadata(name: &str) -> bool { let lower = name.to_ascii_lowercase(); diff --git a/crates/rage-formats/src/meta.rs b/crates/rage-formats/src/meta.rs index 22aa446..639ee28 100644 --- a/crates/rage-formats/src/meta.rs +++ b/crates/rage-formats/src/meta.rs @@ -34,6 +34,8 @@ pub const VERSION: u32 = 2; pub const VERSION_RDR2: u32 = 3; const ARRAYINFO: u32 = 0x100; +/// Zero-ended strings are cut off here. +const MAX_STRING: usize = 1 << 20; #[derive(Debug, thiserror::Error)] #[non_exhaustive] @@ -72,6 +74,10 @@ mod ty { /// GTA VI: 16-byte values of unknown layout (shown as bytes). pub const OPAQUE16: u8 = 0x5C; pub const OPAQUE16B: u8 = 0x67; + /// GTA VI: pointer to a zero-ended string. + pub const STRING_POINTER: u8 = 0x42; + /// GTA VI: a hash table; its key is like a map's, the halves swapped. + pub const HASH_TABLE: u8 = 0x75; pub const STRUCTURE: u8 = 0x05; pub const STRUCTURE_POINTER: u8 = 0x07; pub const SBYTE: u8 = 0x10; @@ -395,7 +401,7 @@ impl Meta { let byte = |at: usize| data.get(at).copied().ok_or_else(|| format!("offset {at:#x} beyond block")); match entry.kind { ty::ARRAY => self.array_node(w, level, data, at, array_info, ename, depth)?, - ty::MAP => self.map_node(w, level, data, at, entry, owner, ename, depth)?, + ty::MAP | ty::HASH_TABLE => self.map_node(w, level, data, at, entry, owner, ename, depth)?, ty::ARRAY_OF_BYTES => { let n = entry.key as usize; let text = match array_info.kind { @@ -437,6 +443,11 @@ impl Meta { let text = if ptr == 0 || len == 0 { String::new() } else { self.string(ptr, len)? }; w.text(level, ename, &text); } + ty::STRING_POINTER => { + let ptr = u64_at(data, at)?; + let text = if ptr == 0 { String::new() } else { self.string(ptr, MAX_STRING)? }; + w.text(level, ename, &text); + } ty::DATA_BLOCK_POINTER => { let (id, _) = self.unpack(u64_at(data, at)?); let bytes: Vec = match self.block(id) { @@ -538,12 +549,18 @@ impl Meta { depth: usize, ) -> Result<(), String> { let ptr = u64_at(data, at + 8)?; - let count = u16_at(data, at + 16)? as usize; + // A hash table has its groups of 16 places and its count in front. + let table = entry.kind == ty::HASH_TABLE; + let groups = if table { u32_at(data, at)? as usize } else { 0 }; + let count = if table { u32_at(data, at + 4)? as usize } else { u16_at(data, at + 16)? as usize }; if count == 0 { w.empty(level, ename); return Ok(()); } - let (ki, vi) = ((entry.key >> 16) as usize, (entry.key & 0xFFFF) as usize); + let (mut ki, mut vi) = ((entry.key >> 16) as usize, (entry.key & 0xFFFF) as usize); + if table { + std::mem::swap(&mut ki, &mut vi); + } let key_entry = *owner.entries.get(ki).ok_or("map key type not found")?; let value_entry = *owner.entries.get(vi).ok_or("map value type not found")?; // An array value's item type is the type entry before it. @@ -563,9 +580,26 @@ impl Meta { let stride = (8 + value_size).next_multiple_of(8); let (id, off) = self.unpack(ptr); let block = self.block(id).ok_or_else(|| format!("map block {id} not found"))?; + // Where the pairs are: one after the other, or in a hash table's used + // places. Each group is 16 control bytes (the top bit set: unused), + // then 16 places. + let pairs: Vec = if table { + let group = 16 + 16 * stride; + let end = groups.checked_mul(group).and_then(|len| off.checked_add(len)); + let bytes = end.and_then(|end| block.data.get(off..end)).ok_or("hash table beyond its block")?; + let used = |g: usize| { + let at = off + g * group; + (0..16).filter(move |i| bytes[g * group + i] < 0x80).map(move |i| at + 16 + i * stride) + }; + (0..groups).flat_map(used).collect() + } else { + (0..count).map(|i| off + i * stride).collect() + }; + if pairs.len() != count { + return Err(format!("{} places used, the table names {count}", pairs.len())); + } w.open(level, ename); - for i in 0..count { - let pair = off + i * stride; + for (i, pair) in pairs.into_iter().enumerate() { if pair + stride > block.data.len() { w.error(level + 1, format!("map pair {i} beyond its block")); break; From a59303a882d135005c625c4fd7ec2562fb3e035a Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 05:59:13 +0100 Subject: [PATCH 13/31] Bink 2 videos: decoder, CLI export, player in the preview Pure Rust decoder for .bk2 (KB2g to KB2n) with alpha and sound, ported from Librempeg (GPL-3.0-or-later). openrage media exports frames as PNG and sound as WAV; the GUI preview shows the first frame and plays, pauses and seeks. Co-Authored-By: Claude Opus 5.5 --- NOTICE.md | 18 + crates/openrage-app/src/media.rs | 22 +- crates/openrage-cli/src/cli.rs | 14 +- crates/openrage-cli/src/cmd/verify.rs | 10 +- crates/openrage-cli/src/cmd/view.rs | 40 +- crates/openrage-cli/src/main.rs | 4 +- crates/openrage-gui/src/browser.rs | 5 + crates/openrage-gui/src/callbacks.rs | 7 +- crates/openrage-gui/src/debug.rs | 4 + crates/openrage-gui/src/docs.rs | 7 +- crates/openrage-gui/src/main.rs | 5 + crates/openrage-gui/src/preview.rs | 14 +- crates/openrage-gui/src/sound_ui.rs | 7 +- crates/openrage-gui/src/video_ui.rs | 205 ++++ crates/openrage-gui/ui/app.slint | 50 +- crates/rage-formats/src/bink2/audio.rs | 281 +++++ crates/rage-formats/src/bink2/bits.rs | 97 ++ crates/rage-formats/src/bink2/mod.rs | 340 ++++++ crates/rage-formats/src/bink2/tables.rs | 159 +++ crates/rage-formats/src/bink2/video.rs | 1255 +++++++++++++++++++++++ crates/rage-formats/src/lib.rs | 1 + crates/rage-formats/src/media.rs | 7 +- 22 files changed, 2527 insertions(+), 25 deletions(-) create mode 100644 crates/openrage-gui/src/video_ui.rs create mode 100644 crates/rage-formats/src/bink2/audio.rs create mode 100644 crates/rage-formats/src/bink2/bits.rs create mode 100644 crates/rage-formats/src/bink2/mod.rs create mode 100644 crates/rage-formats/src/bink2/tables.rs create mode 100644 crates/rage-formats/src/bink2/video.rs diff --git a/NOTICE.md b/NOTICE.md index 9896c16..38163f7 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -57,6 +57,24 @@ Opus audio (GTA VI) is decoded with opus-rs (https://github.com/restsend/opus-rs), a port of libopus, licensed under the BSD 3-Clause licence. +## Librempeg + +The Bink 2 video and audio decoder in `crates/rage-formats/src/bink2` is a port +to Rust of the one in Librempeg (https://github.com/librempeg/librempeg; +`libavcodec/bink2.c`, `bink2.h`, `bink2g.h`, `libavcodec/binkaudio.c` and +`libavformat/bink.c`), which is licensed under the GNU General Public License +version 3 or later and used here under version 3: + +``` +Copyright (c) 2014 Konstantin Shishkov +Copyright (c) 2019 Paul B Mahol +Copyright (c) 2007-2011 Peter Ross +Copyright (c) 2009 Daniel Verkamp +``` + +Bink is a trademark of Epic Games Tools LLC (RAD Game Tools). OpenRAGE is not +affiliated with them and contains none of their code. + ## Leonida What is known about GTA VI's formats (RPF9 archives, audio containers, PSIN diff --git a/crates/openrage-app/src/media.rs b/crates/openrage-app/src/media.rs index 9a74364..9bb0f9b 100644 --- a/crates/openrage-app/src/media.rs +++ b/crates/openrage-app/src/media.rs @@ -1,4 +1,4 @@ -//! Facts about Scaleform movies (`.gfx`) and Bink videos (`.bik`) for display. +//! Facts about Scaleform movies (`.gfx`) and Bink videos (`.bik`, `.bk2`) for display. use anyhow::Result; @@ -18,7 +18,25 @@ fn short_list(names: &[String]) -> String { pub fn rows(name: &str, data: &[u8]) -> Result> { use rage_formats::media; let lower = name.to_ascii_lowercase(); - Ok(if lower.ends_with(".bik") { + Ok(if rage_formats::bink2::is_bink2(data) { + let v = rage_formats::bink2::read(data)?; + let mut rows = vec![ + ("Format".into(), format!("Bink 2 video (KB2{})", v.revision as char)), + ( + "Resolution".into(), + format!("{} × {}{}", v.width, v.height, if v.has_alpha() { ", with alpha" } else { "" }), + ), + ("Frames".into(), format!("{} at {:.2} fps", v.frames(), v.frames_per_second())), + ("Length".into(), format!("{:.1} s", v.duration())), + ]; + let tracks: Vec = v + .tracks + .iter() + .map(|t| format!("{} Hz, {}", t.sample_rate, if t.channels == 2 { "stereo" } else { "mono" })) + .collect(); + rows.push(("Sound".into(), if tracks.is_empty() { "none".into() } else { tracks.join("; ") })); + rows + } else if lower.ends_with(".bik") { let b = media::bink(data)?; vec![ ("Format".into(), format!("Bink video ({})", b.signature)), diff --git a/crates/openrage-cli/src/cli.rs b/crates/openrage-cli/src/cli.rs index f5920bf..5a8ac79 100644 --- a/crates/openrage-cli/src/cli.rs +++ b/crates/openrage-cli/src/cli.rs @@ -86,7 +86,8 @@ pub(crate) enum Command { /// Instead of archives, disassemble every script (.ysc) and check every jump. #[arg(long, conflicts_with_all = ["textures", "models", "audio", "animations", "meta", "text", "particles", "collisions", "paths"])] scripts: bool, - /// Instead of archives, read the header of every Scaleform movie (.gfx) and Bink video (.bik). + /// Instead of archives, read the header of every Scaleform movie (.gfx) and Bink video (.bik, .bk2), + /// and decode the first second of every .bk2. #[arg(long, conflicts_with_all = ["textures", "models", "audio", "animations", "meta", "text", "particles", "collisions", "paths", "scripts"])] media: bool, /// Instead of archives, read every GTA IV cutscene (.cut): its sections, the clips of @@ -232,9 +233,18 @@ pub(crate) enum Command { #[arg(long, conflicts_with_all = ["textures", "models", "text", "meta", "audio"])] anims: bool, }, - /// Show facts about a Scaleform movie (.gfx) or a Bink video (.bik). + /// Show facts about a Scaleform movie (.gfx) or a Bink video (.bik, .bk2). Media { path: String, + /// For a .bk2: write its pictures as PNG files into this directory. + #[arg(long)] + frames: Option, + /// Only write every n-th picture. + #[arg(long, default_value_t = 1, requires = "frames")] + every: usize, + /// For a .bk2: write its sound as a WAV file (the second track and on as `name.2.wav` …). + #[arg(long)] + wav: Option, /// For a .gfx: write it as a Flash file (.swf) for Flash tools such as JPEXS or Ruffle. #[arg(long)] swf: Option, diff --git a/crates/openrage-cli/src/cmd/verify.rs b/crates/openrage-cli/src/cmd/verify.rs index ab2cb87..969c4cf 100644 --- a/crates/openrage-cli/src/cmd/verify.rs +++ b/crates/openrage-cli/src/cmd/verify.rs @@ -183,7 +183,15 @@ pub(crate) fn cmd_verify_media(game_dir: &Path, within: &str, keys: Option, keys: Option>) -> Result<()> { +pub(crate) fn cmd_media( + game_dir: &Path, + path: &str, + frames: Option<&Path>, + every: usize, + wav: Option<&Path>, + swf: Option<&Path>, + keys: Option>, +) -> Result<()> { let (node, _) = rage_mods::resolve(game_dir, path, keys)?; let data = match node { Node::ArchiveFile(rpf, id) => rpf.read(id)?, Node::PlainFile(p) => fs::read(p)?, + Node::Rpf8File(rpf, i) => { + rpf.read(rpf.entries().and_then(|e| e.get(i)).context("archive table not readable")?)? + } + Node::Rpf9File(rpf, i) => rpf.read_at(i)?, + Node::Gta4File(a, id) => a.read(id)?, _ => bail!("{path} is not a file"), }; for (k, v) in openrage_app::media::rows(path, &data)? { outln!("{k:<14}{v}"); } + if let Some(dir) = frames { + let mut player = rage_formats::bink2::Player::new(&data)?; + fs::create_dir_all(dir)?; + let total = player.video.frames(); + for i in 0..total { + player.advance().with_context(|| format!("frame {i}"))?; + if i % every.max(1) == 0 { + let f = player.frame(); + fs::write(dir.join(format!("{i:05}.png")), rage_formats::png(f.width, f.height, &f.rgba())?)?; + } + } + outln!("Wrote {} of {total} frames to {}", total.div_ceil(every.max(1)), dir.display()); + } + if let Some(out) = wav { + let video = rage_formats::bink2::read(&data)?; + if video.tracks.is_empty() { + bail!("{path} has no sound"); + } + for i in 0..video.tracks.len() { + let Some(pcm) = video.sound(&data, i) else { continue }; + let file = if i == 0 { out.to_path_buf() } else { out.with_extension(format!("{}.wav", i + 1)) }; + fs::write(&file, pcm?.to_wav())?; + outln!("Wrote {}", file.display()); + } + } if let Some(out) = swf { fs::write(out, rage_formats::media::gfx_to_swf(&data)?)?; outln!("Wrote {}", out.display()); diff --git a/crates/openrage-cli/src/main.rs b/crates/openrage-cli/src/main.rs index 3512636..e948237 100644 --- a/crates/openrage-cli/src/main.rs +++ b/crates/openrage-cli/src/main.rs @@ -331,7 +331,9 @@ fn run() -> Result<()> { outln!("Imported {n} native names; script disassemblies now show them."); Ok(()) } - Command::Media { path, swf } => cmd_media(&game_dir, &path, swf.as_deref(), keys), + Command::Media { path, frames, every, wav, swf } => { + cmd_media(&game_dir, &path, frames.as_deref(), every, wav.as_deref(), swf.as_deref(), keys) + } Command::Script { path, out, strings } => cmd_script(&game_dir, &path, out.as_deref(), strings, keys), Command::Particles { path } => cmd_particles(&game_dir, &path, keys), Command::Text { path, out, import: None } => cmd_text(&game_dir, &path, out.as_deref(), keys), diff --git a/crates/openrage-gui/src/browser.rs b/crates/openrage-gui/src/browser.rs index 2dd8de4..9608a2b 100644 --- a/crates/openrage-gui/src/browser.rs +++ b/crates/openrage-gui/src/browser.rs @@ -110,6 +110,11 @@ pub enum Location { }, } +/// Whether a file name is a video the preview plays. +pub fn is_video(name: &str) -> bool { + name.to_ascii_lowercase().ends_with(".bk2") +} + /// Whether a file name is an audio container that can be opened like a folder. pub fn is_audio(name: &str) -> bool { name.to_ascii_lowercase().ends_with(".awc") diff --git a/crates/openrage-gui/src/callbacks.rs b/crates/openrage-gui/src/callbacks.rs index 2522efc..b746b67 100644 --- a/crates/openrage-gui/src/callbacks.rs +++ b/crates/openrage-gui/src/callbacks.rs @@ -174,7 +174,7 @@ fn wire_files(ui: &AppWindow) { let listing = a.listing.as_ref()?; let item = &listing.items[*a.visible.get(i as usize)?]; let name = item.name.to_ascii_lowercase(); - (name.ends_with(".bik") || name.ends_with(".bk2")) + name.ends_with(".bik") .then(|| item.vpath.clone().unwrap_or_else(|| browser::join(&listing.vpath, &item.name))) }); if let Some(vpath) = video { @@ -182,12 +182,13 @@ fn wire_files(ui: &AppWindow) { open_with_system(ui, vpath); return; } - // An audio container with one sound: the row plays it (it is + // A Bink 2 video or an audio container with one sound: the row plays it (it is // selected, so the sound is loaded or about to be). let is_container = with_app(|a| { let listing = a.listing.as_ref()?; let item = &listing.items[*a.visible.get(i as usize)?]; - Some(item.kind == ItemKind::File && item.vpath.is_none() && browser::is_audio(&item.name)) + let playable = (item.vpath.is_none() && browser::is_audio(&item.name)) || browser::is_video(&item.name); + Some(item.kind == ItemKind::File && playable) }); if is_container == Some(true) { if ui.get_file_selected() != i { diff --git a/crates/openrage-gui/src/debug.rs b/crates/openrage-gui/src/debug.rs index dfc34f5..e156c11 100644 --- a/crates/openrage-gui/src/debug.rs +++ b/crates/openrage-gui/src/debug.rs @@ -54,6 +54,10 @@ pub(crate) fn debug_snapshot(ui: &AppWindow) { }); if let Some(row) = row { select_row(&ui, row); + // `OPENRAGE_PLAY=1` plays the selected sound or video. + if std::env::var("OPENRAGE_PLAY").is_ok() { + with_app(|a| a.play_when_ready = true); + } // `OPENRAGE_PLUGIN_RUN=` runs the selected file's n-th plugin action. if let Ok(i) = std::env::var("OPENRAGE_PLUGIN_RUN") { row_action(&ui, row, &format!("plugin:{i}")); diff --git a/crates/openrage-gui/src/docs.rs b/crates/openrage-gui/src/docs.rs index 013f5bd..de5bcfb 100644 --- a/crates/openrage-gui/src/docs.rs +++ b/crates/openrage-gui/src/docs.rs @@ -7,7 +7,12 @@ pub(crate) fn read_file(ui: &AppWindow, vpath: &str) -> anyhow::Result> let _ = ui; let (game_dir, keys) = with_app(|a| (a.game_dir.clone(), a.keys.clone())); let game_dir = game_dir.ok_or_else(|| anyhow::anyhow!("no game folder"))?; - match rage_mods::resolve(&game_dir, vpath, keys)?.0 { + read_vpath(&game_dir, vpath, keys) +} + +/// Reads a file off the UI thread. +pub(crate) fn read_vpath(game_dir: &Path, vpath: &str, keys: Option>) -> anyhow::Result> { + match rage_mods::resolve(game_dir, vpath, keys)?.0 { Node::ArchiveFile(rpf, id) => Ok(rpf.read(id)?), Node::PlainFile(p) => Ok(std::fs::read(p)?), Node::Rpf8File(rpf, i) => { diff --git a/crates/openrage-gui/src/main.rs b/crates/openrage-gui/src/main.rs index d8ebf9b..1debe8b 100644 --- a/crates/openrage-gui/src/main.rs +++ b/crates/openrage-gui/src/main.rs @@ -31,6 +31,7 @@ mod setup_ui; mod sound_ui; mod tools_ui; mod util; +mod video_ui; mod viewer; mod xmlview; @@ -75,6 +76,7 @@ use setup_ui::*; use sound_ui::*; use tools_ui::*; use util::*; +use video_ui::start_video_preview; slint::include_modules!(); @@ -124,6 +126,8 @@ struct App { /// Play the selected sound as soon as it is decoded (double-click). play_when_ready: bool, audio_timer: slint::Timer, + /// The selected video; `sound` holds its sound. + video: Option, /// The list in the preview area: models suggested for a clip dictionary /// (`suggest_ycd` set), or the sounds of an audio container (`suggest_awc`). suggestions: Vec, @@ -223,6 +227,7 @@ fn main() -> anyhow::Result<()> { sound_start: 0.0, play_when_ready: false, audio_timer: slint::Timer::default(), + video: None, suggestions: Vec::new(), suggest_ycd: String::new(), suggest_awc: String::new(), diff --git a/crates/openrage-gui/src/preview.rs b/crates/openrage-gui/src/preview.rs index 52e320b..c5fff50 100644 --- a/crates/openrage-gui/src/preview.rs +++ b/crates/openrage-gui/src/preview.rs @@ -168,7 +168,11 @@ pub(crate) fn select_row(ui: &AppWindow, row: usize) { with_app(|a| a.model = None); stop_sound(ui); ui.set_audio_mode(false); - with_app(|a| a.sound = None); + ui.set_video_mode(false); + with_app(|a| { + a.sound = None; + a.video = None; + }); ui.set_suggestions(ModelRc::default()); ui.set_suggest_title(SharedString::new()); ui.set_suggest_pending(false); @@ -197,6 +201,10 @@ pub(crate) fn select_row(ui: &AppWindow, row: usize) { } return; } + if browser::is_video(&item.name) && item.kind == ItemKind::File && item.mark != Some(Mark::Removed) { + start_video_preview(ui, vpath.clone(), info, generation); + return; + } if is_model_item(&item) { start_model_preview(ui, vpath.clone(), info, generation); return; @@ -372,7 +380,7 @@ pub(crate) fn load_preview(source: PreviewSource, keys: Option>) - } /// A frame from the middle of a Bink video, if FFmpeg is installed (it -/// decodes Bink; OpenRAGE has no decoder of its own). +/// decodes Bink 1; OpenRAGE only decodes Bink 2 itself). pub(crate) fn video_frame(name: &str, data: &[u8]) -> Option { use std::io::Write as _; use std::process::{Command, Stdio}; @@ -532,7 +540,7 @@ pub(crate) fn load_preview_text(source: PreviewSource, keys: Option { let mut meta: Meta = rows.into_iter().filter(|(_, v)| !v.is_empty()).collect(); - meta.push(note(if entry.name.to_ascii_lowercase().ends_with(".bik") { + meta.push(note(if !entry.name.to_ascii_lowercase().ends_with(".gfx") { "Double-click plays it in your video player (VLC, mpv and other FFmpeg-based players play Bink)." } else { "Right-click → Export as SWF… opens it in Flash tools such as JPEXS or Ruffle." diff --git a/crates/openrage-gui/src/sound_ui.rs b/crates/openrage-gui/src/sound_ui.rs index 1fd8b56..3adcc58 100644 --- a/crates/openrage-gui/src/sound_ui.rs +++ b/crates/openrage-gui/src/sound_ui.rs @@ -225,7 +225,7 @@ pub(crate) fn update_sound_ui(ui: &AppWindow) { a.audio_timer.stop(); }); // "Play all": continue with the next sound (outside this timer tick). - if ui.get_audio_play_all() { + if ui.get_audio_play_all() && !ui.get_video_mode() { let weak = ui.as_weak(); slint::Timer::single_shot(Duration::ZERO, move || { if let Some(ui) = weak.upgrade() { @@ -234,6 +234,11 @@ pub(crate) fn update_sound_ui(ui: &AppWindow) { }); } } + with_app(|a| { + if let Some(video) = &a.video { + video.show_at(pos); + } + }); ui.set_audio_position(pos / total); ui.set_audio_playing(playing && !finished); ui.set_audio_time(format!("{} / {}", browser::seconds(pos), browser::seconds(total)).into()); diff --git a/crates/openrage-gui/src/video_ui.rs b/crates/openrage-gui/src/video_ui.rs new file mode 100644 index 0000000..c342491 --- /dev/null +++ b/crates/openrage-gui/src/video_ui.rs @@ -0,0 +1,205 @@ +//! Playing Bink 2 videos in the preview. +//! +//! The sound (silence if the video has none) goes through the sound player, +//! whose position is the clock; a worker thread decodes the picture for it. + +use crate::*; +use rage_formats::awc::Pcm; +use rage_formats::bink2::{self, Player}; +use std::sync::{Condvar, Mutex}; + +/// While the decoder catches up, a picture is shown this often, so that +/// seeking far in a long video shows progress. +const CATCH_UP_INTERVAL: Duration = Duration::from_millis(100); + +#[derive(Clone, Copy, PartialEq)] +enum Job { + Show(usize), + Stop, +} + +/// The decoder thread of the selected video; ends when dropped. +pub(crate) struct Video { + job: Arc<(Mutex, Condvar)>, + fps: f64, + frames: usize, +} + +impl Video { + fn send(&self, job: Job) { + let (lock, changed) = &*self.job; + let mut now = lock.lock().unwrap_or_else(|e| e.into_inner()); + if *now != job { + *now = job; + changed.notify_one(); + } + } + + /// Asks for the picture at `secs`. + pub(crate) fn show_at(&self, secs: f32) { + let frame = (f64::from(secs.max(0.0)) * self.fps) as usize; + self.send(Job::Show(frame.min(self.frames.saturating_sub(1)))); + } +} + +impl Drop for Video { + fn drop(&mut self) { + self.send(Job::Stop); + } +} + +fn picture(player: &Player>) -> slint::SharedPixelBuffer { + let f = player.frame(); + slint::SharedPixelBuffer::clone_from_slice(&f.rgba(), f.width, f.height) +} + +/// The sound of a video, as long as the video. Silence if there is none. +fn sound(video: &bink2::Bink2, data: &[u8]) -> (Pcm, Option) { + let (mut pcm, error) = match video.sound(data, 0) { + Some(Ok(pcm)) => (pcm, None), + Some(Err(e)) => (Pcm { sample_rate: 8000, channels: 1, samples: Vec::new() }, Some(e.to_string())), + None => (Pcm { sample_rate: 8000, channels: 1, samples: Vec::new() }, None), + }; + // At most a day of silence, should the frame rate be damaged. + let secs = video.duration().min(86400.0); + let samples = (secs * f64::from(pcm.sample_rate)) as usize * pcm.channels.max(1) as usize; + pcm.samples.resize(samples.max(1), 0); + (pcm, error) +} + +/// Selecting a `.bk2`: its first picture and the player. +pub(crate) fn start_video_preview(ui: &AppWindow, vpath: String, info: Meta, generation: u64) { + let (counter, game_dir, keys) = + with_app(|a| (Arc::clone(&a.preview_generation), a.game_dir.clone(), a.keys.clone())); + ui.set_preview_loading(true); + let weak = ui.as_weak(); + std::thread::spawn(move || { + let current = || counter.load(Ordering::SeqCst) == generation; + let mut meta = info; + let opened = (|| -> anyhow::Result<_> { + let game_dir = game_dir.ok_or_else(|| anyhow::anyhow!("no game folder"))?; + let data = read_vpath(&game_dir, &vpath, keys)?; + if !current() { + return Ok(None); + } + meta.extend(openrage_app::media::rows(&vpath, &data)?); + let mut player = Player::new(data)?; + player.seek(0)?; + let image = picture(&player); + let (pcm, error) = sound(&player.video, player.data()); + Ok(Some((player, image, pcm, error))) + })(); + if !current() { + return; + } + let (mut player, image, pcm, sound_error) = match opened { + Ok(Some(v)) => v, + Ok(None) => return, + Err(e) => { + meta.push(kv("Error", format!("{e:#}"))); + let _ = weak.upgrade_in_event_loop(move |ui| { + if counter.load(Ordering::SeqCst) == generation { + ui.set_preview_loading(false); + set_meta(&ui, &meta); + } + }); + return; + } + }; + if let Some(e) = sound_error { + meta.push(kv("Sound", e)); + } + let job = Arc::new((Mutex::new(Job::Show(0)), Condvar::new())); + let video = + Video { job: Arc::clone(&job), fps: player.video.frames_per_second(), frames: player.video.frames() }; + let shown = weak.upgrade_in_event_loop({ + let counter = Arc::clone(&counter); + move |ui| { + if counter.load(Ordering::SeqCst) != generation { + return; // drops the video, which ends its thread + } + ui.set_preview_loading(false); + set_meta(&ui, &meta); + ui.set_preview_image(slint::Image::from_rgba8(image)); + ui.set_has_image(true); + with_app(|a| { + a.sound = Some(Arc::new(pcm)); + a.sound_start = 0.0; + a.video = Some(video); + }); + ui.set_video_mode(true); + ui.set_audio_mode(true); + ui.set_audio_has_prev(false); + ui.set_audio_has_next(false); + update_sound_ui(&ui); + if with_app(|a| std::mem::take(&mut a.play_when_ready)) { + toggle_sound(&ui); + } + } + }); + if shown.is_err() { + return; + } + decode_loop(&mut player, &job, |player| { + let image = picture(player); + let counter = Arc::clone(&counter); + let _ = weak.upgrade_in_event_loop(move |ui| { + if counter.load(Ordering::SeqCst) == generation { + ui.set_preview_image(slint::Image::from_rgba8(image)); + } + }); + }); + }); +} + +/// Decodes towards the wanted frame and shows it, until told to stop. +fn decode_loop(player: &mut Player>, job: &(Mutex, Condvar), mut show: impl FnMut(&Player>)) { + let (lock, changed) = job; + let mut shown = player.position(); + let mut shown_at = Instant::now(); + // After a damaged frame: wait for another wish instead of trying again. + let mut failed = None; + loop { + let wanted = { + let mut now = lock.lock().unwrap_or_else(|e| e.into_inner()); + loop { + match *now { + Job::Stop => return, + Job::Show(f) if shown != Some(f) && failed != Some(f) => break f, + _ => now = changed.wait(now).unwrap_or_else(|e| e.into_inner()), + } + } + }; + match player.step_towards(wanted) { + Ok(there) => { + if there || shown_at.elapsed() >= CATCH_UP_INTERVAL { + show(player); + shown_at = Instant::now(); + } + shown = if there { Some(wanted) } else { None }; + } + Err(_) => failed = Some(wanted), + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn times_map_to_frames() { + let job = Arc::new((Mutex::new(Job::Show(0)), Condvar::new())); + let video = Video { job: Arc::clone(&job), fps: 30.0, frames: 90 }; + let wanted = |secs| { + video.show_at(secs); + *job.0.lock().unwrap() + }; + assert!(wanted(0.0) == Job::Show(0)); + assert!(wanted(1.51) == Job::Show(45)); + assert!(wanted(99.0) == Job::Show(89)); + assert!(wanted(-1.0) == Job::Show(0)); + drop(video); + assert!(*job.0.lock().unwrap() == Job::Stop); + } +} diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index 7e84da4..9525986 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -1038,6 +1038,8 @@ export component AppWindow inherits Window { in property suggest-icon: "model"; // Sound preview: waveform in the preview area, player controls above it. in property audio-mode; + // The audio controls play a video (audio-mode is set too). + in property video-mode; // The preview image is a texture or picture (not a waveform), so it can open in the viewer. in property image-viewable; in property audio-playing; @@ -2556,7 +2558,7 @@ export component AppWindow inherits Window { padding-left: Theme.space-s; padding-right: Theme.space-s; spacing: 2px; - Rectangle { + if !root.video-mode: Rectangle { width: 32px; IconButton { x: (parent.width - self.width) / 2; @@ -2616,7 +2618,7 @@ export component AppWindow inherits Window { clicked => { root.audio-skip(5); } } } - Rectangle { + if !root.video-mode: Rectangle { width: 32px; IconButton { x: (parent.width - self.width) / 2; @@ -2646,7 +2648,7 @@ export component AppWindow inherits Window { font-size: Theme.font-small; color: Theme.text-muted; } - Rectangle { + if !root.video-mode: Rectangle { width: 32px; IconButton { x: (parent.width - self.width) / 2; @@ -2681,23 +2683,57 @@ export component AppWindow inherits Window { x: 8px; y: 8px; width: parent.width - 16px; - height: parent.height - 16px; + height: parent.height - 16px - (root.video-mode ? 24px : 0px); source: root.preview-image; image-fit: contain; image-rendering: smooth; accessible-role: image; accessible-label: @tr("Preview of {}", root.info-title); } - if root.audio-mode: Rectangle { + if root.video-mode: Rectangle { + x: 8px; + y: parent.height - 16px; + width: parent.width - 16px; + height: 4px; + border-radius: 2px; + background: Theme.border; + Rectangle { + x: 0; + width: parent.width * root.audio-position; + border-radius: 2px; + background: Theme.accent; + } + } + if root.video-mode: TouchArea { + mouse-cursor: pointer; + clicked => { root.audio-toggle(); } + } + if root.video-mode: TouchArea { + y: parent.height - 28px; + height: 28px; + mouse-cursor: pointer; + accessible-role: slider; + accessible-label: @tr("Position in the video"); + accessible-value-minimum: 0; + accessible-value-maximum: 1; + accessible-value: root.audio-position; + clicked => { root.audio-seek(max(0, min(1, (self.mouse-x - 8px) / (self.width - 16px)))); } + moved => { + if self.pressed { + root.audio-seek(max(0, min(1, (self.mouse-x - 8px) / (self.width - 16px)))); + } + } + } + if root.audio-mode && !root.video-mode: Rectangle { x: 8px + (parent.width - 16px) * root.audio-position; width: 2px; background: Theme.accent; } - if root.audio-mode: TouchArea { + if root.audio-mode && !root.video-mode: TouchArea { mouse-cursor: pointer; clicked => { root.audio-seek(max(0, min(1, (self.mouse-x - 8px) / (self.width - 16px)))); } } - if root.audio-mode: Text { + if root.audio-mode && !root.video-mode: Text { x: Theme.space-s; y: parent.height - self.height - Theme.space-s; text: @tr("Click the waveform to jump · Space plays and pauses"); diff --git a/crates/rage-formats/src/bink2/audio.rs b/crates/rage-formats/src/bink2/audio.rs new file mode 100644 index 0000000..cc643f0 --- /dev/null +++ b/crates/rage-formats/src/bink2/audio.rs @@ -0,0 +1,281 @@ +// Ported to Rust from Librempeg (https://github.com/librempeg/librempeg), +// libavcodec/binkaudio.c, +// Copyright (c) 2007-2011 Peter Ross, 2009 Daniel Verkamp, +// GNU General Public License version 3 or later; used here under version 3. + +//! Bink audio: blocks of a real Fourier or cosine transform that overlap by +//! a sixteenth. + +use super::bits::Bits; +use super::{Bink2Error, Track}; +use std::f32::consts::PI; + +/// Upper frequencies of the critical bands. +const BANDS: [u32; 25] = [ + 100, 200, 300, 400, 510, 630, 770, 920, 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150, 3700, 4400, 5300, 6400, + 7700, 9500, 12000, 15500, 24500, +]; + +/// Run lengths in 8 coefficients. +const RUNS: [usize; 16] = [2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 32, 64]; + +pub struct Decoder { + dct: bool, + /// The newer bit layout of revision `n`. + version_2: bool, + /// Separately coded channels (the Fourier kind codes them interleaved). + channels: usize, + len: usize, + root: f32, + quant: [f32; 96], + bands: Vec, + previous: Vec>, + /// Samples all blocks of a packet may have. + limit: usize, +} + +impl Decoder { + pub fn new(track: &Track, revision: u8) -> Result { + let mut rate = track.sample_rate; + if rate == 0 { + return super::bad("sound without a sample rate"); + } + let mut bits = match rate { + ..22050 => 9, + 22050..44100 => 10, + _ => 11, + }; + let mut channels = track.channels as usize; + if !track.dct { + rate *= u32::from(track.channels); + bits += channels.ilog2(); + channels = 1; + } + let len = 1usize << bits; + let root = if track.dct { (len as f32).sqrt() / 32768.0 } else { 2.0 / ((len as f32).sqrt() * 32768.0) }; + let half = rate.div_ceil(2); + let count = 1 + BANDS[..24].iter().take_while(|&&b| half > b).count(); + let mut bands = vec![2]; + bands.extend(BANDS[..count - 1].iter().map(|b| (*b as usize * len / half as usize) & !1)); + bands.push(len); + Ok(Self { + dct: track.dct, + version_2: revision == b'n', + channels, + len, + root, + quant: std::array::from_fn(|i| (i as f32 * 0.152_891_65).exp() * root), + bands, + previous: Vec::new(), + limit: 1 << 22, + }) + } + + /// Decodes a packet and appends its samples, channels interleaved. + pub fn packet(&mut self, data: &[u8], out: &mut Vec) -> Result<(), Bink2Error> { + if data.len() < 4 { + return Ok(()); + } + let mut bits = Bits::new(data); + // The size of the decoded samples in bytes; blocks may hold more. + let bytes = bits.read(32) as usize; + let start = out.len(); + while bits.left() > 0 && out.len() - start < bytes.div_ceil(2).min(self.limit) { + self.block(&mut bits, out)?; + bits.align(32); + } + Ok(()) + } + + fn block(&mut self, bits: &mut Bits, out: &mut Vec) -> Result<(), Bink2Error> { + if self.dct { + bits.read(2); + } + let overlap = self.len / 16; + let mut blocks = Vec::with_capacity(self.channels); + for _ in 0..self.channels { + let coeffs = self.coefficients(bits)?; + blocks.push(if self.dct { dct(coeffs) } else { rdft(&coeffs) }); + } + for (ch, block) in blocks.iter_mut().enumerate() { + let count = (overlap * self.channels) as f32; + if let Some(previous) = self.previous.get(ch) { + for (i, (b, p)) in block.iter_mut().zip(previous).enumerate() { + let j = (ch + i * self.channels) as f32; + *b = (p * (count - j) + *b * j) / count; + } + } + } + for i in 0..self.len - overlap { + out.extend(blocks.iter().map(|b| (b[i] * 32768.0).round() as i16)); + } + self.previous = blocks.into_iter().map(|mut b| b.split_off(self.len - overlap)).collect(); + Ok(()) + } + + fn coefficients(&self, bits: &mut Bits) -> Result, Bink2Error> { + let mut coeffs = vec![0f32; self.len]; + for c in &mut coeffs[..2] { + let power = bits.read(5) as i32; + let v = bits.read(23) as f32 * 2f32.powi(power - 23); + *c = if bits.bit() { -v } else { v } * self.root; + } + let n = if self.version_2 { 7 } else { 8 }; + let quant: Vec = (1..self.bands.len()).map(|_| self.quant[(bits.read(n) as usize).min(95)]).collect(); + let (mut k, mut q, mut i) = (0, quant[0], 2); + while i < self.len { + if bits.overread() { + return super::bad("sound ends early"); + } + let run = if bits.bit() { RUNS[bits.read(4) as usize] * 8 } else { 8 }; + let end = (i + run).min(self.len); + let width = bits.read(4); + if width == 0 { + i = end; + while k < quant.len() && self.bands[k] < i { + q = quant[k]; + k += 1; + } + continue; + } + let mut values = [0u32; 512]; + if self.version_2 { + values[..end - i].iter_mut().for_each(|v| *v = bits.read(width)); + } + for (j, v) in (i..end).zip(values) { + if k < quant.len() && self.bands[k] == j { + q = quant[k]; + k += 1; + } + let v = if self.version_2 { v } else { bits.read(width) }; + if v != 0 { + coeffs[j] = if bits.bit() { -q } else { q } * v as f32; + } + } + i = end; + } + Ok(coeffs) + } +} + +type Complex = (f32, f32); + +/// The sum over k of `v[k]`·e^(2πi·k·t/n), in place. +fn fft(v: &mut [Complex]) { + let n = v.len(); + let mut j = 0; + for i in 1..n { + let mut bit = n >> 1; + while j & bit != 0 { + j ^= bit; + bit >>= 1; + } + j |= bit; + if i < j { + v.swap(i, j); + } + } + let twiddles: Vec = (0..n / 2) + .map(|i| { + let (s, c) = (2.0 * PI * i as f32 / n as f32).sin_cos(); + (c, s) + }) + .collect(); + let mut size = 2; + while size <= n { + let step = n / size; + for part in v.chunks_exact_mut(size) { + let (a, b) = part.split_at_mut(size / 2); + for (i, (a, b)) in a.iter_mut().zip(b).enumerate() { + let w = twiddles[i * step]; + let t = (b.0 * w.0 - b.1 * w.1, b.0 * w.1 + b.1 * w.0); + *b = (a.0 - t.0, a.1 - t.1); + *a = (a.0 + t.0, a.1 + t.1); + } + } + size *= 2; + } +} + +/// Real samples from coefficients: first and middle, then the others as +/// conjugated complex numbers; scaled by a half. +fn rdft(c: &[f32]) -> Vec { + let n = c.len(); + let mut v = vec![(0.0, 0.0); n]; + v[0].0 = c[0]; + v[n / 2].0 = c[1]; + for k in 1..n / 2 { + v[k] = (c[2 * k], -c[2 * k + 1]); + v[n - k] = (c[2 * k], c[2 * k + 1]); + } + fft(&mut v); + v.into_iter().map(|v| v.0 * 0.5).collect() +} + +/// The sum over k of `c[k]`·cos(π·k·(2t+1)/2n), scaled by 2/n. +fn dct(c: Vec) -> Vec { + let n = c.len(); + // Real part of a Fourier transform of twice the length. + let mut v = vec![(0.0, 0.0); 2 * n]; + for (k, (v, c)) in v.iter_mut().zip(&c).enumerate() { + let (s, co) = (PI * k as f32 / (2 * n) as f32).sin_cos(); + *v = (c * co, c * s); + } + fft(&mut v); + v[..n].iter().map(|v| v.0 * 2.0 / n as f32).collect() +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn transforms_match_their_sums() { + let n = 16; + let c: Vec = (0..n).map(|i| ((i * 7 + 3) % 11) as f32 - 5.0).collect(); + let (r, d) = (rdft(&c), dct(c.clone())); + for t in 0..n { + let angle = |k: usize| 2.0 * PI * (k * t) as f32 / n as f32; + let mut sum = (c[0] + c[1] * angle(n / 2).cos()) / 2.0; + (1..n / 2).for_each(|k| sum += c[2 * k] * angle(k).cos() + c[2 * k + 1] * angle(k).sin()); + assert!((r[t] - sum).abs() < 1e-3, "{t}: {} {sum}", r[t]); + let sum: f32 = (0..n).map(|k| c[k] * (PI * (k * (2 * t + 1)) as f32 / (2 * n) as f32).cos()).sum::() + * 2.0 + / n as f32; + assert!((d[t] - sum).abs() < 1e-3, "{t}: {} {sum}", d[t]); + } + } + + #[test] + fn garbage() { + let mut seed = 1u32; + for round in 0..40 { + let track = Track { + id: 0, + sample_rate: [8000, 22050, 44100, 48000, 65535][round % 5], + channels: 1 + (round % 2) as u16, + dct: round % 3 == 0, + }; + let mut d = Decoder::new(&track, if round % 4 == 0 { b'n' } else { b'j' }).unwrap(); + let data: Vec = (0..3000) + .map(|_| { + seed = seed.wrapping_mul(1_664_525).wrapping_add(1_013_904_223); + (seed >> 24) as u8 + }) + .collect(); + let mut out = Vec::new(); + let _ = d.packet(&data, &mut out); + } + } + + #[test] + fn silence() { + let track = Track { id: 0, sample_rate: 48000, channels: 2, dct: true }; + let mut d = Decoder::new(&track, b'j').unwrap(); + let mut out = Vec::new(); + let mut data = vec![0u8; 2000]; + data[..4].copy_from_slice(&7680u32.to_le_bytes()); + d.packet(&data, &mut out).unwrap(); + assert_eq!(out, [0; 3840]); + } +} diff --git a/crates/rage-formats/src/bink2/bits.rs b/crates/rage-formats/src/bink2/bits.rs new file mode 100644 index 0000000..31c717e --- /dev/null +++ b/crates/rage-formats/src/bink2/bits.rs @@ -0,0 +1,97 @@ +//! Bit reader, least significant bit first. + +use super::tables::Vlc; + +/// Reads past the end give zeros; [`Bits::overread`] tells. +pub struct Bits<'a> { + data: &'a [u8], + pos: usize, +} + +impl<'a> Bits<'a> { + pub fn new(data: &'a [u8]) -> Self { + Self { data, pos: 0 } + } + + /// The same position in data that ends after `len` bytes. + pub fn truncated(&self, len: usize) -> Self { + Self { data: &self.data[..len.min(self.data.len())], pos: self.pos } + } + + fn peek(&self) -> u64 { + let at = self.pos / 8; + let word = match self.data.get(at..at + 8) { + Some(b) => u64::from_le_bytes(b.try_into().expect("8 bytes")), + None => { + let mut b = [0; 8]; + let rest = self.data.get(at..).unwrap_or_default(); + b[..rest.len()].copy_from_slice(rest); + u64::from_le_bytes(b) + } + }; + word >> (self.pos % 8) + } + + /// Up to 32 bits. + pub fn read(&mut self, n: u32) -> u32 { + let v = self.peek() & ((1u64 << n) - 1); + self.pos += n as usize; + v as u32 + } + + pub fn bit(&mut self) -> bool { + let bit = self.data.get(self.pos / 8).is_some_and(|b| (b >> (self.pos % 8)) & 1 != 0); + self.pos += 1; + bit + } + + /// Counts bits until one equal to `stop` (read too), at most `max`. + pub fn unary(&mut self, stop: bool, max: u32) -> u32 { + (0..max).find(|_| self.bit() == stop).unwrap_or(max) + } + + pub fn vlc(&mut self, table: &Vlc) -> Option { + let (symbol, len) = table[(self.peek() & 511) as usize]; + self.pos += len as usize; + (len > 0).then_some(symbol) + } + + /// Skips to a multiple of `bits` from the start. + pub fn align(&mut self, bits: usize) { + self.pos = self.pos.next_multiple_of(bits); + } + + pub fn overread(&self) -> bool { + self.pos > self.data.len() * 8 + } + + /// Bits left to read. + pub fn left(&self) -> usize { + (self.data.len() * 8).saturating_sub(self.pos) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn reads() { + let mut b = Bits::new(&[0b1010_0110, 0xFF, 0x01]); + assert_eq!(b.read(3), 0b110); + assert_eq!(b.unary(true, 4), 2); + assert_eq!(b.read(2), 0b10); + assert_eq!(b.read(9), 0x1FF); + assert!(!b.overread()); + assert_eq!(b.read(20), 0); + assert!(b.overread()); + assert_eq!(b.left(), 0); + } + + #[test] + fn unary_stops_at_the_limit() { + let mut b = Bits::new(&[0b0100_0000]); + assert_eq!(b.unary(true, 4), 4); + assert_eq!(b.unary(true, 4), 2); + } +} diff --git a/crates/rage-formats/src/bink2/mod.rs b/crates/rage-formats/src/bink2/mod.rs new file mode 100644 index 0000000..5f8f84d --- /dev/null +++ b/crates/rage-formats/src/bink2/mod.rs @@ -0,0 +1,340 @@ +// Ported to Rust from Librempeg (https://github.com/librempeg/librempeg), +// libavformat/bink.c, Copyright (c) 2008-2010 Peter Ross, 2009 Daniel Verkamp, +// GNU General Public License version 3 or later; used here under version 3. + +//! Bink 2 videos (`.bk2`): the file, its pictures ([`Player`]) and its sound. +//! +//! Revisions `g` to `n` are decoded; `a` to `f` use another transform and +//! are not. Sound comes in the same two codecs as in Bink 1. + +mod audio; +mod bits; +mod tables; +mod video; + +use rage_core::bytes::LeRead; + +#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)] +#[non_exhaustive] +pub enum Bink2Error { + #[error("damaged Bink 2 video: {0}")] + Invalid(String), + #[error("Bink 2 revision {0:?} is not supported")] + Unsupported(char), +} + +fn bad(what: impl Into) -> Result { + Err(Bink2Error::Invalid(what.into())) +} + +/// One decoded picture: full-range YCbCr 4:2:0, with alpha if the video has it. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Frame { + pub width: u32, + pub height: u32, + pub y: Vec, + pub cb: Vec, + pub cr: Vec, + pub a: Option>, +} + +/// A sound track. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Track { + pub id: u32, + pub sample_rate: u32, + pub channels: u16, + /// Cosine transform, otherwise real Fourier transform. + pub dct: bool, +} + +/// Where a frame is in the file. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Packet { + pub key: bool, + start: usize, + end: usize, +} + +/// A Bink 2 file's header and index. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Bink2 { + pub revision: u8, + pub width: u32, + pub height: u32, + /// Frames per second: numerator and denominator. + pub fps: (u32, u32), + pub flags: u32, + pub tracks: Vec, + pub packets: Vec, +} + +/// Limits of RAD's tools. +const MAX_WIDTH: u32 = 32767; +const MAX_PIXELS: u64 = 8192 * 8192; +const MAX_TRACKS: usize = 256; + +/// Whether the file is a Bink 2 video. +pub fn is_bink2(data: &[u8]) -> bool { + data.starts_with(b"KB2") +} + +/// Reads the header and the frame index. +pub fn read(data: &[u8]) -> Result { + if !is_bink2(data) { + return bad("no KB2 signature"); + } + let u32_at = |at: usize| match data.u32_at(at) { + Some(v) => Ok(v), + None => bad(format!("the header ends before {at:#x}")), + }; + let revision = u32_at(0)?.to_le_bytes()[3]; + let frames = u32_at(0x08)? as usize; + let (width, height) = (u32_at(0x14)?, u32_at(0x18)?); + if width == 0 || height == 0 || width > MAX_WIDTH || u64::from(width) * u64::from(height) > MAX_PIXELS { + return bad(format!("{width} × {height} pixels")); + } + let fps = (u32_at(0x1C)?, u32_at(0x20)?); + if fps.0 == 0 || fps.1 == 0 { + return bad("no frame rate"); + } + let flags = u32_at(0x24)?; + let count = u32_at(0x28)? as usize; + if count > MAX_TRACKS { + return bad(format!("{count} sound tracks")); + } + let mut at = 0x2C + if revision >= b'i' { 4 } else { 0 }; + let mut tracks = Vec::with_capacity(count); + for i in 0..count { + let info = u32_at(at + 4 * count + 4 * i)?; + tracks.push(Track { + id: u32_at(at + 8 * count + 4 * i)?, + sample_rate: info & 0xFFFF, + channels: if info & 0x2000_0000 != 0 { 2 } else { 1 }, + dct: info & 0x1000_0000 != 0, + }); + } + at += 12 * count; + if frames > (data.len() - at.min(data.len())) / 4 { + return bad(format!("{frames} frames do not fit the file")); + } + // One more entry than frames, the last is the end of the file. + let mut packets = Vec::with_capacity(frames); + for i in 0..frames { + let here = u32_at(at + 4 * i)?; + let next = if i + 1 < frames { u32_at(at + 4 * i + 4)? as usize & !1 } else { data.len() }; + let (start, end) = (here as usize & !1, next.min(data.len())); + if start > end { + return bad(format!("frame {i} lies outside the file")); + } + packets.push(Packet { key: i == 0 || here & 1 != 0, start, end }); + } + Ok(Bink2 { revision, width, height, fps, flags, tracks, packets }) +} + +impl Bink2 { + pub fn frames(&self) -> usize { + self.packets.len() + } + + pub fn frames_per_second(&self) -> f64 { + f64::from(self.fps.0) / f64::from(self.fps.1) + } + + pub fn duration(&self) -> f64 { + self.frames() as f64 / self.frames_per_second() + } + + pub fn has_alpha(&self) -> bool { + self.flags & video::ALPHA != 0 + } + + /// The sound packets of a frame, one per track, and its picture. + fn split<'a>(&self, data: &'a [u8], frame: usize) -> Result<(Vec<&'a [u8]>, &'a [u8]), Bink2Error> { + let Some(p) = self.packets.get(frame) else { return bad(format!("there is no frame {frame}")) }; + let Some(mut rest) = data.get(p.start..p.end) else { return bad(format!("frame {frame} is cut off")) }; + let mut sounds = Vec::with_capacity(self.tracks.len()); + for _ in &self.tracks { + let sound = rest.u32_at(0).and_then(|n| rest.get(4..(n as usize).checked_add(4)?)); + let Some(sound) = sound else { return bad(format!("the sound of frame {frame} is too long")) }; + sounds.push(sound); + rest = &rest[4 + sound.len()..]; + } + Ok((sounds, rest)) + } + + /// Decodes a sound track. `None` if there is no such track. + pub fn sound(&self, data: &[u8], track: usize) -> Option> { + let t = self.tracks.get(track)?; + Some((|| { + let mut decoder = audio::Decoder::new(t, self.revision)?; + let mut samples = Vec::new(); + for frame in 0..self.frames() { + decoder.packet(self.split(data, frame)?.0[track], &mut samples)?; + } + Ok(crate::awc::Pcm { sample_rate: t.sample_rate, channels: t.channels, samples }) + })()) + } +} + +/// Decodes the pictures of a video. +pub struct Player { + data: D, + pub video: Bink2, + decoder: video::Decoder, + /// The frame to decode next. + next: usize, +} + +impl> Player { + pub fn new(data: D) -> Result { + let video = read(data.as_ref())?; + let decoder = video::Decoder::new(video.revision, video.flags, video.width, video.height)?; + Ok(Self { data, video, decoder, next: 0 }) + } + + pub fn data(&self) -> &[u8] { + self.data.as_ref() + } + + /// Decodes the next frame. Gives the number of bytes left unread in each + /// of its slices: at most 3 of padding in an undamaged video. + pub fn advance(&mut self) -> Result, Bink2Error> { + let picture = self.video.split(self.data.as_ref(), self.next)?.1; + // A frame without data repeats the one before. + let left = if picture.is_empty() && self.next > 0 { + Vec::new() + } else { + self.decoder.decode(picture, self.video.packets[self.next].key)? + }; + self.next += 1; + Ok(left) + } + + /// Decodes one frame on the way to `frame`, jumping to the key frame + /// before it unless the decoder is already in between. Gives whether it + /// is there. + pub fn step_towards(&mut self, frame: usize) -> Result { + let Some(before) = self.video.packets.get(..=frame) else { return bad(format!("there is no frame {frame}")) }; + if self.next == frame + 1 { + return Ok(true); + } + let key = before.iter().rposition(|p| p.key).unwrap_or(0); + if self.next > frame || self.next < key { + self.next = key; + } + self.advance()?; + Ok(self.next == frame + 1) + } + + /// Decodes up to `frame`. + pub fn seek(&mut self, frame: usize) -> Result<(), Bink2Error> { + while !self.step_towards(frame)? {} + Ok(()) + } + + /// The frame decoded last, if any. + pub fn position(&self) -> Option { + self.next.checked_sub(1) + } + + /// The picture decoded last. + pub fn frame(&self) -> Frame { + self.decoder.frame() + } +} + +impl Frame { + /// The picture as RGBA (BT.601 weights, full range), opaque if it has no alpha. + pub fn rgba(&self) -> Vec { + let (w, h) = (self.width as usize, self.height as usize); + let mut out = vec![255; w * h * 4]; + if w == 0 { + return out; + } + let half = w.div_ceil(2); + for (y, row) in out.chunks_exact_mut(w * 4).enumerate() { + let luma = &self.y[y * w..][..w]; + let (cb, cr) = (&self.cb[y / 2 * half..][..half], &self.cr[y / 2 * half..][..half]); + for (x, p) in row.as_chunks_mut::<4>().0.iter_mut().enumerate() { + let (l, u, v) = (i32::from(luma[x]) << 16, i32::from(cb[x / 2]) - 128, i32::from(cr[x / 2]) - 128); + let at = |c: i32| ((l + c + (1 << 15)) >> 16).clamp(0, 255) as u8; + p[0] = at(91881 * v); + p[1] = at(-22554 * u - 46802 * v); + p[2] = at(116130 * u); + } + if let Some(a) = &self.a { + row.as_chunks_mut::<4>().0.iter_mut().zip(&a[y * w..]).for_each(|(p, &a)| p[3] = a); + } + } + out + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn file(frames: &[&[u8]], track: Option) -> Vec { + let mut d = b"KB2j".to_vec(); + let n = frames.len() as u32; + for v in [0, n, 0, n, 32, 32, 30, 1, 0, u32::from(track.is_some()), 0] { + d.extend(v.to_le_bytes()); + } + if let Some(info) = track { + for v in [0, info, 7] { + d.extend(v.to_le_bytes()); + } + } + let mut at = d.len() as u32 + 4 * (n + 1); + for f in frames { + d.extend((at | u32::from(d.len() < 0x40)).to_le_bytes()); + at += f.len() as u32; + } + d.extend(at.to_le_bytes()); + frames.iter().for_each(|f| d.extend_from_slice(f)); + d + } + + #[test] + fn header_and_index() { + let d = file(&[&[2, 0, 0, 0, 9, 9, 1, 1], &[0, 0, 0, 0, 5, 5]], Some(0x7000_BB80)); + let v = read(&d).unwrap(); + assert_eq!((v.width, v.height, v.frames(), v.frames_per_second()), (32, 32, 2, 30.0)); + assert_eq!(v.tracks, [Track { id: 7, sample_rate: 48000, channels: 2, dct: true }]); + assert!(v.packets[0].key && !v.packets[1].key); + assert_eq!(v.split(&d, 0).unwrap(), (vec![&[9u8, 9][..]], &[1u8, 1][..])); + assert_eq!(v.split(&d, 1).unwrap(), (vec![&[][..]], &[5u8, 5][..])); + assert!(v.split(&d, 2).is_err()); + } + + #[test] + fn damaged_files() { + let d = file(&[&[1, 2, 3, 4, 5, 6], &[7, 8]], Some(0x3000_BB80)); + for n in 0..d.len() { + if let Ok(mut p) = Player::new(&d[..n]) { + let _ = p.advance(); + let _ = p.seek(1); + let _ = p.video.sound(&d[..n], 0); + } + } + for i in 0..d.len() { + for v in [0, 0x7F, 0xFF] { + let mut d = d.clone(); + d[i] = v; + if let Ok(v) = read(&d) { + let _ = v.sound(&d, 0); + let _ = v.split(&d, 0); + } + } + } + } + + #[test] + fn colours() { + let f = |y, cb, cr, a| Frame { width: 1, height: 1, y: vec![y], cb: vec![cb], cr: vec![cr], a }.rgba(); + assert_eq!(f(255, 128, 128, None), [255, 255, 255, 255]); + assert_eq!(f(0, 128, 128, Some(vec![9])), [0, 0, 0, 9]); + assert_eq!(f(76, 85, 255, None), [254, 0, 0, 255]); + } +} diff --git a/crates/rage-formats/src/bink2/tables.rs b/crates/rage-formats/src/bink2/tables.rs new file mode 100644 index 0000000..1deab4e --- /dev/null +++ b/crates/rage-formats/src/bink2/tables.rs @@ -0,0 +1,159 @@ +// Ported to Rust from Librempeg (https://github.com/librempeg/librempeg), +// libavcodec/bink2.c and bink2g.h, +// Copyright (c) 2014 Konstantin Shishkov, 2019 Paul B Mahol, +// GNU General Public License version 3 or later; used here under version 3. + +//! Constant tables of Bink 2 video. + +/// Coefficient order. +pub static SCAN: [u8; 64] = [ + 0, 8, 1, 2, 9, 16, 24, 17, 10, 3, 4, 11, 18, 25, 32, 40, 33, 26, 19, 12, 5, 6, 13, 20, 27, 34, 41, 48, 56, 49, 42, + 35, 28, 21, 14, 7, 15, 22, 29, 36, 43, 50, 57, 58, 51, 44, 37, 30, 23, 31, 38, 45, 52, 59, 60, 53, 46, 39, 47, 54, + 61, 62, 55, 63, +]; +/// AC run codes (least significant bit first) and their lengths. +const SKIP_CODES: [[u16; 14]; 2] = + [[1, 0, 4, 44, 108, 12, 76, 172, 236, 300, 364, 428, 2, 28], [1, 4, 0, 8, 2, 50, 10, 18, 58, 122, 250, 114, 6, 26]]; +const SKIP_BITS: [[u8; 14]; 2] = + [[1, 3, 4, 9, 9, 7, 7, 9, 8, 9, 9, 9, 2, 5], [1, 3, 4, 4, 5, 7, 5, 6, 7, 8, 8, 7, 3, 6]]; +/// Motion vector difference codes. +const MV_CODES: [u16; 16] = [1, 6, 12, 28, 24, 56, 88, 120, 104, 72, 40, 8, 20, 4, 2, 0]; +const MV_BITS: [u8; 16] = [1, 3, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 5, 5, 3, 4]; +/// DC quantiser by quantiser index. +pub static DC_PAT: [i32; 37] = [ + 1024, 1218, 1448, 1722, 2048, 2435, 2896, 3444, 4096, 4871, 5793, 6889, 8192, 9742, 11585, 13777, 16384, 19484, + 23170, 27555, 32768, 38968, 46341, 55109, 65536, 77936, 92682, 110218, 131072, 155872, 185364, 220436, 262144, + 311744, 370728, 440872, 524288, +]; +/// AC quantisers by quantiser index modulo 4. +pub static LUMA_INTRA: [[u16; 64]; 4] = [ + [ + 1024, 1432, 1506, 1181, 1843, 2025, 5271, 8592, 1313, 1669, 1630, 1672, 2625, 3442, 8023, 12794, 1076, 1755, + 1808, 1950, 3980, 4875, 8813, 11909, 1350, 1868, 2127, 2016, 4725, 4450, 7712, 9637, 2458, 3103, 4303, 4303, + 6963, 6835, 11079, 13365, 3375, 5704, 5052, 6049, 9198, 7232, 10725, 9834, 5486, 7521, 7797, 7091, 11079, + 10016, 13559, 12912, 7279, 7649, 7020, 6097, 9189, 9047, 12661, 13768, + ], + [ + 1218, 1703, 1791, 1405, 2192, 2408, 6268, 10218, 1561, 1985, 1938, 1988, 3122, 4093, 9541, 15215, 1279, 2087, + 2150, 2319, 4733, 5798, 10481, 14162, 1606, 2222, 2530, 2398, 5619, 5292, 9171, 11460, 2923, 3690, 5117, 5118, + 8281, 8128, 13176, 15894, 4014, 6783, 6008, 7194, 10938, 8600, 12755, 11694, 6524, 8944, 9272, 8433, 13176, + 11911, 16125, 15354, 8657, 9096, 8348, 7250, 10927, 10759, 15056, 16373, + ], + [ + 1448, 2025, 2130, 1671, 2607, 2864, 7454, 12151, 1856, 2360, 2305, 2364, 3713, 4867, 11346, 18094, 1521, 2482, + 2557, 2758, 5628, 6894, 12464, 16841, 1909, 2642, 3008, 2852, 6683, 6293, 10906, 13629, 3476, 4388, 6085, 6086, + 9847, 9666, 15668, 18901, 4773, 8066, 7145, 8555, 13007, 10227, 15168, 13907, 7758, 10637, 11026, 10028, 15668, + 14165, 19175, 18259, 10294, 10817, 9927, 8622, 12995, 12794, 17905, 19470, + ], + [ + 1722, 2408, 2533, 1987, 3100, 3406, 8864, 14450, 2208, 2807, 2741, 2811, 4415, 5788, 13493, 21517, 1809, 2951, + 3041, 3280, 6693, 8199, 14822, 20028, 2271, 3142, 3578, 3391, 7947, 7484, 12969, 16207, 4133, 5218, 7236, 7238, + 11711, 11495, 18633, 22478, 5677, 9592, 8497, 10174, 15469, 12162, 18038, 16538, 9226, 12649, 13112, 11926, + 18633, 16845, 22804, 21715, 12242, 12864, 11806, 10254, 15454, 15215, 21293, 23155, + ], +]; +pub static CHROMA_INTRA: [[u16; 64]; 4] = [ + [ + 1024, 1193, 1434, 2203, 5632, 4641, 5916, 6563, 1193, 1622, 1811, 3606, 6563, 5408, 6894, 7649, 1434, 1811, + 3515, 4875, 5916, 4875, 6215, 6894, 2203, 3606, 4875, 3824, 4641, 3824, 4875, 5408, 5632, 6563, 5916, 4641, + 5632, 4641, 5916, 6563, 4641, 5408, 4875, 3824, 4641, 3824, 4875, 5408, 5916, 6894, 6215, 4875, 5916, 4875, + 6215, 6894, 6563, 7649, 6894, 5408, 6563, 5408, 6894, 7649, + ], + [ + 1218, 1419, 1706, 2620, 6698, 5519, 7035, 7805, 1419, 1929, 2153, 4288, 7805, 6432, 8199, 9096, 1706, 2153, + 4180, 5798, 7035, 5798, 7390, 8199, 2620, 4288, 5798, 4548, 5519, 4548, 5798, 6432, 6698, 7805, 7035, 5519, + 6698, 5519, 7035, 7805, 5519, 6432, 5798, 4548, 5519, 4548, 5798, 6432, 7035, 8199, 7390, 5798, 7035, 5798, + 7390, 8199, 7805, 9096, 8199, 6432, 7805, 6432, 8199, 9096, + ], + [ + 1448, 1688, 2028, 3116, 7965, 6563, 8367, 9282, 1688, 2294, 2561, 5099, 9282, 7649, 9750, 10817, 2028, 2561, + 4971, 6894, 8367, 6894, 8789, 9750, 3116, 5099, 6894, 5408, 6563, 5408, 6894, 7649, 7965, 9282, 8367, 6563, + 7965, 6563, 8367, 9282, 6563, 7649, 6894, 5408, 6563, 5408, 6894, 7649, 8367, 9750, 8789, 6894, 8367, 6894, + 8789, 9750, 9282, 10817, 9750, 7649, 9282, 7649, 9750, 10817, + ], + [ + 1722, 2007, 2412, 3706, 9472, 7805, 9950, 11038, 2007, 2729, 3045, 6064, 11038, 9096, 11595, 12864, 2412, 3045, + 5912, 8199, 9950, 8199, 10452, 11595, 3706, 6064, 8199, 6432, 7805, 6432, 8199, 9096, 9472, 11038, 9950, 7805, + 9472, 7805, 9950, 11038, 7805, 9096, 8199, 6432, 7805, 6432, 8199, 9096, 9950, 11595, 10452, 8199, 9950, 8199, + 10452, 11595, 11038, 12864, 11595, 9096, 11038, 9096, 11595, 12864, + ], +]; +pub static INTER: [[u16; 64]; 4] = [ + [ + 1024, 1193, 1076, 844, 1052, 914, 1225, 1492, 1193, 1391, 1254, 983, 1227, 1065, 1463, 1816, 1076, 1254, 1161, + 936, 1195, 1034, 1444, 1741, 844, 983, 936, 811, 1055, 927, 1305, 1584, 1052, 1227, 1195, 1055, 1451, 1336, + 1912, 2354, 914, 1065, 1034, 927, 1336, 1313, 1945, 2486, 1225, 1463, 1444, 1305, 1912, 1945, 3044, 4039, 1492, + 1816, 1741, 1584, 2354, 2486, 4039, 5679, + ], + [ + 1218, 1419, 1279, 1003, 1252, 1087, 1457, 1774, 1419, 1654, 1491, 1169, 1459, 1267, 1739, 2159, 1279, 1491, + 1381, 1113, 1421, 1230, 1717, 2070, 1003, 1169, 1113, 965, 1254, 1103, 1552, 1884, 1252, 1459, 1421, 1254, + 1725, 1589, 2274, 2799, 1087, 1267, 1230, 1103, 1589, 1562, 2313, 2956, 1457, 1739, 1717, 1552, 2274, 2313, + 3620, 4803, 1774, 2159, 2070, 1884, 2799, 2956, 4803, 6753, + ], + [ + 1448, 1688, 1521, 1193, 1488, 1293, 1732, 2110, 1688, 1967, 1773, 1391, 1735, 1507, 2068, 2568, 1521, 1773, + 1642, 1323, 1690, 1462, 2042, 2462, 1193, 1391, 1323, 1147, 1492, 1311, 1845, 2241, 1488, 1735, 1690, 1492, + 2052, 1889, 2704, 3328, 1293, 1507, 1462, 1311, 1889, 1857, 2751, 3515, 1732, 2068, 2042, 1845, 2704, 2751, + 4306, 5712, 2110, 2568, 2462, 2241, 3328, 3515, 5712, 8031, + ], + [ + 1722, 2007, 1809, 1419, 1770, 1537, 2060, 2509, 2007, 2339, 2108, 1654, 2063, 1792, 2460, 3054, 1809, 2108, + 1953, 1574, 2010, 1739, 2428, 2928, 1419, 1654, 1574, 1364, 1774, 1559, 2195, 2664, 1770, 2063, 2010, 1774, + 2440, 2247, 3216, 3958, 1537, 1792, 1739, 1559, 2247, 2209, 3271, 4181, 2060, 2460, 2428, 2195, 3216, 3271, + 5120, 6793, 2509, 3054, 2928, 2664, 3958, 4181, 6793, 9550, + ], +]; +/// Raster position of each 8×8 luma block in coding order. +pub static LUMA_POS: [u8; 16] = [0, 1, 4, 5, 2, 3, 6, 7, 8, 9, 12, 13, 10, 11, 14, 15]; + +/// Symbol and code length by the next 9 bits; length 0: no such code. +pub type Vlc = [(u8, u8); 512]; + +const fn vlc(codes: &[u16; N], bits: &[u8; N]) -> Vlc { + let mut out = [(0, 0); 512]; + let mut i = 0; + while i < 512 { + let mut s = 0; + while s < N { + if i & ((1 << bits[s]) - 1) == codes[s] as usize { + out[i] = (s as u8, bits[s]); + } + s += 1; + } + i += 1; + } + out +} + +/// AC runs, plain and alternative. +pub static SKIP_VLC: [Vlc; 2] = [vlc(&SKIP_CODES[0], &SKIP_BITS[0]), vlc(&SKIP_CODES[1], &SKIP_BITS[1])]; +pub static MV_VLC: Vlc = vlc(&MV_CODES, &MV_BITS); + +#[cfg(test)] +mod tests { + use super::*; + + /// No code is the start of another one. + #[test] + fn prefix_free() { + fn check(codes: &[u16], bits: &[u8], table: &Vlc) { + for (i, (&c, &b)) in codes.iter().zip(bits).enumerate() { + for (j, (&d, &e)) in codes.iter().zip(bits).enumerate() { + assert!(i == j || b > e || c != d & ((1 << b) - 1), "{i} is a prefix of {j}"); + } + assert_eq!(table[c as usize], (i as u8, b)); + } + } + check(&SKIP_CODES[0], &SKIP_BITS[0], &SKIP_VLC[0]); + check(&SKIP_CODES[1], &SKIP_BITS[1], &SKIP_VLC[1]); + check(&MV_CODES, &MV_BITS, &MV_VLC); + } + + #[test] + fn scan_is_a_permutation() { + let mut seen = [false; 64]; + SCAN.iter().for_each(|&i| seen[i as usize] = true); + assert!(seen.iter().all(|&s| s)); + } +} diff --git a/crates/rage-formats/src/bink2/video.rs b/crates/rage-formats/src/bink2/video.rs new file mode 100644 index 0000000..149f05d --- /dev/null +++ b/crates/rage-formats/src/bink2/video.rs @@ -0,0 +1,1255 @@ +// Ported to Rust from Librempeg (https://github.com/librempeg/librempeg), +// libavcodec/bink2.c, bink2.h and bink2g.h, +// Copyright (c) 2014 Konstantin Shishkov, 2019 Paul B Mahol, +// GNU General Public License version 3 or later; used here under version 3. + +//! Bink 2 video, revisions `g` and later. +//! +//! A frame consists of 32×32 macroblocks in independent horizontal slices, +//! four planes (Y, Cr, Cb, alpha; chroma at half resolution), predicted from +//! the frame before or from neighbours, then smoothed by a loop filter. + +use super::bits::Bits; +use super::tables::*; +use super::{Bink2Error, Frame}; + +type Result = std::result::Result; + +fn bad(what: &str) -> Result { + Err(Bink2Error::Invalid(what.to_owned())) +} + +const INTRA: usize = 0; +const SKIP: usize = 1; +const MOTION: usize = 2; +const RESIDUE: usize = 3; + +/// Header flag: the video has an alpha plane. +pub const ALPHA: u32 = 0x10_0000; +/// Frame flag: alpha is one value (the top byte of the flags) for the frame. +const FLAT_ALPHA: u32 = 0x8_0000; +/// Frame flag: the residual is not filtered, and other details of inter blocks. +const PLAIN_RESIDUAL: u32 = 0x4_0000; +/// Frame flag: lists of unfiltered edges precede the slices. +const EDGE_LISTS: u32 = 0x1_0000; +const NO_ROW_EDGES: u32 = 0x8000; +const NO_COLUMN_EDGES: u32 = 0x4000; + +/// One plane of samples. +#[derive(Clone, Default)] +struct Plane { + data: Vec, + stride: usize, +} + +/// What the loop filter needs, per 8×8 block: bit 15 intra, bits 13–14 how +/// few AC coefficients it has, the rest its DC. +#[derive(Default)] +struct Blocks { + info: Vec, + stride: usize, +} + +pub struct Decoder { + revision: u8, + flags: u32, + width: usize, + height: usize, + /// Size rounded up to whole macroblocks. + coded: (usize, usize), + planes: [Plane; 4], + last: [Plane; 4], + have_last: bool, + blocks: [Blocks; 4], + /// Motion vector of each 16×16 luma quadrant. + mvs: Vec, +} + +type Mv = [i32; 2]; + +/// The state of a macroblock that its neighbours predict from. +#[derive(Clone, Copy, Default)] +struct Mb { + intra_q: i32, + inter_q: i32, + mv: [Mv; 4], + /// DC of each 8×8 block in raster order, by component. + dc: [[i32; 16]; 4], +} + +/// The neighbours of a macroblock. +struct Around<'a> { + left: Option<&'a Mb>, + top: Option<&'a Mb>, + /// Above to the left. + corner: Option<&'a Mb>, +} + +struct Slice<'a> { + bits: Bits<'a>, + flags: u32, + key: bool, + has_alpha: bool, + /// Size of the reference: whole macroblocks × height rounded up to 16. + reference: (usize, usize), + last: &'a [Plane; 4], + dst: [&'a mut [u8]; 4], + stride: [usize; 4], + info: [&'a mut [u16]; 4], + info_stride: [usize; 4], + mvs: &'a mut [Mv], + start: usize, + end: usize, +} + +fn shift(comp: usize) -> usize { + usize::from(comp == 1 || comp == 2) +} + +fn mid(a: i32, b: i32, c: i32) -> i32 { + a.max(b).min(a.min(b).max(c)) +} + +fn mid_mv(a: Mv, b: Mv, c: Mv) -> Mv { + [mid(a[0], b[0], c[0]), mid(a[1], b[1], c[1])] +} + +fn add_mv(a: Mv, b: Mv) -> Mv { + // Far beyond any picture; keeps damaged streams from overflowing. + const LIMIT: i32 = 1 << 20; + [(a[0] + b[0]).clamp(-LIMIT, LIMIT), (a[1] + b[1]).clamp(-LIMIT, LIMIT)] +} + +fn clip(v: i32) -> u8 { + v.clamp(0, 255) as u8 +} + +fn wrap(v: i32) -> i16 { + v as i16 +} + +impl Decoder { + pub fn new(revision: u8, flags: u32, width: u32, height: u32) -> Result { + if !matches!(revision, b'g'..=b'n') { + return Err(Bink2Error::Unsupported(revision as char)); + } + let (width, height) = (width as usize, height as usize); + let coded = (width.next_multiple_of(32), height.next_multiple_of(32)); + let has_alpha = flags & ALPHA != 0; + let planes: [Plane; 4] = std::array::from_fn(|comp| { + let (w, h) = (coded.0 >> shift(comp), coded.1 >> shift(comp)); + Plane { data: if comp < 3 || has_alpha { vec![0; w * h] } else { Vec::new() }, stride: w } + }); + Ok(Self { + revision, + flags, + width, + height, + coded, + last: planes.clone(), + planes, + have_last: false, + blocks: std::array::from_fn(|comp| { + let stride = coded.0 >> 3 >> shift(comp); + let rows = if comp < 3 || has_alpha { coded.1 >> 3 >> shift(comp) } else { 0 }; + Blocks { info: vec![0; stride * rows], stride } + }), + mvs: vec![[0; 2]; (coded.0 >> 4) * (coded.1 >> 4)], + }) + } + + fn has_alpha(&self) -> bool { + self.flags & ALPHA != 0 + } + + /// Where each slice ends, in luma rows. + fn slice_ends(&self) -> Vec { + let h = self.coded.1; + match self.revision { + b'g' if h < 128 => vec![h], + b'g' => vec![(self.height / 2 + 16) & !31, h], + _ => { + let n = [2, 3, 4, 8][(self.flags & 3) as usize]; + let (mut start, mut end) = (0, h + 32 * n - 1); + let mut ends = Vec::with_capacity(n); + for i in 0..n - 1 { + start += (end.saturating_sub(start) / (n - i)) & !31; + end -= 32; + ends.push(start.min(h)); + } + ends.push(h); + ends + } + } + } + + /// Decodes the next frame. Gives the number of bytes left unread in each + /// slice (at most 3 of padding in an undamaged stream). + pub fn decode(&mut self, data: &[u8], key: bool) -> Result> { + if !key && !self.have_last { + return bad("the video does not start with a key frame"); + } + let left = self.decode_frame(data, key)?; + std::mem::swap(&mut self.planes, &mut self.last); + self.have_last = true; + Ok(left) + } + + fn decode_frame(&mut self, data: &[u8], key: bool) -> Result> { + let mut bits = Bits::new(data); + let flags = bits.read(32); + let ends = self.slice_ends(); + let mut offsets: Vec = (1..ends.len()).map(|_| bits.read(32) as usize).collect(); + offsets.push(data.len()); + let edges = self.edge_lists(&mut bits, flags); + if bits.overread() { + return bad("frame header ends early"); + } + let has_alpha = self.has_alpha() && flags & FLAT_ALPHA == 0; + if self.has_alpha() && !has_alpha { + self.planes[3].data.fill((flags >> 24) as u8); + } + + let mut slices = Vec::with_capacity(ends.len()); + let mut planes = self.planes.each_mut().map(|p| p.data.as_mut_slice()); + let mut infos = self.blocks.each_mut().map(|b| b.info.as_mut_slice()); + let mut mvs = self.mvs.as_mut_slice(); + let stride = self.last.each_ref().map(|p| p.stride); + let info_stride: [usize; 4] = std::array::from_fn(|c| self.coded.0 >> 3 >> shift(c)); + let (mut start, mut from) = (0, None); + for (&end, &to) in ends.iter().zip(&offsets) { + if to > data.len() || from.is_some_and(|f| f > to) { + return bad("slice offsets are not in order"); + } + let rows = end - start; + slices.push(Slice { + // The first slice follows the edge lists at once. + bits: match from { + Some(from) => Bits::new(&data[from..to]), + None => bits.truncated(to), + }, + flags, + key, + has_alpha, + reference: (self.coded.0, self.height.next_multiple_of(16)), + last: &self.last, + dst: std::array::from_fn(|c| { + let n = if planes[c].is_empty() { 0 } else { stride[c] * (rows >> shift(c)) }; + planes[c].split_off_mut(..n).unwrap_or_default() + }), + stride, + info: std::array::from_fn(|c| { + let n = if infos[c].is_empty() { 0 } else { info_stride[c] * (rows >> 3 >> shift(c)) }; + infos[c].split_off_mut(..n).unwrap_or_default() + }), + info_stride, + mvs: mvs.split_off_mut(..(self.coded.0 >> 4) * (rows >> 4)).unwrap_or_default(), + start, + end, + }); + (start, from) = (end, Some(to)); + } + let threads = self.coded.0 * self.coded.1 > 256 * 256; + let left: Vec> = if threads { + std::thread::scope(|scope| { + let running: Vec<_> = slices.into_iter().map(|s| scope.spawn(|| s.decode())).collect(); + running.into_iter().map(|t| t.join().unwrap_or_else(|_| bad("slice"))).collect() + }) + } else { + slices.into_iter().map(Slice::decode).collect() + }; + let left = left.into_iter().collect::>>()?; + + let filter = Filter { flags, edges: &edges, mvs: &self.mvs, mv_stride: self.coded.0 >> 4 }; + let planes = self.planes.iter_mut().zip(&self.blocks).enumerate().take(3 + usize::from(has_alpha)); + std::thread::scope(|scope| { + for (comp, (plane, blocks)) in planes { + let filter = &filter; + if threads { + scope.spawn(move || filter.plane(plane, blocks, comp)); + } else { + filter.plane(plane, blocks, comp); + } + } + }); + Ok(left) + } + + /// Rows and columns of block edges the loop filter leaves alone. + fn edge_lists(&self, bits: &mut Bits, flags: u32) -> [Vec; 2] { + let rows = (self.height.next_multiple_of(16) >> 3) - 1; + let columns = (self.coded.0 >> 3) - 1; + let mut read = |count: usize, off: u32| { + if flags & EDGE_LISTS != 0 && flags & off == 0 { flag_list(bits, count) } else { vec![false; count] } + }; + [read(rows, NO_ROW_EDGES), read(columns, NO_COLUMN_EDGES)] + } + + /// The last decoded frame. + pub fn frame(&self) -> Frame { + let crop = |comp: usize| { + let s = shift(comp); + let (w, h) = (self.width.div_ceil(1 << s), self.height.div_ceil(1 << s)); + let p = &self.last[comp]; + let mut out = Vec::with_capacity(w * h); + p.data.chunks_exact(p.stride).take(h).for_each(|row| out.extend_from_slice(&row[..w])); + out + }; + Frame { + width: self.width as u32, + height: self.height as u32, + y: crop(0), + cb: crop(2), + cr: crop(1), + a: self.has_alpha().then(|| crop(3)), + } + } +} + +/// A list of flags, plain or as runs. +fn flag_list(bits: &mut Bits, size: usize) -> Vec { + if !bits.bit() { + return (0..size).map(|_| bits.bit()).collect(); + } + let mut out: Vec = Vec::with_capacity(size); + let (mut toggle, mut flag) = (false, false); + while out.len() < size { + let left = size - out.len(); + let runs = bits.bit(); + if !runs { + flag = if toggle { !flag } else { bits.bit() }; + toggle = false; + out.push(flag); + for _ in 1..left.min(5) { + out.push(bits.bit()); + } + } else { + let n = match left { + ..4 => 2, + 4..16 => 4, + _ => 5, + }; + let mut run = n as usize + if toggle { 1 } else { 2 }; + flag = if toggle { !flag } else { bits.bit() }; + toggle = false; + run = run.min(left); + if run < left { + let extra = bits.read(n); + toggle = extra != (1 << n) - 1; + run = (run + extra as usize).min(left); + } + out.resize(out.len() + run, flag); + } + } + out +} + +/// Predicts a DC from the blocks to the left, above, and above left. +fn gradient(corner: i32, a: i32, b: i32) -> i32 { + (a + b - corner).clamp(a.min(b).min(corner), a.max(b).max(corner)) +} + +/// Predicts a DC by continuing the step from `b` to `a`. +fn extend(a: i32, b: i32) -> i32 { + (2 * a - b).clamp(a.min(b), a.max(b)) +} + +/// Adds predictions to DC differences (coding order, limited to `min..=max`); +/// the result is in raster order. `left` and `top` are the DCs of the +/// neighbouring macroblocks, if any. +fn predict_dcs( + diff: &[i32; 16], + n: usize, + (min, max): (i32, i32), + left: Option<&[i32; 16]>, + top: Option<&[i32; 16]>, + corner: Option<&[i32; 16]>, +) -> [i32; 16] { + // A grid with the neighbours in row and column 0. + let mut g = [[0i32; 5]; 5]; + for i in 0..n { + g[0][i + 1] = top.map_or(0, |t| t[(n - 1) * n + i]); + g[i + 1][0] = left.map_or(0, |l| l[i * n + n - 1]); + } + g[0][0] = corner.map_or(0, |c| c[n * n - 1]); + let mut out = [0; 16]; + for (i, d) in diff[..n * n].iter().enumerate() { + let pos = if n == 4 { LUMA_POS[i] as usize } else { i }; + let (r, c) = (pos / n + 1, pos % n + 1); + let predicted = match (r > 1 || top.is_some(), c > 1 || left.is_some()) { + (true, true) => gradient(g[r - 1][c - 1], g[r][c - 1], g[r - 1][c]), + // Along the top only even columns have the block below left yet. + (false, true) if c % 2 == 1 => extend(g[r][c - 1], g[r + 1][c - 1]), + (false, true) => g[r][c - 1], + (true, false) => extend(g[r - 1][c], g[r - 1][c + 1]), + (false, false) => 0, + }; + g[r][c] = (predicted + d).clamp(min, max); + out[pos] = g[r][c]; + } + out +} + +/// Predicts the one motion vector of a macroblock. +fn predict_mv(around: &Around, delta: Mv) -> Mv { + let predicted = match (around.top, around.left) { + (None, None) => [0; 2], + (None, Some(l)) => mid_mv(l.mv[0], l.mv[1], l.mv[3]), + (Some(t), None) => mid_mv(t.mv[0], t.mv[2], t.mv[3]), + (Some(t), Some(l)) => { + let corner = around.corner.map_or([0; 2], |c| c.mv[3]); + mid_mv(corner, t.mv[2], l.mv[1]) + } + }; + add_mv(delta, predicted) +} + +/// Predicts the motion vectors of the four quadrants of a macroblock. +fn predict_mvs(around: &Around, delta: &[Mv; 4]) -> [Mv; 4] { + let mut v = [[0; 2]; 4]; + v[0] = predict_mv(around, delta[0]); + match (around.top, around.left) { + (Some(t), None) => { + v[1] = add_mv(delta[1], mid_mv(t.mv[2], t.mv[3], v[0])); + v[2] = add_mv(delta[2], mid_mv(t.mv[2], v[0], v[1])); + } + (Some(t), Some(l)) => { + v[1] = add_mv(delta[1], mid_mv(t.mv[2], t.mv[3], v[0])); + v[2] = add_mv(delta[2], mid_mv(l.mv[1], l.mv[3], v[0])); + } + (None, None) => { + v[1] = add_mv(delta[1], v[0]); + v[2] = add_mv(delta[2], v[0]); + } + (None, Some(l)) => { + v[2] = add_mv(delta[2], mid_mv(l.mv[1], l.mv[3], v[0])); + v[1] = add_mv(delta[1], mid_mv(l.mv[1], v[0], v[2])); + } + } + v[3] = add_mv(delta[3], mid_mv(v[0], v[1], v[2])); + v +} + +#[inline] +fn idct_1d(v: [i32; 8], shift: u32) -> [i32; 8] { + let a = |v: i32| v + (v >> 2); + let b = |v: i32| v >> 1; + let c = |v: i32| v - (v >> 2) - (v >> 4); + let d = |v: i32| v + (v >> 2) - (v >> 4); + let e = |v: i32| v >> 2; + let (t00, t01) = (v[3] + v[5], v[3] - v[5]); + let (t02, t03) = (a(v[2]) + b(v[6]), b(v[2]) - a(v[6])); + let (t0, t1, t2) = (v[0] + v[4] + t02, v[0] + v[4] - t02, v[0] - v[4]); + let (t3, t4, t5, t6) = (v[1] + t00, v[1] - t00, t01 + v[7], t01 - v[7]); + let (t7, t8) = (t4 + c(t6), c(t4) - t6); + let (t9, t10) = (d(t3) + e(t5), e(t3) - d(t5)); + let (t11, t12) = (t2 + t03, t2 - t03); + [t0 + t9, t11 + t7, t12 + t8, t1 + t10, t1 - t10, t12 - t8, t11 - t7, t0 - t9].map(|v| i32::from(wrap(v >> shift))) +} + +/// Inverse transform; the result is transposed. +fn idct(block: &mut [i16; 64]) { + let mut t = [0i32; 64]; + for i in 0..8 { + let col = idct_1d(std::array::from_fn(|k| i32::from(block[k * 8 + i])), 0); + for (k, v) in col.into_iter().enumerate() { + t[k * 8 + i] = v; + } + } + for i in 0..8 { + let row = idct_1d(std::array::from_fn(|k| t[i * 8 + k]), 6); + for (k, v) in row.into_iter().enumerate() { + block[k * 8 + i] = wrap(v); + } + } +} + +/// Filters 8 samples along a block edge. `at` is the first sample after the +/// edge, `step` goes across it and `next` along it; `sa` and `sb` are the +/// strengths before and after it. +macro_rules! filter_edge { + ($pix:expr, $at:expr, $step:expr, $next:expr, $sa:expr, $sb:expr, $clip:expr) => { + for k in 0..8 { + let at = $at + k * $next; + let (p1, p0) = (i32::from($pix[at - 2 * $step]), i32::from($pix[at - $step])); + let (q0, q1) = (i32::from($pix[at]), i32::from($pix[at + $step])); + let d = q0 - p0; + let (a, b) = ((d + 2) >> 2, (d + 4) >> 3); + if $sa >= 1 { + $pix[at - $step] = $clip(p0 + a); + } + if $sa >= 2 { + $pix[at - 2 * $step] = $clip(p1 + b); + } + if $sb >= 1 { + $pix[at] = $clip(q0 - a); + } + if $sb >= 2 { + $pix[at + $step] = $clip(q1 - b); + } + } + }; +} + +/// A half-pel motion vector component that places a visible block exactly 19 +/// pixels before the end of the reference, the last position where the 6-tap +/// filter still fits, is replaced by the full-pel position 2 pixels before. +fn edge_mv(mv: i32, pos: i32, size: i32) -> i32 { + if mv & 1 != 0 && pos + 16 <= size && (mv >> 1) + pos == size - 19 { mv - 5 } else { mv } +} + +/// Moves the vertical component of a motion vector so that the block (and the +/// rows its filter reads below) comes from inside the reference. Only happens +/// to blocks below the picture. +fn clamp_mv_y(mv: i32, y: i32, height: i32) -> i32 { + let limit = height - 16 - if mv & 1 != 0 { 3 } else { 0 }; + if (mv >> 1) + y > limit { 2 * (limit - y) + (mv & 1) } else { edge_mv(mv, y, height) } +} + +/// The half-pel filter over 6 samples `step` apart, around `at`. +fn half>(s: &[T], at: usize, step: usize) -> i32 { + let p = |i: usize| -> i32 { s[at + i * step - 2 * step].into() }; + ((((p(2) + p(3)) * 19) >> 1) - (p(1) + p(4)) * 2 + ((p(0) + p(5)) >> 1) + 8) >> 4 +} + +/// Copies an `N`×`N` area from (`x`, `y`) of the reference, whose border +/// samples continue outside it. +fn fetch(plane: &Plane, (w, h): (usize, usize), x: i32, y: i32) -> [[u8; N]; N] { + let mut out = [[0; N]; N]; + let inside = x >= 0 && x as usize + N <= w; + for (j, row) in out.iter_mut().enumerate() { + let line = (y + j as i32).clamp(0, h as i32 - 1) as usize * plane.stride; + if inside { + row.copy_from_slice(&plane.data[line + x as usize..][..N]); + } else { + for (i, v) in row.iter_mut().enumerate() { + *v = plane.data[line + (x + i as i32).clamp(0, w as i32 - 1) as usize]; + } + } + } + out +} + +/// Predicts a 16×16 luma block at (`x`, `y`) moved by a half-pel vector. +fn luma_block(dst: &mut [u8], stride: usize, src: &Plane, size: (usize, usize), x: i32, y: i32, mv: Mv) { + let src = fetch::<21>(src, size, x + (mv[0] >> 1) - 2, y + (mv[1] >> 1) - 2); + let rows = dst.chunks_mut(stride).take(16); + match (mv[0] & 1 != 0, mv[1] & 1 != 0) { + (false, false) => rows.zip(&src[2..]).for_each(|(d, s)| d[..16].copy_from_slice(&s[2..18])), + (true, false) => { + rows.zip(&src[2..]) + .for_each(|(d, s)| d[..16].iter_mut().enumerate().for_each(|(i, d)| *d = clip(half(s, i + 2, 1)))); + } + (false, true) => { + let flat = src.as_flattened(); + rows.enumerate().for_each(|(j, d)| { + d[..16].iter_mut().enumerate().for_each(|(i, d)| *d = clip(half(flat, (j + 2) * 21 + i + 2, 21))); + }); + } + (true, true) => { + let mut t = [[0i16; 16]; 21]; + for (t, s) in t.iter_mut().zip(&src) { + t.iter_mut().enumerate().for_each(|(i, t)| *t = half(s, i + 2, 1) as i16); + } + let flat = t.as_flattened(); + rows.enumerate().for_each(|(j, d)| { + d[..16].iter_mut().enumerate().for_each(|(i, d)| *d = clip(half(flat, (j + 2) * 16 + i, 16))); + }); + } + } +} + +/// Predicts an 8×8 chroma block at (`x`, `y`) moved by a quarter-pel vector. +fn chroma_block(dst: &mut [u8], stride: usize, src: &Plane, size: (usize, usize), x: i32, y: i32, mv: Mv) { + let src = fetch::<9>(src, size, x + (mv[0] >> 2), y + (mv[1] >> 2)); + let (fx, fy) = (mv[0] & 3, mv[1] & 3); + for (j, d) in dst.chunks_mut(stride).take(8).enumerate() { + for (i, d) in d[..8].iter_mut().enumerate() { + let row = |j: usize| (4 - fx) * i32::from(src[j][i]) + fx * i32::from(src[j][i + 1]); + // One bilinear filter; with a zero fraction the same as rounding + // the other direction alone. + *d = (((4 - fy) * row(j) + fy * row(j + 1) + 8) >> 4) as u8; + } + } +} + +/// The sum over 8 columns of their (pairwise rounded) averages. +fn average_block(src: &[u8], stride: usize) -> i32 { + let avg = |a: i32, b: i32| (a + b + 1) >> 1; + (0..8) + .map(|i| { + let p = |j: usize| i32::from(src[j * stride + i]); + let q = |j: usize| avg(avg(p(j), p(j + 1)), avg(p(j + 2), p(j + 3))); + avg(q(0), q(4)) + }) + .sum() +} + +impl Slice<'_> { + fn decode(mut self) -> Result { + let columns = self.reference.0 / 32; + let mut above = vec![Mb::default(); columns]; + let mut row = vec![Mb::default(); columns]; + for y in (self.start..self.end).step_by(32) { + let mut lru = [MOTION, RESIDUE, SKIP, INTRA]; + // Coded block patterns of the macroblock before, intra and inter. + let mut cbp = [[0u32; 4]; 2]; + for x in 0..columns { + let top = y > self.start; + let around = Around { + left: (x > 0).then(|| &row[x.wrapping_sub(1)]), + top: top.then(|| &above[x]), + corner: (top && x > 0).then(|| &above[x.wrapping_sub(1)]), + }; + let mb = self.macroblock(x, y, &around, &mut lru, &mut cbp)?; + row[x] = mb; + if self.bits.overread() { + return bad("slice ends early"); + } + } + std::mem::swap(&mut row, &mut above); + } + Ok(self.bits.left() / 8) + } + + fn macroblock( + &mut self, + x: usize, + y: usize, + around: &Around, + lru: &mut [usize; 4], + cbp: &mut [[u32; 4]; 2], + ) -> Result { + let kind = if self.key { INTRA } else { self.kind(lru) }; + let comps = 3 + usize::from(self.has_alpha); + let mut mb = Mb::default(); + let (mut intra_dq, mut inter_dq) = (0, 0); + match kind { + INTRA => { + mb.mv = predict_mvs(around, &[[0; 2]; 4]); + intra_dq = self.delta_q(); + } + SKIP => self.compensate(x, y, &mb), + _ => { + let (one, deltas) = self.motion_vectors()?; + mb.mv = if one { [predict_mv(around, deltas[0]); 4] } else { predict_mvs(around, &deltas) }; + if kind == RESIDUE { + inter_dq = self.delta_q(); + } + self.compensate(x, y, &mb); + } + } + let quantiser = |f: fn(&Mb) -> i32, dq: i32| { + let predicted = match (around.top, around.left) { + (None, None) => 16, + (None, Some(l)) => f(l), + (Some(t), None) => f(t), + (Some(t), Some(l)) => mid(f(t), f(l), around.corner.map_or(0, f)), + }; + let q = predicted + dq; + if (0..DC_PAT.len() as i32).contains(&q) { Ok(q) } else { bad("quantiser out of range") } + }; + mb.intra_q = quantiser(|m| m.intra_q, intra_dq)?; + mb.inter_q = quantiser(|m| m.inter_q, inter_dq)?; + + match kind { + INTRA => { + for (comp, cbp) in cbp[0].iter_mut().enumerate().take(comps) { + mb.dc[comp] = self.intra(x, y, comp, around, mb.intra_q as usize, cbp)?; + } + } + RESIDUE => { + let cbp = &mut cbp[1]; + self.inter(x, y, 0, mb.inter_q as usize, &mut cbp[0])?; + if self.bits.bit() { + self.inter(x, y, 1, mb.inter_q as usize, &mut cbp[1])?; + self.inter(x, y, 2, mb.inter_q as usize, &mut cbp[2])?; + } else { + (cbp[1], cbp[2]) = (0, 0); + } + if self.has_alpha { + self.inter(x, y, 3, mb.inter_q as usize, &mut cbp[3])?; + } + } + _ => {} + } + + // For the loop filter and later predictions. + let mv_stride = self.reference.0 >> 4; + for (j, mv) in mb.mv.iter().enumerate() { + let at = ((y - self.start) / 16 + j / 2) * mv_stride + x * 2 + j % 2; + self.mvs[at] = if kind == MOTION || kind == RESIDUE { *mv } else { [0; 2] }; + } + if kind != INTRA { + for comp in 0..comps { + let n = 4 >> shift(comp); + let stride = self.stride[comp]; + for by in 0..n { + let info = ((y - self.start) / 32 * n + by) * self.info_stride[comp] + x * n; + self.info[comp][info..info + n].fill(0); + for bx in 0..n { + let at = self.origin(x, y, comp) + by * 8 * stride + bx * 8; + mb.dc[comp][by * n + bx] = average_block(&self.dst[comp][at..], stride); + } + } + } + } + Ok(mb) + } + + /// Where a macroblock starts in this slice's part of a plane. + fn origin(&self, x: usize, y: usize, comp: usize) -> usize { + ((y - self.start) >> shift(comp)) * self.stride[comp] + ((x * 32) >> shift(comp)) + } + + fn kind(&mut self, lru: &mut [usize; 4]) -> usize { + match self.bits.unary(true, 3) { + 0 => lru[0], + 1 => { + lru.swap(0, 1); + lru[0] + } + 2 => { + lru.swap(2, 3); + lru[2] + } + _ => { + lru.swap(1, 2); + lru[1] + } + } + } + + fn delta_q(&mut self) -> i32 { + let mut dq = self.bits.unary(true, 4) as i32; + match dq { + 3 => dq += self.bits.read(1) as i32, + 4 => dq += self.bits.read(5) as i32 + 1, + _ => {} + } + if dq != 0 && self.bits.bit() { -dq } else { dq } + } + + /// Differences to the predicted motion vectors, and whether there is just one. + fn motion_vectors(&mut self) -> Result<(bool, [Mv; 4])> { + let one = self.bits.bit(); + let mut out = [[0; 2]; 4]; + for i in 0..2 { + for mv in out.iter_mut().take(if one { 1 } else { 4 }) { + let Some(symbol) = self.bits.vlc(&MV_VLC) else { return bad("motion vector code") }; + mv[i] = match i32::from(symbol) { + 15 => { + let n = self.bits.unary(true, 12) + 4; + let v = self.bits.read(n) as i32 + (1 << n) - 1; + if v & 1 != 0 { -(v >> 1) - 1 } else { v >> 1 } + } + v if v >= 8 => v - 15, + v => v, + }; + } + } + Ok((one, out)) + } + + /// Predicts a macroblock from the frame before. + fn compensate(&mut self, x: usize, y: usize, mb: &Mb) { + let (w, h) = self.reference; + for (j, mv) in mb.mv.iter().enumerate() { + let (px, py) = (x * 32 + j % 2 * 16, y + j / 2 * 16); + let mv = [edge_mv(mv[0], px as i32, w as i32), clamp_mv_y(mv[1], py as i32, h as i32)]; + for comp in 0..3 + usize::from(self.has_alpha) { + let s = shift(comp); + let stride = self.stride[comp]; + let at = self.origin(x, y, comp) + ((j / 2 * 16) >> s) * stride + ((j % 2 * 16) >> s); + let dst = &mut self.dst[comp][at..]; + let block = if s == 0 { luma_block } else { chroma_block }; + let size = (w >> s, h >> s); + block(dst, stride, &self.last[comp], size, (px >> s) as i32, (py >> s) as i32, mv); + } + } + } + + /// Which 8×8 blocks have coefficients (low half) and which AC run codes + /// they use (high half). + fn cbp_luma(&mut self, before: u32) -> u32 { + let mut ones = (before & 0xFFFF).count_ones(); + let mut mask = 0; + if ones > 7 { + ones = 16 - ones; + mask = 0xFFFF; + } + let mut cbp = 0; + if !self.bits.bit() { + if ones < 4 { + for j in (0..16).step_by(4) { + if !self.bits.bit() { + cbp |= self.bits.read(4) << j; + } + } + } else { + cbp = self.bits.read(16); + } + } + cbp ^= mask; + if (self.flags & PLAIN_RESIDUAL == 0 || cbp != 0) && self.bits.bit() { + cbp |= cbp << 16; + } + cbp + } + + fn cbp_chroma(&mut self, before: u32) -> u32 { + if self.bits.bit() { + let most = (before & 0xF).count_ones() >= 2; + return (before & 0xF_0000) | if most { 0xF } else { 0 }; + } + let cbp = self.bits.read(4); + if self.bits.bit() { cbp | cbp << 16 } else { cbp } + } + + fn dc_differences(&mut self, n: usize, q: usize) -> [i32; 16] { + let mut out = [0; 16]; + if self.bits.bit() { + let pat = i64::from(DC_PAT[q.max(8)]); + for out in &mut out[..n * n] { + let mut v = self.bits.unary(false, 12); + if v > 3 { + v = (1 << (v - 3)) + self.bits.read(v - 3) + 2; + } + if v != 0 { + let scaled = ((i64::from(v) * pat + 0x200) >> 10) as i32; + *out = if self.bits.bit() { -scaled } else { scaled }; + } + } + } + out + } + + /// Reads the AC coefficients of four blocks. Gives how few each has: 0 + /// (8 or more) to 3 (none). + fn coefficients( + &mut self, + blocks: &mut [[i16; 64]; 4], + cbp: u32, + q: usize, + qmat: &[[u16; 64]; 4], + ) -> Result<[u8; 4]> { + *blocks = [[0; 64]; 4]; + let mut few = [3; 4]; + if cbp & 0xF == 0 { + return Ok(few); + } + let qmat = &qmat[q & 3]; + let factor = 1 << (q >> 2); + let table = &SKIP_VLC[usize::from(cbp & 0xFFFF_0000 != 0)]; + for (i, block) in blocks.iter_mut().enumerate() { + if (cbp >> i) & 1 == 0 { + continue; + } + let (mut at, mut next, mut count) = (1, 0, 0); + while at < 64 { + next -= 1; + if next < 1 { + let Some(symbol) = self.bits.vlc(table) else { return bad("coefficient code") }; + next = if symbol == 13 { 7 } else { 0 }; + at += match symbol { + 11 => self.bits.read(6) as usize, + 12 => 64, + 13 => 0, + n => n as usize, + }; + if at >= 64 { + break; + } + } + let mut v = self.bits.unary(false, 12) as i32 + 1; + if v > 3 { + v = self.bits.read(v as u32 - 3) as i32 + (1 << (v - 3)) + 2; + } + if self.bits.bit() { + v = -v; + } + let pos = SCAN[at] as usize; + let v = v.wrapping_mul(i32::from(qmat[pos])).wrapping_mul(factor); + block[pos] = wrap(v.wrapping_add(64) >> 7); + count += 1; + at += 1; + } + few[i] = u8::from(count < 8) + u8::from(count < 4) + u8::from(count < 1); + } + Ok(few) + } + + /// Decodes a component of an intra macroblock; gives its DCs. + fn intra( + &mut self, + x: usize, + y: usize, + comp: usize, + around: &Around, + q: usize, + cbp: &mut u32, + ) -> Result<[i32; 16]> { + let n = 4 >> shift(comp); + *cbp = if n == 4 { self.cbp_luma(*cbp) } else { self.cbp_chroma(*cbp) }; + let mut diff = self.dc_differences(n, q); + if around.top.is_none() && around.left.is_none() { + diff[0] += 1024; + } + let dcs = |m: Option<&'_ Mb>| m.map(|m| m.dc[comp]); + let (left, top, corner) = (dcs(around.left), dcs(around.top), dcs(around.corner)); + let dc = predict_dcs(&diff, n, (0, 2047), left.as_ref(), top.as_ref(), corner.as_ref()); + let qmat = if n == 4 { &LUMA_INTRA } else { &CHROMA_INTRA }; + let mut blocks = [[0; 64]; 4]; + let stride = self.stride[comp]; + for i in 0..n * n / 4 { + let few = self.coefficients(&mut blocks, *cbp >> (4 * i), q, qmat)?; + for (j, block) in blocks.iter_mut().enumerate() { + let pos = if n == 4 { LUMA_POS[i * 4 + j] as usize } else { j }; + block[0] = (dc[pos] * 8 + 32) as i16; + idct(block); + let at = self.origin(x, y, comp) + pos / n * 8 * stride + pos % n * 8; + for (d, s) in self.dst[comp][at..].chunks_mut(stride).zip(block.as_chunks::<8>().0) { + d[..8].iter_mut().zip(s).for_each(|(d, &s)| *d = clip(i32::from(s))); + } + let info = ((y - self.start) / 32 * n + pos / n) * self.info_stride[comp] + x * n + pos % n; + self.info[comp][info] = 0x8000 | u16::from(few[j]) << 13 | dc[pos] as u16; + } + } + Ok(dc) + } + + /// Adds the residual of a component to the prediction. + fn inter(&mut self, x: usize, y: usize, comp: usize, q: usize, cbp: &mut u32) -> Result<()> { + let n = 4 >> shift(comp); + *cbp = if n == 4 { self.cbp_luma(*cbp) } else { self.cbp_chroma(*cbp) }; + let limit = if self.flags & PLAIN_RESIDUAL != 0 { 2047 } else { 1023 }; + let diff = self.dc_differences(n, q); + let dc = predict_dcs(&diff, n, (-limit, limit), None, None, None); + let mut residual = [0i16; 32 * 32]; + let size = n * 8; + let mut few = [0; 16]; + let mut blocks = [[0; 64]; 4]; + for i in 0..n * n / 4 { + let counts = self.coefficients(&mut blocks, *cbp >> (4 * i), q, &INTER)?; + for (j, block) in blocks.iter_mut().enumerate() { + let pos = if n == 4 { LUMA_POS[i * 4 + j] as usize } else { j }; + block[0] = (dc[pos] * 8 + 32) as i16; + idct(block); + few[pos] = counts[j]; + let at = pos / n * 8 * size + pos % n * 8; + for (d, s) in residual[at..].chunks_mut(size).zip(block.as_chunks::<8>().0) { + d[..8].copy_from_slice(s); + } + } + } + const NO_EDGES: u32 = NO_ROW_EDGES | NO_COLUMN_EDGES; + if self.flags & PLAIN_RESIDUAL == 0 && self.flags & NO_EDGES != NO_EDGES { + self.filter_residual(&mut residual[..size * size], n, &few, &dc); + } + let stride = self.stride[comp]; + let at = self.origin(x, y, comp); + for (d, s) in self.dst[comp][at..].chunks_mut(stride).zip(residual.chunks_exact(size).take(size)) { + d[..size].iter_mut().zip(s).for_each(|(d, &s)| *d = clip(i32::from(*d) + i32::from(s))); + } + Ok(()) + } + + /// Filters a residual across the block edges inside the macroblock, + /// `n`×`n` blocks. + fn filter_residual(&self, residual: &mut [i16], n: usize, few: &[u8; 16], dc: &[i32; 16]) { + let size = n * 8; + for vertical in [true, false] { + if self.flags & if vertical { NO_COLUMN_EDGES } else { NO_ROW_EDGES } != 0 { + continue; + } + let (dx, dy) = (usize::from(vertical), usize::from(!vertical)); + for by in dy..n { + for bx in dx..n { + let (a, b) = ((by - dy) * n + bx - dx, by * n + bx); + let (sa, sb) = match (few[a], few[b]) { + (3, 3) if (dc[a] - dc[b]).abs() <= 32 => continue, + (3, 3) => (2, 2), + (0, 0) => continue, + s => s, + }; + let (step, next) = if vertical { (1, size) } else { (size, 1) }; + filter_edge!(residual, by * 8 * size + bx * 8, step, next, sa, sb, wrap); + } + } + } + } +} + +/// The loop filter. Its result is shown and predicted from. +struct Filter<'a> { + flags: u32, + /// Rows and columns of edges to leave alone. + edges: &'a [Vec; 2], + mvs: &'a [Mv], + mv_stride: usize, +} + +impl Filter<'_> { + fn plane(&self, plane: &mut Plane, blocks: &Blocks, comp: usize) { + let threshold = (self.flags & 0xFF) as i32 * 8; + let stride = plane.stride; + for (i, &info) in blocks.info.iter().enumerate() { + if info & 0xE000 == 0xE000 { + let (bx, by) = (i % blocks.stride, i / blocks.stride); + smooth_block(&mut plane.data[by * 8 * stride + bx * 8..], stride, blocks, bx, by, threshold); + } + } + // Flat alpha blocks are smoothed, but alpha edges not filtered. + if comp < 3 { + if self.flags & NO_COLUMN_EDGES == 0 { + self.block_edges(plane, blocks, comp, true); + } + if self.flags & NO_ROW_EDGES == 0 { + self.block_edges(plane, blocks, comp, false); + } + } + } + + fn block_edges(&self, plane: &mut Plane, blocks: &Blocks, comp: usize, vertical: bool) { + let s = shift(comp); + let rows = blocks.info.len() / blocks.stride; + let (dx, dy) = (usize::from(vertical), usize::from(!vertical)); + let off = |list: &[bool], i: usize| list.get(i).copied().unwrap_or(true); + for by in dy..rows { + for bx in dx..blocks.stride { + let skip = if vertical { + off(&self.edges[1], (bx << s) - 1) + } else if comp == 0 && by == rows - 1 { + // The flag of the last luma row does not apply. + by > self.edges[0].len() + } else { + off(&self.edges[0], (by << s) - 1) + }; + if skip { + continue; + } + let (ax, ay) = (bx - dx, by - dy); + let (a, b) = (blocks.info[ay * blocks.stride + ax], blocks.info[by * blocks.stride + bx]); + let strength = |i: u16| if i & 0x8000 != 0 { (i >> 13) & 3 } else { 0 }; + let (mut sa, mut sb) = (strength(a), strength(b)); + if (a | b) & 0x8000 == 0 { + let mv = |x: usize, y: usize| self.mvs[((y << s) >> 1) * self.mv_stride + ((x << s) >> 1)]; + let (va, vb) = (mv(ax, ay), mv(bx, by)); + if (va[0] - vb[0]).abs() >= 2 || (va[1] - vb[1]).abs() >= 2 { + (sa, sb) = (2, 2); + } + } + if sa == sb && (sa == 0 || sa == 3) { + continue; + } + let at = by * 8 * plane.stride + bx * 8; + let (step, next) = if vertical { (1, plane.stride) } else { (plane.stride, 1) }; + filter_edge!(plane.data, at, step, next, sa, sb, clip); + } + } + } +} + +fn smooth_weight(d: i32, i: usize) -> i32 { + match i { + 0 => (d * 26624) >> 16, + 1 => (d * 18432) >> 16, + 2 => (d * 12288) >> 16, + 3 => (d * 7168) >> 16, + 4 => d >> 4, + 5 => d >> 5, + 6 => d >> 7, + _ => 0, + } +} + +/// Replaces an intra block without AC coefficients by a smooth surface +/// through the DCs of its neighbours that are similar flat intra blocks. +fn smooth_block(dst: &mut [u8], stride: usize, blocks: &Blocks, bx: usize, by: usize, threshold: i32) { + let (bw, bh) = (blocks.stride, blocks.info.len() / blocks.stride); + let center = blocks.info[by * bw + bx]; + let dc = |info: u16| i32::from(info & 0x1FFF); + let mut g = [[None; 3]; 3]; + for (dy, row) in g.iter_mut().enumerate() { + for (dx, g) in row.iter_mut().enumerate() { + let (x, y) = ((bx + dx).wrapping_sub(1), (by + dy).wrapping_sub(1)); + if x < bw && y < bh { + let n = blocks.info[y * bw + x]; + if i32::from(n.wrapping_sub(center) as i16).abs() < threshold { + *g = Some(dc(n)); + } + } + } + } + let c = dc(center); + let (left, right) = (g[1][0].unwrap_or(c), g[1][2].unwrap_or(c)); + let g = [0, 1, 2].map(|r| [g[r][0].unwrap_or(left), g[r][1].unwrap_or(c), g[r][2].unwrap_or(right)]); + let g = [g[0], [left, c, right], g[2]]; + let h = g.map(|g| -> [i32; 8] { + std::array::from_fn(|i| g[1] + 4 + smooth_weight(g[0] - g[1], i) + smooth_weight(g[2] - g[1], 7 - i)) + }); + for (j, row) in dst.chunks_mut(stride).take(8).enumerate() { + for (i, d) in row[..8].iter_mut().enumerate() { + let mid = h[1][i]; + let v = mid + smooth_weight(h[0][i] - mid, j) + smooth_weight(h[2][i] - mid, 7 - j); + *d = clip(v >> 3); + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + /// Writes bits, least significant first. + #[derive(Default)] + struct Writer(Vec); + + impl Writer { + fn put(&mut self, v: u32, n: u32) { + (0..n).for_each(|i| self.0.push((v >> i) & 1 != 0)); + } + + fn bytes(&self) -> Vec { + let byte = |c: &[bool]| c.iter().enumerate().fold(0, |a, (i, &b)| a | u8::from(b) << i); + self.0.chunks(8).map(byte).collect() + } + } + + /// A key frame of one macroblock: no coefficients, luma DC differences + /// `luma` (quantiser index 8 steps, coded as unary + sign). + fn key_frame(luma: &[u32; 16]) -> Vec { + let mut w = Writer::default(); + w.put(PLAIN_RESIDUAL | NO_ROW_EDGES | NO_COLUMN_EDGES, 32); + w.put(1, 1); // quantiser unchanged + w.put(1, 1); // no coefficients + w.put(1, 1); // DC differences follow + for &v in luma { + w.put((1 << v) - 1, v + 1); + if v > 0 { + w.put(0, 1); + } + } + for _ in 0..2 { + w.put(1, 1); // pattern from before + w.put(0, 1); // no DC differences + } + w.bytes() + } + + fn decoder() -> Decoder { + Decoder::new(b'g', 0, 32, 32).unwrap() + } + + #[test] + fn flat_key_frame() { + let mut d = decoder(); + assert!(d.decode(&key_frame(&[0; 16]), false).is_err(), "needs a key frame"); + assert_eq!(d.decode(&key_frame(&[0; 16]), true).unwrap(), [0]); + let f = d.frame(); + assert!(f.y.iter().chain(&f.cb).chain(&f.cr).all(|&v| v == 128)); + assert_eq!((f.y.len(), f.cb.len(), f.a), (1024, 256, None)); + } + + #[test] + fn dc_difference_moves_the_whole_block() { + // DC_PAT[16] = 16384: one step is 16, which is 2 in samples. + let mut first = [0; 16]; + first[0] = 2; + let mut d = decoder(); + d.decode(&key_frame(&first), true).unwrap(); + // Every other block is predicted from the first. + assert!(d.frame().y.iter().all(|&v| v == 132)); + } + + #[test] + fn skipped_frame_repeats() { + let mut first = [0; 16]; + first[5] = 3; + let mut d = decoder(); + d.decode(&key_frame(&first), true).unwrap(); + let before = d.frame(); + let mut w = Writer::default(); + w.put(PLAIN_RESIDUAL | NO_ROW_EDGES | NO_COLUMN_EDGES, 32); + w.put(0b000, 3); // the third of the list: skip + assert_eq!(d.decode(&w.bytes(), false).unwrap(), [0]); + assert!(d.frame().y == before.y); + } + + #[test] + fn moved_frame() { + let mut first = [0; 16]; + first[0] = 3; + let mut d = decoder(); + d.decode(&key_frame(&first), true).unwrap(); + let mut w = Writer::default(); + w.put(PLAIN_RESIDUAL | NO_ROW_EDGES | NO_COLUMN_EDGES, 32); + w.put(1, 1); // motion + w.put(1, 1); // one vector + w.put(0x06, 3); // +1 half sample + w.put(0x01, 1); // 0 + d.decode(&w.bytes(), false).unwrap(); + assert_eq!(d.mvs, [[1, 0]; 4]); + // Flat, so it looks the same. + assert!(d.frame().y.iter().all(|&v| v == 134)); + } + + #[test] + fn idct_of_dc_is_flat() { + let mut b = [0; 64]; + b[0] = 100 * 64 + 32; + idct(&mut b); + assert_eq!(b, [100; 64]); + } + + #[test] + fn run_list() { + let mut w = Writer::default(); + w.put(1, 1); // runs + w.put(1, 1); // a run … + w.put(1, 1); // … of ones + w.put(3, 5); // 5 + 2 + 3 + w.put(0, 1); // plain: starts with the opposite + w.put(0b1010, 4); + let bytes = w.bytes(); + let list = flag_list(&mut Bits::new(&bytes), 17); + assert_eq!(list[..10], [true; 10]); + assert_eq!(list[10..15], [false, false, true, false, true]); + } + + #[test] + fn slices() { + let ends = |flags, h| Decoder::new(b'j', flags, 64, h).unwrap().slice_ends(); + for flags in 0..4 { + for h in [1, 32, 33, 64, 512, 1080, 2160] { + let e = ends(flags, h); + assert_eq!(e.len(), [2, 3, 4, 8][flags as usize]); + assert!(e.is_sorted() && e.iter().all(|v| v % 32 == 0), "{e:?}"); + assert_eq!(*e.last().unwrap(), h.next_multiple_of(32) as usize); + } + } + assert_eq!(ends(2, 512), [128, 256, 384, 512]); + } + + /// Damaged frames give an error or a picture, never a panic. + #[test] + fn garbage() { + let mut seed = 1u32; + for round in 0..60 { + let mut d = Decoder::new(b'j', ALPHA | (round % 4), 33 + round * 3, 40 + round).unwrap(); + for frame in 0..4 { + let mut data: Vec = (0..4000) + .map(|_| { + seed = seed.wrapping_mul(1_664_525).wrapping_add(1_013_904_223); + (seed >> 24) as u8 + }) + .collect(); + let n = d.slice_ends().len(); + for i in 1..n { + data[i * 4..i * 4 + 4].copy_from_slice(&((i * 4000 / n) as u32).to_le_bytes()); + } + let _ = d.decode(&data, frame == 0); + } + } + } +} diff --git a/crates/rage-formats/src/lib.rs b/crates/rage-formats/src/lib.rs index 4461643..24aba42 100644 --- a/crates/rage-formats/src/lib.rs +++ b/crates/rage-formats/src/lib.rs @@ -9,6 +9,7 @@ pub mod awc; pub mod bcpack; +pub mod bink2; pub mod clip; pub mod dds; pub mod drawable; diff --git a/crates/rage-formats/src/media.rs b/crates/rage-formats/src/media.rs index 4fad7cd..dd2178e 100644 --- a/crates/rage-formats/src/media.rs +++ b/crates/rage-formats/src/media.rs @@ -1,6 +1,7 @@ //! Facts about media files the game plays: Scaleform movies (`.gfx`) and -//! Bink videos (`.bik`). Neither is played back; this reads their headers -//! (and, for `.gfx`, the names it exports and the images it loads). +//! Bink videos (`.bik`). Neither is played back (Bink 2 is, see +//! [`crate::bink2`]); this reads their headers (and, for `.gfx`, the names it +//! exports and the images it loads). use rage_core::bytes::LeRead; use std::io::Read; @@ -202,7 +203,7 @@ pub fn gfx_to_swf(data: &[u8]) -> Result, MediaError> { pub fn is_media(name: &str) -> bool { let lower = name.to_ascii_lowercase(); - lower.ends_with(".gfx") || lower.ends_with(".bik") + [".gfx", ".bik", ".bk2"].iter().any(|e| lower.ends_with(e)) } #[cfg(test)] From f97d64ef8959400a51b3ec99df82454a0b225c37 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 06:19:10 +0100 Subject: [PATCH 14/31] GTA VI clip dictionaries and skeletons: list, verify and play clips Reads .#cd files: clips with their layers joined, all channel kinds the game uses (with the new eight-lane packed floats), tracks by name hash. Skeletons and byte-indexed skinning of GTA VI models; clips and verify --animations on the command line, clip list in the GUI. Co-Authored-By: Claude Opus 5.5 --- README.md | 6 +- crates/openrage-app/src/anim.rs | 11 +- crates/openrage-app/src/gta4_cutscene.rs | 2 +- crates/openrage-app/src/models.rs | 6 + crates/openrage-cli/src/cli.rs | 6 +- crates/openrage-cli/src/cmd/verify.rs | 101 ++++++ crates/openrage-cli/src/cmd/view.rs | 15 +- crates/openrage-cli/src/main.rs | 6 +- crates/openrage-gui/src/model_ui.rs | 22 +- crates/openrage-gui/src/viewer.rs | 5 +- crates/rage-formats/src/clip.rs | 182 +++++++++-- crates/rage-formats/src/clip6.rs | 390 +++++++++++++++++++++++ crates/rage-formats/src/drawable.rs | 5 + crates/rage-formats/src/drawable6.rs | 154 ++++++++- crates/rage-formats/src/lib.rs | 1 + crates/rage-formats/src/wad.rs | 4 +- site/content/cli.md | 1 + 17 files changed, 865 insertions(+), 52 deletions(-) create mode 100644 crates/rage-formats/src/clip6.rs diff --git a/README.md b/README.md index 8187db1..200a012 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ OpenIV's last release was in January 2022. OpenRAGE picks up where it left off a - **Mods, safely:** changes go to OpenIV's `mods` folder, never into your game files; every change and every `.oiv` package can be undone. - **Models in:** replace props and vehicle bodies of GTA V Enhanced with your own OBJ models; doors and bonnets keep moving (preview). - **ASI mods:** see and switch GTA V's ASI mods, and on Linux let Proton load the ASI loader with one click. -- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; preview supported models and texture pools from the Scarlett build. +- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; preview supported models and texture pools from the Scarlett build, list clip dictionaries and play them on vehicles, weapons and props with skeletons. - **Tested on the whole game:** every format is checked against every file of GTA V ([details](https://two-play.github.io/openrage/#status)).
@@ -62,7 +62,7 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p |---|---|---| | **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | | **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) | -| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models · texture pools (`.ttpf`) · text, audio containers and Bink 2 video files | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`; people and animals are not skinned) · texture pools (`.ttpf`) · text, audio containers and Bink 2 video files | | **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) @@ -73,7 +73,7 @@ Download the [latest release](https://github.com/Two-Play/openrage/releases/late For the GTA VI preview, choose the folder containing `game_scarlett_master.exe` or RPF9 archives. With the supported executable beside the archives, OpenRAGE reads their tables of contents with the keys in it (the keys are not stored), so archives open at once. Names are matched to the hashes in the tables; files without a match are listed under `entries/`. Without the executable, or with another build, the explorer indexes the archives in the background and caches the results, which can take several minutes for large archives; recovered entries are then grouped by file type and offset, with model names recovered from their data where possible. Editing RPF9 archives is not supported. -The CLI also supports browsing, extraction and verification, for example `openrage --game ls common.rpf` and `openrage --game verify common.rpf` (or a folder or file inside it). Running `verify` without a path checks all RPF9 archives below the game folder. Verification decodes the entries with checksum, size and bounds checks and returns an error on a failed entry; in the recovery view, unread data is outside its coverage. Nested archives are checked when their path is given. Format-specific verification and `--rebuild` are not supported for GTA VI yet. +The CLI also supports browsing, extraction and verification, for example `openrage --game ls common.rpf` and `openrage --game verify common.rpf` (or a folder or file inside it). Running `verify` without a path checks all RPF9 archives below the game folder. Verification decodes the entries with checksum, size and bounds checks and returns an error on a failed entry; in the recovery view, unread data is outside its coverage. Nested archives are checked when their path is given. `verify --animations ` reads the clip dictionaries below a path, nested archives included; other format-specific verification and `--rebuild` are not supported for GTA VI yet. To build from source (Rust, pinned in `rust-toolchain.toml`; on Linux also the fontconfig, xkbcommon, Wayland and ALSA development packages): diff --git a/crates/openrage-app/src/anim.rs b/crates/openrage-app/src/anim.rs index a737cd6..94f4f54 100644 --- a/crates/openrage-app/src/anim.rs +++ b/crates/openrage-app/src/anim.rs @@ -6,7 +6,7 @@ use rage_formats::math::{self, Mat4}; use crate::expr::Local; -/// Reads a clip dictionary (`.ycd`, GTA V or RDR2; GTA IV `.wad`) or a cutscene's +/// Reads a clip dictionary (`.ycd`, GTA V or RDR2; GTA IV `.wad`; GTA VI `.#cd`) or a cutscene's /// animation (`.cut`, its sections joined), mods included. pub fn load_clips( game_dir: &std::path::Path, @@ -25,6 +25,10 @@ pub fn load_clips( rpf.entries().and_then(|e| e.get(i)).ok_or_else(|| anyhow::anyhow!("archive table not readable"))?; Ok(rage_formats::clip::parse_ycd(&rpf.read_resource(entry)?)?) } + Node::Rpf9File(rpf, i) => { + let (system, graphics) = crate::rpf9::resource(&rpf, i)?; + Ok(rage_formats::clip6::parse(&rage_resource::Resource { version: 0, system, graphics })?) + } _ => anyhow::bail!("{vpath} is not a file inside an archive"), } } @@ -88,7 +92,8 @@ impl Binding { pub fn new(skeleton: &Skeleton, animation: &Animation) -> Self { let mut tracks = vec![[None; 3]; skeleton.bones.len()]; for (i, t) in animation.tracks.iter().enumerate() { - let Some(b) = skeleton.find_tag(t.bone) else { continue }; + let found = if t.bone_hash != 0 { skeleton.find_hash(t.bone_hash) } else { skeleton.find_tag(t.bone) }; + let Some(b) = found else { continue }; let slot = match t.track { TRACK_BONE_TRANSLATION => 0, TRACK_BONE_ROTATION => 1, @@ -224,7 +229,7 @@ mod tests { let animation = Animation::from_frames( 1, 0.0, - vec![BoneTrack { bone: 1, format: 1, track: TRACK_BONE_ROTATION }], + vec![BoneTrack { bone: 1, format: 1, track: TRACK_BONE_ROTATION, ..Default::default() }], vec![vec![[0.0, 0.0, h, h]]], ); let binding = Binding::new(&skeleton, &animation); diff --git a/crates/openrage-app/src/gta4_cutscene.rs b/crates/openrage-app/src/gta4_cutscene.rs index 7d350bd..0f3b674 100644 --- a/crates/openrage-app/src/gta4_cutscene.rs +++ b/crates/openrage-app/src/gta4_cutscene.rs @@ -1451,7 +1451,7 @@ FX_CS_spit:effect1_0 0 1205 500 500 0 0 0 0 0 0 0\n[/EFFECTS]\n[DURATION]\n2000\ #[test] fn props_move_by_their_root() { use rage_formats::clip::BoneTrack; - let track = |bone, track, format| BoneTrack { bone, format, track }; + let track = |bone, track, format| BoneTrack { bone, format, track, ..Default::default() }; let body = Animation::from_frames( 2, 1.0, diff --git a/crates/openrage-app/src/models.rs b/crates/openrage-app/src/models.rs index bb7256d..85e1903 100644 --- a/crates/openrage-app/src/models.rs +++ b/crates/openrage-app/src/models.rs @@ -682,7 +682,13 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu if let Node::Rpf9File(rpf, i) = node { let drawables = crate::gta6_models::load(&rpf, i)?; let textures = crate::gta6_textures::for_drawables(game_dir, &drawables); + // A dictionary's drawables have skeletons of their own. + let skeleton = match drawables.as_slice() { + [(_, d)] => d.skeleton.clone(), + _ => None, + }; let mut model = LoadedModel::from_drawables(drawables); + model.skeleton = skeleton; if let Some(textures) = textures { model.add_textures("texture pools".to_owned(), textures); } diff --git a/crates/openrage-cli/src/cli.rs b/crates/openrage-cli/src/cli.rs index f5920bf..c401291 100644 --- a/crates/openrage-cli/src/cli.rs +++ b/crates/openrage-cli/src/cli.rs @@ -64,7 +64,7 @@ pub(crate) enum Command { /// Instead of archives, decode every sound of every audio container (.awc). #[arg(long, conflicts_with_all = ["textures", "models"])] audio: bool, - /// Instead of archives, parse every clip dictionary (.ycd) and evaluate every frame. + /// Instead of archives, parse every clip dictionary (.ycd; GTA VI .#cd) and evaluate its frames. #[arg(long, conflicts_with_all = ["textures", "models", "audio"])] animations: bool, /// Instead of archives, convert every metadata file (.ymap, .ytyp, .ymt, .ymf, .cut, .pso) to XML. @@ -228,7 +228,7 @@ pub(crate) enum Command { /// Instead of only reading files, decode every sound of every audio container. #[arg(long, conflicts_with_all = ["textures", "models", "text", "meta"])] audio: bool, - /// Instead of only reading files, parse every clip dictionary (.ycd) and evaluate every frame. + /// Instead of only reading files, parse every clip dictionary (.ycd; GTA VI .#cd) and evaluate its frames. #[arg(long, conflicts_with_all = ["textures", "models", "text", "meta", "audio"])] anims: bool, }, @@ -350,7 +350,7 @@ pub(crate) enum Command { #[arg(long)] outfit: Option, }, - /// List the clips of a clip dictionary (.ycd; GTA IV .wad). + /// List the clips of a clip dictionary (.ycd; GTA IV .wad; GTA VI .#cd). Clips { /// Virtual path of the .ycd file. path: String, diff --git a/crates/openrage-cli/src/cmd/verify.rs b/crates/openrage-cli/src/cmd/verify.rs index ab2cb87..621dc42 100644 --- a/crates/openrage-cli/src/cmd/verify.rs +++ b/crates/openrage-cli/src/cmd/verify.rs @@ -1028,7 +1028,108 @@ pub(crate) fn hex(b: &[u8]) -> String { /// Per archive: files, clips, animations, frame-count mismatches, bad values, errors. pub(crate) type AnimStats = (usize, usize, usize, usize, usize, Vec); +/// Reads every GTA VI clip dictionary (`.#cd`) below a path, archives inside +/// included, and checks its values. An animation that does not add up is an +/// error of the reader already. +fn verify_gta6_animations(node: Node, within: &str) -> Result<()> { + use rayon::prelude::*; + let started = Instant::now(); + /// The clip dictionaries of an archive and the archives inside. + fn collect( + rpf: Arc, + dir: &str, + out: &mut Vec<(Arc, usize)>, + errors: &mut Vec, + ) { + let entries = match rpf.entries() { + Ok(entries) => entries, + Err(e) => return errors.push(format!("{}: {e}", rpf.display_name())), + }; + let prefix = if dir.is_empty() { String::new() } else { format!("{}/", dir.to_ascii_lowercase()) }; + for (i, e) in entries.iter().enumerate() { + let name = rpf.entry_name(e).to_ascii_lowercase(); + if !name.starts_with(&prefix) { + continue; + } + if name.ends_with(".#cd") { + out.push((Arc::clone(&rpf), i)); + } else if rpf.is_archive(e) { + match rpf.open_child(e) { + Ok(child) => collect(Arc::new(child), "", out, errors), + Err(e) => errors.push(e.to_string()), + } + } + } + } + let (mut files, mut errors) = (Vec::new(), Vec::new()); + match node { + Node::Rpf9Dir(rpf, dir) => collect(rpf, &dir, &mut files, &mut errors), + Node::Rpf9File(rpf, i) => files.push((rpf, i)), + _ => bail!("{within}: not a GTA VI archive"), + } + let check = |(rpf, i): &(Arc, usize)| -> Result<(usize, usize, usize, usize, usize)> { + let (system, graphics) = openrage_app::rpf9::resource(rpf, *i)?; + let dict = rage_formats::clip6::parse(&rage_resource::Resource { version: 0, system, graphics })?; + let (mut tracks, mut values, mut bad) = (0, 0, 0); + for a in &dict.animations { + tracks += a.tracks.len(); + for (t, track) in a.tracks.iter().enumerate() { + for f in (0..a.frames).step_by(7) { + let Some(v) = a.value(t, f as f32) else { bail!("a track without values") }; + values += 1; + let norm = v.iter().map(|x| x * x).sum::().sqrt(); + if v.iter().any(|x| !x.is_finite()) || (track.format == 1 && !(0.99..=1.01).contains(&norm)) { + bad += 1; + } + } + } + } + Ok((dict.clips.len(), dict.animations.len(), tracks, values, bad)) + }; + let results: Vec<_> = files + .par_iter() + .map(|file| { + check(file).map_err(|e| { + let name = file.0.entries().ok().and_then(|es| es.get(file.1).map(|e| file.0.entry_name(e))); + format!("{}/{}: {e:#}", file.0.display_name(), name.unwrap_or_default()) + }) + }) + .collect(); + let mut total = [0usize; 5]; + for r in results { + match r { + Ok((clips, animations, tracks, values, bad)) => { + for (sum, n) in total.iter_mut().zip([clips, animations, tracks, values, bad]) { + *sum += n; + } + } + Err(e) => errors.push(e), + } + } + for e in errors.iter().take(40) { + outln!("FAIL {e}"); + } + outln!( + "{} clip dictionaries, {} clips, {} animations, {} tracks; {} values checked, {} bad; {} errors ({:.1}s)", + files.len(), + total[0], + total[1], + total[2], + total[3], + total[4], + errors.len(), + started.elapsed().as_secs_f32() + ); + if !errors.is_empty() || total[4] > 0 { + bail!("verification found {} errors", errors.len() + total[4]); + } + Ok(()) +} + pub(crate) fn cmd_verify_animations(game_dir: &Path, within: &str, keys: Option>) -> Result<()> { + if let node @ (Node::Rpf9Dir(..) | Node::Rpf9File(..)) = vfs::resolve(game_dir, within, keys.clone())? { + return verify_gta6_animations(node, within); + } let starts = archive_roots(game_dir, within, keys)?; let started = Instant::now(); let (all, nested) = for_each_entry_parallel( diff --git a/crates/openrage-cli/src/cmd/view.rs b/crates/openrage-cli/src/cmd/view.rs index 40a8dc8..5f5fb89 100644 --- a/crates/openrage-cli/src/cmd/view.rs +++ b/crates/openrage-cli/src/cmd/view.rs @@ -421,10 +421,19 @@ pub(crate) fn cmd_clips(game_dir: &Path, path: &str, clip: Option<&str>, keys: O if t < 12 { let first = vals.first().copied().unwrap_or_default(); let mid = vals.get(vals.len() / 2).copied().unwrap_or_default(); + // GTA VI names bones and tracks by hash. + let name = if tr.bone_hash != 0 || tr.kind_hash != 0 { + let kind = rage_formats::clip6::kind_name(tr.kind_hash); + format!( + "{:08x} {}", + tr.bone_hash, + kind.map_or_else(|| format!("{:08x}", tr.kind_hash), str::to_owned) + ) + } else { + format!("{:04x} track {}", tr.bone, tr.track) + }; outln!( - " bone {:04x} track {} fmt {}: f0 [{:.3} {:.3} {:.3} {:.3}] mid [{:.3} {:.3} {:.3} {:.3}]", - tr.bone, - tr.track, + " bone {name} fmt {}: f0 [{:.3} {:.3} {:.3} {:.3}] mid [{:.3} {:.3} {:.3} {:.3}]", tr.format, first[0], first[1], diff --git a/crates/openrage-cli/src/main.rs b/crates/openrage-cli/src/main.rs index 3512636..e7ee7a6 100644 --- a/crates/openrage-cli/src/main.rs +++ b/crates/openrage-cli/src/main.rs @@ -216,7 +216,6 @@ fn run() -> Result<()> { if textures || models || audio - || animations || meta || text || particles @@ -229,9 +228,12 @@ fn run() -> Result<()> { || openformats { bail!( - "GTA VI verification currently checks recovered RPF9 data only; use `verify ` without format or rebuild flags" + "GTA VI verification checks archive data, or clip dictionaries with --animations; use `verify ` without other format or rebuild flags" ); } + if animations { + return cmd_verify_animations(&game_dir, &path, keys); + } cmd_verify(&game_dir, &path, keys) } Command::Verify { path, models: true, .. } if gta4 => cmd_verify_gta4_models(&game_dir, &path), diff --git a/crates/openrage-gui/src/model_ui.rs b/crates/openrage-gui/src/model_ui.rs index ff73b76..94591f7 100644 --- a/crates/openrage-gui/src/model_ui.rs +++ b/crates/openrage-gui/src/model_ui.rs @@ -474,15 +474,33 @@ pub(crate) fn save_png_image(img: &slint::Image, name: String, main: Weak bool { let n = item.name.to_ascii_lowercase(); - n.ends_with(".ycd") || (n.ends_with(".wad") && item.kind == ItemKind::Resource) + n.ends_with(".ycd") || n.ends_with(".#cd") || (n.ends_with(".wad") && item.kind == ItemKind::Resource) } /// Selecting a `.ycd` (or `.wad`): its clips and (found in the background) the models it fits. pub(crate) fn show_clip_dictionary(ui: &AppWindow, vpath: String, mut info: Meta) { match load_clip_dictionary(&vpath) { + Ok(dict) if vpath.to_ascii_lowercase().ends_with(".#cd") => { + // Bones are named by hash there and there is no search index, so + // no models are looked for. + info.push(kv("Clips", dict.clips.len())); + for c in dict.clips.iter().take(40) { + let animation = c.parts.first().and_then(|p| dict.animations.get(p.animation)); + let size = animation + .map_or_else(String::new, |a| format!(" · {} frames · {} tracks", a.frames, a.tracks.len())); + info.push(kv(&c.name, format!("{:.2} s{size}", c.duration()))); + } + if dict.clips.len() > 40 { + info.push(note(format!("… and {} more", dict.clips.len() - 40))); + } + info.push(note( + "To play it on a model with a skeleton, open the model and enter this file's path in its animation search.", + )); + set_meta(ui, &info); + } Ok(dict) => { let profile = suggest::Profile::new(&vpath, &dict); info.push(kv("Clips", dict.clips.len())); diff --git a/crates/openrage-gui/src/viewer.rs b/crates/openrage-gui/src/viewer.rs index cb83606..5699943 100644 --- a/crates/openrage-gui/src/viewer.rs +++ b/crates/openrage-gui/src/viewer.rs @@ -585,9 +585,10 @@ fn render(w: &slint::Weak, state: &Rc>) { fn anim_search(w: &slint::Weak, state: &Rc>, text: &str) { let Some(win) = w.upgrade() else { return }; - // A full path (from "Copy path") opens directly: RDR2 has no search index. + // A full path (from "Copy path") opens directly: RDR2 and GTA VI have no search index. let text = text.trim(); - let found = if text.contains('/') && text.to_ascii_lowercase().ends_with(".ycd") { + let lower = text.to_ascii_lowercase(); + let found = if text.contains('/') && (lower.ends_with(".ycd") || lower.ends_with(".#cd")) { vec![text.to_owned()] } else { crate::find_files(text, ".ycd", 200) diff --git a/crates/rage-formats/src/clip.rs b/crates/rage-formats/src/clip.rs index 2fc7009..49b941f 100644 --- a/crates/rage-formats/src/clip.rs +++ b/crates/rage-formats/src/clip.rs @@ -13,10 +13,12 @@ //! count, frame length, …) then the packed channel data. Every bone track //! is an "anim sequence" of up to four channels; channel parameters come //! first, then per-frame bit fields, then the channel list. +//! +//! GTA VI's dictionaries (`.#cd`) are read by [`crate::clip6`]. use rage_resource::{Resource, ResourceError}; -fn bad(msg: impl Into) -> ResourceError { +pub(crate) fn bad(msg: impl Into) -> ResourceError { ResourceError::Format(msg.into()) } @@ -24,19 +26,27 @@ pub const TRACK_BONE_TRANSLATION: u8 = 0; pub const TRACK_BONE_ROTATION: u8 = 1; pub const TRACK_BONE_SCALE: u8 = 2; -#[derive(Debug, Clone, Copy)] +/// Track kind of GTA VI tracks that move no bone, or that are not known; what +/// they are is in [`BoneTrack::kind_hash`]. +pub const TRACK_OTHER: u8 = 255; + +#[derive(Debug, Clone, Copy, Default)] pub struct BoneTrack { - /// Bone tag (`0` is the skeleton root). + /// Bone tag (`0` is the skeleton root, and every GTA VI track). pub bone: u16, /// 0: vector, 1: quaternion. pub format: u8, /// What is animated: 0 translation, 1 rotation, 2 scale, 5/6 mover, … pub track: u8, + /// GTA VI: the hash of the bone's name (0 in the other games). + pub bone_hash: u32, + /// GTA VI: the hash of the name of what is animated (0 in the other games). + pub kind_hash: u32, } /// One block of frames: decoded values per bone track and frame. #[derive(Debug, Clone)] -struct Block { +pub(crate) struct Block { frames: usize, /// `values[track][frame]`: vector (x, y, z, 0) or quaternion (x, y, z, w). values: Vec>, @@ -50,7 +60,7 @@ pub struct Animation { pub frames_per_block: usize, pub duration: f32, pub tracks: Vec, - blocks: Vec, + pub(crate) blocks: Vec, } impl Animation { @@ -86,7 +96,7 @@ pub struct Clip { } impl ClipPart { - fn duration(&self) -> f32 { + pub(crate) fn duration(&self) -> f32 { (self.end - self.start).max(0.0) / self.rate.max(0.001) } } @@ -308,6 +318,18 @@ fn read_channel(kind: u16, c: &mut Cursor, frames: usize) -> Result Channel::CachedQuaternion { index: 0 }, + 10 => { + let start = c.pos; + let num_ints = c.u32()? as usize; + let counts = c.u32()?; + let quantum = c.f32()?; + let offset = c.f32()?; + let words = + c.data.get(c.pos..start + num_ints * 4).ok_or_else(|| bad("packed channel outside the block"))?; + let values = packed_float(words, frames, counts)?; + c.pos = start + num_ints * 4; + Channel::LinearFloat(values.into_iter().map(|v| v as f32 * quantum + offset).collect()) + } k => return Err(bad(format!("unknown animation channel type {k}"))), }) } @@ -392,6 +414,72 @@ fn key_spans( Some(spans) } +/// Frames of a chunk of delta-coded values. +const CHUNK_FRAMES: usize = 64; +/// Lanes of a packed channel. +const LANES: usize = 8; + +/// GTA VI's kind-10 channels, the values before quantum and offset. The +/// parameters are those of linear floats, but `count3` is the number of +/// 32-byte groups of packed deltas at the end (a word for each of eight +/// lanes). In front of them, LSB first: per chunk of 64 frames the bit its +/// deltas start at in the lanes (`count1` bits), per chunk its start value +/// (`count2` bits), then per eight frames of a chunk a unary number, the bits +/// of a delta there (zeros, then a one). Each lane has the deltas of every +/// eighth frame; they are zigzag numbers and change the increment to the next +/// frame, so the last one of a full chunk leads to the next chunk's start. +/// Streams that do not add up (offsets, chunk starts, length) are refused. +fn packed_float(data: &[u8], frames: usize, counts: u32) -> Result, ResourceError> { + let [c1, c2, groups, _] = counts.to_le_bytes().map(usize::from); + let chunks = frames.div_ceil(CHUNK_FRAMES).max(1); + let lanes_at = data.len().checked_sub(groups * LANES * 4).ok_or_else(|| bad("packed channel cut off"))?; + if c1 > 32 || c2 > 32 || (chunks * (c1 + c2)).div_ceil(8) > lanes_at { + return Err(bad("impossible packed channel")); + } + let delta = |lane: usize, at: usize, width: u32| -> i64 { + let word = |i: usize| u64::from(bits(data, (lanes_at + (i * LANES + lane) * 4) * 8, 32)); + let both = word(at / 32) | word(at / 32 + 1) << 32; + let z = (both >> (at % 32)) as i64 & ((1i64 << width) - 1); + (z >> 1) ^ -(z & 1) + }; + let mut pos = chunks * (c1 + c2); + let mut lane_bit = 0; + let mut reached = None; + let mut out = Vec::with_capacity(frames); + for chunk in 0..chunks { + let start = i64::from(bits(data, chunks * c1 + chunk * c2, c2 as u32)); + if bits(data, chunk * c1, c1 as u32) as usize != lane_bit || reached.is_some_and(|v| v != start) { + return Err(bad("packed channel whose chunks do not fit together")); + } + let n = (frames - chunk * CHUNK_FRAMES).min(CHUNK_FRAMES); + let (mut value, mut step) = (start, 0i64); + out.push(value); + for group in 0..n.saturating_sub(1).div_ceil(LANES) { + let mut width = 0; + while bits(data, pos, 1) == 0 { + (width, pos) = (width + 1, pos + 1); + if width > 32 || pos >= lanes_at * 8 { + return Err(bad("packed channel without its widths")); + } + } + pos += 1; + for lane in 0..LANES { + step += delta(lane, lane_bit, width); + value += step; + if group * LANES + lane + 1 < n { + out.push(value); + } + } + lane_bit += width as usize; + } + reached = (n == CHUNK_FRAMES).then_some(value); + } + if pos.div_ceil(32) * 4 != lanes_at || lane_bit.div_ceil(32) != groups { + return Err(bad("packed channel of another length")); + } + Ok(out) +} + fn linear_float(data: &[u8], base: usize, frames: usize, counts: u32, quantum: f32, offset: f32) -> Vec { const CHUNK: usize = 64; let (c1, c2, c3) = (counts & 0xFF, (counts >> 8) & 0xFF, (counts >> 16) & 0xFF); @@ -430,12 +518,18 @@ fn linear_float(data: &[u8], base: usize, frames: usize, counts: u32, quantum: f out } -/// Decodes one sequence block (header at `ptr`). -/// RDR2 has a tenth channel kind after GTA V's nine (kind 9 here): floats -/// with the parameters of GTA V's linear floats but another coding. -const RDR2_KINDS: [u16; 10] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; +/// Which game's sequence blocks. RDR2 has a tenth channel kind after GTA V's +/// nine (kind 9 here): floats with the parameters of GTA V's linear floats but +/// another coding. GTA VI has an eleventh ([`packed_float`]). +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub(crate) enum Layout { + GtaV, + Rdr2, + GtaVi, +} -fn read_block(res: &Resource, ptr: u64, tracks: usize, rdr2: bool) -> Result { +/// Decodes one sequence block (header at `ptr`). +pub(crate) fn read_block(res: &Resource, ptr: u64, tracks: usize, layout: Layout) -> Result { let data_len = res.u32(ptr + 0x04)? as usize; let frame_offset = res.u32(ptr + 0x0C)? as usize; let frames = res.u16(ptr + 0x16)? as usize; @@ -451,13 +545,22 @@ fn read_block(res: &Resource, ptr: u64, tracks: usize, rdr2: bool) -> Result = Vec::new(); let mut params = Cursor { data, pos: 0 }; - let kinds = if rdr2 { 10 } else { 9 }; + let kinds = match layout { + Layout::GtaV => 9, + Layout::Rdr2 => 10, + Layout::GtaVi => 11, + }; + if layout == Layout::GtaVi && usize::from(res.u8(ptr + 0x1E)?) != kinds { + return Err(bad("a block with an unknown number of channel kinds")); + } let mut item = list + kinds * 2; let mut frame_bit = 0usize; - for stored in 0..kinds as u16 { - let n = count(stored as usize)?; - let kind = if rdr2 { RDR2_KINDS[stored as usize] } else { stored }; - + for kind in 0..kinds as u16 { + let n = count(kind as usize)?; + // Kinds no GTA VI file was seen to have: their coding there is not known. + if layout == Layout::GtaVi && n != 0 && matches!(kind, 6 | 9) { + return Err(bad(format!("channels of kind {kind}, which are not known in GTA VI"))); + } for _ in 0..n { let raw = data.get(item..item + 2).ok_or_else(|| bad("channel item outside the block"))?; let raw = u16::from_le_bytes([raw[0], raw[1]]) as usize; @@ -468,7 +571,7 @@ fn read_block(res: &Resource, ptr: u64, tracks: usize, rdr2: bool) -> Result> 2, raw & 3); if let Channel::CachedQuaternion { index } = &mut ch { // RDR2 always derives w; its low bits mean something else there. - *index = if rdr2 { 3 } else { slot }; + *index = if layout == Layout::Rdr2 { 3 } else { slot }; slot = if kind == 7 { 3 } else { 4 }; } channels.push((seq, slot, ch)); @@ -478,6 +581,19 @@ fn read_block(res: &Resource, ptr: u64, tracks: usize, rdr2: bool) -> Result = channels.iter().map(|(seq, ..)| *seq).collect(); + if params.pos != frame_offset + || frame_bit.div_ceil(32) * 4 != frame_len + || covered.len() != tracks + || covered.iter().any(|t| *t >= tracks) + { + return Err(bad("a block whose channels do not fit its tracks")); + } + } let mut values = vec![vec![[0.0f32, 0.0, 0.0, 1.0]; frames]; tracks]; for (seq, slots) in group(channels).into_iter().enumerate() { let Some(out) = values.get_mut(seq) else { break }; @@ -574,11 +690,11 @@ fn read_animation(res: &Resource, ptr: u64) -> Result let tracks: Vec = (0..track_count) .map(|i| { let v = res.u32(track_ptr + i * 4)?; - Ok(BoneTrack { bone: v as u16, format: (v >> 16) as u8, track: (v >> 24) as u8 }) + Ok(BoneTrack { bone: v as u16, format: (v >> 16) as u8, track: (v >> 24) as u8, ..Default::default() }) }) .collect::>()?; let blocks = (0..seq_count) - .map(|i| read_block(res, res.u64(seq_ptr + i * 8)?, tracks.len(), false)) + .map(|i| read_block(res, res.u64(seq_ptr + i * 8)?, tracks.len(), Layout::GtaV)) .collect::>()?; Ok(Animation { flags: 0, frames, frames_per_block, duration, tracks, blocks }) } @@ -729,18 +845,18 @@ fn read_animation_rdr2(res: &Resource, ptr: u64) -> Result = (0..track_count) .map(|i| { let v = res.u32(track_ptr + i * 4)?; - Ok(BoneTrack { bone: v as u16, format: (v >> 16) as u8, track: (v >> 24) as u8 }) + Ok(BoneTrack { bone: v as u16, format: (v >> 16) as u8, track: (v >> 24) as u8, ..Default::default() }) }) .collect::>()?; let blocks = (0..seq_count) - .map(|i| read_block(res, res.u64(seq_ptr + i * 8)?, tracks.len(), true)) + .map(|i| read_block(res, res.u64(seq_ptr + i * 8)?, tracks.len(), Layout::Rdr2)) .collect::>()?; Ok(Animation { flags: res.u16(ptr + 0x20)?, frames, frames_per_block, duration, tracks, blocks }) } /// Walks a hash map (bucket pointers, entries chained at +0x10) and returns /// the object pointer (+0x08) of every entry. -fn map_objects(res: &Resource, buckets: u64, count: u64) -> Result, ResourceError> { +pub(crate) fn map_objects(res: &Resource, buckets: u64, count: u64) -> Result, ResourceError> { let mut out = Vec::new(); for b in 0..count.min(65536) { let mut entry = res.u64(buckets + b * 8)?; @@ -960,6 +1076,28 @@ mod tests { } } + #[test] + fn gta6_packed_floats() { + // Ten frames: start 100, deltas of the increment for nine frames. The + // first eight take 3 bits (zigzag: 1, -1, 2, …), the ninth 2 bits. + let first: [u32; 8] = [2, 1, 4, 0, 3, 0, 0, 5]; + let mut words = [0u32; 1 + 8]; + // c1 = 0, c2 = 7: start, then unary 3 and 2. + words[0] = 100 | 0b1000 << 7 | 0b100 << 11; + for (lane, z) in first.iter().enumerate() { + words[1 + lane] = *z; + } + words[1] |= 3 << 3; // frame 9: -2 + let data: Vec = words.iter().flat_map(|w| w.to_le_bytes()).collect(); + let counts = 7 << 8 | 1 << 16; + // Increments: 1, 0, 2, 2, 0, 0, 0, -3, -5. + assert_eq!(packed_float(&data, 10, counts).unwrap(), [100, 101, 101, 103, 105, 105, 105, 105, 102, 97]); + // Another number of frames or a wrong group count does not add up. + assert!(packed_float(&data, 30, counts).is_err()); + assert!(packed_float(&data, 10, 7 << 8 | 2 << 16).is_err()); + assert!(packed_float(&data[..8], 10, counts).is_err()); + } + #[test] fn bit_reader() { let data = [0b1010_1100u8, 0b0000_0011]; diff --git a/crates/rage-formats/src/clip6.rs b/crates/rage-formats/src/clip6.rs new file mode 100644 index 0000000..4838ee7 --- /dev/null +++ b/crates/rage-formats/src/clip6.rs @@ -0,0 +1,390 @@ +//! GTA VI clip dictionaries (`.#cd`): animations of skeletons. +//! +//! A descendant of Red Dead Redemption 2's layout (see [`crate::clip`]), with +//! names by hash (Jenkins one-at-a-time of the lower-case name) instead of bone +//! tags. Pointers are 64-bit addresses, from `0x5000_0000` into the system part. +//! +//! * dictionary: name `0x38`, clip hash buckets `0x48` (count `0x50`), +//! animation dictionaries `0x70` (count `0x78`, 16 bytes each, a pointer +//! first); bucket entries chain through `0x10`, object at `0x08`; +//! * animation dictionary: animation hash buckets `0x48` (count `0x50`); +//! * clip: kind `0x20` (2), name `0x28` (a pointer, or up to 24 bytes of +//! text in place), parts `0x68` (count `0x70`), each 24 bytes: its layers +//! (pointer, count at 8) and its duration at `0x10`; +//! * layer, `0x38` bytes: its animation, then start, end and rate at `0x28`. +//! A clip's layers animate different tracks at different frame rates (the +//! body at 30 frames a second, fingers and helper bones at 15 and 10) and +//! play at the same time. They may be a section of a longer animation; +//! * animation: flags `0x20`, frames `0x24`, frames per block `0x26`, +//! duration `0x28`, sequence blocks `0x50` (count `0x58`, pointers), tracks +//! `0x60` (count `0x68`), each 12 bytes: the hash of the bone's name, the +//! hash of what is animated (`boneRotation`, …) and the format (0 +//! quaternion, 2 vector, 3 two numbers, 4 one number). A block's last frame +//! is the next one's first; +//! * sequence block: RDR2's, with eleven channel kinds. A track is a static +//! quaternion (kind 0), a static vector (1), or a channel per component: +//! static (2), raw (3), quantized (4), from a table (5) or packed (10). Kind 7 +//! makes the component its low bits say of a quaternion from the other +//! three; kind 8 marks one with all four stored. +//! +//! Found by looking at the files themselves. What holds for every file read: +//! the channels cover each track exactly, the parameters end where the frames +//! start, packed channels end at their next chunk's start value, and +//! the last frame of a block is the first of the next. A block that does not +//! fit is an error, not a guess. +//! +//! Not known: the tags and properties of dictionaries and clips, the hashes +//! of most tracks that move no bone (movers, cameras, …), the data some blocks +//! have after their channel list (no track needs it), and +//! the kinds of channels no file seen has (6 and 9). + +use std::collections::{HashMap, HashSet}; + +use rage_resource::{Resource, ResourceError}; + +use crate::clip::{ + Animation, BoneTrack, Clip, ClipDictionary, ClipPart, Layout, TRACK_BONE_ROTATION, TRACK_BONE_SCALE, + TRACK_BONE_TRANSLATION, TRACK_OTHER, bad, map_objects, read_block, +}; + +/// `boneTranslation`, `boneRotation` and `boneScale`. +const BONE_TRANSLATION: u32 = 0xF791_A95F; +const BONE_ROTATION: u32 = 0x98E1_750C; +const BONE_SCALE: u32 = 0x7AAA_9F60; + +/// The kind of clip with a list of parts, the only one seen. +const CLIP_PARTS: u32 = 2; +const PART_SIZE: u64 = 0x18; +const LAYER_SIZE: u64 = 0x38; +/// Longest clip that is put together, in frames. +const MAX_FRAMES: f32 = 1_000_000.0; + +/// What a track animates, by its name's hash (`None` when the name is not known). +pub fn kind_name(hash: u32) -> Option<&'static str> { + Some(match hash { + BONE_TRANSLATION => "boneTranslation", + BONE_ROTATION => "boneRotation", + BONE_SCALE => "boneScale", + 0x2DEE_FADD => "genericControl", + 0xF5C3_A5B6 => "genericTranslation", + 0x6DDE_F121 => "cameraTranslation", + _ => return None, + }) +} + +fn float(res: &Resource, at: u64) -> Result { + let v = f32::from_bits(res.u32(at)?); + if v.is_finite() { Ok(v) } else { Err(bad("a number that is none")) } +} + +fn read_animation(res: &Resource, ptr: u64) -> Result { + let frames = usize::from(res.u16(ptr + 0x24)?); + let duration = float(res, ptr + 0x28)?; + let (blocks_at, block_count) = (res.u64(ptr + 0x50)?, u64::from(res.u16(ptr + 0x58)?)); + let (tracks_at, track_count) = (res.u64(ptr + 0x60)?, u64::from(res.u16(ptr + 0x68)?)); + if frames == 0 || !(0.0..1e5).contains(&duration) || block_count == 0 || block_count > 4096 { + return Err(bad("implausible animation")); + } + let tracks: Vec = (0..track_count) + .map(|i| { + let at = tracks_at + i * 12; + let kind_hash = res.u32(at + 4)?; + let format = match res.u32(at + 8)? { + 0 => 1, + 2..=4 => 0, + f => return Err(bad(format!("a track of unknown format {f}"))), + }; + let track = match kind_hash { + BONE_TRANSLATION => TRACK_BONE_TRANSLATION, + BONE_ROTATION => TRACK_BONE_ROTATION, + BONE_SCALE => TRACK_BONE_SCALE, + _ => TRACK_OTHER, + }; + Ok(BoneTrack { bone: 0, format, track, bone_hash: res.u32(at)?, kind_hash }) + }) + .collect::>()?; + let blocks = (0..block_count) + .map(|i| read_block(res, res.u64(blocks_at + i * 8)?, tracks.len(), Layout::GtaVi)) + .collect::, _>>()?; + let animation = + Animation { flags: 0, frames, frames_per_block: usize::from(res.u16(ptr + 0x26)?), duration, tracks, blocks }; + let stored: usize = animation.block_frames().iter().sum(); + if stored != frames + animation.blocks.len() - 1 { + return Err(bad("an animation whose blocks have another number of frames")); + } + Ok(animation) +} + +/// A clip's name: a pointer, or text in place. Without path and extension. +fn clip_name(res: &Resource, at: u64) -> Result { + let pointer = res.u64(at)?; + let name = if pointer >= Resource::ROOT && res.bytes(pointer, 1).is_ok() { + res.string(pointer)? + } else { + let text = res.bytes(at, 24)?; + let len = text.iter().position(|b| *b == 0).unwrap_or(text.len()); + String::from_utf8_lossy(&text[..len]).into_owned() + }; + let name = name.strip_prefix("pack:/").unwrap_or(&name); + Ok(name.strip_suffix(".clip").unwrap_or(name).to_owned()) +} + +/// The layers of a part as one animation: the tracks of all of them (the +/// first's where two have the same), at the frame rate of the finest one. +fn join_layers(layers: &[ClipPart], animations: &[Animation], duration: f32) -> Result { + let rate = layers + .iter() + .map(|l| (&animations[l.animation], l.rate)) + .filter(|(a, _)| a.duration > 0.0) + .map(|(a, rate)| (a.frames - 1) as f32 / a.duration * rate) + .fold(0.0, f32::max); + let frames = (duration * rate).round(); + if !(0.0..MAX_FRAMES).contains(&frames) { + return Err(bad("implausible clip")); + } + let frames = frames as usize + 1; + let mut seen = HashSet::new(); + let (mut tracks, mut values) = (Vec::new(), Vec::new()); + for layer in layers { + let a = &animations[layer.animation]; + for (t, track) in a.tracks.iter().enumerate() { + if !seen.insert((track.bone_hash, track.kind_hash)) { + continue; + } + tracks.push(*track); + let value = |f: usize| { + let time = duration * f as f32 / (frames - 1).max(1) as f32; + a.value(t, a.frame_at(layer.start + time * layer.rate)).unwrap_or_default() + }; + values.push((0..frames).map(value).collect()); + } + } + Ok(Animation::from_frames(frames, duration, tracks, values)) +} + +/// Parses a clip dictionary. +pub fn parse(res: &Resource) -> Result { + let root = Resource::ROOT; + if res.u64(root)? != 0 || res.string(res.u64(root + 0x38)?)?.is_empty() { + return Err(bad("not a GTA VI clip dictionary")); + } + let mut stored: Vec = Vec::new(); + let mut by_pointer: HashMap = HashMap::new(); + let dicts = res.u64(root + 0x70)?; + for d in 0..u64::from(res.u16(root + 0x78)?) { + let dict = res.u64(dicts + d * 16)?; + for at in map_objects(res, res.u64(dict + 0x48)?, u64::from(res.u16(dict + 0x50)?))? { + if let std::collections::hash_map::Entry::Vacant(e) = by_pointer.entry(at) { + e.insert(stored.len()); + stored.push(read_animation(res, at)?); + } + } + } + + let mut out = ClipDictionary::default(); + // Where an animation, or a set of layers, is in `out`. + let mut placed: HashMap, usize> = HashMap::new(); + let mut used = vec![false; stored.len()]; + for clip in map_objects(res, res.u64(root + 0x48)?, u64::from(res.u16(root + 0x50)?))? { + let name = clip_name(res, clip + 0x28)?; + let kind = res.u32(clip + 0x20)?; + if kind != CLIP_PARTS { + return Err(bad(format!("{name}: a clip of unknown kind {kind}"))); + } + let list = res.u64(clip + 0x68)?; + let mut parts = Vec::new(); + for p in 0..u64::from(res.u16(clip + 0x70)?) { + let part = list + p * PART_SIZE; + let (layers_at, count) = (res.u64(part)?, u64::from(res.u16(part + 8)?)); + let duration = float(res, part + 0x10)?; + let mut layers = Vec::new(); + for l in 0..count { + let at = layers_at + l * LAYER_SIZE; + let Some(&animation) = by_pointer.get(&res.u64(at)?) else { + return Err(bad(format!("{name}: a layer without its animation"))); + }; + used[animation] = true; + let (start, end, rate) = (float(res, at + 0x28)?, float(res, at + 0x2C)?, float(res, at + 0x30)?); + layers.push(ClipPart { animation, start, end, rate }); + } + match layers.as_slice() { + [] => {} + [one] => { + let key = vec![(one.animation, [0; 3])]; + let animation = *placed.entry(key).or_insert_with(|| { + out.animations.push(stored[one.animation].clone()); + out.animations.len() - 1 + }); + parts.push(ClipPart { animation, ..one.clone() }); + } + _ => { + let key: Vec<_> = layers + .iter() + .map(|l| (l.animation, [l.start.to_bits(), l.end.to_bits(), l.rate.to_bits()])) + .collect(); + let animation = match placed.get(&key) { + Some(&i) => i, + None => { + out.animations.push(join_layers(&layers, &stored, duration)?); + placed.insert(key, out.animations.len() - 1); + out.animations.len() - 1 + } + }; + parts.push(ClipPart { animation, start: 0.0, end: duration, rate: 1.0 }); + } + } + } + let sequential = parts.len() > 1; + out.clips.push(Clip { name, parts, sequential }); + } + out.clips.sort_by(|a, b| a.name.cmp(&b.name)); + // Animations no clip plays. + out.animations.extend(stored.into_iter().zip(used).filter(|(_, used)| !used).map(|(a, _)| a)); + Ok(out) +} + +#[cfg(test)] +mod tests { + use super::*; + use rage_core::hash::joaat; + + const BASE: u64 = 0x5000_0000; + + fn put(m: &mut [u8], at: usize, v: &[u8]) { + m[at..at + v.len()].copy_from_slice(v); + } + + fn pointer(m: &mut [u8], at: usize, to: usize) { + put(m, at, &(BASE + to as u64).to_le_bytes()); + } + + fn floats(m: &mut [u8], at: usize, v: &[f32]) { + for (i, x) in v.iter().enumerate() { + put(m, at + i * 4, &x.to_le_bytes()); + } + } + + /// An animation of `frames` frames at `at`, its block and tracks behind it: + /// the rotation of the bone `bone`: x static, y from 0 in steps of 0.1 + /// (4 bits), z static, w made from them. + fn animation(m: &mut [u8], at: usize, bone: &str, frames: u16, duration: f32) { + let (list, block, tracks) = (at + 0x80, at + 0x90, at + 0x140); + put(m, at + 0x24, &frames.to_le_bytes()); + floats(m, at + 0x28, &[duration]); + pointer(m, at + 0x50, list); + put(m, at + 0x58, &[1]); + pointer(m, at + 0x60, tracks); + put(m, at + 0x68, &[1]); + pointer(m, list, block); + put(m, tracks, &joaat(bone).to_le_bytes()); + put(m, tracks + 4, &BONE_ROTATION.to_le_bytes()); + // Parameters: two static floats, a quantized one. + let params = 4 + 4 + 12; + let frame_bytes = usize::from(frames) * 4; + let items = params + frame_bytes + 22; + let len = items + 3 * 8; + put(m, block + 4, &(len as u32).to_le_bytes()); + put(m, block + 12, &(params as u32).to_le_bytes()); + put(m, block + 0x16, &frames.to_le_bytes()); + put(m, block + 0x18, &[4]); + put(m, block + 0x1C, &[4]); + put(m, block + 0x1E, &[11]); + let data = block + 0x20; + floats(m, data, &[0.0, 0.0]); + put(m, data + 8, &[4]); + floats(m, data + 12, &[0.1, 0.0]); + for f in 0..usize::from(frames) { + put(m, data + params + f * 4, &[f as u8]); + } + for (kind, n) in [(2, 2u8), (4, 1), (7, 1)] { + put(m, data + params + frame_bytes + kind * 2, &[n]); + } + // Items: track 0, components 0 and 2; component 1; w made. + put(m, data + items, &[0, 0, 2]); + put(m, data + items + 8, &[1]); + put(m, data + items + 16, &[3]); + } + + /// A dictionary with two animations and a clip of both as layers. + fn dictionary() -> Resource { + let mut m = vec![0u8; 0x800]; + pointer(&mut m, 0x38, 0x100); + put(&mut m, 0x100, b"test@dictionary\0"); + pointer(&mut m, 0x48, 0x120); // clip buckets + put(&mut m, 0x50, &[1]); + pointer(&mut m, 0x70, 0x130); // animation dictionaries + put(&mut m, 0x78, &[1]); + pointer(&mut m, 0x120, 0x140); // bucket -> entry -> clip + pointer(&mut m, 0x148, 0x180); + pointer(&mut m, 0x130, 0x200); + pointer(&mut m, 0x248, 0x260); + put(&mut m, 0x250, &[1]); + pointer(&mut m, 0x260, 0x270); // bucket -> two entries + pointer(&mut m, 0x278, 0x400); + pointer(&mut m, 0x280, 0x290); + pointer(&mut m, 0x298, 0x600); + put(&mut m, 0x180 + 0x20, &[2]); + put(&mut m, 0x180 + 0x28, b"pack:/sit.clip\0"); + pointer(&mut m, 0x180 + 0x68, 0x2B0); + put(&mut m, 0x180 + 0x70, &[1]); + // The part: two layers, 0.2 s; the second runs at half the rate. + pointer(&mut m, 0x2B0, 0x2D0); + put(&mut m, 0x2B8, &[2]); + floats(&mut m, 0x2C0, &[0.2]); + pointer(&mut m, 0x2D0, 0x400); + floats(&mut m, 0x2D0 + 0x28, &[0.2, 0.4, 1.0]); + pointer(&mut m, 0x308, 0x600); + floats(&mut m, 0x308 + 0x28, &[0.0, 0.2, 1.0]); + animation(&mut m, 0x400, "SKEL_ROOT", 5, 0.4); + animation(&mut m, 0x600, "SKEL_HEAD", 2, 0.2); + Resource { version: 0, system: m, graphics: Vec::new() } + } + + #[test] + fn joins_the_layers_of_a_clip() { + let dict = parse(&dictionary()).unwrap(); + let clip = &dict.clips[0]; + assert_eq!((clip.name.as_str(), clip.parts.len(), dict.animations.len()), ("sit", 1, 1)); + assert!((clip.duration() - 0.2).abs() < 1e-6); + let a = &dict.animations[0]; + assert_eq!(a.frames, 3); + let bones: Vec = a.tracks.iter().map(|t| t.bone_hash).collect(); + assert_eq!(bones, [joaat("skel_root"), joaat("skel_head")]); + assert!(a.tracks.iter().all(|t| (t.track, t.format) == (TRACK_BONE_ROTATION, 1))); + // The first layer starts at 0.2 s: frames 2 to 4; the second goes + // from 0 to 0.1 in three frames instead of two. + for (t, f, y) in [(0, 0, 0.2f32), (0, 1, 0.3), (0, 2, 0.4), (1, 0, 0.0), (1, 1, 0.05), (1, 2, 0.1)] { + let q = a.value(t, f as f32).unwrap(); + assert!((q[1] - y).abs() < 1e-3, "track {t} frame {f}: {q:?}"); + assert!((q.iter().map(|c| c * c).sum::() - 1.0).abs() < 1e-5); + } + } + + #[test] + fn names_by_pointer_or_in_place() { + let mut res = dictionary(); + pointer(&mut res.system, 0x180 + 0x28, 0x340); + put(&mut res.system, 0x340, b"pack:/a_name_too_long_to_fit_in.clip\0"); + assert_eq!(parse(&res).unwrap().clips[0].name, "a_name_too_long_to_fit_in"); + } + + #[test] + fn refuses_what_does_not_add_up() { + let broken = |at: usize, v: &[u8]| { + let mut res = dictionary(); + put(&mut res.system, at, v); + parse(&res).is_err() + }; + // A clip of another kind, a block of other channel kinds, another + // frame length, frames that do not add up, a track without channels. + assert!(broken(0x1A0, &[1])); + assert!(broken(0x400 + 0x90 + 0x1E, &[10])); + assert!(broken(0x400 + 0x90 + 0x18, &[8])); + assert!(broken(0x400 + 0x24, &[6])); + assert!(broken(0x400 + 0x68, &[2])); + // A track of an unknown format, a layer of an animation not there. + assert!(broken(0x400 + 0x140 + 8, &[7])); + assert!(broken(0x2D0, &[0x10])); + assert!(parse(&Resource { version: 0, system: vec![0; 0x100], graphics: Vec::new() }).is_err()); + } +} diff --git a/crates/rage-formats/src/drawable.rs b/crates/rage-formats/src/drawable.rs index 09d3d33..041f149 100644 --- a/crates/rage-formats/src/drawable.rs +++ b/crates/rage-formats/src/drawable.rs @@ -98,6 +98,11 @@ impl Skeleton { self.bones.iter().position(|b| b.tag == tag) } + /// The bone whose name has this hash (GTA VI's animations name bones so). + pub fn find_hash(&self, hash: u32) -> Option { + self.bones.iter().position(|b| rage_core::hash::joaat(&b.name) == hash) + } + pub fn find_name(&self, name: &str) -> Option { self.bones.iter().position(|b| b.name.eq_ignore_ascii_case(name)) } diff --git a/crates/rage-formats/src/drawable6.rs b/crates/rage-formats/src/drawable6.rs index 4718920..9e19f7a 100644 --- a/crates/rage-formats/src/drawable6.rs +++ b/crates/rage-formats/src/drawable6.rs @@ -15,8 +15,9 @@ //! //! A level of detail lists *models* (pointers, count at 8); a model lists //! *geometries* (pointers at 8, count at 16) with their bounds (24) and -//! shaders (32, a 16-bit index each). A geometry has a vertex buffer (8) and, -//! through a descriptor (64), an index buffer. +//! shaders (32, a 16-bit index each) and the number of bones it was made for +//! (20). A geometry has a vertex buffer (8) and, through a descriptor (64), an +//! index buffer. //! //! A buffer says how many elements of how many bytes it has (8, 12) and //! where they are in the graphics part (24). The vertex buffer's format (64) @@ -28,6 +29,9 @@ //! - Positions (part 0): three floats, or 64 bits of fixed point (24, 24 //! and 16 bits) with a bias and a scale in the buffer's first bytes and an //! order of the axes. +//! - Skinning: up to eight weights of 8 bits (parts 16 and 17) with the +//! numbers of their bones (20 and 21, 8 bits each), or one bone without a +//! weight. Of the weights the four largest are kept. //! - Texture coordinates (part 28): two floats, or two 16-bit numbers with a //! scale. //! @@ -38,8 +42,15 @@ //! A shader names its textures by keys into the texture pools //! ([`crate::ttpf`]); of those, the one for the base colour is read. //! -//! Not read: the other textures of materials, skeletons and skinning, the -//! lower levels of detail. +//! A drawable's skeleton (24) has its bones at 40 and their number at 108. A +//! bone has 80 bytes: rotation, translation (16), the hash of its name (28), +//! scale (32), its name (48), the next sibling and the parent (68, 70, 16 bits +//! each, -1 for none), its number (72) and its tag (74). +//! +//! Not read: the other textures of materials, the lower levels of detail, +//! which bone meshes without bone numbers belong to, and the skinning of the +//! parts of people and animals (made for other bones than the part's own +//! skeleton has, some with bone numbers of 32 bits). //! //! The layout is the one found by the rpf9-explorer project //! (), whose decoder was read to @@ -47,7 +58,7 @@ use rage_core::bytes::LeRead; -use crate::drawable::{Drawable, Mesh, Shader}; +use crate::drawable::{Bone, Drawable, Mesh, Shader, Skeleton}; #[derive(Debug, thiserror::Error, PartialEq, Eq)] #[non_exhaustive] @@ -74,7 +85,11 @@ const MAX_VERTICES: usize = 1_000_000; const MAX_MESHES: usize = 1024; /// Slots of the vertex format. const POSITION: usize = 0; +const WEIGHTS: [usize; 2] = [16, 17]; +const BONES: [usize; 2] = [20, 21]; const TEXCOORD: usize = 28; +/// Most bones a skeleton has. +const MAX_BONES: usize = 4096; /// The parameters of shaders that hold the base colour, the best first: /// `diffusetex`, `diffusetexture`, and the first layer of the layered ones @@ -233,6 +248,8 @@ impl<'a> Reader<'a> { return Err(bad("an impossible number of models")); } let list = self.s(lod, models * 8)?; + let skeleton = self.skeleton(at); + let bones = skeleton.as_ref().map_or(0, |s| s.bones.len()); let mut meshes = Vec::new(); for m in 0..models { let model = self.s(list + m * 8, 56)?; @@ -242,8 +259,10 @@ impl<'a> Reader<'a> { } let geometries = self.s(model + 8, count * 8)?; let shaders = self.s(model + 32, count * 2).ok(); + // A model made for other bones than the skeleton's is not skinned. + let bones = if self.u16(model + 20)? == bones { bones } else { 0 }; for g in 0..count { - let mut mesh = self.mesh(self.s(geometries + g * 8, 160)?)?; + let mut mesh = self.mesh(self.s(geometries + g * 8, 160)?, bones)?; mesh.shader = shaders.and_then(|s| self.sys.u16_at(s + g * 2)).unwrap_or(0); meshes.push(mesh); } @@ -255,10 +274,39 @@ impl<'a> Reader<'a> { textures: None, bounds_min: bounds(48)?, bounds_max: bounds(64)?, - skeleton: None, + skeleton, }) } + /// A drawable's skeleton; `None` if it has none or it does not make sense. + fn skeleton(&self, drawable: usize) -> Option { + let at = self.s(drawable + 24, 112).ok()?; + let count = self.u16(at + 108).ok().filter(|n| (1..=MAX_BONES).contains(n))?; + let list = self.s(at + 40, count * 80).ok()?; + let bones = (0..count) + .map(|i| { + let bone = list + i * 80; + let parent = self.sys.u16_at(bone + 70)? as i16; + let turn = vec3(self.sys, bone)?; + let w = f32::from_bits(self.sys.u32_at(bone + 12)?); + let length = turn.iter().map(|v| v * v).sum::() + w * w; + // Parents come first; a rotation is a unit quaternion. + if i32::from(parent) >= i as i32 || parent < -1 || !(0.99..1.01).contains(&length) { + return None; + } + Some(Bone { + name: self.name(bone + 48).ok()?, + tag: self.sys.u16_at(bone + 74)?, + parent, + translation: vec3(self.sys, bone + 16)?, + rotation: [turn[0], turn[1], turn[2], w], + scale: vec3(self.sys, bone + 32)?, + }) + }) + .collect::>>()?; + Some(Skeleton { bones }) + } + /// The key of the texture a shader binds to one of the parameters for /// the base colour. A shader (64 bytes) has its textures at 16 and, at /// 32, counts and its parameters: 8 bytes each from 8 on, the name hash @@ -306,7 +354,8 @@ impl<'a> Reader<'a> { .collect() } - fn mesh(&self, geometry: usize) -> Result { + /// A geometry of a drawable with `bones` bones. + fn mesh(&self, geometry: usize, bones: usize) -> Result { let vb = self.s(geometry + 8, 80)?; let format = self.s(vb + 64, 320)?; let flags = self.u32(format + 0x138)?; @@ -375,6 +424,38 @@ impl<'a> Reader<'a> { _ => Vec::new(), }; + let bytes = |slot: usize, size: usize, encoding: u8| -> Option<&[u8]> { + let (offset, own_size, own_encoding) = part(slot); + let at = within(offset, size).filter(|_| (usize::from(own_size), own_encoding) == (size, encoding))?; + data.get(at..at + vertices * size) + }; + let skinning = |i: usize| -> Option<([u16; 4], [f32; 4])> { + if let Some(single) = bytes(BONES[0], 1, 62) { + return Some(([u16::from(single[i]), 0, 0, 0], [1.0, 0.0, 0.0, 0.0])); + } + let mut found: Vec<(u8, u8)> = Vec::with_capacity(8); + for (weights, numbers) in WEIGHTS.into_iter().zip(BONES) { + if let (Some(w), Some(n)) = (bytes(weights, 4, 28), bytes(numbers, 4, 30)) { + found.extend((0..4).map(|k| (w[i * 4 + k], n[i * 4 + k]))); + } + } + found.sort_by_key(|(w, _)| std::cmp::Reverse(*w)); + let (mut numbers, mut weights) = ([0; 4], [0.0; 4]); + for (k, (w, n)) in found.into_iter().filter(|(w, _)| *w > 0).take(4).enumerate() { + numbers[k] = u16::from(n); + weights[k] = f32::from(w) / 255.0; + } + let total: f32 = weights.iter().sum(); + (total > 0.0).then(|| (numbers, weights.map(|w| w / total))) + }; + // All vertices, with bones the skeleton has, or none. + let (bone_indices, bone_weights) = (0..vertices) + .map(|i| skinning(i).filter(|(n, _)| n.iter().all(|n| usize::from(*n) < bones))) + .collect::>>() + .unwrap_or_default() + .into_iter() + .unzip(); + let descriptor = self.s(geometry + 64, 16)?; let (index, stride) = self.buffer(self.s(descriptor, 64)?)?; if stride != 4 { @@ -382,7 +463,7 @@ impl<'a> Reader<'a> { } let indices = clusters(index, vertices)?; let normals = smooth_normals(&positions, &indices); - Ok(Mesh { positions, normals, uvs, indices, ..Default::default() }) + Ok(Mesh { positions, normals, uvs, indices, bone_indices, bone_weights, ..Default::default() }) } } @@ -590,6 +671,61 @@ mod tests { assert_eq!(name(&s[..0x400]), None); } + #[test] + fn reads_the_skeleton_and_skinning() { + let (mut s, mut g) = resource(); + s.resize(0xA00, 0); + g.resize(0x300, 0); + let (skeleton, bones, names) = (0x800, 0x880, 0x960); + pointer(&mut s, 24, SYSTEM, skeleton); + pointer(&mut s, skeleton + 40, SYSTEM, bones); + put(&mut s, skeleton + 108, &[2]); + for i in 0..2usize { + let at = bones + i * 80; + put(&mut s, at + 12, &1.0f32.to_le_bytes()); + put(&mut s, at + 16, &(i as f32).to_le_bytes()); + for k in 0..3 { + put(&mut s, at + 32 + k * 4, &1.0f32.to_le_bytes()); + } + pointer(&mut s, at + 48, SYSTEM, names + i * 8); + put(&mut s, at + 70, &(i as i16 - 1).to_le_bytes()); + put(&mut s, at + 74, &[7 + i as u8]); + } + put(&mut s, names, b"root\0"); + put(&mut s, names + 8, b"tip\0"); + // Weights at 0x200 and bone numbers at 0x210 of the graphics part. + put(&mut s, 0x1B0 + 20, &[2]); + put(&mut s, 0x308, &0x300u32.to_le_bytes()); + let format = 0x380; + for (slot, offset, encoding) in [(16, 0x200u32, 28), (20, 0x210, 30)] { + put(&mut s, format + slot * 4, &offset.to_le_bytes()); + s[format + 0xD0 + slot] = 4; + s[format + 0x104 + slot] = encoding; + } + for i in 0..4 { + put(&mut g, 0x200 + i * 4, &[51, 204, 0, 0]); + put(&mut g, 0x210 + i * 4, &[0, 1, 9, 9]); + } + let d = &parse(&s, &g).unwrap()[0]; + let skeleton = d.skeleton.as_ref().unwrap(); + let found: Vec<_> = skeleton.bones.iter().map(|b| (b.name.as_str(), b.parent, b.tag)).collect(); + assert_eq!(found, [("root", -1, 7), ("tip", 0, 8)]); + assert_eq!(skeleton.bones[1].translation, [1.0, 0.0, 0.0]); + assert_eq!(skeleton.find_hash(rage_core::hash::joaat("TIP")), Some(1)); + let mesh = &d.meshes[0]; + assert_eq!((mesh.bone_indices[3], mesh.bone_weights[3]), ([1, 0, 0, 0], [0.8, 0.2, 0.0, 0.0])); + // A bone the skeleton does not have: not skinned at all. + g[0x214] = 2; + assert!(parse(&s, &g).unwrap()[0].meshes[0].bone_indices.is_empty()); + // A model for another number of bones. + g[0x214] = 1; + s[0x1B0 + 20] = 3; + assert!(parse(&s, &g).unwrap()[0].meshes[0].bone_indices.is_empty()); + // A parent behind its child: no skeleton. + s[bones + 70] = 1; + assert!(parse(&s, &g).unwrap()[0].skeleton.is_none()); + } + #[test] fn says_when_graphics_data_is_missing() { let (s, g) = resource(); diff --git a/crates/rage-formats/src/lib.rs b/crates/rage-formats/src/lib.rs index 4461643..307eaf7 100644 --- a/crates/rage-formats/src/lib.rs +++ b/crates/rage-formats/src/lib.rs @@ -10,6 +10,7 @@ pub mod awc; pub mod bcpack; pub mod clip; +pub mod clip6; pub mod dds; pub mod drawable; pub mod drawable6; diff --git a/crates/rage-formats/src/wad.rs b/crates/rage-formats/src/wad.rs index 4e21b4b..346b270 100644 --- a/crates/rage-formats/src/wad.rs +++ b/crates/rage-formats/src/wad.rs @@ -152,8 +152,8 @@ fn track_values(res: &Resource, track: u64, frames: usize) -> Result BoneTrack { bone, format: 0, track: TRACK_CAMERA_FOV }, - _ => BoneTrack { bone, format: quat as u8, track: kind }, + KIND_CAMERA_FOV => BoneTrack { bone, format: 0, track: TRACK_CAMERA_FOV, ..Default::default() }, + _ => BoneTrack { bone, format: quat as u8, track: kind, ..Default::default() }, }; Ok(Some((track, values))) } diff --git a/site/content/cli.md b/site/content/cli.md index a4bb7b4..ac06335 100644 --- a/site/content/cli.md +++ b/site/content/cli.md @@ -80,6 +80,7 @@ openrage model …/adder.yft --render adder.png [--yaw 1.2] # software-rend openrage export-openformats …/prop_x.ydr -o out/ # OpenIV openFormats: .odr/.oft/.odd/.otd + .mesh, .skel, .dds openrage audio x64/audio/sfx/RADIO_02_POP.rpf/alright.awc --export out/ # sounds → .wav openrage clips x64c.rpf/anim/ingame/clip_move_.rpf/move_m@generic.ycd # clips of a .ycd +openrage clips …/clip_car.rpf/gameplay@vehicles@….#cd # clips of a GTA VI .#cd openrage model …/a_m_y_hipster_01.ydd --render pose.png --anim "…/move_m@generic.ycd:walk@0.5" openrage model …/csb_bogdan.ydd --render pose.png --anim "…/cuts_sil.rpf/sil_int.cut:csb_bogdan_dual@75" # cutscene pose openrage xml …/ufo.ymap [-o ufo.ymap.xml] # metadata (.ymap/.ytyp/.ymt/.ymf/.cut/.pso) → XML From b75eff7ab0f73a369fad99bb58f94f779567513a Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 06:22:16 +0100 Subject: [PATCH 15/31] Order modules --- crates/rage-formats/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rage-formats/src/lib.rs b/crates/rage-formats/src/lib.rs index f6ca604..98b6d89 100644 --- a/crates/rage-formats/src/lib.rs +++ b/crates/rage-formats/src/lib.rs @@ -9,8 +9,8 @@ pub mod awc; pub mod bcpack; -pub mod bn6; pub mod bink2; +pub mod bn6; pub mod clip; pub mod clip6; pub mod dds; From 45ec61637b764a7520fcc1b972bdffcc3bba9548 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 06:28:06 +0100 Subject: [PATCH 16/31] Search index and GTA VI keys use threads of their own Co-Authored-By: Claude Opus 5.5 --- crates/rage-index/src/update.rs | 33 +++++++++++++++++++----------- crates/rage-rpf/src/rpf9_native.rs | 11 ++++++++-- 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/crates/rage-index/src/update.rs b/crates/rage-index/src/update.rs index 0cbc859..33d4065 100644 --- a/crates/rage-index/src/update.rs +++ b/crates/rage-index/src/update.rs @@ -544,18 +544,27 @@ impl Index { let conn = &mut self.conn; let result: Result<(), IndexError> = std::thread::scope(|scope| { scope.spawn(move || { - todo.par_iter().for_each_with(sender, |s, archive| { - if cancel.load(Ordering::Relaxed) { - return; - } - let s = &*s; - let part = |batch| { - let _ = s.send(batch); - }; - if let Some(batch) = read_archive(archive, keys.clone(), cancel, &part) { - part(batch); - } - }); + let read = move || { + todo.par_iter().for_each_with(sender, |s, archive| { + if cancel.load(Ordering::Relaxed) { + return; + } + let s = &*s; + let part = |batch| { + let _ = s.send(batch); + }; + if let Some(batch) = read_archive(archive, keys.clone(), cancel, &part) { + part(batch); + } + }); + }; + // Threads of its own: what is opened meanwhile does not wait + // behind the archives, and keeps some processors. + let threads = std::thread::available_parallelism().map_or(4, |n| (n.get() * 3 / 4).max(1)); + match rayon::ThreadPoolBuilder::new().num_threads(threads).build() { + Ok(pool) => pool.install(read), + Err(_) => read(), + } }); for batch in receiver { let tx = conn.transaction()?; diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs index 3f7183e..f7d9291 100644 --- a/crates/rage-rpf/src/rpf9_native.rs +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -43,8 +43,15 @@ pub(crate) fn materials(path: &Path) -> Option> { drop(bytes); let nameless = Arc::new(Materials { cipher, names: Default::default() }); let mut strings = Vec::new(); - for archive in ["common.rpf", "data.rpf"].map(|name| executable.with_file_name(name)) { - strings.extend(NativeArchive::strings(&archive, &nameless).unwrap_or_default()); + let mut read = || { + for archive in ["common.rpf", "data.rpf"].map(|name| executable.with_file_name(name)) { + strings.extend(NativeArchive::strings(&archive, &nameless).unwrap_or_default()); + } + }; + // Threads of its own: the shared ones may all be waiting for this. + match rayon::ThreadPoolBuilder::new().build() { + Ok(pool) => pool.install(read), + Err(_) => read(), } strings.iter().for_each(|text| names.add(text)); let cipher = Arc::into_inner(nameless)?.cipher; From dadf4357cf08847b5e94cb5269d558f043967b0a Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 06:28:12 +0100 Subject: [PATCH 17/31] README: what GTA VI support covers Co-Authored-By: Claude Opus 5.5 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 200a012..85d12ca 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ OpenIV's last release was in January 2022. OpenRAGE picks up where it left off a - **Mods, safely:** changes go to OpenIV's `mods` folder, never into your game files; every change and every `.oiv` package can be undone. - **Models in:** replace props and vehicle bodies of GTA V Enhanced with your own OBJ models; doors and bonnets keep moving (preview). - **ASI mods:** see and switch GTA V's ASI mods, and on Linux let Proton load the ASI loader with one click. -- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; preview supported models and texture pools from the Scarlett build, list clip dictionaries and play them on vehicles, weapons and props with skeletons. +- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; preview models, collisions, navigation meshes, textures, metadata and text tables, play sounds and Bink 2 videos, search names and text, list clip dictionaries and play them on vehicles, weapons and props with skeletons. - **Tested on the whole game:** every format is checked against every file of GTA V ([details](https://two-play.github.io/openrage/#status)).
@@ -62,7 +62,7 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p |---|---|---| | **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | | **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) | -| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`; people and animals are not skinned) · texture pools (`.ttpf`) · text, audio containers and Bink 2 video files | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`; people and animals are not skinned) · texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) · collisions (`.#bn`) · navigation meshes (`.#nv`) · metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt`) · audio · Bink 2 videos | | **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) From 2e357d7d07b45c59d0a2a33cf51c48453102d912 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 06:49:21 +0100 Subject: [PATCH 18/31] Fix the findings of the review: GTA VI XML, video shape, stuck previews, limits for damaged files Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/rpf9.rs | 20 +++++++++++++++----- crates/openrage-gui/src/callbacks.rs | 12 ++++++++++++ crates/openrage-gui/src/docs.rs | 4 ++-- crates/openrage-gui/src/model_ui.rs | 7 ++----- crates/openrage-gui/src/navigate.rs | 12 ++++++++++++ crates/openrage-gui/src/preview.rs | 2 ++ crates/openrage-gui/src/sound_ui.rs | 4 +++- crates/openrage-gui/src/video_ui.rs | 12 ++++++++---- crates/openrage-gui/src/viewer.rs | 5 +++-- crates/openrage-gui/ui/app.slint | 2 +- crates/rage-formats/src/bink2/mod.rs | 4 +++- crates/rage-formats/src/bn6.rs | 9 ++++++++- crates/rage-formats/src/clip6.rs | 19 ++++++++++++++++++- crates/rage-formats/src/td6.rs | 7 ++++++- crates/rage-rpf/src/rpf9.rs | 7 +++++++ crates/rage-rpf/src/rpf9_native.rs | 22 +++++++++++++++------- 16 files changed, 117 insertions(+), 31 deletions(-) diff --git a/crates/openrage-app/src/rpf9.rs b/crates/openrage-app/src/rpf9.rs index 3afe4e3..1e2b988 100644 --- a/crates/openrage-app/src/rpf9.rs +++ b/crates/openrage-app/src/rpf9.rs @@ -375,7 +375,11 @@ fn extract_entry( progress: &mut dyn FnMut(&ExtractSummary, &str), summary: &mut ExtractSummary, ) -> Result<()> { - let target = out.join(vfs::safe_relative_path(rel).with_context(|| format!("unsafe path {rel}"))?); + let Some(path) = vfs::safe_relative_path(rel) else { + summary.failures.push(format!("unsafe path {rel}")); + return Ok(()); + }; + let target = out.join(path); if expand && rpf.is_archive(entry) { match rpf.open_child(entry) { Ok(child) => return extract_dir(&child, "", &target, expand, cancel, progress, summary), @@ -383,10 +387,16 @@ fn extract_entry( } return Ok(()); } - if let Some(parent) = target.parent() { - fs::create_dir_all(parent)?; - } - let mut writer = BufWriter::new(fs::File::create(&target)?); + let parent = target.parent().map_or(Ok(()), fs::create_dir_all); + let mut writer = match parent.and_then(|()| fs::File::create(&target)) { + Ok(file) => BufWriter::new(file), + // A full disk stops everything, another bad file only itself. + Err(e) if e.kind() == std::io::ErrorKind::StorageFull => return Err(e.into()), + Err(e) => { + summary.failures.push(format!("{}: {e}", target.display())); + return Ok(()); + } + }; match rpf.copy_to(entry, &mut writer).and_then(|n| Ok(writer.flush().map(|()| n)?)) { Ok(bytes) => { summary.files += 1; diff --git a/crates/openrage-gui/src/callbacks.rs b/crates/openrage-gui/src/callbacks.rs index b746b67..f198422 100644 --- a/crates/openrage-gui/src/callbacks.rs +++ b/crates/openrage-gui/src/callbacks.rs @@ -95,6 +95,7 @@ fn wire_files(ui: &AppWindow) { if ui.get_file_selected() == i && with_app(|a| a.selected.is_some()) { return; } + with_app(|a| a.play_when_ready = false); select_row(ui, i as usize) }) }); @@ -203,6 +204,17 @@ fn wire_files(ui: &AppWindow) { with_app(|a| a.play_when_ready = true); return; } + // A video that cannot be shown here: perhaps elsewhere. + let video = with_app(|a| { + let listing = a.listing.as_ref()?; + let item = &listing.items[*a.visible.get(i as usize)?]; + browser::is_video(&item.name) + .then(|| item.vpath.clone().unwrap_or_else(|| browser::join(&listing.vpath, &item.name))) + }); + if let Some(vpath) = video { + open_with_system(ui, vpath); + return; + } } let is_ycd = with_app(|a| { let listing = a.listing.as_ref()?; diff --git a/crates/openrage-gui/src/docs.rs b/crates/openrage-gui/src/docs.rs index de5bcfb..e163d4a 100644 --- a/crates/openrage-gui/src/docs.rs +++ b/crates/openrage-gui/src/docs.rs @@ -169,10 +169,10 @@ pub(crate) fn open_script_view(ui: &AppWindow, vpath: String) { /// Reads a metadata file and converts it to XML. pub(crate) fn read_xml(ui: &AppWindow, vpath: &str) -> anyhow::Result { - // RDR2 keeps much of its metadata as resources, which the game's own + // RDR2 and GTA VI keep much of their metadata as resources, which the game's own // resolution reads; GTA V files are read like any other file. if let Some((dir, keys)) = with_app(|a| a.game_dir.clone().map(|d| (d, a.keys.clone()))) - && is_rdr2_dir(&dir) + && (is_rdr2_dir(&dir) || detect::is_gta6_dir(&dir)) { return openrage_app::metadata::load(&dir, keys, vpath); } diff --git a/crates/openrage-gui/src/model_ui.rs b/crates/openrage-gui/src/model_ui.rs index a80c488..ddd1a93 100644 --- a/crates/openrage-gui/src/model_ui.rs +++ b/crates/openrage-gui/src/model_ui.rs @@ -490,8 +490,7 @@ pub(crate) fn is_clip_dictionary(item: &Item) -> bool { pub(crate) fn show_clip_dictionary(ui: &AppWindow, vpath: String, mut info: Meta) { match load_clip_dictionary(&vpath) { Ok(dict) if vpath.to_ascii_lowercase().ends_with(".#cd") => { - // Bones are named by hash there and there is no search index, so - // no models are looked for. + // Bones are named by hash there, so no models are looked for. info.push(kv("Clips", dict.clips.len())); for c in dict.clips.iter().take(40) { let animation = c.parts.first().and_then(|p| dict.animations.get(p.animation)); @@ -502,9 +501,7 @@ pub(crate) fn show_clip_dictionary(ui: &AppWindow, vpath: String, mut info: Meta if dict.clips.len() > 40 { info.push(note(format!("… and {} more", dict.clips.len() - 40))); } - info.push(note( - "To play it on a model with a skeleton, open the model and enter this file's path in its animation search.", - )); + info.push(note("To play it on a model with a skeleton, open the model and search for this file there.")); set_meta(ui, &info); } Ok(dict) => { diff --git a/crates/openrage-gui/src/navigate.rs b/crates/openrage-gui/src/navigate.rs index 87f846d..a7df3c8 100644 --- a/crates/openrage-gui/src/navigate.rs +++ b/crates/openrage-gui/src/navigate.rs @@ -522,6 +522,18 @@ pub(crate) fn set_meta(ui: &AppWindow, meta: &Meta) { pub(crate) fn show_folder_info(ui: &AppWindow) { // Read before `with_app` below: it would borrow the app state twice. let overlay = overlay_name(); + // A video does not go on without its picture. + if ui.get_preview_loading() || with_app(|a| a.video.is_some()) { + with_app(|a| a.preview_generation.fetch_add(1, Ordering::SeqCst)); + ui.set_preview_loading(false); + stop_sound(ui); + ui.set_audio_mode(false); + ui.set_video_mode(false); + with_app(|a| { + a.sound = None; + a.video = None; + }); + } let info = with_app(|a| { let l = a.listing.as_ref()?; let name = location_title(l); diff --git a/crates/openrage-gui/src/preview.rs b/crates/openrage-gui/src/preview.rs index 3002eb0..14bbabf 100644 --- a/crates/openrage-gui/src/preview.rs +++ b/crates/openrage-gui/src/preview.rs @@ -161,6 +161,8 @@ pub(crate) fn select_row(ui: &AppWindow, row: usize) { info.push(kv(if is_version { "Version" } else { "Details" }, &item.info)); } set_info(ui, &item.name, &vpath, &info, badges::icon(&item.name, item.kind)); + // What was loading belongs to the row before. + ui.set_preview_loading(false); ui.set_preview_text(SharedString::new()); ui.set_has_image(false); ui.set_model_mode(false); diff --git a/crates/openrage-gui/src/sound_ui.rs b/crates/openrage-gui/src/sound_ui.rs index b890b93..1e48fa8 100644 --- a/crates/openrage-gui/src/sound_ui.rs +++ b/crates/openrage-gui/src/sound_ui.rs @@ -45,6 +45,7 @@ pub(crate) fn show_audio_container(ui: &AppWindow, vpath: String, mut info: Meta }); } Err(e) => { + with_app(|a| a.play_when_ready = false); info.push(kv("Error", format!("{e:#}"))); set_meta(ui, &info); } @@ -106,6 +107,7 @@ pub(crate) fn start_sound_preview( } } Err(e) => { + with_app(|a| a.play_when_ready = false); meta.push(kv("Error", e)); set_meta(&ui, &meta); } @@ -126,7 +128,7 @@ pub(crate) fn step_sound(ui: &AppWindow, delta: i32, play: bool) -> bool { return false; } with_app(|a| a.play_when_ready = play); - ui.invoke_select_row(target); + select_row(ui, target as usize); true } diff --git a/crates/openrage-gui/src/video_ui.rs b/crates/openrage-gui/src/video_ui.rs index c342491..d2c266e 100644 --- a/crates/openrage-gui/src/video_ui.rs +++ b/crates/openrage-gui/src/video_ui.rs @@ -53,6 +53,9 @@ fn picture(player: &Player>) -> slint::SharedPixelBuffer (Pcm, Option) { let (mut pcm, error) = match video.sound(data, 0) { @@ -60,10 +63,10 @@ fn sound(video: &bink2::Bink2, data: &[u8]) -> (Pcm, Option) { Some(Err(e)) => (Pcm { sample_rate: 8000, channels: 1, samples: Vec::new() }, Some(e.to_string())), None => (Pcm { sample_rate: 8000, channels: 1, samples: Vec::new() }, None), }; - // At most a day of silence, should the frame rate be damaged. - let secs = video.duration().min(86400.0); - let samples = (secs * f64::from(pcm.sample_rate)) as usize * pcm.channels.max(1) as usize; - pcm.samples.resize(samples.max(1), 0); + // Silence up to the end; not without limit, should the frame rate be damaged. + let samples = (video.duration() * f64::from(pcm.sample_rate)) as usize; + let samples = samples.saturating_mul(pcm.channels.max(1) as usize).min(MAX_SILENCE); + pcm.samples.resize(samples.max(pcm.samples.len()).max(1), 0); (pcm, error) } @@ -100,6 +103,7 @@ pub(crate) fn start_video_preview(ui: &AppWindow, vpath: String, info: Meta, gen let _ = weak.upgrade_in_event_loop(move |ui| { if counter.load(Ordering::SeqCst) == generation { ui.set_preview_loading(false); + with_app(|a| a.play_when_ready = false); set_meta(&ui, &meta); } }); diff --git a/crates/openrage-gui/src/viewer.rs b/crates/openrage-gui/src/viewer.rs index 5699943..e0f200b 100644 --- a/crates/openrage-gui/src/viewer.rs +++ b/crates/openrage-gui/src/viewer.rs @@ -585,13 +585,14 @@ fn render(w: &slint::Weak, state: &Rc>) { fn anim_search(w: &slint::Weak, state: &Rc>, text: &str) { let Some(win) = w.upgrade() else { return }; - // A full path (from "Copy path") opens directly: RDR2 and GTA VI have no search index. + // A full path (from "Copy path") opens directly: RDR2 has no search index. let text = text.trim(); let lower = text.to_ascii_lowercase(); let found = if text.contains('/') && (lower.ends_with(".ycd") || lower.ends_with(".#cd")) { vec![text.to_owned()] } else { - crate::find_files(text, ".ycd", 200) + let gta6 = crate::with_app(|a| a.game_dir.as_deref().is_some_and(openrage_app::detect::is_gta6_dir)); + crate::find_files(text, if gta6 { ".#cd" } else { ".ycd" }, 200) }; let rows: Vec = found .iter() diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index 4dbec53..b16bbc0 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -2686,7 +2686,7 @@ export component AppWindow inherits Window { height: parent.height - 16px - (root.video-mode ? 24px : 0px); source: root.preview-image; // A waveform spans the area, as its position line does. - image-fit: root.audio-mode ? fill : contain; + image-fit: root.audio-mode && !root.video-mode ? fill : contain; image-rendering: smooth; accessible-role: image; accessible-label: @tr("Preview of {}", root.info-title); diff --git a/crates/rage-formats/src/bink2/mod.rs b/crates/rage-formats/src/bink2/mod.rs index 5f8f84d..a65c0e8 100644 --- a/crates/rage-formats/src/bink2/mod.rs +++ b/crates/rage-formats/src/bink2/mod.rs @@ -91,7 +91,9 @@ pub fn read(data: &[u8]) -> Result { let revision = u32_at(0)?.to_le_bytes()[3]; let frames = u32_at(0x08)? as usize; let (width, height) = (u32_at(0x14)?, u32_at(0x18)?); - if width == 0 || height == 0 || width > MAX_WIDTH || u64::from(width) * u64::from(height) > MAX_PIXELS { + let coded = |side: u32| u64::from(side).next_multiple_of(32); + if width == 0 || height == 0 || width > MAX_WIDTH || height > MAX_WIDTH || coded(width) * coded(height) > MAX_PIXELS + { return bad(format!("{width} × {height} pixels")); } let fps = (u32_at(0x1C)?, u32_at(0x20)?); diff --git a/crates/rage-formats/src/bn6.rs b/crates/rage-formats/src/bn6.rs index 5dd2ed2..60ee4a6 100644 --- a/crates/rage-formats/src/bn6.rs +++ b/crates/rage-formats/src/bn6.rs @@ -23,6 +23,7 @@ use crate::ybn::MATERIAL_BASE; const SYSTEM: u64 = 0x5000_0000; const MAX_BOUNDS: usize = 100_000; +const MAX_POLYGONS: usize = 10_000_000; #[derive(Debug, thiserror::Error)] #[error("damaged or unknown collision data: {0}")] @@ -45,6 +46,8 @@ struct Reader<'a> { sys: &'a [u8], builder: Builder, stats: Stats, + /// Read so far: bounds can name the same geometry. + polygons: usize, } impl Reader<'_> { @@ -114,6 +117,10 @@ impl Reader<'_> { if vertex_count == 0 || polygon_count == 0 { return Ok(()); } + self.polygons += polygon_count; + if self.polygons > MAX_POLYGONS { + return Err(BnError("too many polygons")); + } let (quantum, centre) = (self.vec3(at + 0x90)?, self.vec3(at + 0xA0)?); let vertices_at = self.pointer(at + 0xB0, vertex_count * 6)?; let polygons = self.pointer(at + 0x88, polygon_count * 16)?; @@ -177,7 +184,7 @@ pub fn parse(system: &[u8]) -> Result<(Drawable, Stats), BnError> { if system.u64_at(0) != Some(0) || !matches!(system.get(16), Some(5 | 6)) { return Err(BnError("no collision")); } - let mut r = Reader { sys: system, builder: Builder::default(), stats: Stats::default() }; + let mut r = Reader { sys: system, builder: Builder::default(), stats: Stats::default(), polygons: 0 }; r.bound(0, &math::IDENTITY, 0)?; let mut d = Drawable { name: "collision".into(), ..Default::default() }; let (mut lo, mut hi) = ([f32::MAX; 3], [f32::MIN; 3]); diff --git a/crates/rage-formats/src/clip6.rs b/crates/rage-formats/src/clip6.rs index 4838ee7..cfa5630 100644 --- a/crates/rage-formats/src/clip6.rs +++ b/crates/rage-formats/src/clip6.rs @@ -58,6 +58,10 @@ const PART_SIZE: u64 = 0x18; const LAYER_SIZE: u64 = 0x38; /// Longest clip that is put together, in frames. const MAX_FRAMES: f32 = 1_000_000.0; +/// Where a block says how many frames it holds. +const BLOCK_FRAMES: u64 = 0x16; +/// Frames times tracks of a clip. +const MAX_VALUES: usize = 1 << 24; /// What a track animates, by its name's hash (`None` when the name is not known). pub fn kind_name(hash: u32) -> Option<&'static str> { @@ -82,7 +86,7 @@ fn read_animation(res: &Resource, ptr: u64) -> Result let duration = float(res, ptr + 0x28)?; let (blocks_at, block_count) = (res.u64(ptr + 0x50)?, u64::from(res.u16(ptr + 0x58)?)); let (tracks_at, track_count) = (res.u64(ptr + 0x60)?, u64::from(res.u16(ptr + 0x68)?)); - if frames == 0 || !(0.0..1e5).contains(&duration) || block_count == 0 || block_count > 4096 { + if frames == 0 || !(0.0..1e5).contains(&duration) || block_count == 0 || block_count > 4096 || track_count > 4096 { return Err(bad("implausible animation")); } let tracks: Vec = (0..track_count) @@ -103,6 +107,15 @@ fn read_animation(res: &Resource, ptr: u64) -> Result Ok(BoneTrack { bone: 0, format, track, bone_hash: res.u32(at)?, kind_hash }) }) .collect::>()?; + // The frames a block holds are in its header; what they add up to is + // checked before any is decoded. + let mut stored = 0; + for i in 0..block_count { + stored += usize::from(res.u16(res.u64(blocks_at + i * 8)? + BLOCK_FRAMES)?); + } + if stored != frames + block_count as usize - 1 { + return Err(bad("an animation whose blocks have another number of frames")); + } let blocks = (0..block_count) .map(|i| read_block(res, res.u64(blocks_at + i * 8)?, tracks.len(), Layout::GtaVi)) .collect::, _>>()?; @@ -143,6 +156,10 @@ fn join_layers(layers: &[ClipPart], animations: &[Animation], duration: f32) -> return Err(bad("implausible clip")); } let frames = frames as usize + 1; + let count: usize = layers.iter().map(|l| animations[l.animation].tracks.len()).sum(); + if frames.saturating_mul(count) > MAX_VALUES { + return Err(bad("implausible clip")); + } let mut seen = HashSet::new(); let (mut tracks, mut values) = (Vec::new(), Vec::new()); for layer in layers { diff --git a/crates/rage-formats/src/td6.rs b/crates/rage-formats/src/td6.rs index 8c28208..b0a005f 100644 --- a/crates/rage-formats/src/td6.rs +++ b/crates/rage-formats/src/td6.rs @@ -54,11 +54,16 @@ pub fn parse(system: &[u8], graphics: &[u8]) -> Result dict.textures.push(texture), + Some(Ok(texture)) => { + left = left.checked_sub(texture.data.len()).ok_or(TdError("more textures than data"))?; + dict.textures.push(texture); + } Some(Err(reason)) => dict.errors.push(format!("{name}: {reason}")), None => dict.errors.push(format!("{name}: no such texture")), } diff --git a/crates/rage-rpf/src/rpf9.rs b/crates/rage-rpf/src/rpf9.rs index 5932388..6957dc6 100644 --- a/crates/rage-rpf/src/rpf9.rs +++ b/crates/rage-rpf/src/rpf9.rs @@ -297,6 +297,8 @@ pub struct Rpf9 { size: u64, /// Where the archive starts in the file: a nested one, inside its parent. base: u64, + /// How many archives it lies in. + depth: u8, /// The archive's own table, read on first use. native: OnceLock>>, /// Filled on first use: finding the entries means reading the archive. @@ -338,6 +340,7 @@ impl Rpf9 { header, size, base: 0, + depth: 0, native: OnceLock::new(), entries: Mutex::new(None), names: Mutex::new(None), @@ -398,6 +401,9 @@ impl Rpf9 { if !self.is_archive(entry) || entry.stored != entry.size { return Err(RpfError::NotAnArchive(display)); } + if self.depth >= crate::MAX_NESTING { + return Err(RpfError::TooDeep(display)); + } let base = self.base + entry.offset; let mut file = File::open(&self.path)?; file.seek(SeekFrom::Start(base))?; @@ -412,6 +418,7 @@ impl Rpf9 { header, size: entry.size, base, + depth: self.depth + 1, native: OnceLock::new(), entries: Mutex::new(None), names: Mutex::new(None), diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs index f7d9291..becceaf 100644 --- a/crates/rage-rpf/src/rpf9_native.rs +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -25,14 +25,24 @@ impl std::fmt::Debug for Materials { /// Reuses runtime tables, never a checked-in or on-disk key cache. pub(crate) fn materials(path: &Path) -> Option> { - static CACHE: OnceLock>>> = OnceLock::new(); + type Key = (PathBuf, u64, Option); + // `None`: not a supported build, which is not read again and again. + static CACHE: OnceLock>>>> = OnceLock::new(); let executable = path.ancestors().skip(1).take(5).map(|p| p.join("game_scarlett_master.exe")).find(|p| p.is_file())?; + let meta = std::fs::metadata(&executable).ok()?; + let key = (executable, meta.len(), meta.modified().ok()); let mut cache = CACHE.get_or_init(Default::default).lock().ok()?; - if let Some(materials) = cache.get(&executable) { - return Some(Arc::clone(materials)); + if let Some(materials) = cache.get(&key) { + return materials.clone(); } - let bytes = std::fs::read(&executable).ok()?; + let materials = load_materials(&key.0).map(Arc::new); + cache.insert(key, materials.clone()); + materials +} + +fn load_materials(executable: &Path) -> Option { + let bytes = std::fs::read(executable).ok()?; let cipher = Cipher::from_exe(&bytes)?; // Names: path strings of the executable and of the metadata in the two // archives that list most of the game's files. @@ -55,9 +65,7 @@ pub(crate) fn materials(path: &Path) -> Option> { } strings.iter().for_each(|text| names.add(text)); let cipher = Arc::into_inner(nameless)?.cipher; - let materials = Arc::new(Materials { cipher, names }); - cache.insert(executable, Arc::clone(&materials)); - Some(materials) + Some(Materials { cipher, names }) } #[derive(Debug)] From 0fbfec0bbb810b75623a6dde36127f59c9b0588b Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 14:53:28 +0100 Subject: [PATCH 19/31] Videos of every game in a player window; stop, resume and progress of the index Bink 1 (revisions f to k) is decoded, so the videos of GTA IV and V play like those of RDR2 and GTA VI; RDR2's have no names and are told by their content. A double click opens a video in a window of its own with volume, repeat and full screen. Sounds are played without a copy in memory, and the picture of a long video is there before its sound is read. The status bar shows how far the search index is and can stop it and go on. Co-Authored-By: Claude Opus 5.5 --- NOTICE.md | 15 +- README.md | 6 +- crates/openrage-app/src/media.rs | 18 +- crates/openrage-cli/src/cli.rs | 6 +- crates/openrage-cli/src/cmd/verify.rs | 8 +- crates/openrage-cli/src/cmd/view.rs | 6 +- crates/openrage-gui/src/audio.rs | 149 +++- crates/openrage-gui/src/browser.rs | 3 +- crates/openrage-gui/src/callbacks.rs | 45 +- crates/openrage-gui/src/debug.rs | 2 + crates/openrage-gui/src/main.rs | 4 +- crates/openrage-gui/src/player.rs | 264 +++++++ crates/openrage-gui/src/preview.rs | 79 +- crates/openrage-gui/src/search.rs | 46 +- crates/openrage-gui/src/video_ui.rs | 181 +++-- crates/openrage-gui/ui/app.slint | 330 ++++++++ .../rage-formats/src/{bink2 => bink}/audio.rs | 44 +- .../rage-formats/src/{bink2 => bink}/bits.rs | 2 +- .../rage-formats/src/{bink2 => bink}/mod.rs | 115 ++- crates/rage-formats/src/bink/tables1.rs | 401 ++++++++++ .../src/{bink2/tables.rs => bink/tables2.rs} | 0 crates/rage-formats/src/bink/video1.rs | 727 ++++++++++++++++++ .../src/{bink2/video.rs => bink/video2.rs} | 11 +- crates/rage-formats/src/lib.rs | 2 +- crates/rage-formats/src/media.rs | 63 +- crates/rage-index/src/update.rs | 29 +- 26 files changed, 2240 insertions(+), 316 deletions(-) create mode 100644 crates/openrage-gui/src/player.rs rename crates/rage-formats/src/{bink2 => bink}/audio.rs (92%) rename crates/rage-formats/src/{bink2 => bink}/bits.rs (99%) rename crates/rage-formats/src/{bink2 => bink}/mod.rs (74%) create mode 100644 crates/rage-formats/src/bink/tables1.rs rename crates/rage-formats/src/{bink2/tables.rs => bink/tables2.rs} (100%) create mode 100644 crates/rage-formats/src/bink/video1.rs rename crates/rage-formats/src/{bink2/video.rs => bink/video2.rs} (99%) diff --git a/NOTICE.md b/NOTICE.md index 38163f7..ed9b825 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -59,7 +59,7 @@ BSD 3-Clause licence. ## Librempeg -The Bink 2 video and audio decoder in `crates/rage-formats/src/bink2` is a port +The Bink 2 video and audio decoder in `crates/rage-formats/src/bink` is a port to Rust of the one in Librempeg (https://github.com/librempeg/librempeg; `libavcodec/bink2.c`, `bink2.h`, `bink2g.h`, `libavcodec/binkaudio.c` and `libavformat/bink.c`), which is licensed under the GNU General Public License @@ -72,6 +72,19 @@ Copyright (c) 2007-2011 Peter Ross Copyright (c) 2009 Daniel Verkamp ``` +## FFmpeg + +The Bink 1 video decoder in `crates/rage-formats/src/bink` (`video1.rs`, +`tables1.rs`) is a port to Rust of the one in FFmpeg (https://ffmpeg.org; +`libavcodec/bink.c`, `binkdata.h` and `binkdsp.c`), which is licensed under the +GNU Lesser General Public License version 2.1 or later and used here under the +GNU General Public License version 3, as section 3 of the former allows: + +``` +Copyright (c) 2009 Konstantin Shishkov +Copyright (c) 2011 Peter Ross +``` + Bink is a trademark of Epic Games Tools LLC (RAD Game Tools). OpenRAGE is not affiliated with them and contains none of their code. diff --git a/README.md b/README.md index 85d12ca..02fd8d8 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,12 @@ edit game text and install `.oiv` packages — compatible with OpenIV's `mods` f OpenIV's last release was in January 2022. OpenRAGE picks up where it left off and stays compatible with it. - **Explorer and search:** archives, even nested ones, open like folders, as a list or as icons; names, hashes and full text of the whole game in milliseconds. -- **Every major format:** textures, models, audio, animations, metadata as XML, collisions, paths, nav meshes, cutscenes, scripts, game text. +- **Every major format:** textures, models, audio, videos (Bink 1 and 2, with a player), animations, metadata as XML, collisions, paths, nav meshes, cutscenes, scripts, game text. - **Coming from OpenIV?** Your `mods` folder and `.oiv` packages work as they are ([how to switch](https://two-play.github.io/openrage/getting-started/#coming-from-openiv)). - **Mods, safely:** changes go to OpenIV's `mods` folder, never into your game files; every change and every `.oiv` package can be undone. - **Models in:** replace props and vehicle bodies of GTA V Enhanced with your own OBJ models; doors and bonnets keep moving (preview). - **ASI mods:** see and switch GTA V's ASI mods, and on Linux let Proton load the ASI loader with one click. -- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; preview models, collisions, navigation meshes, textures, metadata and text tables, play sounds and Bink 2 videos, search names and text, list clip dictionaries and play them on vehicles, weapons and props with skeletons. +- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; preview models, collisions, navigation meshes, textures, metadata and text tables, play sounds and videos, search names and text, list clip dictionaries and play them on vehicles, weapons and props with skeletons. - **Tested on the whole game:** every format is checked against every file of GTA V ([details](https://two-play.github.io/openrage/#status)).
@@ -62,7 +62,7 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p |---|---|---| | **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | | **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) | -| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`; people and animals are not skinned) · texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) · collisions (`.#bn`) · navigation meshes (`.#nv`) · metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt`) · audio · Bink 2 videos | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`; people and animals are not skinned) · texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) · collisions (`.#bn`) · navigation meshes (`.#nv`) · metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt`) · audio · videos | | **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) diff --git a/crates/openrage-app/src/media.rs b/crates/openrage-app/src/media.rs index 9bb0f9b..632805f 100644 --- a/crates/openrage-app/src/media.rs +++ b/crates/openrage-app/src/media.rs @@ -15,13 +15,12 @@ fn short_list(names: &[String]) -> String { } /// Facts about a media file, as (label, value) rows. -pub fn rows(name: &str, data: &[u8]) -> Result> { +pub fn rows(data: &[u8]) -> Result> { use rage_formats::media; - let lower = name.to_ascii_lowercase(); - Ok(if rage_formats::bink2::is_bink2(data) { - let v = rage_formats::bink2::read(data)?; + Ok(if rage_formats::bink::is_bink(data) { + let v = rage_formats::bink::read(data)?; let mut rows = vec![ - ("Format".into(), format!("Bink 2 video (KB2{})", v.revision as char)), + ("Format".into(), format!("Bink {} video, revision {}", v.version, v.revision as char)), ( "Resolution".into(), format!("{} × {}{}", v.width, v.height, if v.has_alpha() { ", with alpha" } else { "" }), @@ -36,15 +35,6 @@ pub fn rows(name: &str, data: &[u8]) -> Result> { .collect(); rows.push(("Sound".into(), if tracks.is_empty() { "none".into() } else { tracks.join("; ") })); rows - } else if lower.ends_with(".bik") { - let b = media::bink(data)?; - vec![ - ("Format".into(), format!("Bink video ({})", b.signature)), - ("Resolution".into(), format!("{} × {}", b.width, b.height)), - ("Frames".into(), format!("{} at {:.2} fps", b.frames, b.fps)), - ("Length".into(), format!("{:.1} s", b.duration())), - ("Audio tracks".into(), b.audio_tracks.to_string()), - ] } else { let g = media::gfx(data)?; vec![ diff --git a/crates/openrage-cli/src/cli.rs b/crates/openrage-cli/src/cli.rs index 561e78e..5321300 100644 --- a/crates/openrage-cli/src/cli.rs +++ b/crates/openrage-cli/src/cli.rs @@ -87,7 +87,7 @@ pub(crate) enum Command { #[arg(long, conflicts_with_all = ["textures", "models", "audio", "animations", "meta", "text", "particles", "collisions", "paths"])] scripts: bool, /// Instead of archives, read the header of every Scaleform movie (.gfx) and Bink video (.bik, .bk2), - /// and decode the first second of every .bk2. + /// and decode the first second of every video. #[arg(long, conflicts_with_all = ["textures", "models", "audio", "animations", "meta", "text", "particles", "collisions", "paths", "scripts"])] media: bool, /// Instead of archives, read every GTA IV cutscene (.cut): its sections, the clips of @@ -236,13 +236,13 @@ pub(crate) enum Command { /// Show facts about a Scaleform movie (.gfx) or a Bink video (.bik, .bk2). Media { path: String, - /// For a .bk2: write its pictures as PNG files into this directory. + /// For a Bink video: write its pictures as PNG files into this directory. #[arg(long)] frames: Option, /// Only write every n-th picture. #[arg(long, default_value_t = 1, requires = "frames")] every: usize, - /// For a .bk2: write its sound as a WAV file (the second track and on as `name.2.wav` …). + /// For a Bink video: write its sound as a WAV file (the second track and on as `name.2.wav` …). #[arg(long)] wav: Option, /// For a .gfx: write it as a Flash file (.swf) for Flash tools such as JPEXS or Ruffle. diff --git a/crates/openrage-cli/src/cmd/verify.rs b/crates/openrage-cli/src/cmd/verify.rs index 9e5d1c8..d76c4cb 100644 --- a/crates/openrage-cli/src/cmd/verify.rs +++ b/crates/openrage-cli/src/cmd/verify.rs @@ -183,18 +183,14 @@ pub(crate) fn cmd_verify_media(game_dir: &Path, within: &str, keys: Option a.read(id)?, _ => bail!("{path} is not a file"), }; - for (k, v) in openrage_app::media::rows(path, &data)? { + for (k, v) in openrage_app::media::rows(&data)? { outln!("{k:<14}{v}"); } if let Some(dir) = frames { - let mut player = rage_formats::bink2::Player::new(&data)?; + let mut player = rage_formats::bink::Player::new(&data)?; fs::create_dir_all(dir)?; let total = player.video.frames(); for i in 0..total { @@ -632,7 +632,7 @@ pub(crate) fn cmd_media( outln!("Wrote {} of {total} frames to {}", total.div_ceil(every.max(1)), dir.display()); } if let Some(out) = wav { - let video = rage_formats::bink2::read(&data)?; + let video = rage_formats::bink::read(&data)?; if video.tracks.is_empty() { bail!("{path} has no sound"); } diff --git a/crates/openrage-gui/src/audio.rs b/crates/openrage-gui/src/audio.rs index 2db2c76..df07708 100644 --- a/crates/openrage-gui/src/audio.rs +++ b/crates/openrage-gui/src/audio.rs @@ -1,16 +1,76 @@ //! Playing decoded sounds and drawing their waveform. +use std::cell::Cell; use std::num::NonZero; use std::sync::Arc; -use std::time::Duration; +use std::time::{Duration, Instant}; use rage_formats::awc::Pcm; -/// The audio output, opened on first use and kept while sounds play. +/// Plays decoded samples without copying them. +struct Samples { + pcm: Arc, + next: usize, +} + +impl Samples { + fn channel_count(&self) -> usize { + self.pcm.channels.max(1) as usize + } +} + +impl Iterator for Samples { + type Item = rodio::Sample; + + fn next(&mut self) -> Option { + let sample = *self.pcm.samples.get(self.next)?; + self.next += 1; + Some(rodio::Sample::from(sample) / 32768.0) + } + + fn size_hint(&self) -> (usize, Option) { + let left = self.pcm.samples.len().saturating_sub(self.next); + (left, Some(left)) + } +} + +impl rodio::Source for Samples { + fn current_span_len(&self) -> Option { + None + } + + fn channels(&self) -> NonZero { + NonZero::new(self.pcm.channels).unwrap_or(NonZero::::MIN) + } + + fn sample_rate(&self) -> NonZero { + NonZero::new(self.pcm.sample_rate).unwrap_or(NonZero::::MIN) + } + + fn total_duration(&self) -> Option { + Some(Duration::from_secs_f32(self.pcm.duration_secs())) + } + + fn try_seek(&mut self, pos: Duration) -> Result<(), rodio::source::SeekError> { + let frame = (pos.as_secs_f64() * f64::from(self.pcm.sample_rate)) as usize; + self.next = frame.saturating_mul(self.channel_count()).min(self.pcm.samples.len()); + Ok(()) + } +} + +/// Something playing, opened on first use and kept while it plays. pub struct Output { - _sink: rodio::MixerDeviceSink, - player: rodio::Player, pcm: Arc, + player: Player, +} + +enum Player { + Device { + player: rodio::Player, + _sink: rodio::MixerDeviceSink, + }, + /// No sound: a clock. Where it stood, and since when it runs. + Clock(Cell<(Duration, Option)>), } impl Output { @@ -19,15 +79,17 @@ impl Output { let mut sink = rodio::DeviceSinkBuilder::open_default_sink().map_err(|e| e.to_string())?; sink.log_on_drop(false); let player = rodio::Player::connect_new(sink.mixer()); - let channels = NonZero::new(pcm.channels.max(1)).expect("non-zero"); - let rate = NonZero::new(pcm.sample_rate.max(1)).expect("non-zero"); - let samples: Vec = pcm.samples.iter().map(|&s| s as rodio::Sample / 32768.0).collect(); - player.append(rodio::buffer::SamplesBuffer::new(channels, rate, samples)); + player.append(Samples { pcm: Arc::clone(&pcm), next: 0 }); if !start.is_zero() { let _ = player.try_seek(start); } player.play(); - Ok(Self { _sink: sink, player, pcm }) + Ok(Self { pcm, player: Player::Device { player, _sink: sink } }) + } + + /// The same without sound, for what is not only heard. + pub fn silent(pcm: Arc, start: Duration) -> Self { + Self { pcm, player: Player::Clock(Cell::new((start, Some(Instant::now())))) } } pub fn pcm(&self) -> &Arc { @@ -35,27 +97,56 @@ impl Output { } pub fn is_playing(&self) -> bool { - !self.player.is_paused() && !self.player.empty() + match &self.player { + Player::Device { player: p, .. } => !p.is_paused() && !p.empty(), + Player::Clock(c) => c.get().1.is_some() && !self.finished(), + } } pub fn finished(&self) -> bool { - self.player.empty() + match &self.player { + Player::Device { player: p, .. } => p.empty(), + Player::Clock(_) => self.position().as_secs_f32() >= self.pcm.duration_secs(), + } } pub fn pause(&self) { - self.player.pause(); + match &self.player { + Player::Device { player: p, .. } => p.pause(), + Player::Clock(c) => c.set((self.position(), None)), + } } pub fn resume(&self) { - self.player.play(); + match &self.player { + Player::Device { player: p, .. } => p.play(), + Player::Clock(c) => c.set((self.position(), Some(Instant::now()))), + } + } + + pub fn set_volume(&self, volume: f32) { + if let Player::Device { player: p, .. } = &self.player { + p.set_volume(volume); + } } pub fn seek(&self, pos: Duration) { - let _ = self.player.try_seek(pos); + match &self.player { + Player::Device { player: p, .. } => { + let _ = p.try_seek(pos); + } + Player::Clock(c) => c.set((pos, c.get().1.map(|_| Instant::now()))), + } } pub fn position(&self) -> Duration { - self.player.get_pos() + match &self.player { + Player::Device { player: p, .. } => p.get_pos(), + Player::Clock(c) => { + let (at, since) = c.get(); + at + since.map_or(Duration::ZERO, |s| s.elapsed()) + } + } } } @@ -89,3 +180,31 @@ pub fn waveform(pcm: &Pcm, width: usize, height: usize, color: [u8; 3]) -> Vec bool { - name.to_ascii_lowercase().ends_with(".bk2") + let lower = name.to_ascii_lowercase(); + lower.ends_with(".bk2") || lower.ends_with(".bik") } /// Whether a file name is an audio container that can be opened like a folder. diff --git a/crates/openrage-gui/src/callbacks.rs b/crates/openrage-gui/src/callbacks.rs index f198422..53e62e3 100644 --- a/crates/openrage-gui/src/callbacks.rs +++ b/crates/openrage-gui/src/callbacks.rs @@ -171,25 +171,29 @@ fn wire_files(ui: &AppWindow) { open_script_view(ui, vpath); return; } - let video = with_app(|a| { + let is_video = with_app(|a| { let listing = a.listing.as_ref()?; let item = &listing.items[*a.visible.get(i as usize)?]; - let name = item.name.to_ascii_lowercase(); - name.ends_with(".bik") - .then(|| item.vpath.clone().unwrap_or_else(|| browser::join(&listing.vpath, &item.name))) + Some(item.kind == ItemKind::File && browser::is_video(&item.name) && item.mark != Some(Mark::Removed)) }); - if let Some(vpath) = video { - // Video players built on FFmpeg (VLC, mpv, …) play Bink. - open_with_system(ui, vpath); + // Or a file without a name that turned out to be one. + if is_video == Some(true) || (ui.get_file_selected() == i && ui.get_video_mode()) { + if ui.get_file_selected() != i { + select_row(ui, i as usize); + } + player::open_selected(ui); + return; + } + if ui.get_file_selected() == i && ui.get_preview_loading() && may_be_video(i as usize) { + with_app(|a| a.play_when_ready = true); return; } - // A Bink 2 video or an audio container with one sound: the row plays it (it is + // An audio container with one sound: the row plays it (it is // selected, so the sound is loaded or about to be). let is_container = with_app(|a| { let listing = a.listing.as_ref()?; let item = &listing.items[*a.visible.get(i as usize)?]; - let playable = (item.vpath.is_none() && browser::is_audio(&item.name)) || browser::is_video(&item.name); - Some(item.kind == ItemKind::File && playable) + Some(item.kind == ItemKind::File && item.vpath.is_none() && browser::is_audio(&item.name)) }); if is_container == Some(true) { if ui.get_file_selected() != i { @@ -204,17 +208,6 @@ fn wire_files(ui: &AppWindow) { with_app(|a| a.play_when_ready = true); return; } - // A video that cannot be shown here: perhaps elsewhere. - let video = with_app(|a| { - let listing = a.listing.as_ref()?; - let item = &listing.items[*a.visible.get(i as usize)?]; - browser::is_video(&item.name) - .then(|| item.vpath.clone().unwrap_or_else(|| browser::join(&listing.vpath, &item.name))) - }); - if let Some(vpath) = video { - open_with_system(ui, vpath); - return; - } } let is_ycd = with_app(|a| { let listing = a.listing.as_ref()?; @@ -501,6 +494,7 @@ fn wire_settings(ui: &AppWindow) { accent::apply(&ui); } viewer::set_accent(); + player::set_accent(); editor::set_accent(); xmlview::set_accent(); history::set_accent(); @@ -514,6 +508,7 @@ fn wire_settings(ui: &AppWindow) { accent::apply(&ui); } viewer::set_accent(); + player::set_accent(); editor::set_accent(); xmlview::set_accent(); history::set_accent(); @@ -530,6 +525,7 @@ fn wire_settings(ui: &AppWindow) { with_app(|a| a.cfg.theme = Some(theme_name(mode).to_owned())); with_ui(&w, save_settings); viewer::set_theme(mode); + player::set_theme(mode); editor::set_theme(mode); xmlview::set_theme(mode); history::set_theme(mode); @@ -549,6 +545,12 @@ fn wire_settings(ui: &AppWindow) { /// Sound playback. fn wire_sound(ui: &AppWindow) { + let w = ui.as_weak(); + ui.on_open_player(move || with_ui(&w, player::open_selected)); + let w = ui.as_weak(); + ui.on_index_stop(move || with_ui(&w, stop_index_update)); + let w = ui.as_weak(); + ui.on_index_resume(move || with_ui(&w, start_index_update)); let w = ui.as_weak(); ui.on_audio_toggle(move || with_ui(&w, toggle_sound)); let w = ui.as_weak(); @@ -779,6 +781,7 @@ pub(crate) fn row_action(ui: &AppWindow, row: usize, action: &str) { } match action { "open" => ui.invoke_file_open(row as i32), + "play" => player::open_selected(ui), "view" => open_viewer(ui), "edit" | "system" => { let vpath = with_app(|a| { diff --git a/crates/openrage-gui/src/debug.rs b/crates/openrage-gui/src/debug.rs index 8b086a9..aee0cab 100644 --- a/crates/openrage-gui/src/debug.rs +++ b/crates/openrage-gui/src/debug.rs @@ -1,5 +1,6 @@ //! Debug snapshots of the window (`OPENRAGE_DEBUG_*`), for checking the UI without a screen. +#[cfg(debug_assertions)] use crate::*; /// Development aid (debug builds only): `OPENRAGE_SNAPSHOT=out.png` saves an @@ -288,6 +289,7 @@ pub(crate) fn debug_snapshot_rest(ui: &AppWindow, path: String) { slint::Timer::single_shot(Duration::from_secs(wait), move || { let Some(ui) = weak.upgrade() else { return }; let snap = match (viewer::newest(), editor::newest(), history::window()) { + _ if let Some(p) = player::newest() => p.window().take_snapshot(), _ if let Some(x) = xmlview::newest() => { if let Ok(tab) = std::env::var("OPENRAGE_TAB") { x.set_tab(tab.parse().unwrap_or(0)); diff --git a/crates/openrage-gui/src/main.rs b/crates/openrage-gui/src/main.rs index 84c0ee7..7c8fa10 100644 --- a/crates/openrage-gui/src/main.rs +++ b/crates/openrage-gui/src/main.rs @@ -22,6 +22,7 @@ mod model_ui; mod mods_ui; mod navigate; mod openformats_ui; +mod player; mod plugins; mod plugins_ui; mod preview; @@ -35,7 +36,7 @@ mod video_ui; mod viewer; mod xmlview; -use std::cell::RefCell; +use std::cell::{Cell, RefCell}; use std::fs::File; use std::io::Read; use std::path::{Path, PathBuf}; @@ -63,6 +64,7 @@ use about::*; use archive_ops::*; use asi_ui::*; use callbacks::*; +#[cfg(debug_assertions)] use debug::*; use docs::*; use extract_ui::*; diff --git a/crates/openrage-gui/src/player.rs b/crates/openrage-gui/src/player.rs new file mode 100644 index 0000000..489c397 --- /dev/null +++ b/crates/openrage-gui/src/player.rs @@ -0,0 +1,264 @@ +//! The video player: a window for each video, with its own sound. + +use std::cell::RefCell; +use std::rc::Rc; + +use crate::video_ui::{Event, Video, open_video}; +use crate::*; +use rage_formats::awc::Pcm; +use sound_ui::SOUND_END_MARGIN; + +type Shared = Rc>; + +thread_local! { + static OPEN: RefCell> = const { RefCell::new(Vec::new()) }; + static NEXT_ID: Cell = const { Cell::new(0) }; + /// As last set in a window. + static VOLUME: Cell = const { Cell::new(1.0) }; +} + +#[derive(Default)] +struct State { + video: Option
@@ -62,7 +62,7 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p |---|---|---| | **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | | **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) | -| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`; people and animals are not skinned) · texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) · collisions (`.#bn`) · navigation meshes (`.#nv`) · metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt`) · audio · videos | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`) · texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) · collisions (`.#bn`) · navigation meshes (`.#nv`) · metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt`) · audio · videos | | **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) diff --git a/crates/openrage-app/src/gta6_models.rs b/crates/openrage-app/src/gta6_models.rs index 400059a..37adbf7 100644 --- a/crates/openrage-app/src/gta6_models.rs +++ b/crates/openrage-app/src/gta6_models.rs @@ -8,9 +8,14 @@ //! the system part, and the reader says whether the graphics part reaches //! far enough. +use std::collections::HashSet; +use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex}; + use anyhow::{Context, Result, bail}; -use rage_formats::drawable::Drawable; +use rage_formats::drawable::{Bone, Drawable, Skeleton}; use rage_formats::drawable6::{self, ModelError}; +use rage_formats::math; use rage_rpf::Rpf9; /// Streams unpack to this many bytes, the last one of a part to fewer. @@ -68,3 +73,250 @@ fn named(drawables: Vec) -> Vec<(String, Drawable)> { .map(|(i, d)| (if d.name.is_empty() { format!("drawable {i}") } else { d.name.clone() }, d)) .collect() } + +/// The archive with the skeletons people and animals are put together on. +const BASE_SKELETONS: &str = "packs.rpf/packs/base/models/metaped_fragments.rpf"; + +/// A vertex with less weight than this on known bones moves with the nearest. +const MIN_WEIGHT: f32 = 0.3; + +type Skeletons = Arc>; + +/// The base skeletons of the game with their file names (read once). +fn base_skeletons(game: &Path) -> Skeletons { + static CACHE: Mutex> = Mutex::new(None); + let mut cache = CACHE.lock().unwrap_or_else(|e| e.into_inner()); + if let Some((of, found)) = &*cache + && of == game + { + return Arc::clone(found); + } + let found = Arc::new(read_base_skeletons(game).unwrap_or_default()); + *cache = Some((game.to_path_buf(), Arc::clone(&found))); + found +} + +fn read_base_skeletons(game: &Path) -> Result> { + use rayon::prelude::*; + let (node, _) = rage_mods::resolve(game, BASE_SKELETONS, None)?; + let rage_rpf::vfs::Node::Rpf9Dir(rpf, _) = node else { bail!("no archive") }; + let entries = rpf.entries()?; + let mut found: Vec<(String, Skeleton)> = (0..entries.len()) + .into_par_iter() + .filter_map(|i| { + let name = rpf.entry_name(&entries[i]).to_ascii_lowercase(); + let (system, graphics) = crate::rpf9::resource(&rpf, i).ok()?; + let skeleton = drawable6::parse(&system, &graphics).ok()?.into_iter().next()?.skeleton?; + Some((name.rsplit('/').next().unwrap_or(&name).to_owned(), skeleton)) + }) + .collect(); + found.sort_by(|a, b| a.0.cmp(&b.0)); + Ok(found) +} + +/// Binds meshes that name bones of another skeleton (parts of people and +/// animals) to it, and gives that skeleton. `None` if there are none, or the +/// game has no skeleton for them. +pub(crate) fn bind(game: &Path, file: &str, drawables: &mut [(String, Drawable)]) -> Option { + let wanted: HashSet = + drawables.iter().flat_map(|(_, d)| &d.meshes).flat_map(|m| &m.bone_hashes).copied().collect(); + if wanted.is_empty() { + return None; + } + let bases = base_skeletons(game); + let mut skeleton = best_base(&bases, file, &wanted)?.clone(); + bind_to(&mut skeleton, drawables); + Some(skeleton) +} + +/// The skeleton with the most of the bones; of several with as many, the one +/// whose name is most like the file's. `None` if none has any of them, and +/// the file's name does not tell either. +fn best_base<'a>(bases: &'a [(String, Skeleton)], file: &str, wanted: &HashSet) -> Option<&'a Skeleton> { + let file = file.to_ascii_lowercase(); + let words: Vec<&str> = file.split(['_', '.', '+']).collect(); + // `fr1`, `mo1`, …: a woman's or a man's part, of one of the builds. + let sex = words.iter().find_map(|w| match w.as_bytes() { + [b'f', b'a'..=b'z', b'0'..=b'9'] => Some("ambient_femalebody.#ft"), + [b'm', b'a'..=b'z', b'0'..=b'9'] => Some("ambient_malebody.#ft"), + _ => None, + }); + let rated = bases.iter().filter_map(|(name, skeleton)| { + let own: HashSet = skeleton.bones.iter().map(|b| rage_core::hash::joaat(&b.name)).collect(); + let has = wanted.iter().filter(|h| own.contains(h)).count(); + let alike = words.iter().filter(|w| w.len() > 2 && name.contains(**w)).count(); + (has > 0 || sex == Some(name)).then_some(((has, sex == Some(name), alike), skeleton)) + }); + // The first one of the best. + rated.reduce(|best, next| if next.0 > best.0 { next } else { best }).map(|(_, s)| s) +} + +/// Binds the meshes to the skeleton, which gets the bones it lacks from the +/// drawables' own (hair, garments). +fn bind_to(skeleton: &mut Skeleton, drawables: &mut [(String, Drawable)]) { + let places = + |s: &Skeleton| -> Vec<[f32; 3]> { s.world_transforms().iter().map(|m| [m[12], m[13], m[14]]).collect() }; + // The main bones of the body, with their places. + let body: Vec<(usize, [f32; 3])> = places(skeleton) + .into_iter() + .enumerate() + .filter(|(i, _)| skeleton.bones[*i].name.starts_with("SKEL_")) + .collect(); + let nearest = |at: &[f32; 3]| -> Option { + let far = |p: &[f32; 3]| (0..3).map(|k| (p[k] - at[k]).powi(2)).sum::(); + body.iter().min_by(|a, b| far(&a.1).total_cmp(&far(&b.1))).map(|(i, _)| *i) + }; + // Where the bones of each drawable's own skeleton are. + let mut of_own: Vec> = Vec::new(); + for (_, d) in drawables.iter() { + let Some(own) = &d.skeleton else { + of_own.push(Vec::new()); + continue; + }; + let at = places(own); + let mut placed: Vec = Vec::with_capacity(own.bones.len()); + for (i, b) in own.bones.iter().enumerate() { + if let Some(there) = skeleton.find_hash(rage_core::hash::joaat(&b.name)) { + placed.push(there as i16); + continue; + } + let mut bone = b.clone(); + bone.parent = match usize::try_from(b.parent).ok().and_then(|p| placed.get(p)) { + Some(&p) => p, + // Loose: it hangs from the nearest bone of the body. + None => { + let Some(nearest) = nearest(&at[i]) else { + placed.push(0); + continue; + }; + attach(&mut bone, skeleton, nearest); + nearest as i16 + } + }; + placed.push(skeleton.bones.len() as i16); + skeleton.bones.push(bone); + } + of_own.push(placed); + } + for (k, (_, d)) in drawables.iter_mut().enumerate() { + for mesh in &mut d.meshes { + if mesh.bone_hashes.is_empty() { + // Bound to the drawable's own skeleton. + let own = &of_own[k]; + let there = |b: u16| own.get(usize::from(b)).map_or(b, |&b| b as u16); + mesh.bone_indices.iter_mut().flatten().for_each(|b| *b = there(*b)); + continue; + } + let map: Vec> = + mesh.bone_hashes.iter().map(|&h| skeleton.find_hash(h).map(|b| b as u16)).collect(); + mesh.bone_hashes.clear(); + let vertices = mesh.positions.iter().zip(mesh.bone_indices.iter_mut().zip(&mut mesh.bone_weights)); + for (position, (bones, weights)) in vertices { + // Bones of yet another skeleton do not count. + for (b, w) in bones.iter_mut().zip(weights.iter_mut()) { + match map.get(usize::from(*b)).copied().flatten() { + Some(there) => *b = there, + None => (*b, *w) = (0, 0.0), + } + } + let total: f32 = weights.iter().sum(); + if total > MIN_WEIGHT { + weights.iter_mut().for_each(|w| *w /= total); + } else { + *bones = [nearest(position).unwrap_or(0) as u16, 0, 0, 0]; + *weights = [1.0, 0.0, 0.0, 0.0]; + } + } + } + } +} + +/// Moves a bone without a parent under one of the skeleton's, where it stays. +fn attach(bone: &mut Bone, skeleton: &Skeleton, parent: usize) { + let inverse = math::inverse_affine(&skeleton.world_transforms()[parent]); + bone.translation = math::transform_point(&inverse, bone.translation); + let (mut turn, mut at) = ([0.0, 0.0, 0.0, 1.0], Some(parent)); + while let Some(b) = at.and_then(|i| skeleton.bones.get(i)) { + turn = turned(b.rotation, turn); + at = usize::try_from(b.parent).ok(); + } + let back = [-turn[0], -turn[1], -turn[2], turn[3]]; + bone.rotation = turned(back, bone.rotation); +} + +/// The rotation `b`, then `a`. +fn turned(a: [f32; 4], b: [f32; 4]) -> [f32; 4] { + let ([ax, ay, az, aw], [bx, by, bz, bw]) = (a, b); + [ + aw * bx + ax * bw + ay * bz - az * by, + aw * by - ax * bz + ay * bw + az * bx, + aw * bz + ax * by - ay * bx + az * bw, + aw * bw - ax * bx - ay * by - az * bz, + ] +} + +#[cfg(test)] +mod tests { + use super::*; + use rage_core::hash::joaat; + use rage_formats::drawable::Mesh; + + fn bone(name: &str, parent: i16, translation: [f32; 3], rotation: [f32; 4]) -> Bone { + Bone { name: name.into(), tag: 0, parent, translation, rotation, scale: [1.0; 3] } + } + + fn body() -> Skeleton { + let half = std::f32::consts::FRAC_1_SQRT_2; + Skeleton { + bones: vec![ + bone("SKEL_ROOT", -1, [0.0, 0.0, 1.0], [0.0, 0.0, half, half]), + bone("SKEL_Head", 0, [0.0, 0.0, 0.7], [half, 0.0, 0.0, half]), + ], + } + } + + #[test] + fn parts_find_their_bones_by_name() { + let mesh = Mesh { + positions: vec![[0.0; 3], [0.0, 0.0, 1.8]], + bone_indices: vec![[0, 1, 2, 9], [2, 0, 0, 0]], + bone_weights: vec![[0.25, 0.25, 0.5, 0.0], [1.0, 0.0, 0.0, 0.0]], + bone_hashes: vec![joaat("GM_Collar"), joaat("SKEL_ROOT"), joaat("unknown")], + ..Default::default() + }; + let own = Skeleton { bones: vec![bone("GM_Collar", -1, [0.1, 0.2, 1.6], [0.0, 0.0, 0.0, 1.0])] }; + let mut drawables = + vec![("part".into(), Drawable { meshes: vec![mesh], skeleton: Some(own), ..Default::default() })]; + let mut skeleton = body(); + bind_to(&mut skeleton, &mut drawables); + // Unknown bones do not count; what has no others moves with the nearest. + let mesh = &drawables[0].1.meshes[0]; + assert_eq!(mesh.bone_indices, [[2, 0, 0, 0], [1, 0, 0, 0]]); + assert_eq!(mesh.bone_weights, [[0.5, 0.5, 0.0, 0.0], [1.0, 0.0, 0.0, 0.0]]); + // The garment's bone stays where it was. + assert_eq!(skeleton.bones[2].parent, 1); + let world = skeleton.world_transforms()[2]; + let expected = math::from_trs([0.1, 0.2, 1.6], [0.0, 0.0, 0.0, 1.0], [1.0; 3]); + assert!(world.iter().zip(expected).all(|(a, b)| (a - b).abs() < 1e-5), "{world:?}"); + } + + #[test] + fn the_skeleton_is_the_one_with_the_bones() { + let dog = Skeleton { bones: vec![bone("SKEL_Tail", -1, [0.0; 3], [0.0, 0.0, 0.0, 1.0])] }; + let bases = [ + ("ambient_femalebody.#ft".to_owned(), body()), + ("ambient_malebody.#ft".to_owned(), body()), + ("crm_dog_00.#ft".to_owned(), dog), + ]; + let pick = |file: &str, bones: &[&str]| { + let found = best_base(&bases, file, &bones.iter().map(|b| joaat(b)).collect()); + found.and_then(|s| bases.iter().position(|(_, b)| std::ptr::eq(b, s))) + }; + assert_eq!(pick("shirt_mr1_000.#dd", &["SKEL_Head"]), Some(1)); + assert_eq!(pick("shirt_fr1_000.#dd", &["SKEL_Head"]), Some(0)); + assert_eq!(pick("fur.#dd", &["SKEL_Tail"]), Some(2)); + assert_eq!(pick("fur.#dd", &["a", "b", "SKEL_Tail"]), Some(2)); + assert_eq!(pick("fur.#dd", &["a"]), None); + assert_eq!(pick("belt_fr1_000.#dd", &["a"]), Some(0)); + } +} diff --git a/crates/openrage-app/src/models.rs b/crates/openrage-app/src/models.rs index 229d9ee..30ffb99 100644 --- a/crates/openrage-app/src/models.rs +++ b/crates/openrage-app/src/models.rs @@ -697,13 +697,15 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu let (mesh, _) = rage_formats::paths::parse_nv6(crate::rpf9::resource(&rpf, i)?.0)?; return Ok(LoadedModel::from_drawables(vec![("nav mesh".to_owned(), mesh)])); } - let drawables = crate::gta6_models::load(&rpf, i)?; + let mut drawables = crate::gta6_models::load(&rpf, i)?; let textures = crate::gta6_textures::for_drawables(game_dir, &drawables); + let name = vpath.rsplit('/').next().unwrap_or(vpath); // A dictionary's drawables have skeletons of their own. - let skeleton = match drawables.as_slice() { + let worn_on = crate::gta6_models::bind(game_dir, name, &mut drawables); + let skeleton = worn_on.or_else(|| match drawables.as_slice() { [(_, d)] => d.skeleton.clone(), _ => None, - }; + }); let mut model = LoadedModel::from_drawables(drawables); model.skeleton = skeleton; if let Some(textures) = textures { diff --git a/crates/rage-formats/src/drawable.rs b/crates/rage-formats/src/drawable.rs index 041f149..f5800fa 100644 --- a/crates/rage-formats/src/drawable.rs +++ b/crates/rage-formats/src/drawable.rs @@ -59,6 +59,8 @@ pub struct Mesh { /// is the bone tagged `bone_tags[i]` of the skeleton the part is worn /// on); empty when the indices are skeleton indices already. pub bone_tags: Vec, + /// The same for GTA VI: hashes of the bones' names. + pub bone_hashes: Vec, } #[derive(Debug, Clone, Default)] diff --git a/crates/rage-formats/src/drawable6.rs b/crates/rage-formats/src/drawable6.rs index 9e19f7a..826d137 100644 --- a/crates/rage-formats/src/drawable6.rs +++ b/crates/rage-formats/src/drawable6.rs @@ -30,8 +30,10 @@ //! and 16 bits) with a bias and a scale in the buffer's first bytes and an //! order of the axes. //! - Skinning: up to eight weights of 8 bits (parts 16 and 17) with the -//! numbers of their bones (20 and 21, 8 bits each), or one bone without a -//! weight. Of the weights the four largest are kept. +//! numbers of their bones (20 and 21, 8 bits each, or 32 bits of which the +//! lower 12 are the number), or one bone without a weight. Of the weights +//! the four largest are kept. A bone's number is its place in the model's +//! list of the hashes of its bones' names (40). //! - Texture coordinates (part 28): two floats, or two 16-bit numbers with a //! scale. //! @@ -47,10 +49,11 @@ //! scale (32), its name (48), the next sibling and the parent (68, 70, 16 bits //! each, -1 for none), its number (72) and its tag (74). //! -//! Not read: the other textures of materials, the lower levels of detail, -//! which bone meshes without bone numbers belong to, and the skinning of the -//! parts of people and animals (made for other bones than the part's own -//! skeleton has, some with bone numbers of 32 bits). +//! Parts of people and animals use bones of a skeleton in another file +//! ([`Mesh::bone_hashes`]). +//! +//! Not read: the other textures of materials, the lower levels of detail, and +//! which bone meshes without bone numbers belong to. //! //! The layout is the one found by the rpf9-explorer project //! (), whose decoder was read to @@ -259,10 +262,25 @@ impl<'a> Reader<'a> { } let geometries = self.s(model + 8, count * 8)?; let shaders = self.s(model + 32, count * 2).ok(); - // A model made for other bones than the skeleton's is not skinned. - let bones = if self.u16(model + 20)? == bones { bones } else { 0 }; + let used = self.u16(model + 20)?; + // What its bones are called; a model without such a list has the skeleton's. + let hashes: Vec = match self.s(model + 40, used * 4) { + Ok(list) => (0..used).filter_map(|i| self.sys.u32_at(list + i * 4)).collect(), + Err(_) => Vec::new(), + }; + let bones = if !hashes.is_empty() || used == bones { used } else { 0 }; + // The skeleton's, if it has them all; else those of another one. + let own: Option> = skeleton + .as_ref() + .filter(|_| !hashes.is_empty()) + .and_then(|s| hashes.iter().map(|&h| s.find_hash(h).map(|b| b as u16)).collect()); for g in 0..count { let mut mesh = self.mesh(self.s(geometries + g * 8, 160)?, bones)?; + match &own { + Some(map) => mesh.bone_indices.iter_mut().flatten().for_each(|b| *b = map[usize::from(*b)]), + None if !mesh.bone_indices.is_empty() => mesh.bone_hashes = hashes.clone(), + None => {} + } mesh.shader = shaders.and_then(|s| self.sys.u16_at(s + g * 2)).unwrap_or(0); meshes.push(mesh); } @@ -433,16 +451,21 @@ impl<'a> Reader<'a> { if let Some(single) = bytes(BONES[0], 1, 62) { return Some(([u16::from(single[i]), 0, 0, 0], [1.0, 0.0, 0.0, 0.0])); } - let mut found: Vec<(u8, u8)> = Vec::with_capacity(8); + let mut found: Vec<(u8, u16)> = Vec::with_capacity(8); for (weights, numbers) in WEIGHTS.into_iter().zip(BONES) { - if let (Some(w), Some(n)) = (bytes(weights, 4, 28), bytes(numbers, 4, 30)) { - found.extend((0..4).map(|k| (w[i * 4 + k], n[i * 4 + k]))); + let Some(w) = bytes(weights, 4, 28) else { continue }; + if let Some(n) = bytes(numbers, 4, 30) { + found.extend((0..4).map(|k| (w[i * 4 + k], u16::from(n[i * 4 + k])))); + } else if let Some(n) = bytes(numbers, 16, 3) { + // The bone is in the lower 12 bits. + let number = |k: usize| u16::from_le_bytes([n[(i * 4 + k) * 4], n[(i * 4 + k) * 4 + 1]]) & 0xFFF; + found.extend((0..4).map(|k| (w[i * 4 + k], number(k)))); } } found.sort_by_key(|(w, _)| std::cmp::Reverse(*w)); let (mut numbers, mut weights) = ([0; 4], [0.0; 4]); for (k, (w, n)) in found.into_iter().filter(|(w, _)| *w > 0).take(4).enumerate() { - numbers[k] = u16::from(n); + numbers[k] = n; weights[k] = f32::from(w) / 255.0; } let total: f32 = weights.iter().sum(); From 2c4d9a174f982a259f0cde042c09d1baa40fb719 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 16:06:43 +0100 Subject: [PATCH 21/31] GTA VI: the map in 3D, materials, names across archives A map file is shown with what lies around it, and the whole world from afar; models of dictionaries are found by the hash of their name. Models show their normal and specular maps (GTA V Enhanced too) and can have up to 1024 bones. Files without a name are named after those of other archives once the index is built (155,000 of them), and more metadata opens as XML. Loading the keys or the skeletons from a worker thread could wait for itself; no longer. Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/gta6_models.rs | 2 +- crates/openrage-app/src/gta6_textures.rs | 30 +- crates/openrage-app/src/gta6_world.rs | 542 +++++++++++++++++++++++ crates/openrage-app/src/lib.rs | 1 + crates/openrage-app/src/metadata.rs | 6 +- crates/openrage-app/src/render.rs | 51 ++- crates/openrage-app/src/rpf9.rs | 35 ++ crates/openrage-cli/src/cli.rs | 3 +- crates/openrage-cli/src/cmd/search.rs | 4 + crates/openrage-cli/src/cmd/view.rs | 32 +- crates/openrage-gui/src/callbacks.rs | 2 + crates/openrage-gui/src/debug.rs | 2 + crates/openrage-gui/src/gpu.rs | 130 +++++- crates/openrage-gui/src/navigate.rs | 1 + crates/openrage-gui/src/scene.rs | 13 +- crates/openrage-gui/src/search.rs | 5 + crates/openrage-gui/src/xmlview.rs | 5 +- crates/openrage-gui/ui/app.slint | 8 + crates/rage-formats/src/drawable6.rs | 19 +- crates/rage-index/src/gta6.rs | 141 ++++++ crates/rage-index/src/lib.rs | 1 + crates/rage-index/src/update.rs | 2 +- crates/rage-rpf/src/lib.rs | 16 + crates/rage-rpf/src/rpf9.rs | 1 + crates/rage-rpf/src/rpf9_native.rs | 33 +- 25 files changed, 1010 insertions(+), 75 deletions(-) create mode 100644 crates/openrage-app/src/gta6_world.rs create mode 100644 crates/rage-index/src/gta6.rs diff --git a/crates/openrage-app/src/gta6_models.rs b/crates/openrage-app/src/gta6_models.rs index 37adbf7..7f654a6 100644 --- a/crates/openrage-app/src/gta6_models.rs +++ b/crates/openrage-app/src/gta6_models.rs @@ -91,7 +91,7 @@ fn base_skeletons(game: &Path) -> Skeletons { { return Arc::clone(found); } - let found = Arc::new(read_base_skeletons(game).unwrap_or_default()); + let found = Arc::new(rage_rpf::in_own_threads(|| read_base_skeletons(game)).unwrap_or_default()); *cache = Some((game.to_path_buf(), Arc::clone(&found))); found } diff --git a/crates/openrage-app/src/gta6_textures.rs b/crates/openrage-app/src/gta6_textures.rs index 2fcd2ce..86497e9 100644 --- a/crates/openrage-app/src/gta6_textures.rs +++ b/crates/openrage-app/src/gta6_textures.rs @@ -58,9 +58,9 @@ impl Catalog { } /// The texture with this key, named by the key. - pub fn texture(&self, key: u64) -> Option { + pub fn texture(&self, key: u64, side: u32) -> Option { let (pool, number) = *self.by_key.get(&key)?; - let mut texture = self.pools[pool].1.texture(number, Some(MAX_SIDE)).ok()?; + let mut texture = self.pools[pool].1.texture(number, Some(side)).ok()?; texture.name = texture_name(key); Some(texture) } @@ -70,14 +70,32 @@ impl Catalog { pub fn catalog(game_dir: &Path) -> Arc { static CATALOGS: OnceLock>>> = OnceLock::new(); let mut catalogs = CATALOGS.get_or_init(Default::default).lock().unwrap_or_else(|e| e.into_inner()); - Arc::clone(catalogs.entry(game_dir.to_path_buf()).or_insert_with(|| Arc::new(Catalog::build(game_dir)))) + Arc::clone( + catalogs + .entry(game_dir.to_path_buf()) + .or_insert_with(|| Arc::new(rage_rpf::in_own_threads(|| Catalog::build(game_dir)))), + ) } /// The textures the shaders of these drawables name, from the pools of the /// game: a dictionary of them, `None` if none was found. pub fn for_drawables(game_dir: &Path, drawables: &[(String, Drawable)]) -> Option { - let mut names: Vec<&str> = - drawables.iter().flat_map(|(_, d)| &d.shaders).flat_map(|s| &s.textures).map(String::as_str).collect(); + for_drawables_up_to(game_dir, drawables, MAX_SIDE) +} + +/// The same with textures of at most this size. +pub fn for_drawables_up_to(game_dir: &Path, drawables: &[(String, Drawable)], side: u32) -> Option { + use rage_formats::drawable::param::{BUMP_TEX, DIFFUSE_TEX, DIFFUSE_TEX2, SPECULAR_TEX}; + // Small ones are for views of many models, where only the colours show. + let wanted: &[u32] = + if side < MAX_SIDE { &[DIFFUSE_TEX] } else { &[DIFFUSE_TEX, DIFFUSE_TEX2, BUMP_TEX, SPECULAR_TEX] }; + let mut names: Vec<&str> = drawables + .iter() + .flat_map(|(_, d)| &d.shaders) + .flat_map(|s| &s.samplers) + .filter(|(parameter, _)| wanted.contains(parameter)) + .map(|(_, name)| name.as_str()) + .collect(); names.sort_unstable(); names.dedup(); if names.is_empty() { @@ -88,7 +106,7 @@ pub fn for_drawables(game_dir: &Path, drawables: &[(String, Drawable)]) -> Optio let mut textures = Vec::new(); for (i, name) in names.into_iter().take(MAX_TEXTURES).enumerate() { crate::progress::set("Loading textures", i as u64, total as u64); - if let Some(texture) = u64::from_str_radix(name, 16).ok().and_then(|key| catalog.texture(key)) { + if let Some(texture) = u64::from_str_radix(name, 16).ok().and_then(|key| catalog.texture(key, side)) { textures.push(texture); } } diff --git a/crates/openrage-app/src/gta6_world.rs b/crates/openrage-app/src/gta6_world.rs new file mode 100644 index 0000000..cf129da --- /dev/null +++ b/crates/openrage-app/src/gta6_world.rs @@ -0,0 +1,542 @@ +//! The map of GTA VI: where its map files (`.#map`) are, what they place, and +//! the models for it. +//! +//! A map file covers a small piece of the world, and there are more than +//! 160,000, so reading all of them takes a minute or two. What is needed of +//! them is kept (`/openrage/gta6-world-.bin`) until the search +//! index changes. + +use std::collections::{BTreeMap, HashMap}; +use std::path::{Path, PathBuf}; +use std::sync::atomic::{AtomicUsize, Ordering}; +use std::sync::{Arc, Mutex}; + +use anyhow::{Context, Result}; +use rage_core::bytes::LeRead; +use rage_core::hash::joaat; +use rage_formats::drawable::Drawable; +use rage_formats::math::{self, Mat4}; +use rage_rpf::Rpf9; +use rage_rpf::vfs::Node; +use rayon::prelude::*; + +use crate::models::LoadedModel; +use crate::world::MapScene; + +const MAGIC: &[u8; 8] = b"ORG6MAP1"; + +/// Levels of detail: the models seen close, and the ones that stand for whole +/// neighbourhoods from afar. +const CLOSE: [u8; 2] = [0, 5]; +const FAR: u8 = 3; +/// The sides of textures in views of many models. +const SIDE_NEAR: u32 = 256; +const SIDE_FAR: u32 = 128; + +/// Something a map file places. +#[derive(Debug, Clone, PartialEq)] +struct Object { + /// Hash of the model's name. + model: u32, + position: [f32; 3], + rotation: [f32; 4], + scale: [f32; 2], +} + +impl Object { + fn transform(&self) -> Mat4 { + let [x, y, z, w] = self.rotation; + let [flat, high] = self.scale; + math::from_trs(self.position, [-x, -y, -z, w], [flat, flat, high]) + } +} + +/// What is kept of the map files. +#[derive(Debug, Default, PartialEq)] +pub struct Map { + /// Map files with the box around what they place. + files: Vec<(String, [f32; 3], [f32; 3])>, + /// The objects that stand for the world from afar. + far: Vec, + /// Models in dictionaries, by the hash of their name: the dictionary and + /// the place in it. + children: HashMap, +} + +/// Files of the index, by the archive they are in. +fn by_archive(list: Vec<(String, String)>, keep: impl Fn(&str) -> bool) -> BTreeMap> { + let mut found: BTreeMap> = BTreeMap::new(); + for (_, vpath) in list.into_iter().filter(|(_, v)| keep(v)) { + if let Some((archive, file)) = vpath.rsplit_once(".rpf/") { + found.entry(format!("{archive}.rpf")).or_default().push(file.to_owned()); + } + } + found +} + +fn each_file( + game: &Path, + archives: &BTreeMap>, + work: impl Fn(&Rpf9, usize, String) + Sync, + done: &(dyn Fn() + Sync), +) { + archives.par_iter().for_each(|(archive, files)| { + let Ok((Node::Rpf9Dir(rpf, _), _)) = rage_mods::resolve(game, archive, None) else { return }; + let Ok(entries) = rpf.entries() else { return }; + files.par_iter().for_each(|file| { + if let Some(i) = rpf.find(&entries, file) { + work(&rpf, i, format!("{archive}/{file}")); + } + done(); + }); + }); +} + +/// The part of the text between two others. +fn between<'a>(line: &'a str, start: &str, end: &str) -> Option<&'a str> { + line.strip_prefix(start)?.split(end).next() +} + +fn attributes(line: &str, names: [&str; N]) -> Option<[f32; N]> { + let mut out = [0.0; N]; + for (out, name) in out.iter_mut().zip(names) { + let at = line.find(&format!(" {name}=\""))? + name.len() + 3; + *out = line[at..].split('"').next()?.parse().ok()?; + } + Some(out) +} + +/// The hash a name in the XML stands for. +fn name_hash(name: &str) -> u32 { + let hash = name.strip_prefix("hash_").filter(|h| h.len() == 8).and_then(|h| u32::from_str_radix(h, 16).ok()); + hash.unwrap_or_else(|| joaat(name)) +} + +/// Objects with their level of detail, and the box around them. +type Placements = (Vec<(u8, Object)>, Option<[[f32; 3]; 2]>); + +/// What a map file places, with the level of detail, and the box around it. +/// The XML is read by lines: there is a lot of it, and it is our own. +fn read_map(xml: &str) -> Placements { + let mut objects = Vec::new(); + let (mut lo, mut hi) = (None, None); + let mut now = Object { model: 0, position: [0.0; 3], rotation: [0.0, 0.0, 0.0, 1.0], scale: [1.0; 2] }; + let mut inside = false; + let value = |line: &str| attributes(line, ["value"]).map(|[v]| v); + for line in xml.lines().map(str::trim) { + if line.starts_with("") || line.starts_with(""); + } else if line == "" { + inside = false; + } else if line.starts_with("", "<") { + now.model = name_hash(name); + } else if line.starts_with(" Vec { + let list = system.u64_at(32).and_then(|p| usize::try_from(p.checked_sub(0x5000_0000)?).ok()); + let count = system.u16_at(40).unwrap_or(0); + let Some(list) = list else { return Vec::new() }; + (0..usize::from(count)).map_while(|i| system.u32_at(list.checked_add(i * 4)?)).collect() +} + +fn build(game: &Path, index: &rage_index::Index, progress: &(dyn Fn(usize, usize) + Sync)) -> Result { + let maps = by_archive(index.files_with_extensions(&[".#map"])?, |_| true); + let dictionaries = by_archive(index.files_with_extensions(&[".#dd"])?, |v| v.contains("/map/")); + let total = maps.values().chain(dictionaries.values()).map(Vec::len).sum(); + let count = AtomicUsize::new(0); + let done = || { + let n = count.fetch_add(1, Ordering::Relaxed) + 1; + if n.is_multiple_of(500) { + progress(n, total); + } + }; + let map = Mutex::new(Map::default()); + let lock = || map.lock().unwrap_or_else(|e| e.into_inner()); + each_file( + game, + &maps, + |rpf, i, vpath| { + let Ok(xml) = crate::metadata::from_rpf9(rpf, i) else { return }; + let (objects, extent) = read_map(&xml.text); + let mut map = lock(); + if let Some([lo, hi]) = extent + && objects.iter().any(|(level, _)| CLOSE.contains(level)) + { + map.files.push((vpath, lo, hi)); + } + map.far.extend(objects.into_iter().filter(|(level, _)| *level == FAR).map(|(_, o)| o)); + }, + &done, + ); + each_file( + game, + &dictionaries, + |rpf, i, vpath| { + let Ok(entries) = rpf.entries() else { return }; + let Some((system, _)) = rpf.resource_parts(&entries[i]) else { return }; + let Ok(start) = rpf.read_start(&entries[i], system as usize) else { return }; + let names = dictionary(&start); + let mut map = lock(); + for (k, name) in names.into_iter().enumerate() { + map.children.entry(name).or_insert_with(|| (vpath.clone(), k as u16)); + } + }, + &done, + ); + let mut map = map.into_inner().unwrap_or_else(|e| e.into_inner()); + map.files.sort_by(|a, b| a.0.cmp(&b.0)); + Ok(map) +} + +fn cache_path(game: &Path) -> Option { + crate::paths::game_cache(game, "gta6-world", "bin") +} + +fn encode(map: &Map, stamp: i64) -> Vec { + let mut out = Vec::from(MAGIC); + out.extend(stamp.to_le_bytes()); + let text = |out: &mut Vec, s: &str| { + out.extend((s.len() as u32).to_le_bytes()); + out.extend(s.as_bytes()); + }; + let floats = |out: &mut Vec, v: &[f32]| v.iter().for_each(|f| out.extend(f.to_le_bytes())); + out.extend((map.files.len() as u32).to_le_bytes()); + for (path, lo, hi) in &map.files { + text(&mut out, path); + floats(&mut out, lo); + floats(&mut out, hi); + } + out.extend((map.far.len() as u32).to_le_bytes()); + for o in &map.far { + out.extend(o.model.to_le_bytes()); + floats(&mut out, &o.position); + floats(&mut out, &o.rotation); + floats(&mut out, &o.scale); + } + // Dictionaries once, then their models. + let mut by_path: BTreeMap<&str, Vec<(u32, u16)>> = BTreeMap::new(); + for (name, (path, k)) in &map.children { + by_path.entry(path).or_default().push((*name, *k)); + } + out.extend((by_path.len() as u32).to_le_bytes()); + for (path, models) in by_path { + text(&mut out, path); + out.extend((models.len() as u32).to_le_bytes()); + for (name, k) in models { + out.extend(name.to_le_bytes()); + out.extend(u32::from(k).to_le_bytes()); + } + } + out +} + +fn decode(data: &[u8], stamp: i64) -> Option { + let rest = data.strip_prefix(MAGIC)?.strip_prefix(&stamp.to_le_bytes())?; + fn floats(number: &mut impl FnMut() -> Option) -> Option<[f32; N]> { + let mut out = [0.0; N]; + for f in &mut out { + *f = f32::from_bits(number()?); + } + Some(out) + } + let mut reader = Reader { data: rest, at: 0 }; + let mut map = Map::default(); + for _ in 0..reader.number()? { + let path = reader.text()?; + let (lo, hi) = (floats(&mut || reader.number())?, floats(&mut || reader.number())?); + map.files.push((path, lo, hi)); + } + for _ in 0..reader.number()? { + let model = reader.number()?; + let mut next = || reader.number(); + map.far.push(Object { + model, + position: floats(&mut next)?, + rotation: floats(&mut next)?, + scale: floats(&mut next)?, + }); + } + for _ in 0..reader.number()? { + let path = reader.text()?; + for _ in 0..reader.number()? { + let (name, k) = (reader.number()?, reader.number()?); + map.children.insert(name, (path.clone(), k as u16)); + } + } + Some(map) +} + +struct Reader<'a> { + data: &'a [u8], + at: usize, +} + +impl Reader<'_> { + fn number(&mut self) -> Option { + let v = self.data.u32_at(self.at)?; + self.at += 4; + Some(v) + } + + fn text(&mut self) -> Option { + let len = self.number()? as usize; + let bytes = self.data.get(self.at..self.at.checked_add(len)?)?; + self.at += len; + String::from_utf8(bytes.to_vec()).ok() + } +} + +/// The game's map: kept, or read from its map files. `progress` gets the files +/// read and their number. +pub fn load(game: &Path, progress: &(dyn Fn(usize, usize) + Sync)) -> Result> { + static LOADED: Mutex)>> = Mutex::new(None); + let index = open_index(game)?; + let stamp = index.changed_at()?.unwrap_or(0); + let mut loaded = LOADED.lock().unwrap_or_else(|e| e.into_inner()); + if let Some((of, at, map)) = &*loaded + && of == game + && *at == stamp + { + return Ok(Arc::clone(map)); + } + let path = cache_path(game).context("no cache directory")?; + let map = match std::fs::read(&path).ok().and_then(|data| decode(&data, stamp)) { + Some(map) => map, + None => { + let map = rage_rpf::in_own_threads(|| build(game, &index_of(game)?, progress))?; + let partial = path.with_extension("bin.part"); + // The cache only saves time. + let _ = std::fs::write(&partial, encode(&map, stamp)).and_then(|()| std::fs::rename(&partial, &path)); + map + } + }; + let map = Arc::new(map); + *loaded = Some((game.to_path_buf(), stamp, Arc::clone(&map))); + Ok(map) +} + +fn index_of(game: &Path) -> Result { + let path = crate::index_path(game).filter(|p| p.exists()).context("the search index is not built yet")?; + Ok(rage_index::Index::open(&path)?) +} + +fn open_index(game: &Path) -> Result { + let index = index_of(game)?; + anyhow::ensure!(index.is_complete()?, "the search index is still being built"); + Ok(index) +} + +/// Where a model is. +#[derive(Debug, Clone)] +enum Source { + File(String), + Child(String, u16), +} + +/// The files of models, by the hash of their name. +fn model_files(game: &Path) -> Result> { + let list = open_index(game)?.files_with_extensions(&[".#dr", ".#ft"])?; + let mut found = HashMap::with_capacity(list.len()); + for (name, vpath) in list { + if let Some((stem, _)) = name.rsplit_once('.') { + found.entry(joaat(stem)).or_insert(vpath); + } + } + Ok(found) +} + +/// Puts objects together: every model once, with all its places. +fn scene( + game: &Path, + map: &Map, + objects: &[Object], + side: u32, + progress: &(dyn Fn(usize, usize) + Sync), +) -> Result { + let files = model_files(game)?; + let mut places: HashMap> = HashMap::new(); + for o in objects { + places.entry(o.model).or_default().push(o.transform()); + } + let mut missing = Vec::new(); + let mut wanted = Vec::new(); + for (model, places) in places { + let source = match (files.get(&model), map.children.get(&model)) { + (Some(file), _) => Source::File(file.clone()), + (None, Some((file, k))) => Source::Child(file.clone(), *k), + (None, None) => { + missing.push((rage_formats::names::value(model), places.len())); + continue; + } + }; + wanted.push((source, places)); + } + missing.sort_by(|a, b| b.1.cmp(&a.1).then(a.0.cmp(&b.0))); + let (total, count) = (wanted.len(), &AtomicUsize::new(0)); + progress(0, total); + // Archives are opened once: that takes longer than reading a model. + let mut archives: BTreeMap)>> = BTreeMap::new(); + for (source, places) in wanted { + let (Source::File(vpath) | Source::Child(vpath, _)) = &source; + if let Some((archive, file)) = vpath.rsplit_once(".rpf/") { + archives.entry(format!("{archive}.rpf")).or_default().push((file.to_owned(), source, places)); + } + } + let models = archives + .into_par_iter() + .flat_map(|(archive, files)| { + let opened = match rage_mods::resolve(game, &archive, None) { + Ok((Node::Rpf9Dir(rpf, _), _)) => rpf.entries().ok().map(|entries| (rpf, entries)), + _ => None, + }; + files.into_par_iter().filter_map(move |(file, source, places)| { + let model = opened.as_ref().and_then(|(rpf, entries)| { + let i = rpf.find(entries, &file)?; + crate::progress::quietly(|| load_model(game, rpf, i, &source, side)).ok() + }); + progress(count.fetch_add(1, Ordering::Relaxed) + 1, total); + model.map(|(name, model)| (name, model, places)) + }) + }) + .collect(); + Ok(MapScene { models, objects: objects.len(), missing }) +} + +fn load_model(game: &Path, rpf: &Rpf9, i: usize, source: &Source, side: u32) -> Result<(String, LoadedModel)> { + let (Source::File(vpath) | Source::Child(vpath, _)) = source; + let mut drawables: Vec<(String, Drawable)> = crate::gta6_models::load(rpf, i)?; + if let Source::Child(_, k) = source { + let k = usize::from(*k); + anyhow::ensure!(k < drawables.len(), "no such model in the dictionary"); + drawables = vec![drawables.swap_remove(k)]; + } + let name = match source { + Source::File(_) => vpath.rsplit('/').next().unwrap_or(vpath).to_owned(), + Source::Child(..) => drawables[0].0.clone(), + }; + let textures = crate::gta6_textures::for_drawables_up_to(game, &drawables, side); + let mut model = LoadedModel::from_drawables(drawables); + if let Some(textures) = textures { + model.add_textures("texture pools".to_owned(), textures); + } + Ok((name.trim_end_matches(".#dr").trim_end_matches(".#ft").to_owned(), model)) +} + +/// The whole map, as it looks from afar. +pub fn overview(game: &Path, progress: &Progress) -> Result { + let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; + anyhow::ensure!(!map.far.is_empty(), "the map files of this game have no distant view"); + scene(game, &map, &map.far, SIDE_FAR, &|done, total| progress("Loading the map's models", done, total)) +} + +/// Gets what is being done, how much of it is done, and how much there is. +pub type Progress<'a> = dyn Fn(&str, usize, usize) + Sync + 'a; + +/// How far around a map file's objects its surroundings are shown (metres). +pub const AROUND: f32 = 120.0; + +/// A map file, with what the others place around it. +pub fn place(game: &Path, vpath: &str, around: f32, progress: &Progress) -> Result { + let (own, extent) = read_map(&crate::metadata::load(game, None, vpath)?.text); + let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; + let close = |objects: Vec<(u8, Object)>| -> Vec { + objects.into_iter().filter(|(level, _)| CLOSE.contains(level)).map(|(_, o)| o).collect() + }; + let has_close = own.iter().any(|(level, _)| CLOSE.contains(level)); + let mut objects = if has_close { close(own) } else { own.into_iter().map(|(_, o)| o).collect() }; + if let Some([lo, hi]) = extent.filter(|_| has_close) { + let middle = [(lo[0] + hi[0]) / 2.0, (lo[1] + hi[1]) / 2.0]; + let near = |p: &[f32; 3]| (0..2).all(|k| (p[k] - middle[k]).abs() <= around); + let others = map.files.iter().filter(|(path, lo, hi)| { + path != vpath && (0..2).all(|k| lo[k] <= middle[k] + around && hi[k] >= middle[k] - around) + }); + let others = by_archive(others.map(|(path, ..)| (String::new(), path.clone())).collect(), |_| true); + let found = Mutex::new(Vec::new()); + each_file( + game, + &others, + |rpf, i, _| { + let Ok(xml) = crate::metadata::from_rpf9(rpf, i) else { return }; + let near = close(read_map(&xml.text).0).into_iter().filter(|o| near(&o.position)); + found.lock().unwrap_or_else(|e| e.into_inner()).extend(near); + }, + &|| {}, + ); + objects.extend(found.into_inner().unwrap_or_else(|e| e.into_inner())); + } + scene(game, &map, &objects, SIDE_NEAR, &|done, total| progress("Loading the map's models", done, total)) +} + +#[cfg(test)] +mod tests { + use super::*; + + const XML: &str = r#" + + + + + + + Prop_A + + + + + + + hash_0000ABCD + + + + + +"#; + + #[test] + fn map_files_are_read() { + let (objects, extent) = read_map(XML); + assert_eq!(extent, Some([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])); + assert_eq!(objects.len(), 2); + assert_eq!((objects[0].0, objects[0].1.model), (5, joaat("prop_a"))); + assert_eq!(objects[0].1.scale, [2.0, 3.0]); + assert_eq!(objects[0].1.transform()[12..15], [10.0, 20.0, 30.0]); + assert_eq!((objects[1].0, objects[1].1.model), (3, 0xABCD)); + } + + #[test] + fn the_cache_reads_back() { + let map = Map { + files: vec![("a.rpf/b.#map".into(), [1.0; 3], [2.0; 3])], + far: read_map(XML).0.into_iter().map(|(_, o)| o).collect(), + children: HashMap::from([(7, ("c.rpf/d.#dd".to_owned(), 3))]), + }; + let data = encode(&map, 5); + assert_eq!(decode(&data, 5).unwrap(), map); + assert!(decode(&data, 6).is_none()); + for n in 0..data.len() { + assert!(decode(&data[..n], 5).is_none()); + } + } +} diff --git a/crates/openrage-app/src/lib.rs b/crates/openrage-app/src/lib.rs index 6a38ad2..4eac124 100644 --- a/crates/openrage-app/src/lib.rs +++ b/crates/openrage-app/src/lib.rs @@ -16,6 +16,7 @@ pub mod gta4_cutscene; pub mod gta4_effects; pub mod gta6_models; pub mod gta6_textures; +pub mod gta6_world; pub mod install; pub mod journal; pub mod licenses; diff --git a/crates/openrage-app/src/metadata.rs b/crates/openrage-app/src/metadata.rs index d718839..4ae297a 100644 --- a/crates/openrage-app/src/metadata.rs +++ b/crates/openrage-app/src/metadata.rs @@ -12,8 +12,10 @@ use rage_resource::Resource; use rage_rpf::vfs::Node; /// Extensions of files that hold metadata. -pub const EXTENSIONS: &[&str] = - &["ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0", "#mt", "#map", "#typ", "#ldb", "#ldbmt"]; +pub const EXTENSIONS: &[&str] = &[ + "ymap", "ytyp", "ymt", "ymf", "cut", "pso", "psin", "rbf0", "#mt", "#map", "#typ", "#ldb", "#ldbmt", "#as", "#cov", + "#kit", "#fc", "#lfc", +]; pub fn is_metadata(name: &str) -> bool { let lower = name.to_ascii_lowercase(); diff --git a/crates/openrage-app/src/render.rs b/crates/openrage-app/src/render.rs index 40777aa..c2be86f 100644 --- a/crates/openrage-app/src/render.rs +++ b/crates/openrage-app/src/render.rs @@ -4,6 +4,7 @@ //! with alpha cut-out, and simple headlight shading. Fast enough for //! interactive previews of game models (tens of thousands of triangles). +use rage_formats::drawable::param; use std::collections::HashMap; use rage_formats::math; @@ -42,13 +43,22 @@ impl Image { /// Decoded textures, shared between frames. pub struct Materials { images: Vec, - /// Indices into `images` per drawable and shader: base colour and the - /// overlay drawn over it on the second UV set (liveries, signs). - per_shader: Vec, Option)>>, + /// Indices into `images` per drawable and shader. + per_shader: Vec>, +} + +/// A shader's textures: indices into [`Materials::images`]. +#[derive(Clone, Copy, Default)] +struct Slots { + base: Option, + /// Drawn over the base on the second UV set (liveries, signs). + overlay: Option, + normal: Option, + specular: Option, } impl Materials { - /// Decodes the base and overlay textures of every shader of every drawable. + /// Decodes the textures of every shader of every drawable. pub fn new(model: &LoadedModel) -> Self { let mut by_name: HashMap> = HashMap::new(); let mut images: Vec = Vec::new(); @@ -74,7 +84,12 @@ impl Materials { .iter() .map(|s| { let opaque = rage_formats::shaders::alpha_is_not_opacity(s.name_hash); - (decode(d, s.base_texture(), opaque), decode(d, s.overlay_texture(), false)) + Slots { + base: decode(d, s.base_texture(), opaque), + overlay: decode(d, s.overlay_texture(), false), + normal: decode(d, s.sampler(param::BUMP_TEX), false), + specular: decode(d, s.sampler(param::SPECULAR_TEX), false), + } }) .collect() }) @@ -82,29 +97,41 @@ impl Materials { Self { images, per_shader } } - fn slot(&self, drawable: usize, shader: u16) -> (Option, Option) { + fn slot(&self, drawable: usize, shader: u16) -> Slots { self.per_shader.get(drawable).and_then(|s| s.get(shader as usize)).copied().unwrap_or_default() } fn image(&self, drawable: usize, shader: u16) -> Option<&Image> { - self.slot(drawable, shader).0.map(|i| &self.images[i]) + self.slot(drawable, shader).base.map(|i| &self.images[i]) } fn overlay_image(&self, drawable: usize, shader: u16) -> Option<&Image> { - self.slot(drawable, shader).1.map(|i| &self.images[i]) + self.slot(drawable, shader).overlay.map(|i| &self.images[i]) } /// RGBA pixels of the base texture of a drawable's shader (for GPU upload). pub fn texture(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { - let i = self.slot(drawable, shader).0?; - let img = &self.images[i]; - Some((i, img.w, img.h, &img.rgba)) + self.pixels(self.slot(drawable, shader).base) } /// RGBA pixels of the overlay texture of a drawable's shader, drawn over /// the base colour with its alpha on the second UV set (for GPU upload). pub fn overlay(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { - let i = self.slot(drawable, shader).1?; + self.pixels(self.slot(drawable, shader).overlay) + } + + /// The same of its normal map. + pub fn normal(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { + self.pixels(self.slot(drawable, shader).normal) + } + + /// The same of its specular map. + pub fn specular(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { + self.pixels(self.slot(drawable, shader).specular) + } + + fn pixels(&self, image: Option) -> Option<(usize, usize, usize, &[u8])> { + let i = image?; let img = &self.images[i]; Some((i, img.w, img.h, &img.rgba)) } diff --git a/crates/openrage-app/src/rpf9.rs b/crates/openrage-app/src/rpf9.rs index 1e2b988..092d50a 100644 --- a/crates/openrage-app/src/rpf9.rs +++ b/crates/openrage-app/src/rpf9.rs @@ -169,6 +169,41 @@ pub fn register(report: Arc) { let _ = REPORT.set(Arc::clone(&report)); rpf9::set_indexer(Arc::new(move |rpf: &Rpf9| index(rpf, &AtomicBool::new(false), &*report))); rpf9::set_namer(Arc::new(|rpf: &Rpf9| load_names(rpf.path()))); + if let Some(learned) = learned_path().and_then(|p| fs::read_to_string(p).ok()) { + rpf9::add_names(learned.lines().map(str::to_owned)); + } +} + +/// Where names that were learned from all of the game's archives are stored. +/// They are checked by their hashes, so they are good for any game folder. +fn learned_path() -> Option { + Some(crate::paths::cache_dir()?.join("gta6-names.txt")) +} + +/// Whether names were learned before. +pub fn knows_names() -> bool { + learned_path().is_some_and(|p| p.is_file()) +} + +/// Names files in a game's index after those in other archives, and keeps the +/// names for when archives are opened. +pub fn learn_names(index: &mut rage_index::Index) -> Result { + let mut found = index.learn_gta6_names()?; + let count = found.len(); + if count == 0 { + return Ok(0); + } + let path = learned_path().context("no cache directory")?; + if let Ok(known) = fs::read_to_string(&path) { + found.extend(known.lines().map(str::to_owned)); + } + found.sort_unstable(); + found.dedup(); + let partial = path.with_extension("txt.part"); + fs::write(&partial, found.join("\n"))?; + fs::rename(&partial, &path)?; + rpf9::add_names(found); + Ok(count) } static REPORT: OnceLock> = OnceLock::new(); diff --git a/crates/openrage-cli/src/cli.rs b/crates/openrage-cli/src/cli.rs index 5321300..966702f 100644 --- a/crates/openrage-cli/src/cli.rs +++ b/crates/openrage-cli/src/cli.rs @@ -129,7 +129,8 @@ pub(crate) enum Command { /// Put a map file (.ymap) together: its objects with their models and textures /// (builds the world cache on first use). Map { - /// Virtual path of the .ymap (GTA IV: .wpl; none with --check). + /// Virtual path of the .ymap (GTA IV: .wpl; GTA VI: .#map, or none for the whole map from afar; none with + /// --check). path: Option, /// Render a picture of the whole map file (PNG). #[arg(long)] diff --git a/crates/openrage-cli/src/cmd/search.rs b/crates/openrage-cli/src/cmd/search.rs index 846b6a7..79e298f 100644 --- a/crates/openrage-cli/src/cmd/search.rs +++ b/crates/openrage-cli/src/cmd/search.rs @@ -18,6 +18,10 @@ pub(crate) fn cmd_index(game_dir: &Path, keys: Option>) -> Result< last = (p.archives_done, Instant::now()); eprintln!(" [{}/{}] {} ({} entries)", p.archives_done, p.archives_total, p.current, p.entries); })?; + let names = openrage_app::rpf9::learn_names(&mut index)?; + if names > 0 { + outln!("Learned {names} names of GTA VI files from other archives."); + } let s = index.stats()?; outln!( "Indexed {} archives, removed {}, unchanged {} in {:.1}s ({} read errors).", diff --git a/crates/openrage-cli/src/cmd/view.rs b/crates/openrage-cli/src/cmd/view.rs index 1ec567b..d8d585c 100644 --- a/crates/openrage-cli/src/cmd/view.rs +++ b/crates/openrage-cli/src/cmd/view.rs @@ -130,17 +130,29 @@ pub(crate) fn cmd_map( ) -> Result<()> { use openrage_app::world; let started = Instant::now(); - let w = world::load(game_dir, keys.clone())?; - let files = world::files(game_dir)?; - if check { - return check_maps(game_dir, &w, &files, keys, started); - } - let path = path.context("which map file? (or --check for all)")?; - let scene = world::load_map(&w, &files, game_dir, keys, path, &|done, total| { - if done % 25 == 0 || done == total { - eprint!("\rloading models: {done}/{total}"); + let show = |what: &str, done: usize, total: usize| { + if done.is_multiple_of(25) || done == total { + eprint!("\r{what}: {done}/{total} "); } - })?; + }; + let scene = if openrage_app::detect::is_gta6_dir(game_dir) { + if check { + bail!("--check is not supported for GTA VI yet"); + } + match path { + Some(path) => openrage_app::gta6_world::place(game_dir, path, openrage_app::gta6_world::AROUND, &show)?, + None => openrage_app::gta6_world::overview(game_dir, &show)?, + } + } else { + let w = world::load(game_dir, keys.clone())?; + let files = world::files(game_dir)?; + if check { + return check_maps(game_dir, &w, &files, keys, started); + } + let path = path.context("which map file? (or --check for all)")?; + world::load_map(&w, &files, game_dir, keys, path, &|done, total| show("loading models", done, total))? + }; + let path = path.unwrap_or("map"); eprintln!(); let placed: usize = scene.models.iter().map(|(_, _, t)| t.len()).sum(); outln!( diff --git a/crates/openrage-gui/src/callbacks.rs b/crates/openrage-gui/src/callbacks.rs index 53e62e3..02d61be 100644 --- a/crates/openrage-gui/src/callbacks.rs +++ b/crates/openrage-gui/src/callbacks.rs @@ -545,6 +545,8 @@ fn wire_settings(ui: &AppWindow) { /// Sound playback. fn wire_sound(ui: &AppWindow) { + let w = ui.as_weak(); + ui.on_open_world_map(move || with_ui(&w, |ui| scene::open_map(ui, String::new()))); let w = ui.as_weak(); ui.on_open_player(move || with_ui(&w, player::open_selected)); let w = ui.as_weak(); diff --git a/crates/openrage-gui/src/debug.rs b/crates/openrage-gui/src/debug.rs index aee0cab..3fb0629 100644 --- a/crates/openrage-gui/src/debug.rs +++ b/crates/openrage-gui/src/debug.rs @@ -213,6 +213,8 @@ pub(crate) fn debug_snapshot_rest(ui: &AppWindow, path: String) { let lower = map.to_ascii_lowercase(); if lower.ends_with(".wpl") || lower.ends_with(".img") { scene::open_map(ui, map); + } else if lower == "world" { + scene::open_map(ui, String::new()); // GTA VI's whole map } else { open_xml_view(ui, map); if let Some(x) = xmlview::newest() { diff --git a/crates/openrage-gui/src/gpu.rs b/crates/openrage-gui/src/gpu.rs index e19c597..8e133f8 100644 --- a/crates/openrage-gui/src/gpu.rs +++ b/crates/openrage-gui/src/gpu.rs @@ -17,7 +17,9 @@ use wgpu::util::DeviceExt; const SAMPLES: u32 = 4; /// Bones the skinning matrices cover (16 KiB of uniforms, the downlevel limit). -const MAX_BONES: usize = 256; +const MAX_BONES: usize = 1024; +/// Bytes of a bone's matrix. +const BONE: u32 = 64; /// Bytes of per-draw data: colour (vec4) and model matrix (mat4). const DRAW_DATA: usize = 16 + 64; const COLOR_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Rgba8Unorm; @@ -44,6 +46,9 @@ struct Globals { // Overlay drawn over the base colour with its alpha, on the second UV set // (vehicle liveries and signs); transparent when there is none. @group(1) @binding(2) var overlay: texture_2d; +// Flat and black when there is none. +@group(1) @binding(3) var normal_map: texture_2d; +@group(1) @binding(4) var specular_map: texture_2d; // Per draw: material colour (multiplied with the texture) and the model's // placement in the scene. struct DrawData { @@ -52,7 +57,7 @@ struct DrawData { }; @group(2) @binding(0) var draw: DrawData; // Skinning matrices per skeleton bone (identity when not animated). -@group(3) @binding(0) var skin: array, 256>; +@group(3) @binding(0) var skin: array, {BONES}>; struct VsIn { @location(0) pos: vec3, @@ -77,8 +82,8 @@ fn vs_main(v: VsIn) -> VsOut { var normal = v.normal; let total = v.weights.x + v.weights.y + v.weights.z + v.weights.w; if (total > 0.0) { - let m = (skin[min(v.joints.x, 255u)] * v.weights.x + skin[min(v.joints.y, 255u)] * v.weights.y - + skin[min(v.joints.z, 255u)] * v.weights.z + skin[min(v.joints.w, 255u)] * v.weights.w) * (1.0 / total); + let m = (skin[min(v.joints.x, {LAST_BONE})] * v.weights.x + skin[min(v.joints.y, {LAST_BONE})] * v.weights.y + + skin[min(v.joints.z, {LAST_BONE})] * v.weights.z + skin[min(v.joints.w, {LAST_BONE})] * v.weights.w) * (1.0 / total); pos = m * pos; normal = (m * vec4(normal, 0.0)).xyz; } @@ -102,6 +107,25 @@ fn fs_main(i: VsOut) -> @location(0) vec4 { n = vec3(0.0, 0.0, 1.0); } n = normalize(n); + // The normal map bends it, along the directions the texture runs in. + let bump = textureSample(normal_map, samp, i.uv).xy * 2.0 - vec2(1.0); + let px = dpdx(i.world); + let py = dpdy(i.world); + let ux = dpdx(i.uv); + let uy = dpdy(i.uv); + let shine = textureSample(specular_map, samp, i.uv); + let layer = textureSample(overlay, samp, i.uv1); + let det = ux.x * uy.y - uy.x * ux.y; + if (abs(det) > 1e-12 && dot(bump, bump) > 0.0004) { + let t = (px * uy.y - py * ux.y) / det; + let b = (py * ux.x - px * uy.x) / det; + let tangent = t - n * dot(n, t); + let bitangent = b - n * dot(n, b); + if (dot(tangent, tangent) > 1e-12 && dot(bitangent, bitangent) > 1e-12) { + let z = sqrt(max(1.0 - dot(bump, bump), 0.05)); + n = normalize(n * z + normalize(tangent) * bump.x + normalize(bitangent) * bump.y); + } + } // Headlight plus a little sky light; double-sided. var light = vec3(0.25 + 0.65 * abs(dot(n, globals.forward.xyz)) + 0.1 * max(n.z, 0.0)); let count = u32(globals.forward.w); @@ -125,9 +149,10 @@ fn fs_main(i: VsOut) -> @location(0) vec4 { light = light + l.color.rgb * amount; } } - let layer = textureSample(overlay, samp, i.uv1); let colour = mix(base.rgb * draw.tint.rgb, layer.rgb, layer.a); - return vec4(colour * light, 1.0); + // What shines towards the viewer. + let glint = pow(abs(dot(n, globals.forward.xyz)), 24.0) * max(max(shine.r, shine.g), shine.b) * 0.25; + return vec4(colour * light + vec3(glint), 1.0); } // Particles: camera-facing squares, built on the CPU in world space. @@ -225,6 +250,10 @@ struct Gpu { white: wgpu::TextureView, /// Transparent 1×1 texture for meshes without an overlay. clear: wgpu::TextureView, + /// 1×1 normal map for meshes without one. + flat: wgpu::TextureView, + /// Bones the skinning can use: devices differ. + bones: usize, } struct Draw { @@ -243,8 +272,8 @@ struct Draw { struct GpuModel { owner: Weak, draws: Vec, - /// Bind groups: 0 is the plain texture, then one per pair of decoded - /// images (base colour, overlay). + /// Bind groups: 0 is the plain texture, then one per combination of + /// decoded images. textures: Vec, } @@ -283,16 +312,22 @@ fn init() -> Option { ..Default::default() })) .ok()?; + let mut limits = wgpu::Limits::downlevel_defaults().using_resolution(adapter.limits()); + // People of GTA VI have about 600 bones. + let wanted = adapter.limits().max_uniform_buffer_binding_size.min((MAX_BONES as u32 * BONE).into()); + limits.max_uniform_buffer_binding_size = limits.max_uniform_buffer_binding_size.max(wanted); + let bones = (limits.max_uniform_buffer_binding_size / u64::from(BONE)) as usize; + let bones = bones.min(MAX_BONES); let (device, queue) = pollster::block_on(adapter.request_device(&wgpu::DeviceDescriptor { label: Some("openrage"), - required_limits: wgpu::Limits::downlevel_defaults().using_resolution(adapter.limits()), + required_limits: limits, ..Default::default() })) .ok()?; let module = device.create_shader_module(wgpu::ShaderModuleDescriptor { label: Some("model"), - source: wgpu::ShaderSource::Wgsl(SHADER.into()), + source: wgpu::ShaderSource::Wgsl(shader_source(bones).into()), }); let globals_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { label: Some("globals"), @@ -336,6 +371,26 @@ fn init() -> Option { }, count: None, }, + wgpu::BindGroupLayoutEntry { + binding: 3, + visibility: wgpu::ShaderStages::FRAGMENT, + ty: wgpu::BindingType::Texture { + sample_type: wgpu::TextureSampleType::Float { filterable: true }, + view_dimension: wgpu::TextureViewDimension::D2, + multisampled: false, + }, + count: None, + }, + wgpu::BindGroupLayoutEntry { + binding: 4, + visibility: wgpu::ShaderStages::FRAGMENT, + ty: wgpu::BindingType::Texture { + sample_type: wgpu::TextureSampleType::Float { filterable: true }, + view_dimension: wgpu::TextureViewDimension::D2, + multisampled: false, + }, + count: None, + }, ], }); let tint_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { @@ -471,6 +526,7 @@ fn init() -> Option { }); let white = upload_texture(&device, &queue, 1, 1, &[255, 255, 255, 255]); let clear = upload_texture(&device, &queue, 1, 1, &[0, 0, 0, 0]); + let flat = upload_texture(&device, &queue, 1, 1, &[128, 128, 255, 255]); Some(Gpu { sprite_blend, sprite_add, @@ -485,6 +541,8 @@ fn init() -> Option { sampler, white, clear, + flat, + bones, }) } @@ -516,8 +574,24 @@ fn upload_texture(device: &wgpu::Device, queue: &wgpu::Queue, w: u32, h: u32, rg texture.create_view(&Default::default()) } -/// A material's textures: base colour and overlay. -fn texture_bind_group(gpu: &Gpu, base: &wgpu::TextureView, overlay: &wgpu::TextureView) -> wgpu::BindGroup { +/// The shader, for devices that can skin with this many bones. +fn shader_source(bones: usize) -> String { + SHADER.replace("{BONES}", &bones.to_string()).replace("{LAST_BONE}", &format!("{}u", bones - 1)) +} + +/// A texture that is only a colour. +fn plain_bind_group(gpu: &Gpu, base: &wgpu::TextureView) -> wgpu::BindGroup { + texture_bind_group(gpu, base, &gpu.clear, &gpu.flat, &gpu.clear) +} + +/// A material's textures: base colour, overlay, normal and specular map. +fn texture_bind_group( + gpu: &Gpu, + base: &wgpu::TextureView, + overlay: &wgpu::TextureView, + normal: &wgpu::TextureView, + specular: &wgpu::TextureView, +) -> wgpu::BindGroup { gpu.device.create_bind_group(&wgpu::BindGroupDescriptor { label: None, layout: &gpu.texture_layout, @@ -525,17 +599,19 @@ fn texture_bind_group(gpu: &Gpu, base: &wgpu::TextureView, overlay: &wgpu::Textu wgpu::BindGroupEntry { binding: 0, resource: wgpu::BindingResource::TextureView(base) }, wgpu::BindGroupEntry { binding: 1, resource: wgpu::BindingResource::Sampler(&gpu.sampler) }, wgpu::BindGroupEntry { binding: 2, resource: wgpu::BindingResource::TextureView(overlay) }, + wgpu::BindGroupEntry { binding: 3, resource: wgpu::BindingResource::TextureView(normal) }, + wgpu::BindGroupEntry { binding: 4, resource: wgpu::BindingResource::TextureView(specular) }, ], }) } /// Uploads every part of the model (placements baked into the vertices). fn upload(gpu: &Gpu, model: &LoadedModel, materials: &Materials) -> (Vec, Vec) { - let mut textures = vec![texture_bind_group(gpu, &gpu.white, &gpu.clear)]; - // Material image index → uploaded texture; (base, overlay) image indices → bind group. + let mut textures = vec![plain_bind_group(gpu, &gpu.white)]; + // Material image index → uploaded texture; image indices → bind group. let mut views: HashMap = HashMap::new(); - let mut texture_of: HashMap<(Option, Option), usize> = HashMap::new(); - texture_of.insert((None, None), 0); + let mut texture_of: HashMap<[Option; 4], usize> = HashMap::new(); + texture_of.insert([None; 4], 0); let mut draws = Vec::new(); for (part_index, part) in model.parts.iter().enumerate() { let Some((_, d)) = model.drawables.get(part.drawable) else { continue }; @@ -569,17 +645,25 @@ fn upload(gpu: &Gpu, model: &LoadedModel, materials: &Materials) -> (Vec, .collect(); let base = materials.texture(part.drawable, mesh.shader).filter(|_| has_uv); let overlay = materials.overlay(part.drawable, mesh.shader).filter(|_| has_uv1); + let normal = materials.normal(part.drawable, mesh.shader).filter(|_| has_uv); + let specular = materials.specular(part.drawable, mesh.shader).filter(|_| has_uv); let mut view = |image: Option<(usize, usize, usize, &[u8])>| { image.map(|(i, w, h, rgba)| { views.entry(i).or_insert_with(|| upload_texture(&gpu.device, &gpu.queue, w as u32, h as u32, rgba)); i }) }; - let key = (view(base), view(overlay)); + let key = [view(base), view(overlay), view(normal), view(specular)]; let texture = *texture_of.entry(key).or_insert_with(|| { - let base = key.0.map_or(&gpu.white, |i| &views[&i]); - let overlay = key.1.map_or(&gpu.clear, |i| &views[&i]); - textures.push(texture_bind_group(gpu, base, overlay)); + let [base, overlay, normal, specular] = key; + let of = |image: Option, none| image.map_or(none, |i| &views[&i]); + textures.push(texture_bind_group( + gpu, + of(base, &gpu.white), + of(overlay, &gpu.clear), + of(normal, &gpu.flat), + of(specular, &gpu.clear), + )); textures.len() - 1 }); let (mut lo, mut hi) = ([f32::MAX; 3], [f32::MIN; 3]); @@ -811,7 +895,7 @@ pub fn render_scene( if !st.sprite_textures.iter().any(|(o, _)| o.as_ptr() == ptr) { let t = &sprite.texture; let view = upload_texture(&gpu.device, &gpu.queue, t.width, t.height, &t.rgba); - st.sprite_textures.push((Arc::downgrade(t), texture_bind_group(gpu, &view, &gpu.clear))); + st.sprite_textures.push((Arc::downgrade(t), plain_bind_group(gpu, &view))); } } if st.targets.as_ref().is_none_or(|t| t.size != (w, h)) { @@ -895,7 +979,7 @@ pub fn render_scene( // A bone palette per skinned item; the others share the rest pose. let palette_group = |skin: Option<&[math::Mat4]>| { - let mut palette = vec![math::IDENTITY; MAX_BONES]; + let mut palette = vec![math::IDENTITY; gpu.bones]; for (slot, m) in palette.iter_mut().zip(skin.unwrap_or_default()) { *slot = *m; } @@ -1078,7 +1162,7 @@ mod tests { #[test] fn shader_is_valid_wgsl() { - let module = naga::front::wgsl::parse_str(super::SHADER).expect("WGSL parses"); + let module = naga::front::wgsl::parse_str(&super::shader_source(super::MAX_BONES)).expect("WGSL parses"); naga::valid::Validator::new(naga::valid::ValidationFlags::all(), naga::valid::Capabilities::empty()) .validate(&module) .expect("WGSL validates"); diff --git a/crates/openrage-gui/src/navigate.rs b/crates/openrage-gui/src/navigate.rs index a7df3c8..9df54e2 100644 --- a/crates/openrage-gui/src/navigate.rs +++ b/crates/openrage-gui/src/navigate.rs @@ -24,6 +24,7 @@ pub(crate) fn start_browsing(ui: &AppWindow) { format!("OpenRAGE — {name}") }); ui.set_window_title(title.into()); + ui.set_has_world_map(with_app(|a| a.game_dir.as_deref().is_some_and(detect::is_gta6_dir))); start_index_update(ui); // GTA VI: its archives are read through once to find their files. That // starts now, not when an archive is opened first. diff --git a/crates/openrage-gui/src/scene.rs b/crates/openrage-gui/src/scene.rs index ebd42c3..d56573c 100644 --- a/crates/openrage-gui/src/scene.rs +++ b/crates/openrage-gui/src/scene.rs @@ -1027,12 +1027,13 @@ fn on_stage(dict: &ClipDictionary, clip: &rage_formats::clip::Clip, time: f32) - } /// Opens a map file (`.ymap`; GTA IV `.wpl` or a map archive) as a scene: every object it places, with its -/// model and textures, an object list and glTF export. +/// model and textures, an object list and glTF export. GTA VI: a `.#map` with what is around it; with an empty +/// path, the whole map from afar. pub fn open_map(ui: &AppWindow, vpath: String) { let Ok(win) = SceneWindow::new() else { return }; win.set_theme_mode(ui.get_theme_mode()); crate::accent::apply(&win); - let name = vpath.rsplit('/').next().unwrap_or(&vpath).to_owned(); + let name = if vpath.is_empty() { "Map" } else { vpath.rsplit('/').next().unwrap_or(&vpath) }.to_owned(); win.set_heading(name.clone().into()); win.set_path(vpath.clone().into()); win.set_timeline(false); @@ -1059,6 +1060,14 @@ pub fn open_map(ui: &AppWindow, vpath: String) { let scene = if openrage_app::gta4::is_gta4_dir(&game_dir) { // GTA IV: a placement file (.wpl) or a map archive (.img). openrage_app::gta4::load_map(&game_dir, &vpath, &|done, total| progress.step(done, total))? + } else if openrage_app::detect::is_gta6_dir(&game_dir) { + use openrage_app::gta6_world; + let show = |what: &str, done, total| progress.set(what, done, total); + if vpath.is_empty() { + gta6_world::overview(&game_dir, &show)? + } else { + gta6_world::place(&game_dir, &vpath, gta6_world::AROUND, &show)? + } } else { let world = openrage_app::world::load(&game_dir, keys.clone())?; let files = openrage_app::world::files(&game_dir)?; diff --git a/crates/openrage-gui/src/search.rs b/crates/openrage-gui/src/search.rs index b71bce8..902833c 100644 --- a/crates/openrage-gui/src/search.rs +++ b/crates/openrage-gui/src/search.rs @@ -58,6 +58,11 @@ pub(crate) fn start_index_update(ui: &AppWindow) { } })?; stopped = stats.cancelled; + let due = stats.archives_indexed > 0 || !openrage_app::rpf9::knows_names(); + if !stopped && due && detect::is_gta6_dir(&game_dir) { + // Names are a help, not needed. + let _ = openrage_app::rpf9::learn_names(&mut index); + } // Names of models, textures, … so hashes in metadata read as names. if let Ok(names) = index.known_names() { rage_formats::names::register(names); diff --git a/crates/openrage-gui/src/xmlview.rs b/crates/openrage-gui/src/xmlview.rs index 423b6e0..fc93658 100644 --- a/crates/openrage-gui/src/xmlview.rs +++ b/crates/openrage-gui/src/xmlview.rs @@ -182,8 +182,9 @@ pub fn open(ui: &AppWindow, vpath: String, xml: Xml) { } let state = Rc::new(RefCell::new(State { entries, expanded, shown: Vec::new(), filter: String::new() })); - // Map files of GTA V: their objects in a 3D scene. - if vpath.to_ascii_lowercase().ends_with(".ymap") + // Map files of GTA V and VI: their objects in a 3D scene. + let lower = vpath.to_ascii_lowercase(); + if (lower.ends_with(".ymap") || lower.ends_with(".#map")) && !crate::with_app(|a| a.game_dir.as_deref().is_some_and(crate::is_rdr2_dir)) { win.set_is_map(true); diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index baa7eec..a94f6db 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -1163,6 +1163,9 @@ export component AppWindow inherits Window { callback suggestion-open(int); callback model-resized(); callback export-gltf(); + // The game's whole map can be shown (GTA VI). + in property has-world-map; + callback open-world-map(); callback open-player(); callback audio-toggle(); callback audio-stop(); @@ -1666,6 +1669,11 @@ export component AppWindow inherits Window { } Menu { title: @tr("Tools"); + if root.has-world-map: MenuItem { + title: @tr("Map of the game (3D)…"); + icon: @image-url("icons/menu/map.svg"); + activated => { root.open-world-map(); } + } if root.plugin-tools.length == 0: MenuItem { title: @tr("No plugin tools"); enabled: false; diff --git a/crates/rage-formats/src/drawable6.rs b/crates/rage-formats/src/drawable6.rs index 826d137..3d3a52c 100644 --- a/crates/rage-formats/src/drawable6.rs +++ b/crates/rage-formats/src/drawable6.rs @@ -331,7 +331,7 @@ impl<'a> Reader<'a> { /// and a word whose low two bits are 0 for a texture, with its number in /// the next eight. A texture (80 bytes) points at 48 to its asset, whose /// second word is the key by which the texture pools know it. - fn base_texture(&self, shader: usize) -> Option { + fn bound_textures(&self, shader: usize) -> Option> { let info = self.s(shader + 32, 8).ok()?; let (textures, parameters) = (usize::from(self.sys[info + 1]), usize::from(self.sys[info + 4])); let list = self.s(shader + 16, textures * 8).ok()?; @@ -348,8 +348,7 @@ impl<'a> Reader<'a> { // In front of an asset: its kind, 6 for a texture of the pools. (self.sys.u32_at(asset.checked_sub(16)?)? == 6).then_some((name, key)) }; - let bound: Vec<(u32, u64)> = (0..parameters).filter_map(key).collect(); - BASE_COLOUR.iter().find_map(|wanted| bound.iter().find(|(name, _)| name == wanted).map(|(_, key)| *key)) + Some((0..parameters).filter_map(key).collect()) } /// The shaders of a drawable, by their name hashes, each with the @@ -365,9 +364,17 @@ impl<'a> Reader<'a> { (0..count) .map(|i| { let shader = self.s(list + i * 8, 64)?; - let texture: Vec = self.base_texture(shader).map(texture_name).into_iter().collect(); - let samplers = texture.iter().map(|name| (crate::drawable::param::DIFFUSE_TEX, name.clone())).collect(); - Ok(Shader { name_hash: self.u32(shader)?, textures: texture, samplers }) + let bound = self.bound_textures(shader).unwrap_or_default(); + let base = BASE_COLOUR.iter().find_map(|wanted| bound.iter().find(|(name, _)| name == wanted)); + // The base colour first, under the name it has in other games. + let mut samplers: Vec<(u32, String)> = base + .map(|(_, key)| (crate::drawable::param::DIFFUSE_TEX, texture_name(*key))) + .into_iter() + .collect(); + let others = bound.iter().filter(|b| Some(*b) != base); + samplers.extend(others.map(|(name, key)| (*name, texture_name(*key)))); + let textures = base.map(|(_, key)| texture_name(*key)).into_iter().collect(); + Ok(Shader { name_hash: self.u32(shader)?, textures, samplers }) }) .collect() } diff --git a/crates/rage-index/src/gta6.rs b/crates/rage-index/src/gta6.rs new file mode 100644 index 0000000..d7a987c --- /dev/null +++ b/crates/rage-index/src/gta6.rs @@ -0,0 +1,141 @@ +//! Names of GTA VI's files from those of others. +//! +//! The files of one thing lie in different archives: its model in one, what +//! rays hit of it in another. An archive only tells the hashes of its files' +//! names; with the names of all archives together, more of them are known. + +use std::collections::{HashMap, HashSet}; + +use rage_core::hash::joaat; +use rage_rpf::rpf9_names::hash64; +use rayon::prelude::*; +use rusqlite::params; + +use crate::{Index, IndexError, update::stem}; + +/// What files that belong to one called otherwise have at the end. +const ENDINGS: [&str; 14] = + ["", "_children", "_lod", "_slod", "_lod1", "_l1", "_l2", "_l3", "_m", "_a", "_b", "_d", "_int", "_ext"]; + +/// Where unnamed files are, and how their names start: `entries/000012_.`. +const UNNAMED: &str = "entries/"; + +/// The hash in the stand-in for an unknown name. +fn unnamed_hash(name: &str) -> Option { + let (slot, rest) = name.split_once('_')?; + let hash = rest.get(..16)?; + let is_stand_in = slot.len() >= 6 && slot.bytes().all(|b| b.is_ascii_digit()) && rest[16..].starts_with('.'); + is_stand_in.then(|| u64::from_str_radix(hash, 16).ok()).flatten() +} + +impl Index { + /// Looks for the names of files without one among those of the other + /// files and the words of the texts, names the files in the index, and + /// gives the names that were found. + pub fn learn_gta6_names(&mut self) -> Result, IndexError> { + struct Unnamed { + id: i64, + vpath: String, + name: String, + } + let mut unnamed: HashMap> = HashMap::new(); + let mut stems: HashSet = HashSet::new(); + { + // Archives keep theirs, as the files in them are found by it. + let mut stmt = self.conn.prepare("SELECT id, vpath, name FROM entries WHERE kind >= 2")?; + let mut rows = stmt.query([])?; + while let Some(r) = rows.next()? { + let name: String = r.get(2)?; + match unnamed_hash(&name) { + Some(hash) => { + unnamed.entry(hash).or_default().push(Unnamed { id: r.get(0)?, vpath: r.get(1)?, name }) + } + None => { + stems.insert(stem(&name).to_owned()); + } + } + } + if unnamed.is_empty() { + return Ok(Vec::new()); + } + let mut stmt = self.conn.prepare("SELECT string FROM hashes")?; + let words = stmt.query_map([], |r| r.get::<_, String>(0))?; + for word in words { + stems.insert(word?); + } + } + let found: HashMap = stems + .par_iter() + .flat_map_iter(|stem| { + let shorter = stem.rmatch_indices('_').take(2).map(|(at, _)| stem[..at].to_owned()); + let longer = ENDINGS.iter().map(move |end| format!("{stem}{end}")); + longer.chain(shorter).filter_map(|name| { + let hash = hash64(name.as_bytes()); + unnamed.contains_key(&hash).then_some((hash, name)) + }) + }) + .collect(); + let tx = self.conn.transaction()?; + { + let mut taken = tx.prepare("SELECT 1 FROM entries WHERE source = (SELECT source FROM entries WHERE id = ?1) AND name_hash = ?2 AND vpath = ?3")?; + let mut rename = + tx.prepare("UPDATE entries SET vpath = ?2, name = ?3, name_hash = ?4, stem_hash = ?5 WHERE id = ?1")?; + for (hash, name) in &found { + for file in unnamed.remove(hash).unwrap_or_default() { + let Some(folder) = file.vpath.strip_suffix(&file.name).and_then(|v| v.strip_suffix(UNNAMED)) else { + continue; + }; + let ending = file.name.split_once('.').map_or("", |(_, ending)| ending); + let name = format!("{name}.{ending}"); + let vpath = format!("{folder}{name}"); + let hash = i64::from(joaat(&name)); + if !taken.exists(params![file.id, hash, vpath])? { + rename.execute(params![file.id, vpath, name, hash, i64::from(joaat(stem(&name)))])?; + } + } + } + } + tx.commit()?; + Ok(found.into_values().collect()) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn stand_ins_tell_the_hash() { + assert_eq!(unnamed_hash("000012_00ff00000000abcd.#bdr"), Some(0x00FF_0000_0000_ABCD)); + assert_eq!(unnamed_hash("prop_000012_00ff00000000abcd.#dr"), None); + assert_eq!(unnamed_hash("000012_00ff.#dr"), None); + } + + #[test] + fn files_are_named_after_those_of_other_archives() { + let dir = std::env::temp_dir().join(format!("openrage-gta6-names-{}", std::process::id())); + let mut index = Index::open(&dir.join("index.sqlite")).unwrap(); + let house = hash64(b"House_01"); + let add = |index: &Index, vpath: &str, source: i64| { + let name = vpath.rsplit('/').next().unwrap(); + index + .conn + .execute( + "INSERT INTO entries(source, vpath, name, kind, size, name_hash, stem_hash) VALUES(?1, ?2, ?3, 3, 9, ?4, 0)", + params![source, vpath, name, i64::from(joaat(name))], + ) + .unwrap(); + }; + add(&index, "levels.rpf/House_01.#dr", 1); + add(&index, &format!("bvh.rpf/entries/000003_{house:016x}.#bdr"), 2); + add(&index, "bvh.rpf/entries/000004_0000000000000001.#bdr", 2); + assert_eq!(index.learn_gta6_names().unwrap(), ["House_01"]); + let count = |vpath: &str| -> i64 { + index.conn.query_row("SELECT count(*) FROM entries WHERE vpath = ?1", [vpath], |r| r.get(0)).unwrap() + }; + assert_eq!(count("bvh.rpf/House_01.#bdr"), 1); + assert_eq!(count("bvh.rpf/entries/000004_0000000000000001.#bdr"), 1); + drop(index); + let _ = std::fs::remove_dir_all(dir); + } +} diff --git a/crates/rage-index/src/lib.rs b/crates/rage-index/src/lib.rs index 3581417..f7fb2f4 100644 --- a/crates/rage-index/src/lib.rs +++ b/crates/rage-index/src/lib.rs @@ -13,6 +13,7 @@ #![forbid(unsafe_code)] mod content; +mod gta6; mod schema; mod search; mod update; diff --git a/crates/rage-index/src/update.rs b/crates/rage-index/src/update.rs index d31c65c..96c42f6 100644 --- a/crates/rage-index/src/update.rs +++ b/crates/rage-index/src/update.rs @@ -89,7 +89,7 @@ struct Batch { partial: bool, } -fn stem(name: &str) -> &str { +pub(crate) fn stem(name: &str) -> &str { name.split_once('.').map_or(name, |(s, _)| s) } diff --git a/crates/rage-rpf/src/lib.rs b/crates/rage-rpf/src/lib.rs index 6f9c7c1..5d28ba2 100644 --- a/crates/rage-rpf/src/lib.rs +++ b/crates/rage-rpf/src/lib.rs @@ -70,3 +70,19 @@ pub use rpf7::{Encryption, Entry, EntryId, EntryKind, Rpf7}; pub use rpf8::Rpf8; pub use rpf9::Rpf9; pub use writer::{ArchiveWriter, RawEntry, entry_for, file_entry, resource_entry}; + +/// Runs something parallel that others wait for, on threads of its own. The +/// shared ones may all be waiting for it; and one that waited for it there +/// could meanwhile take up work that needs the result, and wait for itself. +pub fn in_own_threads(work: impl FnOnce() -> R + Send) -> R { + std::thread::scope(|scope| { + let thread = scope.spawn(|| match rayon::ThreadPoolBuilder::new().build() { + Ok(pool) => pool.install(work), + Err(_) => work(), + }); + match thread.join() { + Ok(result) => result, + Err(panic) => std::panic::resume_unwind(panic), + } + }) +} diff --git a/crates/rage-rpf/src/rpf9.rs b/crates/rage-rpf/src/rpf9.rs index 6957dc6..d63651f 100644 --- a/crates/rage-rpf/src/rpf9.rs +++ b/crates/rage-rpf/src/rpf9.rs @@ -41,6 +41,7 @@ use rayon::prelude::*; use crate::RpfError; use crate::rpf9_index::{NativeEntry, Storage}; use crate::rpf9_native::NativeArchive; +pub use crate::rpf9_native::add_names; const MAGIC: u32 = 0x5250_4639; /// Length of the header in front of the table of contents. diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs index becceaf..3822754 100644 --- a/crates/rage-rpf/src/rpf9_native.rs +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -4,7 +4,7 @@ use std::collections::{BTreeSet, HashMap}; use std::fs::File; use std::io::{BufReader, Read, Seek, SeekFrom, Write}; use std::path::{Path, PathBuf}; -use std::sync::{Arc, Mutex, OnceLock}; +use std::sync::{Arc, Mutex, OnceLock, RwLock}; use rayon::prelude::*; @@ -23,6 +23,21 @@ impl std::fmt::Debug for Materials { } } +/// Names of files that were learned from other archives, by their hash. +static LEARNED: RwLock>>> = RwLock::new(None); + +/// Adds names files may have, without their extension. Archives opened from +/// now on use them. +pub fn add_names(names: impl IntoIterator) { + let mut learned = LEARNED.write().unwrap_or_else(|e| e.into_inner()); + let learned = learned.get_or_insert_default(); + learned.extend(names.into_iter().map(|name| (rpf9_names::hash64(name.as_bytes()), name.into_boxed_str()))); + OPENED.lock().unwrap_or_else(|e| e.into_inner()).clear(); +} + +type OpenedKey = (PathBuf, u64, u64, Option); +static OPENED: Mutex)>> = Mutex::new(Vec::new()); + /// Reuses runtime tables, never a checked-in or on-disk key cache. pub(crate) fn materials(path: &Path) -> Option> { type Key = (PathBuf, u64, Option); @@ -53,16 +68,12 @@ fn load_materials(executable: &Path) -> Option { drop(bytes); let nameless = Arc::new(Materials { cipher, names: Default::default() }); let mut strings = Vec::new(); - let mut read = || { + let read = || { for archive in ["common.rpf", "data.rpf"].map(|name| executable.with_file_name(name)) { strings.extend(NativeArchive::strings(&archive, &nameless).unwrap_or_default()); } }; - // Threads of its own: the shared ones may all be waiting for this. - match rayon::ThreadPoolBuilder::new().build() { - Ok(pool) => pool.install(read), - Err(_) => read(), - } + crate::in_own_threads(read); strings.iter().for_each(|text| names.add(text)); let cipher = Arc::into_inner(nameless)?.cipher; Some(Materials { cipher, names }) @@ -152,8 +163,6 @@ impl NativeArchive { /// The archive at `base` in a file, with the names its own files tell. /// The last few opened ones are kept. pub fn cached(path: &Path, base: u64, extent: u64) -> Option> { - type Key = (PathBuf, u64, u64, Option); - static OPENED: Mutex)>> = Mutex::new(Vec::new()); let key = (path.to_path_buf(), base, extent, std::fs::metadata(path).and_then(|m| m.modified()).ok()); if let Some((_, found)) = OPENED.lock().ok()?.iter().find(|(k, _)| *k == key) { return Some(Arc::clone(found)); @@ -178,6 +187,7 @@ impl NativeArchive { /// Gives the entries their paths: names by slot, then the known ones. fn name_entries(&mut self, learned: &HashMap) { + let shared = LEARNED.read().unwrap_or_else(|e| e.into_inner()); self.paths = Vec::with_capacity(self.catalog.entries.len()); self.by_path = HashMap::with_capacity(self.catalog.entries.len()); for entry in &self.catalog.entries { @@ -188,6 +198,11 @@ impl NativeArchive { let hash = entry.name_hash64?; self.materials.names.find(hash, entry.name_hash32, entry.type_id) }) + .or_else(|| { + // Archives keep the place they were found at. + let hash = entry.name_hash64.filter(|_| entry.type_id != 0)?; + Some(rpf9_names::with_type(shared.as_ref()?.get(&hash)?, entry.type_id)) + }) .filter(|name| !self.by_path.contains_key(&name.to_ascii_lowercase())); let path = name.unwrap_or_else(|| { let sniffed = self.sniffed.get(&entry.slot).cloned(); From b3fdca9c0faf265d3802a4cad47b249c3f72aab9 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 16:06:43 +0100 Subject: [PATCH 22/31] Website and README: GTA VI works Co-Authored-By: Claude Opus 5.5 --- README.md | 13 +++++--- site/config.toml | 4 +-- site/content/_index.md | 32 +++++++++++++------- site/content/gta-vi.md | 63 +++++++++++++++++++++++++++++++++++++++ site/content/viewers.md | 2 +- site/static/style.css | 13 ++++++++ site/templates/index.html | 4 +-- 7 files changed, 111 insertions(+), 20 deletions(-) create mode 100644 site/content/gta-vi.md diff --git a/README.md b/README.md index 7367eaf..c9b9f45 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,12 @@ # OpenRAGE -**The open-source successor to OpenIV — mod GTA V and Red Dead Redemption 2 on Linux and Windows.** +**The open-source successor to OpenIV — mod GTA V and Red Dead Redemption 2, and explore GTA VI, on Linux and Windows.** + +### 🌴 New: GTA VI works! + +**Browse and search its RPF9 archives, view the whole map in 3D, models, textures and animations, play sounds and videos.**
+[What works in GTA VI](https://two-play.github.io/openrage/gta-vi/) (read-only preview, with your own copy of the game) Browse and search every archive, preview textures, models, sounds and animations, read metadata as XML,
edit game text and install `.oiv` packages — compatible with OpenIV's `mods` folder, with undo. @@ -34,13 +39,13 @@ edit game text and install `.oiv` packages — compatible with OpenIV's `mods` f OpenIV's last release was in January 2022. OpenRAGE picks up where it left off and stays compatible with it. +- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; see the whole map in 3D; preview models with their materials, collisions, navigation meshes, textures, metadata and text tables, play sounds and videos, search names and text, list clip dictionaries and play them on vehicles, weapons, props and parts of people. - **Explorer and search:** archives, even nested ones, open like folders, as a list or as icons; names, hashes and full text of the whole game in milliseconds. - **Every major format:** textures, models, audio, videos (Bink 1 and 2, with a player), animations, metadata as XML, collisions, paths, nav meshes, cutscenes, scripts, game text. - **Coming from OpenIV?** Your `mods` folder and `.oiv` packages work as they are ([how to switch](https://two-play.github.io/openrage/getting-started/#coming-from-openiv)). - **Mods, safely:** changes go to OpenIV's `mods` folder, never into your game files; every change and every `.oiv` package can be undone. - **Models in:** replace props and vehicle bodies of GTA V Enhanced with your own OBJ models; doors and bonnets keep moving (preview). - **ASI mods:** see and switch GTA V's ASI mods, and on Linux let Proton load the ASI loader with one click. -- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; preview models, collisions, navigation meshes, textures, metadata and text tables, play sounds and videos, search names and text, list clip dictionaries and play them on vehicles, weapons, props and parts of people. - **Tested on the whole game:** every format is checked against every file of GTA V ([details](https://two-play.github.io/openrage/#status)).
@@ -61,8 +66,8 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p | Game | Archives | Formats | |---|---|---| | **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) | +| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`) · texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) · collisions (`.#bn`) · navigation meshes (`.#nv`) · maps in 3D · metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt` and others) · audio · videos | | **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) | -| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`) · texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) · collisions (`.#bn`) · navigation meshes (`.#nv`) · metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt`) · audio · videos | | **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) | **Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/) @@ -88,7 +93,7 @@ cargo build --release # target/release/openrage-gui and target/release/open - [Explorer and search](https://two-play.github.io/openrage/guide/): the window, keyboard, search, settings - [Viewing files](https://two-play.github.io/openrage/viewers/): what each format shows and exports - [Modding](https://two-play.github.io/openrage/modding/): edit mode, editing archives, undo, `.oiv` packages, the `mods` folder -- [GTA IV](https://two-play.github.io/openrage/gta-iv/) and [Red Dead Redemption 2](https://two-play.github.io/openrage/rdr2/): setup and what works per game +- [GTA VI](https://two-play.github.io/openrage/gta-vi/), [GTA IV](https://two-play.github.io/openrage/gta-iv/) and [Red Dead Redemption 2](https://two-play.github.io/openrage/rdr2/): setup and what works per game - [Command line](https://two-play.github.io/openrage/cli/): every `openrage` command - [Writing plugins](https://two-play.github.io/openrage/plugins/): sandboxed WebAssembly plugins, SDK and API - [Development](https://two-play.github.io/openrage/development/): building from source, build environment, releases, project layout diff --git a/site/config.toml b/site/config.toml index 768c628..b80c746 100644 --- a/site/config.toml +++ b/site/config.toml @@ -2,7 +2,7 @@ # Content lives in content/ (Markdown), layout in templates/, CSS/JS in static/. base_url = "https://two-play.github.io/openrage" title = "OpenRAGE" -description = "The free, open-source successor to OpenIV: mod GTA V and explore Red Dead Redemption 2 on Linux and Windows." +description = "The free, open-source successor to OpenIV: mod GTA V and explore GTA VI and Red Dead Redemption 2 on Linux and Windows." default_language = "en" compile_sass = false build_search_index = false @@ -40,7 +40,7 @@ pages = [ [[extra.docs]] title = "Games" -pages = [["gta-iv.md", "GTA IV"], ["rdr2.md", "Red Dead Redemption 2"]] +pages = [["gta-vi.md", "GTA VI"], ["gta-iv.md", "GTA IV"], ["rdr2.md", "Red Dead Redemption 2"]] [[extra.docs]] title = "Develop" diff --git a/site/content/_index.md b/site/content/_index.md index 99e6500..825bc5b 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -3,15 +3,18 @@ # TOML note: plain keys must stay above the first [table] / [[list]] entry. # Strings are Markdown (links, `code`, **bold**). Images are file names in docs/images/. title = "OpenRAGE – the open-source OpenIV successor" -description = "OpenRAGE is the free, open-source successor to OpenIV: mod GTA V (Legacy and Enhanced) and explore Red Dead Redemption 2 on Linux and Windows, with OpenIV's mods folder and .oiv packages, plus undo." +description = "OpenRAGE is the free, open-source successor to OpenIV: mod GTA V (Legacy and Enhanced) and explore GTA VI and Red Dead Redemption 2 on Linux and Windows, with OpenIV's mods folder and .oiv packages, plus undo." [extra] +# Announcement at the top of the page, with a link to a page. +announcement = "**New: GTA VI works.** Browse and search its archives, see the whole map in 3D, view models, textures and animations, play sounds and videos." +announcement_link = "gta-vi.md" # Small line above the headline. eyebrow = "The open-source OpenIV successor" # **bold** parts are shown in the accent colour. headline = "The open modding toolkit for **RAGE engine** games" # One short line under the headline; the longer description belongs in features_intro. -lead = "OpenIV's last release was in 2022. OpenRAGE picks up where it left off: same `mods` folder and `.oiv` packages, now open source, on Linux and Windows, ready for GTA V Enhanced and RDR2." +lead = "OpenIV's last release was in 2022. OpenRAGE picks up where it left off: same `mods` folder and `.oiv` packages, now open source, on Linux and Windows, ready for **GTA VI**, GTA V Enhanced and RDR2." notice = """ OpenRAGE is an independent community project. It is not affiliated with or endorsed by Rockstar Games or Take-Two Interactive. It is not made by or affiliated with the OpenIV team either. @@ -24,7 +27,7 @@ features_intro = "What OpenRAGE can open, show and change today." screenshots_title = "Screenshots" screenshots_intro = "Click a picture to enlarge it, arrow keys browse. The screenshots show files from the author's own copy of the game." games_title = "Supported games" -games_intro = "GTA V comes first and Red Dead Redemption 2 can be explored. **GTA VI is next:** support follows as fast as possible once it comes to PC. GTA IV can be explored and modded too: archives, textures, models, collisions, animations, texts, maps in 3D and whole cutscenes." +games_intro = "GTA V comes first. **GTA VI can be explored already** (read-only preview), and so can Red Dead Redemption 2. GTA IV can be explored and modded too: archives, textures, models, collisions, animations, texts, maps in 3D and whole cutscenes." details_summary = "Checked against the whole game" download_intro = "Unpack the archive and run `openrage-gui` (or `openrage` for the command line). On first start the GUI detects your game and sets up the keys." why_title = "Why switch from OpenIV" @@ -45,6 +48,11 @@ alt = "OpenRAGE explorer showing a vehicles archive of GTA V with a 3D preview o # ---------------------------------------------------------------- Highlights +[[extra.features]] +icon = "🌴" +title = "GTA VI" +text = "The whole map in 3D, models, textures, animations, sounds, videos, metadata. [What works](https://two-play.github.io/openrage/gta-vi/)." + [[extra.features]] icon = "🗂️" title = "Explorer" @@ -158,6 +166,14 @@ archives = "RPF7 read, incl. nested archives; edit in place in the mods folder, formats_status = "ok" formats = "textures · models · audio · animations · metadata · text tables · cutscenes · scripts · collisions · paths" +[[extra.games]] +name = "GTA VI" +variant = "preview" +archives_status = "partial" +archives = "RPF9 read, incl. nested archives, with your own copy of the game (Xbox Series build); browsing, searching and extracting ([details](https://two-play.github.io/openrage/gta-vi/))" +formats_status = "partial" +formats = "models with skeletons (glTF export), animations, textures, collisions, navigation meshes, metadata and maps as XML, game text, audio and videos (read-only)" + [[extra.games]] name = "Red Dead Redemption 2" archives_status = "ok" @@ -165,12 +181,6 @@ archives = "RPF8 read: decryption with keys from your own game, Oodle decompress formats_status = "partial" formats = "textures, models (viewer, glTF export), texts, metadata, audio and animations (read-only)" -[[extra.games]] -name = "GTA VI" -archives_status = "planned" -archives = "as fast as possible once GTA VI comes to PC" -formats_status = "none" - [[extra.games]] name = "GTA IV" variant = "Complete Edition" @@ -194,7 +204,7 @@ text = "Native on both, Steam and Proton installs included." [[extra.reasons]] icon = "🛠️" title = "Actively developed" -text = "Supports GTA V Enhanced, GTA VI follows as fast as possible. OpenIV's last release, 4.1, is from January 2022." +text = "Supports GTA V Enhanced and, as a preview, GTA VI. OpenIV's last release, 4.1, is from January 2022." [[extra.reasons]] icon = "↩️" @@ -245,7 +255,7 @@ edge = "openrage" [[extra.compare]] feature = "Other games" openiv = "GTA IV, EFLC, Max Payne 3" -openrage = "RDR2 archives, textures, models, texts, metadata, audio and animations; GTA IV archives, textures, models, texts, placements and cutscenes; GTA VI as soon as it is on PC" +openrage = "RDR2 archives, textures, models, texts, metadata, audio and animations; GTA IV archives, textures, models, texts, placements and cutscenes; GTA VI archives, models, textures, animations, audio, videos and metadata (preview)" edge = "openiv" [[extra.compare]] diff --git a/site/content/gta-vi.md b/site/content/gta-vi.md new file mode 100644 index 0000000..80595c8 --- /dev/null +++ b/site/content/gta-vi.md @@ -0,0 +1,63 @@ ++++ +title = "GTA VI" +description = "GTA VI in OpenRAGE: browse and search RPF9 archives, view textures, models, animations, collisions, navigation meshes and metadata, play sounds and videos." + +[extra] +docs = true +lead = "Open GTA VI's RPF9 archives like folders, search the whole game and look at what is inside: models, textures, animations, sounds, videos and metadata. Read-only for now." +toc = true ++++ + +> [!NOTE] +> GTA VI support is a preview. It reads the build for Xbox Series (Scarlett) and changes nothing: archives cannot be +> edited. OpenRAGE contains no game files and no keys, and does not help to obtain either; you need your own copy. + +## Setup + +Choose the folder that contains `game_scarlett_master.exe` or RPF9 archives in the setup dialog, or under +**File → Switch game… → Add a game…**. + +With the supported executable beside the archives, OpenRAGE reads their tables of contents with the keys in it. The +game is not started, and the keys are not stored. Without the executable, or with another build, archives are shown in +a recovery view: their files are found by their content, grouped by type and offset, and without folders. + +On the command line: + +``` +openrage --game ls common.rpf +openrage --game index +openrage --game search walk +``` + +## At a glance + +| What | Files | Status | +|---|---|---| +| Archives | `.rpf` (RPF9) | browse and extract, nested archives too | +| Models | `.#dr`, `.#ft`, `.#dd` | view with skeleton, textures, normal and specular maps, export glTF | +| Maps | `.#map` | a place with its surroundings, or the whole map from afar, in 3D; export glTF | +| Animations | `.#cd` | play on vehicles, weapons, props and parts of people | +| Textures | `.ttpf`, `.#td` | view and export; volumes are not read | +| Collisions | `.#bn` | view in 3D | +| Navigation meshes | `.#nv` | view in 3D | +| Metadata, maps, archetypes | `.#mt`, `.#map`, `.#typ`, `.#as`, `.#cov`, `.#kit` and others | read as XML | +| Game text | `.#ldbmt` | read and search | +| Sounds | `.awc` | play, export WAV | +| Videos | `.bk2` | play in a window of their own | +| Search | everything above | names, hashes and full text | + +Not read yet: scripts (`.#script`), particle effects (`.#pt`) and texture volumes. + +## The map + +**Tools → Map of the game (3D)…** shows the whole world from afar. The search index must be complete; the first time, +all map files are read, which takes a minute or two. A single `.#map` opens as XML; **Show in 3D** there puts its objects +together with those around it. Interiors are not filled yet. + +On the command line: `openrage map --render map.png`, or `openrage map `. + +## Names + +Archives store hashes of their files' names. OpenRAGE finds the names in the executable, in the game's metadata, in the +files themselves and, once the search index is built, in all the other archives. Files whose name is not known are +listed under `entries/`. diff --git a/site/content/viewers.md b/site/content/viewers.md index cc22082..0f4399d 100644 --- a/site/content/viewers.md +++ b/site/content/viewers.md @@ -8,7 +8,7 @@ lead = "Format by format: what you see, what you can export, and what is not the toc = true +++ -This page describes GTA V. [GTA IV](@/gta-iv.md) and [Red Dead Redemption 2](@/rdr2.md) have their own pages. +This page describes GTA V. [GTA VI](@/gta-vi.md), [GTA IV](@/gta-iv.md) and [Red Dead Redemption 2](@/rdr2.md) have their own pages. Changing files is described in [Modding](@/modding.md). ## Textures diff --git a/site/static/style.css b/site/static/style.css index 767843e..2134214 100644 --- a/site/static/style.css +++ b/site/static/style.css @@ -733,3 +733,16 @@ table.compare td.edge::after { /* Shorter sections: more air between them, compact tables in prose */ .prose h3 { margin-top: 1.8rem; } + +/* Announcement above the hero headline */ +.hero .announcement { margin: 0 0 1.25rem; } +.hero .announcement a { + display: inline-block; + padding: 0.55rem 1.1rem; + border-radius: 999px; + background: var(--accent); + color: var(--accent-text, #fff); + text-decoration: none; + line-height: 1.35; +} +.hero .announcement a:hover, .hero .announcement a:focus-visible { text-decoration: underline; } diff --git a/site/templates/index.html b/site/templates/index.html index de4b9ca..f428323 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -6,6 +6,7 @@
+ {%- if x?.announcement %}

{{ x.announcement | markdown(inline=true) | safe }}

{% endif %} {%- if x?.eyebrow %}

{{ x.eyebrow }}

{% endif %}

{{ x.headline | markdown(inline=true) | safe }}

{{ x.lead | markdown(inline=true) | safe }}

@@ -19,8 +20,7 @@

{{ x.headline | markdown(inline=true) | safe }}

  • Latest release
  • Linux & Windows
  • -
  • GTA V · RDR2 archives
  • -
  • GTA VI next
  • +
  • GTA VI · GTA V · RDR2 · GTA IV
  • GPL-3.0
From 3a7e7ae9fe08982a7438e6f1b2c537e7dcbc7472 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 17:16:55 +0100 Subject: [PATCH 23/31] Map: fly through it with details loaded around the camera; orbit on a circle The whole map of GTA VI shows the level of detail that fits where the camera is, after the tree in the map files. Maps and cutscenes get a flying camera; the wheel sets its speed, in model views too. Orbiting no longer shifts the camera with the angle, which felt like an ellipse. Depth is reversed, so that scenes of kilometres do not flicker. Files listed before their name was learned are still found. Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/gta6_world.rs | 551 +++++++++++++++++++++----- crates/openrage-app/src/render.rs | 17 +- crates/openrage-gui/src/debug.rs | 13 +- crates/openrage-gui/src/fly.rs | 148 +++++++ crates/openrage-gui/src/gpu.rs | 13 +- crates/openrage-gui/src/main.rs | 2 + crates/openrage-gui/src/scene.rs | 209 +++++++++- crates/openrage-gui/src/stream.rs | 173 ++++++++ crates/openrage-gui/src/viewer.rs | 78 +--- crates/openrage-gui/ui/app.slint | 55 ++- crates/rage-rpf/src/rpf9_native.rs | 11 +- site/content/gta-vi.md | 6 +- 12 files changed, 1069 insertions(+), 207 deletions(-) create mode 100644 crates/openrage-gui/src/fly.rs create mode 100644 crates/openrage-gui/src/stream.rs diff --git a/crates/openrage-app/src/gta6_world.rs b/crates/openrage-app/src/gta6_world.rs index cf129da..4ceb302 100644 --- a/crates/openrage-app/src/gta6_world.rs +++ b/crates/openrage-app/src/gta6_world.rs @@ -6,7 +6,7 @@ //! them is kept (`/openrage/gta6-world-.bin`) until the search //! index changes. -use std::collections::{BTreeMap, HashMap}; +use std::collections::{BTreeMap, HashMap, HashSet}; use std::path::{Path, PathBuf}; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::{Arc, Mutex}; @@ -17,18 +17,20 @@ use rage_core::hash::joaat; use rage_formats::drawable::Drawable; use rage_formats::math::{self, Mat4}; use rage_rpf::Rpf9; -use rage_rpf::vfs::Node; +use rage_rpf::vfs::Node as Node9; use rayon::prelude::*; use crate::models::LoadedModel; use crate::world::MapScene; -const MAGIC: &[u8; 8] = b"ORG6MAP1"; +const MAGIC: &[u8; 8] = b"ORG6MAP2"; /// Levels of detail: the models seen close, and the ones that stand for whole /// neighbourhoods from afar. const CLOSE: [u8; 2] = [0, 5]; const FAR: u8 = 3; +/// The levels between, up to the far one. +const LEVELS: std::ops::RangeInclusive = 1..=FAR; /// The sides of textures in views of many models. const SIDE_NEAR: u32 = 256; const SIDE_FAR: u32 = 128; @@ -51,13 +53,25 @@ impl Object { } } +/// An object that stands for others from afar: for those whose parent it is. +#[derive(Debug, Clone, PartialEq)] +struct Node { + /// The map file (the hash of its name) and the place in it. + key: (u32, u32), + parent: Option<(u32, u32)>, + level: u8, + /// Nearer than this, the others are shown. + reach: f32, + object: Object, +} + /// What is kept of the map files. #[derive(Debug, Default, PartialEq)] pub struct Map { /// Map files with the box around what they place. files: Vec<(String, [f32; 3], [f32; 3])>, - /// The objects that stand for the world from afar. - far: Vec, + /// The objects that stand for others from afar. + nodes: Vec, /// Models in dictionaries, by the hash of their name: the dictionary and /// the place in it. children: HashMap, @@ -81,7 +95,7 @@ fn each_file( done: &(dyn Fn() + Sync), ) { archives.par_iter().for_each(|(archive, files)| { - let Ok((Node::Rpf9Dir(rpf, _), _)) = rage_mods::resolve(game, archive, None) else { return }; + let Ok((Node9::Rpf9Dir(rpf, _), _)) = rage_mods::resolve(game, archive, None) else { return }; let Ok(entries) = rpf.entries() else { return }; files.par_iter().for_each(|file| { if let Some(i) = rpf.find(&entries, file) { @@ -112,28 +126,55 @@ fn name_hash(name: &str) -> u32 { hash.unwrap_or_else(|| joaat(name)) } -/// Objects with their level of detail, and the box around them. -type Placements = (Vec<(u8, Object)>, Option<[[f32; 3]; 2]>); +/// What a map file holds. +#[derive(Default)] +struct Placements { + /// Hash of the file's name. + name: u32, + /// The box around what it places. + extent: Option<[[f32; 3]; 2]>, + /// In the order of the file. + entries: Vec, +} + +/// A placed object with its place among the levels of detail. +struct Entry { + level: u8, + parent: Option<(u32, u32)>, + reach: f32, + object: Object, +} + +impl Placements { + fn has_close(&self) -> bool { + self.entries.iter().any(|e| CLOSE.contains(&e.level)) + } + + fn close(self) -> impl Iterator { + self.entries.into_iter().filter(|e| CLOSE.contains(&e.level)).map(|e| e.object) + } +} -/// What a map file places, with the level of detail, and the box around it. -/// The XML is read by lines: there is a lot of it, and it is our own. +/// What a map file places. The XML is read by lines: there is a lot of it, +/// and it is our own. fn read_map(xml: &str) -> Placements { - let mut objects = Vec::new(); + let mut map = Placements::default(); let (mut lo, mut hi) = (None, None); let mut now = Object { model: 0, position: [0.0; 3], rotation: [0.0, 0.0, 0.0, 1.0], scale: [1.0; 2] }; - let mut inside = false; + // The files with the objects that stand for this one's. + let mut parents: Vec = Vec::new(); + let (mut in_parents, mut in_entities, mut in_extensions) = (false, false, false); + let (mut reach, mut parent_index) = (0.0, -1.0); let value = |line: &str| attributes(line, ["value"]).map(|[v]| v); for line in xml.lines().map(str::trim) { - if line.starts_with("") || line.starts_with(""); - } else if line == "" { - inside = false; - } else if line.starts_with("", "<") { + if in_extensions { + in_extensions = line != ""; + } else if in_entities { + if line == "" || line.starts_with("") { + in_extensions = true; + } else if line == "" { + in_entities = false; + } else if let Some(name) = between(line, "", "<") { now.model = name_hash(name); } else if line.starts_with(" Placements { now.scale[0] = value(line).unwrap_or(1.0); } else if line.starts_with("= 0.0 + && file >= 0.0 + { + entry.parent = parents.get(file as usize).map(|file| (*file, parent_index as u32)); } + } else if line.starts_with("") || line.starts_with(""); + } else if line == "" { + in_parents = true; + } else if line == "" { + in_parents = false; + } else if let Some(name) = between(line, "", "<").filter(|_| in_parents) { + parents.push(name_hash(name)); + } else if let Some(name) = between(line, "", "<").filter(|_| map.name == 0) { + map.name = name_hash(name); + } else if line.starts_with(" Vec { floats(&mut out, lo); floats(&mut out, hi); } - out.extend((map.far.len() as u32).to_le_bytes()); - for o in &map.far { - out.extend(o.model.to_le_bytes()); - floats(&mut out, &o.position); - floats(&mut out, &o.rotation); - floats(&mut out, &o.scale); + out.extend((map.nodes.len() as u32).to_le_bytes()); + for n in &map.nodes { + let parent = n.parent.unwrap_or((u32::MAX, u32::MAX)); + for v in [n.key.0, n.key.1, parent.0, parent.1, u32::from(n.level), n.object.model] { + out.extend(v.to_le_bytes()); + } + floats(&mut out, &[n.reach]); + floats(&mut out, &n.object.position); + floats(&mut out, &n.object.rotation); + floats(&mut out, &n.object.scale); } // Dictionaries once, then their models. let mut by_path: BTreeMap<&str, Vec<(u32, u16)>> = BTreeMap::new(); @@ -268,14 +345,13 @@ fn decode(data: &[u8], stamp: i64) -> Option { map.files.push((path, lo, hi)); } for _ in 0..reader.number()? { - let model = reader.number()?; let mut next = || reader.number(); - map.far.push(Object { - model, - position: floats(&mut next)?, - rotation: floats(&mut next)?, - scale: floats(&mut next)?, - }); + let (key, parent) = ((next()?, next()?), (next()?, next()?)); + let (level, model) = (next()? as u8, next()?); + let [reach] = floats(&mut next)?; + let object = + Object { model, position: floats(&mut next)?, rotation: floats(&mut next)?, scale: floats(&mut next)? }; + map.nodes.push(Node { key, parent: (parent.0 != u32::MAX).then_some(parent), level, reach, object }); } for _ in 0..reader.number()? { let path = reader.text()?; @@ -366,6 +442,56 @@ fn model_files(game: &Path) -> Result> { Ok(found) } +/// A loaded model: the hash of its name, its name, and itself. +pub type Loaded = (u32, String, LoadedModel); + +/// Where the game's models are. +struct Models<'a> { + game: &'a Path, + files: &'a HashMap, + map: &'a Map, +} + +impl Models<'_> { + fn source(&self, model: u32) -> Option { + let file = self.files.get(&model).map(|file| Source::File(file.clone())); + file.or_else(|| self.map.children.get(&model).map(|(file, k)| Source::Child(file.clone(), *k))) + } + + /// Loads models; those that cannot be read are left out. + fn load(&self, wanted: &[u32], side: u32, progress: &(dyn Fn(usize, usize) + Sync)) -> Vec { + // Archives are opened once: that takes longer than reading a model. + let mut archives: BTreeMap> = BTreeMap::new(); + for &model in wanted { + let Some(source) = self.source(model) else { continue }; + let (Source::File(vpath) | Source::Child(vpath, _)) = &source; + if let Some((archive, file)) = vpath.rsplit_once(".rpf/") { + archives.entry(format!("{archive}.rpf")).or_default().push((file.to_owned(), model, source)); + } + } + let total = archives.values().map(Vec::len).sum(); + let count = &AtomicUsize::new(0); + progress(0, total); + archives + .into_par_iter() + .flat_map(|(archive, files)| { + let opened = match rage_mods::resolve(self.game, &archive, None) { + Ok((Node9::Rpf9Dir(rpf, _), _)) => rpf.entries().ok().map(|entries| (rpf, entries)), + _ => None, + }; + files.into_par_iter().filter_map(move |(file, model, source)| { + let loaded = opened.as_ref().and_then(|(rpf, entries)| { + let i = rpf.find(entries, &file)?; + crate::progress::quietly(|| load_model(self.game, rpf, i, &source, side)).ok() + }); + progress(count.fetch_add(1, Ordering::Relaxed) + 1, total); + loaded.map(|(name, loaded)| (model, name, loaded)) + }) + }) + .collect() + } +} + /// Puts objects together: every model once, with all its places. fn scene( game: &Path, @@ -375,50 +501,19 @@ fn scene( progress: &(dyn Fn(usize, usize) + Sync), ) -> Result { let files = model_files(game)?; + let models = Models { game, files: &files, map }; let mut places: HashMap> = HashMap::new(); for o in objects { places.entry(o.model).or_default().push(o.transform()); } - let mut missing = Vec::new(); - let mut wanted = Vec::new(); - for (model, places) in places { - let source = match (files.get(&model), map.children.get(&model)) { - (Some(file), _) => Source::File(file.clone()), - (None, Some((file, k))) => Source::Child(file.clone(), *k), - (None, None) => { - missing.push((rage_formats::names::value(model), places.len())); - continue; - } - }; - wanted.push((source, places)); - } + let (wanted, unknown): (Vec, Vec) = places.keys().partition(|m| models.source(**m).is_some()); + let mut missing: Vec<(String, usize)> = + unknown.into_iter().map(|m| (rage_formats::names::value(m), places[&m].len())).collect(); missing.sort_by(|a, b| b.1.cmp(&a.1).then(a.0.cmp(&b.0))); - let (total, count) = (wanted.len(), &AtomicUsize::new(0)); - progress(0, total); - // Archives are opened once: that takes longer than reading a model. - let mut archives: BTreeMap)>> = BTreeMap::new(); - for (source, places) in wanted { - let (Source::File(vpath) | Source::Child(vpath, _)) = &source; - if let Some((archive, file)) = vpath.rsplit_once(".rpf/") { - archives.entry(format!("{archive}.rpf")).or_default().push((file.to_owned(), source, places)); - } - } - let models = archives - .into_par_iter() - .flat_map(|(archive, files)| { - let opened = match rage_mods::resolve(game, &archive, None) { - Ok((Node::Rpf9Dir(rpf, _), _)) => rpf.entries().ok().map(|entries| (rpf, entries)), - _ => None, - }; - files.into_par_iter().filter_map(move |(file, source, places)| { - let model = opened.as_ref().and_then(|(rpf, entries)| { - let i = rpf.find(entries, &file)?; - crate::progress::quietly(|| load_model(game, rpf, i, &source, side)).ok() - }); - progress(count.fetch_add(1, Ordering::Relaxed) + 1, total); - model.map(|(name, model)| (name, model, places)) - }) - }) + let loaded = models.load(&wanted, side, progress); + let models = loaded + .into_iter() + .map(|(model, name, loaded)| (name, loaded, places.remove(&model).unwrap_or_default())) .collect(); Ok(MapScene { models, objects: objects.len(), missing }) } @@ -446,8 +541,9 @@ fn load_model(game: &Path, rpf: &Rpf9, i: usize, source: &Source, side: u32) -> /// The whole map, as it looks from afar. pub fn overview(game: &Path, progress: &Progress) -> Result { let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; - anyhow::ensure!(!map.far.is_empty(), "the map files of this game have no distant view"); - scene(game, &map, &map.far, SIDE_FAR, &|done, total| progress("Loading the map's models", done, total)) + let far: Vec = map.nodes.iter().filter(|n| n.level == FAR).map(|n| n.object.clone()).collect(); + anyhow::ensure!(!far.is_empty(), "the map files of this game have no distant view"); + scene(game, &map, &far, SIDE_FAR, &|done, total| progress("Loading the map's models", done, total)) } /// Gets what is being done, how much of it is done, and how much there is. @@ -458,13 +554,11 @@ pub const AROUND: f32 = 120.0; /// A map file, with what the others place around it. pub fn place(game: &Path, vpath: &str, around: f32, progress: &Progress) -> Result { - let (own, extent) = read_map(&crate::metadata::load(game, None, vpath)?.text); + let own = read_map(&crate::metadata::load(game, None, vpath)?.text); let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; - let close = |objects: Vec<(u8, Object)>| -> Vec { - objects.into_iter().filter(|(level, _)| CLOSE.contains(level)).map(|(_, o)| o).collect() - }; - let has_close = own.iter().any(|(level, _)| CLOSE.contains(level)); - let mut objects = if has_close { close(own) } else { own.into_iter().map(|(_, o)| o).collect() }; + let (extent, has_close) = (own.extent, own.has_close()); + let mut objects: Vec = + if has_close { own.close().collect() } else { own.entries.into_iter().map(|e| e.object).collect() }; if let Some([lo, hi]) = extent.filter(|_| has_close) { let middle = [(lo[0] + hi[0]) / 2.0, (lo[1] + hi[1]) / 2.0]; let near = |p: &[f32; 3]| (0..2).all(|k| (p[k] - middle[k]).abs() <= around); @@ -478,7 +572,7 @@ pub fn place(game: &Path, vpath: &str, around: f32, progress: &Progress) -> Resu &others, |rpf, i, _| { let Ok(xml) = crate::metadata::from_rpf9(rpf, i) else { return }; - let near = close(read_map(&xml.text).0).into_iter().filter(|o| near(&o.position)); + let near = read_map(&xml.text).close().filter(|o| near(&o.position)); found.lock().unwrap_or_else(|e| e.into_inner()).extend(near); }, &|| {}, @@ -488,11 +582,229 @@ pub fn place(game: &Path, vpath: &str, around: f32, progress: &Progress) -> Resu scene(game, &map, &objects, SIDE_NEAR, &|done, total| progress("Loading the map's models", done, total)) } +/// How near the camera a map file has to be for its close objects (metres). +const NEAR: f32 = 200.0; +/// How near objects have to be that stand for others but have none above them. +const ALONE: [f32; 4] = [0.0, 800.0, 4000.0, f32::MAX]; + +/// The whole map in the detail that fits where the camera is. +pub struct Lod { + game: PathBuf, + map: Arc, + files: HashMap, + /// Nodes by their key. + by_key: HashMap<(u32, u32), u32>, + /// What each node stands for, among the nodes. + children: Vec>, + roots: Vec, +} + +/// The close objects of a map file, with the node they are part of. +#[derive(Default)] +pub struct Close { + objects: Vec<(Option, Object)>, +} + +/// What to draw: models with their places, and what is missing for more +/// detail, the most wanted first. +#[derive(Default)] +pub struct Cut { + pub draw: HashMap>, + pub wanted: Vec, +} + +fn distance(a: &[f32; 3], b: &[f32; 3]) -> f32 { + (0..3).map(|k| (a[k] - b[k]).powi(2)).sum::().sqrt() +} + +/// How far a point is from a box. +fn distance_to_box(p: &[f32; 3], lo: &[f32; 3], hi: &[f32; 3]) -> f32 { + distance(p, &std::array::from_fn(|k| p[k].clamp(lo[k], hi[k].max(lo[k])))) +} + +impl Lod { + pub fn open(game: &Path, progress: &Progress) -> Result { + let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; + Ok(Self::new(game, map, model_files(game)?)) + } + + fn new(game: &Path, map: Arc, files: HashMap) -> Self { + let by_key: HashMap<(u32, u32), u32> = map.nodes.iter().enumerate().map(|(i, n)| (n.key, i as u32)).collect(); + let mut children = vec![Vec::new(); map.nodes.len()]; + let mut roots = Vec::new(); + for (i, node) in map.nodes.iter().enumerate() { + // Only of a higher level, so there are no circles. + let parent = node.parent.and_then(|key| by_key.get(&key).copied()); + match parent.filter(|p| map.nodes[*p as usize].level > node.level) { + Some(p) => children[p as usize].push(i as u32), + None => roots.push(i as u32), + } + } + Self { game: game.to_owned(), map, files, by_key, children, roots } + } + + /// The models of the farthest level. + pub fn far(&self) -> Vec { + let far = self.map.nodes.iter().filter(|n| n.level == FAR).map(|n| n.object.model); + far.collect::>().into_iter().collect() + } + + /// Whether the game has this model. + pub fn has_model(&self, model: u32) -> bool { + self.files.contains_key(&model) || self.map.children.contains_key(&model) + } + + /// Loads models; `far` ones with small textures. + pub fn load(&self, models: &[u32], far: bool, progress: &(dyn Fn(usize, usize) + Sync)) -> Vec { + let of = Models { game: &self.game, files: &self.files, map: &self.map }; + of.load(models, if far { SIDE_FAR } else { SIDE_NEAR }, progress) + } + + /// The map files with close objects near a place. + pub fn near(&self, eye: &[f32; 3]) -> HashSet { + let near = |(_, lo, hi): &&(String, [f32; 3], [f32; 3])| distance_to_box(eye, lo, hi) < NEAR; + (0..).zip(&self.map.files).filter(|(_, f)| near(f)).map(|(i, _)| i).collect() + } + + /// Reads the close objects of map files. + pub fn read(&self, files: &[u32]) -> Vec<(u32, Close)> { + let number: HashMap<&str, u32> = files.iter().map(|i| (self.map.files[*i as usize].0.as_str(), *i)).collect(); + let by_archive = by_archive(number.keys().map(|p| (String::new(), (*p).to_owned())).collect(), |_| true); + let found = Mutex::new(Vec::new()); + each_file( + &self.game, + &by_archive, + |rpf, i, vpath| { + let Some(&number) = number.get(vpath.as_str()) else { return }; + let entries = crate::metadata::from_rpf9(rpf, i).map(|x| read_map(&x.text).entries).unwrap_or_default(); + let close = entries.into_iter().filter(|e| CLOSE.contains(&e.level)); + let node = |e: &Entry| e.parent.and_then(|key| self.by_key.get(&key).copied()); + let objects = close.map(|e| (node(&e), e.object)).collect(); + found.lock().unwrap_or_else(|e| e.into_inner()).push((number, Close { objects })); + }, + &|| {}, + ); + found.into_inner().unwrap_or_else(|e| e.into_inner()) + } + + /// What to draw from a place, of the models there are, with the close + /// objects read so far. An object gives way to those it stands for when + /// all of them are there. + pub fn cut<'a>( + &self, + eye: &[f32; 3], + loaded: &dyn Fn(u32) -> bool, + unreadable: &dyn Fn(u32) -> bool, + close: impl Iterator, + ) -> Cut { + let mut of_node: HashMap> = HashMap::new(); + let mut cut = Choice { + lod: self, + eye, + loaded, + unreadable, + close: HashMap::new(), + draw: Vec::new(), + wanted: HashMap::new(), + }; + for (node, object) in close.flat_map(|c| &c.objects) { + match node { + Some(node) => of_node.entry(*node).or_default().push(object), + None if distance(eye, &object.position) < NEAR && cut.take(object) => cut.draw.push(object), + None => {} + } + } + cut.close = of_node; + for &root in &self.roots { + let node = &self.map.nodes[root as usize]; + if distance(eye, &node.object.position) < ALONE[usize::from(node.level.min(FAR))] { + cut.visit(root); + } + } + let mut wanted: Vec<(u32, f32)> = cut.wanted.into_iter().collect(); + wanted.sort_by(|a, b| a.1.total_cmp(&b.1)); + let mut draw: HashMap> = HashMap::new(); + for object in cut.draw { + draw.entry(object.model).or_default().push(object.transform()); + } + Cut { draw, wanted: wanted.into_iter().map(|(m, _)| m).collect() } + } +} + +/// A cut in the making. +struct Choice<'a> { + lod: &'a Lod, + eye: &'a [f32; 3], + loaded: &'a dyn Fn(u32) -> bool, + unreadable: &'a dyn Fn(u32) -> bool, + close: HashMap>, + draw: Vec<&'a Object>, + /// Models to load, with how near they are. + wanted: HashMap, +} + +impl<'a> Choice<'a> { + fn expects(&self, model: u32) -> bool { + self.lod.has_model(model) && !(self.unreadable)(model) + } + + /// Whether an object's model is loaded; otherwise it is wanted. One the + /// game does not have does not count. + fn take(&mut self, object: &Object) -> bool { + if (self.loaded)(object.model) { + return true; + } + if self.expects(object.model) { + let far = distance(self.eye, &object.position); + let known = self.wanted.entry(object.model).or_insert(far); + *known = known.min(far); + } + false + } + + /// Draws a node or what it stands for; gives whether something stands + /// where it is. + fn visit(&mut self, node: u32) -> bool { + let lod = self.lod; + let (n, children) = (&lod.map.nodes[node as usize], &lod.children[node as usize]); + if distance(self.eye, &n.object.position) < n.reach { + let before = self.draw.len(); + let mut all = true; + let mut any = false; + for child in children { + any = true; + all &= self.visit(*child); + } + for object in self.close.remove(&node).unwrap_or_default() { + any = true; + if self.take(object) { + self.draw.push(object); + } else { + all &= !self.expects(object.model); + } + } + if any && all { + return true; + } + self.draw.truncate(before); + } + if self.take(&n.object) { + self.draw.push(&n.object); + return true; + } + !self.expects(n.object.model) + } +} + #[cfg(test)] mod tests { use super::*; const XML: &str = r#" + hash_00000077 + + hash_00000099 + @@ -502,34 +814,48 @@ mod tests { Prop_A + + + + + + hash_0000ABCD - + + + + "#; #[test] fn map_files_are_read() { - let (objects, extent) = read_map(XML); - assert_eq!(extent, Some([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])); - assert_eq!(objects.len(), 2); - assert_eq!((objects[0].0, objects[0].1.model), (5, joaat("prop_a"))); - assert_eq!(objects[0].1.scale, [2.0, 3.0]); - assert_eq!(objects[0].1.transform()[12..15], [10.0, 20.0, 30.0]); - assert_eq!((objects[1].0, objects[1].1.model), (3, 0xABCD)); + let map = read_map(XML); + assert_eq!((map.name, map.extent), (0x77, Some([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]))); + let [a, b] = &map.entries[..] else { panic!("two entries") }; + assert_eq!((a.level, a.object.model, a.parent), (5, joaat("prop_a"), None)); + assert_eq!(a.object.scale, [2.0, 3.0]); + assert_eq!(a.object.transform()[12..15], [10.0, 20.0, 30.0]); + assert_eq!((b.level, b.object.model, b.parent, b.reach), (2, 0xABCD, Some((0x99, 4)), 60.0)); + } + + fn node(key: (u32, u32), parent: Option<(u32, u32)>, level: u8, model: u32) -> Node { + let object = Object { model, position: [0.0; 3], rotation: [0.0, 0.0, 0.0, 1.0], scale: [1.0; 2] }; + Node { key, parent, level, reach: 100.0, object } } #[test] fn the_cache_reads_back() { let map = Map { files: vec![("a.rpf/b.#map".into(), [1.0; 3], [2.0; 3])], - far: read_map(XML).0.into_iter().map(|(_, o)| o).collect(), + nodes: vec![node((1, 0), None, 3, 7), node((2, 0), Some((1, 0)), 2, 8)], children: HashMap::from([(7, ("c.rpf/d.#dd".to_owned(), 3))]), }; let data = encode(&map, 5); @@ -539,4 +865,31 @@ mod tests { assert!(decode(&data[..n], 5).is_none()); } } + + #[test] + fn detail_follows_the_camera() { + let map = Map { + files: Vec::new(), + nodes: vec![ + node((1, 0), None, 3, 10), + node((2, 0), Some((1, 0)), 2, 20), + node((2, 1), Some((1, 0)), 2, 21), + ], + children: HashMap::from([10, 20, 21, 30].map(|m| (m, (String::new(), 0)))), + }; + let lod = Lod::new(Path::new(""), Arc::new(map), HashMap::new()); + let object = Object { model: 30, position: [0.0; 3], rotation: [0.0, 0.0, 0.0, 1.0], scale: [1.0; 2] }; + let close = Close { objects: vec![(Some(1), object)] }; + let cut = |at: f32, loaded: &[u32]| { + let cut = lod.cut(&[at, 0.0, 0.0], &|m| loaded.contains(&m), &|_| false, std::iter::once(&close)); + let mut draw: Vec = cut.draw.into_keys().collect(); + draw.sort_unstable(); + (draw, cut.wanted.len()) + }; + // Afar, the far one; close, what it stands for once all of it is there. + assert_eq!(cut(500.0, &[10, 20, 21, 30]), (vec![10], 0)); + assert_eq!(cut(50.0, &[10, 20]), (vec![10], 2)); + assert_eq!(cut(50.0, &[10, 20, 21]), (vec![20, 21], 1)); + assert_eq!(cut(50.0, &[10, 20, 21, 30]), (vec![21, 30], 0)); + } } diff --git a/crates/openrage-app/src/render.rs b/crates/openrage-app/src/render.rs index c2be86f..a42f05c 100644 --- a/crates/openrage-app/src/render.rs +++ b/crates/openrage-app/src/render.rs @@ -195,21 +195,8 @@ pub fn orbit_camera(lo: [f32; 3], hi: [f32; 3], view: View) -> Camera { let forward = norm([-towards[0], -towards[1], -towards[2]]); let right = norm(cross(forward, [0.0, 0.0, 1.0])); let up = cross(right, forward); - // What is near looks larger, so the middle of the picture is not that of - // the model. The camera moves sideways by the difference (the same at - // every zoom). - let half = [(hi[0] - lo[0]) / 2.0, (hi[1] - lo[1]) / 2.0, (hi[2] - lo[2]) / 2.0]; - let shift = |axis: V3| { - let (mut min, mut max) = (f32::MAX, f32::MIN); - for corner in 0..8 { - let p: V3 = std::array::from_fn(|k| if corner >> k & 1 == 0 { -half[k] } else { half[k] }); - let seen = dot(p, axis) / (whole + dot(p, forward)); - (min, max) = (min.min(seen), max.max(seen)); - } - (min + max) / 2.0 * whole - }; - let (sx, sy) = (shift(right), shift(up)); - let eye = std::array::from_fn(|k| center[k] + distance * towards[k] + sx * right[k] + sy * up[k]); + // Nothing but the angles moves the camera: around the middle, on a circle. + let eye = std::array::from_fn(|k| center[k] + distance * towards[k]); Camera { eye, forward, right, up, distance, radius, fov } } diff --git a/crates/openrage-gui/src/debug.rs b/crates/openrage-gui/src/debug.rs index 3fb0629..7b562fd 100644 --- a/crates/openrage-gui/src/debug.rs +++ b/crates/openrage-gui/src/debug.rs @@ -224,12 +224,21 @@ pub(crate) fn debug_snapshot_rest(ui: &AppWindow, path: String) { let waiting = std::rc::Rc::new(slint::Timer::default()); let (started, timer) = (Instant::now(), std::rc::Rc::clone(&waiting)); waiting.start(slint::TimerMode::Repeated, Duration::from_millis(500), move || { - if !scene::ready() && started.elapsed() < Duration::from_secs(180) { + if !scene::ready() && started.elapsed() < Duration::from_secs(600) { return; } timer.stop(); let path = path.clone(); - slint::Timer::single_shot(Duration::from_millis(800), move || { + // `OPENRAGE_FLY_TO=x,y,z,yaw,pitch`, and `OPENRAGE_FLY_WAIT=` for the details to load. + let to: Vec = std::env::var("OPENRAGE_FLY_TO") + .map(|t| t.split(',').filter_map(|v| v.parse().ok()).collect()) + .unwrap_or_default(); + let mut wait = 800; + if let Ok(to) = <[f32; 5]>::try_from(to) { + scene::fly_to(to); + wait += std::env::var("OPENRAGE_FLY_WAIT").ok().and_then(|s| s.parse().ok()).unwrap_or(20) * 1000; + } + slint::Timer::single_shot(Duration::from_millis(wait), move || { if let Some(Ok(img)) = scene::newest().map(|w| w.window().take_snapshot()) { let _ = rage_formats::png(img.width(), img.height(), img.as_bytes()) .map(|png| std::fs::write(&path, png)); diff --git a/crates/openrage-gui/src/fly.rs b/crates/openrage-gui/src/fly.rs new file mode 100644 index 0000000..87f4841 --- /dev/null +++ b/crates/openrage-gui/src/fly.rs @@ -0,0 +1,148 @@ +//! The flying camera of the model and map views: W A S D and Q E move it, +//! dragging looks around, the wheel sets how fast it is. + +use std::collections::HashSet; +use std::time::Instant; + +use openrage_app::render::{self, Camera}; + +const MOVE_KEYS: [&str; 6] = ["w", "a", "s", "d", "q", "e"]; +/// With Shift. +const FAST: f32 = 4.0; +/// How much a notch of the wheel changes the speed. +const NOTCH: f32 = 1.25; +/// Metres a second. +const SLOWEST: f32 = 0.02; +const FASTEST: f32 = 20_000.0; + +pub struct Fly { + pub eye: [f32; 3], + yaw: f32, + pitch: f32, + /// Metres a second. + speed: f32, + /// Movement keys held down (lower-case), and whether Shift is held. + keys: HashSet, + fast: bool, + last_tick: Instant, +} + +impl Fly { + /// Starts where a camera is; `size` is how large what it looks at is. + pub fn new(camera: &Camera, size: f32) -> Self { + let f = camera.forward; + Self { + eye: camera.eye, + yaw: f[1].atan2(f[0]), + pitch: f[2].clamp(-1.0, 1.0).asin(), + speed: (size * 0.35).clamp(SLOWEST, FASTEST), + keys: HashSet::new(), + fast: false, + last_tick: Instant::now(), + } + } + + pub fn camera(&self, radius: f32) -> Camera { + render::fly_camera(self.eye, self.yaw, self.pitch, radius) + } + + /// Dragging, in pixels. + pub fn look(&mut self, dx: f32, dy: f32) { + self.yaw -= dx * 0.005; + self.pitch = (self.pitch - dy * 0.005).clamp(-1.55, 1.55); + } + + /// The wheel; `delta` is 120 for a notch. + pub fn wheel(&mut self, delta: f32) { + self.speed = (self.speed * NOTCH.powf(delta / 120.0)).clamp(SLOWEST, FASTEST); + } + + pub fn set_speed(&mut self, speed: f32) { + self.speed = speed.clamp(SLOWEST, FASTEST); + } + + /// How fast it is, to show. + pub fn speed_text(&self) -> String { + match self.speed { + v if v >= 1000.0 => format!("{:.1} km/s", v / 1000.0), + v if v >= 10.0 => format!("{v:.0} m/s"), + v => format!("{v:.2} m/s"), + } + } + + /// Whether the key moves the camera. + pub fn key_down(&mut self, key: &str, shift: bool) -> bool { + self.fast = shift; + let moves = MOVE_KEYS.contains(&key); + if moves { + if self.keys.is_empty() { + self.last_tick = Instant::now(); + } + self.keys.insert(key.to_owned()); + } + moves + } + + /// Whether a key is still held. + pub fn key_up(&mut self, key: &str, shift: bool) -> bool { + self.fast = shift; + self.keys.remove(key); + !self.keys.is_empty() + } + + pub fn release(&mut self) { + self.keys.clear(); + } + + /// Moves as long as the time since the last call. + pub fn tick(&mut self) { + let dt = self.last_tick.elapsed().as_secs_f32().min(0.1); + self.last_tick = Instant::now(); + let held = |k: &str| f32::from(u8::from(self.keys.contains(k))); + let (ahead, side, up) = (held("w") - held("s"), held("d") - held("a"), held("e") - held("q")); + let camera = self.camera(1.0); + let step = self.speed * if self.fast { FAST } else { 1.0 } * dt; + for k in 0..3 { + let up = if k == 2 { up } else { 0.0 }; + self.eye[k] += (camera.forward[k] * ahead + camera.right[k] * side + up) * step; + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn fly() -> Fly { + Fly::new(&render::fly_camera([1.0, 2.0, 3.0], 0.5, -0.2, 10.0), 100.0) + } + + #[test] + fn it_starts_where_the_camera_was() { + let from = render::fly_camera([1.0, 2.0, 3.0], 0.5, -0.2, 10.0); + let now = fly().camera(10.0); + assert_eq!(now.eye, from.eye); + assert!((0..3).all(|k| (now.forward[k] - from.forward[k]).abs() < 1e-5)); + } + + #[test] + fn the_wheel_changes_the_speed() { + let mut f = fly(); + let before = f.speed; + f.wheel(120.0); + assert!((f.speed / before - NOTCH).abs() < 1e-5); + (0..500).for_each(|_| f.wheel(120.0)); + assert_eq!(f.speed, FASTEST); + (0..500).for_each(|_| f.wheel(-120.0)); + assert_eq!(f.speed, SLOWEST); + } + + #[test] + fn keys() { + let mut f = fly(); + assert!(!f.key_down("x", false)); + assert!(f.key_down("w", false) && f.key_down("a", true)); + assert!(f.key_up("w", false)); + assert!(!f.key_up("a", false)); + } +} diff --git a/crates/openrage-gui/src/gpu.rs b/crates/openrage-gui/src/gpu.rs index 8e133f8..f02b19e 100644 --- a/crates/openrage-gui/src/gpu.rs +++ b/crates/openrage-gui/src/gpu.rs @@ -443,7 +443,7 @@ fn init() -> Option { depth_stencil: Some(wgpu::DepthStencilState { format: DEPTH_FORMAT, depth_write_enabled: Some(true), - depth_compare: Some(wgpu::CompareFunction::Less), + depth_compare: Some(wgpu::CompareFunction::Greater), stencil: Default::default(), bias: Default::default(), }), @@ -485,7 +485,7 @@ fn init() -> Option { depth_stencil: Some(wgpu::DepthStencilState { format: DEPTH_FORMAT, depth_write_enabled: Some(false), - depth_compare: Some(wgpu::CompareFunction::Less), + depth_compare: Some(wgpu::CompareFunction::Greater), stencil: Default::default(), bias: Default::default(), }), @@ -784,9 +784,10 @@ fn view_projection(cam: &Camera, w: u32, h: u32, near: f32, far: f32) -> [f32; 1 let short = w.min(h) as f32; let t = (cam.fov / 2.0).tan(); let (sx, sy) = (short / w as f32 / t, short / h as f32 / t); - // Perspective with depth 0..1 (wgpu). - let a = far / (near - far); - let proj = [sx, 0.0, 0.0, 0.0, 0.0, sy, 0.0, 0.0, 0.0, 0.0, a, -1.0, 0.0, 0.0, a * near, 0.0]; + // Perspective with depth 1 (near) to 0: floats are finest at 0, which + // makes up for the far being so dense. Maps are kilometres wide. + let a = near / (far - near); + let proj = [sx, 0.0, 0.0, 0.0, 0.0, sy, 0.0, 0.0, 0.0, 0.0, a, -1.0, 0.0, 0.0, a * far, 0.0]; math::mul(&proj, &view) } @@ -1021,7 +1022,7 @@ pub fn render_scene( })], depth_stencil_attachment: Some(wgpu::RenderPassDepthStencilAttachment { view: &t.depth, - depth_ops: Some(wgpu::Operations { load: wgpu::LoadOp::Clear(1.0), store: wgpu::StoreOp::Discard }), + depth_ops: Some(wgpu::Operations { load: wgpu::LoadOp::Clear(0.0), store: wgpu::StoreOp::Discard }), stencil_ops: None, }), timestamp_writes: None, diff --git a/crates/openrage-gui/src/main.rs b/crates/openrage-gui/src/main.rs index 7c8fa10..387ac8e 100644 --- a/crates/openrage-gui/src/main.rs +++ b/crates/openrage-gui/src/main.rs @@ -16,6 +16,7 @@ mod debug; mod docs; mod editor; mod extract_ui; +mod fly; mod gpu; mod history; mod model_ui; @@ -30,6 +31,7 @@ mod scene; mod search; mod setup_ui; mod sound_ui; +mod stream; mod tools_ui; mod util; mod video_ui; diff --git a/crates/openrage-gui/src/scene.rs b/crates/openrage-gui/src/scene.rs index d56573c..a5b8469 100644 --- a/crates/openrage-gui/src/scene.rs +++ b/crates/openrage-gui/src/scene.rs @@ -3,7 +3,8 @@ use rayon::prelude::*; use std::cell::RefCell; -use std::path::PathBuf; +use std::collections::HashMap; +use std::path::{Path, PathBuf}; use std::rc::Rc; use std::sync::Arc; use std::sync::atomic::{AtomicUsize, Ordering}; @@ -11,6 +12,7 @@ use std::time::{Duration, Instant}; use openrage_app::anim::Binding; use openrage_app::cutscene::{self, Actor, Cutscene}; +use openrage_app::gta6_world::{self, Lod}; use openrage_app::models::Look; use openrage_app::render::{self, Camera, View}; use openrage_app::{gta4_cutscene, gta4_effects}; @@ -20,6 +22,8 @@ use rage_formats::math::{self, Mat4}; use rage_rpf::vfs::Node; use slint::ComponentHandle; +use crate::fly::Fly; +use crate::stream::{Drawn, Stream, scene_look}; use crate::{AppWindow, ModelPreview, SceneWindow}; struct SceneActor { @@ -83,9 +87,28 @@ struct State { effects: Vec, effect_library: Arc, timer: slint::Timer, + /// The flying camera, when it flies, and what moves it. + fly: Option, + fly_timer: slint::Timer, + /// Loads the details of GTA VI's whole map around the camera. + stream: Option, } impl State { + /// The camera when no cutscene's is used. + fn free_camera(&self) -> render::Camera { + let (lo, hi) = self.bounds; + match &self.fly { + Some(f) => { + let mut camera = f.camera((0..3).map(|k| (hi[k] - lo[k]).powi(2)).sum::().sqrt() / 2.0); + // It can be close to things however large the scene is. + camera.distance = camera.distance.min(50.0); + camera + } + None => render::orbit_camera(lo, hi, self.view), + } + } + /// Makes the sound follow the scene: playing from the scene's time while /// it plays and the sound is on, stopped otherwise. fn sync_sound(&mut self) { @@ -599,6 +622,9 @@ fn start(win: &SceneWindow, state: &Rc>>, id: u64, loaded: effects: instances, effect_library: effects.library, timer: slint::Timer::default(), + fly: None, + fly_timer: slint::Timer::default(), + stream: None, }); if let Some(st) = state.borrow_mut().as_mut() { st.sync_sound(); @@ -895,6 +921,12 @@ fn cut_camera(st: &State) -> Option { } fn render_frame(win: &SceneWindow, state: &Rc>>) { + if let Some(st) = state.borrow_mut().as_mut() { + let eye = st.free_camera().eye; + if let Some(stream) = &mut st.stream { + stream.look_from(eye); + } + } let st = state.borrow(); let Some(st) = st.as_ref() else { return }; let width = win.get_area_width().max(64.0) as u32; @@ -943,8 +975,7 @@ fn render_frame(win: &SceneWindow, state: &Rc>>) { } } } - let camera = if st.cut_camera { cut_camera(st) } else { None } - .unwrap_or_else(|| render::orbit_camera(st.bounds.0, st.bounds.1, st.view)); + let camera = if st.cut_camera { cut_camera(st) } else { None }.unwrap_or_else(|| st.free_camera()); let gpu = if std::env::var_os("OPENRAGE_SOFTWARE_RENDERER").is_none() { // Animated lights (GTA IV) where they are now. let animated: Vec; @@ -1061,10 +1092,9 @@ pub fn open_map(ui: &AppWindow, vpath: String) { // GTA IV: a placement file (.wpl) or a map archive (.img). openrage_app::gta4::load_map(&game_dir, &vpath, &|done, total| progress.step(done, total))? } else if openrage_app::detect::is_gta6_dir(&game_dir) { - use openrage_app::gta6_world; let show = |what: &str, done, total| progress.set(what, done, total); if vpath.is_empty() { - gta6_world::overview(&game_dir, &show)? + return load_whole_map(&game_dir, &show); } else { gta6_world::place(&game_dir, &vpath, gta6_world::AROUND, &show)? } @@ -1085,7 +1115,8 @@ pub fn open_map(ui: &AppWindow, vpath: String) { (ModelPreview { loaded, look, materials, name }, transforms) }) .collect(); - Ok(MapLoaded { models, objects: scene.objects, missing: scene.missing.iter().map(|(_, n)| n).sum() }) + let missing = scene.missing.iter().map(|(_, n)| n).sum(); + Ok(MapLoaded { models, objects: scene.objects, missing, lod: None }) })(); progress.set("", 0, 0); let _ = weak.upgrade_in_event_loop(move |win| { @@ -1108,6 +1139,30 @@ struct MapLoaded { objects: usize, /// Objects whose model was not found. missing: usize, + /// The whole map of GTA VI, whose details are loaded around the camera, + /// and the hashes of the models' names. + lod: Option<(Arc, Vec)>, +} + +/// GTA VI's whole map from afar. +fn load_whole_map(game: &Path, show: >a6_world::Progress) -> anyhow::Result { + let lod = Arc::new(Lod::open(game, show)?); + let loaded = lod.load(&lod.far(), true, &|done, total| show("Loading the map's models", done, total)); + let mut places = lod.cut(&[0.0, 0.0, 1e6], &|_| true, &|_| false, std::iter::empty()).draw; + let objects = places.values().map(Vec::len).sum(); + let (keys, models): (Vec, Vec<_>) = loaded + .into_par_iter() + .map(|(key, name, loaded)| { + let materials = render::Materials::new(&loaded); + let look = std::sync::RwLock::new(loaded.default_look()); + (key, ModelPreview { loaded, look, materials, name }) + }) + .unzip(); + anyhow::ensure!(!models.is_empty(), "the map files of this game have no distant view"); + let models: Vec<(ModelPreview, Vec)> = + models.into_iter().zip(&keys).map(|(p, key)| (p, places.remove(key).unwrap_or_default())).collect(); + let missing = places.values().map(Vec::len).sum(); + Ok(MapLoaded { models, objects, missing, lod: Some((lod, keys)) }) } fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { @@ -1115,16 +1170,14 @@ fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { .models .into_iter() .map(|(p, transforms)| { - let mut look = p.loaded.default_look(); - // Decals need blending the scene does not do (see load_surroundings). - for (slot, l) in p.loaded.materials.iter().zip(look.materials.iter_mut()) { - if rage_formats::shaders::name(slot.name_hash).is_some_and(|n| n.contains("decal")) { - l.visible = false; - } - } + let look = scene_look(&p); (Arc::new(p), look, transforms) }) .collect(); + let far: Option>> = scene + .lod + .as_ref() + .map(|(_, keys)| keys.iter().copied().zip(surroundings.iter().map(|(p, ..)| Arc::clone(p))).collect()); surroundings.sort_by(|a, b| a.0.name.cmp(&b.0.name)); let items: Vec<(&openrage_app::models::LoadedModel, &Look, &[Mat4])> = surroundings.iter().map(|(p, l, t)| (&p.loaded, l, t.as_slice())).collect(); @@ -1133,8 +1186,10 @@ fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { .iter() .map(|(p, _, t)| crate::PartRow { name: p.name.clone().into(), visible: true, level: 0, count: t.len() as i32 }) .collect(); - win.set_objects(slint::ModelRc::new(slint::VecModel::from(rows))); + // What is there changes with the camera in a whole map. + win.set_objects(slint::ModelRc::new(slint::VecModel::from(if far.is_some() { Vec::new() } else { rows }))); win.set_can_export(!surroundings.is_empty()); + win.set_can_fly(true); let (lo, hi) = bounds; let mut status = format!( "{} objects · {} models · {:.0} × {:.0} m", @@ -1146,7 +1201,6 @@ fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { if scene.missing > 0 { status.push_str(&format!(" · {} without a model", scene.missing)); } - status.push_str(" · drag to turn, scroll to zoom"); win.set_status(status.into()); let object_shown = vec![true; surroundings.len()]; *state.borrow_mut() = Some(State { @@ -1175,10 +1229,41 @@ fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { effects: Vec::new(), effect_library: Arc::default(), timer: slint::Timer::default(), + fly: None, + fly_timer: slint::Timer::default(), + stream: None, }); + if let (Some((lod, _)), Some(far)) = (scene.lod, far) { + let weak = win.as_weak(); + let stream = Stream::start(lod, far, move |drawn, more| { + let weak = weak.clone(); + weak.upgrade_in_event_loop(move |win| show_stream(&win, drawn, more)).is_ok() + }); + if let Some(st) = state.borrow_mut().as_mut() { + st.stream = Some(stream); + } + } render_frame(win, state); } +/// The whole map in the detail loaded by now. +fn show_stream(win: &SceneWindow, drawn: Drawn, more: bool) { + let state = OPEN.with(|o| { + let open = o.borrow(); + let window = |w: &SceneWindow| std::ptr::eq(w.window(), win.window()); + open.iter().find(|(_, w, _)| window(w)).map(|(.., s)| Rc::clone(s)) + }); + let Some(state) = state else { return }; + if let Some(st) = state.borrow_mut().as_mut() { + let objects: usize = drawn.iter().map(|(.., places)| places.len()).sum(); + let loading = if more { " · loading details …" } else { "" }; + win.set_status(format!("{objects} objects · {} models{loading}", drawn.len()).into()); + st.object_shown = vec![true; drawn.len()]; + st.surroundings = drawn; + } + render_frame(win, &state); +} + /// The object list and the export of a map scene. fn wire_map(win: &SceneWindow, state: &Shared, main: slint::Weak, name: String) { let set_shown = |s: &Shared, w: &slint::Weak, which: Option, on: bool| { @@ -1227,6 +1312,45 @@ fn wire_map(win: &SceneWindow, state: &Shared, main: slint::Weak, nam } fn wire(win: &SceneWindow, state: &Rc>>) { + let (w, s) = (win.as_weak(), Rc::clone(state)); + win.on_toggle_fly(move || toggle_fly(&w, &s)); + let (w, s) = (win.as_weak(), Rc::clone(state)); + win.on_key_down(move |text, shift| { + let key = text.to_lowercase(); + if key == "f" { + toggle_fly(&w, &s); + return; + } + let mut st = s.borrow_mut(); + let Some(st) = st.as_mut() else { return }; + if st.fly.as_mut().is_some_and(|f| f.key_down(&key, shift)) && !st.fly_timer.running() { + let (w, s) = (w.clone(), Rc::clone(&s)); + st.fly_timer.start(slint::TimerMode::Repeated, Duration::from_millis(16), move || { + let Some(win) = w.upgrade() else { return }; + if let Some(f) = s.borrow_mut().as_mut().and_then(|st| st.fly.as_mut()) { + f.tick(); + } + render_frame(&win, &s); + }); + } + }); + let s = Rc::clone(state); + win.on_key_up(move |text, shift| { + if let Some(st) = s.borrow_mut().as_mut() + && !st.fly.as_mut().is_some_and(|f| f.key_up(&text.to_lowercase(), shift)) + { + st.fly_timer.stop(); + } + }); + let s = Rc::clone(state); + win.on_focus_lost(move || { + if let Some(st) = s.borrow_mut().as_mut() { + if let Some(f) = &mut st.fly { + f.release(); + } + st.fly_timer.stop(); + } + }); let (w, s) = (win.as_weak(), Rc::clone(state)); win.on_toggle_play(move || { let Some(win) = w.upgrade() else { return }; @@ -1271,8 +1395,13 @@ fn wire(win: &SceneWindow, state: &Rc>>) { if let Some(st) = s.borrow_mut().as_mut() { st.cut_camera = false; win.set_cut_camera(false); - st.view.yaw -= dx * 0.01; - st.view.pitch = (st.view.pitch + dy * 0.01).clamp(-1.4, 1.4); + match &mut st.fly { + Some(f) => f.look(dx, dy), + None => { + st.view.yaw -= dx * 0.01; + st.view.pitch = (st.view.pitch + dy * 0.01).clamp(-1.5, 1.5); + } + } } render_frame(&win, &s); }); @@ -1282,7 +1411,14 @@ fn wire(win: &SceneWindow, state: &Rc>>) { if let Some(st) = s.borrow_mut().as_mut() { st.cut_camera = false; win.set_cut_camera(false); - st.view.zoom = (st.view.zoom * (1.0 + delta * 0.001)).clamp(0.1, 20.0); + match &mut st.fly { + Some(f) => { + f.wheel(delta); + win.set_fly_speed(f.speed_text().into()); + } + // Far enough in to see a street of a whole map. + None => st.view.zoom = (st.view.zoom * 1.1f32.powf(delta / 120.0)).clamp(0.1, 200.0), + } } render_frame(&win, &s); }); @@ -1314,6 +1450,29 @@ fn wire(win: &SceneWindow, state: &Rc>>) { }); } +/// Switches between orbiting and flying, starting where the camera is. +fn toggle_fly(w: &slint::Weak, state: &Shared) { + let Some(win) = w.upgrade() else { return }; + if let Some(st) = state.borrow_mut().as_mut() { + st.fly_timer.stop(); + st.fly = match st.fly.take() { + Some(_) => None, + None => { + let from = if st.cut_camera { cut_camera(st) } else { None }.unwrap_or_else(|| st.free_camera()); + let mut fly = Fly::new(&from, 0.0); + // A large scene is not crossed in seconds, a small one not in minutes. + fly.set_speed((from.distance * 0.1).clamp(3.0, 400.0)); + Some(fly) + } + }; + st.cut_camera = false; + win.set_cut_camera(false); + win.set_fly_mode(st.fly.is_some()); + win.set_fly_speed(st.fly.as_ref().map(Fly::speed_text).unwrap_or_default().into()); + } + render_frame(&win, state); +} + /// Forgets a closed window (after the close event has been handled). fn forget_closed() { slint::Timer::single_shot(Duration::ZERO, || { @@ -1321,6 +1480,20 @@ fn forget_closed() { }); } +/// Flies the newest scene's camera to a place (for debug snapshots): x, y, z, yaw, pitch. +#[cfg(debug_assertions)] +pub fn fly_to(place: [f32; 5]) { + let Some((win, state)) = OPEN.with(|o| o.borrow().last().map(|(_, w, s)| (w.clone_strong(), Rc::clone(s)))) else { + return; + }; + if let Some(st) = state.borrow_mut().as_mut() { + let [x, y, z, yaw, pitch] = place; + st.fly = Some(Fly::new(&render::fly_camera([x, y, z], yaw, pitch, 1.0), 100.0)); + win.set_fly_mode(true); + } + render_frame(&win, &state); +} + /// Whether the newest scene has loaded (for debug snapshots). #[cfg(debug_assertions)] pub fn ready() -> bool { diff --git a/crates/openrage-gui/src/stream.rs b/crates/openrage-gui/src/stream.rs new file mode 100644 index 0000000..38206d1 --- /dev/null +++ b/crates/openrage-gui/src/stream.rs @@ -0,0 +1,173 @@ +//! Loading the details of GTA VI's map around the camera, in the background. + +use std::collections::{HashMap, HashSet}; +use std::sync::{Arc, Condvar, Mutex}; + +use openrage_app::gta6_world::{Close, Lod}; +use openrage_app::models::Look; +use openrage_app::render; +use rage_formats::math::Mat4; +use rayon::prelude::*; + +use crate::ModelPreview; + +/// Models loaded before the picture is renewed. +const AT_ONCE: usize = 96; +/// Map files read before the picture is renewed. +const FILES_AT_ONCE: usize = 200; +/// How many models that are not drawn are kept. +const KEPT: usize = 1500; + +/// Models with their places, as a scene draws them. +pub type Drawn = Vec<(Arc, Look, Vec)>; + +#[derive(Default)] +struct Wish { + eye: Option<[f32; 3]>, + stop: bool, +} + +/// The thread that loads; ends when this is dropped. +pub struct Stream { + wish: Arc<(Mutex, Condvar)>, + last: Option<[f32; 3]>, +} + +impl Stream { + /// Starts with the models of the farthest level. `show` gets what to draw + /// and whether there is more to come; it is called from the thread. + pub fn start( + lod: Arc, + far: HashMap>, + show: impl Fn(Drawn, bool) -> bool + Send + 'static, + ) -> Self { + let wish = Arc::new((Mutex::new(Wish::default()), Condvar::new())); + let theirs = Arc::clone(&wish); + std::thread::spawn(move || work(&lod, far, &theirs, &show)); + Self { wish, last: None } + } + + /// The camera is here now. + pub fn look_from(&mut self, eye: [f32; 3]) { + // Small steps change nothing. + let moved = |from: &[f32; 3]| (0..3).map(|k| (from[k] - eye[k]).powi(2)).sum::() > 4.0; + if self.last.as_ref().is_none_or(moved) { + self.last = Some(eye); + let (lock, changed) = &*self.wish; + lock.lock().unwrap_or_else(|e| e.into_inner()).eye = Some(eye); + changed.notify_one(); + } + } +} + +impl Drop for Stream { + fn drop(&mut self) { + let (lock, changed) = &*self.wish; + lock.lock().unwrap_or_else(|e| e.into_inner()).stop = true; + changed.notify_one(); + } +} + +struct Kept { + preview: Arc, + look: Look, + /// When it was drawn last. + drawn: u64, + /// Always kept. + far: bool, +} + +/// How a model looks in a scene: without decals, which need blending it does not do. +pub fn scene_look(preview: &ModelPreview) -> Look { + let mut look = preview.loaded.default_look(); + for (slot, l) in preview.loaded.materials.iter().zip(look.materials.iter_mut()) { + if rage_formats::shaders::name(slot.name_hash).is_some_and(|n| n.contains("decal")) { + l.visible = false; + } + } + look +} + +fn work( + lod: &Lod, + far: HashMap>, + wish: &(Mutex, Condvar), + show: &dyn Fn(Drawn, bool) -> bool, +) { + let keep = |preview: Arc, far| Kept { look: scene_look(&preview), preview, drawn: 0, far }; + let mut models: HashMap = far.into_iter().map(|(m, p)| (m, keep(p, true))).collect(); + // Models that cannot be read are not tried again. + let mut failed: HashSet = HashSet::new(); + let mut close: HashMap = HashMap::new(); + let mut eye = None; + let mut turn = 0u64; + let mut more = false; + loop { + { + let (lock, changed) = wish; + let mut now = lock.lock().unwrap_or_else(|e| e.into_inner()); + loop { + if now.stop { + return; + } + if let Some(wanted) = now.eye.take() { + eye = Some(wanted); + break; + } + if more { + break; + } + now = changed.wait(now).unwrap_or_else(|e| e.into_inner()); + } + } + let Some(eye) = eye else { continue }; + turn += 1; + let near = lod.near(&eye); + close.retain(|file, _| near.contains(file)); + let unread: Vec = near.iter().filter(|f| !close.contains_key(f)).copied().take(FILES_AT_ONCE).collect(); + let files_left = !unread.is_empty(); + close.extend(lod.read(&unread)); + // A file that cannot be read stays away from the next round, too. + for file in unread { + close.entry(file).or_default(); + } + let cut = lod.cut(&eye, &|m| models.contains_key(&m), &|m| failed.contains(&m), close.values()); + let drawn: Drawn = cut + .draw + .into_iter() + .filter_map(|(m, places)| { + let kept = models.get_mut(&m)?; + kept.drawn = turn; + Some((Arc::clone(&kept.preview), kept.look.clone(), places)) + }) + .collect(); + let wanted: Vec = cut.wanted.into_iter().take(AT_ONCE).collect(); + more = files_left || !wanted.is_empty(); + if !show(drawn, more) { + return; + } + // The ones not drawn for longest go first. + let mut idle: Vec<(u64, u32)> = + models.iter().filter(|(_, k)| !k.far && k.drawn < turn).map(|(m, k)| (k.drawn, *m)).collect(); + if idle.len() > KEPT { + idle.sort_unstable(); + for (_, m) in &idle[..idle.len() - KEPT] { + models.remove(m); + } + } + let loaded: Vec<(u32, Arc)> = lod + .load(&wanted, false, &|_, _| {}) + .into_par_iter() + .map(|(m, name, loaded)| { + let materials = render::Materials::new(&loaded); + let look = std::sync::RwLock::new(loaded.default_look()); + (m, Arc::new(ModelPreview { loaded, look, materials, name })) + }) + .collect(); + failed.extend(wanted.iter().copied()); + for (m, preview) in loaded { + failed.remove(&m); + models.insert(m, Kept { drawn: turn, ..keep(preview, false) }); + } + } +} diff --git a/crates/openrage-gui/src/viewer.rs b/crates/openrage-gui/src/viewer.rs index e0f200b..32f225a 100644 --- a/crates/openrage-gui/src/viewer.rs +++ b/crates/openrage-gui/src/viewer.rs @@ -4,7 +4,6 @@ //! several models can be compared side by side while browsing on. use std::cell::{Cell, RefCell}; -use std::collections::HashSet; use std::rc::Rc; use std::sync::Arc; use std::time::{Duration, Instant}; @@ -12,6 +11,7 @@ use std::time::{Duration, Instant}; use openrage_app::render::{self, Camera, View}; use slint::{ComponentHandle, Model, ModelRc, VecModel}; +use crate::fly::Fly; use crate::{AppWindow, ClipRow, MaterialRow, ModelPreview, PartRow, ViewerWindow}; use openrage_app::anim::Binding; use rage_formats::clip::ClipDictionary; @@ -51,14 +51,6 @@ pub enum Content { Image(slint::Image), } -/// First-person camera. -#[derive(Clone, Copy)] -struct Fly { - eye: [f32; 3], - yaw: f32, - pitch: f32, -} - /// What a row of the parts list stands for. #[derive(Clone)] enum PartEntry { @@ -76,11 +68,7 @@ struct State { entries: Vec<(String, i32, PartEntry)>, view: View, fly: Option, - /// Movement keys held down (lower-case), and whether Shift is held. - keys: HashSet, - fast: bool, timer: slint::Timer, - last_tick: Instant, /// Waits for an outfit loading in the background. outfit_timer: slint::Timer, } @@ -101,18 +89,16 @@ impl State { } fn camera(&self, lo: [f32; 3], hi: [f32; 3]) -> Camera { - match self.fly { + match &self.fly { Some(f) => { let radius = (0..3).map(|i| (hi[i] - lo[i]).powi(2)).sum::().sqrt() / 2.0; - render::fly_camera(f.eye, f.yaw, f.pitch, radius) + f.camera(radius) } None => render::orbit_camera(lo, hi, self.view), } } } -const MOVE_KEYS: [&str; 6] = ["w", "a", "s", "d", "q", "e"]; - thread_local! { static OPEN: RefCell> = const { RefCell::new(Vec::new()) }; static NEXT_ID: Cell = const { Cell::new(0) }; @@ -181,10 +167,7 @@ pub fn open_with(ui: &AppWindow, content: Content, labels: Labels, animation: Op entries, view: View::default(), fly: None, - keys: HashSet::new(), - fast: false, timer: slint::Timer::default(), - last_tick: Instant::now(), outfit_timer: slint::Timer::default(), })); @@ -193,10 +176,7 @@ pub fn open_with(ui: &AppWindow, content: Content, labels: Labels, animation: Op let mut st = s.borrow_mut(); match &mut st.fly { // Dragging looks around. - Some(f) => { - f.yaw -= dx * 0.005; - f.pitch = (f.pitch - dy * 0.005).clamp(-1.55, 1.55); - } + Some(f) => f.look(dx, dy), None => { st.view.yaw -= dx * 0.01; st.view.pitch = (st.view.pitch + dy * 0.01).clamp(-1.5, 1.5); @@ -208,13 +188,10 @@ pub fn open_with(ui: &AppWindow, content: Content, labels: Labels, animation: Op let (w, s) = (win.as_weak(), Rc::clone(&state)); win.on_zoom(move |delta| { let mut st = s.borrow_mut(); - if st.fly.is_some() { - // The wheel moves forward and back. - let step = st.bounds().map_or(1.0, |(lo, hi)| (0..3).map(|i| hi[i] - lo[i]).fold(0.0, f32::max) * 0.05); - if let Some(f) = &mut st.fly { - let cam = render::fly_camera(f.eye, f.yaw, f.pitch, 1.0); - let d = step * delta.signum(); - f.eye = [f.eye[0] + cam.forward[0] * d, f.eye[1] + cam.forward[1] * d, f.eye[2] + cam.forward[2] * d]; + if let Some(f) = &mut st.fly { + f.wheel(delta); + if let Some(win) = w.upgrade() { + win.set_fly_speed(f.speed_text().into()); } } else { st.view.zoom = (st.view.zoom * 1.1f32.powf(delta / 120.0)).clamp(0.2, 20.0); @@ -250,13 +227,10 @@ pub fn open_with(ui: &AppWindow, content: Content, labels: Labels, animation: Op return; } let mut st = s.borrow_mut(); - st.fast = shift; - if st.fly.is_none() || !MOVE_KEYS.contains(&key.as_str()) { + if !st.fly.as_mut().is_some_and(|f| f.key_down(&key, shift)) { return; } - st.keys.insert(key); if !st.timer.running() { - st.last_tick = Instant::now(); let (w2, s2) = (w.clone(), Rc::clone(&s)); st.timer.start(slint::TimerMode::Repeated, Duration::from_millis(16), move || tick(&w2, &s2)); } @@ -264,16 +238,16 @@ pub fn open_with(ui: &AppWindow, content: Content, labels: Labels, animation: Op let s = Rc::clone(&state); win.on_key_up(move |text, shift| { let mut st = s.borrow_mut(); - st.fast = shift; - st.keys.remove(&text.to_lowercase()); - if st.keys.is_empty() { + if !st.fly.as_mut().is_some_and(|f| f.key_up(&text.to_lowercase(), shift)) { st.timer.stop(); } }); let s = Rc::clone(&state); win.on_focus_lost(move || { let mut st = s.borrow_mut(); - st.keys.clear(); + if let Some(f) = &mut st.fly { + f.release(); + } st.timer.stop(); }); let (w, s) = (win.as_weak(), Rc::clone(&state)); @@ -333,7 +307,6 @@ pub fn open_with(ui: &AppWindow, content: Content, labels: Labels, animation: Op let mut st = s.borrow_mut(); st.view = View::default(); st.fly = None; - st.keys.clear(); st.timer.stop(); drop(st); if let Some(win) = w.upgrade() { @@ -659,39 +632,24 @@ fn toggle_fly(w: &slint::Weak, state: &Rc>) { if st.fly.take().is_none() { let Some((lo, hi)) = st.bounds() else { return }; let cam = render::orbit_camera(lo, hi, st.view); - let f = cam.forward; - st.fly = Some(Fly { eye: cam.eye, yaw: f[1].atan2(f[0]), pitch: f[2].clamp(-1.0, 1.0).asin() }); + st.fly = Some(Fly::new(&cam, 2.0 * cam.radius)); } - st.keys.clear(); st.timer.stop(); let flying = st.fly.is_some(); + let speed = st.fly.as_ref().map(Fly::speed_text).unwrap_or_default(); drop(st); if let Some(win) = w.upgrade() { win.set_fly_mode(flying); + win.set_fly_speed(speed.into()); } render(w, state); } /// Moves the flying camera while movement keys are held. fn tick(w: &slint::Weak, state: &Rc>) { - let mut st = state.borrow_mut(); - let dt = st.last_tick.elapsed().as_secs_f32().min(0.1); - st.last_tick = Instant::now(); - let size = st.bounds().map_or(2.0, |(lo, hi)| (0..3).map(|i| (hi[i] - lo[i]).powi(2)).sum::().sqrt()); - let speed = size * 0.35 * if st.fast { 4.0 } else { 1.0 } * dt; - let held = |k: &str| st.keys.contains(k); - let (fwd, side, vert) = ( - (held("w") as i32 - held("s") as i32) as f32, - (held("d") as i32 - held("a") as i32) as f32, - (held("e") as i32 - held("q") as i32) as f32, - ); - let Some(f) = &mut st.fly else { return }; - let cam = render::fly_camera(f.eye, f.yaw, f.pitch, 1.0); - for i in 0..3 { - let up = if i == 2 { 1.0 } else { 0.0 }; - f.eye[i] += (cam.forward[i] * fwd + cam.right[i] * side + up * vert) * speed; + if let Some(f) = &mut state.borrow_mut().fly { + f.tick(); } - drop(st); render(w, state); } diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index a94f6db..bafe216 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -3911,6 +3911,8 @@ export component ViewerWindow inherits Window { in-out property show-info: true; // First-person camera (WASD + mouse) instead of orbiting. in property fly-mode; + // How fast the camera flies. + in property fly-speed; in property <[PartRow]> parts; in property <[MaterialRow]> materials; // RDR2 peds: the outfits to choose from (empty for other models). @@ -4101,7 +4103,7 @@ export component ViewerWindow inherits Window { x: Theme.space-m; y: parent.height - self.height - Theme.space-s; text: !root.model-mode ? @tr("Esc closes") - : root.fly-mode ? @tr("W A S D move · Q E down/up · Shift faster · drag to look · F orbits · Esc closes") + : root.fly-mode ? @tr("{} · wheel changes the speed · W A S D move · Q E down/up · Shift faster · drag to look · F orbits · Esc closes", root.fly-speed) : @tr("Drag to rotate · scroll to zoom · F flies · R or double-click resets · Esc closes"); font-size: Theme.font-small; color: Theme.text-faint; @@ -5345,6 +5347,14 @@ export component SceneWindow inherits Window { out property area-width: area.width; out property area-height: area.height; + // Map scenes: a flying camera, and how fast it is. + in property can-fly; + in property fly-mode; + in property fly-speed; + callback toggle-fly(); + callback key-down(string, bool); + callback key-up(string, bool); + callback focus-lost(); callback toggle-play(); callback seek(float); callback toggle-camera(); @@ -5355,7 +5365,10 @@ export component SceneWindow inherits Window { changed theme-mode => { root.apply-theme(); } changed area-width => { root.resized(); } changed area-height => { root.resized(); } - init => { root.apply-theme(); } + init => { + root.apply-theme(); + scope.focus(); + } function apply-theme() { Palette.color-scheme = root.theme-mode == 1 ? ColorScheme.light : root.theme-mode == 2 ? ColorScheme.dark : ColorScheme.unknown; @@ -5408,6 +5421,16 @@ export component SceneWindow inherits Window { text: root.cut-camera ? @tr("Free camera") : @tr("Cutscene camera"); clicked => { root.toggle-camera(); } } + if root.can-fly: Button { + text: @tr("Fly (F)"); + checkable: true; + checked: root.fly-mode; + clicked => { + self.checked = root.fly-mode; + root.toggle-fly(); + scope.focus(); + } + } if root.can-export: Button { text: @tr("Export glTF…"); icon: @image-url("icons/export.svg"); @@ -5498,6 +5521,7 @@ export component SceneWindow inherits Window { if (e.kind == PointerEventKind.down) { self.last-x = self.mouse-x; self.last-y = self.mouse-y; + scope.focus(); } } moved => { @@ -5512,6 +5536,16 @@ export component SceneWindow inherits Window { return EventResult.accept; } } + if root.can-fly && !root.loading && root.load-text == "": Text { + x: Theme.space-m; + y: parent.height - self.height - Theme.space-s; + width: parent.width - 2 * Theme.space-m; + text: root.fly-mode ? @tr("{} · wheel changes the speed · W A S D move · Q E down/up · Shift faster · drag to look · F orbits", root.fly-speed) + : @tr("Drag to turn · scroll to zoom · F flies"); + font-size: Theme.font-small; + overflow: elide; + color: #b0b0b0; + } } if root.objects.length > 0: Rectangle { width: 300px; @@ -5626,14 +5660,27 @@ export component SceneWindow inherits Window { } } } - FocusScope { + scope := FocusScope { key-pressed(e) => { - if (e.text == " ") { + if (e.text == " " && root.timeline) { root.toggle-play(); return EventResult.accept; } + if (root.can-fly) { + root.key-down(e.text, e.modifiers.shift); + return EventResult.accept; + } return EventResult.reject; } + key-released(e) => { + root.key-up(e.text, e.modifiers.shift); + return EventResult.accept; + } + changed has-focus => { + if (!self.has-focus) { + root.focus-lost(); + } + } } } diff --git a/crates/rage-rpf/src/rpf9_native.rs b/crates/rage-rpf/src/rpf9_native.rs index 3822754..76871fb 100644 --- a/crates/rage-rpf/src/rpf9_native.rs +++ b/crates/rage-rpf/src/rpf9_native.rs @@ -311,7 +311,14 @@ impl NativeArchive { /// The slot with this path (case-insensitive). pub fn find(&self, path: &str) -> Option { - self.by_path.get(&path.to_ascii_lowercase()).copied() + let path = path.to_ascii_lowercase(); + self.by_path.get(&path).copied().or_else(|| { + // Its name was learned since: the stand-in has the slot and the hash. + let (slot, rest) = path.strip_prefix(UNNAMED)?.strip_prefix('/')?.split_once('_')?; + let hash = u64::from_str_radix(rest.get(..16)?, 16).ok()?; + let slot: usize = slot.parse().ok()?; + self.catalog.entries.get(slot).filter(|e| e.slot == slot && e.name_hash64 == Some(hash)).map(|e| e.slot) + }) } /// The path-like strings in an archive's own files. @@ -380,7 +387,7 @@ const SELF_NAMED: [u8; 10] = [2, 3, 4, 66, 67, 69, 70, 72, 102, 109]; /// Larger members are not searched for their own name. const LEARN_MAX: u64 = 8 << 20; /// Opened archives to keep. -const KEPT: usize = 16; +const KEPT: usize = 192; /// Larger members are not searched for names of others. const STRINGS_MAX: u64 = 64 << 20; diff --git a/site/content/gta-vi.md b/site/content/gta-vi.md index 80595c8..ea36074 100644 --- a/site/content/gta-vi.md +++ b/site/content/gta-vi.md @@ -52,7 +52,11 @@ Not read yet: scripts (`.#script`), particle effects (`.#pt`) and texture volume **Tools → Map of the game (3D)…** shows the whole world from afar. The search index must be complete; the first time, all map files are read, which takes a minute or two. A single `.#map` opens as XML; **Show in 3D** there puts its objects -together with those around it. Interiors are not filled yet. +together with those around it. + +**Fly (F)** flies through it: W A S D move, Q and E go down and up, Shift is faster, dragging looks around and the wheel +sets the speed. In the whole map, details are loaded where the camera is, as the game's own levels of detail tell. + Interiors are not filled yet. On the command line: `openrage map --render map.png`, or `openrage map `. From c08f3a396492481a8c85e8c90cc993e3beb70a8b Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 17:20:56 +0100 Subject: [PATCH 24/31] Website: a short GTA VI section and a page of its own Co-Authored-By: Claude Opus 5.5 --- site/config.toml | 2 +- site/content/_index.md | 40 ++++++----- site/content/gta-vi.md | 134 ++++++++++++++++++++++++++----------- site/static/style.css | 26 ++++--- site/templates/gta-vi.html | 62 +++++++++++++++++ site/templates/index.html | 19 +++++- 6 files changed, 208 insertions(+), 75 deletions(-) create mode 100644 site/templates/gta-vi.html diff --git a/site/config.toml b/site/config.toml index b80c746..06ef97d 100644 --- a/site/config.toml +++ b/site/config.toml @@ -2,7 +2,7 @@ # Content lives in content/ (Markdown), layout in templates/, CSS/JS in static/. base_url = "https://two-play.github.io/openrage" title = "OpenRAGE" -description = "The free, open-source successor to OpenIV: mod GTA V and explore GTA VI and Red Dead Redemption 2 on Linux and Windows." +description = "The free, open-source successor to OpenIV: mod GTA V and explore Red Dead Redemption 2 on Linux and Windows." default_language = "en" compile_sass = false build_search_index = false diff --git a/site/content/_index.md b/site/content/_index.md index 825bc5b..1568d30 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -3,18 +3,15 @@ # TOML note: plain keys must stay above the first [table] / [[list]] entry. # Strings are Markdown (links, `code`, **bold**). Images are file names in docs/images/. title = "OpenRAGE – the open-source OpenIV successor" -description = "OpenRAGE is the free, open-source successor to OpenIV: mod GTA V (Legacy and Enhanced) and explore GTA VI and Red Dead Redemption 2 on Linux and Windows, with OpenIV's mods folder and .oiv packages, plus undo." +description = "OpenRAGE is the free, open-source successor to OpenIV: mod GTA V (Legacy and Enhanced) and explore Red Dead Redemption 2 on Linux and Windows, with OpenIV's mods folder and .oiv packages, plus undo." [extra] -# Announcement at the top of the page, with a link to a page. -announcement = "**New: GTA VI works.** Browse and search its archives, see the whole map in 3D, view models, textures and animations, play sounds and videos." -announcement_link = "gta-vi.md" # Small line above the headline. eyebrow = "The open-source OpenIV successor" # **bold** parts are shown in the accent colour. headline = "The open modding toolkit for **RAGE engine** games" # One short line under the headline; the longer description belongs in features_intro. -lead = "OpenIV's last release was in 2022. OpenRAGE picks up where it left off: same `mods` folder and `.oiv` packages, now open source, on Linux and Windows, ready for **GTA VI**, GTA V Enhanced and RDR2." +lead = "OpenIV's last release was in 2022. OpenRAGE picks up where it left off: same `mods` folder and `.oiv` packages, now open source, on Linux and Windows, ready for GTA V Enhanced and RDR2." notice = """ OpenRAGE is an independent community project. It is not affiliated with or endorsed by Rockstar Games or Take-Two Interactive. It is not made by or affiliated with the OpenIV team either. @@ -27,7 +24,7 @@ features_intro = "What OpenRAGE can open, show and change today." screenshots_title = "Screenshots" screenshots_intro = "Click a picture to enlarge it, arrow keys browse. The screenshots show files from the author's own copy of the game." games_title = "Supported games" -games_intro = "GTA V comes first. **GTA VI can be explored already** (read-only preview), and so can Red Dead Redemption 2. GTA IV can be explored and modded too: archives, textures, models, collisions, animations, texts, maps in 3D and whole cutscenes." +games_intro = "GTA V comes first and Red Dead Redemption 2 can be explored. GTA VI can be explored (read-only preview). GTA IV can be explored and modded too: archives, textures, models, collisions, animations, texts, maps in 3D and whole cutscenes." details_summary = "Checked against the whole game" download_intro = "Unpack the archive and run `openrage-gui` (or `openrage` for the command line). On first start the GUI detects your game and sets up the keys." why_title = "Why switch from OpenIV" @@ -39,6 +36,12 @@ Out of date? [Open an issue](https://github.com/Two-Play/openrage/issues). """ +# A short section that points to the GTA VI page (content/gta-vi.md). +[extra.gta6] +title = "GTA VI" +text = "OpenRAGE opens GTA VI's archives: the map in 3D, models, textures, animations, sounds and videos. A read-only preview, with your own copy of the game." +link_text = "What works in GTA VI" + [extra.hero] light = "overview-light.png" dark = "overview-dark.png" @@ -48,11 +51,6 @@ alt = "OpenRAGE explorer showing a vehicles archive of GTA V with a 3D preview o # ---------------------------------------------------------------- Highlights -[[extra.features]] -icon = "🌴" -title = "GTA VI" -text = "The whole map in 3D, models, textures, animations, sounds, videos, metadata. [What works](https://two-play.github.io/openrage/gta-vi/)." - [[extra.features]] icon = "🗂️" title = "Explorer" @@ -166,14 +164,6 @@ archives = "RPF7 read, incl. nested archives; edit in place in the mods folder, formats_status = "ok" formats = "textures · models · audio · animations · metadata · text tables · cutscenes · scripts · collisions · paths" -[[extra.games]] -name = "GTA VI" -variant = "preview" -archives_status = "partial" -archives = "RPF9 read, incl. nested archives, with your own copy of the game (Xbox Series build); browsing, searching and extracting ([details](https://two-play.github.io/openrage/gta-vi/))" -formats_status = "partial" -formats = "models with skeletons (glTF export), animations, textures, collisions, navigation meshes, metadata and maps as XML, game text, audio and videos (read-only)" - [[extra.games]] name = "Red Dead Redemption 2" archives_status = "ok" @@ -181,6 +171,14 @@ archives = "RPF8 read: decryption with keys from your own game, Oodle decompress formats_status = "partial" formats = "textures, models (viewer, glTF export), texts, metadata, audio and animations (read-only)" +[[extra.games]] +name = "GTA VI" +variant = "preview" +archives_status = "partial" +archives = "RPF9 read, incl. nested archives, with your own copy of the game (Xbox Series build)" +formats_status = "partial" +formats = "models, animations, textures, maps in 3D, collisions, navigation meshes, metadata, game text, audio and videos (read-only)" + [[extra.games]] name = "GTA IV" variant = "Complete Edition" @@ -204,7 +202,7 @@ text = "Native on both, Steam and Proton installs included." [[extra.reasons]] icon = "🛠️" title = "Actively developed" -text = "Supports GTA V Enhanced and, as a preview, GTA VI. OpenIV's last release, 4.1, is from January 2022." +text = "Supports GTA V Enhanced, GTA VI can be explored. OpenIV's last release, 4.1, is from January 2022." [[extra.reasons]] icon = "↩️" @@ -255,7 +253,7 @@ edge = "openrage" [[extra.compare]] feature = "Other games" openiv = "GTA IV, EFLC, Max Payne 3" -openrage = "RDR2 archives, textures, models, texts, metadata, audio and animations; GTA IV archives, textures, models, texts, placements and cutscenes; GTA VI archives, models, textures, animations, audio, videos and metadata (preview)" +openrage = "RDR2 archives, textures, models, texts, metadata, audio and animations; GTA IV archives, textures, models, texts, placements and cutscenes; GTA VI read-only (preview)" edge = "openiv" [[extra.compare]] diff --git a/site/content/gta-vi.md b/site/content/gta-vi.md index ea36074..99d23ea 100644 --- a/site/content/gta-vi.md +++ b/site/content/gta-vi.md @@ -1,17 +1,89 @@ +++ title = "GTA VI" -description = "GTA VI in OpenRAGE: browse and search RPF9 archives, view textures, models, animations, collisions, navigation meshes and metadata, play sounds and videos." +description = "GTA VI in OpenRAGE: the map in 3D, RPF9 archives, models, textures, animations, sounds, videos and metadata. A read-only preview." +template = "gta-vi.html" [extra] -docs = true -lead = "Open GTA VI's RPF9 archives like folders, search the whole game and look at what is inside: models, textures, animations, sounds, videos and metadata. Read-only for now." -toc = true +# **bold** parts are shown in the accent colour. +eyebrow = "Read-only preview" +headline = "Explore **GTA VI**" +lead = "Open RPF9 archives like folders, search the whole game and look at what is inside, on Linux and Windows." +features_title = "What you can do" +features_intro = "Everything is read from your own copy of the game. Nothing in it is changed." +status_title = "At a glance" +status_intro = "What OpenRAGE reads today. Scripts (`.#script`), particle effects (`.#pt`) and texture volumes are not read yet." + +[[extra.features]] +icon = "🗺️" +title = "The map in 3D" +text = "The whole world from afar; details load where you fly." + +[[extra.features]] +icon = "🗂️" +title = "Archives" +text = "RPF9 archives, nested ones too, with folders and names." + +[[extra.features]] +icon = "🚗" +title = "Models" +text = "Skeletons, textures, normal and specular maps, glTF export." + +[[extra.features]] +icon = "🏃" +title = "Animations" +text = "Clips play on vehicles, weapons, props and parts of people." + +[[extra.features]] +icon = "🔊" +title = "Sounds and videos" +text = "Sounds with WAV export; videos in a player of their own." + +[[extra.features]] +icon = "🔎" +title = "Search" +text = "Names, hashes and full text of the whole game." + +[[extra.formats]] +what = "Archives" +files = "`.rpf` (RPF9)" +status = "browse and extract" + +[[extra.formats]] +what = "Maps" +files = "`.#map`" +status = "in 3D: a place with its surroundings, or the whole map; glTF export" + +[[extra.formats]] +what = "Models" +files = "`.#dr`, `.#ft`, `.#dd`" +status = "view, export glTF" + +[[extra.formats]] +what = "Animations" +files = "`.#cd`" +status = "play" + +[[extra.formats]] +what = "Textures" +files = "`.ttpf`, `.#td`" +status = "view, export" + +[[extra.formats]] +what = "Collisions, navigation meshes" +files = "`.#bn`, `.#nv`" +status = "view in 3D" + +[[extra.formats]] +what = "Metadata, game text" +files = "`.#mt`, `.#typ`, `.#ldbmt` and others" +status = "read as XML, search" + +[[extra.formats]] +what = "Sounds, videos" +files = "`.awc`, `.bk2`" +status = "play; export WAV" +++ -> [!NOTE] -> GTA VI support is a preview. It reads the build for Xbox Series (Scarlett) and changes nothing: archives cannot be -> edited. OpenRAGE contains no game files and no keys, and does not help to obtain either; you need your own copy. - ## Setup Choose the folder that contains `game_scarlett_master.exe` or RPF9 archives in the setup dialog, or under @@ -21,47 +93,29 @@ With the supported executable beside the archives, OpenRAGE reads their tables o game is not started, and the keys are not stored. Without the executable, or with another build, archives are shown in a recovery view: their files are found by their content, grouped by type and offset, and without folders. -On the command line: - -``` -openrage --game ls common.rpf -openrage --game index -openrage --game search walk -``` - -## At a glance - -| What | Files | Status | -|---|---|---| -| Archives | `.rpf` (RPF9) | browse and extract, nested archives too | -| Models | `.#dr`, `.#ft`, `.#dd` | view with skeleton, textures, normal and specular maps, export glTF | -| Maps | `.#map` | a place with its surroundings, or the whole map from afar, in 3D; export glTF | -| Animations | `.#cd` | play on vehicles, weapons, props and parts of people | -| Textures | `.ttpf`, `.#td` | view and export; volumes are not read | -| Collisions | `.#bn` | view in 3D | -| Navigation meshes | `.#nv` | view in 3D | -| Metadata, maps, archetypes | `.#mt`, `.#map`, `.#typ`, `.#as`, `.#cov`, `.#kit` and others | read as XML | -| Game text | `.#ldbmt` | read and search | -| Sounds | `.awc` | play, export WAV | -| Videos | `.bk2` | play in a window of their own | -| Search | everything above | names, hashes and full text | - -Not read yet: scripts (`.#script`), particle effects (`.#pt`) and texture volumes. +> [!NOTE] +> OpenRAGE contains no game files and no keys, and does not help to obtain either; you need your own copy. ## The map -**Tools → Map of the game (3D)…** shows the whole world from afar. The search index must be complete; the first time, -all map files are read, which takes a minute or two. A single `.#map` opens as XML; **Show in 3D** there puts its objects -together with those around it. +**Tools → Map of the game (3D)…** shows the whole world. The search index must be complete; the first time, all map +files are read, which takes a minute or two. A single `.#map` opens as XML; **Show in 3D** there puts its objects +together with those around it. Interiors are not filled yet. **Fly (F)** flies through it: W A S D move, Q and E go down and up, Shift is faster, dragging looks around and the wheel sets the speed. In the whole map, details are loaded where the camera is, as the game's own levels of detail tell. - Interiors are not filled yet. - -On the command line: `openrage map --render map.png`, or `openrage map `. ## Names Archives store hashes of their files' names. OpenRAGE finds the names in the executable, in the game's metadata, in the files themselves and, once the search index is built, in all the other archives. Files whose name is not known are listed under `entries/`. + +## Command line + +``` +openrage --game ls common.rpf +openrage --game index +openrage --game search walk +openrage --game map --render map.png +``` diff --git a/site/static/style.css b/site/static/style.css index 2134214..cef7a89 100644 --- a/site/static/style.css +++ b/site/static/style.css @@ -734,15 +734,19 @@ table.compare td.edge::after { /* Shorter sections: more air between them, compact tables in prose */ .prose h3 { margin-top: 1.8rem; } -/* Announcement above the hero headline */ -.hero .announcement { margin: 0 0 1.25rem; } -.hero .announcement a { - display: inline-block; - padding: 0.55rem 1.1rem; - border-radius: 999px; - background: var(--accent); - color: var(--accent-text, #fff); - text-decoration: none; - line-height: 1.35; +/* Short section that points to another page */ +.teaser { padding: 1.75rem 0 0; } +.teaser .card { + flex-direction: row; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + gap: 0.75rem 1.5rem; } -.hero .announcement a:hover, .hero .announcement a:focus-visible { text-decoration: underline; } +.teaser .card > div { flex: 1 1 26rem; } +.teaser h2 { font-size: 1.15rem; margin: 0 0 0.25rem; } +.teaser p { margin: 0; color: var(--text-muted); font-size: 0.97rem; } +.teaser .card .btn { flex: none; align-self: center; margin: 0; } + +/* Landing pages: the text below the sections */ +.landing-text { max-width: 75ch; } diff --git a/site/templates/gta-vi.html b/site/templates/gta-vi.html new file mode 100644 index 0000000..f4eb9fb --- /dev/null +++ b/site/templates/gta-vi.html @@ -0,0 +1,62 @@ +{% extends "base.html" %} +{#- A game's landing page. All text comes from content/gta-vi.md. -#} + +{% block main %} +{%- set x = page.extra %} +
+
+
+

{{ x.eyebrow }}

+

{{ x.headline | markdown(inline=true) | safe }}

+

{{ x.lead | markdown(inline=true) | safe }}

+ +
+
+ +
+
+

{{ x.features_title }}

+
{{ x.features_intro | markdown | safe }}
+
    + {%- for f in x.features %} +
  • {{ f.title }}

    {{ f.text | markdown(inline=true) | safe }}

  • + {%- endfor %} +
+
+
+ +
+
+

{{ x.status_title }}

+
{{ x.status_intro | markdown | safe }}
+
+
+ + + + + {%- for f in x.formats %} + + + + + + {%- endfor %} + +
WhatFilesStatus
{{ f.what }}{{ f.files | markdown(inline=true) | safe }}{{ f.status | markdown(inline=true) | safe }}
+ + + + +
+
+
+ {{ page.content | safe }} +
+
+
+ +{% endblock main %} diff --git a/site/templates/index.html b/site/templates/index.html index f428323..4ff656b 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -6,7 +6,6 @@
- {%- if x?.announcement %}

{{ x.announcement | markdown(inline=true) | safe }}

{% endif %} {%- if x?.eyebrow %}

{{ x.eyebrow }}

{% endif %}

{{ x.headline | markdown(inline=true) | safe }}

{{ x.lead | markdown(inline=true) | safe }}

@@ -20,7 +19,8 @@

{{ x.headline | markdown(inline=true) | safe }}

  • Latest release
  • Linux & Windows
  • -
  • GTA VI · GTA V · RDR2 · GTA IV
  • +
  • GTA V · RDR2 archives
  • +
  • GTA VI preview
  • GPL-3.0
@@ -35,6 +35,21 @@

{{ x.headline | markdown(inline=true) | safe }}

{{ x.notice | markdown | safe }}
+ {%- if x?.gta6 %} + +
+
+
+
+

{{ x.gta6.title }}

+

{{ x.gta6.text | markdown(inline=true) | safe }}

+
+ {{ x.gta6.link_text }} +
+
+
+ {%- endif %} +

{{ x.features_title }}

From d366cd8e8a398a1ae1c29b5aeea63dd9b43c15ba Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 17:43:11 +0100 Subject: [PATCH 25/31] Website: screenshots and an accent of its own for GTA VI Co-Authored-By: Claude Opus 5.5 --- site/content/gta-vi.md | 33 ++++++++++++++++++++++ site/static/gta6/fly.webp | Bin 0 -> 93462 bytes site/static/gta6/map.webp | Bin 0 -> 24582 bytes site/static/gta6/model.webp | Bin 0 -> 32322 bytes site/static/gta6/video.webp | Bin 0 -> 13742 bytes site/static/style.css | 53 ++++++++++++++++++++++++++++++++++++ site/templates/gta-vi.html | 27 ++++++++++++++++-- site/templates/index.html | 2 +- 8 files changed, 111 insertions(+), 4 deletions(-) create mode 100644 site/static/gta6/fly.webp create mode 100644 site/static/gta6/map.webp create mode 100644 site/static/gta6/model.webp create mode 100644 site/static/gta6/video.webp diff --git a/site/content/gta-vi.md b/site/content/gta-vi.md index 99d23ea..8c7dc5c 100644 --- a/site/content/gta-vi.md +++ b/site/content/gta-vi.md @@ -10,9 +10,18 @@ headline = "Explore **GTA VI**" lead = "Open RPF9 archives like folders, search the whole game and look at what is inside, on Linux and Windows." features_title = "What you can do" features_intro = "Everything is read from your own copy of the game. Nothing in it is changed." +screenshots_title = "Screenshots" +screenshots_intro = "OpenRAGE showing files of GTA VI. Click a picture to enlarge it, arrow keys browse." status_title = "At a glance" status_intro = "What OpenRAGE reads today. Scripts (`.#script`), particle effects (`.#pt`) and texture volumes are not read yet." +# Pictures are files in static/. +[extra.hero] +image = "gta6/fly.webp" +width = 1100 +height = 720 +alt = "OpenRAGE flying over the map of GTA VI: an elevated road junction, houses and the skyline behind" + [[extra.features]] icon = "🗺️" title = "The map in 3D" @@ -43,6 +52,30 @@ icon = "🔎" title = "Search" text = "Names, hashes and full text of the whole game." +[[extra.screenshots]] +image = "gta6/map.webp" +width = 1100 +height = 720 +alt = "The whole map of GTA VI from afar in OpenRAGE's map window" +title = "The whole map" +caption = "every distant model in one scene" + +[[extra.screenshots]] +image = "gta6/model.webp" +width = 1100 +height = 760 +alt = "A deer trophy prop with textures in OpenRAGE's model viewer" +title = "Model viewer" +caption = "textures, normal and specular maps" + +[[extra.screenshots]] +image = "gta6/video.webp" +width = 960 +height = 600 +alt = "OpenRAGE's video player showing an abstract neon animation" +title = "Video player" +caption = "volume, repeat and full screen" + [[extra.formats]] what = "Archives" files = "`.rpf` (RPF9)" diff --git a/site/static/gta6/fly.webp b/site/static/gta6/fly.webp new file mode 100644 index 0000000000000000000000000000000000000000..a1b5c2a0b9b8057b9aa4712af3b51224ff7605b0 GIT binary patch literal 93462 zcmeFYRcstg(5`8UnVA`4W@ct)W{xRl95Zvw5XW|6W@ct)W@cuOXZG9wth5)abGtXY zebH*EOWm)k9+j%pY7KcA8B`}o2wiCjH61lRa;X2-YTYpTkPJ#Nb5J7kl!?-mMHH0( zo+iGlAt2Z~g9ijANK7-Q0Mvs--ck6okhN=D8e1dplF0;SqQ&6Y709oFCB!(uwa?_Ch5(us~s-pLnw~qG)uWA%@yO|UXxCOt0e||OfzWYM} zz%RS|;$Txy<^%5*-8>)@Z2L}sN_J{$0jdO&eXzch9rkzu?7`lBWD|f0u;X08DL5VA z36g#N^;mi1{R(~nFN2Ie6dwe?b|1i*yA)&@U_r3-*Wzo`R_}j8z+HDTE4@2GGvLx! zq!*Va4QfD2A9kN0o&l(ulZNukJnECi0rBds<#Ln3LXSm zz8=2*XR#{_27mU#gT29DfVnrzuOjd+=qf*%#yixhR}{@fwWOkLRcl>?;YT?Rk5+6h zgS2uwWywSeXYCK29IJllZ^$C)ke8Iec&PKf<#Zs4FVbn$~jV4S%%^X@w9ry)~NzexBtAwU)PJ$~7oo?!MozsV3BM4vG~f zdiJ!zS>UBDU(vT4y`p=M8j4RT)ymc3sUVQ%zufC$F)lEDTMU&g4eZh$ns|zX^jLTk zR@A)IbCbVTOls3XrTP1>sLvtY%pm3ey77N2<^SLKzhU|Rwy&rRqD9trenMnz8VLGs z#Qbm38T*;}i_OS4d{{r-l=`)^>u5?DvQG}!rD;4YrP z<0Y!|=p!LskuicLK(s#cq)RD|yG$%Ud6^ifk!GQD`oUj@v5jq^_*G2OqxU$*Aqz2z;9$!PHqqC~ zRr9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ev{%h1?`Yv5$s3k>*m*qENu*(Z82J--TDw&aBU`2vn4o9-j{yd$uQ*cP*v$8; z+IRFsc9W25+a-h52Y-AhL-BfD<;6V7K>XVK$Am`;4&%u=^m`vz)-v=X1e9y zk*#|V#xmU*Nh|_C(jr0&gTjO{Jn>#p2L-&kP4)= z{A5XDJsL#`HnlF@+ChTlimcaa^s`xm@a-GII`-bkk%K(U5JlY_d$61H{_~zeE7iU7 zLj}w%q3%%3g(Xxw5kBdG;#Z$Di;T`T$6<&4_U5_(rQ>xZljlkPt6EH7^TC_>Q}FJ2 zStcLi|B^1&?NXlYY3J`V-gqkA+gN$csWaq?pYwmy6ZTj97>DH=&t)5ATkxvf9>F3XSxAcpXWcezpY{TH^$=*?SknqJWdwe zeUcTiODZ_)FEz0@oL-7vc68F_5Ul^leD}fbG-(SfZAkKt6auHxcibTxxqBmrs_H-U zS*4U~0$PLHZow-!E<^sJqxSRUaP_N=IpUp^)y`gY?`cuw8s0X1z3e}c4@Mk_c!DN{n^nvaI}+}{+t z+P^^=WqsHOdrNIaW*dWXM zq!q~*iL_*n8qYWJDAB}7+VRrfffoJFmQEG*oUEC1Bn-7YJr>mv000000000000000 X0000000000000000000000000M-!og literal 0 HcmV?d00001 diff --git a/site/static/gta6/map.webp b/site/static/gta6/map.webp new file mode 100644 index 0000000000000000000000000000000000000000..f0daaf14ad1d69f1b5ce931b63877d9018a19249 GIT binary patch literal 24582 zcmeFYQ>-vh(=~Q%+qP}nwr$(CZJ+1Zwr$(C?Y?dDxBdHlZF=2wt|t3plHpp}lTnfs z6Z_Q%08kedQczRiAb9+bKA#Ji3rHmcG7rQjNfIwcR76NfgrQ-e010Vnci{eVYb@B` zCvt54SN)65r=8=!>OT4$Jxjh~pP9c7uWK*E|M0ff1HiAqYt>`SKWno69{-hpugvw$j)62l-X?HE~}N^t@e1@BeyxAcKlOX>U;D29-S@_ynBVtD=sWP${R!~h|2_Wm_sRbo zAF#LMf9ehJ$M<{pyY`)alm1Ts_h+lW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ak=l}30$MQceZwV$ zk_IC0YgufI4B90t5HWx-nN#**fA7{+X<4QZCMm4}V@DTS3ocE4g7BfI5)U8sc)^3@ zfWTUI;w4>@0*0irH^X4<;_Km!m+uzzRkHG1A_=eb3lwAaC8jHVuE?M14EJC`?27=D zatW!Fc9(=xViUv>wTEPrt$WgDwwR|1irhdh;YZ4#g)Wta0xt(z|9=oYwPL%Azpx0F zf+8LnCjOpM4%looX9*Iy!q%O(c^2)?caSb}fAC`M17}Mtt{vLKJ;npoc=8R}$bH}C zh#sjarm&Dd4Mo9i;4C{#SH-I- z89swfOY0W+e4($@g`@&O7vo4Ji09SbeH=?hddmU%>pG^{jc-$+JO(}I&xTIPa=6eOO6 zepKC_`gu*NUPF<;?S8gNbG&~VQl#aW?6D(;S_R;7t_FR;9n(UrPI-k4Js8Bk>f;qe zB~4YB2C~r+NUSfY&QKzpN7tmcG9&Q$mmqjb2MT!ytm@KA+;rPk_Z7QVWv7@ zKtraccdb*&{!~y5wd`3i#b%R8P|}MI)CZAO;V1OLy4f)zsfyf{8FcF+RLnmsF3uJJ z9eb)j!+kivamSkbMg{}vfZBN#QmdkozcpH@C>S9|`GcT_jtP$kw=XD05*q5ai__t7{QO@}vqsNL~W3@=$KUa)kM8I#;7TFcFDwGNecdN?gKxj;o=&GvWeSXy|I?6^Y%IM33Y(4ND9R2D%n~+RQtU`w zc*M+jXLc3ad*N*ibe0LP`H{%SSyTApXe?NZvoESke#RbB_5y6Lhl<&S1e@e&nm|Ug z3zTj4pymnnVvUdeh4{n|Cq;O>F|fnAx?H6tC^}>gaV}SK{Oi`A2P@&Ar#RNt-cax+ zj0HEV@@VF&EA8@<##$nwRKh$GRG*%7ibh(7CBi^VqnkJM*weiLDG{3%JvN3CBPSO= m4%lCus5N|(+DkPP!Jd87Z43o(LBtrP3H!tV000000001vD(LS3 literal 0 HcmV?d00001 diff --git a/site/static/gta6/video.webp b/site/static/gta6/video.webp new file mode 100644 index 0000000000000000000000000000000000000000..5b64a6f37af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dy$|OFAu+jz8ri9)i%&ANHAVKN z6)2jbhzMQcp<#?n;>E>tx3Jg+DY)i4_7IX6yP>%hAa6AiYvM9?I+Zcx40`B=+>>@^ zG_-n^gV%o^llNHGW*=HBXuo|7>sK6dgYpUgUJWs{r}*H>HA6S3Mg=tdus++VJCmjx z^3#Tc)7`=vGeqN?ID7upaS*3rKc#dhr`ht2nHU{Q7LIxCnm)S!x$$-*DlZAuJFl@h zB;`OU^`@m5GJB7?7J|_GJPavrl^=)kZTATK!y><&Qb?;BbbQEs)!-XV`o-U1jU3~e znpN=S?=o@Iw>wF+Q+sm88U48|mZ@PG z^83<9&pc4kA4cEgQaX!@y6T_#MKsWD-FJqYX29Ajyi?A{K^w$$4^VX~%UWv4=?wp{ z-Xi}-p$@Ivg-G^j=9?b>d&-3bRIk6EOy)YotKVPRGb=1Asd&A|IzFm(-gb9JCYNmC MHoyPiLjd4^0bktVivR!s literal 0 HcmV?d00001 diff --git a/site/static/style.css b/site/static/style.css index cef7a89..3db183a 100644 --- a/site/static/style.css +++ b/site/static/style.css @@ -15,6 +15,11 @@ --ok: #15803d; --planned: #6b7280; --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.08); + /* GTA VI: the teaser and its page only */ + --vice-1: #d6247f; + --vice-2: #e8622a; + --vice-3: #b87a00; + --vice-glow: 12%; --radius: 10px; --max: 1120px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif; @@ -33,6 +38,10 @@ --accent: #fb923c; --accent-hover: #fdba74; --accent-text: #1a1206; + --vice-1: #ff4fa3; + --vice-2: #ff8a4c; + --vice-3: #ffd166; + --vice-glow: 22%; --code-bg: #262628; --ok: #4ade80; --planned: #9ca3af; @@ -51,6 +60,10 @@ --accent: #fb923c; --accent-hover: #fdba74; --accent-text: #1a1206; + --vice-1: #ff4fa3; + --vice-2: #ff8a4c; + --vice-3: #ffd166; + --vice-glow: 22%; --code-bg: #262628; --ok: #4ade80; --planned: #9ca3af; @@ -750,3 +763,43 @@ table.compare td.edge::after { /* Landing pages: the text below the sections */ .landing-text { max-width: 75ch; } + +/* GTA VI accent: a pink to yellow gradient (tokens --vice-* at the top) */ +.vice { + --vice: linear-gradient(100deg, var(--vice-1), var(--vice-2) 55%, var(--vice-3)); + --vice-shadow: 0 0 28px color-mix(in srgb, var(--vice-1) var(--vice-glow), transparent); +} +.vice.teaser .card { + border: 2px solid transparent; + background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--vice) border-box; + box-shadow: var(--vice-shadow); +} +.vice.teaser .card:hover { border-color: transparent; } +.vice.teaser h2, .vice .hero h1 strong { + width: fit-content; + background: var(--vice); + background-clip: text; + -webkit-background-clip: text; + color: transparent; +} +.vice .hero .eyebrow { + border-color: color-mix(in srgb, var(--vice-1) 45%, var(--border)); + background: color-mix(in srgb, var(--vice-1) 10%, transparent); + color: var(--vice-1); +} +.vice .hero { + background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--vice-1) var(--vice-glow), transparent), transparent 70%); +} +.vice .hero::after { + content: ""; + display: block; + width: min(320px, 60%); + height: 3px; + margin: 2.25rem auto 0; + border-radius: 999px; + background: var(--vice); +} +.vice .hero-shot { box-shadow: var(--shadow), var(--vice-shadow); } +@media (forced-colors: active) { + .vice.teaser h2, .vice .hero h1 strong { background: none; color: CanvasText; } +} diff --git a/site/templates/gta-vi.html b/site/templates/gta-vi.html index f4eb9fb..f33738b 100644 --- a/site/templates/gta-vi.html +++ b/site/templates/gta-vi.html @@ -3,7 +3,7 @@ {% block main %} {%- set x = page.extra %} -

+
@@ -28,7 +32,24 @@

{{ x.features_title }}

-
+
+
+

{{ x.screenshots_title }}

+

{{ x.screenshots_intro | markdown(inline=true) | safe }}

+ +
+
+ +

{{ x.status_title }}

{{ x.status_intro | markdown | safe }}
@@ -51,7 +72,7 @@

{{ x.status_title }}

-
+
{{ page.content | safe }} diff --git a/site/templates/index.html b/site/templates/index.html index 4ff656b..0f75c6d 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -37,7 +37,7 @@

{{ x.headline | markdown(inline=true) | safe }}

{%- if x?.gta6 %} -
+
From c9caf457bfd7d8ee663a10bab9f4e68d9de4fc6e Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 17:47:40 +0100 Subject: [PATCH 26/31] README and website: drop the note on where the screenshots come from Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- site/content/_index.md | 2 +- site/templates/base.html | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c9b9f45..4db5214 100644 --- a/README.md +++ b/README.md @@ -104,4 +104,4 @@ The website lives in [`site/`](site/) and is built from Markdown. GPL-3.0-only, except `crates/rage-tfit2` (the RDR2 archive cipher, ported from an AGPL-3.0 project), which is AGPL-3.0-only, and the plugin interface and SDK (`crates/openrage-plugins/wit`, `plugins/`), which are MIT OR Apache-2.0 so that plugins may use any licence. See [LICENSE](LICENSE) and [NOTICE.md](NOTICE.md) for third-party attributions, and [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md) for the licenses of all third-party crates in the programs (generated from `Cargo.lock`, checked in CI). The same is in the app under **Help → About OpenRAGE**, via `openrage licenses` and on the [licenses page](https://two-play.github.io/openrage/licenses/). -Grand Theft Auto, Red Dead Redemption, RAGE and Rockstar Games are trademarks of Take-Two Interactive Software, Inc. The screenshots show OpenRAGE displaying files from the author's own copy of the game. +Grand Theft Auto, Red Dead Redemption, RAGE and Rockstar Games are trademarks of Take-Two Interactive Software, Inc. diff --git a/site/content/_index.md b/site/content/_index.md index 1568d30..0165df1 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -22,7 +22,7 @@ It contains **no game files and no encryption keys**: keys are taken from your o features_title = "Highlights" features_intro = "What OpenRAGE can open, show and change today." screenshots_title = "Screenshots" -screenshots_intro = "Click a picture to enlarge it, arrow keys browse. The screenshots show files from the author's own copy of the game." +screenshots_intro = "Click a picture to enlarge it, arrow keys browse." games_title = "Supported games" games_intro = "GTA V comes first and Red Dead Redemption 2 can be explored. GTA VI can be explored (read-only preview). GTA IV can be explored and modded too: archives, textures, models, collisions, animations, texts, maps in 3D and whole cutscenes." details_summary = "Checked against the whole game" diff --git a/site/templates/base.html b/site/templates/base.html index 2bce8b4..2c1f496 100644 --- a/site/templates/base.html +++ b/site/templates/base.html @@ -76,7 +76,6 @@

Grand Theft Auto, Red Dead Redemption, RAGE and Rockstar Games are trademarks of Take-Two Interactive Software, Inc. OpenRAGE is not affiliated with or endorsed by Rockstar Games or Take-Two Interactive. - The screenshots show OpenRAGE displaying files from the author's own copy of the game.

From 7310d5170a363514ac080de3235cab61f2b8d4c4 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 18:10:18 +0100 Subject: [PATCH 27/31] Maps: sky, sun, haze and water; pictures drawn much faster Placements of a model are drawn together, a model has one buffer, and only what changes is set between draws. Textures have smaller copies for the distance, new models are uploaded by the loading thread, and what is smaller than a pixel is left out. Pictures of scenes are at most Full HD. Co-Authored-By: Claude Opus 5.5 --- crates/openrage-gui/src/debug.rs | 4 + crates/openrage-gui/src/gpu.rs | 440 +++++++++++++++++++++--------- crates/openrage-gui/src/scene.rs | 38 ++- crates/openrage-gui/src/stream.rs | 12 +- crates/openrage-gui/ui/app.slint | 14 +- 5 files changed, 377 insertions(+), 131 deletions(-) diff --git a/crates/openrage-gui/src/debug.rs b/crates/openrage-gui/src/debug.rs index 7b562fd..e54cddc 100644 --- a/crates/openrage-gui/src/debug.rs +++ b/crates/openrage-gui/src/debug.rs @@ -239,6 +239,10 @@ pub(crate) fn debug_snapshot_rest(ui: &AppWindow, path: String) { wait += std::env::var("OPENRAGE_FLY_WAIT").ok().and_then(|s| s.parse().ok()).unwrap_or(20) * 1000; } slint::Timer::single_shot(Duration::from_millis(wait), move || { + // `OPENRAGE_BENCH=`: how long they take. + if let Some(n) = std::env::var("OPENRAGE_BENCH").ok().and_then(|n| n.parse().ok()) { + scene::bench(n); + } if let Some(Ok(img)) = scene::newest().map(|w| w.window().take_snapshot()) { let _ = rage_formats::png(img.width(), img.height(), img.as_bytes()) .map(|png| std::fs::write(&path, png)); diff --git a/crates/openrage-gui/src/gpu.rs b/crates/openrage-gui/src/gpu.rs index f02b19e..1ff4cec 100644 --- a/crates/openrage-gui/src/gpu.rs +++ b/crates/openrage-gui/src/gpu.rs @@ -7,21 +7,19 @@ use std::cell::RefCell; use std::collections::HashMap; -use std::sync::{Arc, Weak}; +use std::sync::{Arc, LazyLock, Mutex, Weak}; use openrage_app::gta4_effects::{Image, Sprite}; -use openrage_app::models::{LoadedModel, Look}; -use openrage_app::render::{Camera, Materials}; +use openrage_app::models::Look; +use openrage_app::render::Camera; use rage_formats::math; use wgpu::util::DeviceExt; const SAMPLES: u32 = 4; -/// Bones the skinning matrices cover (16 KiB of uniforms, the downlevel limit). +/// The most bones the skinning matrices cover. const MAX_BONES: usize = 1024; /// Bytes of a bone's matrix. const BONE: u32 = 64; -/// Bytes of per-draw data: colour (vec4) and model matrix (mat4). -const DRAW_DATA: usize = 16 + 64; const COLOR_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Rgba8Unorm; const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float; @@ -39,6 +37,12 @@ struct Globals { // xyz: viewing direction (headlight), w: number of lights forward: vec4, lights: array, + // Outdoors. xyz: where the camera is, w: how fast things fade into the + // distance (per metre). + eye: vec4, + // The directions to the right and upper edge of the picture, w: there is a sky. + right: vec4, + up: vec4, }; @group(0) @binding(0) var globals: Globals; @group(1) @binding(0) var tex: texture_2d; @@ -49,15 +53,43 @@ struct Globals { // Flat and black when there is none. @group(1) @binding(3) var normal_map: texture_2d; @group(1) @binding(4) var specular_map: texture_2d; -// Per draw: material colour (multiplied with the texture) and the model's -// placement in the scene. -struct DrawData { - tint: vec4, - model: mat4x4, -}; -@group(2) @binding(0) var draw: DrawData; // Skinning matrices per skeleton bone (identity when not animated). -@group(3) @binding(0) var skin: array, {BONES}>; +@group(2) @binding(0) var skin: array, {BONES}>; + +// Where the sun is, and the colours of the sky. +const SUN: vec3 = vec3(0.48, -0.42, 0.77); +const ZENITH: vec3 = vec3(0.22, 0.45, 0.78); +const HORIZON: vec3 = vec3(0.74, 0.82, 0.89); +const BELOW: vec3 = vec3(0.40, 0.48, 0.55); + +fn sky_colour(dir: vec3) -> vec3 { + let sun = normalize(SUN); + var c = mix(HORIZON, ZENITH, pow(clamp(dir.z, 0.0, 1.0), 0.55)); + c = mix(c, BELOW, smoothstep(0.0, 0.25, -dir.z)); + let near = max(dot(dir, sun), 0.0); + return c + vec3(1.0, 0.92, 0.75) * (pow(near, 900.0) + 0.12 * pow(near, 12.0)); +} + +struct SkyOut { + @builtin(position) clip: vec4, + @location(0) dir: vec3, +}; + +// A triangle over the whole picture, behind everything. +@vertex +fn vs_sky(@builtin(vertex_index) i: u32) -> SkyOut { + var o: SkyOut; + let x = f32(i32(i & 1u) * 4 - 1); + let y = f32(i32(i >> 1u) * 4 - 1); + o.clip = vec4(x, y, 0.0, 1.0); + o.dir = globals.forward.xyz + globals.right.xyz * x + globals.up.xyz * y; + return o; +} + +@fragment +fn fs_sky(i: SkyOut) -> @location(0) vec4 { + return vec4(sky_colour(normalize(i.dir)), 1.0); +} struct VsIn { @location(0) pos: vec3, @@ -66,6 +98,13 @@ struct VsIn { @location(3) weights: vec4, @location(4) joints: vec4, @location(5) uv1: vec2, + // Per placement: where it is, and the material's colour (multiplied with + // the texture). + @location(6) model_0: vec4, + @location(7) model_1: vec4, + @location(8) model_2: vec4, + @location(9) model_3: vec4, + @location(10) tint: vec4, }; struct VsOut { @builtin(position) clip: vec4, @@ -73,6 +112,7 @@ struct VsOut { @location(1) uv: vec2, @location(2) uv1: vec2, @location(3) world: vec3, + @location(4) tint: vec3, }; @vertex @@ -87,10 +127,12 @@ fn vs_main(v: VsIn) -> VsOut { pos = m * pos; normal = (m * vec4(normal, 0.0)).xyz; } - let world = draw.model * pos; + let model = mat4x4(v.model_0, v.model_1, v.model_2, v.model_3); + let world = model * pos; o.clip = globals.view_proj * world; o.world = world.xyz; - o.normal = (draw.model * vec4(normal, 0.0)).xyz; + o.normal = (model * vec4(normal, 0.0)).xyz; + o.tint = v.tint.rgb; o.uv = v.uv; o.uv1 = v.uv1; return o; @@ -128,6 +170,13 @@ fn fs_main(i: VsOut) -> @location(0) vec4 { } // Headlight plus a little sky light; double-sided. var light = vec3(0.25 + 0.65 * abs(dot(n, globals.forward.xyz)) + 0.1 * max(n.z, 0.0)); + if (globals.right.w > 0.5) { + // Outdoors: the sun, and the sky from above. + let to_eye = globals.eye.xyz - i.world; + let m = select(-n, n, dot(n, to_eye) >= 0.0); + light = vec3(1.0, 0.95, 0.86) * 0.75 * max(dot(m, normalize(SUN)), 0.0) + + vec3(0.48, 0.53, 0.60) * (0.85 + 0.35 * m.z); + } let count = u32(globals.forward.w); if (count > 0u) { // With scene lights the headlight is dimmer and the lights add up. @@ -149,10 +198,18 @@ fn fs_main(i: VsOut) -> @location(0) vec4 { light = light + l.color.rgb * amount; } } - let colour = mix(base.rgb * draw.tint.rgb, layer.rgb, layer.a); + let colour = mix(base.rgb * i.tint, layer.rgb, layer.a); // What shines towards the viewer. let glint = pow(abs(dot(n, globals.forward.xyz)), 24.0) * max(max(shine.r, shine.g), shine.b) * 0.25; - return vec4(colour * light + vec3(glint), 1.0); + var lit = colour * light + vec3(glint); + if (globals.right.w > 0.5) { + let ray = i.world - globals.eye.xyz; + let far = length(ray); + let dir = ray / max(far, 0.001); + let haze = sky_colour(normalize(vec3(dir.xy, max(dir.z, 0.0)))); + lit = mix(haze, colour * light, exp(-far * globals.eye.w)); + } + return vec4(lit, 1.0); } // Particles: camera-facing squares, built on the CPU in world space. @@ -220,6 +277,9 @@ struct Globals { view_proj: [f32; 16], forward: [f32; 4], lights: [GpuLight; MAX_LIGHTS], + eye: [f32; 4], + right: [f32; 4], + up: [f32; 4], } /// A light of a scene: position, colour × strength, reach, and for spot @@ -232,6 +292,24 @@ pub struct SceneLight { pub spot: Option<([f32; 3], f32)>, } +/// A placement of a draw. +#[repr(C)] +#[derive(Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)] +struct Instance { + model: math::Mat4, + tint: [f32; 4], +} + +/// How a scene outdoors looks. +#[derive(Debug, Clone, Copy)] +pub struct Outdoors { + /// How fast things fade into the distance, per metre. + pub haze: f32, +} + +/// Outdoors, models smaller than this in the picture are left out (pixels). +const SMALLEST: f32 = 1.2; + struct Gpu { device: wgpu::Device, queue: wgpu::Queue, @@ -239,12 +317,10 @@ struct Gpu { /// Particles blended over the scene, and particles that add light. sprite_blend: wgpu::RenderPipeline, sprite_add: wgpu::RenderPipeline, + sky: wgpu::RenderPipeline, globals_layout: wgpu::BindGroupLayout, texture_layout: wgpu::BindGroupLayout, - tint_layout: wgpu::BindGroupLayout, skin_layout: wgpu::BindGroupLayout, - /// Stride of the per-draw colours in the tint buffer. - tint_stride: u64, sampler: wgpu::Sampler, /// White 1×1 texture for untextured meshes (their colour is the tint). white: wgpu::TextureView, @@ -260,9 +336,9 @@ struct Draw { part: usize, drawable: usize, shader: u16, - vertices: wgpu::Buffer, - indices: wgpu::Buffer, - count: u32, + /// In the model's buffers. + base_vertex: i32, + indices: std::ops::Range, texture: usize, /// Bounding sphere (centre, radius) in the model's space, for culling. sphere: ([f32; 3], f32), @@ -272,6 +348,8 @@ struct Draw { struct GpuModel { owner: Weak, draws: Vec, + vertices: wgpu::Buffer, + indices: wgpu::Buffer, /// Bind groups: 0 is the plain texture, then one per combination of /// decoded images. textures: Vec, @@ -290,7 +368,6 @@ struct Targets { #[derive(Default)] struct State { - gpu: Option>, models: Vec, targets: Option, /// Bone palette of items without a skin (all identity), shared by them. @@ -299,6 +376,12 @@ struct State { sprite_textures: Vec<(Weak, wgpu::BindGroup)>, } +/// The graphics device; `None` if there is no usable one. +static GPU: LazyLock> = LazyLock::new(init); + +/// Models uploaded by other threads. +static READY: Mutex> = Mutex::new(Vec::new()); + thread_local! { static STATE: RefCell = RefCell::new(State::default()); } @@ -393,21 +476,6 @@ fn init() -> Option { }, ], }); - let tint_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { - label: Some("tint"), - entries: &[wgpu::BindGroupLayoutEntry { - binding: 0, - visibility: wgpu::ShaderStages::VERTEX_FRAGMENT, - ty: wgpu::BindingType::Buffer { - ty: wgpu::BufferBindingType::Uniform, - has_dynamic_offset: true, - min_binding_size: wgpu::BufferSize::new(DRAW_DATA as u64), - }, - count: None, - }], - }); - let align = (device.limits().min_uniform_buffer_offset_alignment as u64).max(16); - let tint_stride = (DRAW_DATA as u64).div_ceil(align) * align; let skin_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { label: Some("skin"), entries: &[wgpu::BindGroupLayoutEntry { @@ -423,7 +491,7 @@ fn init() -> Option { }); let layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { label: Some("model"), - bind_group_layouts: &[Some(&globals_layout), Some(&texture_layout), Some(&tint_layout), Some(&skin_layout)], + bind_group_layouts: &[Some(&globals_layout), Some(&texture_layout), Some(&skin_layout)], immediate_size: 0, }); let pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { @@ -433,11 +501,18 @@ fn init() -> Option { module: &module, entry_point: Some("vs_main"), compilation_options: Default::default(), - buffers: &[Some(wgpu::VertexBufferLayout { - array_stride: std::mem::size_of::() as u64, - step_mode: wgpu::VertexStepMode::Vertex, - attributes: &wgpu::vertex_attr_array![0 => Float32x3, 1 => Float32x3, 2 => Float32x2, 3 => Float32x4, 4 => Uint32x4, 5 => Float32x2], - })], + buffers: &[ + Some(wgpu::VertexBufferLayout { + array_stride: std::mem::size_of::() as u64, + step_mode: wgpu::VertexStepMode::Vertex, + attributes: &wgpu::vertex_attr_array![0 => Float32x3, 1 => Float32x3, 2 => Float32x2, 3 => Float32x4, 4 => Uint32x4, 5 => Float32x2], + }), + Some(wgpu::VertexBufferLayout { + array_stride: std::mem::size_of::() as u64, + step_mode: wgpu::VertexStepMode::Instance, + attributes: &wgpu::vertex_attr_array![6 => Float32x4, 7 => Float32x4, 8 => Float32x4, 9 => Float32x4, 10 => Float32x4], + }), + ], }, primitive: wgpu::PrimitiveState { cull_mode: None, ..Default::default() }, depth_stencil: Some(wgpu::DepthStencilState { @@ -461,6 +536,42 @@ fn init() -> Option { multiview_mask: None, cache: None, }); + let sky_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { + label: Some("sky"), + bind_group_layouts: &[Some(&globals_layout)], + immediate_size: 0, + }); + let sky = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { + label: Some("sky"), + layout: Some(&sky_layout), + vertex: wgpu::VertexState { + module: &module, + entry_point: Some("vs_sky"), + compilation_options: Default::default(), + buffers: &[], + }, + primitive: Default::default(), + depth_stencil: Some(wgpu::DepthStencilState { + format: DEPTH_FORMAT, + depth_write_enabled: Some(false), + depth_compare: Some(wgpu::CompareFunction::GreaterEqual), + stencil: Default::default(), + bias: Default::default(), + }), + multisample: wgpu::MultisampleState { count: SAMPLES, ..Default::default() }, + fragment: Some(wgpu::FragmentState { + module: &module, + entry_point: Some("fs_sky"), + compilation_options: Default::default(), + targets: &[Some(wgpu::ColorTargetState { + format: COLOR_FORMAT, + blend: None, + write_mask: wgpu::ColorWrites::ALL, + })], + }), + multiview_mask: None, + cache: None, + }); let sprite_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { label: Some("sprite"), bind_group_layouts: &[Some(&globals_layout), Some(&texture_layout)], @@ -522,6 +633,8 @@ fn init() -> Option { address_mode_v: wgpu::AddressMode::Repeat, mag_filter: wgpu::FilterMode::Linear, min_filter: wgpu::FilterMode::Linear, + mipmap_filter: wgpu::MipmapFilterMode::Linear, + anisotropy_clamp: 8, ..Default::default() }); let white = upload_texture(&device, &queue, 1, 1, &[255, 255, 255, 255]); @@ -530,14 +643,13 @@ fn init() -> Option { Some(Gpu { sprite_blend, sprite_add, + sky, device, queue, pipeline, globals_layout, texture_layout, - tint_layout, skin_layout, - tint_stride, sampler, white, clear, @@ -546,13 +658,33 @@ fn init() -> Option { }) } -/// Uploads RGBA pixels as a texture. +/// Half of a picture in each direction. +fn halved(w: u32, h: u32, rgba: &[u8]) -> (u32, u32, Vec) { + let (hw, hh) = ((w / 2).max(1), (h / 2).max(1)); + let mut out = Vec::with_capacity((hw * hh * 4) as usize); + for y in 0..hh { + let rows = [(y * 2).min(h - 1), (y * 2 + 1).min(h - 1)]; + for x in 0..hw { + let columns = [(x * 2).min(w - 1), (x * 2 + 1).min(w - 1)]; + let at = |x: u32, y: u32| ((y * w + x) * 4) as usize; + let from = + [at(columns[0], rows[0]), at(columns[1], rows[0]), at(columns[0], rows[1]), at(columns[1], rows[1])]; + for c in 0..4 { + let sum: u32 = from.iter().map(|i| u32::from(rgba[i + c])).sum(); + out.push(((sum + 2) / 4) as u8); + } + } + } + (hw, hh, out) +} + +/// Uploads RGBA pixels as a texture, with smaller copies for the distance. fn upload_texture(device: &wgpu::Device, queue: &wgpu::Queue, w: u32, h: u32, rgba: &[u8]) -> wgpu::TextureView { - let size = wgpu::Extent3d { width: w, height: h, depth_or_array_layers: 1 }; + let levels = w.max(h).max(1).ilog2() + 1; let texture = device.create_texture(&wgpu::TextureDescriptor { label: None, - size, - mip_level_count: 1, + size: wgpu::Extent3d { width: w, height: h, depth_or_array_layers: 1 }, + mip_level_count: levels, sample_count: 1, dimension: wgpu::TextureDimension::D2, // Colors are passed through unchanged, like the software renderer. @@ -560,17 +692,29 @@ fn upload_texture(device: &wgpu::Device, queue: &wgpu::Queue, w: u32, h: u32, rg usage: wgpu::TextureUsages::TEXTURE_BINDING | wgpu::TextureUsages::COPY_DST, view_formats: &[], }); - queue.write_texture( - wgpu::TexelCopyTextureInfo { - texture: &texture, - mip_level: 0, - origin: wgpu::Origin3d::ZERO, - aspect: wgpu::TextureAspect::All, - }, - rgba, - wgpu::TexelCopyBufferLayout { offset: 0, bytes_per_row: Some(4 * w), rows_per_image: Some(h) }, - size, - ); + let write = |level: u32, w: u32, h: u32, rgba: &[u8]| { + queue.write_texture( + wgpu::TexelCopyTextureInfo { + texture: &texture, + mip_level: level, + origin: wgpu::Origin3d::ZERO, + aspect: wgpu::TextureAspect::All, + }, + rgba, + wgpu::TexelCopyBufferLayout { offset: 0, bytes_per_row: Some(4 * w), rows_per_image: Some(h) }, + wgpu::Extent3d { width: w, height: h, depth_or_array_layers: 1 }, + ); + }; + write(0, w, h, rgba); + let mut smaller: Option<(u32, u32, Vec)> = None; + for level in 1..levels { + let next = match &smaller { + None => halved(w, h, rgba), + Some((w, h, rgba)) => halved(*w, *h, rgba), + }; + write(level, next.0, next.1, &next.2); + smaller = Some(next); + } texture.create_view(&Default::default()) } @@ -606,7 +750,9 @@ fn texture_bind_group( } /// Uploads every part of the model (placements baked into the vertices). -fn upload(gpu: &Gpu, model: &LoadedModel, materials: &Materials) -> (Vec, Vec) { +fn upload(gpu: &Gpu, preview: &Arc) -> GpuModel { + let (model, materials) = (&preview.loaded, &preview.materials); + let (mut all_vertices, mut all_indices): (Vec, Vec) = (Vec::new(), Vec::new()); let mut textures = vec![plain_bind_group(gpu, &gpu.white)]; // Material image index → uploaded texture; image indices → bind group. let mut views: HashMap = HashMap::new(); @@ -680,22 +826,37 @@ fn upload(gpu: &Gpu, model: &LoadedModel, materials: &Materials) -> (Vec, part: part_index, drawable: part.drawable, shader: mesh.shader, - vertices: gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { - label: None, - contents: bytemuck::cast_slice(&vertices), - usage: wgpu::BufferUsages::VERTEX, - }), - indices: gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { - label: None, - contents: bytemuck::cast_slice(&mesh.indices), - usage: wgpu::BufferUsages::INDEX, - }), - count: mesh.indices.len() as u32, + base_vertex: all_vertices.len() as i32, + indices: all_indices.len() as u32..(all_indices.len() + mesh.indices.len()) as u32, texture, }); + all_vertices.extend_from_slice(&vertices); + all_indices.extend_from_slice(&mesh.indices); } } - (draws, textures) + // An empty buffer cannot be used. + if all_indices.is_empty() { + all_vertices.push(bytemuck::Zeroable::zeroed()); + all_indices.push(0); + } + let buffer = |contents: &[u8], usage| { + gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { label: None, contents, usage }) + }; + GpuModel { + owner: Arc::downgrade(preview), + draws, + vertices: buffer(bytemuck::cast_slice(&all_vertices), wgpu::BufferUsages::VERTEX), + indices: buffer(bytemuck::cast_slice(&all_indices), wgpu::BufferUsages::INDEX), + textures, + } +} + +/// Uploads a model ahead of its first picture; from any thread. +pub fn prepare(preview: &Arc) { + if let Some(gpu) = &*GPU { + let model = upload(gpu, preview); + READY.lock().unwrap_or_else(|e| e.into_inner()).push(model); + } } fn targets(gpu: &Gpu, w: u32, h: u32) -> Targets { @@ -748,13 +909,17 @@ fn frustum_planes(m: &[f32; 16]) -> [[f32; 4]; 6] { planes } +/// The largest factor a placement scales by. +fn scale_of(model: &math::Mat4) -> f32 { + (0..3) + .map(|k| (model[k * 4].powi(2) + model[k * 4 + 1].powi(2) + model[k * 4 + 2].powi(2)).sqrt()) + .fold(0.0f32, f32::max) +} + /// Whether a bounding sphere in model space, placed by `model`, touches the view. fn sphere_visible(planes: &[[f32; 4]; 6], model: &math::Mat4, (centre, radius): ([f32; 3], f32)) -> bool { let c = math::transform_point(model, centre); - let scale = (0..3) - .map(|k| (model[k * 4].powi(2) + model[k * 4 + 1].powi(2) + model[k * 4 + 2].powi(2)).sqrt()) - .fold(0.0f32, f32::max); - let r = radius * scale; + let r = radius * scale_of(model); planes.iter().all(|p| p[0] * c[0] + p[1] * c[1] + p[2] * c[2] + p[3] >= -r) } @@ -801,7 +966,7 @@ pub fn render( w: u32, h: u32, ) -> Option { - render_scene(&[SceneItem { preview, look, model: math::IDENTITY, skin }], &[], &[], camera, w, h) + render_scene(&[SceneItem { preview, look, model: math::IDENTITY, skin }], &[], &[], None, camera, w, h) } /// One model of a scene: what is shown, where it stands and its pose. @@ -864,6 +1029,7 @@ pub fn render_scene( items: &[SceneItem], lights: &[SceneLight], sprites: &[Sprite], + outdoors: Option, camera: &Camera, w: u32, h: u32, @@ -871,22 +1037,19 @@ pub fn render_scene( STATE.with(|state| { let mut st = state.borrow_mut(); let st = &mut *st; - if st.gpu.is_none() { - st.gpu = Some(init()); - } - let gpu = st.gpu.as_ref()?.as_ref()?; + let gpu = GPU.as_ref()?; let (w, h) = (w.clamp(1, 8192), h.clamp(1, 8192)); // Upload once per model; forget models that are gone. A scene places // the same model many times: look models up by pointer, not by a scan // of every uploaded model for every placement. + st.models.append(&mut READY.lock().unwrap_or_else(|e| e.into_inner())); st.models.retain(|m| m.owner.strong_count() > 0); let mut uploaded: std::collections::HashSet<*const crate::ModelPreview> = st.models.iter().map(|m| m.owner.as_ptr()).collect(); for item in items { if uploaded.insert(Arc::as_ptr(item.preview)) { - let (draws, textures) = upload(gpu, &item.preview.loaded, &item.preview.materials); - st.models.push(GpuModel { owner: Arc::downgrade(item.preview), draws, textures }); + st.models.push(upload(gpu, item.preview)); } } @@ -918,10 +1081,20 @@ pub fn render_scene( direction: [dir[0], dir[1], dir[2], cos], }; } + // How long the sides of the picture are, one away from the camera. + let tan = (camera.fov / 2.0).tan(); + let short = w.min(h) as f32; + let edge = |axis: [f32; 3], side: u32, last: f32| { + let reach = tan * side as f32 / short; + [axis[0] * reach, axis[1] * reach, axis[2] * reach, last] + }; let globals = Globals { view_proj: view_projection(camera, w, h, near, far), forward: [camera.forward[0], camera.forward[1], camera.forward[2], lights.len().min(MAX_LIGHTS) as f32], lights: gpu_lights, + eye: [camera.eye[0], camera.eye[1], camera.eye[2], outdoors.map_or(0.0, |o| o.haze)], + right: edge(camera.right, w, if outdoors.is_some() { 1.0 } else { 0.0 }), + up: edge(camera.up, h, 0.0), }; let globals_buffer = gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { label: Some("globals"), @@ -939,43 +1112,43 @@ pub fn render_scene( let model_of: HashMap<*const crate::ModelPreview, usize> = st.models.iter().enumerate().map(|(i, m)| (m.owner.as_ptr(), i)).collect(); let planes = frustum_planes(&globals.view_proj); - let mut shown: Vec<(usize, &GpuModel, &Draw, [f32; 4])> = Vec::new(); + // Pixels of something as large as it is far. + let pixels = short / 2.0 / tan; + let too_small = |model: &math::Mat4, (centre, radius): ([f32; 3], f32)| { + let c = math::transform_point(model, centre); + let far = (0..3).map(|k| (c[k] - camera.eye[k]).powi(2)).sum::().sqrt(); + radius * scale_of(model) * pixels < SMALLEST * (far - radius).max(0.0) + }; + // The skinned item it is (or none), the model, the draw; the same + // ones are drawn together. + const NO_SKIN: usize = usize::MAX; + let mut shown: Vec<((usize, usize, usize), Instance)> = Vec::new(); for (index, item) in items.iter().enumerate() { - let model = &st.models[*model_of.get(&Arc::as_ptr(item.preview))?]; - for d in &model.draws { + let number = *model_of.get(&Arc::as_ptr(item.preview))?; + for (k, d) in st.models[number].draws.iter().enumerate() { if !item.look.parts.get(d.part).copied().unwrap_or(false) { continue; } - if item.skin.is_none() && !sphere_visible(&planes, &item.model, d.sphere) { + if item.skin.is_none() + && (!sphere_visible(&planes, &item.model, d.sphere) + || (outdoors.is_some() && too_small(&item.model, d.sphere))) + { continue; } if let Some(tint) = item.preview.loaded.tint(item.look, d.drawable, d.shader) { - shown.push((index, model, d, tint)); + let skin = if item.skin.is_some() { index } else { NO_SKIN }; + shown.push(((skin, number, k), Instance { model: item.model, tint })); } } } - let stride = gpu.tint_stride as usize; - let mut tints = vec![0u8; stride * shown.len().max(1)]; - for (i, (index, _, _, tint)) in shown.iter().enumerate() { - tints[i * stride..i * stride + 16].copy_from_slice(bytemuck::cast_slice(tint)); - tints[i * stride + 16..i * stride + DRAW_DATA].copy_from_slice(bytemuck::cast_slice(&items[*index].model)); - } - let tint_buffer = gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { - label: Some("draws"), - contents: &tints, - usage: wgpu::BufferUsages::UNIFORM, - }); - let tint_group = gpu.device.create_bind_group(&wgpu::BindGroupDescriptor { - label: None, - layout: &gpu.tint_layout, - entries: &[wgpu::BindGroupEntry { - binding: 0, - resource: wgpu::BindingResource::Buffer(wgpu::BufferBinding { - buffer: &tint_buffer, - offset: 0, - size: wgpu::BufferSize::new(DRAW_DATA as u64), - }), - }], + shown.sort_by_key(|(key, _)| *key); + let instances: Vec = shown.iter().map(|(_, i)| *i).collect(); + let instance_buffer = (!instances.is_empty()).then(|| { + gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { + label: Some("instances"), + contents: bytemuck::cast_slice(&instances), + usage: wgpu::BufferUsages::VERTEX, + }) }); // A bone palette per skinned item; the others share the rest pose. @@ -1029,15 +1202,37 @@ pub fn render_scene( occlusion_query_set: None, multiview_mask: None, }); - pass.set_pipeline(&gpu.pipeline); pass.set_bind_group(0, &globals_group, &[]); - for (i, (index, model, d, _)) in shown.iter().enumerate() { - pass.set_bind_group(3, skin_groups[*index].as_ref().unwrap_or(rest_pose), &[]); - pass.set_bind_group(1, &model.textures[d.texture], &[]); - pass.set_bind_group(2, &tint_group, &[(i * stride) as u32]); - pass.set_vertex_buffer(0, d.vertices.slice(..)); - pass.set_index_buffer(d.indices.slice(..), wgpu::IndexFormat::Uint32); - pass.draw_indexed(0..d.count, 0, 0..1); + if let Some(buffer) = &instance_buffer { + pass.set_pipeline(&gpu.pipeline); + pass.set_vertex_buffer(1, buffer.slice(..)); + let mut last = (None, None, None); + let mut first = 0; + for run in shown.chunk_by(|a, b| a.0 == b.0) { + let (skin, number, k) = run[0].0; + let model = &st.models[number]; + let d = &model.draws[k]; + // Only what changes is set. + if last.0 != Some(skin) { + let group = skin_groups.get(skin).and_then(Option::as_ref).unwrap_or(rest_pose); + pass.set_bind_group(2, group, &[]); + } + if last.1 != Some(number) { + pass.set_vertex_buffer(0, model.vertices.slice(..)); + pass.set_index_buffer(model.indices.slice(..), wgpu::IndexFormat::Uint32); + } + if last.2 != Some((number, d.texture)) { + pass.set_bind_group(1, &model.textures[d.texture], &[]); + } + last = (Some(skin), Some(number), Some((number, d.texture))); + let count = run.len() as u32; + pass.draw_indexed(d.indices.clone(), d.base_vertex, first..first + count); + first += count; + } + } + if outdoors.is_some() { + pass.set_pipeline(&gpu.sky); + pass.draw(0..3, 0..1); } // Particles last, over what they are in front of. if let Some(buffer) = &sprite_buffer { @@ -1047,7 +1242,6 @@ pub fn render_scene( continue; }; pass.set_pipeline(if additive { &gpu.sprite_add } else { &gpu.sprite_blend }); - pass.set_bind_group(0, &globals_group, &[]); pass.set_bind_group(1, group, &[]); let range = (first * 6) as u32..((first + count) * 6) as u32; pass.draw(range, 0..1); diff --git a/crates/openrage-gui/src/scene.rs b/crates/openrage-gui/src/scene.rs index a5b8469..628f4ab 100644 --- a/crates/openrage-gui/src/scene.rs +++ b/crates/openrage-gui/src/scene.rs @@ -90,6 +90,8 @@ struct State { /// The flying camera, when it flies, and what moves it. fly: Option, fly_timer: slint::Timer, + /// Under a sky: a map. + outdoors: bool, /// Loads the details of GTA VI's whole map around the camera. stream: Option, } @@ -130,6 +132,9 @@ impl State { } } +/// The most pixels a scene is drawn with (Full HD). +const MOST_PIXELS: f32 = 1920.0 * 1080.0; + type Shared = Rc>>; /// How far the background loads are, shown on the scene while they run. @@ -624,6 +629,7 @@ fn start(win: &SceneWindow, state: &Rc>>, id: u64, loaded: timer: slint::Timer::default(), fly: None, fly_timer: slint::Timer::default(), + outdoors: false, stream: None, }); if let Some(st) = state.borrow_mut().as_mut() { @@ -929,8 +935,11 @@ fn render_frame(win: &SceneWindow, state: &Rc>>) { } let st = state.borrow(); let Some(st) = st.as_ref() else { return }; - let width = win.get_area_width().max(64.0) as u32; - let height = win.get_area_height().max(64.0) as u32; + let (width, height) = (win.get_area_width().max(64.0), win.get_area_height().max(64.0)); + // Pictures come back from the graphics card: not more of them than needed + // for a smooth flight. + let scale = (MOST_PIXELS / (width * height)).sqrt().min(1.0); + let (width, height) = ((width * scale) as u32, (height * scale) as u32); let mut poses: Vec<(Mat4, Option>)> = Vec::with_capacity(st.actors.len()); // Actors the current section does not have stay out of the picture. let shown: Vec<&SceneActor> = @@ -993,7 +1002,10 @@ fn render_frame(win: &SceneWindow, state: &Rc>>) { &animated }; let sprites = gta4_effects::sprites_at(&st.effect_library, &st.effects, st.time); - crate::gpu::render_scene(&items, lights, &sprites, &camera, width, height) + // Seen from above, haze would hide a whole map. + let outdoors = + st.outdoors.then(|| crate::gpu::Outdoors { haze: if st.fly.is_some() { 1.0 / 9000.0 } else { 0.0 } }); + crate::gpu::render_scene(&items, lights, &sprites, outdoors, &camera, width, height) } else { None }; @@ -1231,6 +1243,7 @@ fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { timer: slint::Timer::default(), fly: None, fly_timer: slint::Timer::default(), + outdoors: true, stream: None, }); if let (Some((lod, _)), Some(far)) = (scene.lod, far) { @@ -1494,6 +1507,25 @@ pub fn fly_to(place: [f32; 5]) { render_frame(&win, &state); } +/// Draws the newest scene so many times while turning, and prints how long a picture takes (milliseconds). +#[cfg(debug_assertions)] +pub fn bench(pictures: u32) { + let Some((win, state)) = OPEN.with(|o| o.borrow().last().map(|(_, w, s)| (w.clone_strong(), Rc::clone(s)))) else { + return; + }; + let started = Instant::now(); + for _ in 0..pictures { + if let Some(st) = state.borrow_mut().as_mut() { + match &mut st.fly { + Some(f) => f.look(5.0, 0.0), + None => st.view.yaw += 0.02, + } + } + render_frame(&win, &state); + } + eprintln!("bench: {:.2} ms a picture", started.elapsed().as_secs_f32() * 1000.0 / pictures as f32); +} + /// Whether the newest scene has loaded (for debug snapshots). #[cfg(debug_assertions)] pub fn ready() -> bool { diff --git a/crates/openrage-gui/src/stream.rs b/crates/openrage-gui/src/stream.rs index 38206d1..1b4a6f8 100644 --- a/crates/openrage-gui/src/stream.rs +++ b/crates/openrage-gui/src/stream.rs @@ -77,13 +77,18 @@ struct Kept { far: bool, } -/// How a model looks in a scene: without decals, which need blending it does not do. +/// How a model looks in a scene: without decals, which need blending it does not do, and with blue water. pub fn scene_look(preview: &ModelPreview) -> Look { let mut look = preview.loaded.default_look(); for (slot, l) in preview.loaded.materials.iter().zip(look.materials.iter_mut()) { if rage_formats::shaders::name(slot.name_hash).is_some_and(|n| n.contains("decal")) { l.visible = false; } + // Its colour is computed in the game. + let shader = rage_formats::names::value(slot.name_hash); + if shader.starts_with("water") || (!slot.textured && preview.name.to_ascii_lowercase().contains("water")) { + l.tint = if slot.textured { [0.25, 0.4, 0.46, 1.0] } else { [0.16, 0.3, 0.36, 1.0] }; + } } look } @@ -161,7 +166,10 @@ fn work( .map(|(m, name, loaded)| { let materials = render::Materials::new(&loaded); let look = std::sync::RwLock::new(loaded.default_look()); - (m, Arc::new(ModelPreview { loaded, look, materials, name })) + let preview = Arc::new(ModelPreview { loaded, look, materials, name }); + // Not while a picture is drawn. + crate::gpu::prepare(&preview); + (m, preview) }) .collect(); failed.extend(wanted.iter().copied()); diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index bafe216..308b01f 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -5536,15 +5536,23 @@ export component SceneWindow inherits Window { return EventResult.accept; } } - if root.can-fly && !root.loading && root.load-text == "": Text { + if root.can-fly && !root.loading && root.load-text == "": Rectangle { x: Theme.space-m; y: parent.height - self.height - Theme.space-s; - width: parent.width - 2 * Theme.space-m; + width: min(hint.preferred-width + 2 * Theme.space-s, parent.width - 2 * Theme.space-m); + height: hint.preferred-height + 2 * Theme.space-xs; + border-radius: 6px; + background: #000000a0; + hint := Text { + x: Theme.space-s; + y: Theme.space-xs; + width: parent.width - 2 * Theme.space-s; text: root.fly-mode ? @tr("{} · wheel changes the speed · W A S D move · Q E down/up · Shift faster · drag to look · F orbits", root.fly-speed) : @tr("Drag to turn · scroll to zoom · F flies"); font-size: Theme.font-small; overflow: elide; - color: #b0b0b0; + color: #e0e0e0; + } } } if root.objects.length > 0: Rectangle { From c784a43636de5e668a16b697455077e98aedd140 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 19:27:57 +0100 Subject: [PATCH 28/31] Maps: textures in full size, decals, layers, water, time of day Textures go to the graphics card compressed as the game has them and are shared between models; near the camera they are read in full size. Decals are blended, layered grounds mixed and shaded by what GTA VI stores per vertex. There is a sea with waves, and beside the map settings for the time of day, haze, sea, field of view and detail. Models share buffers, vertices are half as large, the list of what to draw is made in parallel, and a moving view does not wait for the graphics card. Co-Authored-By: Claude Opus 5.5 --- crates/openrage-app/src/gta6_textures.rs | 85 ++- crates/openrage-app/src/gta6_world.rs | 64 +- crates/openrage-app/src/models.rs | 29 +- crates/openrage-app/src/render.rs | 121 ++-- crates/openrage-gui/src/gpu.rs | 759 +++++++++++++++++------ crates/openrage-gui/src/scene.rs | 161 ++++- crates/openrage-gui/src/stream.rs | 108 ++-- crates/openrage-gui/ui/app.slint | 157 +++++ crates/rage-formats/src/drawable.rs | 11 +- crates/rage-formats/src/drawable6.rs | 48 +- crates/rage-formats/src/ttpf.rs | 25 +- 11 files changed, 1233 insertions(+), 335 deletions(-) diff --git a/crates/openrage-app/src/gta6_textures.rs b/crates/openrage-app/src/gta6_textures.rs index 86497e9..926aad5 100644 --- a/crates/openrage-app/src/gta6_textures.rs +++ b/crates/openrage-app/src/gta6_textures.rs @@ -6,10 +6,12 @@ use std::collections::HashMap; use std::path::{Path, PathBuf}; -use std::sync::{Arc, Mutex, OnceLock}; +use std::sync::{Arc, Mutex, OnceLock, Weak}; use rage_formats::drawable::Drawable; +use rage_formats::drawable::param::{BUMP_TEX, DIFFUSE_TEX, DIFFUSE_TEX2, LAYER_1_TEX, SPECULAR_TEX}; use rage_formats::drawable6::texture_name; +use rage_formats::texture::Texture; use rage_formats::ttpf::Pool; use rage_formats::ytd::{Layout, TextureDictionary}; @@ -57,10 +59,35 @@ impl Catalog { self.by_key.is_empty() } + /// The texture with this key, with mip levels, the same for all that use + /// it at the time. + pub fn shared(&self, key: u64, side: u32) -> Option> { + type Known = HashMap<(u64, u32), Weak>; + static KNOWN: OnceLock> = OnceLock::new(); + let lock = || KNOWN.get_or_init(Default::default).lock().unwrap_or_else(|e| e.into_inner()); + if let Some(known) = lock().get(&(key, side)).and_then(Weak::upgrade) { + return Some(known); + } + let (pool, number) = *self.by_key.get(&key)?; + let mut texture = self.pools[pool].1.texture_with_mips(number, Some(side)).ok()?; + texture.name = texture_name(key); + let mut known = lock(); + // Another thread may have been quicker. + if let Some(theirs) = known.get(&(key, side)).and_then(Weak::upgrade) { + return Some(theirs); + } + let texture = Arc::new(texture); + if known.len().is_power_of_two() { + known.retain(|_, t| t.strong_count() > 0); + } + known.insert((key, side), Arc::downgrade(&texture)); + Some(texture) + } + /// The texture with this key, named by the key. - pub fn texture(&self, key: u64, side: u32) -> Option { + pub fn texture(&self, key: u64) -> Option { let (pool, number) = *self.by_key.get(&key)?; - let mut texture = self.pools[pool].1.texture(number, Some(side)).ok()?; + let mut texture = self.pools[pool].1.texture(number, Some(MAX_SIDE)).ok()?; texture.name = texture_name(key); Some(texture) } @@ -77,18 +104,8 @@ pub fn catalog(game_dir: &Path) -> Arc { ) } -/// The textures the shaders of these drawables name, from the pools of the -/// game: a dictionary of them, `None` if none was found. -pub fn for_drawables(game_dir: &Path, drawables: &[(String, Drawable)]) -> Option { - for_drawables_up_to(game_dir, drawables, MAX_SIDE) -} - -/// The same with textures of at most this size. -pub fn for_drawables_up_to(game_dir: &Path, drawables: &[(String, Drawable)], side: u32) -> Option { - use rage_formats::drawable::param::{BUMP_TEX, DIFFUSE_TEX, DIFFUSE_TEX2, SPECULAR_TEX}; - // Small ones are for views of many models, where only the colours show. - let wanted: &[u32] = - if side < MAX_SIDE { &[DIFFUSE_TEX] } else { &[DIFFUSE_TEX, DIFFUSE_TEX2, BUMP_TEX, SPECULAR_TEX] }; +/// The names of the textures of shaders, of these kinds. +fn names<'a>(drawables: &'a [(String, Drawable)], wanted: &[u32]) -> Vec<&'a str> { let mut names: Vec<&str> = drawables .iter() .flat_map(|(_, d)| &d.shaders) @@ -98,15 +115,47 @@ pub fn for_drawables_up_to(game_dir: &Path, drawables: &[(String, Drawable)], si .collect(); names.sort_unstable(); names.dedup(); + names.truncate(MAX_TEXTURES); + names +} + +/// The textures of drawables, shared with other models: their colours, with +/// `all` normal and specular maps too. +pub fn shared_for(game_dir: &Path, drawables: &[(String, Drawable)], side: u32, all: bool) -> Vec> { + let wanted: &[u32] = if all { + &[DIFFUSE_TEX, DIFFUSE_TEX2, LAYER_1_TEX, BUMP_TEX, SPECULAR_TEX] + } else if side > 256 { + &[DIFFUSE_TEX, DIFFUSE_TEX2, LAYER_1_TEX] + } else { + &[DIFFUSE_TEX] + }; + let names = names(drawables, wanted); + if names.is_empty() { + return Vec::new(); + } + let catalog = catalog(game_dir); + let found = names.iter().filter_map(|n| catalog.shared(u64::from_str_radix(n, 16).ok()?, side)); + // Not the white stand-ins for a colour the game computes. + let stands_in = |t: &Texture| { + t.width <= 8 + && t.to_rgba().is_some_and(|rgba| rgba.as_chunks::<4>().0.iter().all(|p| p[..3].iter().all(|c| *c > 225))) + }; + found.filter(|t| !stands_in(t)).collect() +} + +/// The textures the shaders of these drawables name, from the pools of the +/// game: a dictionary of them, `None` if none was found. +pub fn for_drawables(game_dir: &Path, drawables: &[(String, Drawable)]) -> Option { + let names = names(drawables, &[DIFFUSE_TEX, DIFFUSE_TEX2, LAYER_1_TEX, BUMP_TEX, SPECULAR_TEX]); if names.is_empty() { return None; } let catalog = catalog(game_dir); - let total = names.len().min(MAX_TEXTURES); + let total = names.len(); let mut textures = Vec::new(); - for (i, name) in names.into_iter().take(MAX_TEXTURES).enumerate() { + for (i, name) in names.into_iter().enumerate() { crate::progress::set("Loading textures", i as u64, total as u64); - if let Some(texture) = u64::from_str_radix(name, 16).ok().and_then(|key| catalog.texture(key, side)) { + if let Some(texture) = u64::from_str_radix(name, 16).ok().and_then(|key| catalog.texture(key)) { textures.push(texture); } } diff --git a/crates/openrage-app/src/gta6_world.rs b/crates/openrage-app/src/gta6_world.rs index 4ceb302..2f31b18 100644 --- a/crates/openrage-app/src/gta6_world.rs +++ b/crates/openrage-app/src/gta6_world.rs @@ -31,9 +31,25 @@ const CLOSE: [u8; 2] = [0, 5]; const FAR: u8 = 3; /// The levels between, up to the far one. const LEVELS: std::ops::RangeInclusive = 1..=FAR; -/// The sides of textures in views of many models. -const SIDE_NEAR: u32 = 256; -const SIDE_FAR: u32 = 128; +/// How well textures are read in views of many models. +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Quality { + /// Seen from kilometres away. + Far, + Near, + /// From up close: normal and specular maps too. + Close, +} + +impl Quality { + fn side(self) -> u32 { + match self { + Self::Far => 256, + Self::Near => 512, + Self::Close => 1024, + } + } +} /// Something a map file places. #[derive(Debug, Clone, PartialEq)] @@ -459,7 +475,7 @@ impl Models<'_> { } /// Loads models; those that cannot be read are left out. - fn load(&self, wanted: &[u32], side: u32, progress: &(dyn Fn(usize, usize) + Sync)) -> Vec { + fn load(&self, wanted: &[u32], quality: Quality, progress: &(dyn Fn(usize, usize) + Sync)) -> Vec { // Archives are opened once: that takes longer than reading a model. let mut archives: BTreeMap> = BTreeMap::new(); for &model in wanted { @@ -482,7 +498,7 @@ impl Models<'_> { files.into_par_iter().filter_map(move |(file, model, source)| { let loaded = opened.as_ref().and_then(|(rpf, entries)| { let i = rpf.find(entries, &file)?; - crate::progress::quietly(|| load_model(self.game, rpf, i, &source, side)).ok() + crate::progress::quietly(|| load_model(self.game, rpf, i, &source, quality)).ok() }); progress(count.fetch_add(1, Ordering::Relaxed) + 1, total); loaded.map(|(name, loaded)| (model, name, loaded)) @@ -497,7 +513,7 @@ fn scene( game: &Path, map: &Map, objects: &[Object], - side: u32, + quality: Quality, progress: &(dyn Fn(usize, usize) + Sync), ) -> Result { let files = model_files(game)?; @@ -510,7 +526,7 @@ fn scene( let mut missing: Vec<(String, usize)> = unknown.into_iter().map(|m| (rage_formats::names::value(m), places[&m].len())).collect(); missing.sort_by(|a, b| b.1.cmp(&a.1).then(a.0.cmp(&b.0))); - let loaded = models.load(&wanted, side, progress); + let loaded = models.load(&wanted, quality, progress); let models = loaded .into_iter() .map(|(model, name, loaded)| (name, loaded, places.remove(&model).unwrap_or_default())) @@ -518,7 +534,7 @@ fn scene( Ok(MapScene { models, objects: objects.len(), missing }) } -fn load_model(game: &Path, rpf: &Rpf9, i: usize, source: &Source, side: u32) -> Result<(String, LoadedModel)> { +fn load_model(game: &Path, rpf: &Rpf9, i: usize, source: &Source, quality: Quality) -> Result<(String, LoadedModel)> { let (Source::File(vpath) | Source::Child(vpath, _)) = source; let mut drawables: Vec<(String, Drawable)> = crate::gta6_models::load(rpf, i)?; if let Source::Child(_, k) = source { @@ -530,11 +546,9 @@ fn load_model(game: &Path, rpf: &Rpf9, i: usize, source: &Source, side: u32) -> Source::File(_) => vpath.rsplit('/').next().unwrap_or(vpath).to_owned(), Source::Child(..) => drawables[0].0.clone(), }; - let textures = crate::gta6_textures::for_drawables_up_to(game, &drawables, side); + let textures = crate::gta6_textures::shared_for(game, &drawables, quality.side(), quality == Quality::Close); let mut model = LoadedModel::from_drawables(drawables); - if let Some(textures) = textures { - model.add_textures("texture pools".to_owned(), textures); - } + model.set_shared(textures); Ok((name.trim_end_matches(".#dr").trim_end_matches(".#ft").to_owned(), model)) } @@ -543,7 +557,7 @@ pub fn overview(game: &Path, progress: &Progress) -> Result { let map = load(game, &|done, total| progress("Reading the game's map files", done, total))?; let far: Vec = map.nodes.iter().filter(|n| n.level == FAR).map(|n| n.object.clone()).collect(); anyhow::ensure!(!far.is_empty(), "the map files of this game have no distant view"); - scene(game, &map, &far, SIDE_FAR, &|done, total| progress("Loading the map's models", done, total)) + scene(game, &map, &far, Quality::Far, &|done, total| progress("Loading the map's models", done, total)) } /// Gets what is being done, how much of it is done, and how much there is. @@ -579,7 +593,7 @@ pub fn place(game: &Path, vpath: &str, around: f32, progress: &Progress) -> Resu ); objects.extend(found.into_inner().unwrap_or_else(|e| e.into_inner())); } - scene(game, &map, &objects, SIDE_NEAR, &|done, total| progress("Loading the map's models", done, total)) + scene(game, &map, &objects, Quality::Near, &|done, total| progress("Loading the map's models", done, total)) } /// How near the camera a map file has to be for its close objects (metres). @@ -654,15 +668,15 @@ impl Lod { self.files.contains_key(&model) || self.map.children.contains_key(&model) } - /// Loads models; `far` ones with small textures. - pub fn load(&self, models: &[u32], far: bool, progress: &(dyn Fn(usize, usize) + Sync)) -> Vec { + /// Loads models. + pub fn load(&self, models: &[u32], quality: Quality, progress: &(dyn Fn(usize, usize) + Sync)) -> Vec { let of = Models { game: &self.game, files: &self.files, map: &self.map }; - of.load(models, if far { SIDE_FAR } else { SIDE_NEAR }, progress) + of.load(models, quality, progress) } /// The map files with close objects near a place. - pub fn near(&self, eye: &[f32; 3]) -> HashSet { - let near = |(_, lo, hi): &&(String, [f32; 3], [f32; 3])| distance_to_box(eye, lo, hi) < NEAR; + pub fn near(&self, eye: &[f32; 3], range: f32) -> HashSet { + let near = |(_, lo, hi): &&(String, [f32; 3], [f32; 3])| distance_to_box(eye, lo, hi) < NEAR * range; (0..).zip(&self.map.files).filter(|(_, f)| near(f)).map(|(i, _)| i).collect() } @@ -687,12 +701,14 @@ impl Lod { found.into_inner().unwrap_or_else(|e| e.into_inner()) } - /// What to draw from a place, of the models there are, with the close + /// What to draw from a place, `range` times as far in detail as the game + /// does, of the models there are, with the close /// objects read so far. An object gives way to those it stands for when /// all of them are there. pub fn cut<'a>( &self, eye: &[f32; 3], + range: f32, loaded: &dyn Fn(u32) -> bool, unreadable: &dyn Fn(u32) -> bool, close: impl Iterator, @@ -701,6 +717,7 @@ impl Lod { let mut cut = Choice { lod: self, eye, + range, loaded, unreadable, close: HashMap::new(), @@ -710,7 +727,7 @@ impl Lod { for (node, object) in close.flat_map(|c| &c.objects) { match node { Some(node) => of_node.entry(*node).or_default().push(object), - None if distance(eye, &object.position) < NEAR && cut.take(object) => cut.draw.push(object), + None if distance(eye, &object.position) < NEAR * range && cut.take(object) => cut.draw.push(object), None => {} } } @@ -735,6 +752,7 @@ impl Lod { struct Choice<'a> { lod: &'a Lod, eye: &'a [f32; 3], + range: f32, loaded: &'a dyn Fn(u32) -> bool, unreadable: &'a dyn Fn(u32) -> bool, close: HashMap>, @@ -767,7 +785,7 @@ impl<'a> Choice<'a> { fn visit(&mut self, node: u32) -> bool { let lod = self.lod; let (n, children) = (&lod.map.nodes[node as usize], &lod.children[node as usize]); - if distance(self.eye, &n.object.position) < n.reach { + if distance(self.eye, &n.object.position) < n.reach * self.range { let before = self.draw.len(); let mut all = true; let mut any = false; @@ -881,7 +899,7 @@ mod tests { let object = Object { model: 30, position: [0.0; 3], rotation: [0.0, 0.0, 0.0, 1.0], scale: [1.0; 2] }; let close = Close { objects: vec![(Some(1), object)] }; let cut = |at: f32, loaded: &[u32]| { - let cut = lod.cut(&[at, 0.0, 0.0], &|m| loaded.contains(&m), &|_| false, std::iter::once(&close)); + let cut = lod.cut(&[at, 0.0, 0.0], 1.0, &|m| loaded.contains(&m), &|_| false, std::iter::once(&close)); let mut draw: Vec = cut.draw.into_keys().collect(); draw.sort_unstable(); (draw, cut.wanted.len()) diff --git a/crates/openrage-app/src/models.rs b/crates/openrage-app/src/models.rs index 30ffb99..2cdcc7d 100644 --- a/crates/openrage-app/src/models.rs +++ b/crates/openrage-app/src/models.rs @@ -38,6 +38,8 @@ pub struct LoadedModel { pub parts: Vec, /// Texture dictionaries found next to the model (`.ytd`, `vehshare.ytd`). pub external: Vec<(String, TextureDictionary)>, + /// Textures shared with other models (GTA VI). + shared: Vec>, /// Materials: shaders with the same name across all drawables. pub materials: Vec, /// The skeleton skinned meshes are bound to (for peds: from the `.yft` @@ -111,6 +113,7 @@ impl LoadedModel { parts, external: Vec::new(), materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton: None, expressions: Vec::new(), @@ -123,7 +126,24 @@ impl LoadedModel { /// Finds a texture by name: embedded in the drawable first, then next to the model. pub fn texture<'a>(&'a self, drawable: &'a Drawable, name: &str) -> Option<&'a Texture> { let find = |d: &'a TextureDictionary| d.textures.iter().find(|t| t.name.eq_ignore_ascii_case(name)); - drawable.textures.as_ref().and_then(find).or_else(|| self.external.iter().find_map(|(_, d)| find(d))) + let own = drawable.textures.as_ref().and_then(find).or_else(|| self.external.iter().find_map(|(_, d)| find(d))); + own.or_else(|| self.shared_texture(name).map(|t| &**t)) + } + + /// The texture of this name that is shared with other models. + pub(crate) fn shared_texture(&self, name: &str) -> Option<&Arc> { + self.shared.iter().find(|t| t.name.eq_ignore_ascii_case(name)) + } + + /// Gives the model textures it shares with others. + pub fn set_shared(&mut self, textures: Vec>) { + self.shared = textures; + self.collect_materials(); + } + + /// Lets go of the shared textures: what shows the model has them. + pub fn forget_shared(&mut self) { + self.shared = Vec::new(); } /// Dresses a GTA IV ped: for each (component, drawable, texture) — a @@ -822,6 +842,7 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton, expressions: Vec::new(), @@ -907,6 +928,7 @@ fn load_model(game_dir: &Path, keys: Option>, vpath: &str) -> Resu parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton, expressions: Vec::new(), @@ -1383,6 +1405,7 @@ fn load_gta4(archive: &Arc, id: rage_rpf::Gta4EntryId) -> parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton, expressions: Vec::new(), @@ -1446,6 +1469,7 @@ fn gta4_player(archive: &rage_rpf::Gta4Archive, skeleton: drawable::Skeleton) -> parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton: Some(skeleton), expressions: Vec::new(), @@ -1486,6 +1510,7 @@ pub fn load_gta4_members(game: &Path, vpath: &str, wanted: &[(String, u32)]) -> parts: vec![part], external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton: d.skeleton.clone(), expressions: Vec::new(), @@ -1608,6 +1633,7 @@ fn load_rdr2(rpf: &Arc, i: usize) -> Result { parts, external, materials: Vec::new(), + shared: Vec::new(), shader_material: Vec::new(), skeleton, expressions: Vec::new(), @@ -1770,6 +1796,7 @@ fn load_rdr2_ped_inner(game: &Path, ped: &str, outfit: usize) -> Result, + /// Decoded on first use. + rgba: OnceLock>>, + /// As the game has it; let go once it is on the graphics card. + source: Mutex>>, } impl Image { - fn sample(&self, u: f32, v: f32) -> [u8; 4] { + fn decoded(w: usize, h: usize, rgba: Vec) -> Self { + Self { w, h, rgba: OnceLock::from(Some(rgba)), source: Mutex::new(None) } + } + + /// Width and height. + pub fn size(&self) -> (usize, usize) { + (self.w, self.h) + } + + /// RGBA pixels. + pub fn rgba(&self) -> Option<&[u8]> { + let decode = || self.source().and_then(|t| t.to_rgba()); + self.rgba.get_or_init(decode).as_deref() + } + + /// The texture as the game has it, if it is kept. + pub fn source(&self) -> Option> { + self.source.lock().unwrap_or_else(|e| e.into_inner()).clone() + } + + /// Lets go of it: it is elsewhere now. + pub fn release(&self) { + *self.source.lock().unwrap_or_else(|e| e.into_inner()) = None; + } + + /// The picture of a texture that several models share. + fn shared(texture: &Arc) -> Arc { + type Known = HashMap, Weak)>; + static KNOWN: LazyLock> = LazyLock::new(Default::default); + let mut known = KNOWN.lock().unwrap_or_else(|e| e.into_inner()); + let key = Arc::as_ptr(texture) as usize; + if let Some((of, image)) = known.get(&key) + && of.upgrade().is_some_and(|of| Arc::ptr_eq(&of, texture)) + && let Some(image) = image.upgrade() + { + return image; + } + let image = Arc::new(Image { + w: texture.width.max(1) as usize, + h: texture.height.max(1) as usize, + rgba: OnceLock::new(), + source: Mutex::new(Some(Arc::clone(texture))), + }); + if known.len().is_power_of_two() { + known.retain(|_, (_, image)| image.strong_count() > 0); + } + known.insert(key, (Arc::downgrade(texture), Arc::downgrade(&image))); + image + } + + fn sample(&self, rgba: &[u8], u: f32, v: f32) -> [u8; 4] { let x = ((u - u.floor()) * self.w as f32) as usize % self.w; let y = ((v - v.floor()) * self.h as f32) as usize % self.h; let i = (y * self.w + x) * 4; - [self.rgba[i], self.rgba[i + 1], self.rgba[i + 2], self.rgba[i + 3]] + [rgba[i], rgba[i + 1], rgba[i + 2], rgba[i + 3]] } } -/// Decoded textures, shared between frames. +/// The textures of a model, ready to be drawn. pub struct Materials { - images: Vec, + images: Vec>, /// Indices into `images` per drawable and shader. per_shader: Vec>, } @@ -61,18 +117,22 @@ impl Materials { /// Decodes the textures of every shader of every drawable. pub fn new(model: &LoadedModel) -> Self { let mut by_name: HashMap> = HashMap::new(); - let mut images: Vec = Vec::new(); + let mut images: Vec> = Vec::new(); // `opaque`: the shader's alpha channel holds other data (skin shaders). let mut decode = |d: &rage_formats::drawable::Drawable, name: Option<&str>, opaque: bool| { let name = name?; let key = format!("{}{}", name.to_ascii_lowercase(), if opaque { "#opaque" } else { "" }); *by_name.entry(key).or_insert_with(|| { let t = model.texture(d, name)?; + if let Some(shared) = model.shared_texture(name).filter(|s| !opaque && std::ptr::eq(&***s, t)) { + images.push(Image::shared(shared)); + return Some(images.len() - 1); + } let mut rgba = t.to_rgba()?; if opaque { rgba.iter_mut().skip(3).step_by(4).for_each(|a| *a = 255); } - images.push(Image { w: t.width.max(1) as usize, h: t.height.max(1) as usize, rgba }); + images.push(Arc::new(Image::decoded(t.width.max(1) as usize, t.height.max(1) as usize, rgba))); Some(images.len() - 1) }) }; @@ -101,39 +161,26 @@ impl Materials { self.per_shader.get(drawable).and_then(|s| s.get(shader as usize)).copied().unwrap_or_default() } - fn image(&self, drawable: usize, shader: u16) -> Option<&Image> { - self.slot(drawable, shader).base.map(|i| &self.images[i]) - } - - fn overlay_image(&self, drawable: usize, shader: u16) -> Option<&Image> { - self.slot(drawable, shader).overlay.map(|i| &self.images[i]) - } - - /// RGBA pixels of the base texture of a drawable's shader (for GPU upload). - pub fn texture(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { - self.pixels(self.slot(drawable, shader).base) - } - - /// RGBA pixels of the overlay texture of a drawable's shader, drawn over - /// the base colour with its alpha on the second UV set (for GPU upload). - pub fn overlay(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { - self.pixels(self.slot(drawable, shader).overlay) + fn image(&self, drawable: usize, shader: u16) -> Option<(&Image, &[u8])> { + let image = &*self.images[self.slot(drawable, shader).base?]; + Some((image, image.rgba()?)) } - /// The same of its normal map. - pub fn normal(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { - self.pixels(self.slot(drawable, shader).normal) + fn overlay_image(&self, drawable: usize, shader: u16) -> Option<(&Image, &[u8])> { + let image = &*self.images[self.slot(drawable, shader).overlay?]; + Some((image, image.rgba()?)) } - /// The same of its specular map. - pub fn specular(&self, drawable: usize, shader: u16) -> Option<(usize, usize, usize, &[u8])> { - self.pixels(self.slot(drawable, shader).specular) + /// The base texture of a drawable's shader, the overlay drawn over it with + /// its alpha on the second UV set, the normal and the specular map. + pub fn pictures(&self, drawable: usize, shader: u16) -> [Option<&Arc>; 4] { + let Slots { base, overlay, normal, specular } = self.slot(drawable, shader); + [base, overlay, normal, specular].map(|i| i.map(|i| &self.images[i])) } - fn pixels(&self, image: Option) -> Option<(usize, usize, usize, &[u8])> { - let i = image?; - let img = &self.images[i]; - Some((i, img.w, img.h, &img.rgba)) + /// Lets go of what is on the graphics card now. + pub fn release(&self) { + self.images.iter().for_each(|i| i.release()); } } @@ -350,7 +397,7 @@ pub fn render_scene(items: &[SceneItem], camera: &Camera, width: usize, height: if let (Some(img), true) = (img, has_uv) { let u = q0 * mesh.uvs[a][0] + q1 * mesh.uvs[b][0] + q2 * mesh.uvs[c][0]; let v = q0 * mesh.uvs[a][1] + q1 * mesh.uvs[b][1] + q2 * mesh.uvs[c][1]; - let t = img.sample(u, v); + let t = img.0.sample(img.1, u, v); if t[3] < 77 { continue; // alpha cut-out } @@ -363,7 +410,7 @@ pub fn render_scene(items: &[SceneItem], camera: &Camera, width: usize, height: let uv = &mesh.uvs1; let u = q0 * uv[a][0] + q1 * uv[b][0] + q2 * uv[c][0]; let v = q0 * uv[a][1] + q1 * uv[b][1] + q2 * uv[c][1]; - let t = img.sample(u, v); + let t = img.0.sample(img.1, u, v); let alpha = t[3] as f32 / 255.0; for k in 0..3 { base[k] += (t[k] as f32 / 255.0 - base[k]) * alpha; diff --git a/crates/openrage-gui/src/gpu.rs b/crates/openrage-gui/src/gpu.rs index 1ff4cec..2dd169b 100644 --- a/crates/openrage-gui/src/gpu.rs +++ b/crates/openrage-gui/src/gpu.rs @@ -6,13 +6,16 @@ //! If no GPU is available, callers fall back to the software renderer. use std::cell::RefCell; -use std::collections::HashMap; +use std::collections::{HashMap, HashSet}; +use std::sync::atomic::{AtomicU64, Ordering}; use std::sync::{Arc, LazyLock, Mutex, Weak}; use openrage_app::gta4_effects::{Image, Sprite}; use openrage_app::models::Look; -use openrage_app::render::Camera; +use openrage_app::render::{Camera, Image as Picture}; +use rage_formats::drawable::param; use rage_formats::math; +use rayon::prelude::*; use wgpu::util::DeviceExt; const SAMPLES: u32 = 4; @@ -43,6 +46,14 @@ struct Globals { // The directions to the right and upper edge of the picture, w: there is a sky. right: vec4, up: vec4, + // Towards the light, w: seconds, for what moves. + sun: vec4, + // Its colour, w: how much lamps shine. + sun_colour: vec4, + ambient: vec4, + zenith: vec4, + horizon: vec4, + below: vec4, }; @group(0) @binding(0) var globals: Globals; @group(1) @binding(0) var tex: texture_2d; @@ -56,18 +67,70 @@ struct Globals { // Skinning matrices per skeleton bone (identity when not animated). @group(2) @binding(0) var skin: array, {BONES}>; -// Where the sun is, and the colours of the sky. -const SUN: vec3 = vec3(0.48, -0.42, 0.77); -const ZENITH: vec3 = vec3(0.22, 0.45, 0.78); -const HORIZON: vec3 = vec3(0.74, 0.82, 0.89); -const BELOW: vec3 = vec3(0.40, 0.48, 0.55); +// What a placement's colour says it is (its alpha). +const WATER: f32 = 2.0; +const LAMP: f32 = 3.0; fn sky_colour(dir: vec3) -> vec3 { - let sun = normalize(SUN); - var c = mix(HORIZON, ZENITH, pow(clamp(dir.z, 0.0, 1.0), 0.55)); - c = mix(c, BELOW, smoothstep(0.0, 0.25, -dir.z)); - let near = max(dot(dir, sun), 0.0); - return c + vec3(1.0, 0.92, 0.75) * (pow(near, 900.0) + 0.12 * pow(near, 12.0)); + var c = mix(globals.horizon.rgb, globals.zenith.rgb, pow(clamp(dir.z, 0.0, 1.0), 0.55)); + c = mix(c, globals.below.rgb, smoothstep(0.0, 0.25, -dir.z)); + let near = max(dot(dir, globals.sun.xyz), 0.0); + return c + globals.sun_colour.rgb * (1.6 * pow(near, 1500.0) + 0.16 * pow(near, 12.0)); +} + +// The surface of water: waves that fade with the distance. +fn water_colour(world: vec3) -> vec3 { + let to_eye = globals.eye.xyz - world; + let far = length(to_eye); + let v = to_eye / max(far, 0.001); + let t = globals.sun.w; + var slope = vec2(0.0); + var dir = vec2(0.8, 0.6); + var long = 0.045; + var high = 0.05; + for (var i = 0; i < 6; i = i + 1) { + let fade = exp(-far * long * 0.05); + slope = slope + dir * cos(dot(world.xy, dir) * long * 6.2832 + t * (0.6 + f32(i) * 0.45)) * high * fade; + dir = vec2(dir.x * 0.36 - dir.y * 0.93, dir.x * 0.93 + dir.y * 0.36); + long = long * 1.9; + high = high * 0.92; + } + let n = normalize(vec3(-slope, 1.0)); + let facing = clamp(dot(n, v), 0.0, 1.0); + let mirror = 0.03 + 0.97 * pow(1.0 - facing, 5.0); + var up = reflect(-v, n); + up.z = abs(up.z); + let day = globals.ambient.rgb + globals.sun_colour.rgb * 0.5; + let deep = vec3(0.02, 0.16, 0.20) * day + vec3(0.02, 0.10, 0.09) * max(slope.x + slope.y, 0.0) * day; + let spark = pow(max(dot(up, globals.sun.xyz), 0.0), 260.0); + return mix(deep, sky_colour(normalize(up)), mirror) + globals.sun_colour.rgb * spark * 1.5; +} + +struct SeaOut { + @builtin(position) clip: vec4, + @location(0) world: vec3, +}; + +// The sea: a square around the camera, up to the horizon. +@vertex +fn vs_sea(@builtin(vertex_index) i: u32) -> SeaOut { + var o: SeaOut; + let corner = vec2(f32(i & 1u), f32((i >> 1u) & 1u)) * 2.0 - 1.0; + o.world = vec3(globals.eye.xy + corner * 40000.0, 0.0); + o.clip = globals.view_proj * vec4(o.world, 1.0); + return o; +} + +@fragment +fn fs_sea(i: SeaOut) -> @location(0) vec4 { + let ray = i.world - globals.eye.xyz; + let far = length(ray); + let dir = ray / max(far, 0.001); + let haze = sky_colour(normalize(vec3(dir.xy, 0.0))); + let lit = mix(haze, water_colour(i.world), exp(-far * globals.eye.w)) * globals.ambient.w; + // Looking down, the ground shows through a little. + let alpha = mix(0.97, 0.82, clamp(-dir.z, 0.0, 1.0)); + return vec4(lit * alpha, alpha); } struct SkyOut { @@ -88,16 +151,17 @@ fn vs_sky(@builtin(vertex_index) i: u32) -> SkyOut { @fragment fn fs_sky(i: SkyOut) -> @location(0) vec4 { - return vec4(sky_colour(normalize(i.dir)), 1.0); + return vec4(sky_colour(normalize(i.dir)) * globals.ambient.w, 1.0); } struct VsIn { @location(0) pos: vec3, - @location(1) normal: vec3, + @location(1) normal: vec4, @location(2) uv: vec2, @location(3) weights: vec4, @location(4) joints: vec4, @location(5) uv1: vec2, + @location(11) shading: vec4, // Per placement: where it is, and the material's colour (multiplied with // the texture). @location(6) model_0: vec4, @@ -113,13 +177,16 @@ struct VsOut { @location(2) uv1: vec2, @location(3) world: vec3, @location(4) tint: vec3, + @location(5) @interpolate(flat) kind: f32, + // How much sky it sees, and how much of what is put on the base shows. + @location(6) shading: vec2, }; @vertex fn vs_main(v: VsIn) -> VsOut { var o: VsOut; var pos = vec4(v.pos, 1.0); - var normal = v.normal; + var normal = v.normal.xyz; let total = v.weights.x + v.weights.y + v.weights.z + v.weights.w; if (total > 0.0) { let m = (skin[min(v.joints.x, {LAST_BONE})] * v.weights.x + skin[min(v.joints.y, {LAST_BONE})] * v.weights.y @@ -133,17 +200,15 @@ fn vs_main(v: VsIn) -> VsOut { o.world = world.xyz; o.normal = (model * vec4(normal, 0.0)).xyz; o.tint = v.tint.rgb; + o.kind = v.tint.a; + o.shading = v.shading.ra; o.uv = v.uv; o.uv1 = v.uv1; return o; } -@fragment -fn fs_main(i: VsOut) -> @location(0) vec4 { - let base = textureSample(tex, samp, i.uv); - if (base.a < 0.3) { - discard; - } +// The colour, with the base texture's alpha. +fn shade(i: VsOut, base: vec4) -> vec4 { var n = i.normal; if (dot(n, n) < 1e-6) { n = vec3(0.0, 0.0, 1.0); @@ -174,8 +239,12 @@ fn fs_main(i: VsOut) -> @location(0) vec4 { // Outdoors: the sun, and the sky from above. let to_eye = globals.eye.xyz - i.world; let m = select(-n, n, dot(n, to_eye) >= 0.0); - light = vec3(1.0, 0.95, 0.86) * 0.75 * max(dot(m, normalize(SUN)), 0.0) - + vec3(0.48, 0.53, 0.60) * (0.85 + 0.35 * m.z); + light = globals.sun_colour.rgb * max(dot(m, globals.sun.xyz), 0.0) + + globals.ambient.rgb * (0.85 + 0.35 * m.z); + light = light * mix(0.35, 1.0, i.shading.x); + if (abs(i.kind - LAMP) < 0.5) { + light = max(light, vec3(globals.sun_colour.w)); + } } let count = u32(globals.forward.w); if (count > 0u) { @@ -198,18 +267,41 @@ fn fs_main(i: VsOut) -> @location(0) vec4 { light = light + l.color.rgb * amount; } } - let colour = mix(base.rgb * i.tint, layer.rgb, layer.a); + let colour = mix(base.rgb * i.tint, layer.rgb, layer.a * i.shading.y); // What shines towards the viewer. let glint = pow(abs(dot(n, globals.forward.xyz)), 24.0) * max(max(shine.r, shine.g), shine.b) * 0.25; var lit = colour * light + vec3(glint); if (globals.right.w > 0.5) { + lit = colour * light; + if (abs(i.kind - WATER) < 0.5) { + lit = water_colour(i.world); + } let ray = i.world - globals.eye.xyz; let far = length(ray); let dir = ray / max(far, 0.001); let haze = sky_colour(normalize(vec3(dir.xy, max(dir.z, 0.0)))); - lit = mix(haze, colour * light, exp(-far * globals.eye.w)); + lit = mix(haze, lit, exp(-far * globals.eye.w)) * globals.ambient.w; + } + return vec4(lit, base.a); +} + +@fragment +fn fs_main(i: VsOut) -> @location(0) vec4 { + let base = textureSample(tex, samp, i.uv); + let c = shade(i, base); + if (base.a < 0.3) { + discard; } - return vec4(lit, 1.0); + return vec4(c.rgb, 1.0); +} + +// What lies on other things (road markings, dirt): blended over them. +@fragment +fn fs_decal(i: VsOut) -> @location(0) vec4 { + let base = textureSample(tex, samp, i.uv); + let c = shade(i, base); + let alpha = base.a * i.shading.y; + return vec4(c.rgb * alpha, alpha); } // Particles: camera-facing squares, built on the CPU in world space. @@ -245,11 +337,25 @@ fn fs_sprite(i: SpriteOut) -> @location(0) vec4 { #[derive(Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)] struct Vertex { pos: [f32; 3], - normal: [f32; 3], + /// In 127ths. + normal: [i8; 4], uv: [f32; 2], - weights: [f32; 4], - joints: [u32; 4], + /// In 255ths. + weights: [u8; 4], + joints: [u16; 4], uv1: [f32; 2], + /// [`rage_formats::drawable::Mesh::shading`], in 255ths. + shading: [u8; 4], +} + +fn small_normal(n: [f32; 3]) -> [i8; 4] { + let len = n.iter().map(|v| v * v).sum::().sqrt().max(1e-12); + let [x, y, z] = n.map(|v| (v / len * 127.0).round() as i8); + [x, y, z, 0] +} + +fn small_weights(w: [f32; 4]) -> [u8; 4] { + w.map(|v| (v.clamp(0.0, 1.0) * 255.0).round() as u8) } #[repr(C)] @@ -280,6 +386,12 @@ struct Globals { eye: [f32; 4], right: [f32; 4], up: [f32; 4], + sun: [f32; 4], + sun_colour: [f32; 4], + ambient: [f32; 4], + zenith: [f32; 4], + horizon: [f32; 4], + below: [f32; 4], } /// A light of a scene: position, colour × strength, reach, and for spot @@ -305,10 +417,68 @@ struct Instance { pub struct Outdoors { /// How fast things fade into the distance, per metre. pub haze: f32, + /// Hour of the day. + pub hour: f32, + pub brightness: f32, + /// For what moves. + pub seconds: f32, + /// There is a sea at height 0. + pub sea: bool, +} + +/// Marks a material's colour as water, or as a lamp that shines at night. +pub const WATER: f32 = 2.0; +pub const LAMP: f32 = 3.0; + +/// The light at an hour. +struct Daylight { + /// Towards the sun or the moon. + towards: [f32; 3], + colour: [f32; 3], + /// How much lamps shine. + lamps: f32, + /// From all sides. + ambient: [f32; 3], + zenith: [f32; 3], + horizon: [f32; 3], + /// Below the horizon. + below: [f32; 3], +} + +fn light_at(hour: f32) -> Daylight { + let mix = |a: [f32; 3], b: [f32; 3], t: f32| std::array::from_fn(|k| a[k] + (b[k] - a[k]) * t); + let step = |a: f32, b: f32, v: f32| { + let t = ((v - a) / (b - a)).clamp(0.0, 1.0); + t * t * (3.0 - 2.0 * t) + }; + let angle = (hour - 6.0) / 12.0 * std::f32::consts::PI; + // Up in the east, over the south, down in the west. + let sun = [angle.cos() * 0.92, -0.38, angle.sin()]; + let height = angle.sin(); + let day = step(-0.3, 0.25, height); + let dusk = (-(height / 0.2).powi(2)).exp(); + let colour: [f32; 3] = if height > -0.06 { + mix([0.75, 0.34, 0.13], [0.66, 0.62, 0.55], step(0.0, 0.4, height)).map(|c: f32| c * step(-0.06, 0.1, height)) + } else { + [0.16, 0.20, 0.30] + }; + let light = if height > -0.06 { sun } else { [-sun[0], sun[1], -sun[2]] }; + let len = light.iter().map(|v| v * v).sum::().sqrt(); + let horizon = mix([0.09, 0.11, 0.18], [0.74, 0.82, 0.89], day); + let lamps = 1.0 - step(-0.02, 0.25, height); + Daylight { + towards: light.map(|v| v / len), + colour, + lamps: lamps * 1.6, + ambient: mix([0.15, 0.18, 0.26], [0.36, 0.40, 0.46], day), + zenith: mix([0.02, 0.03, 0.08], [0.22, 0.45, 0.78], day), + horizon: mix(horizon, [0.95, 0.52, 0.28], dusk * 0.75), + below: mix([0.04, 0.05, 0.08], [0.40, 0.48, 0.55], day), + } } /// Outdoors, models smaller than this in the picture are left out (pixels). -const SMALLEST: f32 = 1.2; +const SMALLEST: f32 = 1.6; struct Gpu { device: wgpu::Device, @@ -318,12 +488,18 @@ struct Gpu { sprite_blend: wgpu::RenderPipeline, sprite_add: wgpu::RenderPipeline, sky: wgpu::RenderPipeline, + decal: wgpu::RenderPipeline, + sea: wgpu::RenderPipeline, + /// Block-compressed textures can be used as they are. + blocks: bool, globals_layout: wgpu::BindGroupLayout, texture_layout: wgpu::BindGroupLayout, skin_layout: wgpu::BindGroupLayout, sampler: wgpu::Sampler, /// White 1×1 texture for untextured meshes (their colour is the tint). white: wgpu::TextureView, + /// The same in grey. + grey: wgpu::TextureView, /// Transparent 1×1 texture for meshes without an overlay. clear: wgpu::TextureView, /// 1×1 normal map for meshes without one. @@ -340,6 +516,8 @@ struct Draw { base_vertex: i32, indices: std::ops::Range, texture: usize, + /// Lies on other things. + decal: bool, /// Bounding sphere (centre, radius) in the model's space, for culling. sphere: ([f32; 3], f32), } @@ -348,6 +526,8 @@ struct Draw { struct GpuModel { owner: Weak, draws: Vec, + /// Models with the same number are in the same buffers. + batch: u64, vertices: wgpu::Buffer, indices: wgpu::Buffer, /// Bind groups: 0 is the plain texture, then one per combination of @@ -362,7 +542,9 @@ struct Targets { resolve: wgpu::Texture, resolve_view: wgpu::TextureView, depth: wgpu::TextureView, - readback: wgpu::Buffer, + readback: [wgpu::Buffer; 2], + /// A picture on its way back: for whom, its buffer and when it is done. + pending: Option<(u64, usize, wgpu::SubmissionIndex)>, padded_row: u32, } @@ -382,6 +564,10 @@ static GPU: LazyLock> = LazyLock::new(init); /// Models uploaded by other threads. static READY: Mutex> = Mutex::new(Vec::new()); +/// The textures of pictures that several models share. +type Views = HashMap, wgpu::TextureView)>; +static VIEWS: LazyLock> = LazyLock::new(Default::default); + thread_local! { static STATE: RefCell = RefCell::new(State::default()); } @@ -401,8 +587,10 @@ fn init() -> Option { limits.max_uniform_buffer_binding_size = limits.max_uniform_buffer_binding_size.max(wanted); let bones = (limits.max_uniform_buffer_binding_size / u64::from(BONE)) as usize; let bones = bones.min(MAX_BONES); + let blocks = adapter.features().contains(wgpu::Features::TEXTURE_COMPRESSION_BC); let (device, queue) = pollster::block_on(adapter.request_device(&wgpu::DeviceDescriptor { label: Some("openrage"), + required_features: if blocks { wgpu::Features::TEXTURE_COMPRESSION_BC } else { wgpu::Features::empty() }, required_limits: limits, ..Default::default() })) @@ -494,7 +682,8 @@ fn init() -> Option { bind_group_layouts: &[Some(&globals_layout), Some(&texture_layout), Some(&skin_layout)], immediate_size: 0, }); - let pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { + let model_pipeline = |decal: bool| { + device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { label: Some("model"), layout: Some(&layout), vertex: wgpu::VertexState { @@ -505,7 +694,7 @@ fn init() -> Option { Some(wgpu::VertexBufferLayout { array_stride: std::mem::size_of::() as u64, step_mode: wgpu::VertexStepMode::Vertex, - attributes: &wgpu::vertex_attr_array![0 => Float32x3, 1 => Float32x3, 2 => Float32x2, 3 => Float32x4, 4 => Uint32x4, 5 => Float32x2], + attributes: &wgpu::vertex_attr_array![0 => Float32x3, 1 => Snorm8x4, 2 => Float32x2, 3 => Unorm8x4, 4 => Uint16x4, 5 => Float32x2, 11 => Unorm8x4], }), Some(wgpu::VertexBufferLayout { array_stride: std::mem::size_of::() as u64, @@ -517,61 +706,73 @@ fn init() -> Option { primitive: wgpu::PrimitiveState { cull_mode: None, ..Default::default() }, depth_stencil: Some(wgpu::DepthStencilState { format: DEPTH_FORMAT, - depth_write_enabled: Some(true), + depth_write_enabled: Some(!decal), depth_compare: Some(wgpu::CompareFunction::Greater), stencil: Default::default(), - bias: Default::default(), + // Depth is larger nearer to the camera. + bias: if decal { + wgpu::DepthBiasState { constant: 24, slope_scale: 1.5, clamp: 0.0 } + } else { + Default::default() + }, }), multisample: wgpu::MultisampleState { count: SAMPLES, ..Default::default() }, fragment: Some(wgpu::FragmentState { module: &module, - entry_point: Some("fs_main"), + entry_point: Some(if decal { "fs_decal" } else { "fs_main" }), compilation_options: Default::default(), targets: &[Some(wgpu::ColorTargetState { format: COLOR_FORMAT, - blend: None, + blend: decal.then_some(wgpu::BlendState::PREMULTIPLIED_ALPHA_BLENDING), write_mask: wgpu::ColorWrites::ALL, })], }), multiview_mask: None, cache: None, - }); + }) + }; + let (pipeline, decal) = (model_pipeline(false), model_pipeline(true)); let sky_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { label: Some("sky"), bind_group_layouts: &[Some(&globals_layout)], immediate_size: 0, }); - let sky = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { - label: Some("sky"), - layout: Some(&sky_layout), - vertex: wgpu::VertexState { - module: &module, - entry_point: Some("vs_sky"), - compilation_options: Default::default(), - buffers: &[], - }, - primitive: Default::default(), - depth_stencil: Some(wgpu::DepthStencilState { - format: DEPTH_FORMAT, - depth_write_enabled: Some(false), - depth_compare: Some(wgpu::CompareFunction::GreaterEqual), - stencil: Default::default(), - bias: Default::default(), - }), - multisample: wgpu::MultisampleState { count: SAMPLES, ..Default::default() }, - fragment: Some(wgpu::FragmentState { - module: &module, - entry_point: Some("fs_sky"), - compilation_options: Default::default(), - targets: &[Some(wgpu::ColorTargetState { - format: COLOR_FORMAT, - blend: None, - write_mask: wgpu::ColorWrites::ALL, - })], - }), - multiview_mask: None, - cache: None, - }); + let outdoor_pipeline = |vertex, fragment, topology, blend| { + device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { + label: Some(vertex), + layout: Some(&sky_layout), + vertex: wgpu::VertexState { + module: &module, + entry_point: Some(vertex), + compilation_options: Default::default(), + buffers: &[], + }, + primitive: wgpu::PrimitiveState { topology, ..Default::default() }, + depth_stencil: Some(wgpu::DepthStencilState { + format: DEPTH_FORMAT, + depth_write_enabled: Some(false), + depth_compare: Some(wgpu::CompareFunction::GreaterEqual), + stencil: Default::default(), + bias: Default::default(), + }), + multisample: wgpu::MultisampleState { count: SAMPLES, ..Default::default() }, + fragment: Some(wgpu::FragmentState { + module: &module, + entry_point: Some(fragment), + compilation_options: Default::default(), + targets: &[Some(wgpu::ColorTargetState { + format: COLOR_FORMAT, + blend, + write_mask: wgpu::ColorWrites::ALL, + })], + }), + multiview_mask: None, + cache: None, + }) + }; + let sky = outdoor_pipeline("vs_sky", "fs_sky", wgpu::PrimitiveTopology::TriangleList, None); + let over = wgpu::BlendState::PREMULTIPLIED_ALPHA_BLENDING; + let sea = outdoor_pipeline("vs_sea", "fs_sea", wgpu::PrimitiveTopology::TriangleStrip, Some(over)); let sprite_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { label: Some("sprite"), bind_group_layouts: &[Some(&globals_layout), Some(&texture_layout)], @@ -638,12 +839,16 @@ fn init() -> Option { ..Default::default() }); let white = upload_texture(&device, &queue, 1, 1, &[255, 255, 255, 255]); + let grey = upload_texture(&device, &queue, 1, 1, &[118, 118, 116, 255]); let clear = upload_texture(&device, &queue, 1, 1, &[0, 0, 0, 0]); let flat = upload_texture(&device, &queue, 1, 1, &[128, 128, 255, 255]); Some(Gpu { sprite_blend, sprite_add, sky, + decal, + sea, + blocks, device, queue, pipeline, @@ -652,6 +857,7 @@ fn init() -> Option { skin_layout, sampler, white, + grey, clear, flat, bones, @@ -718,6 +924,75 @@ fn upload_texture(device: &wgpu::Device, queue: &wgpu::Queue, w: u32, h: u32, rg texture.create_view(&Default::default()) } +/// The texture of a picture on a model, made once for all that have it. +fn picture_view(gpu: &Gpu, picture: &Arc) -> Option { + let key = Arc::as_ptr(picture) as usize; + { + let views = VIEWS.lock().unwrap_or_else(|e| e.into_inner()); + if let Some((of, view)) = views.get(&key) + && of.upgrade().is_some_and(|of| Arc::ptr_eq(&of, picture)) + { + return Some(view.clone()); + } + } + let (w, h) = picture.size(); + let as_it_is = picture.source().filter(|_| gpu.blocks).and_then(|t| upload_blocks(gpu, &t)); + let view = match as_it_is { + Some(view) => view, + None => upload_texture(&gpu.device, &gpu.queue, w as u32, h as u32, picture.rgba()?), + }; + let mut views = VIEWS.lock().unwrap_or_else(|e| e.into_inner()); + if views.len().is_power_of_two() { + views.retain(|_, (of, _)| of.strong_count() > 0); + } + views.insert(key, (Arc::downgrade(picture), view.clone())); + Some(view) +} + +/// Uploads a block-compressed texture; `None` if it is of another kind. +fn upload_blocks(gpu: &Gpu, t: &rage_formats::texture::Texture) -> Option { + // Colours are passed through unchanged, so none is declared sRGB. + let format = match t.format.0 { + 70..=72 => wgpu::TextureFormat::Bc1RgbaUnorm, + 76..=78 => wgpu::TextureFormat::Bc3RgbaUnorm, + 82 | 83 => wgpu::TextureFormat::Bc5RgUnorm, + 97..=99 => wgpu::TextureFormat::Bc7RgbaUnorm, + _ => return None, + }; + if t.depth > 1 || !t.width.is_multiple_of(4) || !t.height.is_multiple_of(4) || t.levels == 0 { + return None; + } + let texture = gpu.device.create_texture(&wgpu::TextureDescriptor { + label: None, + size: wgpu::Extent3d { width: t.width, height: t.height, depth_or_array_layers: 1 }, + mip_level_count: t.levels, + sample_count: 1, + dimension: wgpu::TextureDimension::D2, + format, + usage: wgpu::TextureUsages::TEXTURE_BINDING | wgpu::TextureUsages::COPY_DST, + view_formats: &[], + }); + let mut at = 0; + for level in 0..t.levels { + let (w, h) = ((t.width >> level).max(1), (t.height >> level).max(1)); + let (row, size) = t.format.pitch(w, h)?; + let data = t.data.get(at..at + size)?; + at += size; + gpu.queue.write_texture( + wgpu::TexelCopyTextureInfo { + texture: &texture, + mip_level: level, + origin: wgpu::Origin3d::ZERO, + aspect: wgpu::TextureAspect::All, + }, + data, + wgpu::TexelCopyBufferLayout { offset: 0, bytes_per_row: Some(row as u32), rows_per_image: None }, + wgpu::Extent3d { width: w.next_multiple_of(4), height: h.next_multiple_of(4), depth_or_array_layers: 1 }, + ); + } + Some(texture.create_view(&Default::default())) +} + /// The shader, for devices that can skin with this many bones. fn shader_source(bones: usize) -> String { SHADER.replace("{BONES}", &bones.to_string()).replace("{LAST_BONE}", &format!("{}u", bones - 1)) @@ -749,15 +1024,23 @@ fn texture_bind_group( }) } -/// Uploads every part of the model (placements baked into the vertices). -fn upload(gpu: &Gpu, preview: &Arc) -> GpuModel { +/// A model on its way to the graphics card. +struct Built { + owner: Weak, + draws: Vec, + vertices: Vec, + indices: Vec, + textures: Vec, +} + +/// Every part of the model (placements baked into the vertices), with its +/// textures uploaded. +fn build(gpu: &Gpu, preview: &Arc) -> Built { let (model, materials) = (&preview.loaded, &preview.materials); let (mut all_vertices, mut all_indices): (Vec, Vec) = (Vec::new(), Vec::new()); let mut textures = vec![plain_bind_group(gpu, &gpu.white)]; - // Material image index → uploaded texture; image indices → bind group. - let mut views: HashMap = HashMap::new(); - let mut texture_of: HashMap<[Option; 4], usize> = HashMap::new(); - texture_of.insert([None; 4], 0); + // Pictures → bind group. + let mut texture_of: HashMap<[usize; 4], usize> = HashMap::new(); let mut draws = Vec::new(); for (part_index, part) in model.parts.iter().enumerate() { let Some((_, d)) = model.drawables.get(part.drawable) else { continue }; @@ -768,47 +1051,68 @@ fn upload(gpu: &Gpu, preview: &Arc) -> GpuModel { let has_n = mesh.normals.len() == mesh.positions.len(); let has_uv = mesh.uvs.len() == mesh.positions.len(); let has_uv1 = mesh.uvs1.len() == mesh.positions.len(); + // The second layer runs like the first. + let layered = d + .shaders + .get(usize::from(mesh.shader)) + .is_some_and(|s| s.sampler(param::LAYER_1_TEX).is_some() && s.sampler(param::DIFFUSE_TEX2).is_none()); let skinned = mesh.bone_weights.len() == mesh.positions.len(); - let bone = part.bone.map(|b| b as u32); + let bone = part.bone.map(|b| b as u16); let vertices: Vec = (0..mesh.positions.len()) .map(|i| Vertex { pos: math::transform_point(&part.transform, mesh.positions[i]), - normal: if has_n { math::transform_dir(&part.transform, mesh.normals[i]) } else { [0.0; 3] }, + normal: if has_n { + small_normal(math::transform_dir(&part.transform, mesh.normals[i])) + } else { + [0; 4] + }, uv: if has_uv { mesh.uvs[i] } else { [0.0; 2] }, // Parts attached to a bone follow it; others use the mesh's weights. weights: match bone { - Some(_) => [1.0, 0.0, 0.0, 0.0], - None if skinned => mesh.bone_weights[i], - None => [0.0; 4], + Some(_) => [255, 0, 0, 0], + None if skinned => small_weights(mesh.bone_weights[i]), + None => [0; 4], }, joints: match bone { Some(b) => [b, 0, 0, 0], - None if skinned => mesh.bone_indices[i].map(u32::from), + None if skinned => mesh.bone_indices[i], None => [0; 4], }, - uv1: if has_uv1 { mesh.uvs1[i] } else { [0.0; 2] }, + uv1: match (layered, has_uv1) { + (true, _) if has_uv => mesh.uvs[i], + (false, true) => mesh.uvs1[i], + _ => [0.0; 2], + }, + shading: mesh.shading.get(i).copied().unwrap_or([255; 4]), }) .collect(); - let base = materials.texture(part.drawable, mesh.shader).filter(|_| has_uv); - let overlay = materials.overlay(part.drawable, mesh.shader).filter(|_| has_uv1); - let normal = materials.normal(part.drawable, mesh.shader).filter(|_| has_uv); - let specular = materials.specular(part.drawable, mesh.shader).filter(|_| has_uv); - let mut view = |image: Option<(usize, usize, usize, &[u8])>| { - image.map(|(i, w, h, rgba)| { - views.entry(i).or_insert_with(|| upload_texture(&gpu.device, &gpu.queue, w as u32, h as u32, rgba)); - i - }) - }; - let key = [view(base), view(overlay), view(normal), view(specular)]; + let usable = [has_uv, has_uv1 || (layered && has_uv), has_uv, has_uv]; + let mut pictures = materials.pictures(part.drawable, mesh.shader); + pictures.iter_mut().zip(usable).for_each(|(p, usable)| *p = p.filter(|_| usable)); + // A shader without a picture among others of its material that have + // one, whose colour says nothing about it. + let plain = pictures[0].is_none() + && model + .material_index(part.drawable, mesh.shader) + .and_then(|m| model.materials.get(m)) + .is_some_and(|m| m.textured); + let decal = d + .shaders + .get(usize::from(mesh.shader)) + .is_some_and(|s| rage_formats::names::value(s.name_hash).contains("decal")); + if plain && decal { + continue; + } + let mut key = pictures.map(|p| p.map_or(0, |p| Arc::as_ptr(p) as usize)); + key[0] = if plain { 1 } else { key[0] }; let texture = *texture_of.entry(key).or_insert_with(|| { - let [base, overlay, normal, specular] = key; - let of = |image: Option, none| image.map_or(none, |i| &views[&i]); + let [base, overlay, normal, specular] = pictures.map(|p| p.and_then(|p| picture_view(gpu, p))); textures.push(texture_bind_group( gpu, - of(base, &gpu.white), - of(overlay, &gpu.clear), - of(normal, &gpu.flat), - of(specular, &gpu.clear), + base.as_ref().unwrap_or(if plain { &gpu.grey } else { &gpu.white }), + overlay.as_ref().unwrap_or(&gpu.clear), + normal.as_ref().unwrap_or(&gpu.flat), + specular.as_ref().unwrap_or(&gpu.clear), )); textures.len() - 1 }); @@ -829,33 +1133,70 @@ fn upload(gpu: &Gpu, preview: &Arc) -> GpuModel { base_vertex: all_vertices.len() as i32, indices: all_indices.len() as u32..(all_indices.len() + mesh.indices.len()) as u32, texture, + decal, }); all_vertices.extend_from_slice(&vertices); all_indices.extend_from_slice(&mesh.indices); } } - // An empty buffer cannot be used. - if all_indices.is_empty() { - all_vertices.push(bytemuck::Zeroable::zeroed()); - all_indices.push(0); - } - let buffer = |contents: &[u8], usage| { - gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { label: None, contents, usage }) - }; - GpuModel { - owner: Arc::downgrade(preview), - draws, - vertices: buffer(bytemuck::cast_slice(&all_vertices), wgpu::BufferUsages::VERTEX), - indices: buffer(bytemuck::cast_slice(&all_indices), wgpu::BufferUsages::INDEX), - textures, + Built { owner: Arc::downgrade(preview), draws, vertices: all_vertices, indices: all_indices, textures } +} + +/// Bytes of vertices or indices that share a buffer. +const BATCH: usize = 64 << 20; + +/// Puts models into buffers they share: changing buffers takes longer than +/// drawing a small model. +fn upload(gpu: &Gpu, built: Vec) -> Vec { + static NUMBER: AtomicU64 = AtomicU64::new(0); + let mut models = Vec::with_capacity(built.len()); + let mut rest = built.into_iter().peekable(); + while rest.peek().is_some() { + let (mut vertices, mut indices): (Vec, Vec) = (Vec::new(), Vec::new()); + let mut batch = Vec::new(); + while let Some(next) = rest.next_if(|b| { + let bytes = |v: usize, i: usize| (v * std::mem::size_of::()).max(i * 4); + batch.is_empty() || bytes(vertices.len() + b.vertices.len(), indices.len() + b.indices.len()) <= BATCH + }) { + let Built { owner, mut draws, vertices: v, indices: i, textures } = next; + for d in &mut draws { + d.base_vertex += vertices.len() as i32; + d.indices = d.indices.start + indices.len() as u32..d.indices.end + indices.len() as u32; + } + vertices.extend_from_slice(&v); + indices.extend_from_slice(&i); + batch.push((owner, draws, textures)); + } + // An empty buffer cannot be used. + if indices.is_empty() { + vertices.push(bytemuck::Zeroable::zeroed()); + indices.push(0); + } + let buffer = |contents: &[u8], usage| { + gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { label: None, contents, usage }) + }; + let vertices = buffer(bytemuck::cast_slice(&vertices), wgpu::BufferUsages::VERTEX); + let indices = buffer(bytemuck::cast_slice(&indices), wgpu::BufferUsages::INDEX); + let number = NUMBER.fetch_add(1, Ordering::Relaxed); + models.extend(batch.into_iter().map(|(owner, draws, textures)| GpuModel { + owner, + draws, + batch: number, + vertices: vertices.clone(), + indices: indices.clone(), + textures, + })); } + models } -/// Uploads a model ahead of its first picture; from any thread. -pub fn prepare(preview: &Arc) { +/// Uploads models ahead of their first picture; from any thread. +pub fn prepare(previews: &[Arc]) { if let Some(gpu) = &*GPU { - let model = upload(gpu, preview); - READY.lock().unwrap_or_else(|e| e.into_inner()).push(model); + let built = previews.par_iter().map(|p| build(gpu, p)).collect(); + previews.iter().for_each(|p| p.materials.release()); + let models = upload(gpu, built); + READY.lock().unwrap_or_else(|e| e.into_inner()).extend(models); } } @@ -877,19 +1218,22 @@ fn targets(gpu: &Gpu, w: u32, h: u32) -> Targets { let resolve = make(COLOR_FORMAT, 1, wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::COPY_SRC); let depth = make(DEPTH_FORMAT, SAMPLES, wgpu::TextureUsages::RENDER_ATTACHMENT); let padded_row = (4 * w).div_ceil(256) * 256; - let readback = gpu.device.create_buffer(&wgpu::BufferDescriptor { - label: Some("readback"), - size: (padded_row * h) as u64, - usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::MAP_READ, - mapped_at_creation: false, - }); + let readback = || { + gpu.device.create_buffer(&wgpu::BufferDescriptor { + label: Some("readback"), + size: (padded_row * h) as u64, + usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::MAP_READ, + mapped_at_creation: false, + }) + }; Targets { size: (w, h), msaa: msaa.create_view(&Default::default()), resolve_view: resolve.create_view(&Default::default()), resolve, depth: depth.create_view(&Default::default()), - readback, + readback: [readback(), readback()], + pending: None, padded_row, } } @@ -966,7 +1310,7 @@ pub fn render( w: u32, h: u32, ) -> Option { - render_scene(&[SceneItem { preview, look, model: math::IDENTITY, skin }], &[], &[], None, camera, w, h) + render_scene(&[SceneItem { preview, look, model: math::IDENTITY, skin }], &Around::default(), camera, w, h) } /// One model of a scene: what is shown, where it stands and its pose. @@ -1023,17 +1367,21 @@ fn sprite_vertices(sprites: &[Sprite], camera: &Camera) -> (Vec, V (vertices, runs) } +/// What there is in a scene besides models. +#[derive(Default)] +pub struct Around<'a> { + pub lights: &'a [SceneLight], + pub sprites: &'a [Sprite], + pub outdoors: Option, + /// The number of a view that is drawn again and again: it may get the + /// picture before, which is much quicker. + pub live: Option, +} + /// Renders several models (each with its own placement and pose) and /// particles from `camera`, e.g. all actors of a cutscene. -pub fn render_scene( - items: &[SceneItem], - lights: &[SceneLight], - sprites: &[Sprite], - outdoors: Option, - camera: &Camera, - w: u32, - h: u32, -) -> Option { +pub fn render_scene(items: &[SceneItem], around: &Around, camera: &Camera, w: u32, h: u32) -> Option { + let &Around { lights, sprites, outdoors, live } = around; STATE.with(|state| { let mut st = state.borrow_mut(); let st = &mut *st; @@ -1045,12 +1393,11 @@ pub fn render_scene( // of every uploaded model for every placement. st.models.append(&mut READY.lock().unwrap_or_else(|e| e.into_inner())); st.models.retain(|m| m.owner.strong_count() > 0); - let mut uploaded: std::collections::HashSet<*const crate::ModelPreview> = - st.models.iter().map(|m| m.owner.as_ptr()).collect(); - for item in items { - if uploaded.insert(Arc::as_ptr(item.preview)) { - st.models.push(upload(gpu, item.preview)); - } + let mut known: HashSet<*const crate::ModelPreview> = st.models.iter().map(|m| m.owner.as_ptr()).collect(); + let new: Vec<&Arc> = + items.iter().map(|item| item.preview).filter(|p| known.insert(Arc::as_ptr(p))).collect(); + if !new.is_empty() { + st.models.extend(upload(gpu, new.into_iter().map(|p| build(gpu, p)).collect())); } st.sprite_textures.retain(|(owner, _)| owner.strong_count() > 0); @@ -1065,7 +1412,7 @@ pub fn render_scene( if st.targets.as_ref().is_none_or(|t| t.size != (w, h)) { st.targets = Some(targets(gpu, w, h)); } - let t = st.targets.as_ref()?; + let t = st.targets.as_mut()?; let near = (camera.distance * 0.01).max(0.001); let far = camera.distance + camera.radius * 4.0 + 1.0; @@ -1088,6 +1435,8 @@ pub fn render_scene( let reach = tan * side as f32 / short; [axis[0] * reach, axis[1] * reach, axis[2] * reach, last] }; + let light = light_at(outdoors.map_or(12.0, |o| o.hour)); + let wide = |v: [f32; 3], last: f32| [v[0], v[1], v[2], last]; let globals = Globals { view_proj: view_projection(camera, w, h, near, far), forward: [camera.forward[0], camera.forward[1], camera.forward[2], lights.len().min(MAX_LIGHTS) as f32], @@ -1095,6 +1444,12 @@ pub fn render_scene( eye: [camera.eye[0], camera.eye[1], camera.eye[2], outdoors.map_or(0.0, |o| o.haze)], right: edge(camera.right, w, if outdoors.is_some() { 1.0 } else { 0.0 }), up: edge(camera.up, h, 0.0), + sun: wide(light.towards, outdoors.map_or(0.0, |o| o.seconds)), + sun_colour: wide(light.colour, light.lamps), + ambient: wide(light.ambient, outdoors.map_or(1.0, |o| o.brightness)), + zenith: wide(light.zenith, 0.0), + horizon: wide(light.horizon, 0.0), + below: wide(light.below, 0.0), }; let globals_buffer = gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { label: Some("globals"), @@ -1109,8 +1464,8 @@ pub fn render_scene( // Shown draws of every item with their colours (hidden parts and // materials left out, and unskinned ones outside the view). - let model_of: HashMap<*const crate::ModelPreview, usize> = - st.models.iter().enumerate().map(|(i, m)| (m.owner.as_ptr(), i)).collect(); + let model_of: HashMap = + st.models.iter().enumerate().map(|(i, m)| (m.owner.as_ptr() as usize, i)).collect(); let planes = frustum_planes(&globals.view_proj); // Pixels of something as large as it is far. let pixels = short / 2.0 / tan; @@ -1119,29 +1474,35 @@ pub fn render_scene( let far = (0..3).map(|k| (c[k] - camera.eye[k]).powi(2)).sum::().sqrt(); radius * scale_of(model) * pixels < SMALLEST * (far - radius).max(0.0) }; - // The skinned item it is (or none), the model, the draw; the same - // ones are drawn together. + // Whether it lies on others (those come last), the skinned item it is + // (or none), the model, the draw; the same ones are drawn together. + type Key = (bool, usize, usize, usize); const NO_SKIN: usize = usize::MAX; - let mut shown: Vec<((usize, usize, usize), Instance)> = Vec::new(); - for (index, item) in items.iter().enumerate() { - let number = *model_of.get(&Arc::as_ptr(item.preview))?; - for (k, d) in st.models[number].draws.iter().enumerate() { - if !item.look.parts.get(d.part).copied().unwrap_or(false) { - continue; - } - if item.skin.is_none() - && (!sphere_visible(&planes, &item.model, d.sphere) - || (outdoors.is_some() && too_small(&item.model, d.sphere))) - { - continue; - } - if let Some(tint) = item.preview.loaded.tint(item.look, d.drawable, d.shader) { - let skin = if item.skin.is_some() { index } else { NO_SKIN }; - shown.push(((skin, number, k), Instance { model: item.model, tint })); - } - } - } - shown.sort_by_key(|(key, _)| *key); + let models = &st.models; + let mut shown: Vec<(Key, Instance)> = items + .par_iter() + .enumerate() + .flat_map_iter(|(index, item)| { + let number = model_of.get(&(Arc::as_ptr(item.preview) as usize)).copied(); + let draws = number.map_or(&[][..], |n| &models[n].draws[..]); + let skin = if item.skin.is_some() { index } else { NO_SKIN }; + let (planes, too_small) = (&planes, &too_small); + draws.iter().enumerate().filter_map(move |(k, d)| { + if !item.look.parts.get(d.part).copied().unwrap_or(false) { + return None; + } + if item.skin.is_none() + && (!sphere_visible(planes, &item.model, d.sphere) + || (outdoors.is_some() && too_small(&item.model, d.sphere))) + { + return None; + } + let tint = item.preview.loaded.tint(item.look, d.drawable, d.shader)?; + Some(((d.decal, skin, number?, k), Instance { model: item.model, tint })) + }) + }) + .collect(); + shown.par_sort_unstable_by_key(|(key, _)| *key); let instances: Vec = shown.iter().map(|(_, i)| *i).collect(); let instance_buffer = (!instances.is_empty()).then(|| { gpu.device.create_buffer_init(&wgpu::util::BufferInitDescriptor { @@ -1208,8 +1569,13 @@ pub fn render_scene( pass.set_vertex_buffer(1, buffer.slice(..)); let mut last = (None, None, None); let mut first = 0; + let mut decals = false; for run in shown.chunk_by(|a, b| a.0 == b.0) { - let (skin, number, k) = run[0].0; + let (decal, skin, number, k) = run[0].0; + if decal && !decals { + pass.set_pipeline(&gpu.decal); + decals = true; + } let model = &st.models[number]; let d = &model.draws[k]; // Only what changes is set. @@ -1217,14 +1583,14 @@ pub fn render_scene( let group = skin_groups.get(skin).and_then(Option::as_ref).unwrap_or(rest_pose); pass.set_bind_group(2, group, &[]); } - if last.1 != Some(number) { + if last.1 != Some(model.batch) { pass.set_vertex_buffer(0, model.vertices.slice(..)); pass.set_index_buffer(model.indices.slice(..), wgpu::IndexFormat::Uint32); } if last.2 != Some((number, d.texture)) { pass.set_bind_group(1, &model.textures[d.texture], &[]); } - last = (Some(skin), Some(number), Some((number, d.texture))); + last = (Some(skin), Some(model.batch), Some((number, d.texture))); let count = run.len() as u32; pass.draw_indexed(d.indices.clone(), d.base_vertex, first..first + count); first += count; @@ -1233,6 +1599,10 @@ pub fn render_scene( if outdoors.is_some() { pass.set_pipeline(&gpu.sky); pass.draw(0..3, 0..1); + if outdoors.is_some_and(|o| o.sea) { + pass.set_pipeline(&gpu.sea); + pass.draw(0..4, 0..1); + } } // Particles last, over what they are in front of. if let Some(buffer) = &sprite_buffer { @@ -1248,6 +1618,7 @@ pub fn render_scene( } } } + let here = t.pending.as_ref().map_or(0, |(_, other, _)| 1 - other); encoder.copy_texture_to_buffer( wgpu::TexelCopyTextureInfo { texture: &t.resolve, @@ -1256,7 +1627,7 @@ pub fn render_scene( aspect: wgpu::TextureAspect::All, }, wgpu::TexelCopyBufferInfo { - buffer: &t.readback, + buffer: &t.readback[here], layout: wgpu::TexelCopyBufferLayout { offset: 0, bytes_per_row: Some(t.padded_row), @@ -1265,13 +1636,35 @@ pub fn render_scene( }, wgpu::Extent3d { width: w, height: h, depth_or_array_layers: 1 }, ); - gpu.queue.submit([encoder.finish()]); + let submitted = gpu.queue.submit([encoder.finish()]); - t.readback.map_async(wgpu::MapMode::Read, .., |_| {}); - gpu.device.poll(wgpu::PollType::wait_indefinitely()).ok()?; + t.readback[here].map_async(wgpu::MapMode::Read, .., |_| {}); + let wait = |index: &wgpu::SubmissionIndex| { + let wait = wgpu::PollType::Wait { submission_index: Some(index.clone()), timeout: None }; + gpu.device.poll(wait).ok() + }; + // While things move, the picture before is taken: it is there by now, + // and the graphics card works while the next one is put together. + let before = t.pending.take(); + let taken = match (live, before) { + (Some(id), Some((of, other, index))) if of == id => { + wait(&index)?; + t.pending = Some((id, here, submitted)); + other + } + (_, before) => { + wait(&submitted)?; + if let Some((_, other, _)) = before { + t.readback[other].unmap(); + } + // The first of several is shown twice. + t.pending = live.map(|id| (id, here, submitted)); + here + } + }; let mut pixels = slint::SharedPixelBuffer::::new(w, h); { - let data = t.readback.get_mapped_range(..).ok()?; + let data = t.readback[taken].get_mapped_range(..).ok()?; let out = pixels.make_mut_bytes(); let row = (4 * w) as usize; for y in 0..h as usize { @@ -1279,7 +1672,9 @@ pub fn render_scene( out[y * row..(y + 1) * row].copy_from_slice(&data[src..src + row]); } } - t.readback.unmap(); + if t.pending.as_ref().is_none_or(|(_, kept, _)| *kept != taken) { + t.readback[taken].unmap(); + } Some(slint::Image::from_rgba8_premultiplied(pixels)) }) } @@ -1315,6 +1710,22 @@ mod tests { assert!(super::sphere_visible(&planes, &at([40.0, 10.0, 0.0]), ([0.0; 3], 40.0))); } + #[test] + fn the_sun_moves() { + let height = |hour| super::light_at(hour).towards[2]; + assert!(height(12.0) > 0.8 && height(8.0) > 0.2); + // At night there is a moon, and lamps. + assert!(height(0.0) > 0.5); + assert!(super::light_at(0.0).lamps > 1.0 && super::light_at(12.0).lamps == 0.0); + } + + #[test] + fn pictures_are_halved() { + let (w, h, half) = super::halved(2, 2, &[0, 0, 0, 0, 100, 0, 0, 0, 100, 0, 0, 0, 200, 0, 0, 0]); + assert_eq!((w, h, &half[..]), (1, 1, &[100, 0, 0, 0][..])); + assert_eq!(super::halved(4, 1, &[7; 16]).2, [7; 8]); + } + #[test] fn sprites_draw_far_first_in_runs() { use openrage_app::gta4_effects::{Image, Sprite}; diff --git a/crates/openrage-gui/src/scene.rs b/crates/openrage-gui/src/scene.rs index 628f4ab..60b82a3 100644 --- a/crates/openrage-gui/src/scene.rs +++ b/crates/openrage-gui/src/scene.rs @@ -90,8 +90,12 @@ struct State { /// The flying camera, when it flies, and what moves it. fly: Option, fly_timer: slint::Timer, - /// Under a sky: a map. - outdoors: bool, + /// Under a sky: a map, with how it is shown. + outdoors: Option, + /// Tells it from other scenes. + number: u64, + /// Moves the water. + water_timer: slint::Timer, /// Loads the details of GTA VI's whole map around the camera. stream: Option, } @@ -105,6 +109,9 @@ impl State { let mut camera = f.camera((0..3).map(|k| (hi[k] - lo[k]).powi(2)).sum::().sqrt() / 2.0); // It can be close to things however large the scene is. camera.distance = camera.distance.min(50.0); + if let Some(w) = &self.outdoors { + camera.fov = w.fov.to_radians(); + } camera } None => render::orbit_camera(lo, hi, self.view), @@ -132,9 +139,51 @@ impl State { } } +/// How often moving water is drawn. +const WATER_STEP: Duration = Duration::from_millis(50); + +/// Another number for each scene. +fn scene_number() -> u64 { + static NEXT: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(0); + NEXT.fetch_add(1, Ordering::Relaxed) +} + /// The most pixels a scene is drawn with (Full HD). const MOST_PIXELS: f32 = 1920.0 * 1080.0; +/// How a map is shown (the settings beside it). +#[derive(Clone, Copy)] +struct Weather { + hour: f32, + /// 0 to 1. + haze: f32, + brightness: f32, + /// The flying camera's angle, in degrees. + fov: f32, + /// How far things are in detail, 1 as in the game. + range: f32, + /// The water moves. + moving: bool, + /// There is a sea at height 0. + sea: bool, + since: Instant, +} + +impl Default for Weather { + fn default() -> Self { + Self { + hour: 13.0, + haze: 0.3, + brightness: 1.0, + fov: 60.0, + range: 1.0, + moving: true, + sea: false, + since: Instant::now(), + } + } +} + type Shared = Rc>>; /// How far the background loads are, shown on the scene while they run. @@ -629,7 +678,9 @@ fn start(win: &SceneWindow, state: &Rc>>, id: u64, loaded: timer: slint::Timer::default(), fly: None, fly_timer: slint::Timer::default(), - outdoors: false, + number: scene_number(), + outdoors: None, + water_timer: slint::Timer::default(), stream: None, }); if let Some(st) = state.borrow_mut().as_mut() { @@ -927,10 +978,15 @@ fn cut_camera(st: &State) -> Option { } fn render_frame(win: &SceneWindow, state: &Rc>>) { + draw(win, state, false); +} + +/// The same; `moving` if it is drawn again soon. +fn draw(win: &SceneWindow, state: &Rc>>, moving: bool) { if let Some(st) = state.borrow_mut().as_mut() { let eye = st.free_camera().eye; if let Some(stream) = &mut st.stream { - stream.look_from(eye); + stream.look_from(eye, st.outdoors.map_or(1.0, |w| w.range)); } } let st = state.borrow(); @@ -1003,9 +1059,16 @@ fn render_frame(win: &SceneWindow, state: &Rc>>) { }; let sprites = gta4_effects::sprites_at(&st.effect_library, &st.effects, st.time); // Seen from above, haze would hide a whole map. - let outdoors = - st.outdoors.then(|| crate::gpu::Outdoors { haze: if st.fly.is_some() { 1.0 / 9000.0 } else { 0.0 } }); - crate::gpu::render_scene(&items, lights, &sprites, outdoors, &camera, width, height) + let outdoors = st.outdoors.map(|w| crate::gpu::Outdoors { + haze: if st.fly.is_some() { w.haze * w.haze / 1000.0 } else { 0.0 }, + hour: w.hour, + brightness: w.brightness, + seconds: w.since.elapsed().as_secs_f32(), + sea: w.sea, + }); + let live = moving.then_some(st.number); + let around = crate::gpu::Around { lights, sprites: &sprites, outdoors, live }; + crate::gpu::render_scene(&items, &around, &camera, width, height) } else { None }; @@ -1124,7 +1187,7 @@ pub fn open_map(ui: &AppWindow, vpath: String) { .map(|(name, loaded, transforms)| { let materials = render::Materials::new(&loaded); let look = std::sync::RwLock::new(loaded.default_look()); - (ModelPreview { loaded, look, materials, name }, transforms) + (Arc::new(ModelPreview { loaded, look, materials, name }), transforms) }) .collect(); let missing = scene.missing.iter().map(|(_, n)| n).sum(); @@ -1147,7 +1210,7 @@ pub fn open_map(ui: &AppWindow, vpath: String) { /// A map file's models with their placements, loaded in the background. struct MapLoaded { - models: Vec<(ModelPreview, Vec)>, + models: Vec<(Arc, Vec)>, objects: usize, /// Objects whose model was not found. missing: usize, @@ -1159,31 +1222,27 @@ struct MapLoaded { /// GTA VI's whole map from afar. fn load_whole_map(game: &Path, show: >a6_world::Progress) -> anyhow::Result { let lod = Arc::new(Lod::open(game, show)?); - let loaded = lod.load(&lod.far(), true, &|done, total| show("Loading the map's models", done, total)); - let mut places = lod.cut(&[0.0, 0.0, 1e6], &|_| true, &|_| false, std::iter::empty()).draw; + let loaded = + lod.load(&lod.far(), gta6_world::Quality::Far, &|done, total| show("Loading the map's models", done, total)); + let mut places = lod.cut(&[0.0, 0.0, 1e6], 1.0, &|_| true, &|_| false, std::iter::empty()).draw; let objects = places.values().map(Vec::len).sum(); - let (keys, models): (Vec, Vec<_>) = loaded - .into_par_iter() - .map(|(key, name, loaded)| { - let materials = render::Materials::new(&loaded); - let look = std::sync::RwLock::new(loaded.default_look()); - (key, ModelPreview { loaded, look, materials, name }) - }) - .unzip(); + let (keys, models): (Vec, Vec>) = crate::stream::ready(loaded).into_iter().unzip(); anyhow::ensure!(!models.is_empty(), "the map files of this game have no distant view"); - let models: Vec<(ModelPreview, Vec)> = + let models: Vec<(Arc, Vec)> = models.into_iter().zip(&keys).map(|(p, key)| (p, places.remove(key).unwrap_or_default())).collect(); let missing = places.values().map(Vec::len).sum(); Ok(MapLoaded { models, objects, missing, lod: Some((lod, keys)) }) } fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { + let whole_map = scene.lod.is_some(); + win.set_view_sea(whole_map); let mut surroundings: Vec<(Arc, Look, Vec)> = scene .models .into_iter() .map(|(p, transforms)| { let look = scene_look(&p); - (Arc::new(p), look, transforms) + (p, look, transforms) }) .collect(); let far: Option>> = scene @@ -1202,6 +1261,7 @@ fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { win.set_objects(slint::ModelRc::new(slint::VecModel::from(if far.is_some() { Vec::new() } else { rows }))); win.set_can_export(!surroundings.is_empty()); win.set_can_fly(true); + win.set_show_panel(true); let (lo, hi) = bounds; let mut status = format!( "{} objects · {} models · {:.0} × {:.0} m", @@ -1243,7 +1303,9 @@ fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { timer: slint::Timer::default(), fly: None, fly_timer: slint::Timer::default(), - outdoors: true, + number: scene_number(), + outdoors: Some(Weather { sea: whole_map, ..Weather::default() }), + water_timer: slint::Timer::default(), stream: None, }); if let (Some((lod, _)), Some(far)) = (scene.lod, far) { @@ -1256,6 +1318,7 @@ fn start_map(win: &SceneWindow, state: &Shared, scene: MapLoaded) { st.stream = Some(stream); } } + move_water(win, state); render_frame(win, state); } @@ -1325,6 +1388,21 @@ fn wire_map(win: &SceneWindow, state: &Shared, main: slint::Weak, nam } fn wire(win: &SceneWindow, state: &Rc>>) { + let (w, s) = (win.as_weak(), Rc::clone(state)); + win.on_view_changed(move || { + let Some(win) = w.upgrade() else { return }; + if let Some(weather) = s.borrow_mut().as_mut().and_then(|st| st.outdoors.as_mut()) { + weather.hour = win.get_view_hour(); + weather.haze = win.get_view_haze(); + weather.brightness = win.get_view_brightness(); + weather.fov = win.get_view_fov(); + weather.range = win.get_view_range(); + weather.moving = win.get_view_water(); + weather.sea = win.get_view_sea(); + } + move_water(&win, &s); + render_frame(&win, &s); + }); let (w, s) = (win.as_weak(), Rc::clone(state)); win.on_toggle_fly(move || toggle_fly(&w, &s)); let (w, s) = (win.as_weak(), Rc::clone(state)); @@ -1343,17 +1421,23 @@ fn wire(win: &SceneWindow, state: &Rc>>) { if let Some(f) = s.borrow_mut().as_mut().and_then(|st| st.fly.as_mut()) { f.tick(); } - render_frame(&win, &s); + draw(&win, &s, true); }); } }); - let s = Rc::clone(state); + let (w, s) = (win.as_weak(), Rc::clone(state)); win.on_key_up(move |text, shift| { + let mut stopped = false; if let Some(st) = s.borrow_mut().as_mut() && !st.fly.as_mut().is_some_and(|f| f.key_up(&text.to_lowercase(), shift)) { + stopped = st.fly_timer.running(); st.fly_timer.stop(); } + // Where it stopped. + if let Some(win) = w.upgrade().filter(|_| stopped) { + render_frame(&win, &s); + } }); let s = Rc::clone(state); win.on_focus_lost(move || { @@ -1463,6 +1547,26 @@ fn wire(win: &SceneWindow, state: &Rc>>) { }); } +/// Keeps drawing while water moves. +fn move_water(win: &SceneWindow, state: &Shared) { + let st = state.borrow(); + let Some(st) = st.as_ref() else { return }; + if !st.outdoors.is_some_and(|w| w.moving) { + st.water_timer.stop(); + } else if !st.water_timer.running() { + let (w, s) = (win.as_weak(), Rc::downgrade(state)); + st.water_timer.start(slint::TimerMode::Repeated, WATER_STEP, move || { + if let (Some(win), Some(s)) = (w.upgrade(), s.upgrade()) + && win.window().is_visible() + // Flying draws anyway. + && !s.borrow().as_ref().is_some_and(|st| st.fly_timer.running()) + { + draw(&win, &s, true); + } + }); + } +} + /// Switches between orbiting and flying, starting where the camera is. fn toggle_fly(w: &slint::Weak, state: &Shared) { let Some(win) = w.upgrade() else { return }; @@ -1503,6 +1607,13 @@ pub fn fly_to(place: [f32; 5]) { let [x, y, z, yaw, pitch] = place; st.fly = Some(Fly::new(&render::fly_camera([x, y, z], yaw, pitch, 1.0), 100.0)); win.set_fly_mode(true); + // `OPENRAGE_HOUR=`: the time of day. + if let (Some(w), Some(hour)) = + (&mut st.outdoors, std::env::var("OPENRAGE_HOUR").ok().and_then(|h| h.parse().ok())) + { + w.hour = hour; + win.set_view_hour(hour); + } } render_frame(&win, &state); } @@ -1521,7 +1632,7 @@ pub fn bench(pictures: u32) { None => st.view.yaw += 0.02, } } - render_frame(&win, &state); + draw(&win, &state, true); } eprintln!("bench: {:.2} ms a picture", started.elapsed().as_secs_f32() * 1000.0 / pictures as f32); } diff --git a/crates/openrage-gui/src/stream.rs b/crates/openrage-gui/src/stream.rs index 1b4a6f8..2548504 100644 --- a/crates/openrage-gui/src/stream.rs +++ b/crates/openrage-gui/src/stream.rs @@ -3,7 +3,7 @@ use std::collections::{HashMap, HashSet}; use std::sync::{Arc, Condvar, Mutex}; -use openrage_app::gta6_world::{Close, Lod}; +use openrage_app::gta6_world::{Close, Loaded, Lod, Quality}; use openrage_app::models::Look; use openrage_app::render; use rage_formats::math::Mat4; @@ -21,16 +21,22 @@ const KEPT: usize = 1500; /// Models with their places, as a scene draws them. pub type Drawn = Vec<(Arc, Look, Vec)>; +/// Nearer than this, models get their best textures (metres). +const UP_CLOSE: f32 = 70.0; + +/// Where the camera is, and how far things are in detail. +type From = ([f32; 3], f32); + #[derive(Default)] struct Wish { - eye: Option<[f32; 3]>, + from: Option, stop: bool, } /// The thread that loads; ends when this is dropped. pub struct Stream { wish: Arc<(Mutex, Condvar)>, - last: Option<[f32; 3]>, + last: Option, } impl Stream { @@ -47,14 +53,15 @@ impl Stream { Self { wish, last: None } } - /// The camera is here now. - pub fn look_from(&mut self, eye: [f32; 3]) { + /// The camera is here now; things are in detail `range` times as far as + /// in the game. + pub fn look_from(&mut self, eye: [f32; 3], range: f32) { // Small steps change nothing. - let moved = |from: &[f32; 3]| (0..3).map(|k| (from[k] - eye[k]).powi(2)).sum::() > 4.0; + let moved = |(from, r): &From| *r != range || (0..3).map(|k| (from[k] - eye[k]).powi(2)).sum::() > 4.0; if self.last.as_ref().is_none_or(moved) { - self.last = Some(eye); + self.last = Some((eye, range)); let (lock, changed) = &*self.wish; - lock.lock().unwrap_or_else(|e| e.into_inner()).eye = Some(eye); + lock.lock().unwrap_or_else(|e| e.into_inner()).from = Some((eye, range)); changed.notify_one(); } } @@ -75,36 +82,61 @@ struct Kept { drawn: u64, /// Always kept. far: bool, + /// With its best textures. + best: bool, } -/// How a model looks in a scene: without decals, which need blending it does not do, and with blue water. +/// How a model looks in a scene: with water and lamps told from the rest. pub fn scene_look(preview: &ModelPreview) -> Look { let mut look = preview.loaded.default_look(); + let is_water = preview.name.to_ascii_lowercase().contains("water"); for (slot, l) in preview.loaded.materials.iter().zip(look.materials.iter_mut()) { - if rage_formats::shaders::name(slot.name_hash).is_some_and(|n| n.contains("decal")) { - l.visible = false; - } - // Its colour is computed in the game. let shader = rage_formats::names::value(slot.name_hash); - if shader.starts_with("water") || (!slot.textured && preview.name.to_ascii_lowercase().contains("water")) { - l.tint = if slot.textured { [0.25, 0.4, 0.46, 1.0] } else { [0.16, 0.3, 0.36, 1.0] }; + if shader.starts_with("water") || (!slot.textured && is_water) { + l.tint = [0.16, 0.3, 0.36, crate::gpu::WATER]; + } else if !slot.textured { + // A colour the game computes; what lies on others would hide them. + l.visible = !shader.contains("decal"); + l.tint = [0.45, 0.45, 0.44, 1.0]; + } else if shader.contains("emissive") { + l.tint[3] = crate::gpu::LAMP; } } look } +/// Whether a placement is near the camera. +fn near_to(eye: &[f32; 3], place: &Mat4) -> bool { + (0..3).map(|k| (place[12 + k] - eye[k]).powi(2)).sum::() < UP_CLOSE * UP_CLOSE +} + +/// Models ready to be drawn. What can be done here is not done while a +/// picture is drawn. +pub fn ready(loaded: Vec) -> Vec<(u32, Arc)> { + let prepare = |(m, name, mut loaded): Loaded| { + let materials = render::Materials::new(&loaded); + let look = std::sync::RwLock::new(loaded.default_look()); + loaded.forget_shared(); + (m, Arc::new(ModelPreview { loaded, look, materials, name })) + }; + let (keys, previews): (Vec, Vec>) = loaded.into_par_iter().map(prepare).unzip(); + crate::gpu::prepare(&previews); + keys.into_iter().zip(previews).collect() +} + fn work( lod: &Lod, far: HashMap>, wish: &(Mutex, Condvar), show: &dyn Fn(Drawn, bool) -> bool, ) { - let keep = |preview: Arc, far| Kept { look: scene_look(&preview), preview, drawn: 0, far }; + let keep = + |preview: Arc, far| Kept { look: scene_look(&preview), preview, drawn: 0, far, best: false }; let mut models: HashMap = far.into_iter().map(|(m, p)| (m, keep(p, true))).collect(); // Models that cannot be read are not tried again. let mut failed: HashSet = HashSet::new(); let mut close: HashMap = HashMap::new(); - let mut eye = None; + let mut from = None; let mut turn = 0u64; let mut more = false; loop { @@ -115,8 +147,8 @@ fn work( if now.stop { return; } - if let Some(wanted) = now.eye.take() { - eye = Some(wanted); + if let Some(wanted) = now.from.take() { + from = Some(wanted); break; } if more { @@ -125,9 +157,9 @@ fn work( now = changed.wait(now).unwrap_or_else(|e| e.into_inner()); } } - let Some(eye) = eye else { continue }; + let Some((eye, range)) = from else { continue }; turn += 1; - let near = lod.near(&eye); + let near = lod.near(&eye, range); close.retain(|file, _| near.contains(file)); let unread: Vec = near.iter().filter(|f| !close.contains_key(f)).copied().take(FILES_AT_ONCE).collect(); let files_left = !unread.is_empty(); @@ -136,18 +168,23 @@ fn work( for file in unread { close.entry(file).or_default(); } - let cut = lod.cut(&eye, &|m| models.contains_key(&m), &|m| failed.contains(&m), close.values()); + let cut = lod.cut(&eye, range, &|m| models.contains_key(&m), &|m| failed.contains(&m), close.values()); + let mut better: Vec = Vec::new(); let drawn: Drawn = cut .draw .into_iter() .filter_map(|(m, places)| { let kept = models.get_mut(&m)?; kept.drawn = turn; + if !kept.best && places.iter().any(|t| near_to(&eye, t)) { + better.push(m); + } Some((Arc::clone(&kept.preview), kept.look.clone(), places)) }) .collect(); let wanted: Vec = cut.wanted.into_iter().take(AT_ONCE).collect(); - more = files_left || !wanted.is_empty(); + better.truncate(if wanted.is_empty() { AT_ONCE } else { 8 }); + more = files_left || !wanted.is_empty() || !better.is_empty(); if !show(drawn, more) { return; } @@ -160,18 +197,19 @@ fn work( models.remove(m); } } - let loaded: Vec<(u32, Arc)> = lod - .load(&wanted, false, &|_, _| {}) - .into_par_iter() - .map(|(m, name, loaded)| { - let materials = render::Materials::new(&loaded); - let look = std::sync::RwLock::new(loaded.default_look()); - let preview = Arc::new(ModelPreview { loaded, look, materials, name }); - // Not while a picture is drawn. - crate::gpu::prepare(&preview); - (m, preview) - }) - .collect(); + let quiet = &|_, _| {}; + let loaded = ready(lod.load(&wanted, Quality::Near, quiet)); + for (m, preview) in ready(lod.load(&better, Quality::Close, quiet)) { + if let Some(kept) = models.get_mut(&m) { + (kept.look, kept.preview, kept.best) = (scene_look(&preview), preview, true); + } + } + // Those that could not be read again are not tried for ever. + for m in &better { + if let Some(kept) = models.get_mut(m) { + kept.best = true; + } + } failed.extend(wanted.iter().copied()); for (m, preview) in loaded { failed.remove(&m); diff --git a/crates/openrage-gui/ui/app.slint b/crates/openrage-gui/ui/app.slint index 308b01f..5943c22 100644 --- a/crates/openrage-gui/ui/app.slint +++ b/crates/openrage-gui/ui/app.slint @@ -5299,6 +5299,37 @@ export component XmlWindow inherits Window { // A whole cutscene in one scene: every actor with its animation, seen // through the cutscene camera or a free camera. +// A setting with its value and a slider. +component ViewSlider inherits VerticalLayout { + in property label; + in property text; + in property minimum; + in property maximum; + in-out property value; + callback changed-by-user(); + spacing: 2px; + HorizontalLayout { + Text { + horizontal-stretch: 1; + text: root.label; + font-size: Theme.font-small; + color: Theme.text-muted; + } + Text { + text: root.text; + font-size: Theme.font-small; + color: Theme.text; + } + } + Slider { + minimum: root.minimum; + maximum: root.maximum; + value <=> root.value; + accessible-label: root.label; + changed(v) => { root.changed-by-user(); } + } +} + export component SceneWindow inherits Window { title: root.heading + " — OpenRAGE"; icon: @image-url("logo.svg"); @@ -5351,6 +5382,16 @@ export component SceneWindow inherits Window { in property can-fly; in property fly-mode; in property fly-speed; + // How a map is shown. + in-out property show-panel; + in-out property view-hour: 13; + in-out property view-haze: 0.3; + in-out property view-brightness: 1; + in-out property view-fov: 60; + in-out property view-range: 1; + in-out property view-water: true; + in-out property view-sea; + callback view-changed(); callback toggle-fly(); callback key-down(string, bool); callback key-up(string, bool); @@ -5370,6 +5411,11 @@ export component SceneWindow inherits Window { scope.focus(); } + function set-hour(hour: float) { + root.view-hour = hour; + root.view-changed(); + } + function apply-theme() { Palette.color-scheme = root.theme-mode == 1 ? ColorScheme.light : root.theme-mode == 2 ? ColorScheme.dark : ColorScheme.unknown; } @@ -5431,6 +5477,12 @@ export component SceneWindow inherits Window { scope.focus(); } } + if root.can-fly: Button { + text: @tr("View"); + checkable: true; + checked: root.show-panel; + clicked => { root.show-panel = self.checked; } + } if root.can-export: Button { text: @tr("Export glTF…"); icon: @image-url("icons/export.svg"); @@ -5555,6 +5607,111 @@ export component SceneWindow inherits Window { } } } + if root.can-fly && root.show-panel: Rectangle { + width: 240px; + background: Theme.surface; + ScrollView { + VerticalLayout { + padding: Theme.space-m; + spacing: Theme.space-m; + alignment: start; + Text { + text: @tr("Time of day"); + font-weight: 600; + color: Theme.text; + } + HorizontalLayout { + spacing: Theme.space-xs; + Button { + text: @tr("Dawn"); + clicked => { root.set-hour(6.4); } + } + Button { + text: @tr("Noon"); + clicked => { root.set-hour(12.5); } + } + } + HorizontalLayout { + spacing: Theme.space-xs; + Button { + text: @tr("Dusk"); + clicked => { root.set-hour(17.6); } + } + Button { + text: @tr("Night"); + clicked => { root.set-hour(23); } + } + } + ViewSlider { + label: @tr("Hour"); + text: Math.floor(root.view-hour) + ":" + (Math.mod(Math.floor(root.view-hour * 60), 60) < 10 ? "0" : "") + Math.mod(Math.floor(root.view-hour * 60), 60); + minimum: 0; + maximum: 23.98; + value <=> root.view-hour; + changed-by-user => { root.view-changed(); } + } + ViewSlider { + label: @tr("Brightness"); + text: Math.round(root.view-brightness * 100) + " %"; + minimum: 0.4; + maximum: 2; + value <=> root.view-brightness; + changed-by-user => { root.view-changed(); } + } + ViewSlider { + label: @tr("Haze (when flying)"); + text: Math.round(root.view-haze * 100) + " %"; + minimum: 0; + maximum: 1; + value <=> root.view-haze; + changed-by-user => { root.view-changed(); } + } + CheckBox { + text: @tr("Sea"); + checked <=> root.view-sea; + toggled => { root.view-changed(); } + } + CheckBox { + text: @tr("Moving water"); + checked <=> root.view-water; + toggled => { root.view-changed(); } + } + Text { + text: @tr("Camera"); + font-weight: 600; + color: Theme.text; + } + ViewSlider { + label: @tr("Field of view (when flying)"); + text: Math.round(root.view-fov) + "°"; + minimum: 30; + maximum: 110; + value <=> root.view-fov; + changed-by-user => { root.view-changed(); } + } + ViewSlider { + label: @tr("Detail distance"); + text: Math.round(root.view-range * 100) + " %"; + minimum: 0.3; + maximum: 2.5; + value <=> root.view-range; + changed-by-user => { root.view-changed(); } + } + Button { + text: @tr("Reset"); + clicked => { + root.view-hour = 13; + root.view-brightness = 1; + root.view-haze = 0.3; + root.view-fov = 60; + root.view-range = 1; + root.view-water = true; + root.view-changed(); + } + } + } + } + } if root.objects.length > 0: Rectangle { width: 300px; background: Theme.surface; diff --git a/crates/rage-formats/src/drawable.rs b/crates/rage-formats/src/drawable.rs index f5800fa..cf3f014 100644 --- a/crates/rage-formats/src/drawable.rs +++ b/crates/rage-formats/src/drawable.rs @@ -61,6 +61,9 @@ pub struct Mesh { pub bone_tags: Vec, /// The same for GTA VI: hashes of the bones' names. pub bone_hashes: Vec, + /// GTA VI: what shades a vertex. Red: how much of the sky it sees; alpha: + /// how much of a decal, of dirt or of the second layer shows there. + pub shading: Vec<[u8; 4]>, } #[derive(Debug, Clone, Default)] @@ -118,6 +121,8 @@ pub mod param { pub const DIFFUSE_SAMPLER: u32 = 0xf1fe2b71; /// `DiffuseTex2`: a second colour layer on the second UV set (vehicle liveries and signs). pub const DIFFUSE_TEX2: u32 = 0x0df47048; + /// GTA VI: the colour of the second layer of layered shaders. + pub const LAYER_1_TEX: u32 = 0x7d4f_12e2; /// `DiffuseSampler2` (Legacy). pub const DIFFUSE_SAMPLER2: u32 = 0x0ad3a268; /// `DirtTex`, `SpecularTex`, `BumpTex`, `DamageTexture`. @@ -215,9 +220,11 @@ impl Shader { } /// A second colour layer drawn over the base colour with its alpha, on - /// the second UV set (vehicle liveries and signs: `DiffuseTex2`). + /// the second UV set (vehicle liveries and signs: `DiffuseTex2`), or the + /// second layer of GTA VI's layered shaders, on the first. pub fn overlay_texture(&self) -> Option<&str> { - self.sampler(param::DIFFUSE_TEX2).or_else(|| self.sampler(param::DIFFUSE_SAMPLER2)) + let overlay = self.sampler(param::DIFFUSE_TEX2).or_else(|| self.sampler(param::DIFFUSE_SAMPLER2)); + overlay.or_else(|| self.sampler(param::LAYER_1_TEX)) } } diff --git a/crates/rage-formats/src/drawable6.rs b/crates/rage-formats/src/drawable6.rs index 3d3a52c..6da870a 100644 --- a/crates/rage-formats/src/drawable6.rs +++ b/crates/rage-formats/src/drawable6.rs @@ -34,8 +34,10 @@ //! lower 12 are the number), or one bone without a weight. Of the weights //! the four largest are kept. A bone's number is its place in the model's //! list of the hashes of its bones' names (40). -//! - Texture coordinates (part 28): two floats, or two 16-bit numbers with a -//! scale. +//! - Texture coordinates (parts 28 and 29): two floats, or two 16-bit numbers +//! with a scale. +//! - What shades a vertex (part 24): how much of the sky it sees (red) and how +//! much of what is put on the base shows (alpha). //! //! The index buffer is cut into *clusters* of up to 128 vertices and 256 //! triangles: a list of the vertices each cluster uses, and triangles as @@ -91,6 +93,7 @@ const POSITION: usize = 0; const WEIGHTS: [usize; 2] = [16, 17]; const BONES: [usize; 2] = [20, 21]; const TEXCOORD: usize = 28; +const COLOUR: usize = 24; /// Most bones a skeleton has. const MAX_BONES: usize = 4096; @@ -428,26 +431,31 @@ impl<'a> Reader<'a> { } .ok_or_else(|| bad("positions that are no numbers"))?; - let (offset, size, encoding) = part(TEXCOORD); - let uvs: Vec<[f32; 2]> = match (size, encoding, within(offset, usize::from(size))) { - (8, 16, Some(at)) => data[at..at + vertices * 8] - .as_chunks::<8>() - .0 - .iter() - .map(|c| [f32::from_le_bytes([c[0], c[1], c[2], c[3]]), f32::from_le_bytes([c[4], c[5], c[6], c[7]])]) - .collect(), - (4, 38, Some(at)) => { - let scale = data.u32_at(124).map(f32::from_bits).filter(|s| s.is_finite()).unwrap_or(1.0); - let number = |a: u8, b: u8| (f32::from(i16::from_le_bytes([a, b])) / 32767.0).max(-1.0) * scale; - data[at..at + vertices * 4] - .as_chunks::<4>() + let coordinates = |slot: usize| -> Vec<[f32; 2]> { + let (offset, size, encoding) = part(slot); + match (size, encoding, within(offset, usize::from(size))) { + (8, 16, Some(at)) => data[at..at + vertices * 8] + .as_chunks::<8>() .0 .iter() - .map(|c| [number(c[0], c[1]), number(c[2], c[3])]) - .collect() + .map(|c| { + [f32::from_le_bytes([c[0], c[1], c[2], c[3]]), f32::from_le_bytes([c[4], c[5], c[6], c[7]])] + }) + .collect(), + (4, 38, Some(at)) => { + let scale = data.u32_at(124).map(f32::from_bits).filter(|s| s.is_finite()).unwrap_or(1.0); + let number = |a: u8, b: u8| (f32::from(i16::from_le_bytes([a, b])) / 32767.0).max(-1.0) * scale; + data[at..at + vertices * 4] + .as_chunks::<4>() + .0 + .iter() + .map(|c| [number(c[0], c[1]), number(c[2], c[3])]) + .collect() + } + _ => Vec::new(), } - _ => Vec::new(), }; + let (uvs, uvs1) = (coordinates(TEXCOORD), coordinates(TEXCOORD + 1)); let bytes = |slot: usize, size: usize, encoding: u8| -> Option<&[u8]> { let (offset, own_size, own_encoding) = part(slot); @@ -486,6 +494,8 @@ impl<'a> Reader<'a> { .into_iter() .unzip(); + let shading = bytes(COLOUR, 4, 28).map(|all| all.as_chunks::<4>().0.to_vec()).unwrap_or_default(); + let descriptor = self.s(geometry + 64, 16)?; let (index, stride) = self.buffer(self.s(descriptor, 64)?)?; if stride != 4 { @@ -493,7 +503,7 @@ impl<'a> Reader<'a> { } let indices = clusters(index, vertices)?; let normals = smooth_normals(&positions, &indices); - Ok(Mesh { positions, normals, uvs, indices, bone_indices, bone_weights, ..Default::default() }) + Ok(Mesh { positions, normals, uvs, uvs1, shading, indices, bone_indices, bone_weights, ..Default::default() }) } } diff --git a/crates/rage-formats/src/ttpf.rs b/crates/rage-formats/src/ttpf.rs index e81bdeb..423cd95 100644 --- a/crates/rage-formats/src/ttpf.rs +++ b/crates/rage-formats/src/ttpf.rs @@ -522,6 +522,16 @@ impl Pool { /// has that one level, of every slice of an array and every face of a /// cube map; its name is the texture's number. Volumes are not read. pub fn texture(&self, index: usize, max_side: Option) -> Result { + self.read(index, max_side, false) + } + + /// The same with the smaller mip levels that follow, down to four pixels, + /// if it is neither an array nor a cube map. + pub fn texture_with_mips(&self, index: usize, max_side: Option) -> Result { + self.read(index, max_side, true) + } + + fn read(&self, index: usize, max_side: Option, mips: bool) -> Result { let d = *self.descriptor(index).ok_or_else(|| invalid("no such texture"))?; if d.dimension == 3 { return Err(unsupported("a volume, which is not read yet")); @@ -554,12 +564,25 @@ impl Pool { let stored = self.read_range(slice_at(chosen, s), level.region)?; data.extend(layout.untile(level, &stored).ok_or_else(|| invalid("a mip level outside its allocation"))?); } + let mut levels = 1; + if mips && d.depth == 1 { + for i in chosen + 1..layout.levels.len() { + let next = &layout.levels[i]; + if next.pixels.0.min(next.pixels.1) < 4 || !readable(&i) { + break; + } + let stored = self.read_range(slice_at(i, 0), next.region)?; + let Some(rows) = layout.untile(next, &stored) else { break }; + data.extend(rows); + levels += 1; + } + } Ok(Texture { name: format!("{index:06}"), width: level.pixels.0, height: level.pixels.1, depth: d.depth, - levels: 1, + levels, format: Format(d.format), dimension: if d.dimension == 2 { Dimension::Cube } else { Dimension::Texture2D }, usage: 0, From 745648777cb8a5edc22f499d13b21e30f6af387e Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 19:27:57 +0100 Subject: [PATCH 29/31] Website: another picture at the top of the GTA VI page Co-Authored-By: Claude Opus 5.5 --- site/content/gta-vi.md | 3 ++- site/static/gta6/fly.webp | Bin 93462 -> 94898 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/site/content/gta-vi.md b/site/content/gta-vi.md index 8c7dc5c..2947976 100644 --- a/site/content/gta-vi.md +++ b/site/content/gta-vi.md @@ -20,7 +20,7 @@ status_intro = "What OpenRAGE reads today. Scripts (`.#script`), particle effect image = "gta6/fly.webp" width = 1100 height = 720 -alt = "OpenRAGE flying over the map of GTA VI: an elevated road junction, houses and the skyline behind" +alt = "OpenRAGE flying over the map of GTA VI at dusk: villas on an island, towers across the water and the settings for the time of day" [[extra.features]] icon = "🗺️" @@ -137,6 +137,7 @@ together with those around it. Interiors are not filled yet. **Fly (F)** flies through it: W A S D move, Q and E go down and up, Shift is faster, dragging looks around and the wheel sets the speed. In the whole map, details are loaded where the camera is, as the game's own levels of detail tell. +**View** beside it sets the time of day, brightness, haze, the sea, the field of view and how far details reach. ## Names diff --git a/site/static/gta6/fly.webp b/site/static/gta6/fly.webp index a1b5c2a0b9b8057b9aa4712af3b51224ff7605b0..ddcd6fa7d694a2abb1c99178518bcd5aab60bc15 100644 GIT binary patch literal 94898 zcmZs>V~{0Gu&&#-jhVKlZM&y!+qP}n*0gQgwr$(iTIW0a?)&G)&0iH!6%`d(Z)H~G zlS-0eVwFyyAnKyR3Tg_RMF0L9qclL|f>O&s%!Bds{fhZpNL+yCIl@Q;KHSviLl##C zc#(a%gW1o1mGiIx(69Z(efP(1YY?+eT4#5fVe>Eo4E^pK;BlLPu_0di&qMu01ymB{u0;&X7+vg ze*!PO*MXRq*gwWUlt5$~{crytzIFd$;O#3mz#Iq-1UByhfZKQBbN2%8eXc#b0vo{3 zR}diZCh!{^n6BBE11_ z9~VIQBmd@C>d*hp^)dJ0-_ds{;L>{r3jQy@ewaXbAo6D&_1&0%BX9@6@g#i>|6%_Ee9b%P zn*t63iGe^s+0ofY--rL2e-rQo&<6w#A=dyOfHgp4;M`B$fAf0<{&W5r07u_BzUqK?0PI2cYxSSGt^d}(M#ki3<-@p zL0+~#qfqHA>ojJ~gBG=&fm8#5M3+*}uv|+)+d9o-}Gah99oK`rpq}vW0t6nOdY|}xp~=zYnypD#Q-Ffw|^@ST>Jv0 zU0c+&`t*tj`22U=E(@&{g}pq?MVgm7wU|DTRPM%rEm)FHipKb4p*L#N{M{Jc56MpM zyYR~$4V`9@7IL%7uSD~1_hEYKY~?0?Ma9DJfB{03RMtASof$LwLeuYtOk|Yyav+te zrl@eZOibuOdfo$ zsQh?dSadl9yX4NY)RYa1X)q%SyF-|>yrc9{o8l%D`AI0N^45#9hr;Jjp)8-v*pwptIW4=fga-76-9MC z<*kZFK_QhZBzpcsEvx3%k)W>f8JR!PfIbJ!AFsubs+Nqtg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-!og From cc14b0e0f7fa6ea18a991389a459f8d7d69cc1c1 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 19:54:09 +0100 Subject: [PATCH 30/31] Release 0.6.0: version Co-Authored-By: Claude Opus 5.5 --- Cargo.toml | 2 +- docs/publishing.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9bc00e7..afd304c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "3" members = ["crates/*"] [workspace.package] -version = "0.5.0" +version = "0.6.0" edition = "2024" license = "GPL-3.0-only" repository = "https://github.com/Two-Play/openrage" diff --git a/docs/publishing.md b/docs/publishing.md index fba6895..89087a2 100644 --- a/docs/publishing.md +++ b/docs/publishing.md @@ -16,7 +16,7 @@ Each prepared crate has its own `README.md`, a `LICENSE` (a link to the workspace licence; `cargo package` copies the file), and, where code is derived from CodeWalker, a `NOTICE.md` with the MIT notice. -Workspace path dependencies carry `version = "0.5.0"`, so crates.io resolves +Workspace path dependencies carry `version = "0.6.0"`, so crates.io resolves them once the dependency is published. `cargo package` of a crate that depends on an unpublished workspace crate fails at "no matching package"; publish bottom-up (`rage-core`, `rage-crypto`, `rage-resource`, `rage-tfit2`, @@ -70,7 +70,7 @@ every caller in the CLI and GUI; that is left for later. * **Crate names.** `rage-*` names may be taken or confusing on crates.io; check availability (`cargo search rage-core`) or pick a prefix. -* **Version.** The crates share the workspace version (0.5.0). Independent +* **Version.** The crates share the workspace version (0.6.0). Independent versions per crate (and a 0.1.0 start) are an option. * **MSRV.** `rust-version = "1.99"` is the pinned toolchain, the only one checked. A lower MSRV (edition 2024 needs at least 1.85; the code uses From c8bf21ff3145ca76c84378782e04ce62fdb247b3 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 24 Nov 2026 19:55:04 +0100 Subject: [PATCH 31/31] Release 0.6.0: version of the workspace crates and the lock file Co-Authored-By: Claude Opus 5.5 --- Cargo.lock | 24 ++++++++++++------------ Cargo.toml | 16 ++++++++-------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7ed6b82..fc7c309 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3981,7 +3981,7 @@ dependencies = [ [[package]] name = "openrage-app" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "dirs", @@ -4004,7 +4004,7 @@ dependencies = [ [[package]] name = "openrage-cli" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "clap", @@ -4023,7 +4023,7 @@ dependencies = [ [[package]] name = "openrage-gui" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "arboard", @@ -4050,7 +4050,7 @@ dependencies = [ [[package]] name = "openrage-plugins" -version = "0.5.0" +version = "0.6.0" dependencies = [ "anyhow", "dirs", @@ -4535,11 +4535,11 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" [[package]] name = "rage-core" -version = "0.5.0" +version = "0.6.0" [[package]] name = "rage-crypto" -version = "0.5.0" +version = "0.6.0" dependencies = [ "aes", "flate2", @@ -4550,7 +4550,7 @@ dependencies = [ [[package]] name = "rage-formats" -version = "0.5.0" +version = "0.6.0" dependencies = [ "flate2", "lewton", @@ -4567,7 +4567,7 @@ dependencies = [ [[package]] name = "rage-index" -version = "0.5.0" +version = "0.6.0" dependencies = [ "flate2", "rage-core", @@ -4582,7 +4582,7 @@ dependencies = [ [[package]] name = "rage-mods" -version = "0.5.0" +version = "0.6.0" dependencies = [ "rage-crypto", "rage-rpf", @@ -4590,7 +4590,7 @@ dependencies = [ [[package]] name = "rage-resource" -version = "0.5.0" +version = "0.6.0" dependencies = [ "flate2", "thiserror 2.0.21", @@ -4598,7 +4598,7 @@ dependencies = [ [[package]] name = "rage-rpf" -version = "0.5.0" +version = "0.6.0" dependencies = [ "flate2", "memchr", @@ -4614,7 +4614,7 @@ dependencies = [ [[package]] name = "rage-tfit2" -version = "0.5.0" +version = "0.6.0" [[package]] name = "rand" diff --git a/Cargo.toml b/Cargo.toml index afd304c..de977b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,14 +13,14 @@ authors = ["OpenRAGE contributors"] rust-version = "1.99" [workspace.dependencies] -rage-core = { path = "crates/rage-core", version = "0.5.0" } -rage-crypto = { path = "crates/rage-crypto", version = "0.5.0" } -rage-tfit2 = { path = "crates/rage-tfit2", version = "0.5.0" } -rage-rpf = { path = "crates/rage-rpf", version = "0.5.0", features = ["rdr2"] } -rage-index = { path = "crates/rage-index", version = "0.5.0" } -rage-mods = { path = "crates/rage-mods", version = "0.5.0" } -rage-resource = { path = "crates/rage-resource", version = "0.5.0" } -rage-formats = { path = "crates/rage-formats", version = "0.5.0" } +rage-core = { path = "crates/rage-core", version = "0.6.0" } +rage-crypto = { path = "crates/rage-crypto", version = "0.6.0" } +rage-tfit2 = { path = "crates/rage-tfit2", version = "0.6.0" } +rage-rpf = { path = "crates/rage-rpf", version = "0.6.0", features = ["rdr2"] } +rage-index = { path = "crates/rage-index", version = "0.6.0" } +rage-mods = { path = "crates/rage-mods", version = "0.6.0" } +rage-resource = { path = "crates/rage-resource", version = "0.6.0" } +rage-formats = { path = "crates/rage-formats", version = "0.6.0" } aes = "0.8" anyhow = "1"