From a1a3704f1b486a4204fa45b3c62d2720c3e7ff5d Mon Sep 17 00:00:00 2001 From: theMackabu Date: Mon, 23 Sep 2024 19:09:30 -0700 Subject: [PATCH] upgrade docs to scalar UI --- Cargo.lock | 12 - Cargo.toml | 1 - src/daemon/api/docs.rs | 19 + src/daemon/api/docs/index.html | 25 - src/daemon/api/mod.rs | 58 +- src/daemon/api/routes.rs | 18 +- src/daemon/static/index.html | 14 + src/daemon/static/scalar.js | 28469 ++++++++++++++++++++++++ src/daemon/static/style.css | 12 + src/webui/mod.rs | 1 + src/webui/src/components/navbar.astro | 2 +- src/webui/src/pages/docs.astro | 13 + src/webui/src/styles.css | 15 + 13 files changed, 28581 insertions(+), 78 deletions(-) create mode 100644 src/daemon/api/docs.rs delete mode 100644 src/daemon/api/docs/index.html create mode 100644 src/daemon/static/index.html create mode 100644 src/daemon/static/scalar.js create mode 100644 src/daemon/static/style.css create mode 100644 src/webui/src/pages/docs.astro diff --git a/Cargo.lock b/Cargo.lock index 02a6bb8..0385997 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1847,7 +1847,6 @@ dependencies = [ "toml", "update-informer", "utoipa", - "utoipa-rapidoc", "utoipa-swagger-ui", ] @@ -3267,17 +3266,6 @@ dependencies = [ "syn 2.0.74", ] -[[package]] -name = "utoipa-rapidoc" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d331839f6de584865f20c8138b73868d515ba62349ae4c8c1f78ffa54069e78" -dependencies = [ - "serde", - "serde_json", - "utoipa", -] - [[package]] name = "utoipa-swagger-ui" version = "5.0.0" diff --git a/Cargo.toml b/Cargo.toml index 48984c3..c4fc3d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,6 @@ prometheus = "0.13.4" include_dir = "0.7.4" serde_json = "1.0.125" simple-logging = "2.0.2" -utoipa-rapidoc = "2.0.0" update-informer = "1.1.0" pretty_env_logger = "0.5.0" utoipa-swagger-ui = "5.0.0" diff --git a/src/daemon/api/docs.rs b/src/daemon/api/docs.rs new file mode 100644 index 0000000..847ce44 --- /dev/null +++ b/src/daemon/api/docs.rs @@ -0,0 +1,19 @@ +use pmc::config; +use std::borrow::Cow; + +const INDEX: &str = include_str!("../static/index.html"); + +#[derive(Clone)] +pub struct Docs { + html: Cow<'static, str>, + s_path: String, +} + +impl Docs { + pub fn new() -> Self { + let s_path = config::read().get_path().trim_end_matches('/').to_string(); + Self { s_path, html: Cow::Borrowed(INDEX) } + } + + pub fn render(&self) -> String { self.html.replace("$s_path", &self.s_path) } +} diff --git a/src/daemon/api/docs/index.html b/src/daemon/api/docs/index.html deleted file mode 100644 index ec1f2f8..0000000 --- a/src/daemon/api/docs/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - diff --git a/src/daemon/api/mod.rs b/src/daemon/api/mod.rs index 9f4935c..99b7005 100644 --- a/src/daemon/api/mod.rs +++ b/src/daemon/api/mod.rs @@ -1,20 +1,20 @@ +mod docs; mod fairing; mod helpers; mod routes; mod structs; use crate::webui::{self, assets::NamedFile}; -use helpers::create_status; +use helpers::{create_status, NotFound}; use include_dir::{include_dir, Dir}; use lazy_static::lazy_static; -use macros_rs::fmtstr; use pmc::{config, process}; use prometheus::{opts, register_counter, register_gauge, register_histogram, register_histogram_vec}; use prometheus::{Counter, Gauge, Histogram, HistogramVec}; use serde_json::{json, Value}; use std::sync::atomic::{AtomicBool, Ordering}; use structs::ErrorMessage; -use utoipa_rapidoc::RapiDoc; +use tera::Context; use utoipa::{ openapi::security::{ApiKey, ApiKeyValue, SecurityScheme}, @@ -27,6 +27,7 @@ use rocket::{ outcome::Outcome, request::{self, FromRequest, Request}, serde::json::Json, + State, }; lazy_static! { @@ -40,16 +41,6 @@ lazy_static! { #[derive(OpenApi)] #[openapi( modifiers(&SecurityAddon), - servers( - (url = "{ssl}://{address}:{port}/{path}", description = "Remote API", - variables( - ("ssl" = (default = "http", enum_values("http", "https"))), - ("address" = (default = "localhost", description = "Address for API")), - ("port" = (default = "5630", description = "Port for API")), - ("path" = (default = "", description = "Path for API")) - ) - ) - ), paths( routes::action_handler, routes::env_handler, @@ -176,10 +167,12 @@ pub async fn start(webui: bool) { let s_path = config::read().get_path().trim_end_matches('/').to_string(); let routes = rocket::routes![ - docs, + embed, + scalar, health, - assets, docs_json, + static_assets, + dynamic_assets, routes::login, routes::servers, routes::dashboard, @@ -222,26 +215,37 @@ pub async fn start(webui: bool) { } } +async fn render(name: &str, state: &State, ctx: &mut Context) -> Result { + ctx.insert("base_path", &state.path); + ctx.insert("build_version", env!("CARGO_PKG_VERSION")); + + state.tera.render(name, &ctx).or(Err(helpers::not_found("Page was not found"))) +} + #[rocket::get("/assets/")] -pub async fn assets(name: String) -> Option { +async fn dynamic_assets(name: String) -> Option { static DIR: Dir = include_dir!("src/webui/dist/assets"); let file = DIR.get_file(&name)?; NamedFile::send(name, file.contents_utf8()).await.ok() } -#[rocket::get("/docs")] -pub async fn docs() -> (ContentType, String) { - const DOCS: &str = include_str!("docs/index.html"); - - let s_path = config::read().get_path().trim_end_matches('/').to_string(); - let docs_path = fmtstr!("{}/docs.json", s_path); +#[rocket::get("/static/")] +async fn static_assets(name: String) -> Option { + static DIR: Dir = include_dir!("src/daemon/static"); + let file = DIR.get_file(&name)?; - (ContentType::HTML, RapiDoc::new(docs_path).custom_html(DOCS).to_html()) + NamedFile::send(name, file.contents_utf8()).await.ok() } -#[rocket::get("/health")] -pub async fn health() -> Value { json!({"healthy": true}) } +#[rocket::get("/openapi.json")] +async fn docs_json() -> Value { json!(ApiDoc::openapi()) } + +#[rocket::get("/docs/embed")] +async fn embed() -> (ContentType, String) { (ContentType::HTML, docs::Docs::new().render()) } -#[rocket::get("/docs.json")] -pub async fn docs_json() -> Value { json!(ApiDoc::openapi()) } +#[rocket::get("/docs")] +async fn scalar(state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { Ok((ContentType::HTML, render("docs", &state, &mut Context::new()).await?)) } + +#[rocket::get("/health")] +async fn health() -> Value { json!({"healthy": true}) } diff --git a/src/daemon/api/routes.rs b/src/daemon/api/routes.rs index 556a886..48021c0 100644 --- a/src/daemon/api/routes.rs +++ b/src/daemon/api/routes.rs @@ -20,6 +20,7 @@ use rocket::{ use super::{ helpers::{generic_error, not_found, GenericError, NotFound}, + render, structs::ErrorMessage, EnableWebUI, TeraState, }; @@ -156,34 +157,27 @@ fn attempt(done: bool, method: &str) -> ActionResponse { } } -fn render(name: &str, state: &State, ctx: &mut Context) -> Result { - ctx.insert("base_path", &state.path); - ctx.insert("build_version", env!("CARGO_PKG_VERSION")); - - state.tera.render(name, &ctx).or(Err(not_found("Page was not found"))) -} - #[get("/")] -pub async fn dashboard(state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { Ok((ContentType::HTML, render("dashboard", &state, &mut Context::new())?)) } +pub async fn dashboard(state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { Ok((ContentType::HTML, render("dashboard", &state, &mut Context::new()).await?)) } #[get("/servers")] -pub async fn servers(state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { Ok((ContentType::HTML, render("servers", &state, &mut Context::new())?)) } +pub async fn servers(state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { Ok((ContentType::HTML, render("servers", &state, &mut Context::new()).await?)) } #[get("/login")] -pub async fn login(state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { Ok((ContentType::HTML, render("login", &state, &mut Context::new())?)) } +pub async fn login(state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { Ok((ContentType::HTML, render("login", &state, &mut Context::new()).await?)) } #[get("/view/")] pub async fn view_process(id: usize, state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { let mut ctx = Context::new(); ctx.insert("process_id", &id); - Ok((ContentType::HTML, render("view", &state, &mut ctx)?)) + Ok((ContentType::HTML, render("view", &state, &mut ctx).await?)) } #[get("/status/")] pub async fn server_status(name: String, state: &State, _webui: EnableWebUI) -> Result<(ContentType, String), NotFound> { let mut ctx = Context::new(); ctx.insert("server_name", &name); - Ok((ContentType::HTML, render("status", &state, &mut ctx)?)) + Ok((ContentType::HTML, render("status", &state, &mut ctx).await?)) } #[get("/daemon/prometheus")] diff --git a/src/daemon/static/index.html b/src/daemon/static/index.html new file mode 100644 index 0000000..52fb69c --- /dev/null +++ b/src/daemon/static/index.html @@ -0,0 +1,14 @@ + + + + + PMC - API Docs + + + + + +
+ + + diff --git a/src/daemon/static/scalar.js b/src/daemon/static/scalar.js new file mode 100644 index 0000000..ef37e72 --- /dev/null +++ b/src/daemon/static/scalar.js @@ -0,0 +1,28469 @@ +/** + * _____ _________ __ ___ ____ + * / ___// ____/ | / / / | / __ \ + * \__ \/ / / /| | / / / /| | / /_/ / + * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/ + * /____/\____/_/ |_/_____/_/ |_/_/ |_| + * + * @scalar/api-reference 1.25.17-pmc + * license: https://github.com/scalar/scalar/blob/main/LICENSE +**/ + +!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){ +"use strict";var e,t,n=Object.defineProperty,r=(e,t,r)=>((e,t,r)=>t in e?n(e,t,{ +enumerable:!0,configurable:!0,writable:!0,value:r +}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function o(e,t={},n){ +for(const r in e){const i=e[r],a=n?`${n}:${r}`:r +;"object"==typeof i&&null!==i?o(i,t,a):"function"==typeof i&&(t[a]=i)}return t} +const i={run:e=>e()},a=void 0!==console.createTask?console.createTask:()=>i +;function s(e,t){const n=t.shift(),r=a(n) +;return e.reduce(((e,n)=>e.then((()=>r.run((()=>n(...t)))))),Promise.resolve())} +function l(e,t){const n=t.shift(),r=a(n) +;return Promise.all(e.map((e=>r.run((()=>e(...t))))))}function c(e,t){ +for(const n of[...e])n(t)}class u{constructor(){ +this._hooks={},this._before=void 0, +this._after=void 0,this._deprecatedMessages=void 0, +this._deprecatedHooks={},this.hook=this.hook.bind(this), +this.callHook=this.callHook.bind(this), +this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){ +if(!e||"function"!=typeof t)return()=>{};const r=e;let o +;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to +;if(o&&!n.allowDeprecated){let e=o.message +;e||(e=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")), +this._deprecatedMessages||(this._deprecatedMessages=new Set), +this._deprecatedMessages.has(e)||(console.warn(e), +this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{ +get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{} +return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{ +t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){ +let n,r=(...e)=>("function"==typeof n&&n(),n=void 0,r=void 0,t(...e)) +;return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){ +const n=this._hooks[e].indexOf(t) +;-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e] +}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t +;const n=this._hooks[e]||[];delete this._hooks[e] +;for(const r of n)this.hook(e,r)}deprecateHooks(e){ +Object.assign(this._deprecatedHooks,e) +;for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){ +const t=o(e),n=Object.keys(t).map((e=>this.hook(e,t[e])));return()=>{ +for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=o(e) +;for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){ +for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){ +return t.unshift(e),this.callHookWith(s,e,...t)}callHookParallel(e,...t){ +return t.unshift(e),this.callHookWith(l,e,...t)}callHookWith(e,t,...n){ +const r=this._before||this._after?{name:t,args:n,context:{}}:void 0 +;this._before&&c(this._before,r) +;const o=e(t in this._hooks?[...this._hooks[t]]:[],n) +;return o instanceof Promise?o.finally((()=>{this._after&&r&&c(this._after,r) +})):(this._after&&r&&c(this._after,r),o)}beforeEach(e){ +return this._before=this._before||[],this._before.push(e),()=>{ +if(void 0!==this._before){const t=this._before.indexOf(e) +;-1!==t&&this._before.splice(t,1)}}}afterEach(e){ +return this._after=this._after||[],this._after.push(e),()=>{ +if(void 0!==this._after){const t=this._after.indexOf(e) +;-1!==t&&this._after.splice(t,1)}}}} +const d=["title","titleTemplate","script","style","noscript"],p=["base","meta","link","style","script","noscript"],h=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],f=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],m=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],g="undefined"!=typeof window +;function v(e){let t=9 +;for(let n=0;n>>9)).toString(16).substring(1,8).toLowerCase()} +function b(e){ +return e._h||v(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map((([e,t])=>`${e}:${String(t)}`)).join(",")}`) +}function O(e,t){const{props:n,tag:r}=e;if(f.includes(r))return r +;if("link"===r&&"canonical"===n.rel)return"canonical" +;if(n.charset)return"charset";const o=["id"] +;"meta"===r&&o.push("name","property","http-equiv") +;for(const i of o)if(void 0!==n[i]){return`${r}:${i}:${String(n[i])}`}return!1} +function y(e,t){return null==e?t||null:"function"==typeof e?e(t):e} +function w(e,t){ +const n=[],r=t.resolveKeyData||(e=>e.key),o=t.resolveValueData||(e=>e.value) +;for(const[i,a]of Object.entries(e))n.push(...(Array.isArray(a)?a:[a]).map((e=>{ +const n={key:i,value:e},a=o(n) +;return"object"==typeof a?w(a,t):Array.isArray(a)?a:{ +["function"==typeof t.key?t.key(n):t.key]:r(n), +["function"==typeof t.value?t.value(n):t.value]:a}})).flat());return n} +function x(e,t){return Object.entries(e).map((([e,n])=>{ +if("object"==typeof n&&(n=x(n,t)),t.resolve){const r=t.resolve({key:e,value:n}) +;if(void 0!==r)return r} +return"number"==typeof n&&(n=n.toString()),"string"==typeof n&&t.wrapValue&&(n=n.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`), +n=`${t.wrapValue}${n}${t.wrapValue}`),`${e}${t.keyValueSeparator||""}${n}` +})).join(t.entrySeparator||"")}const k=e=>({keyValue:e,metaKey:"property" +}),S=e=>({keyValue:e}),_={appleItunesApp:{unpack:{entrySeparator:", ", +resolve:({key:e,value:t})=>`${C(e)}=${t}`}}, +articleExpirationTime:k("article:expiration_time"), +articleModifiedTime:k("article:modified_time"), +articlePublishedTime:k("article:published_time"), +bookReleaseDate:k("book:release_date"),charset:{metaKey:"charset"}, +contentSecurityPolicy:{unpack:{entrySeparator:"; ", +resolve:({key:e,value:t})=>`${C(e)} ${t}`},metaKey:"http-equiv"},contentType:{ +metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"}, +fbAppId:k("fb:app_id"),msapplicationConfig:S("msapplication-Config"), +msapplicationTileColor:S("msapplication-TileColor"), +msapplicationTileImage:S("msapplication-TileImage"), +ogAudioSecureUrl:k("og:audio:secure_url"),ogAudioUrl:k("og:audio"), +ogImageSecureUrl:k("og:image:secure_url"),ogImageUrl:k("og:image"), +ogSiteName:k("og:site_name"),ogVideoSecureUrl:k("og:video:secure_url"), +ogVideoUrl:k("og:video"),profileFirstName:k("profile:first_name"), +profileLastName:k("profile:last_name"),profileUsername:k("profile:username"), +refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";", +resolve({key:e,value:t}){if("seconds"===e)return`${t}`}}},robots:{unpack:{ +entrySeparator:", ", +resolve:({key:e,value:t})=>"boolean"==typeof t?`${C(e)}`:`${C(e)}:${t}`}}, +xUaCompatible:{metaKey:"http-equiv"}},E=["og","book","article","profile"] +;function T(e){var t;const n=C(e).split(":")[0] +;return E.includes(n)?"property":(null==(t=_[e])?void 0:t.metaKey)||"name"} +function C(e){ +const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0] +;return E.includes(n)||"twitter"===n?e.replace(/([A-Z])/g,":$1").toLowerCase():t +}function A(e){if(Array.isArray(e))return e.map((e=>A(e))) +;if("object"!=typeof e||Array.isArray(e))return e;const t={} +;for(const[n,r]of Object.entries(e))t[C(n)]=A(r);return t}function P(e,t){ +const n=_[t];return"refresh"===t?`${e.seconds};url=${e.url}`:x(A(e),{ +keyValueSeparator:"=",entrySeparator:", ", +resolve:({value:e,key:t})=>null===e?"":"boolean"==typeof e?`${t}`:void 0, +...null==n?void 0:n.unpack})} +const D=["og:image","og:video","og:audio","twitter:image"];function $(e){ +const t={};return Object.entries(e).forEach((([e,n])=>{ +"false"!==String(n)&&e&&(t[e]=n)})),t}function R(e,t){const n=$(t),r=C(e),o=T(r) +;if(D.includes(r)){const t={};return Object.entries(n).forEach((([n,r])=>{ +t[`${e}${"url"===n?"":`${n.charAt(0).toUpperCase()}${n.slice(1)}`}`]=r +})),N(t).sort(((e,t)=>{var n,r +;return((null==(n=e[o])?void 0:n.length)||0)-((null==(r=t[o])?void 0:r.length)||0) +}))}return[{[o]:r,...n}]}function N(e){const t=[],n={} +;Object.entries(e).forEach((([e,r])=>{if(Array.isArray(r))r.forEach((n=>{ +t.push(..."string"==typeof n?N({[e]:n}):R(e,n)) +}));else if("object"==typeof r&&r){ +if(D.includes(C(e)))return void t.push(...R(e,r));n[e]=$(r)}else n[e]=r})) +;const r=w(n,{key:({key:e})=>T(e), +value:({key:e})=>"charset"===e?"charset":"content", +resolveKeyData:({key:e})=>function(e){var t +;return(null==(t=_[e])?void 0:t.keyValue)||C(e)}(e), +resolveValueData:({value:e,key:t})=>null===e?"_null":"object"==typeof e?P(e,t):"number"==typeof e?e.toString():e +});return[...t,...r].map((e=>("_null"===e.content&&(e.content=null),e)))} +function I(e,t){var n;const r="class"===e?" ":";" +;return"object"!=typeof t||Array.isArray(t)||(t=Object.entries(t).filter((([,e])=>e)).map((([t,n])=>"style"===e?`${t}:${n}`:t))), +null==(n=String(Array.isArray(t)?t.join(r):t))?void 0:n.split(r).filter((e=>e.trim())).filter(Boolean).join(r) +}async function M(e,t){ +for(const n of Object.keys(e))if(["class","style"].includes(n))e[n]=I(n,e[n]);else if(e[n]instanceof Promise&&(e[n]=await e[n]), +!t&&!m.includes(n)){const t=String(e[n]),r=n.startsWith("data-") +;"true"===t||""===t?e[n]=!r||"true":e[n]||(r&&"false"===t?e[n]="false":delete e[n]) +}return e}const L=10;async function B(e){const t=[] +;return Object.entries(e.resolvedInput).filter((([e,t])=>void 0!==t&&h.includes(e))).forEach((([n,r])=>{ +const o=function(e){return Array.isArray(e)?e:[e]}(r) +;t.push(...o.map((t=>async function(e,t,n){const r={tag:e, +props:await M("object"!=typeof t||"function"==typeof t||t instanceof Promise?{ +[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t}:{...t +},["templateParams","titleTemplate"].includes(e))};return m.forEach((e=>{ +const t=void 0!==r.props[e]?r.props[e]:n[e] +;void 0!==t&&(["innerHTML","textContent","children"].includes(e)&&!d.includes(r.tag)||(r["children"===e?"innerHTML":e]=t), +delete r.props[e]) +})),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body), +"script"===r.tag&&"object"==typeof r.innerHTML&&(r.innerHTML=JSON.stringify(r.innerHTML), +r.props.type=r.props.type||"application/json"), +Array.isArray(r.props.content)?r.props.content.map((e=>({...r,props:{...r.props, +content:e}}))):r}(n,t,e))).flat()) +})),(await Promise.all(t)).flat().filter(Boolean).map(((t,n)=>(t._e=e._i, +e.mode&&(t._m=e.mode),t._p=(e._i<{ +const r=function(e){let n +;return n=["s","pageTitle"].includes(e)?t.pageTitle:e.includes(".")?e.split(".").reduce(((e,t)=>e&&e[t]||void 0),t):t[e], +void 0!==n&&(n||"").replace(/"/g,'\\"')}(n.slice(1)) +;"string"==typeof r&&(e=e.replace(new RegExp(`\\${n}(\\W|$)`,"g"),((e,t)=>`${r}${t}`)).trim()) +})), +e.includes(z)&&(e.endsWith(z)&&(e=e.slice(0,-10).trim()),e.startsWith(z)&&(e=e.slice(10).trim()), +e=H(e=e.replace(new RegExp(`\\${z}\\s*\\${z}`,"g"),z),{separator:n},n)),e} +async function Z(e,t={}){const n=t.delayFn||(e=>setTimeout(e,10)) +;return e._domUpdatePromise=e._domUpdatePromise||new Promise((r=>n((async()=>{ +await async function(e,t={}){var n +;const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const o={ +shouldRender:!0,tags:[]} +;if(await e.hooks.callHook("dom:beforeRender",o),!o.shouldRender)return +;const i=(await e.resolveTags()).map((e=>({tag:e, +id:p.includes(e.tag)?b(e):e.tag,shouldRender:!0})));let a=e._dom;if(!a){a={ +elMap:{htmlAttrs:r.documentElement,bodyAttrs:r.body}} +;for(const e of["body","head"]){const t=null==(n=r[e])?void 0:n.children,o=[] +;for(const e of[...t].filter((e=>p.includes(e.tagName.toLowerCase())))){ +const t={tag:e.tagName.toLowerCase(), +props:await M(e.getAttributeNames().reduce(((t,n)=>({...t,[n]:e.getAttribute(n) +})),{})),innerHTML:e.innerHTML};let n=1,r=O(t) +;for(;r&&o.find((e=>e._d===r));)r=`${r}:${n++}` +;t._d=r||void 0,o.push(t),a.elMap[e.getAttribute("data-hid")||b(t)]=e}}} +function s(e,t,n){const r=`${e}:${t}` +;a.sideEffects[r]=n,delete a.pendingSideEffects[r]} +function l({id:e,$el:t,tag:n}){const o=n.tag.endsWith("Attrs") +;a.elMap[e]=t,o||(["textContent","innerHTML"].forEach((e=>{ +n[e]&&n[e]!==t[e]&&(t[e]=n[e])})),s(e,"el",(()=>{var t +;null==(t=a.elMap[e])||t.remove(),delete a.elMap[e]}))) +;for(const[i,a]of Object.entries(n._eventHandlers||{}))""!==t.getAttribute(`data-${i}`)&&(("bodyAttrs"===n.tag?r.defaultView:t).addEventListener(i.replace("on",""),a.bind(t)), +t.setAttribute(`data-${i}`,""));Object.entries(n.props).forEach((([n,r])=>{ +const i=`attr:${n}` +;if("class"===n)for(const a of(r||"").split(" ").filter(Boolean))o&&s(e,`${i}:${a}`,(()=>t.classList.remove(a))), +!t.classList.contains(a)&&t.classList.add(a);else if("style"===n)for(const o of(r||"").split(";").filter(Boolean)){ +const[n,...r]=o.split(":").map((e=>e.trim()));s(e,`${i}:${o}:${n}`,(()=>{ +t.style.removeProperty(n)})),t.style.setProperty(n,r.join(":")) +}else t.getAttribute(n)!==r&&t.setAttribute(n,!0===r?"":String(r)), +o&&s(e,i,(()=>t.removeAttribute(n)))}))}a.pendingSideEffects={ +...a.sideEffects||{}},a.sideEffects={};const c=[],u={bodyClose:void 0, +bodyOpen:void 0,head:void 0};for(const d of i){ +const{tag:e,shouldRender:t,id:n}=d;t&&("title"!==e.tag?(d.$el=d.$el||a.elMap[n], +d.$el?l(d):p.includes(e.tag)&&c.push(d)):r.title=e.textContent)} +for(const d of c){const e=d.tag.tagPosition||"head" +;d.$el=r.createElement(d.tag.tag), +l(d),u[e]=u[e]||r.createDocumentFragment(),u[e].appendChild(d.$el)} +for(const d of i)await e.hooks.callHook("dom:renderTag",d,r,s) +;u.head&&r.head.appendChild(u.head), +u.bodyOpen&&r.body.insertBefore(u.bodyOpen,r.body.firstChild), +u.bodyClose&&r.body.appendChild(u.bodyClose), +Object.values(a.pendingSideEffects).forEach((e=>e())), +e._dom=a,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:i}) +}(e,t),delete e._domUpdatePromise,r()}))))}function V(e){return t=>{var n,r +;const o=(null==(r=null==(n=t.resolvedOptions.document)?void 0:n.head.querySelector('script[id="unhead:payload"]'))?void 0:r.innerHTML)||!1 +;return o&&t.push(JSON.parse(o)),{mode:"client",hooks:{ +"entries:updated":function(t){Z(t,e)}}}}} +const W=["templateParams","htmlAttrs","bodyAttrs"],X={hooks:{ +"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach((t=>{ +e.props[t]&&(e.key=e.props[t],delete e.props[t])})) +;const t=O(e)||!!e.key&&`${e.tag}:${e.key}`;t&&(e._d=t)}, +"tags:resolve":function(e){const t={};e.tags.forEach((e=>{ +const n=(e.key?`${e.tag}:${e.key}`:e._d)||e._p,r=t[n];if(r){ +let o=null==e?void 0:e.tagDuplicateStrategy +;if(!o&&W.includes(e.tag)&&(o="merge"),"merge"===o){const o=r.props +;return["class","style"].forEach((t=>{ +o[t]&&(e.props[t]?("style"!==t||o[t].endsWith(";")||(o[t]+=";"), +e.props[t]=`${o[t]} ${e.props[t]}`):e.props[t]=o[t])})),void(t[n].props={...o, +...e.props})} +if(e._e===r._e)return r._duped=r._duped||[],e._d=`${r._d}:${r._duped.length+1}`, +void r._duped.push(e);if(U(e)>U(r))return} +const o=Object.keys(e.props).length+(e.innerHTML?1:0)+(e.textContent?1:0) +;p.includes(e.tag)&&0===o?delete t[n]:t[n]=e}));const n=[] +;Object.values(t).forEach((e=>{const t=e._duped +;delete e._duped,n.push(e),t&&n.push(...t) +})),e.tags=n,e.tags=e.tags.filter((e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content))) +}}},Y={mode:"server",hooks:{"tags:resolve":function(e){const t={} +;e.tags.filter((e=>["titleTemplate","templateParams","title"].includes(e.tag)&&"server"===e._m)).forEach((e=>{ +t[e.tag]=e.tag.startsWith("title")?e.textContent:e.props +})),Object.keys(t).length&&e.tags.push({tag:"script", +innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"} +})}}},G=["script","link","bodyAttrs"],K=e=>({hooks:{"tags:resolve":function(t){ +for(const n of t.tags.filter((e=>G.includes(e.tag))))Object.entries(n.props).forEach((([t,r])=>{ +t.startsWith("on")&&"function"==typeof r&&(e.ssr&&q.includes(t)?n.props[t]=`this.dataset.${t}fired = true`:delete n.props[t], +n._eventHandlers=n._eventHandlers||{},n._eventHandlers[t]=r) +})),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||v(n.props.src||n.props.href)) +},"dom:renderTag":function({$el:e,tag:t}){var n,r +;for(const o of Object.keys((null==e?void 0:e.dataset)||{}).filter((e=>q.some((t=>`${t}fired`===e))))){ +const i=o.replace("fired","") +;null==(r=null==(n=t._eventHandlers)?void 0:n[i])||r.call(e,new Event(i.replace("on",""))) +}}}}),J=["link","style","script","noscript"],ee={hooks:{ +"tag:normalise":({tag:e})=>{ +e.key&&J.includes(e.tag)&&(e.props["data-hid"]=e._h=v(e.key))}}},te={hooks:{ +"tags:resolve":e=>{const t=t=>{var n +;return null==(n=e.tags.find((e=>e._d===t)))?void 0:n._p} +;for(const{prefix:n,offset:r}of F)for(const o of e.tags.filter((e=>"string"==typeof e.tagPriority&&e.tagPriority.startsWith(n)))){ +const e=t(o.tagPriority.replace(n,""));void 0!==e&&(o._p=e+r)} +e.tags.sort(((e,t)=>e._p-t._p)).sort(((e,t)=>U(e)-U(t)))}}},ne={meta:"content", +link:"href",htmlAttrs:"lang"},re=e=>({hooks:{"tags:resolve":t=>{var n +;const{tags:r}=t,o=null==(n=r.find((e=>"title"===e.tag)))?void 0:n.textContent,i=r.findIndex((e=>"templateParams"===e.tag)),a=-1!==i?r[i].props:{},s=a.separator||"|" +;delete a.separator,a.pageTitle=H(a.pageTitle||o||"",a,s) +;for(const e of r.filter((e=>!1!==e.processTemplateParams))){const t=ne[e.tag] +;t&&"string"==typeof e.props[t]?e.props[t]=H(e.props[t],a,s):(!0===e.processTemplateParams||["titleTemplate","title"].includes(e.tag))&&["innerHTML","textContent"].forEach((t=>{ +"string"==typeof e[t]&&(e[t]=H(e[t],a,s))}))}e._templateParams=a,e._separator=s, +t.tags=r.filter((e=>"templateParams"!==e.tag))}}}),oe={hooks:{ +"tags:resolve":e=>{const{tags:t}=e +;let n=t.findIndex((e=>"titleTemplate"===e.tag)) +;const r=t.findIndex((e=>"title"===e.tag));if(-1!==r&&-1!==n){ +const e=y(t[n].textContent,t[r].textContent) +;null!==e?t[r].textContent=e||t[r].textContent:delete t[r]}else if(-1!==n){ +const e=y(t[n].textContent);null!==e&&(t[n].textContent=e,t[n].tag="title",n=-1) +}-1!==n&&delete t[n],e.tags=t.filter(Boolean)}}},ie={hooks:{ +"tags:afterResolve":function(e){ +for(const t of e.tags)"string"==typeof t.innerHTML&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{s.dirty=!0,t.callHook("entries:updated",s)} +;let o=0,i=[];const a=[],s={plugins:a,dirty:!1,resolvedOptions:e,hooks:t, +headEntries:()=>i,use(e){const r="function"==typeof e?e(s):e +;r.key&&a.some((e=>e.key===r.key))||(a.push(r), +le(r.mode,n)&&t.addHooks(r.hooks||{}))},push(e,a){null==a||delete a.head +;const l={_i:o++,input:e,...a};return le(l.mode,n)&&(i.push(l),r()),{dispose(){ +i=i.filter((e=>e._i!==l._i)),t.callHook("entries:updated",s),r()},patch(e){ +i=i.map((t=>(t._i===l._i&&(t.input=l.input=e),t))),r()}}},async resolveTags(){ +const e={tags:[],entries:[...i]};await t.callHook("entries:resolve",e) +;for(const n of e.entries){const r=n.resolvedInput||n.input +;if(n.resolvedInput=await(n.transform?n.transform(r):r), +n.resolvedInput)for(const o of await B(n)){const r={tag:o,entry:n, +resolvedOptions:s.resolvedOptions} +;await t.callHook("tag:normalise",r),e.tags.push(r.tag)}} +return await t.callHook("tags:beforeResolve",e), +await t.callHook("tags:resolve",e), +await t.callHook("tags:afterResolve",e),e.tags},ssr:n} +;return[X,Y,K,ee,te,re,oe,ie,...(null==e?void 0:e.plugins)||[]].forEach((e=>s.use(e))), +s.hooks.callHook("init",s),s}(e);return t.use(V()),ae=t}function le(e,t){ +return!e||"server"===e&&t||"client"===e&&!t} +/** + * @vue/shared v3.4.31 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **/ +/*! #__NO_SIDE_EFFECTS__ */ +function ce(e,t){const n=new Set(e.split(","));return e=>n.has(e)} +const ue={},de=[],pe=()=>{},he=()=>!1,fe=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),me=e=>e.startsWith("onUpdate:"),ge=Object.assign,ve=(e,t)=>{ +const n=e.indexOf(t);n>-1&&e.splice(n,1) +},be=Object.prototype.hasOwnProperty,Oe=(e,t)=>be.call(e,t),ye=Array.isArray,we=e=>"[object Map]"===Pe(e),xe=e=>"[object Set]"===Pe(e),ke=e=>"[object Date]"===Pe(e),Se=e=>"function"==typeof e,_e=e=>"string"==typeof e,Ee=e=>"symbol"==typeof e,Te=e=>null!==e&&"object"==typeof e,Ce=e=>(Te(e)||Se(e))&&Se(e.then)&&Se(e.catch),Ae=Object.prototype.toString,Pe=e=>Ae.call(e),De=e=>Pe(e).slice(8,-1),$e=e=>"[object Object]"===Pe(e),Re=e=>_e(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Ne=ce(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ie=e=>{ +const t=Object.create(null);return n=>t[n]||(t[n]=e(n)) +},Me=/-(\w)/g,Le=Ie((e=>e.replace(Me,((e,t)=>t?t.toUpperCase():"")))),Be=/\B([A-Z])/g,Qe=Ie((e=>e.replace(Be,"-$1").toLowerCase())),je=Ie((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ue=Ie((e=>e?`on${je(e)}`:"")),Fe=(e,t)=>!Object.is(e,t),qe=(e,...t)=>{ +for(let n=0;n{ +Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n}) +},He=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ze=e=>{ +const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let Ve +;const We=()=>Ve||(Ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}) +;function Xe(e){if(ye(e)){const t={};for(let n=0;n{if(e){ +const n=e.split(Ge);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t} +function et(e){let t="";if(_e(e))t=e;else if(ye(e))for(let n=0;not(e,t)))} +const at=e=>!(!e||!0!==e.__v_isRef),st=e=>_e(e)?e:null==e?"":ye(e)||Te(e)&&(e.toString===Ae||!Se(e.toString))?at(e)?st(e.value):JSON.stringify(e,lt,2):String(e),lt=(e,t)=>at(t)?lt(e,t.value):we(t)?{ +[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[ct(t,r)+" =>"]=n, +e)),{})}:xe(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ct(e))) +}:Ee(t)?ct(t):!Te(t)||ye(t)||$e(t)?t:String(t),ct=(e,t="")=>{var n +;return Ee(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}; +/** + * @vue/reactivity v3.4.31 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **/ +let ut,dt;class pt{constructor(e=!1){ +this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ut, +!e&&ut&&(this.index=(ut.scopes||(ut.scopes=[])).push(this)-1)}get active(){ +return this._active}run(e){if(this._active){const t=ut;try{return ut=this,e() +}finally{ut=t}}}on(){ut=this}off(){ut=this.parent}stop(e){if(this._active){ +let t,n;for(t=0,n=this.effects.length;t=4))break} +1===this._dirtyLevel&&(this._dirtyLevel=0),St()}return this._dirtyLevel>=4} +set dirty(e){this._dirtyLevel=e?4:0}run(){ +if(this._dirtyLevel=0,!this.active)return this.fn();let e=yt,t=dt;try{ +return yt=!0,dt=this,this._runnings++,vt(this),this.fn()}finally{ +bt(this),this._runnings--,dt=t,yt=e}}stop(){ +this.active&&(vt(this),bt(this),this.onStop&&this.onStop(),this.active=!1)}} +function vt(e){e._trackId++,e._depsLength=0}function bt(e){ +if(e.deps.length>e._depsLength){ +for(let t=e._depsLength;t{const n=new Map +;return n.cleanup=e,n.computed=t,n},Dt=new WeakMap,$t=Symbol(""),Rt=Symbol("") +;function Nt(e,t,n){if(yt&&dt){let t=Dt.get(e);t||Dt.set(e,t=new Map) +;let r=t.get(n);r||t.set(n,r=Pt((()=>t.delete(n)))),Tt(dt,r)}} +function It(e,t,n,r,o,i){const a=Dt.get(e);if(!a)return;let s=[] +;if("clear"===t)s=[...a.values()];else if("length"===n&&ye(e)){const e=Number(r) +;a.forEach(((t,n)=>{("length"===n||!Ee(n)&&n>=e)&&s.push(t)})) +}else switch(void 0!==n&&s.push(a.get(n)),t){case"add": +ye(e)?Re(n)&&s.push(a.get("length")):(s.push(a.get($t)), +we(e)&&s.push(a.get(Rt)));break;case"delete": +ye(e)||(s.push(a.get($t)),we(e)&&s.push(a.get(Rt)));break;case"set": +we(e)&&s.push(a.get($t))}_t();for(const l of s)l&&At(l,4);Et()} +const Mt=ce("__proto__,__v_isRef,__isVue"),Lt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(Ee)),Bt=Qt() +;function Qt(){const e={} +;return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){ +const n=Pn(this);for(let t=0,o=this.length;t{e[t]=function(...e){ +kt(),_t();const n=Pn(this)[t].apply(this,e);return Et(),St(),n}})),e} +function jt(e){Ee(e)||(e=String(e));const t=Pn(this) +;return Nt(t,0,e),t.hasOwnProperty(e)}class Ut{constructor(e=!1,t=!1){ +this._isReadonly=e,this._isShallow=t}get(e,t,n){ +const r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r +;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o +;if("__v_raw"===t)return n===(r?o?yn:On:o?bn:vn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0 +;const i=ye(e);if(!r){if(i&&Oe(Bt,t))return Reflect.get(Bt,t,n) +;if("hasOwnProperty"===t)return jt}const a=Reflect.get(e,t,n) +;return(Ee(t)?Lt.has(t):Mt(t))?a:(r||Nt(e,0,t), +o?a:Ln(a)?i&&Re(t)?a:a.value:Te(a)?r?kn(a):wn(a):a)}}class Ft extends Ut{ +constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._isShallow){ +const t=Tn(o) +;if(Cn(n)||Tn(n)||(o=Pn(o),n=Pn(n)),!ye(e)&&Ln(o)&&!Ln(n))return!t&&(o.value=n, +!0)}const i=ye(e)&&Re(t)?Number(t)e,Xt=e=>Reflect.getPrototypeOf(e) +;function Yt(e,t,n=!1,r=!1){const o=Pn(e=e.__v_raw),i=Pn(t) +;n||(Fe(t,i)&&Nt(o,0,t),Nt(o,0,i));const{has:a}=Xt(o),s=r?Wt:n?Rn:$n +;return a.call(o,t)?s(e.get(t)):a.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))} +function Gt(e,t=!1){const n=this.__v_raw,r=Pn(n),o=Pn(e) +;return t||(Fe(e,o)&&Nt(r,0,e),Nt(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)} +function Kt(e,t=!1){ +return e=e.__v_raw,!t&&Nt(Pn(e),0,$t),Reflect.get(e,"size",e)}function Jt(e){ +e=Pn(e);const t=Pn(this);return Xt(t).has.call(t,e)||(t.add(e),It(t,"add",e,e)), +this}function en(e,t){t=Pn(t);const n=Pn(this),{has:r,get:o}=Xt(n) +;let i=r.call(n,e);i||(e=Pn(e),i=r.call(n,e));const a=o.call(n,e) +;return n.set(e,t),i?Fe(t,a)&&It(n,"set",e,t):It(n,"add",e,t),this} +function tn(e){const t=Pn(this),{has:n,get:r}=Xt(t);let o=n.call(t,e) +;o||(e=Pn(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e) +;return o&&It(t,"delete",e,void 0),i}function nn(){ +const e=Pn(this),t=0!==e.size,n=e.clear();return t&&It(e,"clear",void 0,void 0), +n}function rn(e,t){return function(n,r){ +const o=this,i=o.__v_raw,a=Pn(i),s=t?Wt:e?Rn:$n +;return!e&&Nt(a,0,$t),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}} +function on(e,t,n){return function(...r){ +const o=this.__v_raw,i=Pn(o),a=we(i),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=o[e](...r),u=n?Wt:t?Rn:$n +;return!t&&Nt(i,0,l?Rt:$t),{next(){const{value:e,done:t}=c.next();return t?{ +value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){ +return this}}}}function an(e){return function(...t){ +return"delete"!==e&&("clear"===e?void 0:this)}}function sn(){const e={get(e){ +return Yt(this,e)},get size(){return Kt(this)},has:Gt,add:Jt,set:en,delete:tn, +clear:nn,forEach:rn(!1,!1)},t={get(e){return Yt(this,e,!1,!0)},get size(){ +return Kt(this)},has:Gt,add:Jt,set:en,delete:tn,clear:nn,forEach:rn(!1,!0)},n={ +get(e){return Yt(this,e,!0)},get size(){return Kt(this,!0)},has(e){ +return Gt.call(this,e,!0)},add:an("add"),set:an("set"),delete:an("delete"), +clear:an("clear"),forEach:rn(!0,!1)},r={get(e){return Yt(this,e,!0,!0)}, +get size(){return Kt(this,!0)},has(e){return Gt.call(this,e,!0)},add:an("add"), +set:an("set"),delete:an("delete"),clear:an("clear"),forEach:rn(!0,!0)} +;return["keys","values","entries",Symbol.iterator].forEach((o=>{ +e[o]=on(o,!1,!1),n[o]=on(o,!0,!1),t[o]=on(o,!1,!0),r[o]=on(o,!0,!0)})),[e,n,t,r] +}const[ln,cn,un,dn]=sn();function pn(e,t){const n=t?e?dn:un:e?cn:ln +;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(Oe(n,r)&&r in t?n:t,r,o) +}const hn={get:pn(!1,!1)},fn={get:pn(!1,!0)},mn={get:pn(!0,!1)},gn={ +get:pn(!0,!0)},vn=new WeakMap,bn=new WeakMap,On=new WeakMap,yn=new WeakMap +;function wn(e){return Tn(e)?e:_n(e,!1,zt,hn,vn)}function xn(e){ +return _n(e,!1,Zt,fn,bn)}function kn(e){return _n(e,!0,Ht,mn,On)}function Sn(e){ +return _n(e,!0,Vt,gn,yn)}function _n(e,t,n,r,o){if(!Te(e))return e +;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i +;const a=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){ +case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap": +case"WeakSet":return 2;default:return 0}}(De(s));var s;if(0===a)return e +;const l=new Proxy(e,2===a?r:n);return o.set(e,l),l}function En(e){ +return Tn(e)?En(e.__v_raw):!(!e||!e.__v_isReactive)}function Tn(e){ +return!(!e||!e.__v_isReadonly)}function Cn(e){return!(!e||!e.__v_isShallow)} +function An(e){return!!e&&!!e.__v_raw}function Pn(e){const t=e&&e.__v_raw +;return t?Pn(t):e}function Dn(e){ +return Object.isExtensible(e)&&ze(e,"__v_skip",!0),e} +const $n=e=>Te(e)?wn(e):e,Rn=e=>Te(e)?kn(e):e;class Nn{constructor(e,t,n,r){ +this.getter=e, +this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1, +this.effect=new gt((()=>e(this._value)),(()=>Mn(this,2===this.effect._dirtyLevel?2:3))), +this.effect.computed=this, +this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){ +const e=Pn(this) +;return e._cacheable&&!e.effect.dirty||!Fe(e._value,e._value=e.effect.run())||Mn(e,4), +In(e),e.effect._dirtyLevel>=2&&Mn(e,2),e._value}set value(e){this._setter(e)} +get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}} +function In(e){var t +;yt&&dt&&(e=Pn(e),Tt(dt,null!=(t=e.dep)?t:e.dep=Pt((()=>e.dep=void 0),e instanceof Nn?e:void 0))) +}function Mn(e,t=4,n,r){const o=(e=Pn(e)).dep;o&&At(o,t)}function Ln(e){ +return!(!e||!0!==e.__v_isRef)}function Bn(e){return jn(e,!1)}function Qn(e){ +return jn(e,!0)}function jn(e,t){return Ln(e)?e:new Un(e,t)}class Un{ +constructor(e,t){ +this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pn(e), +this._value=t?e:$n(e)}get value(){return In(this),this._value}set value(e){ +const t=this.__v_isShallow||Cn(e)||Tn(e) +;e=t?e:Pn(e),Fe(e,this._rawValue)&&(this._rawValue, +this._rawValue=e,this._value=t?e:$n(e),Mn(this,4))}}function Fn(e){ +return Ln(e)?e.value:e}function qn(e){return Se(e)?e():Fn(e)}const zn={ +get:(e,t,n)=>Fn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t] +;return Ln(o)&&!Ln(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Hn(e){ +return En(e)?e:new Proxy(e,zn)}class Zn{constructor(e){ +this.dep=void 0,this.__v_isRef=!0 +;const{get:t,set:n}=e((()=>In(this)),(()=>Mn(this)));this._get=t,this._set=n} +get value(){return this._get()}set value(e){this._set(e)}}function Vn(e){ +return new Zn(e)}function Wn(e){const t=ye(e)?new Array(e.length):{} +;for(const n in e)t[n]=Kn(e,n);return t}class Xn{constructor(e,t,n){ +this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){ +const e=this._object[this._key];return void 0===e?this._defaultValue:e} +set value(e){this._object[this._key]=e}get dep(){return function(e,t){ +const n=Dt.get(e);return n&&n.get(t)}(Pn(this._object),this._key)}}class Yn{ +constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0} +get value(){return this._getter()}}function Gn(e,t,n){ +return Ln(e)?e:Se(e)?new Yn(e):Te(e)&&arguments.length>1?Kn(e,t,n):Bn(e)} +function Kn(e,t,n){const r=e[t];return Ln(r)?r:new Xn(e,t,n)} +/** + * @vue/runtime-core v3.4.31 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **/function Jn(e,t,n,r){try{return r?e(...r):e()}catch(o){tr(o,t,n)}} +function er(e,t,n,r){if(Se(e)){const o=Jn(e,t,n,r) +;return o&&Ce(o)&&o.catch((e=>{tr(e,t,n)})),o}if(ye(e)){const o=[] +;for(let i=0;i>>1,o=or[r],i=gr(o) +;igr(e)-gr(t))) +;if(ar.length=0,sr)return void sr.push(...e);for(sr=e,lr=0;lrnull==e.id?1/0:e.id,vr=(e,t)=>{const n=gr(e)-gr(t);if(0===n){ +if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function br(e){ +rr=!1,nr=!0,or.sort(vr);try{for(ir=0;ir_e(e)?e.trim():e))),t&&(o=n.map(He))} +let s,l=r[s=Ue(t)]||r[s=Ue(Le(t))];!l&&i&&(l=r[s=Ue(Qe(t))]),l&&er(l,e,6,o) +;const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return +}else e.emitted={};e.emitted[s]=!0,er(c,e,6,o)}}function yr(e,t,n=!1){ +const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits +;let a={},s=!1;if(!Se(e)){const r=e=>{const n=yr(e,t,!0);n&&(s=!0,ge(a,n))} +;!n&&t.mixins.length&&t.mixins.forEach(r), +e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)} +return i||s?(ye(i)?i.forEach((e=>a[e]=null)):ge(a,i), +Te(e)&&r.set(e,a),a):(Te(e)&&r.set(e,null),null)}function wr(e,t){ +return!(!e||!fe(t))&&(t=t.slice(2).replace(/Once$/,""), +Oe(e,t[0].toLowerCase()+t.slice(1))||Oe(e,Qe(t))||Oe(e,t))}let xr=null,kr=null +;function Sr(e){const t=xr;return xr=e,kr=e&&e.type.__scopeId||null,t} +function _r(e){kr=e}function Er(){kr=null}function Tr(e,t=xr,n){if(!t)return e +;if(e._n)return e;const r=(...n)=>{r._d&&Zi(-1);const o=Sr(t);let i;try{ +i=e(...n)}finally{Sr(o),r._d&&Zi(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r} +function Cr(e){ +const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:p,setupState:h,ctx:f,inheritAttrs:m}=e,g=Sr(e) +;let v,b;try{if(4&n.shapeFlag){const e=o||r,t=e;v=sa(c.call(t,e,u,d,h,p,f)),b=s +}else{const e=t;0,v=sa(e.length>1?e(d,{attrs:s,slots:a,emit:l +}):e(d,null)),b=t.props?s:Ar(s)}}catch(y){Fi.length=0,tr(y,e,1),v=ta(ji)}let O=v +;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=O +;e.length&&7&t&&(i&&e.some(me)&&(b=Pr(b,i)),O=ra(O,b,!1,!0))} +return n.dirs&&(O=ra(O,null,!1,!0), +O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition), +v=O,Sr(g),v}const Ar=e=>{let t +;for(const n in e)("class"===n||"style"===n||fe(n))&&((t||(t={}))[n]=e[n]) +;return t},Pr=(e,t)=>{const n={} +;for(const r in e)me(r)&&r.slice(9)in t||(n[r]=e[r]);return n} +;function Dr(e,t,n){const r=Object.keys(t) +;if(r.length!==Object.keys(e).length)return!0;for(let o=0;o{kt() +;const o=ba(n),i=er(t,n,e,r);return o(),St(),i}) +;return r?o.unshift(i):o.push(i),i}}const Qr=e=>(t,n=fa)=>{ +xa&&"sp"!==e||Br(e,((...e)=>t(...e)),n) +},jr=Qr("bm"),Ur=Qr("m"),Fr=Qr("bu"),qr=Qr("u"),zr=Qr("bum"),Hr=Qr("um"),Zr=Qr("sp"),Vr=Qr("rtg"),Wr=Qr("rtc") +;function Xr(e,t=fa){Br("ec",e,t)}function Yr(e,t){if(null===xr)return e +;const n=Ta(xr),r=e.dirs||(e.dirs=[]);for(let o=0;ot(e,n,void 0,i)));else{ +const n=Object.keys(e);o=new Array(n.length);for(let r=0,a=n.length;r{ +const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e} +/*! #__NO_SIDE_EFFECTS__ */function eo(e,t){return Se(e)?(()=>ge({name:e.name +},t,{setup:e}))():e}const to=e=>!!e.type.__asyncLoader +;function no(e,t,n={},r,o){ +if(xr.isCE||xr.parent&&to(xr.parent)&&xr.parent.isCE)return"default"!==t&&(n.name=t), +ta("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),zi() +;const a=i&&ro(i(n)),s=Xi(Bi,{key:n.key||a&&a.key||`_${t}` +},a||(r?r():[]),a&&1===e._?64:-2) +;return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s} +function ro(e){ +return e.some((e=>!Yi(e)||e.type!==ji&&!(e.type===Bi&&!ro(e.children))))?e:null} +function oo(e,t){const n={};for(const r in e)n[Ue(r)]=e[r];return n} +const io=e=>e?ya(e)?Ta(e):io(e.parent):null,ao=ge(Object.create(null),{$:e=>e, +$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs, +$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>io(e.parent),$root:e=>io(e.root), +$emit:e=>e.emit,$options:e=>Oo(e),$forceUpdate:e=>e.f||(e.f=()=>{ +e.effect.dirty=!0,pr(e.update)}),$nextTick:e=>e.n||(e.n=dr.bind(e.proxy)), +$watch:e=>ui.bind(e)}),so=(e,t)=>e!==ue&&!e.__isScriptSetup&&Oe(e,t),lo={ +get({_:e},t){if("__v_skip"===t)return!0 +;const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:l}=e +;let c;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t] +;case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{ +if(so(r,t))return a[t]=1,r[t];if(o!==ue&&Oe(o,t))return a[t]=2,o[t] +;if((c=e.propsOptions[0])&&Oe(c,t))return a[t]=3,i[t] +;if(n!==ue&&Oe(n,t))return a[t]=4,n[t];mo&&(a[t]=0)}}const u=ao[t];let d,p +;return u?("$attrs"===t&&Nt(e.attrs,0,""), +u(e)):(d=s.__cssModules)&&(d=d[t])?d:n!==ue&&Oe(n,t)?(a[t]=4, +n[t]):(p=l.config.globalProperties,Oe(p,t)?p[t]:void 0)},set({_:e},t,n){ +const{data:r,setupState:o,ctx:i}=e +;return so(o,t)?(o[t]=n,!0):r!==ue&&Oe(r,t)?(r[t]=n, +!0):!Oe(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))}, +has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){ +let s +;return!!n[a]||e!==ue&&Oe(e,a)||so(t,a)||(s=i[0])&&Oe(s,a)||Oe(r,a)||Oe(ao,a)||Oe(o.config.globalProperties,a) +},defineProperty(e,t,n){ +return null!=n.get?e._.accessCache[t]=0:Oe(n,"value")&&this.set(e,t,n.value,null), +Reflect.defineProperty(e,t,n)}};function co(){return po().slots}function uo(){ +return po().attrs}function po(){const e=ma() +;return e.setupContext||(e.setupContext=Ea(e))}function ho(e){ +return ye(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function fo(e,t){ +const n=ho(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r] +;e?ye(e)||Se(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={ +default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n}let mo=!0 +;function go(e){const t=Oo(e),n=e.proxy,r=e.ctx +;mo=!1,t.beforeCreate&&vo(t.beforeCreate,e,"bc") +;const{data:o,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:O,unmounted:y,render:w,renderTracked:x,renderTriggered:k,errorCaptured:S,serverPrefetch:_,expose:E,inheritAttrs:T,components:C,directives:A,filters:P}=t +;if(c&&function(e,t,n=pe){ye(e)&&(e=ko(e));for(const r in e){const n=e[r];let o +;o=Te(n)?"default"in n?$o(n.from||r,n.default,!0):$o(n.from||r):$o(n), +Ln(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value, +set:e=>o.value=e}):t[r]=o}}(c,r,null),a)for(const $ in a){const e=a[$] +;Se(e)&&(r[$]=e.bind(n))}if(o){const t=o.call(n,n);Te(t)&&(e.data=wn(t))} +if(mo=!0,i)for(const $ in i){ +const e=i[$],t=Se(e)?e.bind(n,n):Se(e.get)?e.get.bind(n,n):pe,o=!Se(e)&&Se(e.set)?e.set.bind(n):pe,a=Aa({ +get:t,set:o});Object.defineProperty(r,$,{enumerable:!0,configurable:!0, +get:()=>a.value,set:e=>a.value=e})}if(s)for(const $ in s)bo(s[$],r,n,$);if(l){ +const e=Se(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Do(t,e[t])}))} +function D(e,t){ye(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))} +if(u&&vo(u,e,"c"), +D(jr,d),D(Ur,p),D(Fr,h),D(qr,f),D(fi,m),D(mi,g),D(Xr,S),D(Wr,x),D(Vr,k),D(zr,b), +D(Hr,y),D(Zr,_),ye(E))if(E.length){const t=e.exposed||(e.exposed={}) +;E.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})) +}else e.exposed||(e.exposed={}) +;w&&e.render===pe&&(e.render=w),null!=T&&(e.inheritAttrs=T),C&&(e.components=C), +A&&(e.directives=A)}function vo(e,t,n){ +er(ye(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function bo(e,t,n,r){ +const o=r.includes(".")?di(n,r):()=>n[r];if(_e(e)){const n=t[e];Se(n)&&li(o,n) +}else if(Se(e))li(o,e.bind(n));else if(Te(e))if(ye(e))e.forEach((e=>bo(e,t,n,r)));else{ +const r=Se(e.handler)?e.handler.bind(n):t[e.handler];Se(r)&&li(o,r,e)}} +function Oo(e){ +const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t) +;let l;return s?l=s:o.length||n||r?(l={},o.length&&o.forEach((e=>yo(l,e,a,!0))), +yo(l,t,a)):l=t,Te(t)&&i.set(t,l),l}function yo(e,t,n,r=!1){ +const{mixins:o,extends:i}=t;i&&yo(e,i,n,!0),o&&o.forEach((t=>yo(e,t,n,!0))) +;for(const a in t)if(r&&"expose"===a);else{const r=wo[a]||n&&n[a] +;e[a]=r?r(e[a],t[a]):t[a]}return e}const wo={data:xo,props:Eo,emits:Eo, +methods:_o,computed:_o,beforeCreate:So,created:So,beforeMount:So,mounted:So, +beforeUpdate:So,updated:So,beforeDestroy:So,beforeUnmount:So,destroyed:So, +unmounted:So,activated:So,deactivated:So,errorCaptured:So,serverPrefetch:So, +components:_o,directives:_o,watch:function(e,t){if(!e)return t;if(!t)return e +;const n=ge(Object.create(null),e);for(const r in t)n[r]=So(e[r],t[r]);return n +},provide:xo,inject:function(e,t){return _o(ko(e),ko(t))}};function xo(e,t){ +return t?e?function(){ +return ge(Se(e)?e.call(this,this):e,Se(t)?t.call(this,this):t)}:t:e} +function ko(e){if(ye(e)){const t={};for(let n=0;n(i.has(e)||(e&&Se(e.install)?(i.add(e), +e.install(s,...t)):Se(e)&&(i.add(e),e(s,...t))),s), +mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),s), +component:(e,t)=>t?(o.components[e]=t,s):o.components[e], +directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(i,l,c){if(!a){ +const u=ta(n,r) +;return u.appContext=o,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,i):e(u,i,c), +a=!0,s._container=i,i.__vue_app__=s,Ta(u.component)}},unmount(){ +a&&(e(null,s._container),delete s._container.__vue_app__)}, +provide:(e,t)=>(o.provides[e]=t,s),runWithContext(e){const t=Po;Po=s;try{ +return e()}finally{Po=t}}};return s}}let Po=null;function Do(e,t){if(fa){ +let n=fa.provides;const r=fa.parent&&fa.parent.provides +;r===n&&(n=fa.provides=Object.create(r)),n[e]=t}else;}function $o(e,t,n=!1){ +const r=fa||xr;if(r||Po){ +const o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Po._context.provides +;if(o&&e in o)return o[e] +;if(arguments.length>1)return n&&Se(t)?t.call(r&&r.proxy):t}} +const Ro={},No=()=>Object.create(Ro),Io=e=>Object.getPrototypeOf(e)===Ro +;function Mo(e,t,n,r){const[o,i]=e.propsOptions;let a,s=!1;if(t)for(let l in t){ +if(Ne(l))continue;const c=t[l];let u +;o&&Oe(o,u=Le(l))?i&&i.includes(u)?(a||(a={}))[u]=c:n[u]=c:wr(e.emitsOptions,l)||l in r&&c===r[l]||(r[l]=c, +s=!0)}if(i){const t=Pn(n),r=a||ue;for(let a=0;a{l=!0 +;const[n,r]=Bo(e,t,!0);ge(a,n),r&&s.push(...r)} +;!n&&t.mixins.length&&t.mixins.forEach(r), +e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)} +if(!i&&!l)return Te(e)&&r.set(e,de),de;if(ye(i))for(let u=0;u-1,n[1]=r<0||t-1||Oe(n,"default"))&&s.push(e)}}}const c=[a,s] +;return Te(e)&&r.set(e,c),c}function Qo(e){return"$"!==e[0]&&!Ne(e)} +function jo(e){if(null===e)return"null" +;if("function"==typeof e)return e.name||"";if("object"==typeof e){ +return e.constructor&&e.constructor.name||""}return""}function Uo(e,t){ +return jo(e)===jo(t)}function Fo(e,t){ +return ye(t)?t.findIndex((t=>Uo(t,e))):Se(t)&&Uo(t,e)?0:-1} +const qo=e=>"_"===e[0]||"$stable"===e,zo=e=>ye(e)?e.map(sa):[sa(e)],Ho=(e,t,n)=>{ +if(t._n)return t;const r=Tr(((...e)=>zo(t(...e))),n);return r._c=!1,r +},Zo=(e,t,n)=>{const r=e._ctx;for(const o in e){if(qo(o))continue;const n=e[o] +;if(Se(n))t[o]=Ho(0,n,r);else if(null!=n){const e=zo(n);t[o]=()=>e}} +},Vo=(e,t)=>{const n=zo(t);e.slots.default=()=>n},Wo=(e,t)=>{ +const n=e.slots=No();if(32&e.vnode.shapeFlag){const e=t._ +;e?(ge(n,t),ze(n,"_",e,!0)):Zo(t,n)}else t&&Vo(e,t)},Xo=(e,t,n)=>{ +const{vnode:r,slots:o}=e;let i=!0,a=ue;if(32&r.shapeFlag){const e=t._ +;e?n&&1===e?i=!1:(ge(o,t),n||1!==e||delete o._):(i=!t.$stable,Zo(t,o)),a=t +}else t&&(Vo(e,t),a={default:1}) +;if(i)for(const s in o)qo(s)||null!=a[s]||delete o[s]} +;function Yo(e,t,n,r,o=!1){ +if(ye(e))return void e.forEach(((e,i)=>Yo(e,t&&(ye(t)?t[i]:t),n,r,o))) +;if(to(r)&&!o)return +;const i=4&r.shapeFlag?Ta(r.component):r.el,a=o?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===ue?s.refs={}:s.refs,d=s.setupState +;if(null!=c&&c!==l&&(_e(c)?(u[c]=null, +Oe(d,c)&&(d[c]=null)):Ln(c)&&(c.value=null)),Se(l))Jn(l,s,12,[a,u]);else{ +const t=_e(l),r=Ln(l);if(t||r){const s=()=>{if(e.f){ +const n=t?Oe(d,l)?d[l]:u[l]:l.value +;o?ye(n)&&ve(n,i):ye(n)?n.includes(i)||n.push(i):t?(u[l]=[i], +Oe(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value)) +}else t?(u[l]=a,Oe(d,l)&&(d[l]=a)):r&&(l.value=a,e.k&&(u[e.k]=a))} +;a?(s.id=-1,Go(s,n)):s()}}}const Go=function(e,t){var n +;t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):(ye(n=e)?ar.push(...n):sr&&sr.includes(n,n.allowRecurse?lr+1:lr)||ar.push(n), +hr())};function Ko(e){return function(e,t){We().__VUE__=!0 +;const{insert:n,remove:r,patchProp:o,createElement:i,createText:a,createComment:s,setText:l,setElementText:c,parentNode:u,nextSibling:d,setScopeId:p=pe,insertStaticContent:h}=e,f=(e,t,n,r=null,o=null,i=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{ +if(e===t)return +;e&&!Gi(e,t)&&(r=F(e),L(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1, +t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Qi: +m(e,t,n,r);break;case ji:g(e,t,n,r);break;case Ui:null==e&&v(t,n,r,a);break +;case Bi:T(e,t,n,r,o,i,a,s,l);break;default: +1&d?y(e,t,n,r,o,i,a,s,l):6&d?C(e,t,n,r,o,i,a,s,l):(64&d||128&d)&&c.process(e,t,n,r,o,i,a,s,l,H) +}null!=u&&o&&Yo(u,e&&e.ref,i,t||e,!t)},m=(e,t,r,o)=>{ +if(null==e)n(t.el=a(t.children),r,o);else{const n=t.el=e.el +;t.children!==e.children&&l(n,t.children)}},g=(e,t,r,o)=>{ +null==e?n(t.el=s(t.children||""),r,o):t.el=e.el},v=(e,t,n,r)=>{ +[e.el,e.anchor]=h(e.children,t,n,r,e.el,e.anchor)},b=({el:e,anchor:t},r,o)=>{ +let i;for(;e&&e!==t;)i=d(e),n(e,r,o),e=i;n(t,r,o)},O=({el:e,anchor:t})=>{let n +;for(;e&&e!==t;)n=d(e),r(e),e=n;r(t)},y=(e,t,n,r,o,i,a,s,l)=>{ +"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"), +null==e?w(t,n,r,o,i,a,s,l):S(e,t,o,i,a,s,l)},w=(e,t,r,a,s,l,u,d)=>{let p,h +;const{props:f,shapeFlag:m,transition:g,dirs:v}=e +;if(p=e.el=i(e.type,l,f&&f.is,f), +8&m?c(p,e.children):16&m&&k(e.children,p,null,a,s,Jo(e,l),u,d), +v&&Gr(e,null,a,"created"),x(p,e,e.scopeId,u,a),f){ +for(const t in f)"value"===t||Ne(t)||o(p,t,null,f[t],l,e.children,a,s,U) +;"value"in f&&o(p,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&da(h,a,e)} +v&&Gr(e,null,a,"beforeMount");const b=function(e,t){ +return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,g) +;b&&g.beforeEnter(p),n(p,t,r),((h=f&&f.onVnodeMounted)||b||v)&&Go((()=>{ +h&&da(h,a,e),b&&g.enter(p),v&&Gr(e,null,a,"mounted")}),s)},x=(e,t,n,r,o)=>{ +if(n&&p(e,n),r)for(let i=0;i{for(let c=l;c{ +const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag +;const h=e.props||ue,f=t.props||ue;let m +;if(n&&ei(n,!1),(m=f.onVnodeBeforeUpdate)&&da(m,n,t,e), +p&&Gr(t,e,n,"beforeUpdate"), +n&&ei(n,!0),d?_(e.dynamicChildren,d,l,n,r,Jo(t,i),a):s||R(e,t,l,null,n,r,Jo(t,i),a,!1), +u>0){ +if(16&u)E(l,t,h,f,n,r,i);else if(2&u&&h.class!==f.class&&o(l,"class",null,f.class,i), +4&u&&o(l,"style",h.style,f.style,i),8&u){const a=t.dynamicProps +;for(let t=0;t{m&&da(m,n,t,e),p&&Gr(t,e,n,"updated")}),r) +},_=(e,t,n,r,o,i,a)=>{for(let s=0;s{if(n!==r){ +if(n!==ue)for(const l in n)Ne(l)||l in r||o(e,l,n[l],null,s,t.children,i,a,U) +;for(const l in r){if(Ne(l))continue;const c=r[l],u=n[l] +;c!==u&&"value"!==l&&o(e,l,u,c,s,t.children,i,a,U)} +"value"in r&&o(e,"value",n.value,r.value,s)}},T=(e,t,r,o,i,s,l,c,u)=>{ +const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("") +;let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t +;m&&(c=c?c.concat(m):m),null==e?(n(d,r,o), +n(p,r,o),k(t.children||[],r,p,i,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(_(e.dynamicChildren,f,r,i,s,l,c), +(null!=t.key||i&&t===i.subTree)&&ti(e,t,!0)):R(e,t,r,p,i,s,l,c,u) +},C=(e,t,n,r,o,i,a,s,l)=>{ +t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,l):A(t,n,r,o,i,a,l):P(e,t,l) +},A=(e,t,n,r,o,i,a)=>{const s=e.component=function(e,t,n){ +const r=e.type,o=(t?t.appContext:e.appContext)||pa,i={uid:ha++,vnode:e,type:r, +parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null, +scope:new pt(!0),render:null,proxy:null,exposed:null,exposeProxy:null, +withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null, +renderCache:[],components:null,directives:null,propsOptions:Bo(r,o), +emitsOptions:yr(r,o),emit:null,emitted:null,propsDefaults:ue, +inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue, +setupState:ue,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n, +suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1, +isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null, +um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i +},i.root=t?t.root:i,i.emit=Or.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o) +;if(hi(e)&&(s.ctx.renderer=H),function(e,t=!1){t&&va(t) +;const{props:n,children:r}=e.vnode,o=ya(e);(function(e,t,n,r=!1){ +const o={},i=No();e.propsDefaults=Object.create(null),Mo(e,t,o,i) +;for(const a in e.propsOptions[0])a in o||(o[a]=void 0) +;n?e.props=r?o:xn(o):e.type.props?e.props=o:e.props=i,e.attrs=i +})(e,n,o,t),Wo(e,r);const i=o?function(e,t){const n=e.type +;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lo);const{setup:r}=n +;if(r){const n=e.setupContext=r.length>1?Ea(e):null,o=ba(e);kt() +;const i=Jn(r,e,0,[e.props,n]);if(St(),o(),Ce(i)){ +if(i.then(Oa,Oa),t)return i.then((n=>{ka(e,n,t)})).catch((t=>{tr(t,e,0)})) +;e.asyncDep=i}else ka(e,i,t)}else Sa(e,t)}(e,t):void 0;t&&va(!1) +}(s),s.asyncDep){if(o&&o.registerDep(s,D,a),!e.el){const e=s.subTree=ta(ji) +;g(null,e,t,n)}}else D(s,e,t,n,o,i,a)},P=(e,t,n)=>{ +const r=t.component=e.component;if(function(e,t,n){ +const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions +;if(t.dirs||t.transition)return!0 +;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||Dr(r,a,c):!!a) +;if(1024&l)return!0;if(16&l)return r?Dr(r,a,c):!!a;if(8&l){ +const e=t.dynamicProps;for(let t=0;tir&&or.splice(t,1) +}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t +},D=(e,t,n,r,o,i,a)=>{const s=()=>{if(e.isMounted){ +let{next:t,bu:n,u:r,parent:l,vnode:c}=e;{const n=ni(e) +;if(n)return t&&(t.el=c.el,$(e,t,a)),void n.asyncDep.then((()=>{ +e.isUnmounted||s()}))}let d,p=t +;ei(e,!1),t?(t.el=c.el,$(e,t,a)):t=c,n&&qe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&da(d,l,t,c), +ei(e,!0);const h=Cr(e),m=e.subTree +;e.subTree=h,f(m,h,u(m.el),F(m),e,o,i),t.el=h.el, +null===p&&function({vnode:e,parent:t},n){for(;t;){const r=t.subTree +;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break +;(e=t.vnode).el=n,t=t.parent} +}(e,h.el),r&&Go(r,o),(d=t.props&&t.props.onVnodeUpdated)&&Go((()=>da(d,l,t,c)),o) +}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,p=to(t) +;if(ei(e,!1),c&&qe(c),!p&&(a=l&&l.onVnodeBeforeMount)&&da(a,d,t),ei(e,!0),s&&V){ +const n=()=>{e.subTree=Cr(e),V(s,e.subTree,e,o,null)} +;p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{ +const a=e.subTree=Cr(e);f(null,a,n,r,e,o,i),t.el=a.el} +if(u&&Go(u,o),!p&&(a=l&&l.onVnodeMounted)){const e=t;Go((()=>da(a,d,e)),o)} +(256&t.shapeFlag||d&&to(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Go(e.a,o), +e.isMounted=!0,t=n=r=null} +},l=e.effect=new gt(s,pe,(()=>pr(c)),e.scope),c=e.update=()=>{l.dirty&&l.run()} +;c.id=e.uid,ei(e,!0),c()},$=(e,t,n)=>{t.component=e;const r=e.vnode.props +;e.vnode=t,e.next=null,function(e,t,n,r){ +const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=Pn(o),[l]=e.propsOptions;let c=!1 +;if(!(r||a>0)||16&a){let r;Mo(e,t,o,i)&&(c=!0) +;for(const i in s)t&&(Oe(t,i)||(r=Qe(i))!==i&&Oe(t,r))||(l?!n||void 0===n[i]&&void 0===n[r]||(o[i]=Lo(l,s,i,void 0,e,!0)):delete o[i]) +;if(i!==s)for(const e in i)t&&Oe(t,e)||(delete i[e],c=!0)}else if(8&a){ +const n=e.vnode.dynamicProps;for(let r=0;r{ +const u=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t +;if(h>0){if(128&h)return void I(u,p,n,r,o,i,a,s,l) +;if(256&h)return void N(u,p,n,r,o,i,a,s,l)} +8&f?(16&d&&U(u,o,i),p!==u&&c(n,p)):16&d?16&f?I(u,p,n,r,o,i,a,s,l):U(u,o,i,!0):(8&d&&c(n,""), +16&f&&k(p,n,r,o,i,a,s,l))},N=(e,t,n,r,o,i,a,s,l)=>{t=t||de +;const c=(e=e||de).length,u=t.length,d=Math.min(c,u);let p;for(p=0;pu?U(e,o,i,!0,!1,d):k(t,n,r,o,i,a,s,l,d)},I=(e,t,n,r,o,i,a,s,l)=>{let c=0 +;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){ +const r=e[c],u=t[c]=l?la(t[c]):sa(t[c]);if(!Gi(r,u))break +;f(r,u,n,null,o,i,a,s,l),c++}for(;c<=d&&c<=p;){ +const r=e[d],c=t[p]=l?la(t[p]):sa(t[p]);if(!Gi(r,c))break +;f(r,c,n,null,o,i,a,s,l),d--,p--}if(c>d){if(c<=p){const e=p+1,d=ep)for(;c<=d;)L(e[c],o,i,!0),c++;else{const h=c,m=c,g=new Map +;for(c=m;c<=p;c++){const e=t[c]=l?la(t[c]):sa(t[c]);null!=e.key&&g.set(e.key,c)} +let v,b=0;const O=p-m+1;let y=!1,w=0;const x=new Array(O);for(c=0;c=O){L(r,o,i,!0);continue}let u +;if(null!=r.key)u=g.get(r.key);else for(v=m;v<=p;v++)if(0===x[v-m]&&Gi(r,t[v])){ +u=v;break} +void 0===u?L(r,o,i,!0):(x[u-m]=c+1,u>=w?w=u:y=!0,f(r,t[u],n,null,o,i,a,s,l),b++) +}const k=y?function(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length +;for(r=0;r>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1] +;for(;i-- >0;)n[i]=a,a=t[a];return n}(x):de;for(v=k.length-1,c=O-1;c>=0;c--){ +const e=m+c,d=t[e],p=e+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e +;if(6&u)return void M(e.component.subTree,t,r,o) +;if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void s.move(e,t,r,H) +;if(s===Bi){n(a,t,r);for(let e=0;el.enter(a)),i);else{ +const{leave:e,delayLeave:o,afterLeave:i}=l,s=()=>n(a,t,r),c=()=>{e(a,(()=>{ +s(),i&&i()}))};o?o(a,s,c):c()}else n(a,t,r)},L=(e,t,n,r=!1,o=!1)=>{ +const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,memoIndex:h}=e +;if(-2===d&&(o=!1), +null!=s&&Yo(s,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0), +256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!to(e);let g +;if(m&&(g=a&&a.onVnodeBeforeUnmount)&&da(g,t,e),6&u)j(e.component,n,r);else{ +if(128&u)return void e.suspense.unmount(n,r) +;f&&Gr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,H,r):c&&(i!==Bi||d>0&&64&d)?U(c,t,n,!1,!0):(i===Bi&&384&d||!o&&16&u)&&U(l,t,n), +r&&B(e)}(m&&(g=a&&a.onVnodeUnmounted)||f)&&Go((()=>{ +g&&da(g,t,e),f&&Gr(e,null,t,"unmounted")}),n)},B=e=>{ +const{type:t,el:n,anchor:o,transition:i}=e;if(t===Bi)return void Q(n,o) +;if(t===Ui)return void O(e);const a=()=>{ +r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()} +;if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,a) +;r?r(e.el,a,o):o()}else a()},Q=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t) +},j=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:a,um:s,m:l,a:c}=e +;ri(l),ri(c),r&&qe(r),o.stop(),i&&(i.active=!1,L(a,e,t,n)),s&&Go(s,t),Go((()=>{ +e.isUnmounted=!0 +}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--, +0===t.deps&&t.resolve())},U=(e,t,n,r=!1,o=!1,i=0)=>{ +for(let a=i;a6&e.shapeFlag?F(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el) +;let q=!1;const z=(e,t,n)=>{ +null==e?t._vnode&&L(t._vnode,null,null,!0):f(t._vnode||null,e,t,null,null,null,n), +q||(q=!0,fr(),mr(),q=!1),t._vnode=e},H={p:f,um:L,m:M,r:B,mt:A,mc:k,pc:R,pbc:_, +n:F,o:e};let Z,V;return{render:z,hydrate:Z,createApp:Ao(z,Z)}}(e)} +function Jo({type:e,props:t},n){ +return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n +}function ei({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n} +function ti(e,t,n=!1){const r=e.children,o=t.children +;if(ye(r)&&ye(o))for(let i=0;i$o(oi);function ai(e,t){return ci(e,null,t)} +const si={};function li(e,t,n){return ci(e,t,n)} +function ci(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:a,onTrigger:s}=ue){ +if(t&&i){const e=t;t=(...t)=>{e(...t),w()}} +const l=fa,c=e=>!0===r?e:pi(e,!1===r?1:void 0);let u,d,p=!1,h=!1 +;if(Ln(e)?(u=()=>e.value, +p=Cn(e)):En(e)?(u=()=>c(e),p=!0):ye(e)?(h=!0,p=e.some((e=>En(e)||Cn(e))), +u=()=>e.map((e=>Ln(e)?e.value:En(e)?c(e):Se(e)?Jn(e,l,2):void 0))):u=Se(e)?t?()=>Jn(e,l,2):()=>(d&&d(), +er(e,l,3,[m])):pe,t&&r){const e=u;u=()=>pi(e())}let f,m=e=>{d=O.onStop=()=>{ +Jn(e,l,4),d=O.onStop=void 0}};if(xa){ +if(m=pe,t?n&&er(t,l,3,[u(),h?[]:void 0,m]):u(),"sync"!==o)return pe;{ +const e=ii();f=e.__watcherHandles||(e.__watcherHandles=[])}} +let g=h?new Array(e.length).fill(si):si;const v=()=>{if(O.active&&O.dirty)if(t){ +const e=O.run() +;(r||p||(h?e.some(((e,t)=>Fe(e,g[t]))):Fe(e,g)))&&(d&&d(),er(t,l,3,[e,g===si?void 0:h&&g[0]===si?[]:g,m]), +g=e)}else O.run()};let b +;v.allowRecurse=!!t,"sync"===o?b=v:"post"===o?b=()=>Go(v,l&&l.suspense):(v.pre=!0, +l&&(v.id=l.uid),b=()=>pr(v));const O=new gt(u,pe,b),y=ft(),w=()=>{ +O.stop(),y&&ve(y.effects,O)} +;return t?n?v():g=O.run():"post"===o?Go(O.run.bind(O),l&&l.suspense):O.run(), +f&&f.push(w),w}function ui(e,t,n){ +const r=this.proxy,o=_e(e)?e.includes(".")?di(r,e):()=>r[e]:e.bind(r,r);let i +;Se(t)?i=t:(i=t.handler,n=t);const a=ba(this),s=ci(o,i.bind(r),n);return a(),s} +function di(e,t){const n=t.split(".");return()=>{let t=e +;for(let e=0;e{ +pi(e,t,n)}));else if($e(e)){for(const r in e)pi(e[r],t,n) +;for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&pi(e[r],t,n) +}return e}const hi=e=>e.type.__isKeepAlive;function fi(e,t){gi(e,"a",t)} +function mi(e,t){gi(e,"da",t)}function gi(e,t,n=fa){ +const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return +;t=t.parent}return e()});if(Br(t,r,n),n){let e=n.parent +;for(;e&&e.parent;)hi(e.parent.vnode)&&vi(r,t,n,e),e=e.parent}} +function vi(e,t,n,r){const o=Br(t,e,r,!0);Hr((()=>{ve(r[t],o)}),n)} +const bi=Symbol("_leaveCb"),Oi=Symbol("_enterCb");const yi=[Function,Array],wi={ +mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yi,onEnter:yi, +onAfterEnter:yi,onEnterCancelled:yi,onBeforeLeave:yi,onLeave:yi,onAfterLeave:yi, +onLeaveCancelled:yi,onBeforeAppear:yi,onAppear:yi,onAfterAppear:yi, +onAppearCancelled:yi},xi=e=>{const t=e.subTree +;return t.component?xi(t.component):t},ki={name:"BaseTransition",props:wi, +setup(e,{slots:t}){const n=ma(),r=function(){const e={isMounted:!1,isLeaving:!1, +isUnmounting:!1,leavingVNodes:new Map};return Ur((()=>{e.isMounted=!0 +})),zr((()=>{e.isUnmounting=!0})),e}();return()=>{ +const o=t.default&&Ai(t.default(),!0);if(!o||!o.length)return;let i=o[0] +;if(o.length>1)for(const e of o)if(e.type!==ji){i=e;break} +const a=Pn(e),{mode:s}=a;if(r.isLeaving)return Ei(i);const l=Ti(i) +;if(!l)return Ei(i);let c=_i(l,a,r,n,(e=>c=e));Ci(l,c) +;const u=n.subTree,d=u&&Ti(u);if(d&&d.type!==ji&&!Gi(l,d)&&xi(n).type!==ji){ +const e=_i(d,a,r,n) +;if(Ci(d,e),"out-in"===s&&l.type!==ji)return r.isLeaving=!0,e.afterLeave=()=>{ +r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Ei(i) +;"in-out"===s&&l.type!==ji&&(e.delayLeave=(e,t,n)=>{ +Si(r,d)[String(d.key)]=d,e[bi]=()=>{t(),e[bi]=void 0,delete c.delayedLeave +},c.delayedLeave=n})}return i}}};function Si(e,t){const{leavingVNodes:n}=e +;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r} +function _i(e,t,n,r,o){ +const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:b,onAppearCancelled:O}=t,y=String(e.key),w=Si(n,e),x=(e,t)=>{ +e&&er(e,r,9,t)},k=(e,t)=>{const n=t[1] +;x(e,t),ye(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:a, +persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(!i)return;r=g||l} +t[bi]&&t[bi](!0);const o=w[y];o&&Gi(e,o)&&o.el[bi]&&o.el[bi](),x(r,[t])}, +enter(e){let t=c,r=u,o=d;if(!n.isMounted){if(!i)return;t=v||c,r=b||u,o=O||d} +let a=!1;const s=e[Oi]=t=>{ +a||(a=!0,x(t?o:r,[e]),S.delayedLeave&&S.delayedLeave(),e[Oi]=void 0)} +;t?k(t,[e,s]):s()},leave(t,r){const o=String(e.key) +;if(t[Oi]&&t[Oi](!0),n.isUnmounting)return r();x(p,[t]);let i=!1 +;const a=t[bi]=n=>{i||(i=!0,r(),x(n?m:f,[t]),t[bi]=void 0,w[o]===e&&delete w[o]) +};w[o]=e,h?k(h,[t,a]):a()},clone(e){const i=_i(e,t,n,r,o);return o&&o(i),i}} +;return S}function Ei(e){if(hi(e))return(e=ra(e)).children=null,e} +function Ti(e){if(!hi(e))return e;const{shapeFlag:t,children:n}=e;if(n){ +if(16&t)return n[0];if(32&t&&Se(n.default))return n.default()}}function Ci(e,t){ +6&e.shapeFlag&&e.component?Ci(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent), +e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t} +function Ai(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;ie&&(e.disabled||""===e.disabled),Di=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,$i=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Ri=(e,t)=>{ +const n=e&&e.to;if(_e(n)){if(t){return t(n)}return null}return n},Ni={ +name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,c){ +const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,v=Pi(t.props) +;let{shapeFlag:b,children:O,dynamicChildren:y}=t;if(null==e){ +const e=t.el=m(""),c=t.anchor=m("");h(e,n,r),h(c,n,r) +;const d=t.target=Ri(t.props,f),p=t.targetAnchor=m("") +;d&&(h(p,d),"svg"===a||Di(d)?a="svg":("mathml"===a||$i(d))&&(a="mathml")) +;const g=(e,t)=>{16&b&&u(O,e,t,o,i,a,s,l)};v?g(n,c):d&&g(d,p)}else{t.el=e.el +;const r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Pi(e.props),g=m?n:u,b=m?r:h +;if("svg"===a||Di(u)?a="svg":("mathml"===a||$i(u))&&(a="mathml"), +y?(p(e.dynamicChildren,y,g,o,i,a,s), +ti(e,t,!0)):l||d(e,t,g,b,o,i,a,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ii(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){ +const e=t.target=Ri(t.props,f);e&&Ii(t,e,null,c,0)}else m&&Ii(t,u,h,c,1)}Li(t)}, +remove(e,t,n,{um:r,o:{remove:o}},i){ +const{shapeFlag:a,children:s,anchor:l,targetAnchor:c,target:u,props:d}=e +;if(u&&o(c),i&&o(l),16&a){const e=i||!Pi(d);for(let o=0;o0?qi||de:null,Fi.pop(),qi=Fi[Fi.length-1]||null, +Hi>0&&qi&&qi.push(e),e}function Wi(e,t,n,r,o,i){return Vi(ea(e,t,n,r,o,i,!0))} +function Xi(e,t,n,r,o){return Vi(ta(e,t,n,r,o,!0))}function Yi(e){ +return!!e&&!0===e.__v_isVNode}function Gi(e,t){ +return e.type===t.type&&e.key===t.key} +const Ki=({key:e})=>null!=e?e:null,Ji=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e), +null!=e?_e(e)||Ln(e)||Se(e)?{i:xr,r:e,k:t,f:!!n}:e:null) +;function ea(e,t=null,n=null,r=0,o=null,i=(e===Bi?0:1),a=!1,s=!1){const l={ +__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ki(t),ref:t&&Ji(t),scopeId:kr, +slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null, +ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null, +targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o, +dynamicChildren:null,appContext:null,ctx:xr} +;return s?(ca(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16), +Hi>0&&!a&&qi&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&qi.push(l),l} +const ta=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==Nr||(e=ji);if(Yi(e)){ +const r=ra(e,t,!0) +;return n&&ca(r,n),Hi>0&&!i&&qi&&(6&r.shapeFlag?qi[qi.indexOf(e)]=r:qi.push(r)), +r.patchFlag=-2,r}a=e,Se(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=na(t) +;let{class:e,style:n}=t +;e&&!_e(e)&&(t.class=et(e)),Te(n)&&(An(n)&&!ye(n)&&(n=ge({},n)),t.style=Xe(n))} +const s=_e(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Te(e)?4:Se(e)?2:0 +;return ea(e,t,n,r,o,s,i,!0)};function na(e){ +return e?An(e)||Io(e)?ge({},e):e:null}function ra(e,t,n=!1,r=!1){ +const{props:o,ref:i,patchFlag:a,children:s,transition:l}=e,c=t?ua(o||{},t):o,u={ +__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ki(c), +ref:t&&t.ref?n&&i?ye(i)?i.concat(Ji(t)):[i,Ji(t)]:Ji(t):i,scopeId:e.scopeId, +slotScopeIds:e.slotScopeIds,children:s,target:e.target, +targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag, +patchFlag:t&&e.type!==Bi?-1===a?16:16|a:a,dynamicProps:e.dynamicProps, +dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs, +transition:l,component:e.component,suspense:e.suspense, +ssContent:e.ssContent&&ra(e.ssContent), +ssFallback:e.ssFallback&&ra(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx, +ce:e.ce};return l&&r&&Ci(u,l.clone(u)),u}function oa(e=" ",t=0){ +return ta(Qi,null,e,t)}function ia(e,t){const n=ta(Ui,null,e) +;return n.staticCount=t,n}function aa(e="",t=!1){ +return t?(zi(),Xi(ji,null,e)):ta(ji,null,e)}function sa(e){ +return null==e||"boolean"==typeof e?ta(ji):ye(e)?ta(Bi,null,e.slice()):"object"==typeof e?la(e):ta(Qi,null,String(e)) +}function la(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ra(e)} +function ca(e,t){let n=0;const{shapeFlag:r}=e +;if(null==t)t=null;else if(ye(t))n=16;else if("object"==typeof t){if(65&r){ +const n=t.default;return void(n&&(n._c&&(n._d=!1),ca(e,n()),n._c&&(n._d=!0)))}{ +n=32;const r=t._ +;r||Io(t)?3===r&&xr&&(1===xr.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=xr} +}else Se(t)?(t={default:t,_ctx:xr},n=32):(t=String(t),64&r?(n=16,t=[oa(t)]):n=8) +;e.children=t,e.shapeFlag|=n}function ua(...e){const t={} +;for(let n=0;nfa||xr;let ga,va;{ +const e=We(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{ +r.length>1?r.forEach((t=>t(e))):r[0](e)}} +;ga=t("__VUE_INSTANCE_SETTERS__",(e=>fa=e)), +va=t("__VUE_SSR_SETTERS__",(e=>xa=e))}const ba=e=>{const t=fa +;return ga(e),e.scope.on(),()=>{e.scope.off(),ga(t)}},Oa=()=>{ +fa&&fa.scope.off(),ga(null)};function ya(e){return 4&e.vnode.shapeFlag} +let wa,xa=!1;function ka(e,t,n){ +Se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Hn(t)), +Sa(e,n)}function Sa(e,t,n){const r=e.type;if(!e.render){if(!t&&wa&&!r.render){ +const t=r.template||Oo(e).template;if(t){ +const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:i,compilerOptions:a}=r,s=ge(ge({ +isCustomElement:n,delimiters:i},o),a);r.render=wa(t,s)}}e.render=r.render||pe}{ +const t=ba(e);kt();try{go(e)}finally{St(),t()}}}const _a={ +get:(e,t)=>(Nt(e,0,""),e[t])};function Ea(e){const t=t=>{e.exposed=t||{}} +;return{attrs:new Proxy(e.attrs,_a),slots:e.slots,emit:e.emit,expose:t}} +function Ta(e){ +return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hn(Dn(e.exposed)),{ +get:(t,n)=>n in t?t[n]:n in ao?ao[n](e):void 0,has:(e,t)=>t in e||t in ao +})):e.proxy}function Ca(e,t=!0){ +return Se(e)?e.displayName||e.name:e.name||t&&e.__name}const Aa=(e,t)=>{ +const n=function(e,t,n=!1){let r,o;const i=Se(e) +;return i?(r=e,o=pe):(r=e.get,o=e.set),new Nn(r,o,i||!o,n)}(e,0,xa);return n} +;function Pa(e,t,n){const r=arguments.length +;return 2===r?Te(t)&&!ye(t)?Yi(t)?ta(e,null,[t]):ta(e,t):ta(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Yi(n)&&(n=[n]), +ta(e,t,n))} +const Da="3.4.31",$a="undefined"!=typeof document?document:null,Ra=$a&&$a.createElement("template"),Na={ +insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode +;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{ +const o="svg"===t?$a.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?$a.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?$a.createElement(e,{ +is:n}):$a.createElement(e) +;return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple), +o},createText:e=>$a.createTextNode(e),createComment:e=>$a.createComment(e), +setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t}, +parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling, +querySelector:e=>$a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")}, +insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild +;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n), +o!==i&&(o=o.nextSibling););else{ +Ra.innerHTML="svg"===r?`${e}`:"mathml"===r?`${e}`:e +;const o=Ra.content;if("svg"===r||"mathml"===r){const e=o.firstChild +;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)} +t.insertBefore(o,n)} +return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]} +},Ia="transition",Ma="animation",La=Symbol("_vtc"),Ba=(e,{slots:t})=>Pa(ki,function(e){ +const t={};for(const C in e)C in Qa||(t[C]=e[C]);if(!1===e.css)return t +;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){ +if(null==e)return null;if(Te(e))return[Fa(e.enter),Fa(e.leave)];{const t=Fa(e) +;return[t,t]} +}(o),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:O,onLeave:y,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:k=b,onAppearCancelled:S=O}=t,_=(e,t,n)=>{ +za(e,t?u:s),za(e,t?c:a),n&&n()},E=(e,t)=>{ +e._isLeaving=!1,za(e,d),za(e,h),za(e,p),t&&t()},T=e=>(t,n)=>{ +const o=e?k:b,a=()=>_(t,e,n);ja(o,[t,a]),Ha((()=>{ +za(t,e?l:i),qa(t,e?u:s),Ua(o)||Va(t,r,m,a)}))};return ge(t,{onBeforeEnter(e){ +ja(v,[e]),qa(e,i),qa(e,a)},onBeforeAppear(e){ja(x,[e]),qa(e,l),qa(e,c)}, +onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t) +;qa(e,d),qa(e,p),document.body.offsetHeight,Ha((()=>{ +e._isLeaving&&(za(e,d),qa(e,h),Ua(y)||Va(e,r,g,n))})),ja(y,[e,n])}, +onEnterCancelled(e){_(e,!1),ja(O,[e])},onAppearCancelled(e){_(e,!0),ja(S,[e])}, +onLeaveCancelled(e){E(e),ja(w,[e])}})}(e),t); +/** + * @vue/runtime-dom v3.4.31 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **/Ba.displayName="Transition";const Qa={name:String,type:String,css:{ +type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String, +enterActiveClass:String,enterToClass:String,appearFromClass:String, +appearActiveClass:String,appearToClass:String,leaveFromClass:String, +leaveActiveClass:String,leaveToClass:String};Ba.props=ge({},wi,Qa) +;const ja=(e,t=[])=>{ye(e)?e.forEach((e=>e(...t))):e&&e(...t) +},Ua=e=>!!e&&(ye(e)?e.some((e=>e.length>1)):e.length>1);function Fa(e){ +return Ze(e)}function qa(e,t){ +t.split(/\s+/).forEach((t=>t&&e.classList.add(t))), +(e[La]||(e[La]=new Set)).add(t)}function za(e,t){ +t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[La] +;n&&(n.delete(t),n.size||(e[La]=void 0))}function Ha(e){ +requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Za=0 +;function Va(e,t,n,r){const o=e._endId=++Za,i=()=>{o===e._endId&&r()} +;if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=function(e,t){ +const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${Ia}Delay`),i=r(`${Ia}Duration`),a=Wa(o,i),s=r(`${Ma}Delay`),l=r(`${Ma}Duration`),c=Wa(s,l) +;let u=null,d=0,p=0 +;t===Ia?a>0&&(u=Ia,d=a,p=i.length):t===Ma?c>0&&(u=Ma,d=c,p=l.length):(d=Math.max(a,c), +u=d>0?a>c?Ia:Ma:null,p=u?u===Ia?i.length:l.length:0) +;const h=u===Ia&&/\b(transform|all)(,|$)/.test(r(`${Ia}Property`).toString()) +;return{type:u,timeout:d,propCount:p,hasTransform:h}}(e,t);if(!a)return r() +;const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{ +t.target===e&&++u>=l&&d()};setTimeout((()=>{uXa(t)+Xa(e[n]))))}function Xa(e){ +return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))} +const Ya=Symbol("_vod"),Ga=Symbol("_vsh"),Ka={ +beforeMount(e,{value:t},{transition:n}){ +e[Ya]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ja(e,t) +},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)}, +updated(e,{value:t,oldValue:n},{transition:r}){ +!t!=!n&&(r?t?(r.beforeEnter(e),Ja(e,!0),r.enter(e)):r.leave(e,(()=>{Ja(e,!1) +})):Ja(e,t))},beforeUnmount(e,{value:t}){Ja(e,t)}};function Ja(e,t){ +e.style.display=t?e[Ya]:"none",e[Ga]=!t}const es=Symbol("");function ts(e){ +const t=ma();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{ +Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>rs(e,n))) +},r=()=>{const r=e(t.proxy);ns(t.subTree,r),n(r)};Ur((()=>{ci(r,null,{ +flush:"post"});const e=new MutationObserver(r) +;e.observe(t.subTree.el.parentNode,{childList:!0}),Hr((()=>e.disconnect()))}))} +function ns(e,t){if(128&e.shapeFlag){const n=e.suspense +;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{ +ns(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree +;if(1&e.shapeFlag&&e.el)rs(e.el,t);else if(e.type===Bi)e.children.forEach((e=>ns(e,t)));else if(e.type===Ui){ +let{el:n,anchor:r}=e;for(;n&&(rs(n,t),n!==r);)n=n.nextSibling}}function rs(e,t){ +if(1===e.nodeType){const n=e.style;let r="" +;for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[es]=r}} +const os=/(^|;)\s*display\s*:/;const is=/\s*!important$/;function as(e,t,n){ +if(ye(n))n.forEach((n=>as(e,t,n)));else if(null==n&&(n=""), +t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=ls[t] +;if(n)return n;let r=Le(t);if("filter"!==r&&r in e)return ls[t]=r;r=je(r) +;for(let o=0;o{if(e._vts){ +if(e._vts<=n.attached)return}else e._vts=Date.now();er(function(e,t){if(ye(t)){ +const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{ +n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t +}(e,n.value),t,5,[e])};return n.value=e,n.attached=vs(),n}(r,o);ds(e,n,a,s) +}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,s),i[t]=void 0) +}}const fs=/(?:Once|Passive|Capture)$/;let ms=0 +;const gs=Promise.resolve(),vs=()=>ms||(gs.then((()=>ms=0)),ms=Date.now()) +;const bs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123 +;const Os=e=>{const t=e.props["onUpdate:modelValue"]||!1 +;return ye(t)?e=>qe(t,e):t};function ys(e){e.target.composing=!0}function ws(e){ +const t=e.target +;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))} +const xs=Symbol("_assign"),ks={ +created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[xs]=Os(o) +;const i=r||o.props&&"number"===o.props.type;ds(e,t?"change":"input",(t=>{ +if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=He(r)),e[xs](r) +})),n&&ds(e,"change",(()=>{e.value=e.value.trim() +})),t||(ds(e,"compositionstart",ys),ds(e,"compositionend",ws),ds(e,"change",ws)) +},mounted(e,{value:t}){e.value=null==t?"":t}, +beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},a){ +if(e[xs]=Os(a),e.composing)return;const s=null==t?"":t +;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:He(e.value))!==s){ +if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return +;if(o&&e.value.trim()===s)return}e.value=s}}},Ss={deep:!0,created(e,t,n){ +e[xs]=Os(n),ds(e,"change",(()=>{ +const t=e._modelValue,n=Cs(e),r=e.checked,o=e[xs];if(ye(t)){ +const e=it(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t] +;n.splice(e,1),o(n)}}else if(xe(t)){const e=new Set(t) +;r?e.add(n):e.delete(n),o(e)}else o(As(e,r))}))},mounted:_s,beforeUpdate(e,t,n){ +e[xs]=Os(n),_s(e,t,n)}};function _s(e,{value:t,oldValue:n},r){ +e._modelValue=t,ye(t)?e.checked=it(t,r.props.value)>-1:xe(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=ot(t,As(e,!0))) +}const Es={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=xe(t) +;ds(e,"change",(()=>{ +const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?He(Cs(e)):Cs(e))) +;e[xs](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,dr((()=>{e._assigning=!1 +}))})),e[xs]=Os(r)},mounted(e,{value:t,modifiers:{number:n}}){Ts(e,t)}, +beforeUpdate(e,t,n){e[xs]=Os(n)},updated(e,{value:t,modifiers:{number:n}}){ +e._assigning||Ts(e,t)}};function Ts(e,t,n){const r=e.multiple,o=ye(t) +;if(!r||o||xe(t)){for(let n=0,i=e.options.length;nString(e)===String(a))):it(t,a)>-1 +}else i.selected=t.has(a);else if(ot(Cs(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n)) +}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Cs(e){ +return"_value"in e?e._value:e.value}function As(e,t){ +const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t} +const Ps=["ctrl","shift","alt","meta"],Ds={stop:e=>e.stopPropagation(), +prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget, +ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey, +left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button, +right:e=>"button"in e&&2!==e.button, +exact:(e,t)=>Ps.some((n=>e[`${n}Key`]&&!t.includes(n)))},$s=(e,t)=>{ +const n=e._withMods||(e._withMods={}),r=t.join(".") +;return n[r]||(n[r]=(n,...r)=>{for(let e=0;e{ +const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{ +if(!("key"in n))return;const r=Qe(n.key) +;return t.some((e=>e===r||Rs[e]===r))?e(n):void 0})},Is=ge({ +patchProp:(e,t,n,r,o,i,a,s,l)=>{const c="svg"===o;"class"===t?function(e,t,n){ +const r=e[La] +;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t +}(e,r,c):"style"===t?function(e,t,n){const r=e.style,o=_e(n);let i=!1;if(n&&!o){ +if(t)if(_e(t))for(const e of t.split(";")){ +const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&as(r,t,"") +}else for(const e in t)null==n[e]&&as(r,e,"") +;for(const e in n)"display"===e&&(i=!0),as(r,e,n[e])}else if(o){if(t!==n){ +const e=r[es];e&&(n+=";"+e),r.cssText=n,i=os.test(n)} +}else t&&e.removeAttribute("style") +;Ya in e&&(e[Ya]=i?r.display:"",e[Ga]&&(r.display="none")) +}(e,n,r):fe(t)?me(t)||hs(e,t,0,r,a):("."===t[0]?(t=t.slice(1), +1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){ +if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&bs(t)&&Se(n)) +;if("spellcheck"===t||"draggable"===t||"translate"===t)return!1 +;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1 +;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){ +const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1 +}if(bs(t)&&_e(n))return!1;return t in e}(e,t,r,c))?(!function(e,t,n,r,o,i,a){ +if("innerHTML"===t||"textContent"===t)return r&&a(r,o,i),void(e[t]=null==n?"":n) +;const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){ +const r="OPTION"===s?e.getAttribute("value")||"":e.value,o=null==n?"":String(n) +;return r===o&&"_value"in e||(e.value=o), +null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){ +const r=typeof e[t] +;"boolean"===r?n=rt(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0, +l=!0)}try{e[t]=n}catch(P$){}l&&e.removeAttribute(t) +}(e,t,r,i,a,s,l),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||us(e,t,r,c,0,"value"!==t)):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r), +us(e,t,r,c))}},Na);let Ms;function Ls(){return Ms||(Ms=Ko(Is))} +const Bs=(...e)=>{const t=Ls().createApp(...e),{mount:n}=t;return t.mount=e=>{ +const r=function(e){if(_e(e)){return document.querySelector(e)}return e}(e) +;if(!r)return;const o=t._component +;Se(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="" +;const i=n(r,!1,function(e){if(e instanceof SVGElement)return"svg" +;if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml" +}(r)) +;return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")), +i},t};const Qs=Da.startsWith("3");function js(e,t=""){ +if(e instanceof Promise)return e;const n="function"==typeof(r=e)?r():Fn(r);var r +;return e&&n?Array.isArray(n)?n.map((e=>js(e,t))):"object"==typeof n?Object.fromEntries(Object.entries(n).map((([e,t])=>"titleTemplate"===e||e.startsWith("on")?[e,Fn(t)]:[e,js(t,e)]))):n:n +}const Us={hooks:{"entries:resolve":function(e){ +for(const t of e.entries)t.resolvedInput=js(t.input)}}},Fs="usehead" +;function qs(e={}){ +e.domDelayFn=e.domDelayFn||(e=>dr((()=>setTimeout((()=>e()),0))));const t=se(e) +;return t.use(Us),t.install=function(e){return{install(t){ +Qs&&(t.config.globalProperties.$unhead=e, +t.config.globalProperties.$head=e,t.provide(Fs,e))}}.install}(t),t} +const zs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Hs="__unhead_injection_handler__" +;function Zs(){if(Hs in zs)return zs[Hs]();const e=$o(Fs);return e||ae} +function Vs(e,t={}){const n=t.head||Zs() +;if(n)return n.ssr?n.push(e,t):function(e,t,n={}){const r=Bn(!1),o=Bn({}) +;ai((()=>{o.value=r.value?{}:js(t)}));const i=e.push(o.value,n);li(o,(e=>{ +i.patch(e)}));ma()&&(zr((()=>{i.dispose()})),mi((()=>{r.value=!0})),fi((()=>{ +r.value=!1})));return i}(n,e,t)} +const Ws=["GET","POST","PUT","HEAD","DELETE","PATCH","OPTIONS","CONNECT","TRACE"] +;function Xs(e,t){var n,r;const o=[],i=[],a=[] +;if(!e.customSecurity&&(!e.preferredSecurityScheme||(!(s=t)||Array.isArray(s)&&!s.length||(s??[]).some((e=>!Object.keys(e).length)))))return{ +headers:o,queryString:i,cookies:a};var s +;const l=(null==t?void 0:t.some((t=>e.preferredSecurityScheme&&Object.keys(t).includes(e.preferredSecurityScheme))))||e.customSecurity?e.preferredSecurityScheme:Object.keys((null==t?void 0:t[0])??{}).pop(),c=null==(n=e.securitySchemes)?void 0:n[l??""] +;if(c)if("type"in c&&"apiKey"===c.type){if("in"in c&&"header"===c.in){ +const t=(null==(r=e.apiKey.token)?void 0:r.length)?e.apiKey.token:"YOUR_TOKEN" +;o.push({name:"name"in c?c.name:"",value:t})}else if("in"in c&&"cookie"===c.in){ +const t=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";a.push({name:c.name, +value:t})}else if("in"in c&&"query"===c.in){ +const t=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";i.push({name:c.name, +value:t})}}else if(!("type"in c)||"http"!==c.type&&"basic"!==c.type){ +if("type"in c&&"oauth2"===c.type.toLowerCase()){ +const t=e.oAuth2.accessToken||"YOUR_SECRET_TOKEN";o.push({name:"Authorization", +value:`Bearer ${t}`})} +}else if("type"in c&&("basic"===c.type||"http"===c.type&&"basic"===c.scheme)){ +const{username:t,password:n}=e.http.basic,r=Ys(t,n);o.push({ +name:"Authorization",value:`Basic ${r}`.trim()}) +}else if("type"in c&&"http"===c.type&&"bearer"===c.scheme){ +const t=e.http.bearer.token.length?e.http.bearer.token:"YOUR_SECRET_TOKEN" +;o.push({name:"Authorization",value:`Bearer ${t}`})}return{headers:o, +queryString:i,cookies:a}}function Ys(e,t){ +return(null==e?void 0:e.length)||(null==t?void 0:t.length)?(n=`${e}:${t}`, +"undefined"==typeof window?Buffer.from(n).toString("base64"):btoa(n)):"";var n} +function Gs(e){ +return[e.apiKey.token,e.http.bearer.token,e.oAuth2.accessToken,Ys(e.http.basic.username,e.http.basic.password),e.http.basic.password].filter(Boolean) +}const Ks=(e,t)=>{if("string"!=typeof t||!t.length)return e +;const n=e.trim(),r=t.trim() +;return[n.endsWith("/")?n:`${n}/`,r.startsWith("/")?r.slice(1):r].join("")} +;function Js(e,t){if(!tl(e,t))return t??"";const n=new URL(t) +;return n.href=e,n.searchParams.append("scalar_url",t),n.toString()} +const el=e=>!/^https?:\/\//.test(e);function tl(e,t){ +return!(!e||!t)&&(!el(t)&&!function(e){const{hostname:t}=new URL(e) +;return["localhost","127.0.0.1","[::1]"].includes(t)}(t))} +const nl=Symbol.for("yaml.alias"),rl=Symbol.for("yaml.document"),ol=Symbol.for("yaml.map"),il=Symbol.for("yaml.pair"),al=Symbol.for("yaml.scalar"),sl=Symbol.for("yaml.seq"),ll=Symbol.for("yaml.node.type"),cl=e=>!!e&&"object"==typeof e&&e[ll]===nl,ul=e=>!!e&&"object"==typeof e&&e[ll]===rl,dl=e=>!!e&&"object"==typeof e&&e[ll]===ol,pl=e=>!!e&&"object"==typeof e&&e[ll]===il,hl=e=>!!e&&"object"==typeof e&&e[ll]===al,fl=e=>!!e&&"object"==typeof e&&e[ll]===sl +;function ml(e){if(e&&"object"==typeof e)switch(e[ll]){case ol:case sl:return!0} +return!1}function gl(e){if(e&&"object"==typeof e)switch(e[ll]){case nl:case ol: +case al:case sl:return!0}return!1} +const vl=e=>(hl(e)||ml(e))&&!!e.anchor,bl=Symbol("break visit"),Ol=Symbol("skip children"),yl=Symbol("remove node") +;function wl(e,t){const n=function(e){ +if("object"==typeof e&&(e.Collection||e.Node||e.Value))return Object.assign({ +Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value, +Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e) +;return e}(t);if(ul(e)){ +xl(null,e.contents,n,Object.freeze([e]))===yl&&(e.contents=null) +}else xl(null,e,n,Object.freeze([]))}function xl(e,t,n,r){ +const o=function(e,t,n,r){var o,i,a,s,l +;return"function"==typeof n?n(e,t,r):dl(t)?null==(o=n.Map)?void 0:o.call(n,e,t,r):fl(t)?null==(i=n.Seq)?void 0:i.call(n,e,t,r):pl(t)?null==(a=n.Pair)?void 0:a.call(n,e,t,r):hl(t)?null==(s=n.Scalar)?void 0:s.call(n,e,t,r):cl(t)?null==(l=n.Alias)?void 0:l.call(n,e,t,r):void 0 +}(e,t,n,r);if(gl(o)||pl(o))return function(e,t,n){const r=t[t.length-1] +;if(ml(r))r.items[e]=n;else if(pl(r))"key"===e?r.key=n:r.value=n;else{ +if(!ul(r)){const e=cl(r)?"alias":"scalar" +;throw new Error(`Cannot replace node with ${e} parent`)}r.contents=n} +}(e,r,o),xl(e,o,n,r);if("symbol"!=typeof o)if(ml(t)){ +r=Object.freeze(r.concat(t));for(let e=0;e"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)} +const[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`) +;const o=this.tags[n];if(o)try{return o+decodeURIComponent(r)}catch(i){ +return t(String(i)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null) +}tagString(e){ +for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>kl[e])) +;return"!"===e[0]?e:`!<${e}>`}toString(e){ +const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags) +;let r;if(e&&n.length>0&&gl(e.contents)){const t={};wl(e.contents,((e,n)=>{ +gl(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[] +;for(const[o,i]of n)"!!"===o&&"tag:yaml.org,2002:"===i||e&&!r.some((e=>e.startsWith(i)))||t.push(`%TAG ${o} ${i}`) +;return t.join("\n")}}function _l(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){ +const t=JSON.stringify(e) +;throw new Error(`Anchor must not contain whitespace or control characters: ${t}`) +}return!0}function El(e){const t=new Set;return wl(e,{Value(e,n){ +n.anchor&&t.add(n.anchor)}}),t}function Tl(e,t){for(let n=1;;++n){ +const r=`${e}${n}`;if(!t.has(r))return r}}function Cl(e,t,n,r){ +if(r&&"object"==typeof r)if(Array.isArray(r))for(let o=0,i=r.length;oAl(e,String(t),n))) +;if(e&&"function"==typeof e.toJSON){if(!n||!vl(e))return e.toJSON(t,n);const r={ +aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{ +r.res=e,delete n.onCreate};const o=e.toJSON(t,n) +;return n.onCreate&&n.onCreate(o),o} +return"bigint"!=typeof e||(null==n?void 0:n.keep)?e:Number(e)}Sl.defaultYaml={ +explicit:!1,version:"1.2"},Sl.defaultTags={"!!":"tag:yaml.org,2002:"};class Pl{ +constructor(e){Object.defineProperty(this,ll,{value:e})}clone(){ +const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this)) +;return this.range&&(e.range=this.range.slice()),e} +toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:o}={}){ +if(!ul(e))throw new TypeError("A document argument is required");const i={ +anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1, +maxAliasCount:"number"==typeof n?n:100},a=Al(this,"",i) +;if("function"==typeof r)for(const{count:s,res:l}of i.anchors.values())r(l,s) +;return"function"==typeof o?Cl(o,{"":a},"",a):a}}let Dl=class extends Pl{ +constructor(e){super(nl),this.source=e,Object.defineProperty(this,"tag",{set(){ +throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t +;return wl(e,{Node:(e,n)=>{if(n===this)return wl.BREAK +;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source} +;const{anchors:n,doc:r,maxAliasCount:o}=t,i=this.resolve(r);if(!i){ +const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}` +;throw new ReferenceError(e)}let a=n.get(i) +;if(a||(Al(i,null,t),a=n.get(i)),!a||void 0===a.res){ +throw new ReferenceError("This should not happen: Alias anchor was not resolved?") +} +if(o>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=$l(r,i,n)),a.count*a.aliasCount>o)){ +throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack") +}return a.res}toString(e,t,n){const r=`*${this.source}`;if(e){ +if(_l(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){ +const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}` +;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}} +;function $l(e,t,n){if(cl(t)){const r=t.resolve(e),o=n&&r&&n.get(r) +;return o?o.count*o.aliasCount:0}if(ml(t)){let r=0;for(const o of t.items){ +const t=$l(e,o,n);t>r&&(r=t)}return r}if(pl(t)){ +const r=$l(e,t.key,n),o=$l(e,t.value,n);return Math.max(r,o)}return 1} +const Rl=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Nl extends Pl{ +constructor(e){super(al),this.value=e}toJSON(e,t){ +return(null==t?void 0:t.keep)?this.value:Al(this.value,e,t)}toString(){ +return String(this.value)}} +Nl.BLOCK_FOLDED="BLOCK_FOLDED",Nl.BLOCK_LITERAL="BLOCK_LITERAL", +Nl.PLAIN="PLAIN",Nl.QUOTE_DOUBLE="QUOTE_DOUBLE",Nl.QUOTE_SINGLE="QUOTE_SINGLE" +;const Il="tag:yaml.org,2002:";function Ml(e,t,n){var r,o,i +;if(ul(e)&&(e=e.contents),gl(e))return e;if(pl(e)){ +const t=null==(o=(r=n.schema[ol]).createNode)?void 0:o.call(r,n.schema,null,n) +;return t.items.push(e),t} +(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf()) +;const{aliasDuplicateObjects:a,onAnchor:s,onTagObj:l,schema:c,sourceObjects:u}=n +;let d;if(a&&e&&"object"==typeof e){ +if(d=u.get(e),d)return d.anchor||(d.anchor=s(e)),new Dl(d.anchor);d={ +anchor:null,node:null},u.set(e,d)} +(null==t?void 0:t.startsWith("!!"))&&(t=Il+t.slice(2));let p=function(e,t,n){ +if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0] +;if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>{var n +;return(null==(n=t.identify)?void 0:n.call(t,e))&&!t.format}))}(e,t,c.tags) +;if(!p){ +if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){ +const t=new Nl(e);return d&&(d.node=t),t} +p=e instanceof Map?c[ol]:Symbol.iterator in Object(e)?c[sl]:c[ol]} +l&&(l(p),delete n.onTagObj) +;const h=(null==p?void 0:p.createNode)?p.createNode(n.schema,e,n):"function"==typeof(null==(i=null==p?void 0:p.nodeClass)?void 0:i.from)?p.nodeClass.from(n.schema,e,n):new Nl(e) +;return t?h.tag=t:p.default||(h.tag=p.tag),d&&(d.node=h),h}function Ll(e,t,n){ +let r=n;for(let o=t.length-1;o>=0;--o){const e=t[o] +;if("number"==typeof e&&Number.isInteger(e)&&e>=0){const t=[];t[e]=r,r=t +}else r=new Map([[e,r]])}return Ml(r,void 0,{aliasDuplicateObjects:!1, +keepUndefined:!1,onAnchor:()=>{ +throw new Error("This should not happen, please report a bug.")},schema:e, +sourceObjects:new Map})} +const Bl=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done +;class Ql extends Pl{constructor(e,t){ +super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0, +enumerable:!1,writable:!0})}clone(e){ +const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this)) +;return e&&(t.schema=e), +t.items=t.items.map((t=>gl(t)||pl(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()), +t}addIn(e,t){if(Bl(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0) +;if(ml(o))o.addIn(r,t);else{ +if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`) +;this.set(n,Ll(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e +;if(0===n.length)return this.delete(t);const r=this.get(t,!0) +;if(ml(r))return r.deleteIn(n) +;throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)} +getIn(e,t){const[n,...r]=e,o=this.get(n,!0) +;return 0===r.length?!t&&hl(o)?o.value:o:ml(o)?o.getIn(r,t):void 0} +hasAllNullValues(e){return this.items.every((t=>{if(!pl(t))return!1 +;const n=t.value +;return null==n||e&&hl(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag +}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t) +;const r=this.get(t,!0);return!!ml(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e +;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0) +;if(ml(e))e.setIn(r,t);else{ +if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`) +;this.set(n,Ll(this.schema,r,t))}}}}Ql.maxFlowStringSingleLineLength=60 +;const jl=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ul(e,t){ +return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e} +const Fl=(e,t,n)=>e.endsWith("\n")?Ul(n,t):n.includes("\n")?"\n"+Ul(n,t):(e.endsWith(" ")?"":" ")+n,ql="flow",zl="block",Hl="quoted" +;function Zl(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:a,onOverflow:s}={}){ +if(!o||o<0)return e;const l=Math.max(1+i,1+o-t.length);if(e.length<=l)return e +;const c=[],u={};let d,p,h=o-t.length +;"number"==typeof r&&(r>o-Math.max(2,i)?c.push(0):h=o-r);let f=!1,m=-1,g=-1,v=-1 +;n===zl&&(m=Vl(e,m,t.length),-1!==m&&(h=m+l));for(let O;O=e[m+=1];){ +if(n===Hl&&"\\"===O){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break +;case"U":m+=9;break;default:m+=1}v=m} +if("\n"===O)n===zl&&(m=Vl(e,m,t.length)),h=m+t.length+l,d=void 0;else{ +if(" "===O&&p&&" "!==p&&"\n"!==p&&"\t"!==p){const t=e[m+1] +;t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=m)} +if(m>=h)if(d)c.push(d),h=d+l,d=void 0;else if(n===Hl){ +for(;" "===p||"\t"===p;)p=O,O=e[m+=1],f=!0;const t=m>v+1?m-2:g-1 +;if(u[t])return e;c.push(t),u[t]=!0,h=t+l,d=void 0}else f=!0}p=O} +if(f&&s&&s(),0===c.length)return e;a&&a();let b=e.slice(0,c[0]) +;for(let O=0;O({ +indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth, +minContentWidth:e.options.minContentWidth}),Xl=e=>/^(%|---|\.\.\.)/m.test(e) +;function Yl(e,t){const n=JSON.stringify(e) +;if(t.options.doubleQuotedAsJSON)return n +;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Xl(e)?" ":"") +;let a="",s=0 +;for(let l=0,c=n[l];c;c=n[++l])if(" "===c&&"\\"===n[l+1]&&"n"===n[l+2]&&(a+=n.slice(s,l)+"\\ ", +l+=1,s=l,c="\\"),"\\"===c)switch(n[l+1]){case"u":{a+=n.slice(s,l) +;const e=n.substr(l+2,4);switch(e){case"0000":a+="\\0";break;case"0007":a+="\\a" +;break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N" +;break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P" +;break;default:"00"===e.substr(0,2)?a+="\\x"+e.substr(2):a+=n.substr(l,6)} +l+=5,s=l+1}break;case"n":if(r||'"'===n[l+2]||n.lengthr)return!0 +;if(a=i+1,o-a<=r)return!1}return!0}(n,l,c.length));if(!n)return u?"|\n":">\n" +;let d,p;for(p=n.length;p>0;--p){const e=n[p-1] +;if("\n"!==e&&"\t"!==e&&" "!==e)break}let h=n.substring(p) +;const f=h.indexOf("\n");-1===f?d="-":n===h||f!==h.length-1?(d="+",i&&i()):d="", +h&&(n=n.slice(0,-h.length), +"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(Jl,`$&${c}`)) +;let m,g=!1,v=-1;for(m=0;m")+(g?c?"2":"1":"")+d +;if(e&&(O+=" "+s(e.replace(/ ?[\r\n]+/g," ")), +o&&o()),u)return`${O}\n${c}${b}${n=n.replace(/\n+/g,`$&${c}`)}${h}` +;return`${O}\n${c}${Zl(`${b}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`)}${h}`,c,zl,Wl(r,!0))}` +}function tc(e,t,n,r){ +const{implicitKey:o,inFlow:i}=t,a="string"==typeof e.value?e:Object.assign({},e,{ +value:String(e.value)});let{type:s}=e +;s!==Nl.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=Nl.QUOTE_DOUBLE) +;const l=e=>{switch(e){case Nl.BLOCK_FOLDED:case Nl.BLOCK_LITERAL: +return o||i?Kl(a.value,t):ec(a,t,n,r);case Nl.QUOTE_DOUBLE:return Yl(a.value,t) +;case Nl.QUOTE_SINGLE:return Gl(a.value,t);case Nl.PLAIN: +return function(e,t,n,r){ +const{type:o,value:i}=e,{actualString:a,implicitKey:s,indent:l,indentStep:c,inFlow:u}=t +;if(s&&i.includes("\n")||u&&/[[\]{},]/.test(i))return Kl(i,t) +;if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||u||!i.includes("\n")?Kl(i,t):ec(e,t,n,r) +;if(!s&&!u&&o!==Nl.PLAIN&&i.includes("\n"))return ec(e,t,n,r);if(Xl(i)){ +if(""===l)return t.forceBlockIndent=!0,ec(e,t,n,r);if(s&&l===c)return Kl(i,t)} +const d=i.replace(/\n+/g,`$&\n${l}`);if(a){const e=e=>{var t +;return e.default&&"tag:yaml.org,2002:str"!==e.tag&&(null==(t=e.test)?void 0:t.test(d)) +},{compat:n,tags:r}=t.doc.schema +;if(r.some(e)||(null==n?void 0:n.some(e)))return Kl(i,t)} +return s?d:Zl(d,l,ql,Wl(t,!1))}(a,t,n,r);default:return null}};let c=l(s) +;if(null===c){const{defaultKeyType:e,defaultStringType:n}=t.options,r=o&&e||n +;if(c=l(r),null===c)throw new Error(`Unsupported default string type ${r}`)} +return c}function nc(e,t){const n=Object.assign({blockQuote:!0,commentString:jl, +defaultKeyType:null,defaultStringType:"PLAIN",directives:null, +doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false", +flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20, +nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0 +},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1 +;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e, +flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"", +indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r, +options:n}}function rc(e,t,n,r){var o;if(pl(e))return e.toString(t,n,r) +;if(cl(e)){if(t.doc.directives)return e.toString(t) +;if(null==(o=t.resolvedAliases)?void 0:o.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes") +;t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]), +e=e.resolve(t.doc)}let i;const a=gl(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e}) +;i||(i=function(e,t){var n;if(t.tag){const n=e.filter((e=>e.tag===t.tag)) +;if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let r,o;if(hl(t)){ +o=t.value;const n=e.filter((e=>{var t +;return null==(t=e.identify)?void 0:t.call(e,o)})) +;r=n.find((e=>e.format===t.format))??n.find((e=>!e.format)) +}else o=t,r=e.find((e=>e.nodeClass&&o instanceof e.nodeClass));if(!r){ +const e=(null==(n=null==o?void 0:o.constructor)?void 0:n.name)??typeof o +;throw new Error(`Tag not resolved for ${e} value`)}return r +}(t.doc.schema.tags,a));const s=function(e,t,{anchors:n,doc:r}){ +if(!r.directives)return"";const o=[],i=(hl(e)||ml(e))&&e.anchor +;i&&_l(i)&&(n.add(i),o.push(`&${i}`));const a=e.tag?e.tag:t.default?null:t.tag +;return a&&o.push(r.directives.tagString(a)),o.join(" ")}(a,i,t) +;s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1) +;const l="function"==typeof i.stringify?i.stringify(a,t,n,r):hl(a)?tc(a,t,n,r):a.toString(t,n,r) +;return s?hl(a)||"{"===l[0]||"["===l[0]?`${s} ${l}`:`${s}\n${t.indent}${l}`:l} +function oc(e,t){ +"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t)) +}function ic(e,t,{key:n,value:r}){ +if((null==e?void 0:e.doc.schema.merge)&&ac(n))if(r=cl(r)?r.resolve(e.doc):r, +fl(r))for(const o of r.items)sc(e,t,o);else if(Array.isArray(r))for(const o of r)sc(e,t,o);else sc(e,t,r);else{ +const o=Al(n,"",e) +;if(t instanceof Map)t.set(o,Al(r,o,e));else if(t instanceof Set)t.add(o);else{ +const i=function(e,t,n){if(null===t)return"" +;if("object"!=typeof t)return String(t);if(gl(e)&&(null==n?void 0:n.doc)){ +const t=nc(n.doc,{});t.anchors=new Set +;for(const e of n.anchors.keys())t.anchors.add(e.anchor) +;t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){ +let e=JSON.stringify(r) +;e.length>40&&(e=e.substring(0,36)+'..."'),oc(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`), +n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,o,e),a=Al(r,i,e) +;i in t?Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0, +configurable:!0}):t[i]=a}}return t} +const ac=e=>"<<"===e||hl(e)&&"<<"===e.value&&(!e.type||e.type===Nl.PLAIN) +;function sc(e,t,n){const r=e&&cl(n)?n.resolve(e.doc):n +;if(!dl(r))throw new Error("Merge sources must be maps or map aliases") +;const o=r.toJSON(null,e,Map) +;for(const[i,a]of o)t instanceof Map?t.has(i)||t.set(i,a):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{ +value:a,writable:!0,enumerable:!0,configurable:!0});return t}function lc(e,t,n){ +const r=Ml(e,void 0,n),o=Ml(t,void 0,n);return new cc(r,o)}class cc{ +constructor(e,t=null){Object.defineProperty(this,ll,{value:il +}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this +;return gl(t)&&(t=t.clone(e)),gl(n)&&(n=n.clone(e)),new cc(t,n)}toJSON(e,t){ +return ic(t,(null==t?void 0:t.mapAsMap)?new Map:{},this)}toString(e,t,n){ +return(null==e?void 0:e.doc)?function({key:e,value:t},n,r,o){ +const{allNullValues:i,doc:a,indent:s,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:d}}=n +;let p=gl(e)&&e.comment||null;if(d){ +if(p)throw new Error("With simple keys, key nodes cannot have comments") +;if(ml(e)||!gl(e)&&"object"==typeof e)throw new Error("With simple keys, collection cannot be used as a key value") +} +let h=!d&&(!e||p&&null==t&&!n.inFlow||ml(e)||(hl(e)?e.type===Nl.BLOCK_FOLDED||e.type===Nl.BLOCK_LITERAL:"object"==typeof e)) +;n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(d||!i),indent:s+l}) +;let f,m,g,v=!1,b=!1,O=rc(e,n,(()=>v=!0),(()=>b=!0)) +;if(!h&&!n.inFlow&&O.length>1024){ +if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters") +;h=!0}if(n.inFlow){if(i||null==t)return v&&r&&r(),""===O?"?":h?`? ${O}`:O +}else if(i&&!d||null==t&&h)return O=`? ${O}`, +p&&!v?O+=Fl(O,n.indent,c(p)):b&&o&&o(),O +;v&&(p=null),h?(p&&(O+=Fl(O,n.indent,c(p))), +O=`? ${O}\n${s}:`):(O=`${O}:`,p&&(O+=Fl(O,n.indent,c(p)))), +gl(t)?(f=!!t.spaceBefore, +m=t.commentBefore,g=t.comment):(f=!1,m=null,g=null,t&&"object"==typeof t&&(t=a.createNode(t))), +n.implicitKey=!1, +h||p||!hl(t)||(n.indentAtStart=O.length+1),b=!1,u||!(l.length>=2)||n.inFlow||h||!fl(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2)) +;let y=!1;const w=rc(t,n,(()=>y=!0),(()=>b=!0));let x=" " +;if(p||f||m)x=f?"\n":"", +m&&(x+=`\n${Ul(c(m),n.indent)}`),""!==w||n.inFlow?x+=`\n${n.indent}`:"\n"===x&&(x="\n\n");else if(!h&&ml(t)){ +const e=w[0],r=w.indexOf("\n"),o=-1!==r,i=n.inFlow??t.flow??0===t.items.length +;if(o||!i){let t=!1;if(o&&("&"===e||"!"===e)){let n=w.indexOf(" ") +;"&"===e&&-1!==n&&no=null),(()=>d=!0)) +;o&&(a+=Fl(a,i,c(o))),d&&o&&(d=!1),p.push(r+a)}let h +;if(0===p.length)h=o.start+o.end;else{h=p[0];for(let e=1;eo=null)) +;fu||i.includes("\n"))&&(c=!0),d.push(i),u=d.length} +const{start:p,end:h}=n;if(0===d.length)return p+h;if(!c){ +const e=d.reduce(((e,t)=>e+t.length+2),2) +;c=t.options.lineWidth>0&&e>t.options.lineWidth}if(c){let e=p +;for(const t of d)e+=t?`\n${i}${o}${t}`:"\n";return`${e}\n${o}${h}`} +return`${p}${a}${d.join(" ")}${a}${h}`} +function hc({indent:e,options:{commentString:t}},n,r,o){ +if(r&&o&&(r=r.replace(/^\n+/,"")),r){const o=Ul(t(r),e);n.push(o.trimStart())}} +function fc(e,t){const n=hl(t)?t.value:t;for(const r of e)if(pl(r)){ +if(r.key===t||r.key===n)return r;if(hl(r.key)&&r.key.value===n)return r}} +class mc extends Ql{static get tagName(){return"tag:yaml.org,2002:map"} +constructor(e){super(ol,e),this.items=[]}static from(e,t,n){ +const{keepUndefined:r,replacer:o}=n,i=new this(e),a=(e,a)=>{ +if("function"==typeof o)a=o.call(t,e,a);else if(Array.isArray(o)&&!o.includes(e))return +;(void 0!==a||r)&&i.items.push(lc(e,a,n))} +;if(t instanceof Map)for(const[s,l]of t)a(s,l);else if(t&&"object"==typeof t)for(const s of Object.keys(t))a(s,t[s]) +;return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i} +add(e,t){var n;let r +;r=pl(e)?e:e&&"object"==typeof e&&"key"in e?new cc(e.key,e.value):new cc(e,null==e?void 0:e.value) +;const o=fc(this.items,r.key),i=null==(n=this.schema)?void 0:n.sortMapEntries +;if(o){if(!t)throw new Error(`Key ${r.key} already set`) +;hl(o.value)&&Rl(r.value)?o.value.value=r.value:o.value=r.value}else if(i){ +const e=this.items.findIndex((e=>i(r,e)<0)) +;-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)} +delete(e){const t=fc(this.items,e);if(!t)return!1 +;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){ +const n=fc(this.items,e),r=null==n?void 0:n.value +;return(!t&&hl(r)?r.value:r)??void 0}has(e){return!!fc(this.items,e)}set(e,t){ +this.add(new cc(e,t),!0)}toJSON(e,t,n){ +const r=n?new n:(null==t?void 0:t.mapAsMap)?new Map:{} +;(null==t?void 0:t.onCreate)&&t.onCreate(r);for(const o of this.items)ic(t,r,o) +;return r}toString(e,t,n){if(!e)return JSON.stringify(this) +;for(const r of this.items)if(!pl(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`) +;return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{ +allNullValues:!0})),uc(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"}, +itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const gc={collection:"map", +default:!0,nodeClass:mc,tag:"tag:yaml.org,2002:map", +resolve:(e,t)=>(dl(e)||t("Expected a mapping for this tag"),e), +createNode:(e,t,n)=>mc.from(e,t,n)};class vc extends Ql{static get tagName(){ +return"tag:yaml.org,2002:seq"}constructor(e){super(sl,e),this.items=[]}add(e){ +this.items.push(e)}delete(e){const t=bc(e);if("number"!=typeof t)return!1 +;return this.items.splice(t,1).length>0}get(e,t){const n=bc(e) +;if("number"!=typeof n)return;const r=this.items[n];return!t&&hl(r)?r.value:r} +has(e){const t=bc(e);return"number"==typeof t&&t=0?t:null}const Oc={collection:"seq", +default:!0,nodeClass:vc,tag:"tag:yaml.org,2002:seq", +resolve:(e,t)=>(fl(e)||t("Expected a sequence for this tag"),e), +createNode:(e,t,n)=>vc.from(e,t,n)},yc={identify:e=>"string"==typeof e, +default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e, +stringify:(e,t,n,r)=>tc(e,t=Object.assign({actualString:!0},t),n,r)},wc={ +identify:e=>null==e,createNode:()=>new Nl(null),default:!0, +tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/, +resolve:()=>new Nl(null), +stringify:({source:e},t)=>"string"==typeof e&&wc.test.test(e)?e:t.options.nullStr +},xc={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool", +test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/, +resolve:e=>new Nl("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},n){ +if(e&&xc.test.test(e)){if(t===("t"===e[0]||"T"===e[0]))return e} +return t?n.options.trueStr:n.options.falseStr}} +;function kc({format:e,minFractionDigits:t,tag:n,value:r}){ +if("bigint"==typeof r)return String(r);const o="number"==typeof r?r:Number(r) +;if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf" +;let i=JSON.stringify(r) +;if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){ +let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1) +;for(;n-- >0;)i+="0"}return i}const Sc={identify:e=>"number"==typeof e, +default:!0,tag:"tag:yaml.org,2002:float", +test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/, +resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY, +stringify:kc},_c={identify:e=>"number"==typeof e,default:!0, +tag:"tag:yaml.org,2002:float",format:"EXP", +test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/, +resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value) +;return isFinite(t)?t.toExponential():kc(e)}},Ec={ +identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float", +test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){ +const t=new Nl(parseFloat(e)),n=e.indexOf(".") +;return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t}, +stringify:kc +},Tc=e=>"bigint"==typeof e||Number.isInteger(e),Cc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n) +;function Ac(e,t,n){const{value:r}=e;return Tc(r)&&r>=0?n+r.toString(t):kc(e)} +const Pc={identify:e=>Tc(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int", +format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Cc(e,2,8,n), +stringify:e=>Ac(e,8,"0o")},Dc={identify:Tc,default:!0, +tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Cc(e,0,10,n), +stringify:kc},$c={identify:e=>Tc(e)&&e>=0,default:!0, +tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/, +resolve:(e,t,n)=>Cc(e,2,16,n),stringify:e=>Ac(e,16,"0x") +},Rc=[gc,Oc,yc,wc,xc,Pc,Dc,$c,Sc,_c,Ec];function Nc(e){ +return"bigint"==typeof e||Number.isInteger(e)} +const Ic=({value:e})=>JSON.stringify(e),Mc=[gc,Oc].concat([{ +identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str", +resolve:e=>e,stringify:Ic},{identify:e=>null==e,createNode:()=>new Nl(null), +default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null, +stringify:Ic},{identify:e=>"boolean"==typeof e,default:!0, +tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e, +stringify:Ic},{identify:Nc,default:!0,tag:"tag:yaml.org,2002:int", +test:/^-?(?:0|[1-9][0-9]*)$/, +resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10), +stringify:({value:e})=>Nc(e)?e.toString():JSON.stringify(e)},{ +identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float", +test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/, +resolve:e=>parseFloat(e),stringify:Ic}],{default:!0,tag:"",test:/^/, +resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),Lc={ +identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary", +resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64") +;if("function"==typeof atob){ +const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length) +;for(let e=0;e1&&t("Each pair must have its own sequence indicator") +;const e=r.items[0]||new cc(new Nl(null)) +;if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore), +r.comment){const t=e.value??e.key +;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e} +e.items[n]=pl(r)?r:new cc(r)}}else t("Expected a sequence for this tag") +;return e}function Qc(e,t,n){const{replacer:r}=n,o=new vc(e) +;o.tag="tag:yaml.org,2002:pairs";let i=0 +;if(t&&Symbol.iterator in Object(t))for(let a of t){let e,s +;if("function"==typeof r&&(a=r.call(t,String(i++),a)),Array.isArray(a)){ +if(2!==a.length)throw new TypeError(`Expected [key, value] tuple: ${a}`);e=a[0], +s=a[1]}else if(a&&a instanceof Object){const t=Object.keys(a) +;if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`) +;e=t[0],s=a[e]}else e=a;o.items.push(lc(e,s,n))}return o}const jc={ +collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Bc, +createNode:Qc};class Uc extends vc{constructor(){ +super(),this.add=mc.prototype.add.bind(this), +this.delete=mc.prototype.delete.bind(this),this.get=mc.prototype.get.bind(this), +this.has=mc.prototype.has.bind(this), +this.set=mc.prototype.set.bind(this),this.tag=Uc.tag}toJSON(e,t){ +if(!t)return super.toJSON(e);const n=new Map +;(null==t?void 0:t.onCreate)&&t.onCreate(n);for(const r of this.items){let e,o +;if(pl(r)?(e=Al(r.key,"",t), +o=Al(r.value,e,t)):e=Al(r,"",t),n.has(e))throw new Error("Ordered maps must not include duplicate keys") +;n.set(e,o)}return n}static from(e,t,n){const r=Qc(e,t,n),o=new this +;return o.items=r.items,o}}Uc.tag="tag:yaml.org,2002:omap";const Fc={ +collection:"seq",identify:e=>e instanceof Map,nodeClass:Uc,default:!1, +tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Bc(e,t),r=[] +;for(const{key:o}of n.items)hl(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value)) +;return Object.assign(new Uc,n)},createNode:(e,t,n)=>Uc.from(e,t,n)} +;function qc({value:e,source:t},n){ +return t&&(e?zc:Hc).test.test(t)?t:e?n.options.trueStr:n.options.falseStr} +const zc={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool", +test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Nl(!0), +stringify:qc},Hc={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool", +test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Nl(!1), +stringify:qc},Zc={identify:e=>"number"==typeof e,default:!0, +tag:"tag:yaml.org,2002:float", +test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/, +resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY, +stringify:kc},Vc={identify:e=>"number"==typeof e,default:!0, +tag:"tag:yaml.org,2002:float",format:"EXP", +test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/, +resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value) +;return isFinite(t)?t.toExponential():kc(e)}},Wc={ +identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float", +test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){ +const t=new Nl(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){ +const r=e.substring(n+1).replace(/_/g,"") +;"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:kc +},Xc=e=>"bigint"==typeof e||Number.isInteger(e) +;function Yc(e,t,n,{intAsBigInt:r}){const o=e[0] +;if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){ +case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`} +const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const i=parseInt(e,n) +;return"-"===o?-1*i:i}function Gc(e,t,n){const{value:r}=e;if(Xc(r)){ +const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return kc(e)}const Kc={ +identify:Xc,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN", +test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Yc(e,2,2,n),stringify:e=>Gc(e,2,"0b") +},Jc={identify:Xc,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT", +test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Yc(e,1,8,n),stringify:e=>Gc(e,8,"0") +},eu={identify:Xc,default:!0,tag:"tag:yaml.org,2002:int", +test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Yc(e,0,10,n),stringify:kc},tu={ +identify:Xc,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX", +test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Yc(e,2,16,n), +stringify:e=>Gc(e,16,"0x")};class nu extends mc{constructor(e){ +super(e),this.tag=nu.tag}add(e){let t +;t=pl(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new cc(e.key,null):new cc(e,null) +;fc(this.items,t.key)||this.items.push(t)}get(e,t){const n=fc(this.items,e) +;return!t&&pl(n)?hl(n.key)?n.key.value:n.key:n}set(e,t){ +if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t) +;const n=fc(this.items,e) +;n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new cc(e)) +}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){ +if(!e)return JSON.stringify(this) +;if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{ +allNullValues:!0}),t,n);throw new Error("Set items must all have null values")} +static from(e,t,n){const{replacer:r}=n,o=new this(e) +;if(t&&Symbol.iterator in Object(t))for(let i of t)"function"==typeof r&&(i=r.call(t,i,i)), +o.items.push(lc(i,null,n));return o}}nu.tag="tag:yaml.org,2002:set";const ru={ +collection:"map",identify:e=>e instanceof Set,nodeClass:nu,default:!1, +tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>nu.from(e,t,n),resolve(e,t){ +if(dl(e)){if(e.hasAllNullValues(!0))return Object.assign(new nu,e) +;t("Set items must all have null values") +}else t("Expected a mapping for this tag");return e}};function ou(e,t){ +const n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0)) +;return"-"===n?o(-1)*i:i}function iu(e){let{value:t}=e,n=e=>e +;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return kc(e) +;let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o] +;return t<60?i.unshift(0):(t=(t-i[0])/o, +i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))), +r+i.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")} +const au={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0, +tag:"tag:yaml.org,2002:int",format:"TIME", +test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/, +resolve:(e,t,{intAsBigInt:n})=>ou(e,n),stringify:iu},su={ +identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float", +format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/, +resolve:e=>ou(e,!1),stringify:iu},lu={identify:e=>e instanceof Date,default:!0, +tag:"tag:yaml.org,2002:timestamp", +test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"), +resolve(e){const t=e.match(lu.test) +;if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd") +;const[,n,r,o,i,a,s]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0 +;let c=Date.UTC(n,r-1,o,i||0,a||0,s||0,l);const u=t[8];if(u&&"Z"!==u){ +let e=ou(u,!1);Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)}, +stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"") +},cu=[gc,Oc,yc,wc,zc,Hc,Kc,Jc,eu,tu,Zc,Vc,Wc,Lc,Fc,jc,ru,au,su,lu],uu=new Map([["core",Rc],["failsafe",[gc,Oc,yc]],["json",Mc],["yaml11",cu],["yaml-1.1",cu]]),du={ +binary:Lc,bool:xc,float:Ec,floatExp:_c,floatNaN:Sc,floatTime:su,int:Dc, +intHex:$c,intOct:Pc,intTime:au,map:gc,null:wc,omap:Fc,pairs:jc,seq:Oc,set:ru, +timestamp:lu},pu={"tag:yaml.org,2002:binary":Lc,"tag:yaml.org,2002:omap":Fc, +"tag:yaml.org,2002:pairs":jc,"tag:yaml.org,2002:set":ru, +"tag:yaml.org,2002:timestamp":lu};function hu(e,t){let n=uu.get(t);if(!n){ +if(!Array.isArray(e)){ +const e=Array.from(uu.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ") +;throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`) +}n=[]} +if(Array.isArray(e))for(const r of e)n=n.concat(r);else"function"==typeof e&&(n=e(n.slice())) +;return n.map((e=>{if("string"!=typeof e)return e;const t=du[e];if(t)return t +;const n=Object.keys(du).map((e=>JSON.stringify(e))).join(", ") +;throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))} +const fu=(e,t)=>e.keyt.key?1:0;let mu=class e{ +constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:o,sortMapEntries:i,toStringDefaults:a}){ +this.compat=Array.isArray(e)?hu(e,"compat"):e?hu(null,e):null, +this.merge=!!n,this.name="string"==typeof o&&o||"core", +this.knownTags=r?pu:{},this.tags=hu(t,this.name), +this.toStringOptions=a??null,Object.defineProperty(this,ol,{value:gc +}),Object.defineProperty(this,al,{value:yc}),Object.defineProperty(this,sl,{ +value:Oc}),this.sortMapEntries="function"==typeof i?i:!0===i?fu:null}clone(){ +const t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this)) +;return t.tags=this.tags.slice(),t}};class gu{constructor(e,t,n){ +this.commentBefore=null, +this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ll,{ +value:rl});let r=null +;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0) +;const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn", +prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=o +;let{version:i}=o +;(null==n?void 0:n._directives)?(this.directives=n._directives.atDocument(), +this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new Sl({ +version:i +}),this.setSchema(i,n),this.contents=void 0===e?null:this.createNode(e,r,n)} +clone(){const e=Object.create(gu.prototype,{[ll]:{value:rl}}) +;return e.commentBefore=this.commentBefore, +e.comment=this.comment,e.errors=this.errors.slice(), +e.warnings=this.warnings.slice(), +e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()), +e.schema=this.schema.clone(), +e.contents=gl(this.contents)?this.contents.clone(e.schema):this.contents, +this.range&&(e.range=this.range.slice()),e}add(e){ +vu(this.contents)&&this.contents.add(e)}addIn(e,t){ +vu(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){ +const n=El(this);e.anchor=!t||n.has(t)?Tl(t||"a",n):t}return new Dl(e.anchor)} +createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e +},"",e),r=t;else if(Array.isArray(t)){ +const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String) +;n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0) +;const{aliasDuplicateObjects:o,anchorPrefix:i,flow:a,keepUndefined:s,onTagObj:l,tag:c}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:p}=function(e,t){ +const n=[],r=new Map;let o=null;return{onAnchor:r=>{n.push(r),o||(o=El(e)) +;const i=Tl(t,o);return o.add(i),i},setAnchors:()=>{for(const e of n){ +const t=r.get(e);if("object"!=typeof t||!t.anchor||!hl(t.node)&&!ml(t.node)){ +const t=new Error("Failed to resolve repeated object (this should not happen)") +;throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r} +}(this,i||"a"),h=Ml(e,c,{aliasDuplicateObjects:o??!0,keepUndefined:s??!1, +onAnchor:u,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:p}) +;return a&&ml(h)&&(h.flow=!0),d(),h}createPair(e,t,n={}){ +const r=this.createNode(e,null,n),o=this.createNode(t,null,n);return new cc(r,o) +}delete(e){return!!vu(this.contents)&&this.contents.delete(e)}deleteIn(e){ +return Bl(e)?null!=this.contents&&(this.contents=null, +!0):!!vu(this.contents)&&this.contents.deleteIn(e)}get(e,t){ +return ml(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){ +return Bl(e)?!t&&hl(this.contents)?this.contents.value:this.contents:ml(this.contents)?this.contents.getIn(e,t):void 0 +}has(e){return!!ml(this.contents)&&this.contents.has(e)}hasIn(e){ +return Bl(e)?void 0!==this.contents:!!ml(this.contents)&&this.contents.hasIn(e)} +set(e,t){ +null==this.contents?this.contents=Ll(this.schema,[e],t):vu(this.contents)&&this.contents.set(e,t) +}setIn(e,t){ +Bl(e)?this.contents=t:null==this.contents?this.contents=Ll(this.schema,Array.from(e),t):vu(this.contents)&&this.contents.setIn(e,t) +}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1": +this.directives?this.directives.yaml.version="1.1":this.directives=new Sl({ +version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break +;case"1.2":case"next": +this.directives?this.directives.yaml.version=e:this.directives=new Sl({version:e +}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null: +this.directives&&delete this.directives,n=null;break;default:{ +const t=JSON.stringify(e) +;throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`) +}}if(t.schema instanceof Object)this.schema=t.schema;else{ +if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required") +;this.schema=new mu(Object.assign(n,t))}} +toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){ +const a={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1, +maxAliasCount:"number"==typeof r?r:100},s=Al(this.contents,t??"",a) +;if("function"==typeof o)for(const{count:l,res:c}of a.anchors.values())o(c,l) +;return"function"==typeof i?Cl(i,{"":s},"",s):s}toJSON(e,t){return this.toJS({ +json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){ +if(this.errors.length>0)throw new Error("Document with errors cannot be stringified") +;if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){ +const t=JSON.stringify(e.indent) +;throw new Error(`"indent" option must be a positive integer, not ${t}`)} +return function(e,t){var n;const r=[];let o=!0===t.directives +;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e) +;t?(r.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&r.push("---") +;const i=nc(e,t),{commentString:a}=i.options;if(e.commentBefore){ +1!==r.length&&r.unshift("");const t=a(e.commentBefore);r.unshift(Ul(t,""))} +let s=!1,l=null;if(e.contents){if(gl(e.contents)){ +if(e.contents.spaceBefore&&o&&r.push(""),e.contents.commentBefore){ +const t=a(e.contents.commentBefore);r.push(Ul(t,""))} +i.forceBlockIndent=!!e.comment,l=e.contents.comment}const t=l?void 0:()=>s=!0 +;let n=rc(e.contents,i,(()=>l=null),t) +;l&&(n+=Fl(n,"",a(l))),"|"!==n[0]&&">"!==n[0]||"---"!==r[r.length-1]?r.push(n):r[r.length-1]=`--- ${n}` +}else r.push(rc(e.contents,i)) +;if(null==(n=e.directives)?void 0:n.docEnd)if(e.comment){const t=a(e.comment) +;t.includes("\n")?(r.push("..."),r.push(Ul(t,""))):r.push(`... ${t}`) +}else r.push("...");else{let t=e.comment +;t&&s&&(t=t.replace(/^\n+/,"")),t&&(s&&!l||""===r[r.length-1]||r.push(""), +r.push(Ul(a(t),"")))}return r.join("\n")+"\n"}(this,e)}}function vu(e){ +if(ml(e))return!0 +;throw new Error("Expected a YAML collection as document contents")} +class bu extends Error{constructor(e,t,n,r){ +super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class Ou extends bu{ +constructor(e,t,n){super("YAMLParseError",e,t,n)}}class yu extends bu{ +constructor(e,t,n){super("YAMLWarning",e,t,n)}}const wu=(e,t)=>n=>{ +if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e))) +;const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}` +;let i=o-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"") +;if(i>=60&&a.length>80){const e=Math.min(i-39,a.length-79);a="…"+a.substring(e), +i-=e-1} +if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,i))){ +let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]) +;n.length>80&&(n=n.substring(0,79)+"…\n"),a=n+a}if(/[^ ]/.test(a)){let e=1 +;const t=n.linePos[1] +;t&&t.line===r&&t.col>o&&(e=Math.max(1,Math.min(t.col-o,80-i))) +;const s=" ".repeat(i)+"^".repeat(e);n.message+=`:\n\n${a}\n${s}\n`}} +;function xu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,parentIndent:a,startOnNewline:s}){ +let l=!1,c=s,u=s,d="",p="",h=!1,f=!1,m=!1,g=null,v=null,b=null,O=null,y=null,w=null +;for(const S of e)switch(m&&("space"!==S.type&&"newline"!==S.type&&"comma"!==S.type&&i(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"), +m=!1), +g&&(c&&"comment"!==S.type&&"newline"!==S.type&&i(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"), +g=null),S.type){case"space": +t||"doc-start"===n&&"flow-collection"===(null==r?void 0:r.type)||!S.source.includes("\t")||(g=S), +u=!0;break;case"comment":{ +u||i(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters") +;const e=S.source.substring(1)||" ";d?d+=p+e:d=e,p="",c=!1;break}case"newline": +c?d?d+=S.source:l=!0:p+=S.source,c=!0,h=!0,(v||b)&&(f=!0),u=!0;break +;case"anchor": +v&&i(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&i(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0), +v=S,null===w&&(w=S.offset),c=!1,u=!1,m=!0;break;case"tag": +b&&i(S,"MULTIPLE_TAGS","A node can have at most one tag"), +b=S,null===w&&(w=S.offset),c=!1,u=!1,m=!0;break;case n: +(v||b)&&i(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`), +y&&i(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${t??"collection"}`), +y=S,c="seq-item-ind"===n||"explicit-key-ind"===n,u=!1;break;case"comma":if(t){ +O&&i(S,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),O=S,c=!1,u=!1;break}default: +i(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),c=!1,u=!1} +const x=e[e.length-1],k=x?x.offset+x.source.length:o +;return m&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"), +g&&(c&&g.indent<=a||"block-map"===(null==r?void 0:r.type)||"block-seq"===(null==r?void 0:r.type))&&i(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"), +{comma:O,found:y,spaceBefore:l,comment:d,hasNewline:h,hasNewlineAfterProp:f, +anchor:v,tag:b,end:k,start:w??k}}function ku(e){if(!e)return null +;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar": +case"single-quoted-scalar":if(e.source.includes("\n"))return!0 +;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1 +;case"flow-collection":for(const t of e.items){ +for(const e of t.start)if("newline"===e.type)return!0 +;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0 +;if(ku(t.key)||ku(t.value))return!0}return!1;default:return!0}} +function Su(e,t,n){if("flow-collection"===(null==t?void 0:t.type)){ +const r=t.end[0];if(r.indent===e&&("]"===r.source||"}"===r.source)&&ku(t)){ +n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}} +function _u(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1 +;const o="function"==typeof r?r:(t,n)=>t===n||hl(t)&&hl(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge) +;return t.some((e=>o(e.key,n)))} +const Eu="All mapping items must start at the same column";function Tu(e,t,n,r){ +let o="";if(e){let i=!1,a="";for(const s of e){const{source:e,type:l}=s +;switch(l){case"space":i=!0;break;case"comment":{ +n&&!i&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters") +;const t=e.substring(1)||" ";o?o+=a+t:o=t,a="";break}case"newline": +o&&(a+=e),i=!0;break;default: +r(s,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{ +comment:o,offset:t}} +const Cu="Block collections are not allowed within flow collections",Au=e=>e&&("block-map"===e.type||"block-seq"===e.type) +;function Pu(e,t,n,r,o,i){ +const a="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,o,i){ +var a;const s=new((null==i?void 0:i.nodeClass)??mc)(n.schema) +;n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const u of r.items){ +const{start:i,key:d,sep:p,value:h}=u,f=xu(i,{indicator:"explicit-key-ind", +next:d??(null==p?void 0:p[0]),offset:l,onError:o,parentIndent:r.indent, +startOnNewline:!0}),m=!f.found;if(m){ +if(d&&("block-seq"===d.type?o(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==r.indent&&o(l,"BAD_INDENT",Eu)), +!f.anchor&&!f.tag&&!p){ +c=f.end,f.comment&&(s.comment?s.comment+="\n"+f.comment:s.comment=f.comment) +;continue} +(f.hasNewlineAfterProp||ku(d))&&o(d??i[i.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line") +}else(null==(a=f.found)?void 0:a.indent)!==r.indent&&o(l,"BAD_INDENT",Eu) +;const g=f.end,v=d?e(n,d,f,o):t(n,g,i,null,f,o) +;n.schema.compat&&Su(r.indent,d,o), +_u(n,s.items,v)&&o(g,"DUPLICATE_KEY","Map keys must be unique") +;const b=xu(p??[],{indicator:"map-value-ind",next:h,offset:v.range[2],onError:o, +parentIndent:r.indent,startOnNewline:!d||"block-scalar"===d.type}) +;if(l=b.end,b.found){ +m&&("block-map"!==(null==h?void 0:h.type)||b.hasNewline||o(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"), +n.options.strict&&f.start0){ +const e=Tu(h,f,n.options.strict,o) +;e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment), +l.range=[r.offset,f,e.offset]}else l.range=[r.offset,f,f];return l +}(e,t,n,r,i),s=a.constructor +;return"!"===o||o===s.tagName?(a.tag=s.tagName,a):(o&&(a.tag=o),a)} +function Du(e,t,n){const r=t.offset,o=function({offset:e,props:t},n,r){ +if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"), +null;const{source:o}=t[0],i=o[0];let a=0,s="",l=-1;for(let p=1;p=0;--m){const e=a[m][1] +;if(""!==e&&"\r"!==e)break;s=m}if(0===s){ +const e="+"===o.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"" +;let n=r+o.length;return t.source&&(n+=t.source.length),{value:e,type:i, +comment:o.comment,range:[r,n,n]}}let l=t.indent+o.indent,c=t.offset+o.length,u=0 +;for(let m=0;ml&&(l=t.length),c+=t.length+r.length+1} +for(let m=a.length-1;m>=s;--m)a[m][0].length>l&&(s=m+1);let d="",p="",h=!1 +;for(let m=0;ml||"\t"===t[0]?(" "===p?p="\n":h||"\n"!==p||(p="\n\n"), +d+=p+e.slice(l)+t, +p="\n",h=!0):""===t?"\n"===p?d+="\n":p="\n":(d+=p+t,p=" ",h=!1)}switch(o.chomp){ +case"-":break;case"+":for(let e=s;en(r+e,t,o);switch(o){case"scalar": +s=Nl.PLAIN,l=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character" +;break;case",":n="flow indicator character ,";break;case"%": +n="directive indicator character %";break;case"|":case">": +n=`block scalar indicator ${e[0]}`;break;case"@":case"`": +n=`reserved character ${e[0]}`} +n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`);return Ru(e) +}(i,c);break;case"single-quoted-scalar":s=Nl.QUOTE_SINGLE,l=function(e,t){ +"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote") +;return Ru(e.slice(1,-1)).replace(/''/g,"'")}(i,c);break +;case"double-quoted-scalar":s=Nl.QUOTE_DOUBLE,l=function(e,t){let n="" +;for(let r=1;rt?e.slice(t,r+1):o)}else n+=o} +'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote') +;return n}(i,c);break;default: +return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{ +value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}} +const u=r+i.length,d=Tu(a,u,t,n);return{value:l,type:s,comment:d.comment, +range:[r,u,d.offset]}}function Ru(e){let t,n;try{ +t=new RegExp("(.*?)(?r(n,"TAG_RESOLVE_FAILED",e))):null,c=n&&l?function(e,t,n,r,o){ +var i;if("!"===n)return e[al];const a=[] +;for(const l of e.tags)if(!l.collection&&l.tag===n){ +if(!l.default||!l.test)return l;a.push(l)} +for(const l of a)if(null==(i=l.test)?void 0:i.test(t))return l +;const s=e.knownTags[n] +;if(s&&!s.collection)return e.tags.push(Object.assign({},s,{default:!1, +test:void 0})),s +;return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n), +e[al] +}(e.schema,o,l,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,o){ +const i=t.tags.find((e=>{var t +;return e.default&&(null==(t=e.test)?void 0:t.test(n))}))||t[al];if(t.compat){ +const a=t.compat.find((e=>{var t +;return e.default&&(null==(t=e.test)?void 0:t.test(n))}))??t[al] +;if(i.tag!==a.tag){ +o(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(i.tag)} or ${e.tagString(a.tag)}`,!0) +}}return i}(e,o,t,r):e.schema[al];let u;try{ +const i=c.resolve(o,(e=>r(n??t,"TAG_RESOLVE_FAILED",e)),e.options) +;u=hl(i)?i:new Nl(i)}catch(d){const e=d instanceof Error?d.message:String(d) +;r(n??t,"TAG_RESOLVE_FAILED",e),u=new Nl(o)} +return u.range=s,u.source=o,i&&(u.type=i), +l&&(u.tag=l),c.format&&(u.format=c.format),a&&(u.comment=a),u} +function Bu(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){ +let n=t[r];switch(n.type){case"space":case"comment":case"newline": +e-=n.source.length;continue} +for(n=t[++r];"space"===(null==n?void 0:n.type);)e+=n.source.length,n=t[++r] +;break}}return e}const Qu={composeNode:ju,composeEmptyNode:Uu} +;function ju(e,t,n,r){const{spaceBefore:o,comment:i,anchor:a,tag:s}=n;let l,c=!0 +;switch(t.type){case"alias":l=function({options:e},{offset:t,source:n,end:r},o){ +const i=new Dl(n.substring(1)) +;""===i.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string") +;i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0) +;const a=t+n.length,s=Tu(r,a,e.strict,o) +;i.range=[t,a,s.offset],s.comment&&(i.comment=s.comment);return i +}(e,t,r),(a||s)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties") +;break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar": +case"block-scalar":l=Lu(e,t,s,r),a&&(l.anchor=a.source.substring(1));break +;case"block-map":case"block-seq":case"flow-collection":l=function(e,t,n,r,o){ +var i +;const a=r?t.directives.tagName(r.source,(e=>o(r,"TAG_RESOLVE_FAILED",e))):null,s="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq" +;if(!r||!a||"!"===a||a===mc.tagName&&"map"===s||a===vc.tagName&&"seq"===s||!s)return Pu(e,t,n,o,a) +;let l=t.schema.tags.find((e=>e.tag===a&&e.collection===s));if(!l){ +const i=t.schema.knownTags[a] +;if(!i||i.collection!==s)return(null==i?void 0:i.collection)?o(r,"BAD_COLLECTION_TYPE",`${i.tag} used for ${s} collection, but expects ${i.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0), +Pu(e,t,n,o,a);t.schema.tags.push(Object.assign({},i,{default:!1})),l=i} +const c=Pu(e,t,n,o,a,l),u=(null==(i=l.resolve)?void 0:i.call(l,c,(e=>o(r,"TAG_RESOLVE_FAILED",e)),t.options))??c,d=gl(u)?u:new Nl(u) +;return d.range=c.range,d.tag=a,(null==l?void 0:l.format)&&(d.format=l.format),d +}(Qu,e,t,s,r),a&&(l.anchor=a.source.substring(1));break;default: +r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`), +l=Uu(e,t.offset,void 0,null,n,r),c=!1} +return a&&""===l.anchor&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"), +o&&(l.spaceBefore=!0), +i&&("scalar"===t.type&&""===t.source?l.comment=i:l.commentBefore=i), +e.options.keepSourceTokens&&c&&(l.srcToken=t),l} +function Uu(e,t,n,r,{spaceBefore:o,comment:i,anchor:a,tag:s,end:l},c){ +const u=Lu(e,{type:"scalar",offset:Bu(t,n,r),indent:-1,source:""},s,c) +;return a&&(u.anchor=a.source.substring(1), +""===u.anchor&&c(a,"BAD_ALIAS","Anchor cannot be an empty string")), +o&&(u.spaceBefore=!0),i&&(u.comment=i,u.range[2]=l),u}function Fu(e){ +if("number"==typeof e)return[e,e+1] +;if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]] +;const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]} +function qu(e){var t;let n="",r=!1,o=!1;for(let i=0;i{ +const o=Fu(e) +;r?this.warnings.push(new yu(o,t,n)):this.errors.push(new Ou(o,t,n)) +},this.directives=new Sl({version:e.version||"1.2"}),this.options=e} +decorate(e,t){const{comment:n,afterEmptyLine:r}=qu(this.prelude);if(n){ +const o=e.contents +;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!o)e.commentBefore=n;else if(ml(o)&&!o.flow&&o.items.length>0){ +let e=o.items[0];pl(e)&&(e=e.key);const t=e.commentBefore +;e.commentBefore=t?`${n}\n${t}`:n}else{const e=o.commentBefore +;o.commentBefore=e?`${n}\n${e}`:n}} +t?(Array.prototype.push.apply(e.errors,this.errors), +Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors, +e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]} +streamInfo(){return{comment:qu(this.prelude).comment,directives:this.directives, +errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){ +for(const r of e)yield*this.next(r);yield*this.end(t,n)}*next(e){switch(e.type){ +case"directive":this.directives.add(e.source,((t,n,r)=>{const o=Fu(e) +;o[0]+=t,this.onError(o,"BAD_DIRECTIVE",n,r) +})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{ +const t=function(e,t,{offset:n,start:r,value:o,end:i},a){const s=Object.assign({ +_directives:t},e),l=new gu(void 0,s),c={atRoot:!0,directives:l.directives, +options:l.options,schema:l.schema},u=xu(r,{indicator:"doc-start", +next:o??(null==i?void 0:i[0]),offset:n,onError:a,parentIndent:0, +startOnNewline:!0}) +;u.found&&(l.directives.docStart=!0,!o||"block-map"!==o.type&&"block-seq"!==o.type||u.hasNewline||a(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")), +l.contents=o?ju(c,o,u,a):Uu(c,u.end,r,null,u,a) +;const d=l.contents.range[2],p=Tu(i,d,!1,a) +;return p.comment&&(l.comment=p.comment),l.range=[n,d,p.offset],l +}(this.options,this.directives,e,this.onError) +;this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"), +this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1 +;break}case"byte-order-mark":case"space":break;case"comment":case"newline": +this.prelude.push(e.source);break;case"error":{ +const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Ou(Fu(e),"UNEXPECTED_TOKEN",t) +;this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break} +case"doc-end":{if(!this.doc){ +const t="Unexpected doc-end without preceding document" +;this.errors.push(new Ou(Fu(e),"UNEXPECTED_TOKEN",t));break} +this.doc.directives.docEnd=!0 +;const t=Tu(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError) +;if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment +;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset +;break}default: +this.errors.push(new Ou(Fu(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`)) +}}*end(e=!1,t=-1){ +if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){ +const e=Object.assign({_directives:this.directives +},this.options),n=new gu(void 0,e) +;this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"), +n.range=[0,t,t],this.decorate(n,!1),yield n}}}function Hu(e){switch(e){ +case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}} +const Zu=new Set("0123456789ABCDEFabcdef"),Vu=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Wu=new Set(",[]{}"),Xu=new Set(" ,[]{}\n\r\t"),Yu=e=>!e||Xu.has(e) +;class Gu{constructor(){ +this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1, +this.buffer="",this.flowKey=!1, +this.flowLevel=0,this.indentNext=0,this.indentValue=0, +this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){ +if("string"!=typeof e)throw TypeError("source is not a string") +;this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t +;let n=this.next??"stream" +;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){ +let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e] +;return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){ +return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e] +;if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){ +const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1} +return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){ +const t=this.buffer.substr(e,3) +;if(("---"===t||"..."===t)&&Hu(this.buffer[e+3]))return-1}return e}getLine(){ +let e=this.lineEndPos +;return("number"!=typeof e||-1!==e&&ethis.indentValue&&!Hu(this.charAt(1))&&(this.indentNext=this.indentValue), +yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2) +;if(!t&&!this.atEnd)return this.setNext("block-start") +;if(("-"===e||"?"===e||":"===e)&&Hu(t)){ +const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0)) +;return this.indentNext=this.indentValue+1, +this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){ +yield*this.pushSpaces(!0);const e=this.getLine() +;if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators() +;switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0: +return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[": +return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}": +case"]":return yield*this.pushCount(1),"doc";case"*": +return yield*this.pushUntil(Yu),"doc";case'"':case"'": +return yield*this.parseQuotedScalar();case"|":case">": +return t+=(yield*this.parseBlockScalarHeader()), +t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t), +yield*this.pushNewline(),yield*this.parseBlockScalar();default: +return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{ +e=yield*this.pushNewline(), +e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0, +t+=(yield*this.pushSpaces(!0))}while(e+t>0);const r=this.getLine() +;if(null===r)return this.setNext("flow") +;if(-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break +}return yield*this.pushUntil((e=>Hu(e)||"#"===e))}*parseBlockScalar(){ +let e,t=this.pos-1,n=0;e:for(let o=this.pos;e=this.buffer[o];++o)switch(e){ +case" ":n+=1;break;case"\n":t=o,n=0;break;case"\r":{const e=this.buffer[o+1] +;if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break} +default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar") +;if(n>=this.indentNext){ +-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext) +;do{const e=this.continueScalar(t+1);if(-1===e)break +;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){ +if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}} +let r=t+1;for(e=this.buffer[r];" "===e;)e=this.buffer[++r];if("\t"===e){ +for(;"\t"===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++r];t=r-1 +}else if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e] +;"\r"===r&&(r=this.buffer[--e]);const o=e;for(;" "===r;)r=this.buffer[--e] +;if(!("\n"===r&&e>=this.pos&&e+1+n>o))break;t=e} +return yield"",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()} +*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1 +;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1] +;if(Hu(t)||e&&Wu.has(t))break;n=r}else if(Hu(t)){let o=this.buffer[r+1] +;if("\r"===t&&("\n"===o?(r+=1, +t="\n",o=this.buffer[r+1]):n=r),"#"===o||e&&Wu.has(o))break;if("\n"===t){ +const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{ +if(e&&Wu.has(t))break;n=r} +return t||this.atEnd?(yield"",yield*this.pushToIndex(n+1,!0), +e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){ +return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0} +*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e) +;return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)} +*pushIndicators(){switch(this.charAt(0)){case"!": +return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators()) +;case"&": +return(yield*this.pushUntil(Yu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators()) +;case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1) +;if(Hu(t)||e&&Wu.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1, +(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators()) +}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e] +;for(;!Hu(t)&&">"!==t;)t=this.buffer[++e] +;return yield*this.pushToIndex(">"===t?e+1:e,!1)}{ +let e=this.pos+1,t=this.buffer[e];for(;t;)if(Vu.has(t))t=this.buffer[++e];else{ +if("%"!==t||!Zu.has(this.buffer[e+1])||!Zu.has(this.buffer[e+2]))break +;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){ +const e=this.buffer[this.pos] +;return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0 +}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n] +}while(" "===t||e&&"\t"===t);const r=n-this.pos +;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){ +let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t] +;return yield*this.pushToIndex(t,!1)}}class Ku{constructor(){this.lineStarts=[], +this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{ +let t=0,n=this.lineStarts.length;for(;t>1 +;this.lineStarts[r]=0;)switch(e[n].type){case"doc-start":case"explicit-key-ind": +case"map-value-ind":case"seq-item-ind":case"newline":break e} +for(;"space"===(null==(t=e[++n])?void 0:t.type););return e.splice(n,e.length)} +function od(e){ +if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||Ju(t.start,"explicit-key-ind")||Ju(t.sep,"map-value-ind")||(t.key&&(t.value=t.key), +delete t.key, +td(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep), +delete t.sep)}let id=class{constructor(e){ +this.atNewLine=!0,this.atScalar=!1,this.indent=0, +this.offset=0,this.onKeyLine=!1, +this.stack=[],this.source="",this.type="",this.lexer=new Gu,this.onNewLine=e} +*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0) +;for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())} +*next(e){ +if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(), +void(this.offset+=e.length);const t=function(e){switch(e){case"\ufeff": +return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end" +;case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end" +;case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind" +;case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{": +return"flow-map-start";case"}":return"flow-map-end";case"[": +return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"} +switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%": +return"directive-line";case"*":return"alias";case"&":return"anchor";case"!": +return"tag";case"'":return"single-quoted-scalar";case'"': +return"double-quoted-scalar";case"|":case">":return"block-scalar-header"} +return null}(e) +;if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{ +switch(this.type=t,yield*this.step(),t){case"newline": +this.atNewLine=!0,this.indent=0, +this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space": +this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break +;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind": +this.atNewLine&&(this.indent+=e.length);break;case"doc-mode": +case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length +}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error", +offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){ +for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{ +type:this.type,offset:this.offset,indent:this.indent,source:this.source}} +*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){ +if(!e)return yield*this.stream();switch(e.type){case"document": +return yield*this.document(e);case"alias":case"scalar": +case"single-quoted-scalar":case"double-quoted-scalar": +return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e) +;case"block-map":return yield*this.blockMap(e);case"block-seq": +return yield*this.blockSequence(e);case"flow-collection": +return yield*this.flowCollection(e);case"doc-end": +return yield*this.documentEnd(e)}yield*this.pop()}else{ +for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end", +offset:this.offset,source:this.source})}}peek(e){ +return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop() +;if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1) +;switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0), +"flow-collection"===t.type&&od(t),e.type){case"document":e.value=t;break +;case"block-scalar":e.props.push(t);break;case"block-map":{ +const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[], +key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t, +sep:[]}),void(this.onKeyLine=!n.explicitKey);n.value=t;break}case"block-seq":{ +const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t +}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1] +;return void(!n||n.value?e.items.push({start:[],key:t,sep:[] +}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default: +yield*this.pop(),yield*this.pop(t)} +if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){ +const n=t.items[t.items.length-1] +;n&&!n.sep&&!n.value&&n.start.length>0&&-1===ed(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent=e.indent){ +const t=!this.onKeyLine&&this.indent===e.indent,r=t&&(n.sep||n.explicitKey)&&"seq-item-ind"!==this.type +;let o=[];if(r&&n.sep&&!n.value){const t=[];for(let r=0;re.indent&&(t.length=0);break;default:t.length=0}} +t.length>=2&&(o=n.sep.splice(t[1]))}switch(this.type){case"anchor":case"tag": +return void(r||n.value?(o.push(this.sourceToken),e.items.push({start:o +}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken)) +;case"explicit-key-ind": +return n.sep||n.explicitKey?r||n.value?(o.push(this.sourceToken),e.items.push({ +start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset, +indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}] +}):(n.start.push(this.sourceToken),n.explicitKey=!0),void(this.onKeyLine=!0) +;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({ +start:[],key:null,sep:[this.sourceToken] +});else if(Ju(n.sep,"map-value-ind"))this.stack.push({type:"block-map", +offset:this.offset,indent:this.indent,items:[{start:o,key:null, +sep:[this.sourceToken]}]});else if(td(n.key)&&!Ju(n.sep,"newline")){ +const e=rd(n.start),t=n.key,r=n.sep +;r.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({ +type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t, +sep:r}]}) +}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(Ju(n.start,"newline"))Object.assign(n,{ +key:null,sep:[this.sourceToken]});else{const e=rd(n.start);this.stack.push({ +type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null, +sep:[this.sourceToken]}]})}else n.sep?n.value||r?e.items.push({start:o,key:null, +sep:[this.sourceToken]}):Ju(n.sep,"map-value-ind")?this.stack.push({ +type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[], +key:null,sep:[this.sourceToken]}] +}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken] +});return void(this.onKeyLine=!0);case"alias":case"scalar": +case"single-quoted-scalar":case"double-quoted-scalar":{ +const t=this.flowScalar(this.type);return void(r||n.value?(e.items.push({ +start:o,key:t,sep:[] +}),this.onKeyLine=!0):n.sep?this.stack.push(t):(Object.assign(n,{key:t,sep:[]}), +this.onKeyLine=!0))}default:{const n=this.startBlockValue(e) +;if(n)return t&&"block-seq"!==n.type&&e.items.push({start:o +}),void this.stack.push(n)}}}yield*this.pop(),yield*this.step()} +*blockSequence(e){var t;const n=e.items[e.items.length-1];switch(this.type){ +case"newline":if(n.value){ +const t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0 +;"comment"===(null==r?void 0:r.type)?null==t||t.push(this.sourceToken):e.items.push({ +start:[this.sourceToken]})}else n.start.push(this.sourceToken);return +;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken] +});else{if(this.atIndentedComment(n.start,e.indent)){ +const r=e.items[e.items.length-2],o=null==(t=null==r?void 0:r.value)?void 0:t.end +;if(Array.isArray(o))return Array.prototype.push.apply(o,n.start), +o.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)} +return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break +;return void n.start.push(this.sourceToken);case"seq-item-ind": +if(this.indent!==e.indent)break +;return void(n.value||Ju(n.start,"seq-item-ind")?e.items.push({ +start:[this.sourceToken]}):n.start.push(this.sourceToken))} +if(this.indent>e.indent){const t=this.startBlockValue(e) +;if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()} +*flowCollection(e){const t=e.items[e.items.length-1] +;if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1) +}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){ +switch(this.type){case"comma":case"explicit-key-ind": +return void(!t||t.sep?e.items.push({start:[this.sourceToken] +}):t.start.push(this.sourceToken));case"map-value-ind": +return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken] +}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null, +sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor": +case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken] +}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken)) +;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar": +{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({ +start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[] +}))}case"flow-map-end":case"flow-seq-end": +return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e) +;n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{ +const t=this.peek(2) +;if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(), +yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){ +const n=rd(nd(t));od(e);const r=e.end.splice(1,e.end.length) +;r.push(this.sourceToken);const o={type:"block-map",offset:e.offset, +indent:e.indent,items:[{start:n,key:e,sep:r}]} +;this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)} +}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1 +;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1} +return{type:e,offset:this.offset,indent:this.indent,source:this.source}} +startBlockValue(e){switch(this.type){case"alias":case"scalar": +case"single-quoted-scalar":case"double-quoted-scalar": +return this.flowScalar(this.type);case"block-scalar-header":return{ +type:"block-scalar",offset:this.offset,indent:this.indent, +props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start": +return{type:"flow-collection",offset:this.offset,indent:this.indent, +start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{ +type:"block-seq",offset:this.offset,indent:this.indent,items:[{ +start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0 +;const t=rd(nd(e));return t.push(this.sourceToken),{type:"block-map", +offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}} +case"map-value-ind":{this.onKeyLine=!0;const t=rd(nd(e));return{ +type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null, +sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){ +return"comment"===this.type&&(!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))) +}*documentEnd(e){ +"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken], +"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){ +case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end": +case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline": +this.onKeyLine=!1;default: +e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken], +"newline"===this.type&&(yield*this.pop())}}};function ad(e,t={}){ +const{lineCounter:n,prettyErrors:r}=function(e){const t=!1!==e.prettyErrors +;return{lineCounter:e.lineCounter||t&&new Ku||null,prettyErrors:t} +}(t),o=new id(null==n?void 0:n.addNewLine),i=new zu(t);let a=null +;for(const s of i.compose(o.parse(e),!0,e.length))if(a){ +if("silent"!==a.options.logLevel){ +a.errors.push(new Ou(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()")) +;break}}else a=s +;return r&&n&&(a.errors.forEach(wu(e,n)),a.warnings.forEach(wu(e,n))),a} +const sd={parse:e=>{const t=JSON.parse(e) +;if("object"!=typeof t)throw Error("Invalid JSON object");return t}, +parseSafe(e,t){try{return sd.parse(e)}catch(n){return"function"==typeof t?t(n):t +}},stringify:e=>JSON.stringify(e) +},ld=e=>"string"==typeof e&&!!sd.parseSafe(e,!1) +;const cd="https://api.scalar.com/request-proxy",ud="https://proxy.scalar.com" +;async function dd(e,t){t===cd&&(t=ud);const n=await fetch(t?Js(t,e):e) +;return 200!==n.status&&(console.error(`[fetchSpecFromUrl] Failed to fetch the specification at ${e} (Status: ${n.status})`), +t||console.warn(`[fetchSpecFromUrl] Tried to fetch the specification (url: ${e}) without a proxy. Are the CORS headers configured to allow cross-domain requests? https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS`)), +function(e){if("{"!==e.trim()[0])return e;try{ +return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}(await n.text())} +const pd={get:{short:"GET",color:"text-blue",backgroundColor:"bg-blue"},post:{ +short:"POST",color:"text-green",backgroundColor:"bg-green"},put:{short:"PUT", +color:"text-orange",backgroundColor:"bg-orange"},patch:{short:"PATCH", +color:"text-yellow",backgroundColor:"bg-yellow"},delete:{short:"DEL", +color:"text-red",backgroundColor:"bg-red"},options:{short:"OPTS", +color:"text-purple",backgroundColor:"bg-purple"},head:{short:"HEAD", +color:"text-scalar-c-2",backgroundColor:"bg-c-2"},connect:{short:"CONN", +color:"text-c-2",backgroundColor:"bg-c-2"},trace:{short:"TRACE", +color:"text-c-2",backgroundColor:"bg-c-2"} +},hd=["post","put","patch","delete"],fd=e=>hd.includes(e),md=e=>{ +const t=e.trim().toLowerCase();return pd[t]??{short:t,color:"text-c-2", +backgroundColor:"bg-c-2"}},gd={100:{name:"Continue", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100"},101:{ +name:"Switching Protocols", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101"},102:{ +name:"Processing", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102"},103:{ +name:"Early Hints", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103"},200:{ +name:"OK",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200"}, +201:{name:"Created", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201"},202:{ +name:"Accepted", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202"},203:{ +name:"Non-Authoritative Information", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203"},204:{ +name:"No Content", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204"},205:{ +name:"Reset Content", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205"},206:{ +name:"Partial Content", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206"},207:{ +name:"Multi-Status", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207"},208:{ +name:"Already Reported", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208"},226:{ +name:"IM Used", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226"},300:{ +name:"Multiple Choices", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300"},301:{ +name:"Moved Permanently", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301"},302:{ +name:"Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302" +},303:{name:"See Other", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303"},304:{ +name:"Not Modified", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304"},305:{ +name:"Use Proxy", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305"},306:{ +name:"(Unused)", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/306"},307:{ +name:"Temporary Redirect", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307"},308:{ +name:"Permanent Redirect", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308"},400:{ +name:"Bad Request", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},401:{ +name:"Unauthorized", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401"},402:{ +name:"Payment Required", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402"},403:{ +name:"Forbidden", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403"},404:{ +name:"Not Found", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404"},405:{ +name:"Method Not Allowed", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405"},406:{ +name:"Not Acceptable", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406"},407:{ +name:"Proxy Authentication Required", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407"},408:{ +name:"Request Timeout", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408"},409:{ +name:"Conflict", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409"},410:{ +name:"Gone",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410"}, +411:{name:"Length Required", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411"},412:{ +name:"Precondition Failed", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412"},413:{ +name:"Content Too Large", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413"},414:{ +name:"URI Too Long", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414"},415:{ +name:"Unsupported Media Type", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415"},416:{ +name:"Range Not Satisfiable", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416"},417:{ +name:"Expectation Failed", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417"},418:{ +name:"I'm a teapot", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418"},421:{ +name:"Misdirected Request", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421"},422:{ +name:"Unprocessable Content", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422"},423:{ +name:"Locked",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423" +},424:{name:"Failed Dependency", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424"},425:{ +name:"Too Early", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425"},426:{ +name:"Upgrade Required", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426"},428:{ +name:"Precondition Required", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428"},429:{ +name:"Too Many Requests", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429"},431:{ +name:"Request Header Fields Too Large", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431"},451:{ +name:"Unavailable For Legal Reasons", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451"},500:{ +name:"Internal Server Error", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500"},501:{ +name:"Not Implemented", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501"},502:{ +name:"Bad Gateway", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502"},503:{ +name:"Service Unavailable", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503"},504:{ +name:"Gateway Timeout", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504"},505:{ +name:"HTTP Version Not Supported", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505"},506:{ +name:"Variant Also Negotiates", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506"},507:{ +name:"Insufficient Storage", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507"},508:{ +name:"Loop Detected", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508"},510:{ +name:"Not Extended", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510"},511:{ +name:"Network Authentication Required", +url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511"} +},vd=(e,t,n=" #")=>{if(!t(e))return e +;const r=e.split(n),o=r.length>1?`${r.slice(0,-1).join()}${n}${Number(r.at(-1))+1}`:`${r.join()}${n}2` +;return vd(o,t,n) +},bd="collection",Od="cookie",yd="environment",wd="request",xd="requestExample",kd="securityScheme",Sd="server",_d="tag",Ed="workspace" +;function Td(e){if(!e)return e;const t={...e} +;return Object.keys(t).forEach((e=>{const n=function(e){ +if("string"==typeof e)return e.replace(/;.*$/,"").replace(/\/.+\+/,"/").trim() +}(e);void 0!==n&&(t[n]=t[e],e!==n&&delete t[e])})),t}function Cd(e,t){ +return Object.keys(e).forEach((n=>{Object.hasOwn(t,n)||delete e[n] +})),Object.assign(e,t),e}const Ad=e=>{ +if("string"==typeof e)return ld(e)?JSON.stringify(JSON.parse(e),null,2):e +;if("object"==typeof e)try{return JSON.stringify(e,null,2)}catch{ +return function(e){const t=new Set;return JSON.stringify(e,((e,n)=>{ +if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular]";t.add(n)} +return n}),2)}(e)}return(null==e?void 0:e.toString())??""};function Pd(e,t){ +const n=(e,n)=>{var r +;return"function"==typeof t?t(n):(null==(r=t[n])?void 0:r.toString())||`{${n}}`} +;return e.replace(/{{\s*([\w.-]+)\s*}}/g,n).replace(/{\s*([\w.-]+)\s*}/g,n)} +function Dd(e,t,n=!0,r){const o=t.safeParse(e) +;if(o.success||(console.group("Schema Error"), +console.warn(JSON.stringify(o.error.format(),null,2)), +console.log("Recieved: ",e), +console.groupEnd()),n&&!o.success)throw new Error("Zod validation failure") +;return o.data} +const $d="undefined"!=typeof window?window.__SCALAR__??{}:{},Rd=e=>e[0].toUpperCase()+e.slice(1) +;const Nd=/{{((?:[^{}]|{[^{}]*})*)}}/g,Id=new RegExp("(?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join("-") +}const Bd="get",Qd=e=>{ +if("string"!=typeof e)return console.warn(`Request method is not a string. Using ${Bd} as the default.`), +Bd;const t=e.trim().toUpperCase() +;return n=t,Ws.includes(n)?t:(console.warn(`${e} is not a valid request method. Using ${Bd} as the default.`), +Bd);var n};const jd=wn({showApiClient:!1,activeApiClientEndpointId:"", +activeItem:{},snippetType:"javascript"});function Ud(e,t=!1){ +jd.showApiClient=!!t||!jd.showApiClient,e&&(jd.activeItem=e)}function Fd(){ +jd.showApiClient=!1}function qd(e){jd.activeApiClientEndpointId=e} +function zd(e){jd.snippetType=e}const Hd=()=>({state:kn(jd),toggleApiClient:Ud, +setActiveApiClientEndpointId:qd,setSnippetType:zd,hideApiClient:Fd +}),Zd=wn($d["useGlobalStore-authentication"]??{preferredSecurityScheme:null, +customSecurity:!1,http:{basic:{username:"",password:""},bearer:{token:""}}, +apiKey:{token:""},oAuth2:{username:"",password:"",clientId:"",scopes:[], +accessToken:"",state:""}}),Vd=e=>Object.assign(Zd,e),Wd=()=>({authentication:Zd, +setAuthentication:Vd}),Xd=wn({operation:{},globalSecurity:[]}),Yd=e=>{ +Object.assign(Xd,{...Xd,operation:e})},Gd=e=>{Object.assign(Xd,{...Xd, +globalSecurity:e})},Kd=()=>({openApi:Xd,setOperation:Yd,setGlobalSecurity:Gd +}),Jd=wn({}),ep=Bn([]),tp=Bn(""),np=wn({name:"",url:"",type:"GET",path:"", +variables:[],headers:[],query:[],body:"",formData:[]}),rp=e=>{ +Jd[e.responseId]=e,tp.value=e.responseId,ep.value.unshift(e.responseId)},op=e=>{ +var t;tp.value=e +;const n=null==(t=Jd[e])?void 0:t.request,r=JSON.parse(JSON.stringify(n)) +;r.body=JSON.stringify((null==n?void 0:n.body)??"",null,2),Object.assign(np,r) +},ip=Aa((()=>{var e +;return tp.value?null==(e=Jd[tp.value??""])?void 0:e.response:null})),ap=e=>{ +Object.assign(np,e)},sp=()=>{tp.value=""},lp=Bn(!0);function cp(e,t){var n +;let r=[] +;if((null==e?void 0:e.servers)&&(null==e?void 0:e.servers.length)>0)r=e.servers;else if(null==e?void 0:e.host){ +r=[{ +url:`${(null==(n=e.schemes)?void 0:n[0])??"http"}://${e.host}${(null==e?void 0:e.basePath)??""}` +}]}else r=[{ +url:(null==t?void 0:t.defaultServerUrl)?null==t?void 0:t.defaultServerUrl:"undefined"!=typeof window?window.location.origin:"/" +}] +;return((null==t?void 0:t.defaultServerUrl)||"undefined"!=typeof window)&&(r=r.map((e=>function(e,t){ +var n +;if(!(null==(n=e.url)?void 0:n.match(/^(?!(https?|file):\/\/|{).+/)))return e +;return e.url=Ks((null==t?void 0:t.defaultServerUrl)?null==t?void 0:t.defaultServerUrl:"undefined"!=typeof window?window.location.origin:"",e.url), +e}(e,t)))),r.map((e=>{const t=e.variables??{} +;return([...(e.url??"").matchAll(/(?:\{+)\s*(\w+)\s*(?:\}+)/g)].map((e=>e[1].trim()))||[]).filter((e=>!t[e])).forEach((t=>{ +void 0===e.variables&&(e.variables={}),e.variables[t]={default:""}})),e}))} +function up(e,t){ +for(const[n,r]of Object.entries(e))null!==r&&"object"==typeof r?(t[n]??(t[n]=new r.__proto__.constructor), +up(r,t[n])):void 0!==r&&(t[n]=r);return t}function dp(e){return up(e??{},{info:{ +title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""}, +contact:{email:""}},externalDocs:{description:"",url:""},servers:[],tags:[]})} +const pp=wn({selectedServer:null,servers:[],variables:{}}),hp=e=>{ +Object.assign(pp,{...pp,...e})};function fp(e,t){ +return Object.fromEntries(Object.entries(e).filter((([e])=>e in(t.variables??{})))) +} +const mp=({specification:e,defaultServerUrl:t,servers:n}={})=>(void 0!==(null==e?void 0:e.value)&&li((()=>[null==e?void 0:e.value,null==n?void 0:n.value,null==t?void 0:t.value]),(()=>{ +const r=cp(void 0===(null==n?void 0:n.value)?(null==e?void 0:e.value)??dp():dp({ +servers:n.value}),{defaultServerUrl:null==t?void 0:t.value +}),o=null==r?void 0:r[pp.selectedServer??0];var i;hp({servers:r,variables:{ +...(i=(null==o?void 0:o.variables)??{}, +Object.fromEntries(Object.entries(i??{}).map((([e,t])=>{var n,r,o +;return[e,(null==(n=t.default)?void 0:n.toString())??(null==(o=null==(r=t.enum)?void 0:r[0])?void 0:o.toString())??""] +})))),...fp(pp.variables,(null==r?void 0:r[pp.selectedServer??0])??{})}})}),{ +deep:!0,immediate:!0}),{server:pp,setServer:hp +}),gp="/* basic theme */\n.light-mode {\n --scalar-background-1: #fff;\n --scalar-background-2: #f6f6f6;\n --scalar-background-3: #e7e7e7;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #0099ff;\n --scalar-border-color: #dfdfdf;\n}\n.dark-mode {\n --scalar-background-1: rgb(9 9 11);\n --scalar-background-2: #0f0f0f;\n --scalar-background-3: #1a1a1a;\n\n --scalar-color-1: #e7e7e7;\n --scalar-color-2: #a4a4a4;\n --scalar-color-3: #797979;\n\n --scalar-color-accent: #3ea6ff;\n --scalar-background-accent: #3ea6ff1f;\n\n --scalar-border-color: #2d2d2d;\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-2);\n --scalar-sidebar-color-active: var(--scalar-color-1);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n\n/* advanced */\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n",vp=[["--theme-","--scalar-"],["--sidebar-","--scalar-sidebar-"]],bp=vp.map((([e])=>e)) +;function Op(){if(typeof window>"u")return!1 +;const e=document.createElement("div") +;e.setAttribute("style","width:30px;height:30px;overflow-y:scroll;"), +e.classList.add("scrollbar-test");const t=document.createElement("div") +;t.setAttribute("style","width:100%;height:40px"), +e.appendChild(t),document.body.appendChild(e) +;const n=30-e.firstChild.clientWidth;return document.body.removeChild(e),!!n} +const yp={default:"Default",alternate:"Alternate",moon:"Moon",purple:"Purple", +solarized:"Solarized",bluePlanet:"Blue Planet",saturn:"Saturn", +kepler:"Kepler-11e",mars:"Mars",deepSpace:"Deep Space",none:""},wp={ +alternate:"/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n.light-mode,\n.light-mode .dark-mode {\n --scalar-background-1: #f9f9f9;\n --scalar-background-2: #f1f1f1;\n --scalar-background-3: #e7e7e7;\n --scalar-background-card: #fff;\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: var(--scalar-background-3);\n\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n}\n.dark-mode {\n --scalar-background-1: #131313;\n --scalar-background-2: #1d1d1d;\n --scalar-background-3: #272727;\n --scalar-background-card: #1d1d1d;\n\n --scalar-color-1: rgba(255, 255, 255, 0.9);\n --scalar-color-2: rgba(255, 255, 255, 0.62);\n --scalar-color-3: rgba(255, 255, 255, 0.44);\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: var(--scalar-background-3);\n\n --scalar-border-color: rgba(255, 255, 255, 0.1);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-indent-border: var(--scalar-sidebar-border-color);\n --scalar-sidebar-indent-border-hover: var(--scalar-sidebar-border-color);\n --scalar-sidebar-indent-border-active: var(--scalar-sidebar-border-color);\n}\n/* advanced */\n.light-mode .dark-mode,\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #00b648;\n --scalar-color-red: #dd2f2c;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n\n.scalar-api-client__item,\n.scalar-card,\n.dark-mode .dark-mode.scalar-card {\n --scalar-background-1: var(--scalar-background-card);\n --scalar-background-2: var(--scalar-background-1);\n --scalar-background-3: var(--scalar-background-1);\n}\n.dark-mode .dark-mode.scalar-card {\n --scalar-background-3: var(--scalar-background-3);\n}\n.t-doc__sidebar {\n --scalar-color-green: var(--scalar-color-1);\n --scalar-color-red: var(--scalar-color-1);\n --scalar-color-yellow: var(--scalar-color-1);\n --scalar-color-blue: var(--scalar-color-1);\n --scalar-color-orange: var(--scalar-color-1);\n --scalar-color-purple: var(--scalar-color-1);\n}\n", +default:gp, +moon:".light-mode {\n color-scheme: light;\n --scalar-color-1: #000000;\n --scalar-color-2: #000000;\n --scalar-color-3: #000000;\n --scalar-color-accent: #645b0f;\n --scalar-background-1: #ccc9b3;\n --scalar-background-2: #c2bfaa;\n --scalar-background-3: #b8b5a1;\n --scalar-background-accent: #000000;\n\n --scalar-border-color: rgba(0, 0, 0, 0.2);\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --scalar-lifted-brightness: 1;\n --scalar-backdrop-brightness: 1;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, var(--scalar-border-color) 0px 0 0 1px;\n\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-red: #b91c1c;\n --scalar-color-orange: #a16207;\n --scalar-color-green: #047857;\n --scalar-color-blue: #1d4ed8;\n --scalar-color-orange: #c2410c;\n --scalar-color-purple: #6d28d9;\n}\n\n.dark-mode {\n color-scheme: dark;\n --scalar-color-1: #fffef3;\n --scalar-color-2: #fffef3;\n --scalar-color-3: #fffef3;\n --scalar-color-accent: #c3b531;\n --scalar-background-1: #313332;\n --scalar-background-2: #393b3a;\n --scalar-background-3: #414342;\n --scalar-background-accent: #fffef3;\n\n --scalar-border-color: rgba(255, 255, 255, 0.16);\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --scalar-lifted-brightness: 1.45;\n --scalar-backdrop-brightness: 0.5;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #000;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-sidebar-background-1);\n --scalar-sidebar-search-background: var(--scalar-background-3);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n\n.dark-mode .sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-sidebar-background-1);\n --scalar-sidebar-search-background: var(--scalar-background-3);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n", +purple:"/* basic theme */\n.light-mode {\n --scalar-background-1: #fff;\n --scalar-background-2: #f5f6f8;\n --scalar-background-3: #eceef1;\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #5469d4;\n --scalar-background-accent: #5469d41f;\n\n --scalar-border-color: rgba(215, 215, 206, 0.68);\n}\n.dark-mode {\n --scalar-background-1: #15171c;\n --scalar-background-2: #1c1e24;\n --scalar-background-3: #22252b;\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: #c9ced8;\n --scalar-color-3: #8c99ad;\n\n --scalar-color-accent: #5469d4;\n --scalar-background-accent: #5469d41f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.18);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-3);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: var(--scalar-background-1);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n\n/* advanced */\n.light-mode {\n --scalar-color-green: #17803d;\n --scalar-color-red: #e10909;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #1763a6;\n --scalar-color-orange: #e25b09;\n --scalar-color-purple: #5c3993;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #30a159;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #eec644;\n --scalar-color-blue: #2b7abf;\n --scalar-color-orange: #f07528;\n --scalar-color-purple: #7a59b1;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n", +solarized:".light-mode {\n color-scheme: light;\n --scalar-color-1: #584c27;\n --scalar-color-2: #616161;\n --scalar-color-3: #a89f84;\n --scalar-color-accent: #b58900;\n --scalar-background-1: #fdf6e3;\n --scalar-background-2: #eee8d5;\n --scalar-background-3: #ddd6c1;\n --scalar-background-accent: #b589001f;\n\n --scalar-border-color: #ded8c8;\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --scalar-lifted-brightness: 1;\n --scalar-backdrop-brightness: 1;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-red: #b91c1c;\n --scalar-color-orange: #a16207;\n --scalar-color-green: #047857;\n --scalar-color-blue: #1d4ed8;\n --scalar-color-orange: #c2410c;\n --scalar-color-purple: #6d28d9;\n}\n\n.dark-mode {\n color-scheme: dark;\n --scalar-color-1: #fff;\n --scalar-color-2: #cccccc;\n --scalar-color-3: #6d8890;\n --scalar-color-accent: #007acc;\n --scalar-background-1: #00212b;\n --scalar-background-2: #012b36;\n --scalar-background-3: #004052;\n --scalar-background-accent: #015a6f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.175);\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --scalar-lifted-brightness: 1.45;\n --scalar-backdrop-brightness: 0.5;\n\n --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #000;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: var(--scalar-background-2);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n\n.dark-mode .sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-sidebar-color-1);\n --scalar-sidebar-search-background: var(--scalar-background-2);\n --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n", +bluePlanet:"/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n --scalar-background-1: #f0f2f5;\n --scalar-background-2: #eaecf0;\n --scalar-background-3: #e0e2e6;\n --scalar-border-color: rgb(213 213 213);\n\n --scalar-color-1: rgb(9, 9, 11);\n --scalar-color-2: rgb(113, 113, 122);\n --scalar-color-3: rgba(25, 25, 28, 0.5);\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: #8ab4f81f;\n}\n.light-mode .scalar-card.dark-mode,\n.dark-mode {\n --scalar-background-1: #000e23;\n --scalar-background-2: #01132e;\n --scalar-background-3: #03193b;\n --scalar-border-color: rgba(255, 255, 255, 0.18);\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n z-index: 1;\n}\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-search-background: white;\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n/* Custom theme */\n/* Document header */\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n/* Hero Section Flare */\n.section-flare-item:nth-of-type(1) {\n --c1: #ffffff;\n --c2: #babfd8;\n --c3: #2e8bb2;\n --c4: #1a8593;\n --c5: #0a143e;\n --c6: #0a0f52;\n --c7: #2341b8;\n\n --solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6),\n var(--c7);\n --solid-wrap: var(--solid), var(--c1);\n --trans: var(--c1), transparent, var(--c2), transparent, var(--c3),\n transparent, var(--c4), transparent, var(--c5), transparent, var(--c6),\n transparent, var(--c7);\n --trans-wrap: var(--trans), transparent, var(--c1);\n\n background: radial-gradient(circle, var(--trans)),\n conic-gradient(from 180deg, var(--trans-wrap)),\n radial-gradient(circle, var(--trans)), conic-gradient(var(--solid-wrap));\n width: 70vw;\n height: 700px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n right: 0;\n position: absolute;\n transform: rotate(-45deg);\n top: -300px;\n opacity: 0.3;\n}\n.section-flare-item:nth-of-type(3) {\n --star-color: #6b9acc;\n --star-color2: #446b8d;\n --star-color3: #3e5879;\n background-image: radial-gradient(\n 2px 2px at 20px 30px,\n var(--star-color2),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 160px 120px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n );\n background-repeat: repeat;\n background-size: 200px 200px;\n width: 100%;\n height: 100%;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n}\n.section-flare {\n top: -150px !important;\n height: 100vh;\n background: linear-gradient(#000, var(--scalar-background-1));\n width: 100vw;\n overflow-x: hidden;\n}\n.light-mode .section-flare {\n display: none;\n}\n.light-mode .scalar-card {\n --scalar-background-1: #fff;\n --scalar-background-2: #fff;\n --scalar-background-3: #fff;\n}\n", +deepSpace:"/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n --scalar-color-1: rgb(9, 9, 11);\n --scalar-color-2: rgb(113, 113, 122);\n --scalar-color-3: rgba(25, 25, 28, 0.5);\n --scalar-color-accent: var(--scalar-color-1);\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f4f4f5;\n --scalar-background-3: #e3e3e6;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: rgb(228, 228, 231);\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n.dark-mode {\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n --scalar-color-accent: var(--scalar-color-1);\n\n --scalar-background-1: #09090b;\n --scalar-background-2: #18181b;\n --scalar-background-3: #2c2c30;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.16);\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-item-active-background: var(--scalar-background-2);\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n/* Custom theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.examples .scalar-card-footer {\n --scalar-background-3: transparent;\n padding-top: 0;\n}\n/* Hero section flare */\n.section-flare {\n width: 100vw;\n height: 550px;\n position: relative;\n}\n.section-flare-item:nth-of-type(1) {\n position: absolute;\n width: 100vw;\n height: 550px;\n --stripesDark: repeating-linear-gradient(\n 100deg,\n #000 0%,\n #000 7%,\n transparent 10%,\n transparent 12%,\n #000 16%\n );\n --rainbow: repeating-linear-gradient(\n 100deg,\n #fff 10%,\n #fff 16%,\n #fff 22%,\n #fff 30%\n );\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 300%, 200%;\n background-position:\n 50% 50%,\n 50% 50%;\n filter: invert(100%);\n -webkit-mask-image: radial-gradient(\n ellipse at 100% 0%,\n black 40%,\n transparent 70%\n );\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n pointer-events: none;\n opacity: 0.07;\n}\n.dark-mode .section-flare-item:nth-of-type(1) {\n background-image: var(--stripesDark), var(--rainbow);\n filter: opacity(50%) saturate(200%);\n opacity: 0.25;\n height: 350px;\n}\n.section-flare-item:nth-of-type(1):after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 200%, 100%;\n background-attachment: fixed;\n mix-blend-mode: difference;\n}\n.dark-mode .section-flare:after {\n background-image: var(--stripesDark), var(--rainbow);\n}\n.section-flare-item:nth-of-type(2) {\n --star-color: #fff;\n --star-color2: #fff;\n --star-color3: #fff;\n width: 100%;\n height: 100%;\n position: absolute;\n background-image: radial-gradient(\n 2px 2px at 20px 30px,\n var(--star-color2),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 160px 120px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n );\n background-repeat: repeat;\n background-size: 200px 200px;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n opacity: 0.2;\n}\n", +saturn:"/* basic theme */\n.light-mode {\n --scalar-background-1: #f3f3ee;\n --scalar-background-2: #e8e8e3;\n --scalar-background-3: #e4e4df;\n --scalar-border-color: rgba(215, 215, 206, 0.85);\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #1763a6;\n --scalar-background-accent: #1f648e1f;\n}\n.dark-mode {\n --scalar-background-1: #09090b;\n --scalar-background-2: #18181b;\n --scalar-background-3: #2c2c30;\n --scalar-border-color: rgba(255, 255, 255, 0.17);\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n\n --scalar-color-accent: #4eb3ec;\n --scalar-background-accent: #8ab4f81f;\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-1);\n\n --scalar-sidebar-search-background: var(--scalar-background-1);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n\n/* advanced */\n.light-mode {\n --scalar-color-green: #17803d;\n --scalar-color-red: #e10909;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #1763a6;\n --scalar-color-orange: #e25b09;\n --scalar-color-purple: #5c3993;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #30a159;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #eec644;\n --scalar-color-blue: #2b7abf;\n --scalar-color-orange: #f07528;\n --scalar-color-purple: #7a59b1;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n", +kepler:"/* basic theme */\n.light-mode {\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n --scalar-color-accent: #7070ff;\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f6f6f6;\n --scalar-background-3: #e7e7e7;\n --scalar-background-accent: #7070ff1f;\n\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n\n --scalar-code-language-color-supersede: var(--scalar-color-3);\n}\n.dark-mode {\n --scalar-color-1: #f7f8f8;\n --scalar-color-2: rgb(180, 188, 208);\n --scalar-color-3: #b4bcd099;\n --scalar-color-accent: #828fff;\n\n --scalar-background-1: #000212;\n --scalar-background-2: #0d0f1e;\n --scalar-background-3: #232533;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: #313245;\n --scalar-code-language-color-supersede: var(--scalar-color-3);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: rgba(0, 0, 0, 0.05);\n --scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, 0.05);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-background-2: rgba(0, 0, 0, 0.03);\n}\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-border-color: 1px solid rgba(255, 255, 255, 0.05);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.sidebar-search {\n backdrop-filter: blur(12px);\n}\n@keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--header-background-1);\n backdrop-filter: blur(12px);\n }\n}\n.dark-mode .scalar-card {\n background: rgba(255, 255, 255, 0.05) !important;\n}\n.dark-mode .scalar-card * {\n --scalar-background-2: transparent !important;\n --scalar-background-1: transparent !important;\n}\n.light-mode .dark-mode.scalar-card *,\n.light-mode .dark-mode.scalar-card {\n --scalar-background-1: #0d0f1e !important;\n --scalar-background-2: #0d0f1e !important;\n --scalar-background-3: #191b29 !important;\n}\n.light-mode .dark-mode.scalar-card {\n background: #191b29 !important;\n}\n.badge {\n box-shadow: 0 0 0 1px var(--scalar-border-color);\n margin-right: 6px;\n}\n\n.table-row.required-parameter .table-row-item:nth-of-type(2):after {\n background: transparent;\n box-shadow: none;\n}\n/* Hero Section Flare */\n.section-flare {\n width: 100vw;\n background: radial-gradient(\n ellipse 80% 50% at 50% -20%,\n rgba(120, 119, 198, 0.3),\n transparent\n );\n height: 100vh;\n}\n", +mars:"/* basic theme */\n:root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n --scalar-background-1: #f9f6f0;\n --scalar-background-2: #f2efe8;\n --scalar-background-3: #e9e7e2;\n --scalar-border-color: rgba(203, 165, 156, 0.6);\n\n --scalar-color-1: #c75549;\n --scalar-color-2: #c75549;\n --scalar-color-3: #c75549;\n\n --scalar-color-accent: #c75549;\n --scalar-background-accent: #dcbfa81f;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n.dark-mode {\n --scalar-background-1: #140507;\n --scalar-background-2: #20090c;\n --scalar-background-3: #321116;\n --scalar-border-color: rgba(255, 255, 255, 0.17);\n\n --scalar-color-1: rgba(255, 255, 255, 0.9);\n --scalar-color-2: rgba(255, 255, 255, 0.62);\n --scalar-color-3: rgba(255, 255, 255, 0.44);\n\n --scalar-color-accent: rgba(255, 255, 255, 0.9);\n --scalar-background-accent: #441313;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n z-index: 1;\n}\n/* advanced */\n.light-mode {\n --scalar-color-green: #09533a;\n --scalar-color-red: #aa181d;\n --scalar-color-yellow: #ab8d2b;\n --scalar-color-blue: #19689a;\n --scalar-color-orange: #b26c34;\n --scalar-color-purple: #4c2191;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n}\n.light-mode .t-doc__sidebar {\n --scalar-sidebar-search-background: white;\n}\n.examples .scalar-card-footer {\n --scalar-background-3: transparent;\n padding-top: 0;\n}\n/* Hero section flare */\n.section-flare {\n overflow-x: hidden;\n height: 100vh;\n left: initial;\n}\n.section-flare-item:nth-of-type(1) {\n background: #d25019;\n position: relative;\n top: -150px;\n right: -400px;\n width: 80vw;\n height: 500px;\n margin-top: -150px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n}\n.light-mode .section-flare {\n display: none;\n}\n" +},xp=e=>"none"===e?"":wp[e||"default"]??gp;function kp(e){ +return!!ft()&&(mt(e),!0)}function Sp(e){return"function"==typeof e?e():Fn(e)} +const _p="undefined"!=typeof window&&"undefined"!=typeof document +;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope) +;const Ep=e=>null!=e,Tp=Object.prototype.toString,Cp=e=>"[object Object]"===Tp.call(e),Ap=()=>{} +;function Pp(e,t=200,n={}){return function(e,t){return function(...n){ +return new Promise(((r,o)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t, +thisArg:this,args:n})).then(r).catch(o)}))}}(function(e,t={}){let n,r,o=Ap +;const i=e=>{clearTimeout(e),o(),o=Ap};return a=>{const s=Sp(e),l=Sp(t.maxWait) +;return n&&i(n), +s<=0||void 0!==l&&l<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise(((e,c)=>{ +o=t.rejectOnCancel?c:e,l&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(a()) +}),l)),n=setTimeout((()=>{r&&i(r),r=null,e(a())}),s)}))}}(t,n),e)} +function Dp(e,t,n){return li(e,((e,n,r)=>{e&&t(e,n,r)}),{...n,once:!1})} +function $p(e){var t;const n=Sp(e);return null!=(t=null==n?void 0:n.$el)?t:n} +const Rp=_p?window:void 0,Np=_p?window.document:void 0;function Ip(...e){ +let t,n,r,o +;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,o]=e,t=Rp):[t,n,r,o]=e, +!t)return Ap;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]) +;const i=[],a=()=>{i.forEach((e=>e())),i.length=0 +},s=li((()=>[$p(t),Sp(o)]),(([e,t])=>{if(a(),!e)return;const o=Cp(t)?{...t}:t +;i.push(...n.flatMap((t=>r.map((n=>((e,t,n,r)=>(e.addEventListener(t,n,r), +()=>e.removeEventListener(t,n,r)))(e,t,n,o))))))}),{immediate:!0,flush:"post" +}),l=()=>{s(),a()};return kp(l),l}function Mp(e){const t=function(){ +const e=Bn(!1),t=ma();return t&&Ur((()=>{e.value=!0}),t),e}() +;return Aa((()=>(t.value,Boolean(e()))))}function Lp(e,t={}){ +const{window:n=Rp}=t,r=Mp((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia)) +;let o;const i=Bn(!1),a=e=>{i.value=e.matches},s=()=>{ +o&&("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a)) +},l=ai((()=>{ +r.value&&(s(),o=n.matchMedia(Sp(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a), +i.value=o.matches)}));return kp((()=>{l(),s(),o=void 0})),i}const Bp=new Map +;function Qp(e){const t=ft();function n(n){var o;const i=Bp.get(e)||new Set +;i.add(n),Bp.set(e,i);const a=()=>r(n) +;return null==(o=null==t?void 0:t.cleanups)||o.push(a),a}function r(t){ +const n=Bp.get(e);n&&(n.delete(t),n.size||o())}function o(){Bp.delete(e)}return{ +on:n,once:function(e){return n((function t(...n){r(t),e(...n)}))},off:r, +emit:function(t,n){var r;null==(r=Bp.get(e))||r.forEach((e=>e(t,n)))},reset:o}} +function jp(e=null,t={}){ +const{baseUrl:n="",rel:r="icon",document:o=Np}=t,i=function(...e){ +if(1!==e.length)return Gn(...e);const t=e[0] +;return"function"==typeof t?kn(Vn((()=>({get:t,set:Ap})))):Bn(t)}(e) +;return li(i,((e,t)=>{"string"==typeof e&&e!==t&&(e=>{ +const t=null==o?void 0:o.head.querySelectorAll(`link[rel*="${r}"]`) +;if(t&&0!==t.length)null==t||t.forEach((t=>t.href=`${n}${e}`));else{ +const t=null==o?void 0:o.createElement("link") +;t&&(t.rel=r,t.href=`${n}${e}`,t.type=`image/${e.split(".").pop()}`, +null==o||o.head.append(t))}})(e)}),{immediate:!0}),i}const Up={ctrl:"control", +command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown", +left:"arrowleft",right:"arrowright"};function Fp(e={}){ +const{reactive:t=!1,target:n=Rp,aliasMap:r=Up,passive:o=!0,onEventFired:i=Ap}=e,a=wn(new Set),s={ +toJSON:()=>({}),current:a},l=t?wn(s):s,c=new Set,u=new Set;function d(e,n){ +e in l&&(t?l[e]=n:l[e].value=n)}function p(){a.clear();for(const e of u)d(e,!1)} +function h(e,t){var n,r +;const o=null==(n=e.key)?void 0:n.toLowerCase(),i=[null==(r=e.code)?void 0:r.toLowerCase(),o].filter(Boolean) +;o&&(t?a.add(o):a.delete(o));for(const a of i)u.add(a),d(a,t) +;"meta"!==o||t?"function"==typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...a,...i].forEach((e=>c.add(e))):(c.forEach((e=>{ +a.delete(e),d(e,!1)})),c.clear())}Ip(n,"keydown",(e=>(h(e,!0),i(e))),{passive:o +}),Ip(n,"keyup",(e=>(h(e,!1),i(e))),{passive:o}),Ip("blur",p,{passive:!0 +}),Ip("focus",p,{passive:!0});const f=new Proxy(l,{get(e,n,o){ +if("string"!=typeof n)return Reflect.get(e,n,o) +;if((n=n.toLowerCase())in r&&(n=r[n]),!(n in l))if(/[+_-]/.test(n)){ +const e=n.split(/[+_-]/g).map((e=>e.trim())) +;l[n]=Aa((()=>e.every((e=>Sp(f[e])))))}else l[n]=Bn(!1) +;const i=Reflect.get(e,n,o);return t?Sp(i):i}});return f} +var qp=Object.defineProperty,zp=(e,t,n)=>(((e,t,n)=>{t in e?qp(e,t,{ +enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n +})(e,"symbol"!=typeof t?t+"":t,n),n);!function(e){if(typeof document>"u")return +;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style") +;n.type="text/css", +t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)) +}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px;transform:translateZ(0)}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}") +;let Hp=0;const Zp=new class{constructor(){ +zp(this,"subscribers"),zp(this,"toasts"), +zp(this,"subscribe",(e=>(this.subscribers.push(e),()=>{ +const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1) +}))),zp(this,"publish",(e=>{this.subscribers.forEach((t=>t(e))) +})),zp(this,"addToast",(e=>{this.publish(e),this.toasts=[...this.toasts,e] +})),zp(this,"create",(e=>{var t +;const{message:n,...r}=e,o="number"==typeof e.id||e.id&&(null==(t=e.id)?void 0:t.length)>0?e.id:Hp++,i=this.toasts.find((e=>e.id===o)),a=void 0===e.dismissible||e.dismissible +;return i?this.toasts=this.toasts.map((t=>t.id===o?(this.publish({...t,...e, +id:o,title:n}),{...t,...e,id:o,dismissible:a,title:n}):t)):this.addToast({ +title:n,...r,dismissible:a,id:o}),o +})),zp(this,"dismiss",(e=>(e||this.toasts.forEach((e=>{ +this.subscribers.forEach((t=>t({id:e.id,dismiss:!0}))) +})),this.subscribers.forEach((t=>t({id:e,dismiss:!0 +}))),e))),zp(this,"message",((e,t)=>this.create({...t,message:e,type:"default" +}))),zp(this,"error",((e,t)=>this.create({...t,type:"error",message:e +}))),zp(this,"success",((e,t)=>this.create({...t,type:"success",message:e +}))),zp(this,"info",((e,t)=>this.create({...t,type:"info",message:e +}))),zp(this,"warning",((e,t)=>this.create({...t,type:"warning",message:e +}))),zp(this,"loading",((e,t)=>this.create({...t,type:"loading",message:e +}))),zp(this,"promise",((e,t)=>{if(!t)return;let n +;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading", +message:t.loading, +description:"function"!=typeof t.description?t.description:void 0})) +;const r=e instanceof Promise?e:e();let o=void 0!==n;return r.then((e=>{ +if(e&&"boolean"==typeof e.ok&&!e.ok){o=!1 +;const e="function"==typeof t.error?t.error(`HTTP error! status: ${response.status}`):t.error,r="function"==typeof t.description?t.description(`HTTP error! status: ${response.status}`):t.description +;this.create({id:n,type:"error",message:e,description:r}) +}else if(void 0!==t.success){o=!1 +;const r="function"==typeof t.success?t.success(e):t.success,i="function"==typeof t.description?t.description(e):t.description +;this.create({id:n,type:"success",message:r,description:i})}})).catch((e=>{ +if(void 0!==t.error){o=!1 +;const r="function"==typeof t.error?t.error(e):t.error,i="function"==typeof t.description?t.description(e):t.description +;this.create({id:n,type:"error",message:r,description:i})}})).finally((()=>{ +var e;o&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)})),n +})),zp(this,"custom",((e,t)=>{const n=(null==t?void 0:t.id)||Hp++ +;return this.publish({component:e,id:n,...t}),n +})),this.subscribers=[],this.toasts=[]}},Vp=(e,t)=>{ +const n=(null==t?void 0:t.id)||Hp++;return Zp.create({message:e,id:n, +type:"default",...t}),n},Wp=Object.assign(Vp,{success:Zp.success,info:Zp.info, +warning:Zp.warning,error:Zp.error,custom:Zp.custom,message:Zp.message, +promise:Zp.promise,dismiss:Zp.dismiss,loading:Zp.loading}),Xp=(e,t)=>{ +const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Yp={},Gp={ +xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24", +fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round", +"stroke-linejoin":"round"},Kp=[ea("line",{x1:"18",y1:"6",x2:"6",y2:"18" +},null,-1),ea("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)] +;const Jp=Xp(Yp,[["render",function(e,t){return zi(),Wi("svg",Gp,Kp) +}]]),eh=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-dismissible","data-type","data-invert","data-swipe-out","data-expanded"],th=["aria-label","data-disabled"],nh={ +key:0,"data-icon":""},rh={"data-content":""},oh=eo({__name:"Toast",props:{ +toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean}, +heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean}, +closeButton:{type:Boolean},interacting:{type:Boolean},duration:{}, +descriptionClass:{},style:{},cancelButtonStyle:{},actionButtonStyle:{}, +unstyled:{type:Boolean},loadingIcon:{},class:{},classes:{},icons:{}, +closeButtonAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function} +},emits:["update:heights","removeToast"],setup(e,{emit:t}){ +const n=t,r=e,o=Bn(!1),i=Bn(!1),a=Bn(!1),s=Bn(!1),l=Bn(0),c=Bn(0),u=Bn(null),d=Bn(null),p=Aa((()=>0===r.index)),h=Aa((()=>r.index+1<=r.visibleToasts)),f=Aa((()=>r.toast.type)),m=Aa((()=>!1!==r.toast.dismissible)),g=Aa((()=>{ +var e,t,n,o,i,a,s +;return r.cn(null==(e=r.classes)?void 0:e.toast,null==(n=null==(t=r.toast)?void 0:t.classes)?void 0:n.toast,null==(o=r.classes)?void 0:o.default,null==(i=r.classes)?void 0:i[r.toast.type||"default"],null==(s=null==(a=r.toast)?void 0:a.classes)?void 0:s[r.toast.type||"default"]) +})),v=r.toast.style||{},b=Aa((()=>r.heights.findIndex((e=>e.toastId===r.toast.id))||0)),O=Aa((()=>r.toast.closeButton??r.closeButton)),y=Aa((()=>r.toast.duration||r.duration||4e3)),w=Bn(0),x=Bn(0),k=Bn(y.value),S=Bn(0),_=Bn(null),E=Aa((()=>r.position.split("-"))),T=Aa((()=>E.value[0])),C=Aa((()=>E.value[1])),A="string"!=typeof r.toast.title,P="string"!=typeof r.toast.description,D=Aa((()=>r.heights.reduce(((e,t,n)=>n>=b.value?e:e+t.height),0))),$=(()=>{ +const e=Bn(!1);return ai((()=>{const t=()=>{e.value=document.hidden} +;return document.addEventListener("visibilitychange",t), +()=>window.removeEventListener("visibilitychange",t)})),{isDocumentHidden:e} +})(),R=Aa((()=>r.toast.invert||r.invert)),N=Aa((()=>"loading"===f.value)) +;Ur((()=>{if(!o.value)return;const e=d.value,t=null==e?void 0:e.style.height +;e.style.height="auto";const i=e.getBoundingClientRect().height;let a +;e.style.height=t, +c.value=i,a=r.heights.find((e=>e.toastId===r.toast.id))?r.heights.map((e=>e.toastId===r.toast.id?{ +...e,height:i}:e)):[{toastId:r.toast.id,height:i,position:r.toast.position +},...r.heights],n("update:heights",a)}));const I=()=>{i.value=!0,l.value=x.value +;const e=r.heights.filter((e=>e.toastId!==r.toast.id)) +;n("update:heights",e),setTimeout((()=>{n("removeToast",r.toast)}),200)},M=()=>{ +var e,t +;N.value||!m.value||(I(),null==(t=(e=r.toast).onDismiss)||t.call(e,r.toast)) +},L=e=>{ +N.value||!m.value||(u.value=new Date,l.value=x.value,e.target.setPointerCapture(e.pointerId), +"BUTTON"!==e.target.tagName&&(a.value=!0,_.value={x:e.clientX,y:e.clientY})) +},B=e=>{var t,n,o,i;if(s.value)return;_.value=null +;const c=Number((null==(t=d.value)?void 0:t.style.getPropertyValue("--swipe-amount").replace("px",""))||0),p=(new Date).getTime()-u.value.getTime(),h=Math.abs(c)/p +;if(Math.abs(c)>=20||h>.11)return l.value=x.value, +null==(o=(n=r.toast).onDismiss)||o.call(n,r.toast),I(),void(s.value=!0) +;null==(i=d.value)||i.style.setProperty("--swipe-amount","0px"),a.value=!1 +},Q=e=>{var t;if(!_.value)return +;const n=e.clientY-_.value.y,r=e.clientX-_.value.x,o=("top"===E.value[0]?Math.min:Math.max)(0,n),i="touch"===e.pointerType?10:2 +;Math.abs(o)>i?null==(t=d.value)||t.style.setProperty("--swipe-amount",`${n}px`):Math.abs(r)>i&&(_.value=null) +};return ai((()=>{x.value=14*b.value+D.value})),ai((e=>{ +if(r.toast.promise&&"loading"===f.value||r.toast.duration===1/0||"loading"===r.toast.type)return +;let t;r.expanded||r.interacting||r.pauseWhenPageIsHidden&&$?(()=>{ +if(S.value{var e,t +;null==(t=(e=r.toast).onAutoClose)||t.call(e,r.toast),I()}),k.value)),e((()=>{ +clearTimeout(t)}))})),ai((()=>{r.toast.delete&&I()})),Ur((()=>{if(d.value){ +const e=d.value.getBoundingClientRect().height;c.value=e;const t=[{ +toastId:r.toast.id,height:e,position:r.toast.position},...r.heights] +;n("update:heights",t)}o.value=!0})),Hr((()=>{if(d.value){ +const e=r.heights.filter((e=>e.toastId!==r.toast.id));n("update:heights",e)}})), +(e,t)=>{var n,r,u,b,y,w,k,S,_,E,D,$;return zi(),Wi("li",{ +"aria-live":e.toast.important?"assertive":"polite","aria-atomic":"true", +role:"status",tabindex:"0",ref_key:"toastRef",ref:d,"data-sonner-toast":"", +class:et(g.value), +"data-styled":!(e.toast.component||null!=(n=e.toast)&&n.unstyled||e.unstyled), +"data-mounted":o.value,"data-promise":!!e.toast.promise,"data-removed":i.value, +"data-visible":h.value,"data-y-position":T.value,"data-x-position":C.value, +"data-index":e.index,"data-front":p.value,"data-swiping":a.value, +"data-dismissible":m.value,"data-type":f.value,"data-invert":R.value, +"data-swipe-out":s.value, +"data-expanded":!!(e.expanded||e.expandByDefault&&o.value),style:Xe({ +"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index, +"--offset":`${i.value?l.value:x.value}px`, +"--initial-height":e.expandByDefault?"auto":`${c.value}px`,...e.style,...Fn(v) +}),onPointerdown:L,onPointerup:B,onPointermove:Q +},[O.value&&!e.toast.component?(zi(),Wi("button",{key:0, +"aria-label":e.closeButtonAriaLabel||"Close toast","data-disabled":N.value, +"data-close-button":"", +class:et(e.cn(null==(r=e.classes)?void 0:r.closeButton,null==(b=null==(u=e.toast)?void 0:u.classes)?void 0:b.closeButton)), +onClick:M +},[ta(Jp)],10,th)):aa("",!0),e.toast.component?(zi(),Xi(Ir(e.toast.component),ua({ +key:1},e.toast.componentProps,{onCloseToast:I}),null,16)):(zi(),Wi(Bi,{key:2 +},["default"!==f.value||e.toast.icon||e.toast.promise?(zi(), +Wi("div",nh,[!e.toast.promise&&"loading"!==f.value||e.toast.icon?aa("",!0):no(e.$slots,"loading-icon",{ +key:0}),e.toast.icon?(zi(),Xi(Ir(e.toast.icon),{key:1})):(zi(),Wi(Bi,{key:2 +},["success"===f.value?no(e.$slots,"success-icon",{key:0 +}):"error"===f.value?no(e.$slots,"error-icon",{key:1 +}):"warning"===f.value?no(e.$slots,"warning-icon",{key:2 +}):"info"===f.value?no(e.$slots,"info-icon",{key:3 +}):aa("",!0)],64))])):aa("",!0),ea("div",rh,[ea("div",{"data-title":"", +class:et(e.cn(null==(y=e.classes)?void 0:y.title,null==(w=e.toast.classes)?void 0:w.title)) +},[A?(zi(),Xi(Ir(e.toast.title),tt(ua({key:0 +},e.toast.componentProps)),null,16)):(zi(),Wi(Bi,{key:1 +},[oa(st(e.toast.title),1)],64))],2),e.toast.description?(zi(),Wi("div",{key:0, +"data-description":"", +class:et(e.cn(e.descriptionClass,e.toast.descriptionClass,null==(k=e.classes)?void 0:k.description,null==(S=e.toast.classes)?void 0:S.description)) +},[P?(zi(),Xi(Ir(e.toast.description),tt(ua({key:0 +},e.toast.componentProps)),null,16)):(zi(),Wi(Bi,{key:1 +},[oa(st(e.toast.description),1)],64))],2)):aa("",!0)]),e.toast.cancel?(zi(), +Wi("button",{key:1, +class:et(e.cn(null==(_=e.classes)?void 0:_.cancelButton,null==(E=e.toast.classes)?void 0:E.cancelButton)), +"data-button":"","data-cancel":"",onClick:t[0]||(t[0]=()=>{var t +;I(),null!=(t=e.toast.cancel)&&t.onClick&&e.toast.cancel.onClick()}) +},st(e.toast.cancel.label),3)):aa("",!0),e.toast.action?(zi(),Wi("button",{ +key:2, +class:et(e.cn(null==(D=e.classes)?void 0:D.actionButton,null==($=e.toast.classes)?void 0:$.actionButton)), +"data-button":"",onClick:t[1]||(t[1]=t=>{var n +;null==(n=e.toast.action)||n.onClick(t),!t.defaultPrevented&&I()}) +},st(e.toast.action.label),3)):aa("",!0)],64))],46,eh)}} +}),ih=["data-visible"],ah={class:"sonner-spinner"},sh=eo({__name:"Loader", +props:{visible:{type:Boolean}},setup(e){const t=Array(12).fill(0) +;return(e,n)=>(zi(),Wi("div",{class:"sonner-loading-wrapper", +"data-visible":e.visible +},[ea("div",ah,[(zi(!0),Wi(Bi,null,Kr(Fn(t),(e=>(zi(),Wi("div",{ +key:`spinner-bar-${e}`,class:"sonner-loading-bar"})))),128))])],8,ih))} +}),lh={},ch={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20", +fill:"currentColor",height:"20",width:"20"},uh=[ea("path",{ +"fill-rule":"evenodd", +d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", +"clip-rule":"evenodd"},null,-1)];const dh=Xp(lh,[["render",function(e,t){ +return zi(),Wi("svg",ch,uh)}]]),ph={},hh={xmlns:"http://www.w3.org/2000/svg", +viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},fh=[ea("path",{ +"fill-rule":"evenodd", +d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", +"clip-rule":"evenodd"},null,-1)];const mh=Xp(ph,[["render",function(e,t){ +return zi(),Wi("svg",hh,fh)}]]),gh={},vh={xmlns:"http://www.w3.org/2000/svg", +viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},bh=[ea("path",{ +"fill-rule":"evenodd", +d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", +"clip-rule":"evenodd"},null,-1)];const Oh=Xp(gh,[["render",function(e,t){ +return zi(),Wi("svg",vh,bh)}]]),yh={},wh={xmlns:"http://www.w3.org/2000/svg", +viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},xh=[ea("path",{ +"fill-rule":"evenodd", +d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", +"clip-rule":"evenodd"},null,-1)];const kh=Xp(yh,[["render",function(e,t){ +return zi(),Wi("svg",wh,xh) +}]]),Sh=["aria-label"],_h=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],Eh="32px",Th=typeof window<"u"&&typeof document<"u",Ch=eo({ +name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean, +default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{ +default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{ +type:Boolean,default:!1},duration:{default:4e3},gap:{default:14},visibleToasts:{ +default:3},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({}) +},class:{default:""},style:{default:()=>({})},offset:{default:Eh},dir:{ +default:"auto"},icons:{},containerAriaLabel:{default:"Notifications"}, +pauseWhenPageIsHidden:{type:Boolean,default:!1},cn:{}},setup(e){ +function t(...e){return e.filter(Boolean).join(" ")}function n(){ +if(typeof window>"u"||typeof document>"u")return"ltr" +;const e=document.documentElement.getAttribute("dir") +;return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction +}const r=e,o=uo(),i=Bn([]),a=Aa((()=>{ +const e=i.value.filter((e=>e.position)).map((e=>e.position)) +;return e.length>0?Array.from(new Set([r.position].concat(e))):[r.position] +})),s=Bn([]),l=Bn(!1),c=Bn(!1),u=Bn("system"!==r.theme?r.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),d=Aa((()=>r.cn||t)),p=Bn(null),h=Bn(null),f=Bn(!1),m=r.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"") +;function g(e){i.value=i.value.filter((({id:t})=>t!==e.id))}const v=e=>{var t,n +;f.value&&(null==(n=null==(t=e.currentTarget)?void 0:t.contains)||!n.call(t,e.relatedTarget))&&(f.value=!1, +h.value&&(h.value.focus({preventScroll:!0}),h.value=null))},b=e=>{ +e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||f.value||(f.value=!0, +h.value=e.relatedTarget)},O=e=>{ +e.target&&e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||(c.value=!1) +};return ai((e=>{const t=Zp.subscribe((e=>{ +e.dismiss?i.value=i.value.map((t=>t.id===e.id?{...t,delete:!0}:t)):dr((()=>{ +const t=i.value.findIndex((t=>t.id===e.id)) +;-1!==t?i.value.splice(t,1,e):i.value=[e,...i.value]}))}));e((()=>{t()})) +})),li((()=>r.theme),(e=>{ +"system"===e?("system"===e&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?u.value="dark":u.value="light"), +!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(({matches:e})=>{ +u.value=e?"dark":"light"}))):u.value=e})),li((()=>p.value),(()=>{ +if(p.value)return()=>{h.value&&(h.value.focus({preventScroll:!0 +}),h.value=null,f.value=!1)}})),ai((()=>{i.value.length<=1&&(l.value=!1) +})),ai((e=>{function t(e){ +const t=r.hotkey.every((t=>e[t]||e.code===t)),n=Array.isArray(p.value)?p.value[0]:p.value +;t&&(l.value=!0,null==n||n.focus()) +;const o=document.activeElement===p.value||(null==n?void 0:n.contains(document.activeElement)) +;"Escape"===e.code&&o&&(l.value=!1)}Th&&(document.addEventListener("keydown",t), +e((()=>{document.removeEventListener("keydown",t)}))) +})),(e,t)=>(zi(),Wi("section",{"aria-label":`${e.containerAriaLabel} ${Fn(m)}`, +tabIndex:-1},[(zi(!0),Wi(Bi,null,Kr(a.value,((r,a)=>{var u +;return zi(),Wi("ol",ua({key:r,ref_for:!0,ref_key:"listRef",ref:p, +"data-sonner-toaster":"",class:e.class,dir:"auto"===e.dir?n():e.dir,tabIndex:-1, +"data-theme":e.theme,"data-rich-colors":e.richColors, +"data-y-position":r.split("-")[0],"data-x-position":r.split("-")[1],style:{ +"--front-toast-height":`${null==(u=s.value[0])?void 0:u.height}px`, +"--offset":"number"==typeof e.offset?`${e.offset}px`:e.offset||Eh, +"--width":"356px","--gap":"14px",...e.style,...Fn(o).style},onBlur:v,onFocus:b, +onMouseenter:t[1]||(t[1]=e=>l.value=!0),onMousemove:t[2]||(t[2]=e=>l.value=!0), +onMouseleave:t[3]||(t[3]=()=>{c.value||(l.value=!1)}),onPointerdown:O, +onPointerup:t[4]||(t[4]=e=>c.value=!1) +},e.$attrs),[(zi(!0),Wi(Bi,null,Kr(i.value.filter((t=>!t.position&&0===a||t.position===e.position)),((n,r)=>{ +var o,a,u,p,h,f,m,v,b;return zi(),Xi(oh,{key:n.id,index:r,toast:n, +duration:(null==(o=e.toastOptions)?void 0:o.duration)??e.duration, +class:et(null==(a=e.toastOptions)?void 0:a.class), +descriptionClass:null==(u=e.toastOptions)?void 0:u.descriptionClass, +invert:e.invert,visibleToasts:e.visibleToasts, +closeButton:(null==(p=e.toastOptions)?void 0:p.closeButton)??e.closeButton, +interacting:c.value,position:e.position, +style:Xe(null==(h=e.toastOptions)?void 0:h.style), +unstyled:null==(f=e.toastOptions)?void 0:f.unstyled, +classes:null==(m=e.toastOptions)?void 0:m.classes, +cancelButtonStyle:null==(v=e.toastOptions)?void 0:v.cancelButtonStyle, +actionButtonStyle:null==(b=e.toastOptions)?void 0:b.actionButtonStyle, +toasts:i.value,expandByDefault:e.expand,gap:e.gap,expanded:l.value, +pauseWhenPageIsHidden:e.pauseWhenPageIsHidden,cn:d.value,heights:s.value, +"onUpdate:heights":t[0]||(t[0]=e=>s.value=e),onRemoveToast:g},{ +"loading-icon":Tr((()=>[no(e.$slots,"loading-icon",{},(()=>[ta(sh,{ +visible:"loading"===n.type},null,8,["visible"])]))])), +"success-icon":Tr((()=>[no(e.$slots,"success-icon",{},(()=>[ta(dh)]))])), +"error-icon":Tr((()=>[no(e.$slots,"error-icon",{},(()=>[ta(kh)]))])), +"warning-icon":Tr((()=>[no(e.$slots,"warning-icon",{},(()=>[ta(Oh)]))])), +"info-icon":Tr((()=>[no(e.$slots,"info-icon",{},(()=>[ta(mh)]))])),_:2 +},1032,["index","toast","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","toasts","expandByDefault","gap","expanded","pauseWhenPageIsHidden","cn","heights"]) +})),128))],16,_h)})),128))],8,Sh))}}),Ah={toast:()=>null};function Ph(e){ +Ah.toast=e}function Dh(){return{initializeToasts:Ph,toast:(e,t="info",n={ +timeout:3e3})=>{Ah.toast(e,t,n)}}}const $h=eo({__name:"ScalarToasts",setup(e){ +const t=Bn(!1);Ur((()=>t.value=!0));const n={success:Wp.success,error:Wp.error, +warn:Wp.warning,info:Wp},{initializeToasts:r}=Dh() +;return r(((e,t="info",r={})=>{(n[t]||n.info)(e,{duration:r.timeout||3e3, +description:r.description})})),(e,n)=>t.value?(zi(),Xi(Fn(Ch),{key:0, +class:"scalar-toaster"})):aa("",!0)}});!function(){try{if(typeof document<"u"){ +var e=document.createElement("style") +;e.appendChild(document.createTextNode(".scalar-toaster [data-sonner-toast][data-styled=true]{background:var(--scalar-background-1);color:var(--scalar-color-1);padding:18px;border:none;border-radius:var(--scalar-radius-lg);font-size:var(--scalar-font-size-3);font-weight:var(--scalar-font-medium);box-shadow:var(--scalar-shadow-2)}.scalar-toaster [data-sonner-toast] [data-icon]{align-self:flex-start;position:relative;top:2px}.scalar-toaster [data-sonner-toast][data-styled=true][data-expanded=true]{height:auto}.scalar-toaster [data-sonner-toast][data-type=error]{background:var(--scalar-background-1)}.scalar-toaster [data-sonner-toast][data-type=error] [data-icon]{color:color-mix(in srgb,var(--scalar-color-red) 75%,var(--scalar-color-1))}.scalar-toaster [data-sonner-toast][data-type=warning]{background:var(--scalar-background-1)}.scalar-toaster [data-sonner-toast][data-type=warning] [data-icon]{color:color-mix(in srgb,var(--scalar-color-orange) 90%,var(--scalar-color-1))}")), +document.head.appendChild(e)}}catch(z$){ +console.error("vite-plugin-css-injected-by-js",z$)}}();const Rh=()=>{ +const{toast:e}=Dh();return{copyToClipboard:t=>{ +navigator.clipboard.writeText(t).then((()=>{e("Copied to the clipboard","info") +}))}}},Nh=Bn(!1);function Ih(e,t){var n +;return Nh.value=t?"dark"===t:("undefined"==typeof window?null:JSON.parse((null==(n=window.localStorage)?void 0:n.getItem("isDark"))||"null"))??e??(()=>{ +var e,t +;const n="undefined"!=typeof window?null==(e=window.localStorage)?void 0:e.getItem("isDark"):null +;return"string"==typeof n?!!JSON.parse(n):!("undefined"==typeof window||"function"!=typeof(null==window?void 0:window.matchMedia)||!(null==(t=null==window?void 0:window.matchMedia("(prefers-color-scheme: dark)"))?void 0:t.matches)) +})(),li(Nh,(e=>{ +"undefined"!=typeof document&&(document.body.classList.toggle("dark-mode",e), +document.body.classList.toggle("light-mode",!e))}),{immediate:!0}),{isDark:Nh, +toggleDarkMode:()=>{var e +;Nh.value=!Nh.value,"undefined"!=typeof window&&(null==(e=null==window?void 0:window.localStorage)||e.setItem("isDark",JSON.stringify(Nh.value))) +},setDarkMode:function(e){var t +;Nh.value=e,"undefined"!=typeof window&&(null==(t=null==window?void 0:window.localStorage)||t.setItem("isDark",JSON.stringify(Nh.value))) +}}}const Mh="https://api.scalar.com/request-proxy",Lh="https://proxy.scalar.com" +;const Bh=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Qh=Object.hasOwnProperty +;class jh{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this +;let r=Uh(e,!0===t);const o=r;for(;Qh.call(n.occurrences,r);)n.occurrences[o]++, +r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r}reset(){ +this.occurrences=Object.create(null)}}function Uh(e,t){ +return"string"!=typeof e?"":(t||(e=e.toLowerCase()), +e.replace(Bh,"").replace(/ /g,"-"))} +const Fh=Bn($d.hash??""),qh=Bn(),zh=Bn(!1),Hh=e=>e.slug?`description/${e.slug}`:"",Zh=e=>{ +var t;if(!qh.value)return"" +;const n=new RegExp("^"+(null==(t=qh.value)?void 0:t.basePath)+"/?") +;return decodeURIComponent(e.replace(n,""))},Vh=(e,t)=>{if(!e)return"webhooks" +;const n=Uh(e);return`webhook/${t}/${encodeURIComponent(n)}`},Wh=e=>{ +if(!e)return"models";const t=Uh(e);return`model/${encodeURIComponent(t)}` +},Xh=(e,t)=>`${Yh(t)}/${e.httpVerb}${e.path}`,Yh=({name:e})=>{const t=Uh(e) +;return`tag/${encodeURIComponent(t)}`},Gh=(e=Fh.value)=>{var t +;const n=null==(t=e.match(/(tag\/[^/]+)/))?void 0:t[0],r=e.startsWith("model")?"models":"",o=e.startsWith("webhook")?"webhooks":"" +;return n||r||o},Kh=()=>{ +Fh.value=qh.value?Zh(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,"")) +},Jh=()=>({hash:Fh,getWebhookId:Vh,getModelId:Wh,getHeadingId:Hh, +getOperationId:Xh,getPathRoutingId:Zh,getSectionId:Gh,getTagId:Yh, +isIntersectionEnabled:zh,pathRouting:qh,updateHash:Kh});function ef(e){return{ +parameterMap:Aa((()=>{var t +;const n=(null==(t=e.operation.information)?void 0:t.parameters)??[],r={path:[], +query:[],header:[],body:[],formData:[]} +;return e.operation.pathParameters&&e.operation.pathParameters.forEach((e=>{ +"path"===e.in?r.path.push(e):"query"===e.in?r.query.push(e):"header"===e.in?r.header.push(e):"body"===e.in?r.body.push(e):"formData"===e.in&&r.formData.push(e) +})),n&&n.forEach((e=>{ +"path"===e.in?r.path.push(e):"query"===e.in?r.query.push(e):"header"===e.in?r.header.push(e):"body"===e.in?r.body.push(e):"formData"===e.in&&r.formData.push(e) +})),r}))}}function tf(e,t=""){return{"date-time":(new Date).toISOString(), +date:(new Date).toISOString().split("T")[0],email:"hello@example.com", +hostname:"example.com","idn-email":"jane.doe@example.com", +"idn-hostname":"example.com",ipv4:"127.0.0.1", +ipv6:"51d4:7fab:bfbf:b7d7:b2cb:d4b4:3dad:d998","iri-reference":"/entitiy/1", +iri:"https://example.com/entity/123","json-pointer":"/nested/objects", +password:"super-secret",regex:"/[a-z]/", +"relative-json-pointer":"1/nested/objects", +time:(new Date).toISOString().split("T")[1].split(".")[0], +"uri-reference":"../folder","uri-template":"https://example.com/{id}", +uri:"https://example.com",uuid:"123e4567-e89b-12d3-a456-426614174000" +}[e.format]??t}const nf=(e,t,n=0,r,o)=>{var i,a,s,l,c,u,d,p,h,f,m,g +;if(6===n)try{JSON.stringify(e)}catch{return"[Circular Reference]"} +const v=!!(null==t?void 0:t.emptyString) +;if("write"===(null==t?void 0:t.mode)&&e.readOnly)return +;if("read"===(null==t?void 0:t.mode)&&e.writeOnly)return;if(e["x-variable"]){ +const n=null==(i=null==t?void 0:t.variables)?void 0:i[e["x-variable"]] +;if(void 0!==n)return"number"===e.type||"integer"===e.type?parseInt(n,10):n} +if(Array.isArray(e.examples)&&e.examples.length>0)return e.examples[0] +;if(void 0!==e.example)return e.example;if(void 0!==e.default)return e.default +;if(void 0!==e.enum)return e.enum[0] +;if(!("object"===e.type||"array"===e.type||!!(null==(s=null==(a=e.allOf)?void 0:a.at)?void 0:s.call(a,0))||!!(null==(c=null==(l=e.anyOf)?void 0:l.at)?void 0:c.call(l,0))||!!(null==(d=null==(u=e.oneOf)?void 0:u.at)?void 0:d.call(u,0)))&&!0===(null==t?void 0:t.omitEmptyAndOptionalProperties)){ +if(!(!0===e.required||!0===(null==r?void 0:r.required)||(null==(p=null==r?void 0:r.required)?void 0:p.includes(o??e.name))))return +}if("object"===e.type||void 0!==e.properties){const r={} +;if(void 0!==e.properties&&Object.keys(e.properties).forEach((o=>{var i +;const a=e.properties[o],s=(null==t?void 0:t.xml)?null==(i=a.xml)?void 0:i.name:void 0 +;r[s??o]=nf(a,t,n+1,e,o),void 0===r[s??o]&&delete r[s??o] +})),void 0!==e.additionalProperties){ +!0===e.additionalProperties||"object"==typeof e.additionalProperties&&!Object.keys(e.additionalProperties).length?r.ANY_ADDITIONAL_PROPERTY="anything":!1!==e.additionalProperties&&(r.ANY_ADDITIONAL_PROPERTY=nf(e.additionalProperties,t,n+1)) +} +return void 0!==e.anyOf?Object.assign(r,nf(e.anyOf[0],t,n+1)):void 0!==e.oneOf?Object.assign(r,nf(e.oneOf[0],t,n+1)):void 0!==e.allOf&&Object.assign(r,...e.allOf.map((r=>nf(r,t,n+1,e))).filter((e=>void 0!==e))), +r}if("array"===e.type||void 0!==e.items){ +const r=null==(f=null==(h=null==e?void 0:e.items)?void 0:h.xml)?void 0:f.name,o=!!((null==t?void 0:t.xml)&&(null==(m=e.xml)?void 0:m.wrapped)&&r) +;if(void 0!==e.example)return o?{[r]:e.example}:e.example;if(e.items){ +const i=["anyOf","oneOf","allOf"];for(const a of i){if(!e.items[a])continue +;const i=(["anyOf","oneOf"].includes(a)?e.items[a].slice(0,1):e.items[a]).map((r=>nf(r,t,n+1,e))).filter((e=>void 0!==e)) +;return o?[{[r]:i}]:i}}if(null==(g=e.items)?void 0:g.type){ +const i=nf(e.items,t,n+1);return o?[{[r]:i}]:[i]}return[]}const b={ +string:v?tf(e,null==t?void 0:t.emptyString):"",boolean:!0,integer:e.min??1, +number:e.min??1,array:[]} +;if(void 0!==e.type&&void 0!==b[e.type])return b[e.type] +;const O=e.oneOf||e.anyOf;if(Array.isArray(O)&&O.length>0){const e=O[0] +;return nf(e,t,n+1)}if(Array.isArray(e.allOf)){let r=null +;return e.allOf.forEach((e=>{const o=nf(e,t,n+1) +;r="object"==typeof o&&"object"==typeof r?{...r??{},...o +}:Array.isArray(o)&&Array.isArray(r)?[...r??{},...o]:o})),r} +if(Array.isArray(e.type)){if(e.type.includes("null"))return null +;const t=b[e.type[0]];if(void 0!==t)return t} +return console.warn(`[getExampleFromSchema] Unknown property type "${e.type}".`), +null};function rf(e,t,n=!0){var r +;return[...e.pathParameters||[],...(null==(r=e.information)?void 0:r.parameters)||[]].filter((e=>e.in===t)).filter((e=>n&&e.required||!n)).map((e=>({ +name:e.name,description:e.description??null, +value:e.example?e.example:e.schema?nf(e.schema,{mode:"write"}):"", +required:e.required??!1,enabled:e.required??!1 +}))).sort(((e,t)=>e.required&&!t.required?-1:!e.required&&t.required?1:0))} +function of(e,t){const n=function(e,t,r){let o="" +;if(e instanceof Array)for(let i=0,a=e.length;i":"/>",i){ +for(const t in e)"#text"==t?o+=e[t]:"#cdata"==t?o+="":"@"!=t.charAt(0)&&(o+=n(e[t],t,r+"\t")) +;o+=("\n"==o.charAt(o.length-1)?r:"")+""} +}else o+=r+"<"+t+">"+e.toString()+"";return o};let r="" +;for(const o in e)r+=n(e[o],o,"") +;return t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}function af(e,t=""){ +return Object.entries(e).flatMap((([e,n])=>{const r=t?`${t}[${e}]`:e +;return"object"==typeof n&&null!==n?af(n,r):[{name:r,value:n}]}))} +const sf=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"] +;function lf(e,t){var n,r,o,i +;const a=Td(null==(r=null==(n=e.information)?void 0:n.requestBody)?void 0:r.content),s=sf.find((e=>!!(null==a?void 0:a[e]))),l=null==(o=null==a?void 0:a["application/json"])?void 0:o.examples,c=null==(i=l??{})?void 0:i[t??Object.keys(l??{})[0]] +;if(c)return{body:{mimeType:"application/json",text:Ad(null==c?void 0:c.value)}} +;const u=rf(e,"body",!1);if(u.length>0)return{body:{mimeType:"application/json", +text:Ad(u[0].value)}};const d=rf(e,"formData",!1);if(d.length>0)return{body:{ +mimeType:"application/x-www-form-urlencoded",params:d.map((e=>({name:e.name, +value:"string"==typeof e.value?e.value:JSON.stringify(e.value)})))}} +;if(!s)return null;const p=null==a?void 0:a[s],h=[{name:"Content-Type",value:s +}],f=(null==p?void 0:p.example)?null==p?void 0:p.example:void 0 +;if("application/json"===s){ +const e=(null==p?void 0:p.schema)?nf(null==p?void 0:p.schema,{mode:"write", +omitEmptyAndOptionalProperties:!0}):null,t=f??e;return{headers:h,body:{ +mimeType:s,text:"string"==typeof t?t:JSON.stringify(t,null,2)}}} +if("application/xml"===s){ +const e=(null==p?void 0:p.schema)?nf(null==p?void 0:p.schema,{xml:!0, +mode:"write",omitEmptyAndOptionalProperties:!0}):null;return{headers:h,body:{ +mimeType:s,text:f??of(e," ")}}}if("application/octet-stream"===s)return{ +headers:h,body:{mimeType:s,text:"BINARY"}};if("text/plain"===s){ +const e=(null==p?void 0:p.schema)?nf(null==p?void 0:p.schema,{xml:!0, +mode:"write",omitEmptyAndOptionalProperties:!0}):null;return{headers:h,body:{ +mimeType:s,text:f??e??""}}} +if("multipart/form-data"===s||"application/x-www-form-urlencoded"===s){ +const e=(null==p?void 0:p.schema)?nf(null==p?void 0:p.schema,{xml:!0, +mode:"write",omitEmptyAndOptionalProperties:!0}):null;return{headers:h,body:{ +mimeType:s,params:af(f??e??{})}}}return null}const cf=(e,t,n)=>{let r=e.path +;const o=rf(e,"path",!1);if(o.length){const e=r.match(/{(.*?)}/g) +;e&&e.forEach((e=>{const t=e.replace(/{|}/g,"");if(o){ +const n=o.find((e=>e.name===t)) +;(null==n?void 0:n.value)&&(r=r.replace(e,n.value.toString()))}}))} +if(!0===(null==t?void 0:t.replaceVariables)){const e=r.match(/{(.*?)}/g) +;e&&e.forEach((e=>{const t=e.replace(/{|}/g,"") +;r=r.replace(e,`__${t.toUpperCase()}__`)}))}const i=lf(e,n);return{ +method:e.httpVerb.toUpperCase(),path:r,postData:null==i?void 0:i.body, +headers:[...rf(e,"header",null==t?void 0:t.requiredOnly),...(null==i?void 0:i.headers)??[]], +queryString:rf(e,"query",null==t?void 0:t.requiredOnly), +cookies:rf(e,"cookie",null==t?void 0:t.requiredOnly)}};function uf(e){ +return(e??[]).map((e=>({...e,enabled:!0})))}function df(e){ +return e.reduce(((e,t)=>(e[t.name]=t.value,e)),{})}function pf(e){ +return/\s|-/.test(e)}function hf(e,t=0){ +const n=[],r=" ".repeat(t),o=" ".repeat(t+2) +;for(const[i,a]of Object.entries(e)){const e=pf(i)?`'${i}'`:i +;if(Array.isArray(a)){ +const r=a.map((e=>"string"==typeof e?`'${e}'`:e&&"object"==typeof e?hf(e,t+2):e)).join(`, ${o}`) +;n.push(`${o}${e}: [${r}]`) +}else if(a&&"object"==typeof a)n.push(`${o}${e}: ${hf(a,t+2)}`);else if("string"==typeof a){ +let t=`${a}`;if(a.startsWith("JSON.stringify")){const e=a.split("\n") +;e.length>1&&(t=e.map(((e,t)=>0===t?e:`${o}${e}`)).join("\n"))}else t=`'${a}'` +;n.push(`${o}${e}: ${t}`)}else n.push(`${o}${e}: ${a}`)} +return`{\n${n.join(",\n")}\n${r}}`}function ff(e){var t,n;const r={method:"GET", +...e};r.method=r.method.toUpperCase();const o={ +method:"GET"===r.method?void 0:r.method +},i=new URLSearchParams(r.queryString?df(r.queryString):void 0),a=i.size?`?${i.toString()}`:"" +;(null==(t=r.headers)?void 0:t.length)&&(o.headers={},r.headers.forEach((e=>{ +o.headers[e.name]=e.value +}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{}, +r.cookies.forEach((e=>{ +o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}` +}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e] +})),r.postData&&(o.body=r.postData.text, +"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${hf(JSON.parse(o.body))})`)) +;const s=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"node", +client:"undici", +code:`import { request } from 'undici'\n\nconst { statusCode, body } = await request('${r.url}${a}'${s})` +}}function mf(e){var t,n;const r={method:"GET",...e} +;r.method=r.method.toUpperCase();const o={ +method:"GET"===r.method?void 0:r.method +},i=new URLSearchParams(r.queryString?df(r.queryString):void 0),a=i.size?`?${i.toString()}`:"" +;(null==(t=r.headers)?void 0:t.length)&&(o.headers={},r.headers.forEach((e=>{ +o.headers[e.name]=e.value +}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{}, +r.cookies.forEach((e=>{ +o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}` +}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e] +})),r.postData&&(o.body=r.postData.text, +"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${hf(JSON.parse(o.body))})`)) +;const s=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"node", +client:"fetch",code:`fetch('${r.url}${a}'${s})`}}function gf(e){var t,n +;const r={method:"GET",...e};r.method=r.method.toUpperCase();const o={ +method:"GET"===r.method?void 0:r.method +},i=new URLSearchParams(r.queryString?df(r.queryString):void 0),a=i.size?`?${i.toString()}`:"" +;(null==(t=r.headers)?void 0:t.length)&&(o.headers={},r.headers.forEach((e=>{ +o.headers[e.name]=e.value +}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{}, +r.cookies.forEach((e=>{ +o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}` +}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e] +})),r.postData&&(o.body=r.postData.text, +"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${hf(JSON.parse(o.body))})`)) +;const s=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"js", +client:"fetch",code:`fetch('${r.url}${a}'${s})`}}function vf(e){var t,n +;const r={method:"GET",...e};r.method=r.method.toUpperCase();const o={ +method:"GET"===r.method?void 0:r.method +},i=new URLSearchParams(r.queryString?df(r.queryString):void 0) +;i.size&&(o.query={},i.forEach(((e,t)=>{o.query[t]=e +}))),(null==(t=r.headers)?void 0:t.length)&&(o.headers={}, +r.headers.forEach((e=>{o.headers[e.name]=e.value +}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{}, +r.cookies.forEach((e=>{ +o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}` +}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e] +})),r.postData&&(o.body=r.postData.text, +"application/json"===r.postData.mimeType&&(o.body=JSON.parse(o.body))) +;const a=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"js", +client:"ofetch",code:`ofetch('${r.url}'${a})`}}function bf(e){var t,n;const r={ +method:"GET",...e};r.method=r.method.toUpperCase();const o={ +method:"GET"===r.method?void 0:r.method +},i=new URLSearchParams(r.queryString?df(r.queryString):void 0) +;i.size&&(o.query={},i.forEach(((e,t)=>{o.query[t]=e +}))),(null==(t=r.headers)?void 0:t.length)&&(o.headers={}, +r.headers.forEach((e=>{o.headers[e.name]=e.value +}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{}, +r.cookies.forEach((e=>{ +o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}` +}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e] +})),r.postData&&(o.body=r.postData.text, +"application/json"===r.postData.mimeType&&(o.body=JSON.parse(o.body))) +;const a=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"node", +client:"ofetch",code:`ofetch('${r.url}'${a})`}}function Of(){ +const e=[ff,mf,gf,vf,bf];return{get(e,t,n){const r=this.findPlugin(e,t) +;return r?r(n):{code:""}},print(e,t,n){var r +;return null==(r=this.get(e,t,n))?void 0:r.code}, +targets:()=>e.map((e=>e().target)).filter(((e,t,n)=>n.indexOf(e)===t)), +clients:()=>e.map((e=>e().client)),plugins:()=>e.map((e=>{const t=e();return{ +target:t.target,client:t.client}})),findPlugin:(t,n)=>e.find((e=>{const r=e() +;return r.target===t&&r.client===n})),hasPlugin(e,t){ +return Boolean(this.findPlugin(e,t))}}} +const yf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:wf,Blob:xf,File:kf}=yf,Sf="\r\n",_f="-".repeat(2),Ef=Symbol.toStringTag,Tf=(e,t,n)=>{ +let r="" +;return r+=`${_f}${e}${Sf}`,r+=`Content-Disposition: form-data; name="${t}"`, +"string"!=typeof n&&"blob"!==n.name&&(r+=`; filename="${n.name}"${Sf}`, +r+=`Content-Type: ${n.type||"application/octet-stream"}`),`${r}${Sf.repeat(2)}` +},Cf=async function*(e,t){ +for(const[n,r]of e)yield Tf(t,n,r),"string"==typeof r?yield r:yield await r.text(), +yield Sf;yield(e=>`${_f}${e}${_f}${Sf.repeat(1)}`)(t) +},Af=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase())),Pf=(e,t)=>{ +const n=Af(e,t);if(n)return e[n] +},Df=(e,t)=>Boolean(Af(e,t)),$f=["application/json","application/x-json","text/json","text/x-json","+json"],Rf=(e,t)=>{ +if(void 0===t.value)return e;const n=e[t.name] +;return void 0===n?(e[t.name]=t.value, +e):Array.isArray(n)?(n.push(t.value),e):(e[t.name]=[n,t.value],e)} +;function Nf(e){ +return new URLSearchParams(Object.entries(e).map((([e,t])=>Array.isArray(t)?t.map((t=>[e,t])):[[e,t]])).flat(1)) +}class If extends URL{get path(){return this.pathname+this.search}}class Mf{ +constructor({indent:e,join:t}={}){ +this.postProcessors=[],this.code=[],this.indentationCharacter="", +this.lineJoin="\n", +this.indentLine=(e,t=0)=>`${this.indentationCharacter.repeat(t)}${e}`, +this.unshift=(e,t)=>{const n=this.indentLine(e,t);this.code.unshift(n) +},this.push=(e,t)=>{const n=this.indentLine(e,t);this.code.push(n) +},this.blank=()=>{this.code.push("")},this.join=()=>{ +const e=this.code.join(this.lineJoin) +;return this.postProcessors.reduce(((e,t)=>t(e)),e)},this.addPostProcessor=e=>{ +this.postProcessors=[...this.postProcessors,e]},this.indentationCharacter=e||"", +this.lineJoin=null!=t?t:"\n"}}function Lf(e,t={}){ +const{delimiter:n='"',escapeChar:r="\\",escapeNewlines:o=!0}=t +;return[...e.toString()].map((e=>"\b"===e?`${r}b`:"\t"===e?`${r}t`:"\n"===e?o?`${r}n`:e:"\f"===e?`${r}f`:"\r"===e?o?`${r}r`:e:e===r?r+r:e===n?r+n:e<" "||e>"~"?JSON.stringify(e).slice(1,-1):e)).join("") +}const Bf=e=>Lf(e,{delimiter:"'"}),Qf=e=>Lf(e,{delimiter:'"'}),jf={info:{ +key:"c",title:"C",extname:".c",default:"libcurl"},clientsById:{libcurl:{info:{ +key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl", +description:"Simple REST and HTTP API Client for C"}, +convert:({method:e,fullUrl:t,headersObj:n,allHeaders:r,postData:o})=>{ +const{push:i,blank:a,join:s}=new Mf +;i("CURL *hnd = curl_easy_init();"),a(),i(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`), +i(`curl_easy_setopt(hnd, CURLOPT_URL, "${t}");`);const l=Object.keys(n) +;return l.length&&(a(),i("struct curl_slist *headers = NULL;"),l.forEach((e=>{ +i(`headers = curl_slist_append(headers, "${e}: ${Qf(n[e])}");`) +})),i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), +r.cookie&&(a(),i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${r.cookie}");`)), +(null==o?void 0:o.text)&&(a(), +i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(o.text)});`)),a(), +i("CURLcode ret = curl_easy_perform(hnd);"),s()}}}};class Uf{constructor(e){ +this.name="",this.toString=()=>`:${this.name}`,this.name=e}}class Ff{ +constructor(e){ +this.path="",this.toString=()=>`(clojure.java.io/file "${this.path}")`, +this.path=e}} +const qf=e=>void 0===e?null:null===e?"null":e.constructor.name.toLowerCase(),zf=e=>"object"===qf(e)&&0===Object.keys(e).length,Hf=e=>(Object.keys(e).filter((t=>zf(e[t]))).forEach((t=>{ +delete e[t]})),e),Zf=(e,t)=>{const n=" ".repeat(e) +;return t.replace(/\n/g,`\n${n}`)},Vf=e=>{switch(qf(e)){case"string": +return`"${e.replace(/"/g,'\\"')}"`;case"file":case"keyword":default: +return e.toString();case"null":return"nil";case"regexp":return`#"${e.source}"` +;case"object":{ +const t=Object.keys(e).reduce(((t,n)=>`${t}:${n} ${Zf(n.length+2,Vf(e[n]))}\n `),"").trim() +;return`{${Zf(1,t)}}`}case"array":{ +const t=e.reduce(((e,t)=>`${e} ${Vf(t)}`),"").trim();return`[${Zf(1,t)}]`}} +},Wf={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"}, +clientsById:{clj_http:{info:{key:"clj_http",title:"clj-http", +link:"https://github.com/dakrone/clj-http", +description:"An idiomatic clojure http client wrapping the apache client."}, +convert:({queryObj:e,method:t,postData:n,url:r,allHeaders:o},i)=>{ +const{push:a,join:s}=new Mf({indent:null==i?void 0:i.indent}) +;if(t=t.toLowerCase(), +!["get","post","put","delete","patch","head","options"].includes(t))return a("Method not supported"), +s();const l={headers:o,"query-params":e};switch(null==n?void 0:n.mimeType){ +case"application/json":{ +l["content-type"]=new Uf("json"),l["form-params"]=n.jsonObj +;const e=Af(l.headers,"content-type");e&&delete l.headers[e]}break +;case"application/x-www-form-urlencoded":{l["form-params"]=n.paramsObj +;const e=Af(l.headers,"content-type");e&&delete l.headers[e]}break +;case"text/plain":{l.body=n.text;const e=Af(l.headers,"content-type") +;e&&delete l.headers[e]}break;case"multipart/form-data":if(n.params){ +l.multipart=n.params.map((e=>e.fileName&&!e.value?{name:e.name, +content:new Ff(e.fileName)}:{name:e.name,content:e.value})) +;const e=Af(l.headers,"content-type");e&&delete l.headers[e]}} +if("application/json"===Pf(l.headers,"accept")){l.accept=new Uf("json") +;const e=Af(l.headers,"accept");e&&delete l.headers[e]} +if(a("(require '[clj-http.client :as client])\n"), +zf(Hf(l)))a(`(client/${t} "${r}")`);else{const e=11+t.length+r.length +;a(`(client/${t} "${r}" ${Zf(e,Vf(Hf(l)))})`)}return s()}}}},Xf={info:{ +key:"csharp",title:"C#",extname:".cs",default:"restsharp"},clientsById:{ +httpclient:{info:{key:"httpclient",title:"HttpClient", +link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient", +description:".NET Standard HTTP Client"}, +convert:({allHeaders:e,postData:t,method:n,fullUrl:r},o)=>{var i,a;const s={ +indent:" ",...o},{push:l,join:c}=new Mf({indent:s.indent}) +;l("using System.Net.Http.Headers;");let u="";const d=Boolean(e.cookie),p=(e=>{ +let t=Pf(e,"accept-encoding");if(!t)return[];const n={ +gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},r=[] +;return"string"==typeof t&&(t=[t]),t.forEach((e=>{e.split(",").forEach((e=>{ +const t=/\s*([^;\s]+)/.exec(e);if(t){const e=n[t[1]];e&&r.push(e)}}))})),r})(e) +;(d||p.length)&&(u="clientHandler", +l("var clientHandler = new HttpClientHandler"), +l("{"),d&&l("UseCookies = false,",1), +p.length&&l(`AutomaticDecompression = ${p.join(" | ")},`,1), +l("};")),l(`var client = new HttpClient(${u});`), +l("var request = new HttpRequestMessage"),l("{") +;n=(n=n.toUpperCase())&&["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].includes(n)?`HttpMethod.${n[0]}${n.substring(1).toLowerCase()}`:`new HttpMethod("${n}")`, +l(`Method = ${n},`,1),l(`RequestUri = new Uri("${r}"),`,1) +;const h=Object.keys(e).filter((e=>{switch(e.toLowerCase()){case"content-type": +case"content-length":case"accept-encoding":return!1;default:return!0}})) +;if(h.length&&(l("Headers =",1),l("{",1),h.forEach((t=>{ +l(`{ "${t}", "${Qf(e[t])}" },`,2)})),l("},",1)),null==t?void 0:t.text){ +const e=t.mimeType;switch(e){case"application/x-www-form-urlencoded": +l("Content = new FormUrlEncodedContent(new Dictionary",1), +l("{",1),null===(i=t.params)||void 0===i||i.forEach((e=>{ +l(`{ "${e.name}", "${e.value}" },`,2)})),l("}),",1);break +;case"multipart/form-data": +l("Content = new MultipartFormDataContent",1),l("{",1), +null===(a=t.params)||void 0===a||a.forEach((e=>{ +l(`new StringContent(${JSON.stringify(e.value||"")})`,2), +l("{",2),l("Headers =",3), +l("{",3),e.contentType&&l(`ContentType = new MediaTypeHeaderValue("${e.contentType}"),`,4), +l('ContentDisposition = new ContentDispositionHeaderValue("form-data")',4), +l("{",4), +l(`Name = "${e.name}",`,5),e.fileName&&l(`FileName = "${e.fileName}",`,5), +l("}",4),l("}",3),l("},",2)})),l("},",1);break;default: +l(`Content = new StringContent(${JSON.stringify((null==t?void 0:t.text)||"")})`,1), +l("{",1), +l("Headers =",2),l("{",2),l(`ContentType = new MediaTypeHeaderValue("${e}")`,3), +l("}",2),l("}",1)}} +return l("};"),l("using (var response = await client.SendAsync(request))"), +l("{"), +l("response.EnsureSuccessStatusCode();",1),l("var body = await response.Content.ReadAsStringAsync();",1), +l("Console.WriteLine(body);",1),l("}"),c()}},restsharp:{info:{key:"restsharp", +title:"RestSharp",link:"http://restsharp.org/", +description:"Simple REST and HTTP API Client for .NET"}, +convert:({allHeaders:e,method:t,fullUrl:n,headersObj:r,cookies:o,postData:i})=>{ +const{push:a,join:s}=new Mf +;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported" +;if(a(`var client = new RestClient("${n}");`), +a(`var request = new RestRequest(Method.${t.toUpperCase()});`), +Object.keys(r).forEach((e=>{a(`request.AddHeader("${e}", "${Qf(r[e])}");`) +})),null==o||o.forEach((({name:e,value:t})=>{ +a(`request.AddCookie("${e}", "${t}");`)})),null==i?void 0:i.text){ +const t=Pf(e,"content-type"),n=JSON.stringify(i.text) +;a(`request.AddParameter("${t}", ${n}, ParameterType.RequestBody);`)} +return a("IRestResponse response = client.Execute(request);"),s()}}}},Yf={info:{ +key:"go",title:"Go",extname:".go",default:"native"},clientsById:{native:{info:{ +key:"native",title:"NewRequest", +link:"http://golang.org/pkg/net/http/#NewRequest", +description:"Golang HTTP client request"}, +convert:({postData:e,method:t,allHeaders:n,fullUrl:r},o={})=>{ +const{blank:i,push:a,join:s}=new Mf({indent:"\t" +}),{showBoilerplate:l=!0,checkErrors:c=!1,printBody:u=!0,timeout:d=-1,insecureSkipVerify:p=!1}=o,h=c?"err":"_",f=l?1:0,m=()=>{ +c&&(a("if err != nil {",f),a("panic(err)",f+1),a("}",f))};l&&(a("package main"), +i(), +a("import ("),a('"fmt"',f),d>0&&a('"time"',f),p&&a('"crypto/tls"',f),(null==e?void 0:e.text)&&a('"strings"',f), +a('"net/http"',f), +u&&a('"io"',f),a(")"),i(),a("func main() {"),i()),p&&(a("insecureTransport := http.DefaultTransport.(*http.Transport).Clone()",f), +a("insecureTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}",f)) +;const g=d>0,v=g||p,b=v?"client":"http.DefaultClient" +;return v&&(a("client := http.Client{",f), +g&&a(`Timeout: time.Duration(${d} * time.Second),`,f+1), +p&&a("Transport: insecureTransport,",f+1), +a("}",f),i()),a(`url := "${r}"`,f),i(), +(null==e?void 0:e.text)?(a(`payload := strings.NewReader(${JSON.stringify(e.text)})`,f), +i(), +a(`req, ${h} := http.NewRequest("${t}", url, payload)`,f),i()):(a(`req, ${h} := http.NewRequest("${t}", url, nil)`,f), +i()),m(),Object.keys(n).length&&(Object.keys(n).forEach((e=>{ +a(`req.Header.Add("${e}", "${Qf(n[e])}")`,f) +})),i()),a(`res, ${h} := ${b}.Do(req)`,f), +m(),u&&(i(),a("defer res.Body.Close()",f), +a(`body, ${h} := io.ReadAll(res.Body)`,f), +m()),i(),a("fmt.Println(res)",f),u&&a("fmt.Println(string(body))",f), +l&&(i(),a("}")),s()}}}},Gf={info:{key:"http",title:"HTTP",extname:null, +default:"1.1"},clientsById:{"http1.1":{info:{key:"http1.1",title:"HTTP/1.1", +link:"https://tools.ietf.org/html/rfc7230", +description:"HTTP/1.1 request string in accordance with RFC 7230"}, +convert:({method:e,fullUrl:t,uriObj:n,httpVersion:r,allHeaders:o,postData:i},a)=>{ +const s={absoluteURI:!1,autoContentLength:!0,autoHost:!0,...a +},{blank:l,push:c,join:u}=new Mf({indent:"",join:"\r\n" +}),d=s.absoluteURI?t:n.path;c(`${e} ${d} ${r}`);const p=Object.keys(o) +;p.forEach((e=>{ +const t=e.toLowerCase().replace(/(^|-)(\w)/g,(e=>e.toUpperCase())) +;c(`${t}: ${o[e]}`) +})),s.autoHost&&!p.includes("host")&&c(`Host: ${n.host}`),s.autoContentLength&&(null==i?void 0:i.text)&&!p.includes("content-length")&&c(`Content-Length: ${i.text.length}`), +l();return`${u()}\r\n${(null==i?void 0:i.text)||""}`}}}},Kf={info:{key:"java", +title:"Java",extname:".java",default:"unirest"},clientsById:{asynchttp:{info:{ +key:"asynchttp",title:"AsyncHttp", +link:"https://github.com/AsyncHttpClient/async-http-client", +description:"Asynchronous Http and WebSocket Client library for Java"}, +convert:({method:e,allHeaders:t,postData:n,fullUrl:r},o)=>{const i={indent:" ", +...o},{blank:a,push:s,join:l}=new Mf({indent:i.indent}) +;return s("AsyncHttpClient client = new DefaultAsyncHttpClient();"), +s(`client.prepare("${e.toUpperCase()}", "${r}")`),Object.keys(t).forEach((e=>{ +s(`.setHeader("${e}", "${Qf(t[e])}")`,1) +})),(null==n?void 0:n.text)&&s(`.setBody(${JSON.stringify(n.text)})`,1), +s(".execute()",1), +s(".toCompletableFuture()",1),s(".thenAccept(System.out::println)",1), +s(".join();",1),a(),s("client.close();"),l()}},nethttp:{info:{key:"nethttp", +title:"java.net.http", +link:"https://openjdk.java.net/groups/net/httpclient/intro.html", +description:"Java Standardized HTTP Client API"}, +convert:({allHeaders:e,fullUrl:t,method:n,postData:r},o)=>{const i={indent:" ", +...o},{push:a,join:s}=new Mf({indent:i.indent}) +;return a("HttpRequest request = HttpRequest.newBuilder()"), +a(`.uri(URI.create("${t}"))`,2),Object.keys(e).forEach((t=>{ +a(`.header("${t}", "${Qf(e[t])}")`,2) +})),(null==r?void 0:r.text)?a(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.ofString(${JSON.stringify(r.text)}))`,2):a(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`,2), +a(".build();",2), +a("HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"), +a("System.out.println(response.body());"),s()}},okhttp:{info:{key:"okhttp", +title:"OkHttp",link:"http://square.github.io/okhttp/", +description:"An HTTP Request Client Library"}, +convert:({postData:e,method:t,fullUrl:n,allHeaders:r},o)=>{const i={indent:" ", +...o},{push:a,blank:s,join:l}=new Mf({indent:i.indent}) +;return a("OkHttpClient client = new OkHttpClient();"), +s(),(null==e?void 0:e.text)&&(e.boundary?a(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`):a(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), +a(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), +a("Request request = new Request.Builder()"), +a(`.url("${n}")`,1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(t.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())?(null==e?void 0:e.text)?a(`.${t.toLowerCase()}(body)`,1):a(`.${t.toLowerCase()}(null)`,1):a(`.${t.toLowerCase()}()`,1):(null==e?void 0:e.text)?a(`.method("${t.toUpperCase()}", body)`,1):a(`.method("${t.toUpperCase()}", null)`,1), +Object.keys(r).forEach((e=>{a(`.addHeader("${e}", "${Qf(r[e])}")`,1) +})),a(".build();",1), +s(),a("Response response = client.newCall(request).execute();"),l()}},unirest:{ +info:{key:"unirest",title:"Unirest",link:"http://unirest.io/java.html", +description:"Lightweight HTTP Request Client Library"}, +convert:({method:e,allHeaders:t,postData:n,fullUrl:r},o)=>{const i={indent:" ", +...o},{join:a,push:s}=new Mf({indent:i.indent}) +;return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(e.toUpperCase())?s(`HttpResponse response = Unirest.${e.toLowerCase()}("${r}")`):s(`HttpResponse response = Unirest.customMethod("${e.toUpperCase()}","${r}")`), +Object.keys(t).forEach((e=>{s(`.header("${e}", "${Qf(t[e])}")`,1) +})),(null==n?void 0:n.text)&&s(`.body(${JSON.stringify(n.text)})`,1), +s(".asString();",1),a()}}}};function Jf(e){ +return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e +}var em={};Object.defineProperty(em,"__esModule",{value:!0 +}),em.default=e=>Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t))) +;const tm=function(e){ +return"[object RegExp]"===Object.prototype.toString.call(e)},nm=function(e){ +var t=typeof e;return null!==e&&("object"===t||"function"===t)},rm=em.default +;var om=(e,t,n)=>{const r=[];return function e(t,n,o){let i +;(n=n||{}).indent=n.indent||"\t",o=o||"",i=void 0===n.inlineCharacterLimit?{ +newLine:"\n",newLineOrSpace:"\n",pad:o,indent:o+n.indent}:{ +newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@", +newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@", +pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"} +;const a=e=>{if(void 0===n.inlineCharacterLimit)return e +;const t=e.replace(new RegExp(i.newLine,"g"),"").replace(new RegExp(i.newLineOrSpace,"g")," ").replace(new RegExp(i.pad+"|"+i.indent,"g"),"") +;return t.length<=n.inlineCharacterLimit?t:e.replace(new RegExp(i.newLine+"|"+i.newLineOrSpace,"g"),"\n").replace(new RegExp(i.pad,"g"),o).replace(new RegExp(i.indent,"g"),o+n.indent) +};if(-1!==r.indexOf(t))return'"[Circular]"' +;if(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||tm(t))return String(t) +;if(t instanceof Date)return`new Date('${t.toISOString()}')` +;if(Array.isArray(t)){if(0===t.length)return"[]";r.push(t) +;const s="["+i.newLine+t.map(((r,a)=>{ +const s=t.length-1===a?i.newLine:","+i.newLineOrSpace;let l=e(r,n,o+n.indent) +;return n.transform&&(l=n.transform(t,a,l)),i.indent+l+s})).join("")+i.pad+"]" +;return r.pop(),a(s)}if(nm(t)){let s=Object.keys(t).concat(rm(t)) +;if(n.filter&&(s=s.filter((e=>n.filter(t,e)))),0===s.length)return"{}";r.push(t) +;const l="{"+i.newLine+s.map(((r,a)=>{ +const l=s.length-1===a?i.newLine:","+i.newLineOrSpace,c="symbol"==typeof r,u=!c&&/^[a-z$_][a-z$_0-9]*$/i.test(r),d=c||u?r:e(r,n) +;let p=e(t[r],n,o+n.indent) +;return n.transform&&(p=n.transform(t,r,p)),i.indent+String(d)+": "+p+l +})).join("")+i.pad+"}";return r.pop(),a(l)} +return t=String(t).replace(/[\r\n]/g,(e=>"\n"===e?"\\n":"\\r")), +!1===n.singleQuotes?`"${t=t.replace(/"/g,'\\"')}"`:`'${t=t.replace(/\\?'/g,"\\'")}'` +}(e,t,n)};const im=Jf(om),am={info:{key:"javascript",title:"JavaScript", +extname:".js",default:"xhr"},clientsById:{xhr:{info:{key:"xhr", +title:"XMLHttpRequest", +link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest", +description:"W3C Standard API that provides scripted client functionality"}, +convert:({postData:e,allHeaders:t,method:n,fullUrl:r},o)=>{var i;const a={ +indent:" ",cors:!0,...o},{blank:s,push:l,join:c}=new Mf({indent:a.indent}) +;switch(null==e?void 0:e.mimeType){case"application/json": +l(`const data = JSON.stringify(${im(e.jsonObj,{indent:a.indent})});`),s();break +;case"multipart/form-data":if(!e.params)break +;if(l("const data = new FormData();"),e.params.forEach((e=>{ +l(`data.append('${e.name}', '${e.value||e.fileName||""}');`) +})),Df(t,"content-type")&&(null===(i=Pf(t,"content-type"))||void 0===i?void 0:i.includes("boundary"))){ +const e=Af(t,"content-type");e&&delete t[e]}s();break;default: +l(`const data = ${(null==e?void 0:e.text)?`'${e.text}'`:"null"};`),s()} +return l("const xhr = new XMLHttpRequest();"), +a.cors&&l("xhr.withCredentials = true;"), +s(),l("xhr.addEventListener('readystatechange', function () {"), +l("if (this.readyState === this.DONE) {",1), +l("console.log(this.responseText);",2), +l("}",1),l("});"),s(),l(`xhr.open('${n}', '${r}');`), +Object.keys(t).forEach((e=>{l(`xhr.setRequestHeader('${e}', '${Bf(t[e])}');`) +})),s(),l("xhr.send(data);"),c()}},axios:{info:{key:"axios",title:"Axios", +link:"https://github.com/axios/axios", +description:"Promise based HTTP client for the browser and node.js"}, +convert:({allHeaders:e,method:t,url:n,queryObj:r,postData:o},i)=>{const a={ +indent:" ",...i},{blank:s,push:l,join:c,addPostProcessor:u}=new Mf({ +indent:a.indent});l("import axios from 'axios';"),s();const d={method:t,url:n} +;switch(Object.keys(r).length&&(d.params=r), +Object.keys(e).length&&(d.headers=e),null==o?void 0:o.mimeType){ +case"application/x-www-form-urlencoded": +o.params&&(l("const encodedParams = new URLSearchParams();"), +o.params.forEach((e=>{l(`encodedParams.set('${e.name}', '${e.value}');`)})),s(), +d.data="encodedParams,",u((e=>e.replace(/'encodedParams,'/,"encodedParams,")))) +;break;case"application/json":o.jsonObj&&(d.data=o.jsonObj);break +;case"multipart/form-data":if(!o.params)break;l("const form = new FormData();"), +o.params.forEach((e=>{ +l(`form.append('${e.name}', '${e.value||e.fileName||""}');`) +})),s(),d.data="[form]";break;default:(null==o?void 0:o.text)&&(d.data=o.text)} +const p=im(d,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form") +;return l(`const options = ${p};`), +s(),l("try {"),l("const { data } = await axios.request(options);",1), +l("console.log(data);",1), +l("} catch (error) {"),l("console.error(error);",1),l("}"),c()}},fetch:{info:{ +key:"fetch",title:"fetch", +link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch", +description:"Perform asynchronous HTTP requests with the Fetch API"}, +convert:({method:e,allHeaders:t,postData:n,fullUrl:r},o)=>{const i={indent:" ", +credentials:null,...o},{blank:a,join:s,push:l}=new Mf({indent:i.indent}),c={ +method:e} +;switch(Object.keys(t).length&&(c.headers=t),null!==i.credentials&&(c.credentials=i.credentials), +l(`const url = '${r}';`),null==n?void 0:n.mimeType){ +case"application/x-www-form-urlencoded":c.body=n.paramsObj?n.paramsObj:n.text +;break;case"application/json":c.body=JSON.stringify(n.jsonObj);break +;case"multipart/form-data":if(!n.params)break;const e=Af(t,"content-type") +;e&&delete t[e],l("const form = new FormData();"),n.params.forEach((e=>{ +l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)})),a();break +;default:(null==n?void 0:n.text)&&(c.body=n.text)} +return c.headers&&!Object.keys(c.headers).length&&delete c.headers, +l(`const options = ${im(c,{indent:i.indent,inlineCharacterLimit:80, +transform:(e,t,r)=>"body"===t&&n&&"application/x-www-form-urlencoded"===n.mimeType?`new URLSearchParams(${r})`:r +})};`), +a(),(null==n?void 0:n.params)&&"multipart/form-data"===n.mimeType&&(l("options.body = form;"), +a()), +l("try {"),l("const response = await fetch(url, options);",1),l("const data = await response.json();",1), +l("console.log(data);",1), +l("} catch (error) {"),l("console.error(error);",1),l("}"),s()}},jquery:{info:{ +key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/", +description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"}, +convert:({fullUrl:e,method:t,allHeaders:n,postData:r},o)=>{var i;const a={ +indent:" ",...o},{blank:s,push:l,join:c}=new Mf({indent:a.indent}),u={async:!0, +crossDomain:!0,url:e,method:t,headers:n};switch(null==r?void 0:r.mimeType){ +case"application/x-www-form-urlencoded":u.data=r.paramsObj?r.paramsObj:r.text +;break;case"application/json":u.processData=!1,u.data=r.text;break +;case"multipart/form-data":if(!r.params)break +;if(l("const form = new FormData();"),r.params.forEach((e=>{ +l(`form.append('${e.name}', '${e.value||e.fileName||""}');`) +})),u.processData=!1, +u.contentType=!1,u.mimeType="multipart/form-data",u.data="[form]", +Df(n,"content-type")&&(null===(i=Pf(n,"content-type"))||void 0===i?void 0:i.includes("boundary"))){ +const e=Af(n,"content-type");e&&delete u.headers[e]}s();break;default: +(null==r?void 0:r.text)&&(u.data=r.text)}const d=im(u,{indent:a.indent +}).replace("'[form]'","form") +;return l(`const settings = ${d};`),s(),l("$.ajax(settings).done(function (response) {"), +l("console.log(response);",1),l("});"),c()}}}},sm={info:{key:"kotlin", +title:"Kotlin",extname:".kt",default:"okhttp"},clientsById:{okhttp:{info:{ +key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/", +description:"An HTTP Request Client Library"}, +convert:({postData:e,fullUrl:t,method:n,allHeaders:r},o)=>{const i={indent:" ", +...o},{blank:a,join:s,push:l}=new Mf({indent:i.indent}) +;return l("val client = OkHttpClient()"), +a(),(null==e?void 0:e.text)&&(e.boundary?l(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`):l(`val mediaType = MediaType.parse("${e.mimeType}")`), +l(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), +l("val request = Request.Builder()"), +l(`.url("${t}")`,1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(n.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(n.toUpperCase())?(null==e?void 0:e.text)?l(`.${n.toLowerCase()}(body)`,1):l(`.${n.toLowerCase()}(null)`,1):l(`.${n.toLowerCase()}()`,1):(null==e?void 0:e.text)?l(`.method("${n.toUpperCase()}", body)`,1):l(`.method("${n.toUpperCase()}", null)`,1), +Object.keys(r).forEach((e=>{l(`.addHeader("${e}", "${Qf(r[e])}")`,1) +})),l(".build()",1), +a(),l("val response = client.newCall(request).execute()"),s()}}}},lm={info:{ +key:"node",title:"Node.js",extname:".js",default:"native"},clientsById:{native:{ +info:{key:"native",title:"HTTP", +link:"http://nodejs.org/api/http.html#http_http_request_options_callback", +description:"Node.js native HTTP interface"}, +convert:({uriObj:e,method:t,allHeaders:n,postData:r},o={})=>{ +const{indent:i=" ",insecureSkipVerify:a=!1}=o,{blank:s,join:l,push:c,unshift:u}=new Mf({ +indent:i}),d={method:t,hostname:e.hostname,port:""===e.port?null:e.port, +path:e.path,headers:n,...a?{rejectUnauthorized:!1}:{}} +;switch(c(`const http = require('${e.protocol.replace(":","")}');`), +s(),c(`const options = ${im(d,{indent:i +})};`),s(),c("const req = http.request(options, function (res) {"), +c("const chunks = [];",1), +s(),c("res.on('data', function (chunk) {",1),c("chunks.push(chunk);",2), +c("});",1), +s(),c("res.on('end', function () {",1),c("const body = Buffer.concat(chunks);",2), +c("console.log(body.toString());",2), +c("});",1),c("});"),s(),null==r?void 0:r.mimeType){ +case"application/x-www-form-urlencoded": +r.paramsObj&&(u("const qs = require('querystring');"), +c(`req.write(qs.stringify(${im(r.paramsObj,{indent:" ",inlineCharacterLimit:80 +})}));`));break;case"application/json": +r.jsonObj&&c(`req.write(JSON.stringify(${im(r.jsonObj,{indent:" ", +inlineCharacterLimit:80})}));`);break;default: +(null==r?void 0:r.text)&&c(`req.write(${im(r.text,{indent:i})});`)} +return c("req.end();"),l()}},request:{info:{key:"request",title:"Request", +link:"https://github.com/request/request", +description:"Simplified HTTP request client"}, +convert:({method:e,url:t,queryObj:n,postData:r,headersObj:o,cookies:i},a)=>{ +const s={indent:" ",...a};let l=!1 +;const{push:c,blank:u,join:d,unshift:p}=new Mf({indent:s.indent}) +;c("const request = require('request');"),u();const h={method:e,url:t} +;switch(Object.keys(n).length&&(h.qs=n), +Object.keys(o).length&&(h.headers=o),null==r?void 0:r.mimeType){ +case"application/x-www-form-urlencoded":h.form=r.paramsObj;break +;case"application/json":r.jsonObj&&(h.body=r.jsonObj,h.json=!0);break +;case"multipart/form-data":if(!r.params)break +;h.formData={},r.params.forEach((e=>{ +if(!e.fileName&&!e.fileName&&!e.contentType)return void(h.formData[e.name]=e.value) +;let t={};e.fileName?(l=!0,t={value:`fs.createReadStream(${e.fileName})`, +options:{filename:e.fileName,contentType:e.contentType?e.contentType:null} +}):e.value&&(t.value=e.value),h.formData[e.name]=t}));break;default: +(null==r?void 0:r.text)&&(h.body=r.text)} +return i.length&&(h.jar="JAR",c("const jar = request.jar();"),i.forEach((e=>{ +c(`jar.setCookie(request.cookie('${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}'), '${t}');`) +})),u()),l&&p("const fs = require('fs');"),c(`const options = ${im(h,{ +indent:" ",inlineCharacterLimit:80 +})};`),u(),c("request(options, function (error, response, body) {"), +c("if (error) throw new Error(error);",1), +u(),c("console.log(body);",1),c("});"), +d().replace("'JAR'","jar").replace(/'fs\.createReadStream\((.*)\)'/,"fs.createReadStream('$1')") +}},unirest:{info:{key:"unirest",title:"Unirest", +link:"http://unirest.io/nodejs.html", +description:"Lightweight HTTP Request Client Library"}, +convert:({method:e,url:t,cookies:n,queryObj:r,postData:o,headersObj:i},a)=>{ +const s={indent:" ",...a};let l=!1 +;const{addPostProcessor:c,blank:u,join:d,push:p,unshift:h}=new Mf({ +indent:s.indent}) +;switch(p("const unirest = require('unirest');"),u(),p(`const req = unirest('${e}', '${t}');`), +u(),n.length&&(p("const CookieJar = unirest.jar();"),n.forEach((e=>{ +p(`CookieJar.add('${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}', '${t}');`) +})),p("req.jar(CookieJar);"),u()),Object.keys(r).length&&(p(`req.query(${im(r,{ +indent:s.indent})});`),u()),Object.keys(i).length&&(p(`req.headers(${im(i,{ +indent:s.indent})});`),u()),null==o?void 0:o.mimeType){ +case"application/x-www-form-urlencoded": +o.paramsObj&&(p(`req.form(${im(o.paramsObj,{indent:s.indent})});`),u());break +;case"application/json": +o.jsonObj&&(p("req.type('json');"),p(`req.send(${im(o.jsonObj,{indent:s.indent +})});`),u());break;case"multipart/form-data":{if(!o.params)break;const e=[] +;o.params.forEach((t=>{const n={} +;t.fileName&&!t.value?(l=!0,n.body=`fs.createReadStream('${t.fileName}')`, +c((e=>e.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/,"fs.createReadStream('$1')")))):t.value&&(n.body=t.value), +n.body&&(t.contentType&&(n["content-type"]=t.contentType),e.push(n)) +})),p(`req.multipart(${im(e,{indent:s.indent})});`),u();break}default: +(null==o?void 0:o.text)&&(p(`req.send(${im(o.text,{indent:s.indent})});`),u())} +return l&&h("const fs = require('fs');"), +p("req.end(function (res) {"),p("if (res.error) throw new Error(res.error);",1), +u(),p("console.log(res.body);",1),p("});"),d()}},axios:{info:{key:"axios", +title:"Axios",link:"https://github.com/axios/axios", +description:"Promise based HTTP client for the browser and node.js"}, +convert:({method:e,url:t,queryObj:n,allHeaders:r,postData:o},i)=>{const a={ +indent:" ",...i},{blank:s,join:l,push:c,addPostProcessor:u}=new Mf({ +indent:a.indent});c("const axios = require('axios').default;");const d={ +method:e,url:t} +;switch(Object.keys(n).length&&(d.params=n),Object.keys(r).length&&(d.headers=r), +null==o?void 0:o.mimeType){case"application/x-www-form-urlencoded": +o.params&&(c("const { URLSearchParams } = require('url');"), +s(),c("const encodedParams = new URLSearchParams();"),o.params.forEach((e=>{ +c(`encodedParams.set('${e.name}', '${e.value}');`) +})),s(),d.data="encodedParams,", +u((e=>e.replace(/'encodedParams,'/,"encodedParams,"))));break +;case"application/json":s(),o.jsonObj&&(d.data=o.jsonObj);break;default: +s(),(null==o?void 0:o.text)&&(d.data=o.text)}const p=im(d,{indent:" ", +inlineCharacterLimit:80}) +;return c(`const options = ${p};`),s(),c("try {"),c("const { data } = await axios.request(options);",1), +c("console.log(data);",1), +c("} catch (error) {"),c("console.error(error);",1),c("}"),l()}},fetch:{info:{ +key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch", +description:"Simplified HTTP node-fetch client"}, +convert:({method:e,fullUrl:t,postData:n,headersObj:r,cookies:o},i)=>{var a +;const s={indent:" ",...i};let l=!1 +;const{blank:c,push:u,join:d,unshift:p}=new Mf({indent:s.indent}) +;u("const fetch = require('node-fetch');"),c();const h={method:e} +;switch(Object.keys(r).length&&(h.headers=r),null==n?void 0:n.mimeType){ +case"application/x-www-form-urlencoded": +p("const { URLSearchParams } = require('url');"), +u("const encodedParams = new URLSearchParams();"), +null===(a=n.params)||void 0===a||a.forEach((e=>{ +u(`encodedParams.set('${e.name}', '${e.value}');`)})),c(),h.body="encodedParams" +;break;case"application/json":n.jsonObj&&(h.body=JSON.stringify(n.jsonObj)) +;break;case"multipart/form-data":if(!n.params)break;const e=Af(r,"content-type") +;e&&delete r[e], +p("const FormData = require('form-data');"),u("const formData = new FormData();"), +n.params.forEach((e=>{ +e.fileName||e.fileName||e.contentType?e.fileName&&(l=!0,u(`formData.append('${e.name}', fs.createReadStream('${e.fileName}'));`)):u(`formData.append('${e.name}', '${e.value}');`) +})),c();break;default:(null==n?void 0:n.text)&&(h.body=n.text)}if(o.length){ +const e=o.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("; ") +;h.headers||(h.headers={}),h.headers.cookie=e} +u(`const url = '${t}';`),h.headers&&!Object.keys(h.headers).length&&delete h.headers +;const f=im(h,{indent:" ",inlineCharacterLimit:80}) +;return u(`const options = ${f};`), +l&&p("const fs = require('fs');"),(null==n?void 0:n.params)&&"multipart/form-data"===n.mimeType&&u("options.body = formData;"), +c(), +u("try {"),u("const response = await fetch(url, options);",1),u("const data = await response.json();",1), +u("console.log(data);",1), +u("} catch (error) {"),u("console.error(error);",1),u("}"), +d().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")') +}}}},cm=(e,t,n,r)=>{const o=`${e} *${t} = ` +;return`${o}${um(n,r?o.length:void 0)};`},um=(e,t)=>{ +const n=void 0===t?", ":`,\n ${" ".repeat(t)}` +;switch(Object.prototype.toString.call(e)){case"[object Number]":return`@${e}` +;case"[object Array]":return`@[ ${e.map((e=>um(e))).join(n)} ]` +;case"[object Object]":{const t=[] +;for(const n in e)t.push(`@"${n}": ${um(e[n])}`);return`@{ ${t.join(n)} }`} +case"[object Boolean]":return e?"@YES":"@NO";default: +return null==e?"":`@"${e.toString().replace(/"/g,'\\"')}"`}},dm={info:{ +key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"}, +clientsById:{nsurlsession:{info:{key:"nsurlsession",title:"NSURLSession", +link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html", +description:"Foundation's NSURLSession request"}, +convert:({allHeaders:e,postData:t,method:n,fullUrl:r},o)=>{var i;const a={ +indent:" ",pretty:!0,timeout:10,...o},{push:s,join:l,blank:c}=new Mf({ +indent:a.indent}),u={hasHeaders:!1,hasBody:!1} +;if(s("#import "), +Object.keys(e).length&&(u.hasHeaders=!0, +c(),s(cm("NSDictionary","headers",e,a.pretty))), +t&&(t.text||t.jsonObj||t.params))switch(u.hasBody=!0,t.mimeType){ +case"application/x-www-form-urlencoded": +if(null===(i=t.params)||void 0===i?void 0:i.length){c();const[e,...n]=t.params +;s(`NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${e.name}=${e.value}" dataUsingEncoding:NSUTF8StringEncoding]];`), +n.forEach((({name:e,value:t})=>{ +s(`[postData appendData:[@"&${e}=${t}" dataUsingEncoding:NSUTF8StringEncoding]];`) +}))}else u.hasBody=!1;break;case"application/json": +t.jsonObj&&(s(cm("NSDictionary","parameters",t.jsonObj,a.pretty)), +c(),s("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];")) +;break;case"multipart/form-data": +s(cm("NSArray","parameters",t.params||[],a.pretty)), +s(`NSString *boundary = @"${t.boundary}";`), +c(),s("NSError *error;"),s("NSMutableString *body = [NSMutableString string];"), +s("for (NSDictionary *param in parameters) {"), +s('[body appendFormat:@"--%@\\r\\n", boundary];',1), +s('if (param[@"fileName"]) {',1), +s('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',2), +s('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];',2), +s('[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];',2), +s("if (error) {",2), +s('NSLog(@"%@", error);',3),s("}",2),s("} else {",1),s('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];',2), +s('[body appendFormat:@"%@", param[@"value"]];',2), +s("}",1),s("}"),s('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'), +s("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");break +;default: +c(),s(`NSData *postData = [[NSData alloc] initWithData:[@"${t.text}" dataUsingEncoding:NSUTF8StringEncoding]];`) +} +return c(),s(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${r}"]`), +s(" cachePolicy:NSURLRequestUseProtocolCachePolicy"), +s(` timeoutInterval:${a.timeout.toFixed(1)}];`), +s(`[request setHTTPMethod:@"${n}"];`), +u.hasHeaders&&s("[request setAllHTTPHeaderFields:headers];"), +u.hasBody&&s("[request setHTTPBody:postData];"), +c(),s("NSURLSession *session = [NSURLSession sharedSession];"), +s("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"), +s(" completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"), +s(" if (error) {",1), +s(' NSLog(@"%@", error);',2), +s(" } else {",1), +s(" NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",2), +s(' NSLog(@"%@", httpResponse);',2), +s(" }",1), +s(" }];"),s("[dataTask resume];"),l() +}}}},pm={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"}, +clientsById:{cohttp:{info:{key:"cohttp",title:"CoHTTP", +link:"https://github.com/mirage/ocaml-cohttp", +description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml" +},convert:({fullUrl:e,allHeaders:t,postData:n,method:r},o)=>{const i={ +indent:" ",...o},{push:a,blank:s,join:l}=new Mf({indent:i.indent}) +;a("open Cohttp_lwt_unix"), +a("open Cohttp"),a("open Lwt"),s(),a(`let uri = Uri.of_string "${e}" in`) +;const c=Object.keys(t) +;1===c.length?a(`let headers = Header.add (Header.init ()) "${c[0]}" "${Qf(t[c[0]])}" in`):c.length>1&&(a("let headers = Header.add_list (Header.init ()) ["), +c.forEach((e=>{a(`("${e}", "${Qf(t[e])}");`,1) +})),a("] in")),(null==n?void 0:n.text)&&a(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(n.text)} in`), +s() +;const u=c.length?"~headers ":"",d=(null==n?void 0:n.text)?"~body ":"",p=["get","post","head","delete","patch","put","options"].includes(r.toLowerCase())?`\`${r.toUpperCase()}`:`(Code.method_of_string "${r}")` +;return a(`Client.call ${u}${d}${p} uri`), +a(">>= fun (res, body_stream) ->"),a("(* Do stuff with the result *)",1),l()}}} +},hm=(e,t,n)=>{switch(n=n||"",t=t||"",Object.prototype.toString.call(e)){ +case"[object Null]":case"[object Undefined]":default:return"null" +;case"[object String]":return`'${Lf(e,{delimiter:"'",escapeNewlines:!1})}'` +;case"[object Number]":return e.toString();case"[object Array]":{ +const r=e.map((e=>hm(e,`${t}${t}`,t))).join(`,\n${t}`) +;return`[\n${t}${r}\n${n}]`}case"[object Object]":{const r=[] +;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.push(`${hm(n,t)} => ${hm(e[n],`${t}${t}`,t)}`) +;return`[\n${t}${r.join(`,\n${t}`)}\n${n}]`}} +},fm=["ACL","BASELINE_CONTROL","CHECKIN","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LABEL","LOCK","MERGE","MKACTIVITY","MKCOL","MKWORKSPACE","MOVE","OPTIONS","POST","PROPFIND","PROPPATCH","PUT","REPORT","TRACE","UNCHECKOUT","UNLOCK","UPDATE","VERSION_CONTROL"],mm={ +info:{key:"php",title:"PHP",extname:".php",default:"curl"},clientsById:{curl:{ +info:{key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php", +description:"PHP with ext-curl"}, +convert:({uriObj:e,postData:t,fullUrl:n,method:r,httpVersion:o,cookies:i,headersObj:a},s={})=>{ +const{closingTag:l=!1,indent:c=" ",maxRedirects:u=10,namedErrors:d=!1,noTags:p=!1,shortTags:h=!1,timeout:f=30}=s,{push:m,blank:g,join:v}=new Mf({ +indent:c});p||(m(h?"{ +null!=e&&O.push(`${t} => ${n?JSON.stringify(e):e},`)})) +;const y=i.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)) +;y.length&&O.push(`CURLOPT_COOKIE => "${y.join("; ")}",`) +;const w=Object.keys(a).sort().map((e=>`"${e}: ${Qf(a[e])}"`)) +;return w.length&&(O.push("CURLOPT_HTTPHEADER => ["), +O.push(w.join(`,\n${c}${c}`),1), +O.push("],")),m(O.join(),1),m("]);"),g(),m("$response = curl_exec($curl);"), +m("$err = curl_error($curl);"),g(),m("curl_close($curl);"),g(),m("if ($err) {"), +m(d?'echo array_flip(get_defined_constants(true)["curl"])[$err];':'echo "cURL Error #:" . $err;',1), +m("} else {"),m("echo $response;",1),m("}"),!p&&l&&(g(),m("?>")),v()}},guzzle:{ +info:{key:"guzzle",title:"Guzzle",link:"http://docs.guzzlephp.org/en/stable/", +description:"PHP with Guzzle"}, +convert:({postData:e,fullUrl:t,method:n,cookies:r,headersObj:o},i)=>{var a +;const s={closingTag:!1,indent:" ",noTags:!1,shortTags:!1,...i +},{push:l,blank:c,join:u}=new Mf({indent:s.indent +}),{code:d,push:p,join:h}=new Mf({indent:s.indent}) +;switch(s.noTags||(l(s.shortTags?" ${hm(e.paramsObj,s.indent+s.indent,s.indent)},`,1);break +;case"multipart/form-data":{const t=[] +;if(e.params&&e.params.forEach((function(e){if(e.fileName){const n={name:e.name, +filename:e.fileName,contents:e.value};e.contentType&&(n.headers={ +"Content-Type":e.contentType}),t.push(n)}else e.value&&t.push({name:e.name, +contents:e.value}) +})),t.length&&(p(`'multipart' => ${hm(t,s.indent+s.indent,s.indent)}`,1), +Df(o,"content-type")&&(null===(a=Pf(o,"content-type"))||void 0===a?void 0:a.indexOf("boundary")))){ +const e=Af(o,"content-type");e&&delete o[e]}break}default: +(null==e?void 0:e.text)&&p(`'body' => ${hm(e.text)},`,1)} +const f=Object.keys(o).sort().map((function(e){ +return`${s.indent}${s.indent}'${e}' => '${Bf(o[e])}',` +})),m=r.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("; ") +;return m.length&&f.push(`${s.indent}${s.indent}'cookie' => '${Bf(m)}',`), +f.length&&(p("'headers' => [",1), +p(f.join("\n")),p("],",1)),l("$client = new \\GuzzleHttp\\Client();"), +c(),d.length?(l(`$response = $client->request('${n}', '${t}', [`), +l(h()),l("]);")):l(`$response = $client->request('${n}', '${t}');`), +c(),l("echo $response->getBody();"),!s.noTags&&s.closingTag&&(c(),l("?>")),u()} +},http1:{info:{key:"http1",title:"HTTP v1", +link:"http://php.net/manual/en/book.http.php", +description:"PHP with pecl/http v1"}, +convert:({method:e,url:t,postData:n,queryObj:r,headersObj:o,cookiesObj:i},a={})=>{ +const{closingTag:s=!1,indent:l=" ",noTags:c=!1,shortTags:u=!1}=a,{push:d,blank:p,join:h}=new Mf({ +indent:l}) +;switch(c||(d(u?"setUrl(${hm(t)});`),fm.includes(e.toUpperCase())?d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`):d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), +p(), +Object.keys(r).length&&(d(`$request->setQueryData(${hm(r,l)});`),p()),Object.keys(o).length&&(d(`$request->setHeaders(${hm(o,l)});`), +p()), +Object.keys(i).length&&(d(`$request->setCookies(${hm(i,l)});`),p()),null==n?void 0:n.mimeType){ +case"application/x-www-form-urlencoded": +d(`$request->setContentType(${hm(n.mimeType)});`), +d(`$request->setPostFields(${hm(n.paramsObj,l)});`),p();break +;case"application/json": +d(`$request->setContentType(${hm(n.mimeType)});`),d(`$request->setBody(json_encode(${hm(n.jsonObj,l)}));`), +p();break;default: +(null==n?void 0:n.text)&&(d(`$request->setBody(${hm(n.text)});`),p())} +return d("try {"), +d("$response = $request->send();",1),p(),d("echo $response->getBody();",1), +d("} catch (HttpException $ex) {"),d("echo $ex;",1),d("}"),!c&&s&&(p(),d("?>")), +h()}},http2:{info:{key:"http2",title:"HTTP v2", +link:"http://devel-m6w6.rhcloud.com/mdref/http", +description:"PHP with pecl/http v2"}, +convert:({postData:e,headersObj:t,method:n,queryObj:r,cookiesObj:o,url:i},a={})=>{ +var s +;const{closingTag:l=!1,indent:c=" ",noTags:u=!1,shortTags:d=!1}=a,{push:p,blank:h,join:f}=new Mf({ +indent:c});let m=!1 +;switch(u||(p(d?"append(new http\\QueryString(${hm(e.paramsObj,c)}));`), +h(),m=!0;break;case"multipart/form-data":{if(!e.params)break;const n=[],r={} +;e.params.forEach((({name:e,fileName:t,value:o,contentType:i})=>{t?n.push({ +name:e,type:i,file:t,data:o}):o&&(r[e]=o)})) +;const o=Object.keys(r).length?hm(r,c):"null",i=n.length?hm(n,c):"null" +;if(p("$body = new http\\Message\\Body;"), +p(`$body->addForm(${o}, ${i});`),Df(t,"content-type")&&(null===(s=Pf(t,"content-type"))||void 0===s?void 0:s.indexOf("boundary"))){ +const e=Af(t,"content-type");e&&delete t[e]}h(),m=!0;break} +case"application/json": +p("$body = new http\\Message\\Body;"),p(`$body->append(json_encode(${hm(e.jsonObj,c)}));`), +m=!0;break;default: +(null==e?void 0:e.text)&&(p("$body = new http\\Message\\Body;"), +p(`$body->append(${hm(e.text)});`),h(),m=!0)} +return p(`$request->setRequestUrl(${hm(i)});`), +p(`$request->setRequestMethod(${hm(n)});`), +m&&(p("$request->setBody($body);"),h()), +Object.keys(r).length&&(p(`$request->setQuery(new http\\QueryString(${hm(r,c)}));`), +h()), +Object.keys(t).length&&(p(`$request->setHeaders(${hm(t,c)});`),h()),Object.keys(o).length&&(h(), +p(`$client->setCookies(${hm(o,c)});`), +h()),p("$client->enqueue($request)->send();"), +p("$response = $client->getResponse();"), +h(),p("echo $response->getBody();"),!u&&l&&(h(),p("?>")),f()}}} +},gm=e=>({method:t,headersObj:n,cookies:r,uriObj:o,fullUrl:i,postData:a,allHeaders:s})=>{ +const{push:l,join:c}=new Mf +;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported" +;const u=[],d=Object.keys(n);return d.length&&(l("$headers=@{}"),d.forEach((e=>{ +"connection"!==e&&l(`$headers.Add("${e}", "${Lf(n[e],{escapeChar:"`"})}")`) +})),u.push("-Headers $headers")), +r.length&&(l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), +r.forEach((e=>{ +l("$cookie = New-Object System.Net.Cookie"),l(`$cookie.Name = '${e.name}'`), +l(`$cookie.Value = '${e.value}'`), +l(`$cookie.Domain = '${o.host}'`),l("$session.Cookies.Add($cookie)") +})),u.push("-WebSession $session")), +(null==a?void 0:a.text)&&(u.push(`-ContentType '${Lf(Pf(s,"content-type"),{ +delimiter:"'",escapeChar:"`" +})}'`),u.push(`-Body '${a.text}'`)),l(`$response = ${e} -Uri '${i}' -Method ${t} ${u.join(" ")}`), +c()},vm={info:{key:"restmethod",title:"Invoke-RestMethod", +link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod", +description:"Powershell Invoke-RestMethod client"}, +convert:gm("Invoke-RestMethod")},bm={info:{key:"webrequest", +title:"Invoke-WebRequest", +link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest", +description:"Powershell Invoke-WebRequest client"}, +convert:gm("Invoke-WebRequest")};function Om(e,t,n,r,o){ +const i=r.repeat(o),a=r.repeat(o-1),s=n?`,\n${i}`:", ",l="object"===e?"{":"[",c="object"===e?"}":"]" +;return n?`${l}\n${i}${t.join(s)}\n${a}${c}`:"object"===e&&t.length>0?`${l} ${t.join(s)} ${c}`:`${l}${t.join(s)}${c}` +}const ym=(e,t,n)=>{ +switch(n=void 0===n?1:n+1,Object.prototype.toString.call(e)){ +case"[object Number]":return e;case"[object Array]":{let r=!1 +;return Om("array",e.map((e=>("[object Object]"===Object.prototype.toString.call(e)&&(r=Object.keys(e).length>1), +ym(e,t,n)))),r,t.indent,n)}case"[object Object]":{const r=[] +;for(const o in e)r.push(`"${o}": ${ym(e[o],t,n)}`) +;return Om("object",r,t.pretty&&r.length>1,t.indent,n)}case"[object Null]": +return"None";case"[object Boolean]":return e?"True":"False";default: +return null==e?"":`"${e.toString().replace(/"/g,'\\"')}"`} +},wm=["HEAD","GET","POST","PUT","PATCH","DELETE","OPTIONS"],xm={info:{ +key:"httr",title:"httr", +link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html", +description:"httr: Tools for Working with URLs and HTTP"}, +convert:({url:e,queryObj:t,queryString:n,postData:r,allHeaders:o,method:i},a={})=>{ +var s,l;const{push:c,blank:u,join:d}=new Mf({ +indent:null!==(s=a.indent)&&void 0!==s?s:" "}) +;c("library(httr)"),u(),c(`url <- "${e}"`),u();const p=t;delete t.key +;const h=Object.entries(p),f=h.length;if(1===f){const e=h[0] +;c(`queryString <- list(${e[0]} = "${e[1]}")`),u() +}else f>1&&(c("queryString <- list("),h.forEach((([e,t],n)=>{ +c(`${e} = "${t}"${n!==f-1?",":""}`,1)})),c(")"),u()) +;const m=JSON.stringify(null==r?void 0:r.text);if(m&&(c(`payload <- ${m}`),u()), +r&&(r.text||r.jsonObj||r.params))switch(r.mimeType){ +case"application/x-www-form-urlencoded":c('encode <- "form"'),u();break +;case"application/json":c('encode <- "json"'),u();break +;case"multipart/form-data":c('encode <- "multipart"'),u();break;default: +c('encode <- "raw"'),u()} +const g=Pf(o,"cookie"),v=Pf(o,"accept"),b=g?`set_cookies(\`${String(g).replace(/;/g,'", `').replace(/` /g,"`").replace(/[=]/g,'` = "')}")`:void 0,O=v?`accept("${Qf(v)}")`:void 0,y=`content_type("${Qf(null!==(l=null==r?void 0:r.mimeType)&&void 0!==l?l:"application/octet-stream")}")`,w=Object.entries(o).filter((([e])=>!["cookie","accept","content-type"].includes(e.toLowerCase()))).map((([e,t])=>`'${e}' = '${Bf(t)}'`)).join(", "),x=w?`add_headers(${w})`:void 0 +;let k=`response <- VERB("${i}", url` +;m&&(k+=", body = payload"),n.length&&(k+=", query = queryString") +;const S=[x,y,O,b].filter((e=>!!e)).join(", ") +;return S&&(k+=`, ${S}`),r&&(r.text||r.jsonObj||r.params)&&(k+=", encode = encode"), +k+=")",c(k),u(),c('content(response, "text")'),d()} +},km=(e="")=>/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`,Sm={ +"http1.0":"0","url ":"",cookie:"b",data:"d",form:"F",globoff:"g",header:"H", +insecure:"k",request:"X"},_m=(e,t)=>t.repeat(e),Em=(e,t,n,r)=>{ +const o=_m(r,n),i=_m(r-1,n),a=t?`,\n${o}`:", " +;return t?`[\n${o}${e.join(a)}\n${i}]`:`[${e.join(a)}]` +},Tm=(e,t,n)=>`let ${e} = ${Cm(t,n)}`,Cm=(e,t,n)=>{ +switch(n=void 0===n?1:n+1,Object.prototype.toString.call(e)){ +case"[object Number]":return e;case"[object Array]":{let r=!1 +;const o=e.map((e=>("[object Object]"===Object.prototype.toString.call(e)&&(r=Object.keys(e).length>1), +Cm(e,t,n))));return Em(o,r,t.indent,n)}case"[object Object]":{const r=[] +;for(const o in e)r.push(`"${o}": ${Cm(e[o],t,n)}`) +;return Em(r,t.pretty&&r.length>1,t.indent,n)}case"[object Boolean]": +return e.toString();default: +return null==e?"":`"${e.toString().replace(/"/g,'\\"')}"`}},Am={c:jf,clojure:Wf, +csharp:Xf,go:Yf,http:Gf,java:Kf,javascript:am,kotlin:sm,node:lm,objc:dm, +ocaml:pm,php:mm,powershell:{info:{key:"powershell",title:"Powershell", +extname:".ps1",default:"webrequest"},clientsById:{webrequest:bm,restmethod:vm}}, +python:{info:{key:"python",title:"Python",extname:".py",default:"python3"}, +clientsById:{python3:{info:{key:"python3",title:"http.client", +link:"https://docs.python.org/3/library/http.client.html", +description:"Python3 HTTP Client"}, +convert:({uriObj:{path:e,protocol:t,host:n},postData:r,allHeaders:o,method:i},a={})=>{ +const{insecureSkipVerify:s=!1}=a,{push:l,blank:c,join:u}=new Mf +;if(l("import http.client"),s&&l("import ssl"),c(),"https:"===t){ +l(`conn = http.client.HTTPSConnection("${n}"${s?", context = ssl._create_unverified_context()":""})`), +c()}else l(`conn = http.client.HTTPConnection("${n}")`),c() +;const d=JSON.stringify(null==r?void 0:r.text);d&&(l(`payload = ${d}`),c()) +;const p=o,h=Object.keys(p).length +;if(1===h)for(const f in p)l(`headers = { '${f}': "${Qf(p[f])}" }`), +c();else if(h>1){let e=1;l("headers = {") +;for(const t in p)e++!==h?l(` '${t}': "${Qf(p[t])}",`):l(` '${t}': "${Qf(p[t])}"`) +;l("}"),c()} +return l(d&&h?`conn.request("${i}", "${e}", payload, headers)`:d&&!h?`conn.request("${i}", "${e}", payload)`:!d&&h?`conn.request("${i}", "${e}", headers=headers)`:`conn.request("${i}", "${e}")`), +c(), +l("res = conn.getresponse()"),l("data = res.read()"),c(),l('print(data.decode("utf-8"))'), +u()}},requests:{info:{key:"requests",title:"Requests", +link:"http://docs.python-requests.org/en/latest/api/#requests.request", +description:"Requests HTTP library"}, +convert:({queryObj:e,url:t,postData:n,allHeaders:r,method:o},i)=>{const a={ +indent:" ",pretty:!0,...i},{push:s,blank:l,join:c}=new Mf({indent:a.indent}) +;let u +;s("import requests"),l(),s(`url = "${t}"`),l(),Object.keys(e).length&&(u=`querystring = ${JSON.stringify(e)}`, +s(u),l());const d=r;let p={};const h={};let f=!1,m=!1,g=!1 +;switch(null==n?void 0:n.mimeType){case"application/json": +n.jsonObj&&(s(`payload = ${ym(n.jsonObj,a)}`),g=!0,m=!0);break +;case"multipart/form-data":if(!n.params)break;if(p={},n.params.forEach((e=>{ +e.fileName?(h[e.name]=`open('${e.fileName}', 'rb')`, +f=!0):(p[e.name]=e.value,m=!0)})),f){ +s(`files = ${ym(h,a)}`),m&&s(`payload = ${ym(p,a)}`) +;const e=Af(d,"content-type");e&&delete d[e]}else{const e=JSON.stringify(n.text) +;e&&(s(`payload = ${e}`),m=!0)}break;default:{if(!n)break +;if("application/x-www-form-urlencoded"===n.mimeType&&n.paramsObj){ +s(`payload = ${ym(n.paramsObj,a)}`),m=!0;break}const e=JSON.stringify(n.text) +;e&&(s(`payload = ${e}`),m=!0)}}const v=Object.keys(d).length +;if(0===v&&(m||f))l();else if(1===v)for(const O in d)s(`headers = {"${O}": "${Qf(d[O])}"}`), +l();else if(v>1){let e=1;s("headers = {") +;for(const t in d)s(e!==v?`"${t}": "${Qf(d[t])}",`:`"${t}": "${Qf(d[t])}"`,1), +e+=1;s("}"),l()} +let b=wm.includes(o)?`response = requests.${o.toLowerCase()}(url`:`response = requests.request("${o}", url` +;return m&&(b+=g?", json=payload":", data=payload"), +f&&(b+=", files=files"),v>0&&(b+=", headers=headers"), +u&&(b+=", params=querystring"),b+=")",s(b),l(),s("print(response.json())"),c()}} +}},r:{info:{key:"r",title:"R",extname:".r",default:"httr"},clientsById:{httr:xm} +},ruby:{info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"}, +clientsById:{native:{info:{key:"native",title:"net::http", +link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html", +description:"Ruby HTTP client"}, +convert:({uriObj:e,method:t,fullUrl:n,postData:r,allHeaders:o},i={})=>{ +const{insecureSkipVerify:a=!1}=i,{push:s,blank:l,join:c}=new Mf +;s("require 'uri'"),s("require 'net/http'"),l() +;const u=t.toUpperCase(),d=u.charAt(0)+u.substring(1).toLowerCase() +;["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].includes(u)||(s(`class Net::HTTP::${d} < Net::HTTPRequest`), +s(` METHOD = '${u.toUpperCase()}'`), +s(` REQUEST_HAS_BODY = '${(null==r?void 0:r.text)?"true":"false"}'`), +s(" RESPONSE_HAS_BODY = true"), +s("end"),l()),s(`url = URI("${n}")`),l(),s("http = Net::HTTP.new(url.host, url.port)"), +"https:"===e.protocol&&(s("http.use_ssl = true"), +a&&s("http.verify_mode = OpenSSL::SSL::VERIFY_NONE")), +l(),s(`request = Net::HTTP::${d}.new(url)`);const p=Object.keys(o) +;return p.length&&p.forEach((e=>{s(`request["${e}"] = '${Bf(o[e])}'`) +})),(null==r?void 0:r.text)&&s(`request.body = ${JSON.stringify(r.text)}`), +l(),s("response = http.request(request)"),s("puts response.read_body"),c()}}}}, +shell:{info:{key:"shell",title:"Shell",extname:".sh",default:"curl"}, +clientsById:{curl:{info:{key:"curl",title:"cURL",link:"http://curl.haxx.se/", +description:"cURL is a command line tool and library for transferring data with URL syntax" +}, +convert:({fullUrl:e,method:t,httpVersion:n,headersObj:r,allHeaders:o,postData:i},a={})=>{ +var s +;const{binary:l=!1,globOff:c=!1,indent:u=" ",insecureSkipVerify:d=!1,prettifyJson:p=!1,short:h=!1}=a,{push:f,join:m}=new Mf({ +..."string"==typeof u?{indent:u}:{},join:!1!==u?` \\\n${u}`:" "}),g=(e=>t=>{ +if(e){const e=Sm[t];return e?`-${e}`:""}return`--${t}`})(h);let v=km(e) +;if(f(`curl ${g("request")} ${t}`), +c&&(v=unescape(v),f(g("globoff"))),f(`${g("url ")}${v}`), +d&&f(g("insecure")),"HTTP/1.0"===n&&f(g("http1.0")), +Pf(o,"accept-encoding")&&f("--compressed"), +"multipart/form-data"===(null==i?void 0:i.mimeType)){ +const e=Af(r,"content-type");if(e){const t=r[e];if(e&&t){ +const n=t.replace(/; boundary.+?(?=(;|$))/,"");r[e]=n,o[e]=n}}} +switch(Object.keys(r).sort().forEach((e=>{const t=`${e}: ${r[e]}` +;f(`${g("header")} ${km(t)}`) +})),o.cookie&&f(`${g("cookie")} ${km(o.cookie)}`),null==i?void 0:i.mimeType){ +case"multipart/form-data":null===(s=i.params)||void 0===s||s.forEach((e=>{ +let t="" +;t=e.fileName?`${e.name}=@${e.fileName}`:`${e.name}=${e.value}`,f(`${g("form")} ${km(t)}`) +}));break;case"application/x-www-form-urlencoded": +i.params?i.params.forEach((e=>{ +const t=e.name,n=encodeURIComponent(e.name),r=n!==t +;f(`${l?"--data-binary":"--data"+(r?"-urlencode":"")} ${km(`${r?n:t}=${e.value}`)}`) +})):f(`${l?"--data-binary":g("data")} ${km(i.text)}`);break;default:{if(!i)break +;if(!i.text)break;const e=l?"--data-binary":g("data");let t=!1 +;if(b=i.mimeType,$f.some((e=>b.includes(e)))){if(i.text.length>2&&p)try{ +const n=JSON.parse(i.text);t=!0;const r=JSON.stringify(n,void 0,u) +;i.text.indexOf("'")>0?f(`${e} @- <{ +const s={body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1, +queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1,...a +},{push:l,join:c,unshift:u}=new Mf({indent:s.indent, +join:!1!==s.indent?` \\\n${s.indent}`:" "});let d=!1;const p=[] +;s.headers&&p.push(s.short?"-h":"--headers"), +s.body&&p.push(s.short?"-b":"--body"), +s.verbose&&p.push(s.short?"-v":"--verbose"), +s.print&&p.push(`${s.short?"-p":"--print"}=${s.print}`), +s.verify&&p.push(`--verify=${s.verify}`), +s.cert&&p.push(`--cert=${s.cert}`),s.pretty&&p.push(`--pretty=${s.pretty}`), +s.style&&p.push(`--style=${s.style}`), +s.timeout&&p.push(`--timeout=${s.timeout}`), +s.queryParams&&Object.keys(n).forEach((e=>{const t=n[e] +;Array.isArray(t)?t.forEach((t=>{l(`${e}==${km(t)}`)})):l(`${e}==${km(t)}`) +})),Object.keys(e).sort().forEach((t=>{l(`${t}:${km(e[t])}`) +})),"application/x-www-form-urlencoded"===(null==t?void 0:t.mimeType)?t.params&&t.params.length&&(p.push(s.short?"-f":"--form"), +t.params.forEach((e=>{l(`${e.name}=${km(e.value)}`)}))):d=!0 +;if(u(`http ${p.length?`${p.join(" ")} `:""}${o} ${i=km(s.queryParams?i:r)}`), +d&&(null==t?void 0:t.text)){u(`echo ${km(t.text)} | `)}return c()}},wget:{info:{ +key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/", +description:"a free software package for retrieving files using HTTP, HTTPS"}, +convert:({method:e,postData:t,allHeaders:n,fullUrl:r},o)=>{const i={indent:" ", +short:!1,verbose:!1,...o},{push:a,join:s}=new Mf({indent:i.indent, +join:!1!==i.indent?` \\\n${i.indent}`:" "});var l +;return i.verbose?a("wget "+(i.short?"-v":"--verbose")):a("wget "+(i.short?"-q":"--quiet")), +a(`--method ${km(e)}`),Object.keys(n).forEach((e=>{const t=`${e}: ${n[e]}` +;a(`--header ${km(t)}`) +})),(null==t?void 0:t.text)&&a(`--body-data ${l=km(t.text), +l.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}`), +a(i.short?"-O":"--output-document"),a(`- ${km(r)}`),s()}}}},swift:{info:{ +key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},clientsById:{ +nsurlsession:{info:{key:"nsurlsession",title:"NSURLSession", +link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html", +description:"Foundation's NSURLSession request"}, +convert:({allHeaders:e,postData:t,fullUrl:n,method:r},o)=>{var i;const a={ +indent:" ",pretty:!0,timeout:"10",...o},{push:s,blank:l,join:c}=new Mf({ +indent:a.indent}),u={hasHeaders:!1,hasBody:!1} +;if(s("import Foundation"),Object.keys(e).length&&(u.hasHeaders=!0, +l(),s(Tm("headers",e,a))), +t&&(t.text||t.jsonObj||t.params))switch(u.hasBody=!0,t.mimeType){ +case"application/x-www-form-urlencoded": +if(l(),null===(i=t.params)||void 0===i?void 0:i.length){const[e,...n]=t.params +;s(`let postData = NSMutableData(data: "${e.name}=${e.value}".data(using: String.Encoding.utf8)!)`), +n.forEach((({name:e,value:t})=>{ +s(`postData.append("&${e}=${t}".data(using: String.Encoding.utf8)!)`)})) +}else u.hasBody=!1;break;case"application/json": +t.jsonObj&&(s(`${Tm("parameters",t.jsonObj,a)} as [String : Any]`), +l(),s("let postData = JSONSerialization.data(withJSONObject: parameters, options: [])")) +;break;case"multipart/form-data": +s(Tm("parameters",t.params,a)),l(),s(`let boundary = "${t.boundary}"`), +l(),s('var body = ""'), +s("var error: NSError? = nil"),s("for param in parameters {"), +s('let paramName = param["name"]!',1), +s('body += "--\\(boundary)\\r\\n"',1),s('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""',1), +s('if let filename = param["fileName"] {',1), +s('let contentType = param["content-type"]!',2), +s("let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)",2), +s("if (error != nil) {",2), +s("print(error as Any)",3),s("}",2),s('body += "; filename=\\"\\(filename)\\"\\r\\n"',2), +s('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"',2), +s("body += fileContent",2), +s('} else if let paramValue = param["value"] {',1),s('body += "\\r\\n\\r\\n\\(paramValue)"',2), +s("}",1),s("}");break;default: +l(),s(`let postData = NSData(data: "${t.text}".data(using: String.Encoding.utf8)!)`) +} +return l(),s(`let request = NSMutableURLRequest(url: NSURL(string: "${n}")! as URL,`), +s(" cachePolicy: .useProtocolCachePolicy,"), +s(` timeoutInterval: ${parseInt(a.timeout,10).toFixed(1)})`), +s(`request.httpMethod = "${r}"`), +u.hasHeaders&&s("request.allHTTPHeaderFields = headers"), +u.hasBody&&s("request.httpBody = postData as Data"), +l(),s("let session = URLSession.shared"), +s("let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in"), +s("if (error != nil) {",1), +s("print(error as Any)",2),s("} else {",1),s("let httpResponse = response as? HTTPURLResponse",2), +s("print(httpResponse)",2),s("}",1),s("})"),l(),s("dataTask.resume()"),c()}}}}} +;class Pm{constructor(e){let t=[];var n +;t="object"==typeof(n=e)&&"log"in n&&"object"==typeof n.log&&"entries"in n.log&&Array.isArray(n.log.entries)?e.log.entries:[{ +request:e}],this.requests=Promise.all(t.map((({request:e})=>{var t;const n={ +bodySize:0,headersSize:0,headers:[],cookies:[],httpVersion:"HTTP/1.1", +queryString:[],postData:{ +mimeType:(null===(t=e.postData)||void 0===t?void 0:t.mimeType)||"application/octet-stream" +},...e};return this.prepare(n)})))}async prepare(e){var t,n,r,o;const i={...e, +fullUrl:"",queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{}} +;if(i.queryString&&i.queryString.length&&(i.queryObj=i.queryString.reduce(Rf,{})), +i.headers&&i.headers.length){const e=/^HTTP\/2/ +;i.headersObj=i.headers.reduce(((t,{name:n,value:r})=>{ +const o=e.exec(i.httpVersion)?n.toLocaleLowerCase():n;return{...t,[o]:r}}),{})} +i.cookies&&i.cookies.length&&(i.cookiesObj=i.cookies.reduceRight(((e,{name:t,value:n})=>({ +...e,[t]:n})),{})) +;const a=null===(t=i.cookies)||void 0===t?void 0:t.map((({name:e,value:t})=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)) +;switch((null==a?void 0:a.length)&&(i.allHeaders.cookie=a.join("; ")), +null===(n=i.postData)||void 0===n?void 0:n.mimeType){case"multipart/mixed": +case"multipart/related":case"multipart/form-data":case"multipart/alternative": +if(i.postData.text="", +i.postData.mimeType="multipart/form-data",null===(r=i.postData)||void 0===r?void 0:r.params){ +const e=new wf,t="---011000010111000001101001" +;null===(o=i.postData)||void 0===o||o.params.forEach((t=>{ +const n=t.name,r=t.value||"",o=t.fileName;var i +;"object"==typeof(i=r)&&"function"==typeof i.arrayBuffer&&"string"==typeof i.type&&"function"==typeof i.stream&&"function"==typeof i.constructor&&/^(Blob|File)$/.test(i[Ef])?e.append(n,r,o):e.append(n,new xf([r],{ +type:t.contentType}),o?function(e){const t=e.split("/");return t[t.length-1] +}(o):o)}));const{postData:n}=i;for await(const o of Cf(e,t))n.text+=o +;i.postData.boundary=t;const r=Af(i.headersObj,"content-type")||"content-type" +;i.headersObj[r]=`multipart/form-data; boundary=${t}`}break +;case"application/x-www-form-urlencoded": +i.postData.params?(i.postData.paramsObj=i.postData.params.reduce(Rf,{}), +i.postData.text=Nf(i.postData.paramsObj).toString()):i.postData.text="";break +;case"text/json":case"text/x-json":case"application/json": +case"application/x-json": +if(i.postData.mimeType="application/json",i.postData.text)try{ +i.postData.jsonObj=JSON.parse(i.postData.text)}catch(P$){ +i.postData.mimeType="text/plain"}}const s={...i.allHeaders,...i.headersObj +},l=new URL(i.url),c=Object.fromEntries(l.searchParams);i.queryObj={ +...i.queryObj,...c};const u=Nf(i.queryObj),d=new URL(i.url) +;return d.search=u.toString(),l.search="",{...i,allHeaders:s, +fullUrl:d.toString(),url:l.toString(),uriObj:new If(d.toString())}} +async convert(e,t,n){!n&&t&&(n=t);const r=Am[e];if(!r)return null +;const{convert:o}=r.clientsById[t||r.info.default],i=(await this.requests).map((e=>o(e,n))) +;return 1===i.length?i[0]:i}}const Dm=(...e)=>{let t={httpVersion:"1.1", +method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[], +bodySize:-1};e.forEach((e=>{t={...t,...e, +headers:[...t.headers,...e.headers??[]], +queryString:[...t.queryString,...e.queryString??[]], +cookies:[...t.cookies,...e.cookies??[]]}})),t.headers=(e=>{if(Array.isArray(e)){ +const t=new Map;return e.forEach((e=>{t.set(Ld(e.name),e) +})),Array.from(t.values()).map((e=>({...e,name:Ld(e.name)})))} +return Object.fromEntries(Object.entries(e??{}).reverse().filter((([e],t,n)=>n.findIndex((([t])=>Ld(t)===Ld(e)))===t)).reverse().map((([e,t])=>[Ld(e),t]))) +})(t.headers);const{path:n,...r}=t;return n?{...r,url:`${t.url}${n}`}:r +},$m="object"==typeof self?self:globalThis,Rm=e=>((e,t)=>{ +const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o] +;switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o) +;for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o) +;for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4: +{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{ +const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{ +const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{ +const{name:e,message:t}=a;return n(new $m[e](t),o)}case 8:return n(BigInt(a),o) +;case"BigInt":return n(Object(BigInt(a)),o)}return n(new $m[i](a),o)};return r +})(new Map,e)(0),Nm="",{toString:Im}={},{keys:Mm}=Object,Lm=e=>{const t=typeof e +;if("object"!==t||!e)return[0,t];const n=Im.call(e).slice(8,-1);switch(n){ +case"Array":return[1,Nm];case"Object":return[2,Nm];case"Date":return[3,Nm] +;case"RegExp":return[4,Nm];case"Map":return[5,Nm];case"Set":return[6,Nm]} +return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n] +},Bm=([e,t])=>0===e&&("function"===t||"symbol"===t),Qm=(e,{json:t,lossy:n}={})=>{ +const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1 +;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=Lm(r) +;switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break +;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s) +;t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{ +if(s)return o([s,[...r]],r);const e=[],t=o([a,e],r) +;for(const n of r)e.push(i(n));return t}case 2:{if(s)switch(s){case"BigInt": +return o([s,r.toString()],r);case"Boolean":case"Number":case"String": +return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON()) +;const n=[],l=o([a,n],r) +;for(const t of Mm(r))!e&&Bm(Lm(r[t]))||n.push([i(t),i(r[t])]);return l}case 3: +return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{ +source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r) +;for(const[o,a]of r)(e||!Bm(Lm(o))&&!Bm(Lm(a)))&&t.push([i(o),i(a)]);return n} +case 6:{const t=[],n=o([a,t],r);for(const o of r)!e&&Bm(Lm(o))||t.push(i(o)) +;return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i +})(!(t||n),!!t,new Map,r)(e),r +},jm="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Rm(Qm(e,t)):structuredClone(e):(e,t)=>Rm(Qm(e,t)),Um=function(e,t,n,r,o){ +const i=Fm(t);return!!Hm(e)&&i.call(o,e,n,r)},Fm=function(e){ +if(null==e)return zm;if("string"==typeof e)return function(e){return qm(t) +;function t(t){return t.tagName===e}}(e) +;if("object"==typeof e)return function(e){const t=[];let n=-1 +;for(;++n":"")+")"})} +return u;function u(){let c,u,d,p=Jm +;if((!t||i(o,s,l[l.length-1]||void 0))&&(p=function(e){ +if(Array.isArray(e))return e;if("number"==typeof e)return[eg,e] +;return null==e?Jm:[e]}(n(o,l)),p[0]===tg))return p +;if("children"in o&&o.children){const t=o +;if(t.children&&p[0]!==ng)for(u=(r?t.children.length:-1)+a, +d=l.concat(t);u>-1&&u0&&(e.properties.rel=[...i]),a&&(e.properties.target=a),r){ +const n=cg(t.contentProperties,e)||{};e.children.push({type:"element", +tagName:"span",properties:jm(n),children:jm(r)})}}}}))}}function cg(e,t){ +return"function"==typeof e?e(t):e}const ug=Fm((function(e){ +return"audio"===e.tagName||"canvas"===e.tagName||"embed"===e.tagName||"iframe"===e.tagName||"img"===e.tagName||"math"===e.tagName||"object"===e.tagName||"picture"===e.tagName||"svg"===e.tagName||"video"===e.tagName +})),dg={}.hasOwnProperty;const pg=new Set(["pingback","prefetch","stylesheet"]) +;const hg=Fm(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),fg=Fm("meta") +;function mg(e){return Boolean("text"===e.type||hg(e)||ug(e)||function(e){ +if("element"!==e.type||"link"!==e.tagName)return!1 +;if(e.properties.itemProp)return!0;const t=e.properties.rel;let n=-1 +;if(!Array.isArray(t)||0===t.length)return!1 +;for(;++n0&&t.blanks.includes(e.tagName)) +}}function Lg(e,t){ +return"root"===e.type||"element"===e.type&&(t||Um(e,"script")||ug(e)||!mg(e))} +let Bg=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)} +};function Qg(e,t){const n={},r={};let o=-1 +;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{ +xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null, +xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ov=nv({space:"xml", +transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null, +xmlBase:null,xmlSpace:null}});function iv(e,t){return t in e?e[t]:t} +function av(e,t){return iv(e,t.toLowerCase())}const sv=nv({space:"xmlns", +attributes:{xmlnsxlink:"xmlns:xlink"},transform:av,properties:{xmlns:null, +xmlnsXLink:null}}),lv=nv({ +transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ +ariaActiveDescendant:null,ariaAtomic:zg,ariaAutoComplete:null,ariaBusy:zg, +ariaChecked:zg,ariaColCount:Zg,ariaColIndex:Zg,ariaColSpan:Zg,ariaControls:Vg, +ariaCurrent:null,ariaDescribedBy:Vg,ariaDetails:null,ariaDisabled:zg, +ariaDropEffect:Vg,ariaErrorMessage:null,ariaExpanded:zg,ariaFlowTo:Vg, +ariaGrabbed:zg,ariaHasPopup:null,ariaHidden:zg,ariaInvalid:null, +ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Vg,ariaLevel:Zg, +ariaLive:null,ariaModal:zg,ariaMultiLine:zg,ariaMultiSelectable:zg, +ariaOrientation:null,ariaOwns:Vg,ariaPlaceholder:null,ariaPosInSet:Zg, +ariaPressed:zg,ariaReadOnly:zg,ariaRelevant:null,ariaRequired:zg, +ariaRoleDescription:Vg,ariaRowCount:Zg,ariaRowIndex:Zg,ariaRowSpan:Zg, +ariaSelected:zg,ariaSetSize:Zg,ariaSort:null,ariaValueMax:Zg,ariaValueMin:Zg, +ariaValueNow:Zg,ariaValueText:null,role:null}}),cv=nv({space:"html",attributes:{ +acceptcharset:"accept-charset",classname:"class",htmlfor:"for", +httpequiv:"http-equiv"},transform:av, +mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null, +accept:Wg,acceptCharset:Vg,accessKey:Vg,action:null,allow:null, +allowFullScreen:qg,allowPaymentRequest:qg,allowUserMedia:qg,alt:null,as:null, +async:qg,autoCapitalize:null,autoComplete:Vg,autoFocus:qg,autoPlay:qg, +blocking:Vg,capture:null,charSet:null,checked:qg,cite:null,className:Vg,cols:Zg, +colSpan:null,content:null,contentEditable:zg,controls:qg,controlsList:Vg, +coords:Zg|Wg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qg, +defer:qg,dir:null,dirName:null,disabled:qg,download:Hg,draggable:zg, +encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null, +formEncType:null,formMethod:null,formNoValidate:qg,formTarget:null,headers:Vg, +height:Zg,hidden:qg,high:Zg,href:null,hrefLang:null,htmlFor:Vg,httpEquiv:Vg, +id:null,imageSizes:null,imageSrcSet:null,inert:qg,inputMode:null,integrity:null, +is:null,isMap:qg,itemId:null,itemProp:Vg,itemRef:Vg,itemScope:qg,itemType:Vg, +kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qg, +low:Zg,manifest:null,max:null,maxLength:Zg,media:null,method:null,min:null, +minLength:Zg,multiple:qg,muted:qg,name:null,nonce:null,noModule:qg, +noValidate:qg,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null, +onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null, +onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null, +onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null, +onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null, +onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null, +onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null, +onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null, +onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null, +onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null, +onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null, +onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null, +onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null, +onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null, +onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null, +onRejectionHandled:null,onReset:null,onResize:null,onScroll:null, +onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null, +onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null, +onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null, +onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:qg, +optimum:Zg,pattern:null,ping:Vg,placeholder:null,playsInline:qg,popover:null, +popoverTarget:null,popoverTargetAction:null,poster:null,preload:null, +readOnly:qg,referrerPolicy:null,rel:Vg,required:qg,reversed:qg,rows:Zg, +rowSpan:Zg,sandbox:Vg,scope:null,scoped:qg,seamless:qg,selected:qg, +shadowRootClonable:qg,shadowRootDelegatesFocus:qg,shadowRootMode:null, +shape:null,size:Zg,sizes:null,slot:null,span:Zg,spellCheck:zg,src:null, +srcDoc:null,srcLang:null,srcSet:null,start:Zg,step:null,style:null,tabIndex:Zg, +target:null,title:null,translate:null,type:null,typeMustMatch:qg,useMap:null, +value:zg,width:Zg,wrap:null,writingSuggestions:null,align:null,aLink:null, +archive:Vg,axis:null,background:null,bgColor:null,border:Zg,borderColor:null, +bottomMargin:Zg,cellPadding:null,cellSpacing:null,char:null,charOff:null, +classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null, +compact:qg,declare:qg,event:null,face:null,frame:null,frameBorder:null, +hSpace:Zg,leftMargin:Zg,link:null,longDesc:null,lowSrc:null,marginHeight:Zg, +marginWidth:Zg,noResize:qg,noHref:qg,noShade:qg,noWrap:qg,object:null, +profile:null,prompt:null,rev:null,rightMargin:Zg,rules:null,scheme:null, +scrolling:zg,standby:null,summary:null,text:null,topMargin:Zg,valueType:null, +version:null,vAlign:null,vLink:null,vSpace:Zg,allowTransparency:null, +autoCorrect:null,autoSave:null,disablePictureInPicture:qg, +disableRemotePlayback:qg,prefix:null,property:null,results:Zg,security:null, +unselectable:null}}),uv=nv({space:"svg",attributes:{ +accentHeight:"accent-height",alignmentBaseline:"alignment-baseline", +arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height", +className:"class",clipPath:"clip-path",clipRule:"clip-rule", +colorInterpolation:"color-interpolation", +colorInterpolationFilters:"color-interpolation-filters", +colorProfile:"color-profile",colorRendering:"color-rendering", +crossOrigin:"crossorigin",dataType:"datatype", +dominantBaseline:"dominant-baseline",enableBackground:"enable-background", +fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color", +floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size", +fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch", +fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight", +glyphName:"glyph-name", +glyphOrientationHorizontal:"glyph-orientation-horizontal", +glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang", +horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x", +horizOriginY:"horiz-origin-y",imageRendering:"image-rendering", +letterSpacing:"letter-spacing",lightingColor:"lighting-color", +markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start", +navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right", +navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right", +navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right", +onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint", +onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel", +onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange", +onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange", +onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend", +onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave", +onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop", +onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend", +onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin", +onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput", +onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress", +onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata", +onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart", +onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter", +onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout", +onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel", +onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide", +onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay", +onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress", +onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset", +onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked", +onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled", +onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend", +onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload", +onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom", +overlinePosition:"overline-position",overlineThickness:"overline-thickness", +paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events", +referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent", +shapeRendering:"shape-rendering",stopColor:"stop-color", +stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position", +strikethroughThickness:"strikethrough-thickness", +strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset", +strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin", +strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity", +strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor", +textDecoration:"text-decoration",textRendering:"text-rendering", +transformOrigin:"transform-origin",typeOf:"typeof", +underlinePosition:"underline-position",underlineThickness:"underline-thickness", +unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range", +unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging", +vIdeographic:"v-ideographic",vMathematical:"v-mathematical", +vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x", +vertOriginY:"vert-origin-y",wordSpacing:"word-spacing", +writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder", +timelineBegin:"timelinebegin"},transform:iv,properties:{about:Xg, +accentHeight:Zg,accumulate:null,additive:null,alignmentBaseline:null, +alphabetic:Zg,amplitude:Zg,arabicForm:null,ascent:Zg,attributeName:null, +attributeType:null,azimuth:Zg,bandwidth:null,baselineShift:null, +baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zg,by:null, +calcMode:null,capHeight:Zg,className:Vg,clip:null,clipPath:null, +clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null, +colorInterpolationFilters:null,colorProfile:null,colorRendering:null, +content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null, +cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zg, +diffuseConstant:Zg,direction:null,display:null,dur:null,divisor:Zg, +dominantBaseline:null,download:qg,dx:null,dy:null,edgeMode:null,editable:null, +elevation:Zg,enableBackground:null,end:null,event:null,exponent:Zg, +externalResourcesRequired:null,fill:null,fillOpacity:Zg,fillRule:null, +filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null, +focusable:null,focusHighlight:null,fontFamily:null,fontSize:null, +fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null, +fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wg,g2:Wg, +glyphName:Wg,glyphOrientationHorizontal:null,glyphOrientationVertical:null, +glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zg, +hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null, +horizAdvX:Zg,horizOriginX:Zg,horizOriginY:Zg,id:null,ideographic:Zg, +imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Zg,k:Zg, +k1:Zg,k2:Zg,k3:Zg,k4:Zg,kernelMatrix:Xg,kernelUnitLength:null,keyPoints:null, +keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null, +letterSpacing:null,lightingColor:null,limitingConeAngle:Zg,local:null, +markerEnd:null,markerMid:null,markerStart:null,markerHeight:null, +markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null, +maskUnits:null,mathematical:null,max:null,media:null, +mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zg, +mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null, +navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null, +navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null, +observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null, +onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null, +onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null, +onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null, +onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null, +onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null, +onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null, +onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null, +onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null, +onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null, +onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null, +onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null, +onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null, +onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null, +onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null, +onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null, +onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null, +onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null, +orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zg, +overlineThickness:Zg,paintOrder:null,panose1:null,path:null,pathLength:Zg, +patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null, +ping:Vg,pitch:null,playbackOrder:null,pointerEvents:null,points:null, +pointsAtX:Zg,pointsAtY:Zg,pointsAtZ:Zg,preserveAlpha:null, +preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xg,r:null, +radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xg,rev:Xg, +renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xg, +requiredFeatures:Xg,requiredFonts:Xg,requiredFormats:Xg,resource:null, +restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null, +shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zg, +specularExponent:Zg,spreadMethod:null,spacing:null,startOffset:null, +stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null, +stopOpacity:null,strikethroughPosition:Zg,strikethroughThickness:Zg,string:null, +stroke:null,strokeDashArray:Xg,strokeDashOffset:null,strokeLineCap:null, +strokeLineJoin:null,strokeMiterLimit:Zg,strokeOpacity:Zg,strokeWidth:null, +style:null,surfaceScale:Zg,syncBehavior:null,syncBehaviorDefault:null, +syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xg, +tabIndex:Zg,tableValues:null,target:null,targetX:Zg,targetY:Zg,textAnchor:null, +textDecoration:null,textRendering:null,textLength:null,timelineBegin:null, +title:null,transformBehavior:null,type:null,typeOf:Xg,to:null,transform:null, +transformOrigin:null,u1:null,u2:null,underlinePosition:Zg,underlineThickness:Zg, +unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zg,values:null, +vAlphabetic:Zg,vMathematical:Zg,vectorEffect:null,vHanging:Zg,vIdeographic:Zg, +version:null,vertAdvY:Zg,vertOriginX:Zg,vertOriginY:Zg,viewBox:null, +viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null, +writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zg,y:null, +y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null} +}),dv=/^data[-\w.:]+$/i,pv=/-[a-z]/g,hv=/[A-Z]/g;function fv(e,t){const n=jg(t) +;let r=t,o=Ug;if(n in e.normal)return e.property[e.normal[n]] +;if(n.length>4&&"data"===n.slice(0,4)&&dv.test(t)){if("-"===t.charAt(4)){ +const e=t.slice(5).replace(pv,gv);r="data"+e.charAt(0).toUpperCase()+e.slice(1) +}else{const e=t.slice(4);if(!pv.test(e)){let n=e.replace(hv,mv) +;"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Jg}return new o(r,t)}function mv(e){ +return"-"+e.toLowerCase()}function gv(e){return e.charAt(1).toUpperCase()} +const vv=Qg([ov,rv,sv,lv,cv],"html"),bv=Qg([ov,rv,sv,lv,uv],"svg") +;function Ov(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,i=!1 +;for(;!i;){-1===r&&(r=n.length,i=!0);const e=n.slice(o,r).trim() +;!e&&i||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}function yv(e,t){ +const n=t||{} +;return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim() +}const wv=/[#.]/g +;const xv=new Set(["button","menu","reset","submit"]),kv={}.hasOwnProperty +;function Sv(e,t,n){const r=n&&function(e){const t={};let n=-1 +;for(;++n-1&&ee)return{ +line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){ +const t=e&&e.line,r=e&&e.column +;if("number"==typeof t&&"number"==typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){ +const e=(n[t-2]||0)+r-1||0;if(e>-1&&e=55296&&e<=57343}function ab(e){ +return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159} +function sb(e){return e>=64976&&e<=65007||Xv.has(e)}var lb,cb +;(cb=lb=lb||(lb={})).controlCharacterInInputStream="control-character-in-input-stream", +cb.noncharacterInInputStream="noncharacter-in-input-stream", +cb.surrogateInInputStream="surrogate-in-input-stream", +cb.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus", +cb.endTagWithAttributes="end-tag-with-attributes", +cb.endTagWithTrailingSolidus="end-tag-with-trailing-solidus", +cb.unexpectedSolidusInTag="unexpected-solidus-in-tag", +cb.unexpectedNullCharacter="unexpected-null-character", +cb.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name", +cb.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name", +cb.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name", +cb.missingEndTagName="missing-end-tag-name", +cb.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name", +cb.unknownNamedCharacterReference="unknown-named-character-reference", +cb.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference", +cb.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier", +cb.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value", +cb.eofBeforeTagName="eof-before-tag-name", +cb.eofInTag="eof-in-tag",cb.missingAttributeValue="missing-attribute-value", +cb.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes", +cb.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword", +cb.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers", +cb.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword", +cb.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier", +cb.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier", +cb.missingDoctypePublicIdentifier="missing-doctype-public-identifier", +cb.missingDoctypeSystemIdentifier="missing-doctype-system-identifier", +cb.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier", +cb.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier", +cb.cdataInHtmlContent="cdata-in-html-content", +cb.incorrectlyOpenedComment="incorrectly-opened-comment", +cb.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text", +cb.eofInDoctype="eof-in-doctype", +cb.nestedComment="nested-comment",cb.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment", +cb.eofInComment="eof-in-comment", +cb.incorrectlyClosedComment="incorrectly-closed-comment", +cb.eofInCdata="eof-in-cdata", +cb.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference", +cb.nullCharacterReference="null-character-reference", +cb.surrogateCharacterReference="surrogate-character-reference", +cb.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range", +cb.controlCharacterReference="control-character-reference", +cb.noncharacterCharacterReference="noncharacter-character-reference", +cb.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name", +cb.missingDoctypeName="missing-doctype-name", +cb.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name", +cb.duplicateAttribute="duplicate-attribute", +cb.nonConformingDoctype="non-conforming-doctype", +cb.missingDoctype="missing-doctype", +cb.misplacedDoctype="misplaced-doctype",cb.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element", +cb.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements", +cb.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head", +cb.openElementsLeftAfterEof="open-elements-left-after-eof", +cb.abandonedHeadElementChild="abandoned-head-element-child", +cb.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element", +cb.nestedNoscriptInHead="nested-noscript-in-head", +cb.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text" +;class ub{constructor(e){ +this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2, +this.gapStack=[],this.skipNextNewLine=!1, +this.lastChunkWritten=!1,this.endOfChunkHit=!1, +this.bufferWaterline=65536,this.isEol=!1, +this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1} +get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)} +get offset(){return this.droppedBufferSize+this.pos}getError(e){ +const{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t, +startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){ +this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset, +this.handler.onParseError(this.getError(e)))}_addGap(){ +this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos} +_processSurrogate(e){if(this.pos!==this.html.length-1){ +const t=this.html.charCodeAt(this.pos+1);if(function(e){ +return e>=56320&&e<=57343 +}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t +}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Gv.EOF +;return this._err(lb.surrogateInInputStream),e}willDropParsedChunk(){ +return this.pos>this.bufferWaterline}dropParsedChunk(){ +this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos), +this.lineStartPos-=this.pos, +this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2, +this.gapStack.length=0)}write(e,t){ +this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1, +this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){ +this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1), +this.endOfChunkHit=!1}startsWith(e,t){ +if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten, +!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Gv.EOF +;const n=this.html.charCodeAt(t);return n===Gv.CARRIAGE_RETURN?Gv.LINE_FEED:n} +advance(){ +if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos), +this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten, +Gv.EOF;let e=this.html.charCodeAt(this.pos) +;if(e===Gv.CARRIAGE_RETURN)return this.isEol=!0, +this.skipNextNewLine=!0,Gv.LINE_FEED +;if(e===Gv.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--, +this.skipNextNewLine=!1,this._addGap(),this.advance() +;this.skipNextNewLine=!1,ib(e)&&(e=this._processSurrogate(e)) +;return null===this.handler.onParseError||e>31&&e<127||e===Gv.LINE_FEED||e===Gv.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e), +e}_checkForProblematicCharacters(e){ +ab(e)?this._err(lb.controlCharacterInInputStream):sb(e)&&this._err(lb.noncharacterInInputStream) +}retreat(e){ +for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value +;return null} +(pb=db=db||(db={}))[pb.CHARACTER=0]="CHARACTER",pb[pb.NULL_CHARACTER=1]="NULL_CHARACTER", +pb[pb.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER", +pb[pb.START_TAG=3]="START_TAG", +pb[pb.END_TAG=4]="END_TAG",pb[pb.COMMENT=5]="COMMENT", +pb[pb.DOCTYPE=6]="DOCTYPE",pb[pb.EOF=7]="EOF",pb[pb.HIBERNATION=8]="HIBERNATION" +;const fb=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),mb=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0)))) +;var gb +;const vb=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),bb=null!==(gb=String.fromCodePoint)&&void 0!==gb?gb:function(e){ +let t="" +;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e), +t+=String.fromCharCode(e),t};var Ob,yb +;(yb=Ob||(Ob={}))[yb.NUM=35]="NUM",yb[yb.SEMI=59]="SEMI", +yb[yb.EQUALS=61]="EQUALS", +yb[yb.ZERO=48]="ZERO",yb[yb.NINE=57]="NINE",yb[yb.LOWER_A=97]="LOWER_A", +yb[yb.LOWER_F=102]="LOWER_F", +yb[yb.LOWER_X=120]="LOWER_X",yb[yb.LOWER_Z=122]="LOWER_Z", +yb[yb.UPPER_A=65]="UPPER_A", +yb[yb.UPPER_F=70]="UPPER_F",yb[yb.UPPER_Z=90]="UPPER_Z" +;var wb,xb,kb,Sb,_b,Eb,Tb,Cb,Ab,Pb,Db,$b,Rb,Nb,Ib,Mb;function Lb(e){ +return e>=Ob.ZERO&&e<=Ob.NINE}function Bb(e){return e===Ob.EQUALS||function(e){ +return e>=Ob.UPPER_A&&e<=Ob.UPPER_Z||e>=Ob.LOWER_A&&e<=Ob.LOWER_Z||Lb(e)}(e)} +(xb=wb||(wb={}))[xb.VALUE_LENGTH=49152]="VALUE_LENGTH", +xb[xb.BRANCH_LENGTH=16256]="BRANCH_LENGTH", +xb[xb.JUMP_TABLE=127]="JUMP_TABLE",(Sb=kb||(kb={}))[Sb.EntityStart=0]="EntityStart", +Sb[Sb.NumericStart=1]="NumericStart", +Sb[Sb.NumericDecimal=2]="NumericDecimal",Sb[Sb.NumericHex=3]="NumericHex", +Sb[Sb.NamedEntity=4]="NamedEntity", +(Eb=_b||(_b={}))[Eb.Legacy=0]="Legacy",Eb[Eb.Strict=1]="Strict", +Eb[Eb.Attribute=2]="Attribute";class Qb{constructor(e,t,n){ +this.decodeTree=e,this.emitCodePoint=t, +this.errors=n,this.state=kb.EntityStart,this.consumed=1, +this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_b.Strict} +startEntity(e){ +this.decodeMode=e,this.state=kb.EntityStart,this.result=0,this.treeIndex=0, +this.excess=1,this.consumed=1}write(e,t){switch(this.state){case kb.EntityStart: +return e.charCodeAt(t)===Ob.NUM?(this.state=kb.NumericStart, +this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=kb.NamedEntity, +this.stateNamedEntity(e,t));case kb.NumericStart: +return this.stateNumericStart(e,t);case kb.NumericDecimal: +return this.stateNumericDecimal(e,t);case kb.NumericHex: +return this.stateNumericHex(e,t);case kb.NamedEntity: +return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){ +return t>=e.length?-1:(32|e.charCodeAt(t))===Ob.LOWER_X?(this.state=kb.NumericHex, +this.consumed+=1, +this.stateNumericHex(e,t+1)):(this.state=kb.NumericDecimal,this.stateNumericDecimal(e,t)) +}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t +;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r), +this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t=Ob.UPPER_A&&r<=Ob.UPPER_F||r>=Ob.LOWER_A&&r<=Ob.LOWER_F)))return this.addToNumericResult(e,n,t,16), +this.emitNumericEntity(o,3);t+=1}var r;return this.addToNumericResult(e,n,t,16), +-1}stateNumericDecimal(e,t){const n=t;for(;t=55296&&e<=57343||e>1114111?65533:null!==(t=vb.get(e))&&void 0!==t?t:e +}(this.result),this.consumed), +this.errors&&(e!==Ob.SEMI&&this.errors.missingSemicolonAfterCharacterReference(), +this.errors.validateNumericCharacterReference(this.result)),this.consumed} +stateNamedEntity(e,t){const{decodeTree:n}=this +;let r=n[this.treeIndex],o=(r&wb.VALUE_LENGTH)>>14 +;for(;t>14,0!==o){ +if(i===Ob.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess) +;this.decodeMode!==_b.Strict&&(this.result=this.treeIndex, +this.consumed+=this.excess,this.excess=0)}}return-1} +emitNotTerminatedNamedEntity(){var e +;const{result:t,decodeTree:n}=this,r=(n[t]&wb.VALUE_LENGTH)>>14 +;return this.emitNamedEntityData(t,r,this.consumed), +null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(), +this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this +;return this.emitCodePoint(1===t?r[e]&~wb.VALUE_LENGTH:r[e+1],n), +3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){ +case kb.NamedEntity: +return 0===this.result||this.decodeMode===_b.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity() +;case kb.NumericDecimal:return this.emitNumericEntity(0,2);case kb.NumericHex: +return this.emitNumericEntity(0,3);case kb.NumericStart: +return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed), +0;case kb.EntityStart:return 0}}}function jb(e){let t="" +;const n=new Qb(e,(e=>t+=bb(e)));return function(e,r){let o=0,i=0 +;for(;(i=e.indexOf("&",i))>=0;){t+=e.slice(o,i),n.startEntity(r) +;const a=n.write(e,i+1);if(a<0){o=i+n.end();break}o=i+a,i=0===a?o+1:o} +const a=t+e.slice(o);return t="",a}}function Ub(e,t,n,r){ +const o=(t&wb.BRANCH_LENGTH)>>7,i=t&wb.JUMP_TABLE +;if(0===o)return 0!==i&&r===i?n:-1;if(i){const t=r-i +;return t<0||t>=o?-1:e[n+t]-1}let a=n,s=a+o-1;for(;a<=s;){const t=a+s>>>1,n=e[t] +;if(nr))return e[t+o];s=t-1}}return-1} +jb(fb),jb(mb),(Cb=Tb=Tb||(Tb={})).HTML="http://www.w3.org/1999/xhtml", +Cb.MATHML="http://www.w3.org/1998/Math/MathML", +Cb.SVG="http://www.w3.org/2000/svg", +Cb.XLINK="http://www.w3.org/1999/xlink",Cb.XML="http://www.w3.org/XML/1998/namespace", +Cb.XMLNS="http://www.w3.org/2000/xmlns/", +(Pb=Ab=Ab||(Ab={})).TYPE="type",Pb.ACTION="action", +Pb.ENCODING="encoding",Pb.PROMPT="prompt", +Pb.NAME="name",Pb.COLOR="color",Pb.FACE="face", +Pb.SIZE="size",($b=Db=Db||(Db={})).NO_QUIRKS="no-quirks", +$b.QUIRKS="quirks",$b.LIMITED_QUIRKS="limited-quirks",(Nb=Rb=Rb||(Rb={})).A="a", +Nb.ADDRESS="address", +Nb.ANNOTATION_XML="annotation-xml",Nb.APPLET="applet",Nb.AREA="area", +Nb.ARTICLE="article", +Nb.ASIDE="aside",Nb.B="b",Nb.BASE="base",Nb.BASEFONT="basefont", +Nb.BGSOUND="bgsound", +Nb.BIG="big",Nb.BLOCKQUOTE="blockquote",Nb.BODY="body",Nb.BR="br", +Nb.BUTTON="button", +Nb.CAPTION="caption",Nb.CENTER="center",Nb.CODE="code",Nb.COL="col", +Nb.COLGROUP="colgroup", +Nb.DD="dd",Nb.DESC="desc",Nb.DETAILS="details",Nb.DIALOG="dialog", +Nb.DIR="dir",Nb.DIV="div", +Nb.DL="dl",Nb.DT="dt",Nb.EM="em",Nb.EMBED="embed",Nb.FIELDSET="fieldset", +Nb.FIGCAPTION="figcaption",Nb.FIGURE="figure",Nb.FONT="font",Nb.FOOTER="footer", +Nb.FOREIGN_OBJECT="foreignObject", +Nb.FORM="form",Nb.FRAME="frame",Nb.FRAMESET="frameset", +Nb.H1="h1",Nb.H2="h2",Nb.H3="h3", +Nb.H4="h4",Nb.H5="h5",Nb.H6="h6",Nb.HEAD="head", +Nb.HEADER="header",Nb.HGROUP="hgroup", +Nb.HR="hr",Nb.HTML="html",Nb.I="i",Nb.IMG="img", +Nb.IMAGE="image",Nb.INPUT="input", +Nb.IFRAME="iframe",Nb.KEYGEN="keygen",Nb.LABEL="label", +Nb.LI="li",Nb.LINK="link", +Nb.LISTING="listing",Nb.MAIN="main",Nb.MALIGNMARK="malignmark", +Nb.MARQUEE="marquee", +Nb.MATH="math",Nb.MENU="menu",Nb.META="meta",Nb.MGLYPH="mglyph", +Nb.MI="mi",Nb.MO="mo", +Nb.MN="mn",Nb.MS="ms",Nb.MTEXT="mtext",Nb.NAV="nav",Nb.NOBR="nobr", +Nb.NOFRAMES="noframes", +Nb.NOEMBED="noembed",Nb.NOSCRIPT="noscript",Nb.OBJECT="object", +Nb.OL="ol",Nb.OPTGROUP="optgroup", +Nb.OPTION="option",Nb.P="p",Nb.PARAM="param",Nb.PLAINTEXT="plaintext", +Nb.PRE="pre", +Nb.RB="rb",Nb.RP="rp",Nb.RT="rt",Nb.RTC="rtc",Nb.RUBY="ruby",Nb.S="s", +Nb.SCRIPT="script", +Nb.SECTION="section",Nb.SELECT="select",Nb.SOURCE="source",Nb.SMALL="small", +Nb.SPAN="span", +Nb.STRIKE="strike",Nb.STRONG="strong",Nb.STYLE="style",Nb.SUB="sub", +Nb.SUMMARY="summary", +Nb.SUP="sup",Nb.TABLE="table",Nb.TBODY="tbody",Nb.TEMPLATE="template", +Nb.TEXTAREA="textarea", +Nb.TFOOT="tfoot",Nb.TD="td",Nb.TH="th",Nb.THEAD="thead",Nb.TITLE="title", +Nb.TR="tr", +Nb.TRACK="track",Nb.TT="tt",Nb.U="u",Nb.UL="ul",Nb.SVG="svg",Nb.VAR="var", +Nb.WBR="wbr", +Nb.XMP="xmp",(Mb=Ib=Ib||(Ib={}))[Mb.UNKNOWN=0]="UNKNOWN",Mb[Mb.A=1]="A", +Mb[Mb.ADDRESS=2]="ADDRESS", +Mb[Mb.ANNOTATION_XML=3]="ANNOTATION_XML",Mb[Mb.APPLET=4]="APPLET", +Mb[Mb.AREA=5]="AREA", +Mb[Mb.ARTICLE=6]="ARTICLE",Mb[Mb.ASIDE=7]="ASIDE",Mb[Mb.B=8]="B", +Mb[Mb.BASE=9]="BASE", +Mb[Mb.BASEFONT=10]="BASEFONT",Mb[Mb.BGSOUND=11]="BGSOUND",Mb[Mb.BIG=12]="BIG", +Mb[Mb.BLOCKQUOTE=13]="BLOCKQUOTE", +Mb[Mb.BODY=14]="BODY",Mb[Mb.BR=15]="BR",Mb[Mb.BUTTON=16]="BUTTON", +Mb[Mb.CAPTION=17]="CAPTION", +Mb[Mb.CENTER=18]="CENTER",Mb[Mb.CODE=19]="CODE",Mb[Mb.COL=20]="COL", +Mb[Mb.COLGROUP=21]="COLGROUP", +Mb[Mb.DD=22]="DD",Mb[Mb.DESC=23]="DESC",Mb[Mb.DETAILS=24]="DETAILS", +Mb[Mb.DIALOG=25]="DIALOG", +Mb[Mb.DIR=26]="DIR",Mb[Mb.DIV=27]="DIV",Mb[Mb.DL=28]="DL", +Mb[Mb.DT=29]="DT",Mb[Mb.EM=30]="EM", +Mb[Mb.EMBED=31]="EMBED",Mb[Mb.FIELDSET=32]="FIELDSET", +Mb[Mb.FIGCAPTION=33]="FIGCAPTION", +Mb[Mb.FIGURE=34]="FIGURE",Mb[Mb.FONT=35]="FONT", +Mb[Mb.FOOTER=36]="FOOTER",Mb[Mb.FOREIGN_OBJECT=37]="FOREIGN_OBJECT", +Mb[Mb.FORM=38]="FORM", +Mb[Mb.FRAME=39]="FRAME",Mb[Mb.FRAMESET=40]="FRAMESET",Mb[Mb.H1=41]="H1", +Mb[Mb.H2=42]="H2", +Mb[Mb.H3=43]="H3",Mb[Mb.H4=44]="H4",Mb[Mb.H5=45]="H5",Mb[Mb.H6=46]="H6", +Mb[Mb.HEAD=47]="HEAD", +Mb[Mb.HEADER=48]="HEADER",Mb[Mb.HGROUP=49]="HGROUP",Mb[Mb.HR=50]="HR", +Mb[Mb.HTML=51]="HTML", +Mb[Mb.I=52]="I",Mb[Mb.IMG=53]="IMG",Mb[Mb.IMAGE=54]="IMAGE", +Mb[Mb.INPUT=55]="INPUT", +Mb[Mb.IFRAME=56]="IFRAME",Mb[Mb.KEYGEN=57]="KEYGEN",Mb[Mb.LABEL=58]="LABEL", +Mb[Mb.LI=59]="LI", +Mb[Mb.LINK=60]="LINK",Mb[Mb.LISTING=61]="LISTING",Mb[Mb.MAIN=62]="MAIN", +Mb[Mb.MALIGNMARK=63]="MALIGNMARK", +Mb[Mb.MARQUEE=64]="MARQUEE",Mb[Mb.MATH=65]="MATH", +Mb[Mb.MENU=66]="MENU",Mb[Mb.META=67]="META", +Mb[Mb.MGLYPH=68]="MGLYPH",Mb[Mb.MI=69]="MI",Mb[Mb.MO=70]="MO",Mb[Mb.MN=71]="MN", +Mb[Mb.MS=72]="MS", +Mb[Mb.MTEXT=73]="MTEXT",Mb[Mb.NAV=74]="NAV",Mb[Mb.NOBR=75]="NOBR", +Mb[Mb.NOFRAMES=76]="NOFRAMES", +Mb[Mb.NOEMBED=77]="NOEMBED",Mb[Mb.NOSCRIPT=78]="NOSCRIPT", +Mb[Mb.OBJECT=79]="OBJECT", +Mb[Mb.OL=80]="OL",Mb[Mb.OPTGROUP=81]="OPTGROUP",Mb[Mb.OPTION=82]="OPTION", +Mb[Mb.P=83]="P", +Mb[Mb.PARAM=84]="PARAM",Mb[Mb.PLAINTEXT=85]="PLAINTEXT",Mb[Mb.PRE=86]="PRE", +Mb[Mb.RB=87]="RB", +Mb[Mb.RP=88]="RP",Mb[Mb.RT=89]="RT",Mb[Mb.RTC=90]="RTC",Mb[Mb.RUBY=91]="RUBY", +Mb[Mb.S=92]="S", +Mb[Mb.SCRIPT=93]="SCRIPT",Mb[Mb.SECTION=94]="SECTION",Mb[Mb.SELECT=95]="SELECT", +Mb[Mb.SOURCE=96]="SOURCE", +Mb[Mb.SMALL=97]="SMALL",Mb[Mb.SPAN=98]="SPAN",Mb[Mb.STRIKE=99]="STRIKE", +Mb[Mb.STRONG=100]="STRONG", +Mb[Mb.STYLE=101]="STYLE",Mb[Mb.SUB=102]="SUB",Mb[Mb.SUMMARY=103]="SUMMARY", +Mb[Mb.SUP=104]="SUP", +Mb[Mb.TABLE=105]="TABLE",Mb[Mb.TBODY=106]="TBODY",Mb[Mb.TEMPLATE=107]="TEMPLATE", +Mb[Mb.TEXTAREA=108]="TEXTAREA", +Mb[Mb.TFOOT=109]="TFOOT",Mb[Mb.TD=110]="TD",Mb[Mb.TH=111]="TH", +Mb[Mb.THEAD=112]="THEAD", +Mb[Mb.TITLE=113]="TITLE",Mb[Mb.TR=114]="TR",Mb[Mb.TRACK=115]="TRACK", +Mb[Mb.TT=116]="TT", +Mb[Mb.U=117]="U",Mb[Mb.UL=118]="UL",Mb[Mb.SVG=119]="SVG",Mb[Mb.VAR=120]="VAR", +Mb[Mb.WBR=121]="WBR",Mb[Mb.XMP=122]="XMP" +;const Fb=new Map([[Rb.A,Ib.A],[Rb.ADDRESS,Ib.ADDRESS],[Rb.ANNOTATION_XML,Ib.ANNOTATION_XML],[Rb.APPLET,Ib.APPLET],[Rb.AREA,Ib.AREA],[Rb.ARTICLE,Ib.ARTICLE],[Rb.ASIDE,Ib.ASIDE],[Rb.B,Ib.B],[Rb.BASE,Ib.BASE],[Rb.BASEFONT,Ib.BASEFONT],[Rb.BGSOUND,Ib.BGSOUND],[Rb.BIG,Ib.BIG],[Rb.BLOCKQUOTE,Ib.BLOCKQUOTE],[Rb.BODY,Ib.BODY],[Rb.BR,Ib.BR],[Rb.BUTTON,Ib.BUTTON],[Rb.CAPTION,Ib.CAPTION],[Rb.CENTER,Ib.CENTER],[Rb.CODE,Ib.CODE],[Rb.COL,Ib.COL],[Rb.COLGROUP,Ib.COLGROUP],[Rb.DD,Ib.DD],[Rb.DESC,Ib.DESC],[Rb.DETAILS,Ib.DETAILS],[Rb.DIALOG,Ib.DIALOG],[Rb.DIR,Ib.DIR],[Rb.DIV,Ib.DIV],[Rb.DL,Ib.DL],[Rb.DT,Ib.DT],[Rb.EM,Ib.EM],[Rb.EMBED,Ib.EMBED],[Rb.FIELDSET,Ib.FIELDSET],[Rb.FIGCAPTION,Ib.FIGCAPTION],[Rb.FIGURE,Ib.FIGURE],[Rb.FONT,Ib.FONT],[Rb.FOOTER,Ib.FOOTER],[Rb.FOREIGN_OBJECT,Ib.FOREIGN_OBJECT],[Rb.FORM,Ib.FORM],[Rb.FRAME,Ib.FRAME],[Rb.FRAMESET,Ib.FRAMESET],[Rb.H1,Ib.H1],[Rb.H2,Ib.H2],[Rb.H3,Ib.H3],[Rb.H4,Ib.H4],[Rb.H5,Ib.H5],[Rb.H6,Ib.H6],[Rb.HEAD,Ib.HEAD],[Rb.HEADER,Ib.HEADER],[Rb.HGROUP,Ib.HGROUP],[Rb.HR,Ib.HR],[Rb.HTML,Ib.HTML],[Rb.I,Ib.I],[Rb.IMG,Ib.IMG],[Rb.IMAGE,Ib.IMAGE],[Rb.INPUT,Ib.INPUT],[Rb.IFRAME,Ib.IFRAME],[Rb.KEYGEN,Ib.KEYGEN],[Rb.LABEL,Ib.LABEL],[Rb.LI,Ib.LI],[Rb.LINK,Ib.LINK],[Rb.LISTING,Ib.LISTING],[Rb.MAIN,Ib.MAIN],[Rb.MALIGNMARK,Ib.MALIGNMARK],[Rb.MARQUEE,Ib.MARQUEE],[Rb.MATH,Ib.MATH],[Rb.MENU,Ib.MENU],[Rb.META,Ib.META],[Rb.MGLYPH,Ib.MGLYPH],[Rb.MI,Ib.MI],[Rb.MO,Ib.MO],[Rb.MN,Ib.MN],[Rb.MS,Ib.MS],[Rb.MTEXT,Ib.MTEXT],[Rb.NAV,Ib.NAV],[Rb.NOBR,Ib.NOBR],[Rb.NOFRAMES,Ib.NOFRAMES],[Rb.NOEMBED,Ib.NOEMBED],[Rb.NOSCRIPT,Ib.NOSCRIPT],[Rb.OBJECT,Ib.OBJECT],[Rb.OL,Ib.OL],[Rb.OPTGROUP,Ib.OPTGROUP],[Rb.OPTION,Ib.OPTION],[Rb.P,Ib.P],[Rb.PARAM,Ib.PARAM],[Rb.PLAINTEXT,Ib.PLAINTEXT],[Rb.PRE,Ib.PRE],[Rb.RB,Ib.RB],[Rb.RP,Ib.RP],[Rb.RT,Ib.RT],[Rb.RTC,Ib.RTC],[Rb.RUBY,Ib.RUBY],[Rb.S,Ib.S],[Rb.SCRIPT,Ib.SCRIPT],[Rb.SECTION,Ib.SECTION],[Rb.SELECT,Ib.SELECT],[Rb.SOURCE,Ib.SOURCE],[Rb.SMALL,Ib.SMALL],[Rb.SPAN,Ib.SPAN],[Rb.STRIKE,Ib.STRIKE],[Rb.STRONG,Ib.STRONG],[Rb.STYLE,Ib.STYLE],[Rb.SUB,Ib.SUB],[Rb.SUMMARY,Ib.SUMMARY],[Rb.SUP,Ib.SUP],[Rb.TABLE,Ib.TABLE],[Rb.TBODY,Ib.TBODY],[Rb.TEMPLATE,Ib.TEMPLATE],[Rb.TEXTAREA,Ib.TEXTAREA],[Rb.TFOOT,Ib.TFOOT],[Rb.TD,Ib.TD],[Rb.TH,Ib.TH],[Rb.THEAD,Ib.THEAD],[Rb.TITLE,Ib.TITLE],[Rb.TR,Ib.TR],[Rb.TRACK,Ib.TRACK],[Rb.TT,Ib.TT],[Rb.U,Ib.U],[Rb.UL,Ib.UL],[Rb.SVG,Ib.SVG],[Rb.VAR,Ib.VAR],[Rb.WBR,Ib.WBR],[Rb.XMP,Ib.XMP]]) +;function qb(e){var t;return null!==(t=Fb.get(e))&&void 0!==t?t:Ib.UNKNOWN} +const zb=Ib,Hb={ +[Tb.HTML]:new Set([zb.ADDRESS,zb.APPLET,zb.AREA,zb.ARTICLE,zb.ASIDE,zb.BASE,zb.BASEFONT,zb.BGSOUND,zb.BLOCKQUOTE,zb.BODY,zb.BR,zb.BUTTON,zb.CAPTION,zb.CENTER,zb.COL,zb.COLGROUP,zb.DD,zb.DETAILS,zb.DIR,zb.DIV,zb.DL,zb.DT,zb.EMBED,zb.FIELDSET,zb.FIGCAPTION,zb.FIGURE,zb.FOOTER,zb.FORM,zb.FRAME,zb.FRAMESET,zb.H1,zb.H2,zb.H3,zb.H4,zb.H5,zb.H6,zb.HEAD,zb.HEADER,zb.HGROUP,zb.HR,zb.HTML,zb.IFRAME,zb.IMG,zb.INPUT,zb.LI,zb.LINK,zb.LISTING,zb.MAIN,zb.MARQUEE,zb.MENU,zb.META,zb.NAV,zb.NOEMBED,zb.NOFRAMES,zb.NOSCRIPT,zb.OBJECT,zb.OL,zb.P,zb.PARAM,zb.PLAINTEXT,zb.PRE,zb.SCRIPT,zb.SECTION,zb.SELECT,zb.SOURCE,zb.STYLE,zb.SUMMARY,zb.TABLE,zb.TBODY,zb.TD,zb.TEMPLATE,zb.TEXTAREA,zb.TFOOT,zb.TH,zb.THEAD,zb.TITLE,zb.TR,zb.TRACK,zb.UL,zb.WBR,zb.XMP]), +[Tb.MATHML]:new Set([zb.MI,zb.MO,zb.MN,zb.MS,zb.MTEXT,zb.ANNOTATION_XML]), +[Tb.SVG]:new Set([zb.TITLE,zb.FOREIGN_OBJECT,zb.DESC]),[Tb.XLINK]:new Set, +[Tb.XML]:new Set,[Tb.XMLNS]:new Set};function Zb(e){ +return e===zb.H1||e===zb.H2||e===zb.H3||e===zb.H4||e===zb.H5||e===zb.H6} +Rb.STYLE,Rb.SCRIPT,Rb.XMP,Rb.IFRAME,Rb.NOEMBED,Rb.NOFRAMES,Rb.PLAINTEXT +;const Vb=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]) +;var Wb,Xb +;(Xb=Wb||(Wb={}))[Xb.DATA=0]="DATA",Xb[Xb.RCDATA=1]="RCDATA",Xb[Xb.RAWTEXT=2]="RAWTEXT", +Xb[Xb.SCRIPT_DATA=3]="SCRIPT_DATA", +Xb[Xb.PLAINTEXT=4]="PLAINTEXT",Xb[Xb.TAG_OPEN=5]="TAG_OPEN", +Xb[Xb.END_TAG_OPEN=6]="END_TAG_OPEN", +Xb[Xb.TAG_NAME=7]="TAG_NAME",Xb[Xb.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN", +Xb[Xb.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN", +Xb[Xb.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME", +Xb[Xb.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN", +Xb[Xb.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN", +Xb[Xb.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME", +Xb[Xb.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN", +Xb[Xb.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN", +Xb[Xb.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME", +Xb[Xb.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START", +Xb[Xb.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH", +Xb[Xb.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED", +Xb[Xb.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH", +Xb[Xb.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH", +Xb[Xb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", +Xb[Xb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN", +Xb[Xb.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME", +Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START", +Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED", +Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH", +Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", +Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", +Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END", +Xb[Xb.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME", +Xb[Xb.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME", +Xb[Xb.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME", +Xb[Xb.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE", +Xb[Xb.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED", +Xb[Xb.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED", +Xb[Xb.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED", +Xb[Xb.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED", +Xb[Xb.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG", +Xb[Xb.BOGUS_COMMENT=40]="BOGUS_COMMENT", +Xb[Xb.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN", +Xb[Xb.COMMENT_START=42]="COMMENT_START", +Xb[Xb.COMMENT_START_DASH=43]="COMMENT_START_DASH", +Xb[Xb.COMMENT=44]="COMMENT",Xb[Xb.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN", +Xb[Xb.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG", +Xb[Xb.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH", +Xb[Xb.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", +Xb[Xb.COMMENT_END_DASH=49]="COMMENT_END_DASH", +Xb[Xb.COMMENT_END=50]="COMMENT_END", +Xb[Xb.COMMENT_END_BANG=51]="COMMENT_END_BANG", +Xb[Xb.DOCTYPE=52]="DOCTYPE",Xb[Xb.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME", +Xb[Xb.DOCTYPE_NAME=54]="DOCTYPE_NAME", +Xb[Xb.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME", +Xb[Xb.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD", +Xb[Xb.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", +Xb[Xb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", +Xb[Xb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", +Xb[Xb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER", +Xb[Xb.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", +Xb[Xb.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD", +Xb[Xb.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", +Xb[Xb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", +Xb[Xb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", +Xb[Xb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER", +Xb[Xb.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Xb[Xb.CDATA_SECTION=68]="CDATA_SECTION", +Xb[Xb.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET", +Xb[Xb.CDATA_SECTION_END=70]="CDATA_SECTION_END", +Xb[Xb.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE", +Xb[Xb.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE", +Xb[Xb.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND", +Xb[Xb.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE", +Xb[Xb.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START", +Xb[Xb.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE", +Xb[Xb.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE", +Xb[Xb.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END" +;const Yb={DATA:Wb.DATA,RCDATA:Wb.RCDATA,RAWTEXT:Wb.RAWTEXT, +SCRIPT_DATA:Wb.SCRIPT_DATA,PLAINTEXT:Wb.PLAINTEXT,CDATA_SECTION:Wb.CDATA_SECTION +};function Gb(e){return e>=Gv.DIGIT_0&&e<=Gv.DIGIT_9}function Kb(e){ +return e>=Gv.LATIN_CAPITAL_A&&e<=Gv.LATIN_CAPITAL_Z}function Jb(e){ +return function(e){return e>=Gv.LATIN_SMALL_A&&e<=Gv.LATIN_SMALL_Z}(e)||Kb(e)} +function eO(e){return Jb(e)||Gb(e)}function tO(e){ +return e>=Gv.LATIN_CAPITAL_A&&e<=Gv.LATIN_CAPITAL_F}function nO(e){ +return e>=Gv.LATIN_SMALL_A&&e<=Gv.LATIN_SMALL_F}function rO(e){return e+32} +function oO(e){ +return e===Gv.SPACE||e===Gv.LINE_FEED||e===Gv.TABULATION||e===Gv.FORM_FEED} +function iO(e){return oO(e)||e===Gv.SOLIDUS||e===Gv.GREATER_THAN_SIGN}class aO{ +constructor(e,t){ +this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1, +this.lastStartTagName="", +this.active=!1,this.state=Wb.DATA,this.returnState=Wb.DATA, +this.charRefCode=-1,this.consumedAfterSnapshot=-1, +this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={ +name:"",value:"" +},this.preprocessor=new ub(t),this.currentLocation=this.getCurrentLocation(-1)} +_err(e){var t,n +;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e)) +}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{ +startLine:this.preprocessor.line,startCol:this.preprocessor.col-e, +startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null} +_runParsingLoop(){if(!this.inLoop){ +for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0 +;const e=this._consume();this._ensureHibernation()||this._callState(e)} +this.inLoop=!1}}pause(){this.paused=!0}resume(e){ +if(!this.paused)throw new Error("Parser was already resumed") +;this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())} +write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(), +this.paused||null==n||n()}insertHtmlAtCurrentPos(e){ +this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e), +this._runParsingLoop()}_ensureHibernation(){ +return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot), +this.active=!1,!0)}_consume(){ +return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){ +this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)} +_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){ +this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(lb.endTagWithAttributes), +e.selfClosing&&this._err(lb.endTagWithTrailingSolidus), +this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()} +emitCurrentComment(e){ +this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk() +}emitCurrentDoctype(e){ +this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk() +}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){ +switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine, +this.currentCharacterToken.location.endCol=e.startCol, +this.currentCharacterToken.location.endOffset=e.startOffset), +this.currentCharacterToken.type){case db.CHARACTER: +this.handler.onCharacter(this.currentCharacterToken);break +;case db.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken) +;break;case db.WHITESPACE_CHARACTER: +this.handler.onWhitespaceCharacter(this.currentCharacterToken)} +this.currentCharacterToken=null}}_emitEOFToken(){ +const e=this.getCurrentLocation(0) +;e&&(e.endLine=e.startLine,e.endCol=e.startCol, +e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e), +this.handler.onEof({type:db.EOF,location:e}),this.active=!1} +_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){ +if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t) +;this.currentLocation=this.getCurrentLocation(0), +this._emitCurrentCharacterToken(this.currentLocation), +this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)} +_emitCodePoint(e){ +const t=oO(e)?db.WHITESPACE_CHARACTER:e===Gv.NULL?db.NULL_CHARACTER:db.CHARACTER +;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))} +_emitChars(e){this._appendCharToCurrentCharacterToken(db.CHARACTER,e)} +_matchNamedCharacterReference(e){let t=null,n=0,r=!1 +;for(let i=0,a=fb[0];i>=0&&(i=Ub(fb,a,i+1,e),!(i<0));e=this._consume()){ +n+=1,a=fb[i];const s=a&wb.VALUE_LENGTH;if(s){const a=(s>>14)-1 +;if(e!==Gv.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((o=this.preprocessor.peek(1))===Gv.EQUALS_SIGN||eO(o))?(t=[Gv.AMPERSAND], +i+=a):(t=0===a?[fb[i]&~wb.VALUE_LENGTH]:1===a?[fb[++i]]:[fb[++i],fb[++i]], +n=0,r=e!==Gv.SEMICOLON),0===a){this._consume();break}}}var o +;return this._unconsume(n), +r&&!this.preprocessor.endOfChunkHit&&this._err(lb.missingSemicolonAfterCharacterReference), +this._unconsume(1),t}_isCharacterReferenceInAttribute(){ +return this.returnState===Wb.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Wb.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Wb.ATTRIBUTE_VALUE_UNQUOTED +}_flushCodePointConsumedAsCharacterReference(e){ +this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e) +}_callState(e){switch(this.state){case Wb.DATA:this._stateData(e);break +;case Wb.RCDATA:this._stateRcdata(e);break;case Wb.RAWTEXT:this._stateRawtext(e) +;break;case Wb.SCRIPT_DATA:this._stateScriptData(e);break;case Wb.PLAINTEXT: +this._statePlaintext(e);break;case Wb.TAG_OPEN:this._stateTagOpen(e);break +;case Wb.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Wb.TAG_NAME: +this._stateTagName(e);break;case Wb.RCDATA_LESS_THAN_SIGN: +this._stateRcdataLessThanSign(e);break;case Wb.RCDATA_END_TAG_OPEN: +this._stateRcdataEndTagOpen(e);break;case Wb.RCDATA_END_TAG_NAME: +this._stateRcdataEndTagName(e);break;case Wb.RAWTEXT_LESS_THAN_SIGN: +this._stateRawtextLessThanSign(e);break;case Wb.RAWTEXT_END_TAG_OPEN: +this._stateRawtextEndTagOpen(e);break;case Wb.RAWTEXT_END_TAG_NAME: +this._stateRawtextEndTagName(e);break;case Wb.SCRIPT_DATA_LESS_THAN_SIGN: +this._stateScriptDataLessThanSign(e);break;case Wb.SCRIPT_DATA_END_TAG_OPEN: +this._stateScriptDataEndTagOpen(e);break;case Wb.SCRIPT_DATA_END_TAG_NAME: +this._stateScriptDataEndTagName(e);break;case Wb.SCRIPT_DATA_ESCAPE_START: +this._stateScriptDataEscapeStart(e);break;case Wb.SCRIPT_DATA_ESCAPE_START_DASH: +this._stateScriptDataEscapeStartDash(e);break;case Wb.SCRIPT_DATA_ESCAPED: +this._stateScriptDataEscaped(e);break;case Wb.SCRIPT_DATA_ESCAPED_DASH: +this._stateScriptDataEscapedDash(e);break;case Wb.SCRIPT_DATA_ESCAPED_DASH_DASH: +this._stateScriptDataEscapedDashDash(e);break +;case Wb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: +this._stateScriptDataEscapedLessThanSign(e);break +;case Wb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: +this._stateScriptDataEscapedEndTagOpen(e);break +;case Wb.SCRIPT_DATA_ESCAPED_END_TAG_NAME: +this._stateScriptDataEscapedEndTagName(e);break +;case Wb.SCRIPT_DATA_DOUBLE_ESCAPE_START: +this._stateScriptDataDoubleEscapeStart(e);break +;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break +;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: +this._stateScriptDataDoubleEscapedDash(e);break +;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: +this._stateScriptDataDoubleEscapedDashDash(e);break +;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: +this._stateScriptDataDoubleEscapedLessThanSign(e);break +;case Wb.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e) +;break;case Wb.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break +;case Wb.ATTRIBUTE_NAME:this._stateAttributeName(e);break +;case Wb.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break +;case Wb.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break +;case Wb.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e) +;break;case Wb.ATTRIBUTE_VALUE_SINGLE_QUOTED: +this._stateAttributeValueSingleQuoted(e);break;case Wb.ATTRIBUTE_VALUE_UNQUOTED: +this._stateAttributeValueUnquoted(e);break;case Wb.AFTER_ATTRIBUTE_VALUE_QUOTED: +this._stateAfterAttributeValueQuoted(e);break;case Wb.SELF_CLOSING_START_TAG: +this._stateSelfClosingStartTag(e);break;case Wb.BOGUS_COMMENT: +this._stateBogusComment(e);break;case Wb.MARKUP_DECLARATION_OPEN: +this._stateMarkupDeclarationOpen(e);break;case Wb.COMMENT_START: +this._stateCommentStart(e);break;case Wb.COMMENT_START_DASH: +this._stateCommentStartDash(e);break;case Wb.COMMENT:this._stateComment(e);break +;case Wb.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break +;case Wb.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break +;case Wb.COMMENT_LESS_THAN_SIGN_BANG_DASH: +this._stateCommentLessThanSignBangDash(e);break +;case Wb.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: +this._stateCommentLessThanSignBangDashDash(e);break;case Wb.COMMENT_END_DASH: +this._stateCommentEndDash(e);break;case Wb.COMMENT_END:this._stateCommentEnd(e) +;break;case Wb.COMMENT_END_BANG:this._stateCommentEndBang(e);break +;case Wb.DOCTYPE:this._stateDoctype(e);break;case Wb.BEFORE_DOCTYPE_NAME: +this._stateBeforeDoctypeName(e);break;case Wb.DOCTYPE_NAME: +this._stateDoctypeName(e);break;case Wb.AFTER_DOCTYPE_NAME: +this._stateAfterDoctypeName(e);break;case Wb.AFTER_DOCTYPE_PUBLIC_KEYWORD: +this._stateAfterDoctypePublicKeyword(e);break +;case Wb.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: +this._stateBeforeDoctypePublicIdentifier(e);break +;case Wb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: +this._stateDoctypePublicIdentifierDoubleQuoted(e);break +;case Wb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: +this._stateDoctypePublicIdentifierSingleQuoted(e);break +;case Wb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: +this._stateAfterDoctypePublicIdentifier(e);break +;case Wb.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: +this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break +;case Wb.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e) +;break;case Wb.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: +this._stateBeforeDoctypeSystemIdentifier(e);break +;case Wb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: +this._stateDoctypeSystemIdentifierDoubleQuoted(e);break +;case Wb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: +this._stateDoctypeSystemIdentifierSingleQuoted(e);break +;case Wb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: +this._stateAfterDoctypeSystemIdentifier(e);break;case Wb.BOGUS_DOCTYPE: +this._stateBogusDoctype(e);break;case Wb.CDATA_SECTION: +this._stateCdataSection(e);break;case Wb.CDATA_SECTION_BRACKET: +this._stateCdataSectionBracket(e);break;case Wb.CDATA_SECTION_END: +this._stateCdataSectionEnd(e);break;case Wb.CHARACTER_REFERENCE: +this._stateCharacterReference(e);break;case Wb.NAMED_CHARACTER_REFERENCE: +this._stateNamedCharacterReference(e);break;case Wb.AMBIGUOUS_AMPERSAND: +this._stateAmbiguousAmpersand(e);break;case Wb.NUMERIC_CHARACTER_REFERENCE: +this._stateNumericCharacterReference(e);break +;case Wb.HEXADEMICAL_CHARACTER_REFERENCE_START: +this._stateHexademicalCharacterReferenceStart(e);break +;case Wb.HEXADEMICAL_CHARACTER_REFERENCE: +this._stateHexademicalCharacterReference(e);break +;case Wb.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e) +;break;case Wb.NUMERIC_CHARACTER_REFERENCE_END: +this._stateNumericCharacterReferenceEnd(e);break;default: +throw new Error("Unknown state")}}_stateData(e){switch(e){ +case Gv.LESS_THAN_SIGN:this.state=Wb.TAG_OPEN;break;case Gv.AMPERSAND: +this.returnState=Wb.DATA,this.state=Wb.CHARACTER_REFERENCE;break;case Gv.NULL: +this._err(lb.unexpectedNullCharacter),this._emitCodePoint(e);break;case Gv.EOF: +this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){ +switch(e){case Gv.AMPERSAND: +this.returnState=Wb.RCDATA,this.state=Wb.CHARACTER_REFERENCE;break +;case Gv.LESS_THAN_SIGN:this.state=Wb.RCDATA_LESS_THAN_SIGN;break;case Gv.NULL: +this._err(lb.unexpectedNullCharacter),this._emitChars(Yv);break;case Gv.EOF: +this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){ +switch(e){case Gv.LESS_THAN_SIGN:this.state=Wb.RAWTEXT_LESS_THAN_SIGN;break +;case Gv.NULL:this._err(lb.unexpectedNullCharacter),this._emitChars(Yv);break +;case Gv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}} +_stateScriptData(e){switch(e){case Gv.LESS_THAN_SIGN: +this.state=Wb.SCRIPT_DATA_LESS_THAN_SIGN;break;case Gv.NULL: +this._err(lb.unexpectedNullCharacter),this._emitChars(Yv);break;case Gv.EOF: +this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){ +switch(e){case Gv.NULL:this._err(lb.unexpectedNullCharacter),this._emitChars(Yv) +;break;case Gv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}} +_stateTagOpen(e){ +if(Jb(e))this._createStartTagToken(),this.state=Wb.TAG_NAME,this._stateTagName(e);else switch(e){ +case Gv.EXCLAMATION_MARK:this.state=Wb.MARKUP_DECLARATION_OPEN;break +;case Gv.SOLIDUS:this.state=Wb.END_TAG_OPEN;break;case Gv.QUESTION_MARK: +this._err(lb.unexpectedQuestionMarkInsteadOfTagName), +this._createCommentToken(1), +this.state=Wb.BOGUS_COMMENT,this._stateBogusComment(e);break;case Gv.EOF: +this._err(lb.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break +;default: +this._err(lb.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Wb.DATA, +this._stateData(e)}}_stateEndTagOpen(e){ +if(Jb(e))this._createEndTagToken(),this.state=Wb.TAG_NAME, +this._stateTagName(e);else switch(e){case Gv.GREATER_THAN_SIGN: +this._err(lb.missingEndTagName),this.state=Wb.DATA;break;case Gv.EOF: +this._err(lb.eofBeforeTagName),this._emitChars("");break +;case Gv.NULL: +this._err(lb.unexpectedNullCharacter),this.state=Wb.SCRIPT_DATA_ESCAPED, +this._emitChars(Yv);break;case Gv.EOF: +this._err(lb.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default: +this.state=Wb.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}} +_stateScriptDataEscapedLessThanSign(e){ +e===Gv.SOLIDUS?this.state=Wb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Jb(e)?(this._emitChars("<"), +this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPE_START, +this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"), +this.state=Wb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))} +_stateScriptDataEscapedEndTagOpen(e){ +Jb(e)?(this.state=Wb.SCRIPT_DATA_ESCAPED_END_TAG_NAME, +this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("") +;break;case Gv.NULL: +this._err(lb.unexpectedNullCharacter),this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED, +this._emitChars(Yv);break;case Gv.EOF: +this._err(lb.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default: +this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}} +_stateScriptDataDoubleEscapedLessThanSign(e){ +e===Gv.SOLIDUS?(this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPE_END, +this._emitChars("/")):(this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED, +this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){ +if(this.preprocessor.startsWith(nb,!1)&&iO(this.preprocessor.peek(nb.length))){ +this._emitCodePoint(e) +;for(let e=0;e1114111)this._err(lb.characterReferenceOutsideUnicodeRange), +this.charRefCode=Gv.REPLACEMENT_CHARACTER;else if(ib(this.charRefCode))this._err(lb.surrogateCharacterReference), +this.charRefCode=Gv.REPLACEMENT_CHARACTER;else if(sb(this.charRefCode))this._err(lb.noncharacterCharacterReference);else if(ab(this.charRefCode)||this.charRefCode===Gv.CARRIAGE_RETURN){ +this._err(lb.controlCharacterReference);const e=Vb.get(this.charRefCode) +;void 0!==e&&(this.charRefCode=e)} +this._flushCodePointConsumedAsCharacterReference(this.charRefCode), +this._reconsumeInState(this.returnState,e)}} +const sO=new Set([Ib.DD,Ib.DT,Ib.LI,Ib.OPTGROUP,Ib.OPTION,Ib.P,Ib.RB,Ib.RP,Ib.RT,Ib.RTC]),lO=new Set([...sO,Ib.CAPTION,Ib.COLGROUP,Ib.TBODY,Ib.TD,Ib.TFOOT,Ib.TH,Ib.THEAD,Ib.TR]),cO=new Map([[Ib.APPLET,Tb.HTML],[Ib.CAPTION,Tb.HTML],[Ib.HTML,Tb.HTML],[Ib.MARQUEE,Tb.HTML],[Ib.OBJECT,Tb.HTML],[Ib.TABLE,Tb.HTML],[Ib.TD,Tb.HTML],[Ib.TEMPLATE,Tb.HTML],[Ib.TH,Tb.HTML],[Ib.ANNOTATION_XML,Tb.MATHML],[Ib.MI,Tb.MATHML],[Ib.MN,Tb.MATHML],[Ib.MO,Tb.MATHML],[Ib.MS,Tb.MATHML],[Ib.MTEXT,Tb.MATHML],[Ib.DESC,Tb.SVG],[Ib.FOREIGN_OBJECT,Tb.SVG],[Ib.TITLE,Tb.SVG]]),uO=[Ib.H1,Ib.H2,Ib.H3,Ib.H4,Ib.H5,Ib.H6],dO=[Ib.TR,Ib.TEMPLATE,Ib.HTML],pO=[Ib.TBODY,Ib.TFOOT,Ib.THEAD,Ib.TEMPLATE,Ib.HTML],hO=[Ib.TABLE,Ib.TEMPLATE,Ib.HTML],fO=[Ib.TD,Ib.TH] +;class mO{get currentTmplContentOrNode(){ +return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current +}constructor(e,t,n){ +this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1, +this.tmplCount=0,this.currentTagId=Ib.UNKNOWN,this.current=e}_indexOf(e){ +return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){ +return this.currentTagId===Ib.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Tb.HTML +}_updateCurrentElement(){ +this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop] +}push(e,t){ +this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t, +this.currentTagId=t, +this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){ +const e=this.current +;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--, +this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){ +const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)} +insertAfter(e,t,n){const r=this._indexOf(e)+1 +;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n), +this.stackTop++,r===this.stackTop&&this._updateCurrentElement(), +this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)} +popUntilTagNamePopped(e){let t=this.stackTop+1;do{ +t=this.tagIDs.lastIndexOf(e,t-1) +}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Tb.HTML) +;this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){ +const t=this.current +;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1), +this.stackTop--,this._updateCurrentElement(), +this.handler.onItemPop(t,this.stackTop=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n +;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t) +;this.shortenToLength(n+1)}clearBackToTableContext(){ +this.clearBackTo(hO,Tb.HTML)}clearBackToTableBodyContext(){ +this.clearBackTo(pO,Tb.HTML)}clearBackToTableRowContext(){ +this.clearBackTo(dO,Tb.HTML)}remove(e){const t=this._indexOf(e) +;t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1), +this.tagIDs.splice(t,1), +this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))} +tryPeekProperlyNestedBodyElement(){ +return this.stackTop>=1&&this.tagIDs[1]===Ib.BODY?this.items[1]:null} +contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){ +const t=this._indexOf(e)-1;return t>=0?this.items[t]:null} +isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Ib.HTML} +hasInScope(e){for(let t=this.stackTop;t>=0;t--){ +const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]) +;if(n===e&&r===Tb.HTML)return!0;if(cO.get(n)===r)return!1}return!0} +hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){ +const t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]) +;if(Zb(t)&&n===Tb.HTML)return!0;if(cO.get(t)===n)return!1}return!0} +hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){ +const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]) +;if(n===e&&r===Tb.HTML)return!0 +;if((n===Ib.UL||n===Ib.OL)&&r===Tb.HTML||cO.get(n)===r)return!1}return!0} +hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){ +const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]) +;if(n===e&&r===Tb.HTML)return!0 +;if(n===Ib.BUTTON&&r===Tb.HTML||cO.get(n)===r)return!1}return!0} +hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t] +;if(this.treeAdapter.getNamespaceURI(this.items[t])===Tb.HTML){if(n===e)return!0 +;if(n===Ib.TABLE||n===Ib.TEMPLATE||n===Ib.HTML)return!1}}return!0} +hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){ +const t=this.tagIDs[e] +;if(this.treeAdapter.getNamespaceURI(this.items[e])===Tb.HTML){ +if(t===Ib.TBODY||t===Ib.THEAD||t===Ib.TFOOT)return!0 +;if(t===Ib.TABLE||t===Ib.HTML)return!1}}return!0}hasInSelectScope(e){ +for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t] +;if(this.treeAdapter.getNamespaceURI(this.items[t])===Tb.HTML){if(n===e)return!0 +;if(n!==Ib.OPTION&&n!==Ib.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){ +for(;sO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){ +for(;lO.has(this.currentTagId);)this.pop()} +generateImpliedEndTagsWithExclusion(e){ +for(;this.currentTagId!==e&&lO.has(this.currentTagId);)this.pop()}}var gO,vO +;(vO=gO=gO||(gO={}))[vO.Marker=0]="Marker",vO[vO.Element=1]="Element";const bO={ +type:gO.Marker};class OO{constructor(e){ +this.treeAdapter=e,this.entries=[],this.bookmark=null} +_getNoahArkConditionCandidates(e,t){ +const n=[],r=t.length,o=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e) +;for(let a=0;a[e.name,e.value])));let o=0 +;for(let i=0;ir.get(e.name)===e.value))&&(o+=1, +o>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(bO)} +pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({ +type:gO.Element,element:e,token:t})}insertElementAfterBookmark(e,t){ +const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{ +type:gO.Element,element:e,token:t})}removeEntry(e){ +const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)} +clearToLastMarker(){const e=this.entries.indexOf(bO) +;e>=0?this.entries.splice(0,e+1):this.entries.length=0} +getElementEntryInScopeWithTagName(e){ +const t=this.entries.find((t=>t.type===gO.Marker||this.treeAdapter.getTagName(t.element)===e)) +;return t&&t.type===gO.Element?t:null}getElementEntry(e){ +return this.entries.find((t=>t.type===gO.Element&&t.element===e))}} +function yO(e){return{nodeName:"#text",value:e,parentNode:null}}const wO={ +createDocument:()=>({nodeName:"#document",mode:Db.NO_QUIRKS,childNodes:[]}), +createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}), +createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t, +childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment", +data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e}, +insertBefore(e,t,n){const r=e.childNodes.indexOf(n) +;e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t +},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){ +const o=e.childNodes.find((e=>"#documentType"===e.nodeName)) +;if(o)o.name=t,o.publicId=n,o.systemId=r;else{const o={nodeName:"#documentType", +name:t,publicId:n,systemId:r,parentNode:null};wO.appendChild(e,o)}}, +setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){ +if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e) +;e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){ +if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1] +;if(wO.isTextNode(n))return void(n.value+=t)}wO.appendChild(e,yO(t))}, +insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1] +;r&&wO.isTextNode(r)?r.value+=t:wO.insertBefore(e,yO(t),n)}, +adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name))) +;for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes, +getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName, +getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value, +getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name, +getDocumentTypeNodePublicId:e=>e.publicId, +getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName, +isCommentNode:e=>"#comment"===e.nodeName, +isDocumentTypeNode:e=>"#documentType"===e.nodeName, +isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"), +setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t}, +getNodeSourceCodeLocation:e=>e.sourceCodeLocation, +updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation, +...t}} +},xO="html",kO="about:legacy-compat",SO="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_O=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],EO=[..._O,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],TO=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),CO=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],AO=[...CO,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"] +;function PO(e,t){return t.some((t=>e.startsWith(t)))}const DO={ +TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml" +},$O="definitionurl",RO="definitionURL",NO=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),IO=new Map([["xlink:actuate",{ +prefix:"xlink",name:"actuate",namespace:Tb.XLINK}],["xlink:arcrole",{ +prefix:"xlink",name:"arcrole",namespace:Tb.XLINK}],["xlink:href",{ +prefix:"xlink",name:"href",namespace:Tb.XLINK}],["xlink:role",{prefix:"xlink", +name:"role",namespace:Tb.XLINK}],["xlink:show",{prefix:"xlink",name:"show", +namespace:Tb.XLINK}],["xlink:title",{prefix:"xlink",name:"title", +namespace:Tb.XLINK}],["xlink:type",{prefix:"xlink",name:"type", +namespace:Tb.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Tb.XML +}],["xml:lang",{prefix:"xml",name:"lang",namespace:Tb.XML}],["xml:space",{ +prefix:"xml",name:"space",namespace:Tb.XML}],["xmlns",{prefix:"",name:"xmlns", +namespace:Tb.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink", +namespace:Tb.XMLNS +}]]),MO=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),LO=new Set([Ib.B,Ib.BIG,Ib.BLOCKQUOTE,Ib.BODY,Ib.BR,Ib.CENTER,Ib.CODE,Ib.DD,Ib.DIV,Ib.DL,Ib.DT,Ib.EM,Ib.EMBED,Ib.H1,Ib.H2,Ib.H3,Ib.H4,Ib.H5,Ib.H6,Ib.HEAD,Ib.HR,Ib.I,Ib.IMG,Ib.LI,Ib.LISTING,Ib.MENU,Ib.META,Ib.NOBR,Ib.OL,Ib.P,Ib.PRE,Ib.RUBY,Ib.S,Ib.SMALL,Ib.SPAN,Ib.STRONG,Ib.STRIKE,Ib.SUB,Ib.SUP,Ib.TABLE,Ib.TT,Ib.U,Ib.UL,Ib.VAR]) +;function BO(e){for(let t=0;t0&&this._setContextModes(e,t)}onItemPop(e,t){ +var n,r +;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken), +null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current), +t){let e,t +;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext, +t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements), +this._setContextModes(e,t)}}_setContextModes(e,t){ +const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===Tb.HTML +;this.currentNotInHTML=!n, +this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)} +_switchToTextParsing(e,t){this._insertElement(e,Tb.HTML),this.tokenizer.state=t, +this.originalInsertionMode=this.insertionMode,this.insertionMode=HO.TEXT} +switchToPlaintextParsing(){ +this.insertionMode=HO.TEXT,this.originalInsertionMode=HO.IN_BODY, +this.tokenizer.state=Yb.PLAINTEXT}_getAdjustedCurrentElement(){ +return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current +}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){ +if(this.treeAdapter.getTagName(e)===Rb.FORM){this.formElement=e;break} +e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){ +if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Tb.HTML)switch(this.fragmentContextID){ +case Ib.TITLE:case Ib.TEXTAREA:this.tokenizer.state=Yb.RCDATA;break +;case Ib.STYLE:case Ib.XMP:case Ib.IFRAME:case Ib.NOEMBED:case Ib.NOFRAMES: +case Ib.NOSCRIPT:this.tokenizer.state=Yb.RAWTEXT;break;case Ib.SCRIPT: +this.tokenizer.state=Yb.SCRIPT_DATA;break;case Ib.PLAINTEXT: +this.tokenizer.state=Yb.PLAINTEXT}}_setDocumentType(e){ +const t=e.name||"",n=e.publicId||"",r=e.systemId||"" +;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){ +const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e))) +;t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}} +_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{ +...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)} +if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{ +const t=this.openElements.currentTmplContentOrNode +;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){ +const n=this.treeAdapter.createElement(e.tagName,t,e.attrs) +;this._attachElementToTree(n,e.location)}_insertElement(e,t){ +const n=this.treeAdapter.createElement(e.tagName,t,e.attrs) +;this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)} +_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Tb.HTML,[]) +;this._attachElementToTree(n,null),this.openElements.push(n,t)} +_insertTemplate(e){ +const t=this.treeAdapter.createElement(e.tagName,Tb.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment() +;this.treeAdapter.setTemplateContent(t,n), +this._attachElementToTree(t,e.location), +this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null) +}_insertFakeRootElement(){ +const e=this.treeAdapter.createElement(Rb.HTML,Tb.HTML,[]) +;this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null), +this.treeAdapter.appendChild(this.openElements.current,e), +this.openElements.push(e,Ib.HTML)}_appendCommentNode(e,t){ +const n=this.treeAdapter.createCommentNode(e.data) +;this.treeAdapter.appendChild(t,n), +this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location) +}_insertCharacters(e){let t,n +;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()), +n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode, +this.treeAdapter.insertText(t,e.chars)),!e.location)return +;const r=this.treeAdapter.getChildNodes(t),o=n?r.lastIndexOf(n):r.length,i=r[o-1] +;if(this.treeAdapter.getNodeSourceCodeLocation(i)){ +const{endLine:t,endCol:n,endOffset:r}=e.location +;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r +}) +}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location) +}_adoptNodes(e,t){ +for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n), +this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){ +if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){ +const n=t.location,r=this.treeAdapter.getTagName(e),o=t.type===db.END_TAG&&r===t.tagName?{ +endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{ +endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset} +;this.treeAdapter.updateNodeSourceCodeLocation(e,o)}} +shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1 +;let t,n +;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext, +n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements), +(e.tagID!==Ib.SVG||this.treeAdapter.getTagName(t)!==Rb.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Tb.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Ib.MGLYPH||e.tagID===Ib.MALIGNMARK)&&!this._isIntegrationPoint(n,t,Tb.HTML)) +}_processToken(e){switch(e.type){case db.CHARACTER:this.onCharacter(e);break +;case db.NULL_CHARACTER:this.onNullCharacter(e);break;case db.COMMENT: +this.onComment(e);break;case db.DOCTYPE:this.onDoctype(e);break +;case db.START_TAG:this._processStartTag(e);break;case db.END_TAG: +this.onEndTag(e);break;case db.EOF:this.onEof(e);break +;case db.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}} +_isIntegrationPoint(e,t,n){ +return UO(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n) +}_reconstructActiveFormattingElements(){ +const e=this.activeFormattingElements.entries.length;if(e){ +const t=this.activeFormattingElements.entries.findIndex((e=>e.type===gO.Marker||this.openElements.contains(e.element))) +;for(let n=t<0?e-1:t-1;n>=0;n--){ +const e=this.activeFormattingElements.entries[n] +;this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)), +e.element=this.openElements.current}}}_closeTableCell(){ +this.openElements.generateImpliedEndTags(), +this.openElements.popUntilTableCellPopped(), +this.activeFormattingElements.clearToLastMarker(),this.insertionMode=HO.IN_ROW} +_closePElement(){ +this.openElements.generateImpliedEndTagsWithExclusion(Ib.P),this.openElements.popUntilTagNamePopped(Ib.P) +}_resetInsertionMode(){ +for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){ +case Ib.TR:return void(this.insertionMode=HO.IN_ROW);case Ib.TBODY: +case Ib.THEAD:case Ib.TFOOT:return void(this.insertionMode=HO.IN_TABLE_BODY) +;case Ib.CAPTION:return void(this.insertionMode=HO.IN_CAPTION);case Ib.COLGROUP: +return void(this.insertionMode=HO.IN_COLUMN_GROUP);case Ib.TABLE: +return void(this.insertionMode=HO.IN_TABLE);case Ib.BODY: +return void(this.insertionMode=HO.IN_BODY);case Ib.FRAMESET: +return void(this.insertionMode=HO.IN_FRAMESET);case Ib.SELECT: +return void this._resetInsertionModeForSelect(e);case Ib.TEMPLATE: +return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Ib.HTML: +return void(this.insertionMode=this.headElement?HO.AFTER_HEAD:HO.BEFORE_HEAD) +;case Ib.TD:case Ib.TH:if(e>0)return void(this.insertionMode=HO.IN_CELL);break +;case Ib.HEAD:if(e>0)return void(this.insertionMode=HO.IN_HEAD)} +this.insertionMode=HO.IN_BODY}_resetInsertionModeForSelect(e){ +if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t] +;if(e===Ib.TEMPLATE)break +;if(e===Ib.TABLE)return void(this.insertionMode=HO.IN_SELECT_IN_TABLE)} +this.insertionMode=HO.IN_SELECT}_isElementCausesFosterParenting(e){ +return WO.has(e)}_shouldFosterParentOnInsertion(){ +return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId) +}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){ +const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){ +case Ib.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Tb.HTML)return{ +parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break +;case Ib.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n, +beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}} +return{parent:this.openElements.items[0],beforeElement:null}} +_fosterParentElement(e){const t=this._findFosterParentingLocation() +;t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e) +}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e) +;return Hb[n].has(t)}onCharacter(e){ +if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){ +e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){ +case HO.INITIAL:ay(this,e);break;case HO.BEFORE_HTML:sy(this,e);break +;case HO.BEFORE_HEAD:ly(this,e);break;case HO.IN_HEAD:dy(this,e);break +;case HO.IN_HEAD_NO_SCRIPT:py(this,e);break;case HO.AFTER_HEAD:hy(this,e);break +;case HO.IN_BODY:case HO.IN_CAPTION:case HO.IN_CELL:case HO.IN_TEMPLATE: +gy(this,e);break;case HO.TEXT:case HO.IN_SELECT:case HO.IN_SELECT_IN_TABLE: +this._insertCharacters(e);break;case HO.IN_TABLE:case HO.IN_TABLE_BODY: +case HO.IN_ROW:_y(this,e);break;case HO.IN_TABLE_TEXT:Py(this,e);break +;case HO.IN_COLUMN_GROUP:Ny(this,e);break;case HO.AFTER_BODY:qy(this,e);break +;case HO.AFTER_AFTER_BODY:zy(this,e)}}onNullCharacter(e){ +if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){ +t.chars=Yv,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){ +case HO.INITIAL:ay(this,e);break;case HO.BEFORE_HTML:sy(this,e);break +;case HO.BEFORE_HEAD:ly(this,e);break;case HO.IN_HEAD:dy(this,e);break +;case HO.IN_HEAD_NO_SCRIPT:py(this,e);break;case HO.AFTER_HEAD:hy(this,e);break +;case HO.TEXT:this._insertCharacters(e);break;case HO.IN_TABLE: +case HO.IN_TABLE_BODY:case HO.IN_ROW:_y(this,e);break;case HO.IN_COLUMN_GROUP: +Ny(this,e);break;case HO.AFTER_BODY:qy(this,e);break;case HO.AFTER_AFTER_BODY: +zy(this,e)}}onComment(e){ +if(this.skipNextNewLine=!1,this.currentNotInHTML)oy(this,e);else switch(this.insertionMode){ +case HO.INITIAL:case HO.BEFORE_HTML:case HO.BEFORE_HEAD:case HO.IN_HEAD: +case HO.IN_HEAD_NO_SCRIPT:case HO.AFTER_HEAD:case HO.IN_BODY:case HO.IN_TABLE: +case HO.IN_CAPTION:case HO.IN_COLUMN_GROUP:case HO.IN_TABLE_BODY:case HO.IN_ROW: +case HO.IN_CELL:case HO.IN_SELECT:case HO.IN_SELECT_IN_TABLE: +case HO.IN_TEMPLATE:case HO.IN_FRAMESET:case HO.AFTER_FRAMESET:oy(this,e);break +;case HO.IN_TABLE_TEXT:Dy(this,e);break;case HO.AFTER_BODY:!function(e,t){ +e._appendCommentNode(t,e.openElements.items[0])}(this,e);break +;case HO.AFTER_AFTER_BODY:case HO.AFTER_AFTER_FRAMESET:!function(e,t){ +e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){ +switch(this.skipNextNewLine=!1,this.insertionMode){case HO.INITIAL: +!function(e,t){e._setDocumentType(t) +;const n=t.forceQuirks?Db.QUIRKS:function(e){if(e.name!==xO)return Db.QUIRKS +;const{systemId:t}=e;if(t&&t.toLowerCase()===SO)return Db.QUIRKS +;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),TO.has(n))return Db.QUIRKS +;let e=null===t?EO:_O;if(PO(n,e))return Db.QUIRKS +;if(e=null===t?CO:AO,PO(n,e))return Db.LIMITED_QUIRKS}return Db.NO_QUIRKS}(t) +;(function(e){ +return e.name===xO&&null===e.publicId&&(null===e.systemId||e.systemId===kO) +})(t)||e._err(t,lb.nonConformingDoctype) +;e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=HO.BEFORE_HTML +}(this,e);break;case HO.BEFORE_HEAD:case HO.IN_HEAD:case HO.IN_HEAD_NO_SCRIPT: +case HO.AFTER_HEAD:this._err(e,lb.misplacedDoctype);break;case HO.IN_TABLE_TEXT: +Dy(this,e)}}onStartTag(e){ +this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e), +e.selfClosing&&!e.ackSelfClosing&&this._err(e,lb.nonVoidHtmlElementStartTagWithTrailingSolidus) +}_processStartTag(e){ +this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){ +const t=e.tagID +;return t===Ib.FONT&&e.attrs.some((({name:e})=>e===Ab.COLOR||e===Ab.SIZE||e===Ab.FACE))||LO.has(t) +}(t))Hy(e),e._startTagOutsideForeignContent(t);else{ +const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n) +;r===Tb.MATHML?BO(t):r===Tb.SVG&&(!function(e){const t=MO.get(e.tagName) +;null!=t&&(e.tagName=t,e.tagID=qb(e.tagName)) +}(t),QO(t)),jO(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r), +t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)} +_startTagOutsideForeignContent(e){switch(this.insertionMode){case HO.INITIAL: +ay(this,e);break;case HO.BEFORE_HTML:!function(e,t){ +t.tagID===Ib.HTML?(e._insertElement(t,Tb.HTML), +e.insertionMode=HO.BEFORE_HEAD):sy(e,t)}(this,e);break;case HO.BEFORE_HEAD: +!function(e,t){switch(t.tagID){case Ib.HTML:wy(e,t);break;case Ib.HEAD: +e._insertElement(t,Tb.HTML), +e.headElement=e.openElements.current,e.insertionMode=HO.IN_HEAD;break;default: +ly(e,t)}}(this,e);break;case HO.IN_HEAD:cy(this,e);break +;case HO.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Ib.HTML:wy(e,t) +;break;case Ib.BASEFONT:case Ib.BGSOUND:case Ib.HEAD:case Ib.LINK:case Ib.META: +case Ib.NOFRAMES:case Ib.STYLE:cy(e,t);break;case Ib.NOSCRIPT: +e._err(t,lb.nestedNoscriptInHead);break;default:py(e,t)}}(this,e);break +;case HO.AFTER_HEAD:!function(e,t){switch(t.tagID){case Ib.HTML:wy(e,t);break +;case Ib.BODY: +e._insertElement(t,Tb.HTML),e.framesetOk=!1,e.insertionMode=HO.IN_BODY;break +;case Ib.FRAMESET:e._insertElement(t,Tb.HTML),e.insertionMode=HO.IN_FRAMESET +;break;case Ib.BASE:case Ib.BASEFONT:case Ib.BGSOUND:case Ib.LINK:case Ib.META: +case Ib.NOFRAMES:case Ib.SCRIPT:case Ib.STYLE:case Ib.TEMPLATE:case Ib.TITLE: +e._err(t,lb.abandonedHeadElementChild), +e.openElements.push(e.headElement,Ib.HEAD), +cy(e,t),e.openElements.remove(e.headElement);break;case Ib.HEAD: +e._err(t,lb.misplacedStartTagForHeadElement);break;default:hy(e,t)}}(this,e) +;break;case HO.IN_BODY:wy(this,e);break;case HO.IN_TABLE:Ey(this,e);break +;case HO.IN_TABLE_TEXT:Dy(this,e);break;case HO.IN_CAPTION:!function(e,t){ +const n=t.tagID +;$y.has(n)?e.openElements.hasInTableScope(Ib.CAPTION)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(Ib.CAPTION), +e.activeFormattingElements.clearToLastMarker(), +e.insertionMode=HO.IN_TABLE,Ey(e,t)):wy(e,t)}(this,e);break +;case HO.IN_COLUMN_GROUP:Ry(this,e);break;case HO.IN_TABLE_BODY:Iy(this,e);break +;case HO.IN_ROW:Ly(this,e);break;case HO.IN_CELL:!function(e,t){const n=t.tagID +;$y.has(n)?(e.openElements.hasInTableScope(Ib.TD)||e.openElements.hasInTableScope(Ib.TH))&&(e._closeTableCell(), +Ly(e,t)):wy(e,t)}(this,e);break;case HO.IN_SELECT:Qy(this,e);break +;case HO.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID +;n===Ib.CAPTION||n===Ib.TABLE||n===Ib.TBODY||n===Ib.TFOOT||n===Ib.THEAD||n===Ib.TR||n===Ib.TD||n===Ib.TH?(e.openElements.popUntilTagNamePopped(Ib.SELECT), +e._resetInsertionMode(),e._processStartTag(t)):Qy(e,t)}(this,e);break +;case HO.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Ib.BASE: +case Ib.BASEFONT:case Ib.BGSOUND:case Ib.LINK:case Ib.META:case Ib.NOFRAMES: +case Ib.SCRIPT:case Ib.STYLE:case Ib.TEMPLATE:case Ib.TITLE:cy(e,t);break +;case Ib.CAPTION:case Ib.COLGROUP:case Ib.TBODY:case Ib.TFOOT:case Ib.THEAD: +e.tmplInsertionModeStack[0]=HO.IN_TABLE,e.insertionMode=HO.IN_TABLE,Ey(e,t) +;break;case Ib.COL: +e.tmplInsertionModeStack[0]=HO.IN_COLUMN_GROUP,e.insertionMode=HO.IN_COLUMN_GROUP, +Ry(e,t);break;case Ib.TR: +e.tmplInsertionModeStack[0]=HO.IN_TABLE_BODY,e.insertionMode=HO.IN_TABLE_BODY, +Iy(e,t);break;case Ib.TD:case Ib.TH: +e.tmplInsertionModeStack[0]=HO.IN_ROW,e.insertionMode=HO.IN_ROW,Ly(e,t);break +;default: +e.tmplInsertionModeStack[0]=HO.IN_BODY,e.insertionMode=HO.IN_BODY,wy(e,t)} +}(this,e);break;case HO.AFTER_BODY:!function(e,t){ +t.tagID===Ib.HTML?wy(e,t):qy(e,t)}(this,e);break;case HO.IN_FRAMESET: +!function(e,t){switch(t.tagID){case Ib.HTML:wy(e,t);break;case Ib.FRAMESET: +e._insertElement(t,Tb.HTML);break;case Ib.FRAME: +e._appendElement(t,Tb.HTML),t.ackSelfClosing=!0;break;case Ib.NOFRAMES:cy(e,t)} +}(this,e);break;case HO.AFTER_FRAMESET:!function(e,t){switch(t.tagID){ +case Ib.HTML:wy(e,t);break;case Ib.NOFRAMES:cy(e,t)}}(this,e);break +;case HO.AFTER_AFTER_BODY:!function(e,t){t.tagID===Ib.HTML?wy(e,t):zy(e,t) +}(this,e);break;case HO.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){ +case Ib.HTML:wy(e,t);break;case Ib.NOFRAMES:cy(e,t)}}(this,e)}}onEndTag(e){ +this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){ +if(t.tagID===Ib.P||t.tagID===Ib.BR)return Hy(e), +void e._endTagOutsideForeignContent(t) +;for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n] +;if(e.treeAdapter.getNamespaceURI(r)===Tb.HTML){ +e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r) +;if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n) +;break}}}(this,e):this._endTagOutsideForeignContent(e)} +_endTagOutsideForeignContent(e){switch(this.insertionMode){case HO.INITIAL: +ay(this,e);break;case HO.BEFORE_HTML:!function(e,t){const n=t.tagID +;n!==Ib.HTML&&n!==Ib.HEAD&&n!==Ib.BODY&&n!==Ib.BR||sy(e,t)}(this,e);break +;case HO.BEFORE_HEAD:!function(e,t){const n=t.tagID +;n===Ib.HEAD||n===Ib.BODY||n===Ib.HTML||n===Ib.BR?ly(e,t):e._err(t,lb.endTagWithoutMatchingOpenElement) +}(this,e);break;case HO.IN_HEAD:!function(e,t){switch(t.tagID){case Ib.HEAD: +e.openElements.pop(),e.insertionMode=HO.AFTER_HEAD;break;case Ib.BODY: +case Ib.BR:case Ib.HTML:dy(e,t);break;case Ib.TEMPLATE:uy(e,t);break;default: +e._err(t,lb.endTagWithoutMatchingOpenElement)}}(this,e);break +;case HO.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Ib.NOSCRIPT: +e.openElements.pop(),e.insertionMode=HO.IN_HEAD;break;case Ib.BR:py(e,t);break +;default:e._err(t,lb.endTagWithoutMatchingOpenElement)}}(this,e);break +;case HO.AFTER_HEAD:!function(e,t){switch(t.tagID){case Ib.BODY:case Ib.HTML: +case Ib.BR:hy(e,t);break;case Ib.TEMPLATE:uy(e,t);break;default: +e._err(t,lb.endTagWithoutMatchingOpenElement)}}(this,e);break;case HO.IN_BODY: +ky(this,e);break;case HO.TEXT:!function(e,t){var n +;t.tagID===Ib.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current)) +;e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break +;case HO.IN_TABLE:Ty(this,e);break;case HO.IN_TABLE_TEXT:Dy(this,e);break +;case HO.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Ib.CAPTION: +case Ib.TABLE: +e.openElements.hasInTableScope(Ib.CAPTION)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(Ib.CAPTION), +e.activeFormattingElements.clearToLastMarker(), +e.insertionMode=HO.IN_TABLE,n===Ib.TABLE&&Ty(e,t));break;case Ib.BODY: +case Ib.COL:case Ib.COLGROUP:case Ib.HTML:case Ib.TBODY:case Ib.TD: +case Ib.TFOOT:case Ib.TH:case Ib.THEAD:case Ib.TR:break;default:ky(e,t)} +}(this,e);break;case HO.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){ +case Ib.COLGROUP: +e.openElements.currentTagId===Ib.COLGROUP&&(e.openElements.pop(), +e.insertionMode=HO.IN_TABLE);break;case Ib.TEMPLATE:uy(e,t);break;case Ib.COL: +break;default:Ny(e,t)}}(this,e);break;case HO.IN_TABLE_BODY:My(this,e);break +;case HO.IN_ROW:By(this,e);break;case HO.IN_CELL:!function(e,t){const n=t.tagID +;switch(n){case Ib.TD:case Ib.TH: +e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(n), +e.activeFormattingElements.clearToLastMarker(),e.insertionMode=HO.IN_ROW);break +;case Ib.TABLE:case Ib.TBODY:case Ib.TFOOT:case Ib.THEAD:case Ib.TR: +e.openElements.hasInTableScope(n)&&(e._closeTableCell(),By(e,t));break +;case Ib.BODY:case Ib.CAPTION:case Ib.COL:case Ib.COLGROUP:case Ib.HTML:break +;default:ky(e,t)}}(this,e);break;case HO.IN_SELECT:jy(this,e);break +;case HO.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID +;n===Ib.CAPTION||n===Ib.TABLE||n===Ib.TBODY||n===Ib.TFOOT||n===Ib.THEAD||n===Ib.TR||n===Ib.TD||n===Ib.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Ib.SELECT), +e._resetInsertionMode(),e.onEndTag(t)):jy(e,t)}(this,e);break +;case HO.IN_TEMPLATE:!function(e,t){t.tagID===Ib.TEMPLATE&&uy(e,t)}(this,e) +;break;case HO.AFTER_BODY:Fy(this,e);break;case HO.IN_FRAMESET:!function(e,t){ +t.tagID!==Ib.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(), +e.fragmentContext||e.openElements.currentTagId===Ib.FRAMESET||(e.insertionMode=HO.AFTER_FRAMESET)) +}(this,e);break;case HO.AFTER_FRAMESET:!function(e,t){ +t.tagID===Ib.HTML&&(e.insertionMode=HO.AFTER_AFTER_FRAMESET)}(this,e);break +;case HO.AFTER_AFTER_BODY:zy(this,e)}}onEof(e){switch(this.insertionMode){ +case HO.INITIAL:ay(this,e);break;case HO.BEFORE_HTML:sy(this,e);break +;case HO.BEFORE_HEAD:ly(this,e);break;case HO.IN_HEAD:dy(this,e);break +;case HO.IN_HEAD_NO_SCRIPT:py(this,e);break;case HO.AFTER_HEAD:hy(this,e);break +;case HO.IN_BODY:case HO.IN_TABLE:case HO.IN_CAPTION:case HO.IN_COLUMN_GROUP: +case HO.IN_TABLE_BODY:case HO.IN_ROW:case HO.IN_CELL:case HO.IN_SELECT: +case HO.IN_SELECT_IN_TABLE:Sy(this,e);break;case HO.TEXT:!function(e,t){ +e._err(t,lb.eofInElementThatCanContainOnlyText), +e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e) +;break;case HO.IN_TABLE_TEXT:Dy(this,e);break;case HO.IN_TEMPLATE:Uy(this,e) +;break;case HO.AFTER_BODY:case HO.IN_FRAMESET:case HO.AFTER_FRAMESET: +case HO.AFTER_AFTER_BODY:case HO.AFTER_AFTER_FRAMESET:iy(this,e)}} +onWhitespaceCharacter(e){ +if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Gv.LINE_FEED)){ +if(1===e.chars.length)return;e.chars=e.chars.substr(1)} +if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){ +case HO.IN_HEAD:case HO.IN_HEAD_NO_SCRIPT:case HO.AFTER_HEAD:case HO.TEXT: +case HO.IN_COLUMN_GROUP:case HO.IN_SELECT:case HO.IN_SELECT_IN_TABLE: +case HO.IN_FRAMESET:case HO.AFTER_FRAMESET:this._insertCharacters(e);break +;case HO.IN_BODY:case HO.IN_CAPTION:case HO.IN_CELL:case HO.IN_TEMPLATE: +case HO.AFTER_BODY:case HO.AFTER_AFTER_BODY:case HO.AFTER_AFTER_FRAMESET: +my(this,e);break;case HO.IN_TABLE:case HO.IN_TABLE_BODY:case HO.IN_ROW: +_y(this,e);break;case HO.IN_TABLE_TEXT:Ay(this,e)}}};function GO(e,t){ +let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName) +;return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n), +n=null):xy(e,t),n}function KO(e,t){let n=null,r=e.openElements.stackTop +;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break +;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)} +return n||(e.openElements.shortenToLength(r<0?0:r), +e.activeFormattingElements.removeEntry(t)),n}function JO(e,t,n){ +let r=t,o=e.openElements.getCommonAncestor(t);for(let i=0,a=o;a!==n;i++,a=o){ +o=e.openElements.getCommonAncestor(a) +;const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=zO +;!n||s?(s&&e.activeFormattingElements.removeEntry(n), +e.openElements.remove(a)):(a=ey(e,n), +r===t&&(e.activeFormattingElements.bookmark=n), +e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r} +function ey(e,t){ +const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs) +;return e.openElements.replace(t.element,r),t.element=r,r}function ty(e,t,n){ +const r=qb(e.treeAdapter.getTagName(t)) +;if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{ +const o=e.treeAdapter.getNamespaceURI(t) +;r===Ib.TEMPLATE&&o===Tb.HTML&&(t=e.treeAdapter.getTemplateContent(t)), +e.treeAdapter.appendChild(t,n)}}function ny(e,t,n){ +const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,i=e.treeAdapter.createElement(o.tagName,r,o.attrs) +;e._adoptNodes(t,i), +e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,o), +e.activeFormattingElements.removeEntry(n), +e.openElements.remove(n.element),e.openElements.insertAfter(t,i,o.tagID)} +function ry(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t) +;if(!e.fragmentContext&&e.openElements.stackTop>=0){ +const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n) +;if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){ +const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n) +;r&&!r.endTag&&e._setEndLocation(n,t)}}}}function ay(e,t){ +e._err(t,lb.missingDoctype,!0), +e.treeAdapter.setDocumentMode(e.document,Db.QUIRKS), +e.insertionMode=HO.BEFORE_HTML,e._processToken(t)}function sy(e,t){ +e._insertFakeRootElement(),e.insertionMode=HO.BEFORE_HEAD,e._processToken(t)} +function ly(e,t){ +e._insertFakeElement(Rb.HEAD,Ib.HEAD),e.headElement=e.openElements.current, +e.insertionMode=HO.IN_HEAD,e._processToken(t)}function cy(e,t){switch(t.tagID){ +case Ib.HTML:wy(e,t);break;case Ib.BASE:case Ib.BASEFONT:case Ib.BGSOUND: +case Ib.LINK:case Ib.META:e._appendElement(t,Tb.HTML),t.ackSelfClosing=!0;break +;case Ib.TITLE:e._switchToTextParsing(t,Yb.RCDATA);break;case Ib.NOSCRIPT: +e.options.scriptingEnabled?e._switchToTextParsing(t,Yb.RAWTEXT):(e._insertElement(t,Tb.HTML), +e.insertionMode=HO.IN_HEAD_NO_SCRIPT);break;case Ib.NOFRAMES:case Ib.STYLE: +e._switchToTextParsing(t,Yb.RAWTEXT);break;case Ib.SCRIPT: +e._switchToTextParsing(t,Yb.SCRIPT_DATA);break;case Ib.TEMPLATE: +e._insertTemplate(t), +e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=HO.IN_TEMPLATE, +e.tmplInsertionModeStack.unshift(HO.IN_TEMPLATE);break;case Ib.HEAD: +e._err(t,lb.misplacedStartTagForHeadElement);break;default:dy(e,t)}} +function uy(e,t){ +e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(), +e.openElements.currentTagId!==Ib.TEMPLATE&&e._err(t,lb.closingOfElementWithOpenChildElements), +e.openElements.popUntilTagNamePopped(Ib.TEMPLATE), +e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(), +e._resetInsertionMode()):e._err(t,lb.endTagWithoutMatchingOpenElement)} +function dy(e,t){ +e.openElements.pop(),e.insertionMode=HO.AFTER_HEAD,e._processToken(t)} +function py(e,t){ +const n=t.type===db.EOF?lb.openElementsLeftAfterEof:lb.disallowedContentInNoscriptInHead +;e._err(t,n),e.openElements.pop(),e.insertionMode=HO.IN_HEAD,e._processToken(t)} +function hy(e,t){ +e._insertFakeElement(Rb.BODY,Ib.BODY),e.insertionMode=HO.IN_BODY,fy(e,t)} +function fy(e,t){switch(t.type){case db.CHARACTER:gy(e,t);break +;case db.WHITESPACE_CHARACTER:my(e,t);break;case db.COMMENT:oy(e,t);break +;case db.START_TAG:wy(e,t);break;case db.END_TAG:ky(e,t);break;case db.EOF: +Sy(e,t)}}function my(e,t){ +e._reconstructActiveFormattingElements(),e._insertCharacters(t)} +function gy(e,t){ +e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1} +function vy(e,t){ +e._reconstructActiveFormattingElements(),e._appendElement(t,Tb.HTML), +e.framesetOk=!1,t.ackSelfClosing=!0}function by(e){const t=hb(e,Ab.TYPE) +;return null!=t&&t.toLowerCase()===FO}function Oy(e,t){ +e._switchToTextParsing(t,Yb.RAWTEXT)}function yy(e,t){ +e._reconstructActiveFormattingElements(),e._insertElement(t,Tb.HTML)} +function wy(e,t){switch(t.tagID){case Ib.I:case Ib.S:case Ib.B:case Ib.U: +case Ib.EM:case Ib.TT:case Ib.BIG:case Ib.CODE:case Ib.FONT:case Ib.SMALL: +case Ib.STRIKE:case Ib.STRONG:!function(e,t){ +e._reconstructActiveFormattingElements(), +e._insertElement(t,Tb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t) +}(e,t);break;case Ib.A:!function(e,t){ +const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Rb.A) +;n&&(ry(e,t), +e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)), +e._reconstructActiveFormattingElements(), +e._insertElement(t,Tb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t) +}(e,t);break;case Ib.H1:case Ib.H2:case Ib.H3:case Ib.H4:case Ib.H5:case Ib.H6: +!function(e,t){ +e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),Zb(e.openElements.currentTagId)&&e.openElements.pop(), +e._insertElement(t,Tb.HTML)}(e,t);break;case Ib.P:case Ib.DL:case Ib.OL: +case Ib.UL:case Ib.DIV:case Ib.DIR:case Ib.NAV:case Ib.MAIN:case Ib.MENU: +case Ib.ASIDE:case Ib.CENTER:case Ib.FIGURE:case Ib.FOOTER:case Ib.HEADER: +case Ib.HGROUP:case Ib.DIALOG:case Ib.DETAILS:case Ib.ADDRESS:case Ib.ARTICLE: +case Ib.SECTION:case Ib.SUMMARY:case Ib.FIELDSET:case Ib.BLOCKQUOTE: +case Ib.FIGCAPTION:!function(e,t){ +e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(), +e._insertElement(t,Tb.HTML)}(e,t);break;case Ib.LI:case Ib.DD:case Ib.DT: +!function(e,t){e.framesetOk=!1;const n=t.tagID +;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r] +;if(n===Ib.LI&&t===Ib.LI||(n===Ib.DD||n===Ib.DT)&&(t===Ib.DD||t===Ib.DT)){ +e.openElements.generateImpliedEndTagsWithExclusion(t), +e.openElements.popUntilTagNamePopped(t);break} +if(t!==Ib.ADDRESS&&t!==Ib.DIV&&t!==Ib.P&&e._isSpecialElement(e.openElements.items[r],t))break +} +e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),e._insertElement(t,Tb.HTML) +}(e,t);break;case Ib.BR:case Ib.IMG:case Ib.WBR:case Ib.AREA:case Ib.EMBED: +case Ib.KEYGEN:vy(e,t);break;case Ib.HR:!function(e,t){ +e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(), +e._appendElement(t,Tb.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break +;case Ib.RB:case Ib.RTC:!function(e,t){ +e.openElements.hasInScope(Ib.RUBY)&&e.openElements.generateImpliedEndTags(), +e._insertElement(t,Tb.HTML)}(e,t);break;case Ib.RT:case Ib.RP:!function(e,t){ +e.openElements.hasInScope(Ib.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Ib.RTC), +e._insertElement(t,Tb.HTML)}(e,t);break;case Ib.PRE:case Ib.LISTING: +!function(e,t){ +e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),e._insertElement(t,Tb.HTML), +e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Ib.XMP:!function(e,t){ +e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(), +e._reconstructActiveFormattingElements(), +e.framesetOk=!1,e._switchToTextParsing(t,Yb.RAWTEXT)}(e,t);break;case Ib.SVG: +!function(e,t){ +e._reconstructActiveFormattingElements(),QO(t),jO(t),t.selfClosing?e._appendElement(t,Tb.SVG):e._insertElement(t,Tb.SVG), +t.ackSelfClosing=!0}(e,t);break;case Ib.HTML:!function(e,t){ +0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs) +}(e,t);break;case Ib.BASE:case Ib.LINK:case Ib.META:case Ib.STYLE:case Ib.TITLE: +case Ib.SCRIPT:case Ib.BGSOUND:case Ib.BASEFONT:case Ib.TEMPLATE:cy(e,t);break +;case Ib.BODY:!function(e,t){ +const n=e.openElements.tryPeekProperlyNestedBodyElement() +;n&&0===e.openElements.tmplCount&&(e.framesetOk=!1, +e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Ib.FORM: +!function(e,t){const n=e.openElements.tmplCount>0 +;e.formElement&&!n||(e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(), +e._insertElement(t,Tb.HTML),n||(e.formElement=e.openElements.current))}(e,t) +;break;case Ib.NOBR:!function(e,t){ +e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Ib.NOBR)&&(ry(e,t), +e._reconstructActiveFormattingElements()), +e._insertElement(t,Tb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t) +}(e,t);break;case Ib.MATH:!function(e,t){ +e._reconstructActiveFormattingElements(), +BO(t),jO(t),t.selfClosing?e._appendElement(t,Tb.MATHML):e._insertElement(t,Tb.MATHML), +t.ackSelfClosing=!0}(e,t);break;case Ib.TABLE:!function(e,t){ +e.treeAdapter.getDocumentMode(e.document)!==Db.QUIRKS&&e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(), +e._insertElement(t,Tb.HTML),e.framesetOk=!1,e.insertionMode=HO.IN_TABLE}(e,t) +;break;case Ib.INPUT:!function(e,t){ +e._reconstructActiveFormattingElements(),e._appendElement(t,Tb.HTML), +by(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Ib.PARAM: +case Ib.TRACK:case Ib.SOURCE:!function(e,t){ +e._appendElement(t,Tb.HTML),t.ackSelfClosing=!0}(e,t);break;case Ib.IMAGE: +!function(e,t){t.tagName=Rb.IMG,t.tagID=Ib.IMG,vy(e,t)}(e,t);break +;case Ib.BUTTON:!function(e,t){ +e.openElements.hasInScope(Ib.BUTTON)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(Ib.BUTTON)), +e._reconstructActiveFormattingElements(), +e._insertElement(t,Tb.HTML),e.framesetOk=!1}(e,t);break;case Ib.APPLET: +case Ib.OBJECT:case Ib.MARQUEE:!function(e,t){ +e._reconstructActiveFormattingElements(), +e._insertElement(t,Tb.HTML),e.activeFormattingElements.insertMarker(), +e.framesetOk=!1}(e,t);break;case Ib.IFRAME:!function(e,t){ +e.framesetOk=!1,e._switchToTextParsing(t,Yb.RAWTEXT)}(e,t);break;case Ib.SELECT: +!function(e,t){ +e._reconstructActiveFormattingElements(),e._insertElement(t,Tb.HTML), +e.framesetOk=!1, +e.insertionMode=e.insertionMode===HO.IN_TABLE||e.insertionMode===HO.IN_CAPTION||e.insertionMode===HO.IN_TABLE_BODY||e.insertionMode===HO.IN_ROW||e.insertionMode===HO.IN_CELL?HO.IN_SELECT_IN_TABLE:HO.IN_SELECT +}(e,t);break;case Ib.OPTION:case Ib.OPTGROUP:!function(e,t){ +e.openElements.currentTagId===Ib.OPTION&&e.openElements.pop(), +e._reconstructActiveFormattingElements(),e._insertElement(t,Tb.HTML)}(e,t);break +;case Ib.NOEMBED:Oy(e,t);break;case Ib.FRAMESET:!function(e,t){ +const n=e.openElements.tryPeekProperlyNestedBodyElement() +;e.framesetOk&&n&&(e.treeAdapter.detachNode(n), +e.openElements.popAllUpToHtmlElement(), +e._insertElement(t,Tb.HTML),e.insertionMode=HO.IN_FRAMESET)}(e,t);break +;case Ib.TEXTAREA:!function(e,t){ +e._insertElement(t,Tb.HTML),e.skipNextNewLine=!0, +e.tokenizer.state=Yb.RCDATA,e.originalInsertionMode=e.insertionMode, +e.framesetOk=!1,e.insertionMode=HO.TEXT}(e,t);break;case Ib.NOSCRIPT: +e.options.scriptingEnabled?Oy(e,t):yy(e,t);break;case Ib.PLAINTEXT: +!function(e,t){ +e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),e._insertElement(t,Tb.HTML), +e.tokenizer.state=Yb.PLAINTEXT}(e,t);break;case Ib.COL:case Ib.TH:case Ib.TD: +case Ib.TR:case Ib.HEAD:case Ib.FRAME:case Ib.TBODY:case Ib.TFOOT:case Ib.THEAD: +case Ib.CAPTION:case Ib.COLGROUP:break;default:yy(e,t)}}function xy(e,t){ +const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){ +const t=e.openElements.items[o],i=e.openElements.tagIDs[o] +;if(r===i&&(r!==Ib.UNKNOWN||e.treeAdapter.getTagName(t)===n)){ +e.openElements.generateImpliedEndTagsWithExclusion(r), +e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break} +if(e._isSpecialElement(t,i))break}}function ky(e,t){switch(t.tagID){case Ib.A: +case Ib.B:case Ib.I:case Ib.S:case Ib.U:case Ib.EM:case Ib.TT:case Ib.BIG: +case Ib.CODE:case Ib.FONT:case Ib.NOBR:case Ib.SMALL:case Ib.STRIKE: +case Ib.STRONG:ry(e,t);break;case Ib.P:!function(e){ +e.openElements.hasInButtonScope(Ib.P)||e._insertFakeElement(Rb.P,Ib.P), +e._closePElement()}(e);break;case Ib.DL:case Ib.UL:case Ib.OL:case Ib.DIR: +case Ib.DIV:case Ib.NAV:case Ib.PRE:case Ib.MAIN:case Ib.MENU:case Ib.ASIDE: +case Ib.BUTTON:case Ib.CENTER:case Ib.FIGURE:case Ib.FOOTER:case Ib.HEADER: +case Ib.HGROUP:case Ib.DIALOG:case Ib.ADDRESS:case Ib.ARTICLE:case Ib.DETAILS: +case Ib.SECTION:case Ib.SUMMARY:case Ib.LISTING:case Ib.FIELDSET: +case Ib.BLOCKQUOTE:case Ib.FIGCAPTION:!function(e,t){const n=t.tagID +;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Ib.LI:!function(e){ +e.openElements.hasInListItemScope(Ib.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Ib.LI), +e.openElements.popUntilTagNamePopped(Ib.LI))}(e);break;case Ib.DD:case Ib.DT: +!function(e,t){const n=t.tagID +;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n), +e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Ib.H1:case Ib.H2: +case Ib.H3:case Ib.H4:case Ib.H5:case Ib.H6:!function(e){ +e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Ib.BR: +!function(e){ +e._reconstructActiveFormattingElements(),e._insertFakeElement(Rb.BR,Ib.BR), +e.openElements.pop(),e.framesetOk=!1}(e);break;case Ib.BODY:!function(e,t){ +if(e.openElements.hasInScope(Ib.BODY)&&(e.insertionMode=HO.AFTER_BODY, +e.options.sourceCodeLocationInfo)){ +const n=e.openElements.tryPeekProperlyNestedBodyElement() +;n&&e._setEndLocation(n,t)}}(e,t);break;case Ib.HTML:!function(e,t){ +e.openElements.hasInScope(Ib.BODY)&&(e.insertionMode=HO.AFTER_BODY,Fy(e,t)) +}(e,t);break;case Ib.FORM:!function(e){ +const t=e.openElements.tmplCount>0,{formElement:n}=e +;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Ib.FORM)&&(e.openElements.generateImpliedEndTags(), +t?e.openElements.popUntilTagNamePopped(Ib.FORM):n&&e.openElements.remove(n))}(e) +;break;case Ib.APPLET:case Ib.OBJECT:case Ib.MARQUEE:!function(e,t){ +const n=t.tagID +;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(n), +e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Ib.TEMPLATE: +uy(e,t);break;default:xy(e,t)}}function Sy(e,t){ +e.tmplInsertionModeStack.length>0?Uy(e,t):iy(e,t)}function _y(e,t){ +if(WO.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0, +e.hasNonWhitespacePendingCharacterToken=!1, +e.originalInsertionMode=e.insertionMode, +e.insertionMode=HO.IN_TABLE_TEXT,t.type){case db.CHARACTER:Py(e,t);break +;case db.WHITESPACE_CHARACTER:Ay(e,t)}else Cy(e,t)}function Ey(e,t){ +switch(t.tagID){case Ib.TD:case Ib.TH:case Ib.TR:!function(e,t){ +e.openElements.clearBackToTableContext(), +e._insertFakeElement(Rb.TBODY,Ib.TBODY),e.insertionMode=HO.IN_TABLE_BODY,Iy(e,t) +}(e,t);break;case Ib.STYLE:case Ib.SCRIPT:case Ib.TEMPLATE:cy(e,t);break +;case Ib.COL:!function(e,t){ +e.openElements.clearBackToTableContext(),e._insertFakeElement(Rb.COLGROUP,Ib.COLGROUP), +e.insertionMode=HO.IN_COLUMN_GROUP,Ry(e,t)}(e,t);break;case Ib.FORM: +!function(e,t){ +e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Tb.HTML), +e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break +;case Ib.TABLE:!function(e,t){ +e.openElements.hasInTableScope(Ib.TABLE)&&(e.openElements.popUntilTagNamePopped(Ib.TABLE), +e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Ib.TBODY: +case Ib.TFOOT:case Ib.THEAD:!function(e,t){ +e.openElements.clearBackToTableContext(), +e._insertElement(t,Tb.HTML),e.insertionMode=HO.IN_TABLE_BODY}(e,t);break +;case Ib.INPUT:!function(e,t){ +by(t)?e._appendElement(t,Tb.HTML):Cy(e,t),t.ackSelfClosing=!0}(e,t);break +;case Ib.CAPTION:!function(e,t){ +e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(), +e._insertElement(t,Tb.HTML),e.insertionMode=HO.IN_CAPTION}(e,t);break +;case Ib.COLGROUP:!function(e,t){ +e.openElements.clearBackToTableContext(),e._insertElement(t,Tb.HTML), +e.insertionMode=HO.IN_COLUMN_GROUP}(e,t);break;default:Cy(e,t)}} +function Ty(e,t){switch(t.tagID){case Ib.TABLE: +e.openElements.hasInTableScope(Ib.TABLE)&&(e.openElements.popUntilTagNamePopped(Ib.TABLE), +e._resetInsertionMode());break;case Ib.TEMPLATE:uy(e,t);break;case Ib.BODY: +case Ib.CAPTION:case Ib.COL:case Ib.COLGROUP:case Ib.HTML:case Ib.TBODY: +case Ib.TD:case Ib.TFOOT:case Ib.TH:case Ib.THEAD:case Ib.TR:break;default: +Cy(e,t)}}function Cy(e,t){const n=e.fosterParentingEnabled +;e.fosterParentingEnabled=!0,fy(e,t),e.fosterParentingEnabled=n} +function Ay(e,t){e.pendingCharacterTokens.push(t)}function Py(e,t){ +e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0} +function Dy(e,t){let n=0 +;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===Ib.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Ib.OPTGROUP&&e.openElements.pop(), +e.openElements.currentTagId===Ib.OPTGROUP&&e.openElements.pop();break +;case Ib.OPTION:e.openElements.currentTagId===Ib.OPTION&&e.openElements.pop() +;break;case Ib.SELECT: +e.openElements.hasInSelectScope(Ib.SELECT)&&(e.openElements.popUntilTagNamePopped(Ib.SELECT), +e._resetInsertionMode());break;case Ib.TEMPLATE:uy(e,t)}}function Uy(e,t){ +e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Ib.TEMPLATE), +e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(), +e._resetInsertionMode(),e.onEof(t)):iy(e,t)}function Fy(e,t){var n +;if(t.tagID===Ib.HTML){ +if(e.fragmentContext||(e.insertionMode=HO.AFTER_AFTER_BODY), +e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Ib.HTML){ +e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1] +;r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t) +}}else qy(e,t)}function qy(e,t){e.insertionMode=HO.IN_BODY,fy(e,t)} +function zy(e,t){e.insertionMode=HO.IN_BODY,fy(e,t)}function Hy(e){ +for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Tb.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop() +}function Zy(e,t){return YO.parse(e,t)}function Vy(e,t,n){ +"string"==typeof e&&(n=t,t=e,e=null);const r=YO.getFragmentParser(e,n) +;return r.tokenizer.write(t,!0),r.getFragment()} +Rb.AREA,Rb.BASE,Rb.BASEFONT,Rb.BGSOUND, +Rb.BR,Rb.COL,Rb.EMBED,Rb.FRAME,Rb.HR,Rb.IMG, +Rb.INPUT,Rb.KEYGEN,Rb.LINK,Rb.META,Rb.PARAM,Rb.SOURCE,Rb.TRACK,Rb.WBR +;const Wy=Yy("end"),Xy=Yy("start");function Yy(e){return function(t){ +const n=t&&t.position&&t.position[e]||{} +;if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{ +line:n.line,column:n.column, +offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Gy(e){ +const t=Xy(e),n=Wy(e);if(t&&n)return{start:t,end:n}} +const Ky=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Jy={ +sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ew(e,t){ +const n=function(e){const t="root"===e.type?e.children[0]:e +;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase())) +}(e),r=Uv("type",{handlers:{root:nw,element:rw,text:ow,comment:sw,doctype:iw, +raw:lw},unknown:cw}),o={parser:n?new YO(Jy):YO.getFragmentParser(void 0,Jy), +handle(e){r(e,o)},stitches:!1,options:t||{}};r(e,o),uw(o,Xy()) +;const i=Nv(n?o.parser.document:o.parser.getFragment(),{file:o.options.file}) +;return o.stitches&&og(i,"comment",(function(e,t,n){const r=e +;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t} +})),"root"===i.type&&1===i.children.length&&i.children[0].type===e.type?i.children[0]:i +}function tw(e,t){let n=-1;if(e)for(;++n-1&&i>l||a>-1&&i>a||s>-1&&i>s)return!0;let c=-1;for(;++c1){let e=!1,n=0;for(;++n4&&"data"===t.slice(0,4).toLowerCase())return n}function kw(e){ +return function(t){const n=function(e,t){let n={type:"root",children:[]} +;const r=vw({schema:t?{...mw,...t}:mw,stack:[]},e) +;return r&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}(t,e) +;return n}} +const Sw=/["&'<>`]/g,_w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ew=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Tw=/[|\\{}()[\]^$+*?.]/g,Cw=new WeakMap +;function Aw(e,t){return e=e.replace(t.subset?function(e){let t=Cw.get(e) +;t||(t=function(e){const t=[];let n=-1 +;for(;++n",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š", +Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍", +lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“", +rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›", +euro:"€" +},Nw=["cent","copy","divide","gt","lt","not","para","times"],Iw={}.hasOwnProperty,Mw={} +;let Lw;for(Lw in Rw)Iw.call(Rw,Lw)&&(Mw[Rw[Lw]]=Lw);const Bw=/[^\dA-Za-z]/ +;function Qw(e,t,n){let r,o=function(e,t,n){ +const r="&#x"+e.toString(16).toUpperCase() +;return n&&t&&!Pw.test(String.fromCharCode(t))?r:r+";" +}(e,t,n.omitOptionalSemicolons) +;if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){ +const o=String.fromCharCode(e);if(Iw.call(Mw,o)){const e=Mw[o],i="&"+e +;return n&&$w.includes(e)&&!Nw.includes(e)&&(!r||t&&61!==t&&Bw.test(String.fromCharCode(t)))?i:i+";" +}return"" +}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){ +const r=function(e,t,n){const r="&#"+String(e) +;return n&&t&&!Dw.test(String.fromCharCode(t))?r:r+";" +}(e,t,n.omitOptionalSemicolons);r.length|^->||--!>|"],qw=["<",">"];function zw(e,t){ +const n=String(e) +;if("string"!=typeof t)throw new TypeError("Expected character") +;let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r} +const Hw=Ww(1),Zw=Ww(-1),Vw=[];function Ww(e){return function(t,n,r){ +const o=t?t.children:Vw;let i=(n||0)+e,a=o[i];if(!r)for(;a&&vg(a);)i+=e,a=o[i] +;return a}}const Xw={}.hasOwnProperty;function Yw(e){return function(t,n,r){ +return Xw.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const Gw=Yw({ +body:function(e,t,n){const r=Hw(n,t);return!r||"comment"!==r.type},caption:Kw, +colgroup:Kw,dd:function(e,t,n){const r=Hw(n,t) +;return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)}, +dt:function(e,t,n){const r=Hw(n,t) +;return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))}, +head:Kw,html:function(e,t,n){const r=Hw(n,t);return!r||"comment"!==r.type}, +li:function(e,t,n){const r=Hw(n,t) +;return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){ +const r=Hw(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName}, +option:function(e,t,n){const r=Hw(n,t) +;return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)}, +p:function(e,t,n){const r=Hw(n,t) +;return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName)) +},rp:Jw,rt:Jw,tbody:function(e,t,n){const r=Hw(n,t) +;return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)}, +td:ex,tfoot:function(e,t,n){return!Hw(n,t)},th:ex,thead:function(e,t,n){ +const r=Hw(n,t) +;return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)) +},tr:function(e,t,n){const r=Hw(n,t) +;return!r||"element"===r.type&&"tr"===r.tagName}});function Kw(e,t,n){ +const r=Hw(n,t,!0) +;return!r||"comment"!==r.type&&!("text"===r.type&&vg(r.value.charAt(0)))} +function Jw(e,t,n){const r=Hw(n,t) +;return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)} +function ex(e,t,n){const r=Hw(n,t) +;return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)} +const tx=Yw({body:function(e){const t=Hw(e,-1,!0) +;return!(t&&("comment"===t.type||"text"===t.type&&vg(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))) +},colgroup:function(e,t,n){const r=Zw(n,t),o=Hw(e,-1,!0) +;if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&Gw(r,n.children.indexOf(r),n))return!1 +;return Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(e){ +const t=e.children,n=[];let r=-1;for(;++r0}, +html:function(e){const t=Hw(e,-1);return!t||"comment"!==t.type}, +tbody:function(e,t,n){const r=Zw(n,t),o=Hw(e,-1) +;if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&Gw(r,n.children.indexOf(r),n))return!1 +;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const nx={ +name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]], +unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]], +single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]], +double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]] +};function rx(e,t,n){ +const r=fv(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=e.settings.allowDangerousCharacters?0:1 +;let a,s=e.quote +;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0, +null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"" +;const l=jw(r.attribute,Object.assign({},e.settings.characterReferences,{ +subset:nx.name[o][i]})) +;return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?yv:Xm)(n,{ +padLeft:!e.settings.tightCommaSeparatedLists +}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(a=jw(n,Object.assign({},e.settings.characterReferences,{ +attribute:!0,subset:nx.unquoted[o][i] +}))),a!==n&&(e.settings.quoteSmart&&zw(n,s)>zw(n,e.alternative)&&(s=e.alternative), +a=s+jw(n,Object.assign({},e.settings.characterReferences,{ +subset:("'"===s?nx.single:nx.double)[o][i],attribute:!0}))+s),l+(a?"="+a:a)))} +const ox=["<","&"];function ix(e,t,n,r){ +return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?jw(e.value,Object.assign({},r.settings.characterReferences,{ +subset:ox})):e.value}const ax=Uv("type",{invalid:function(e){ +throw new Error("Expected node, not `"+e+"`")},unknown:function(e){ +throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{ +comment:function(e,t,n,r){ +return r.settings.bogusComments?"":"\x3c!--"+e.value.replace(Uw,(function(e){ +return jw(e,Object.assign({},r.settings.characterReferences,{subset:qw})) +}))+"--\x3e"},doctype:function(e,t,n,r){ +return"" +},element:function(e,t,n,r){ +const o=r.schema,i="svg"!==o.space&&r.settings.omitOptionalTags +;let a="svg"===o.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()) +;const s=[];let l;"html"===o.space&&"svg"===e.tagName&&(r.schema=bv) +;const c=function(e,t){const n=[];let r,o=-1 +;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const o=rx(e,r,t[r]) +;o&&n.push(o)}for(;++o")),s.push(u),a||i&&Gw(e,t,n)||s.push(""), +s.join("")},raw:function(e,t,n,r){ +return r.settings.allowDangerousHtml?e.value:ix(e,0,n,r)}, +root:function(e,t,n,r){return r.all(e)},text:ix}});const sx={},lx={},cx=[] +;function ux(e,t,n){return ax(e,t,n,this)}function dx(e){ +const t=[],n=e&&e.children||cx;let r=-1 +;for(;++r-1&&e.test(String.fromCharCode(t))}} +function Ex(e,t,n){const r=Ym((n||{}).ignore||[]),o=function(e){const t=[] +;if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples") +;const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r0?{type:"text",value:i +}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text", +value:e.value.slice(s,n) +}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length, +c=!0),!r.global)break;d=r.exec(e.value)}c?(s?\]}]+$/.exec(e) +;if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")") +;const o=zw(e,"(");let i=zw(e,")") +;for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++ +;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null, +url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text", +value:a[1]}]:s}function Qx(e,t,n,r){return!(!jx(r,!0)||/[-\d_]$/.test(n))&&{ +type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text", +value:t+"@"+n}]}}function jx(e,t){const n=e.input.charCodeAt(e.index-1) +;return(0===e.index||Sx(n)||kx(n))&&(!t||47!==n)}function Ux(e){ +return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase() +}function Fx(e){this.enter({type:"footnoteDefinition",identifier:"",label:"", +children:[]},e)}function qx(){this.buffer()}function zx(e){ +const t=this.resume(),n=this.stack[this.stack.length-1] +;n.type,n.label=t,n.identifier=Ux(this.sliceSerialize(e)).toLowerCase()} +function Hx(e){this.exit(e)}function Zx(e){this.enter({type:"footnoteReference", +identifier:"",label:""},e)}function Vx(){this.buffer()}function Wx(e){ +const t=this.resume(),n=this.stack[this.stack.length-1] +;n.type,n.label=t,n.identifier=Ux(this.sliceSerialize(e)).toLowerCase()} +function Xx(e){this.exit(e)}function Yx(e,t,n,r){const o=n.createTracker(r) +;let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference") +;return i+=o.move(n.safe(n.associationId(e),{...o.current(),before:i,after:"]" +})),s(),a(),i+=o.move("]"),i}function Gx(e,t,n,r){const o=n.createTracker(r) +;let i=o.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label") +;return i+=o.move(n.safe(n.associationId(e),{...o.current(),before:i,after:"]" +})), +s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(n.indentLines(n.containerFlow(e,o.current()),Kx)), +a(),i}function Kx(e,t,n){return 0===t?e:(n?"":" ")+e}Yx.peek=function(){ +return"["} +;const Jx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"] +;function ek(e){this.enter({type:"delete",children:[]},e)}function tk(e){ +this.exit(e)}function nk(e,t,n,r){ +const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~") +;return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~" +}),a+=o.move("~~"),i(),a}function rk(e){return e.length}function ok(e){ +const t="string"==typeof e?e.codePointAt(0):0 +;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0} +nk.peek=function(){return"~"};const ik={}.hasOwnProperty;function ak(e,t){ +let n,r=-1;if(t.extensions)for(;++r"+(n?"":" ")+e} +function uk(e,t){return dk(e,t.inConstruct,!0)&&!dk(e,t.notInConstruct,!1)} +function dk(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n +;let r=-1;for(;++r",...l.current() +})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{ +before:c,after:e.title?" ":")",...l.current() +}))),s(),e.title&&(s=n.enter(`title${i}`), +c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current() +})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function Sk(e,t,n,r){ +const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label") +;const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l, +after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack +;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l, +after:"]",...s.current()}) +;return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"), +l}function _k(e,t,n){let r=e.value||"",o="`",i=-1 +;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`" +;for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i\u007F]/.test(e.url)) +}function Tk(e,t,n,r){ +const o=mk(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l +;if(Ek(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<") +;return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current() +})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label") +;let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](", +...a.current() +})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"), +c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current() +})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{ +before:c,after:e.title?" ":")",...a.current() +}))),l(),e.title&&(l=n.enter(`title${i}`), +c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current() +})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function Ck(e,t,n,r){ +const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label") +;const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{ +before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack +;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l, +after:"]",...s.current()}) +;return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"), +l}function Ak(e){const t=e.options.bullet||"*" +;if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`") +;return t}function Pk(e){const t=e.options.rule||"*" +;if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`") +;return t}xk.peek=function(){return"<"},kk.peek=function(){return"!" +},Sk.peek=function(){return"!"},_k.peek=function(){return"`" +},Tk.peek=function(e,t,n){return Ek(e,n)?"<":"["},Ck.peek=function(){return"["} +;const Dk=Ym(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]) +;function $k(e,t,n,r){const o=function(e){const t=e.options.strong||"*" +;if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`") +;return t}(n),i=n.enter("strong"),a=n.createTracker(r);let s=a.move(o+o) +;return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current() +})),s+=a.move(o+o),i(),s}$k.peek=function(e,t,n){return n.options.strong||"*"} +;const Rk={blockquote:function(e,t,n,r){ +const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2) +;const a=n.indentLines(n.containerFlow(e,i.current()),ck);return o(),a}, +break:pk,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`" +;if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`") +;return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(hk(e,n)){ +const e=n.enter("codeIndented"),t=n.indentLines(i,fk);return e(),t} +const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e) +;let r=n.indexOf(t),o=r,i=0,a=0 +;if("string"!=typeof t)throw new TypeError("Expected substring") +;for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a +}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){ +const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u, +after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){ +const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{ +before:u,after:"\n",encode:["`"],...s.current()})),t()} +return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u}, +definition:function(e,t,n,r){ +const o=mk(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition") +;let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[") +;return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current() +})), +c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"), +c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current() +})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{ +before:c,after:e.title?" ":"\n",...l.current() +}))),s(),e.title&&(s=n.enter(`title${i}`), +c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current() +})),c+=l.move(o),s()),a(),c},emphasis:gk,hardBreak:pk,heading:function(e,t,n,r){ +const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(wk(e,n)){ +const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{ +...i.current(),before:"\n",after:"\n"}) +;return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1)) +}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing") +;i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n", +...i.current()}) +;return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)), +c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:xk,image:kk, +imageReference:Sk,inlineCode:_k,link:Tk,linkReference:Ck,list:function(e,t,n,r){ +const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){ +const t=e.options.bulletOrdered||"." +;if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`") +;return t}(n):Ak(n);const s=e.ordered?"."===a?")":".":function(e){ +const t=Ak(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*" +;if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`") +;if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different") +;return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed +;if(!e.ordered){const t=e.children?e.children[0]:void 0 +;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0), +Pk(n)===a&&t){let t=-1;for(;++t-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i) +;let a=i.length+1 +;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4)) +;const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a) +;const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){ +if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e})) +;return l(),c},paragraph:function(e,t,n,r){ +const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r) +;return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){ +return Dk(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:$k, +text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){ +const r=(Pk(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){ +const t=e.options.ruleRepetition||3 +;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more") +;return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r} +},Nk=[function(e,t,n,r){ +if("code"===t.type&&hk(t,r)&&("list"===e.type||e.type===t.type&&hk(e,r)))return!1 +;if("spread"in n&&"boolean"==typeof n.spread){ +if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&wk(t,r)))return +;return n.spread?1:0}}] +;const Ik=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Mk=[{ +character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t", +before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t", +inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{ +character:"\r", +inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"] +},{character:"\n", +inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"] +},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ", +before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ", +inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!", +after:"\\[",inConstruct:"phrasing",notInConstruct:Ik},{character:'"', +inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#", +inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]", +inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{ +character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(", +inConstruct:"phrasing",notInConstruct:Ik},{atBreak:!0,before:"\\d+", +character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0, +character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing", +notInConstruct:Ik},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0, +character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".", +after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{ +character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ik},{ +character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{ +atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{ +atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing", +notInConstruct:Ik},{character:"[",inConstruct:["label","reference"]},{ +character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]", +inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_", +inConstruct:"phrasing",notInConstruct:Ik},{atBreak:!0,character:"`"},{ +character:"`", +inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{ +character:"`",inConstruct:"phrasing",notInConstruct:Ik},{atBreak:!0, +character:"~"}],Lk=document.createElement("i");function Bk(e){const t="&"+e+";" +;Lk.innerHTML=t;const n=Lk.textContent +;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function Qk(e,t){ +const n=Number.parseInt(e,t) +;return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n) +}const jk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi +;function Uk(e){return e.replace(jk,Fk)}function Fk(e,t,n){if(t)return t +;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e +;return Qk(n.slice(t?2:1),t?16:10)}return Bk(n)||e}function qk(e){ +return e.label||!e.identifier?e.label||"":Uk(e.identifier)}function zk(e){ +if(!e._compiled){ +const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"") +;e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g") +}return e._compiled}function Hk(e,t,n,r){let o=r.join.length;for(;o--;){ +const i=r.join[o](e,t,n,r);if(!0===i||1===i)break +;if("number"==typeof i)return"\n".repeat(1+i) +;if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const Zk=/\r?\n|\r/g +;function Vk(e,t){const n=[];let r,o=0,i=0 +;for(;r=Zk.exec(e);)a(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++ +;return a(e.slice(o)),n.join("");function a(e){n.push(t(e,i,!e))}} +function Wk(e,t){return e-t}function Xk(e,t){ +const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],i=e+t;let a,s=-1,l=0 +;for(;a=n.exec(i);)r.push(a.index) +;for(;++s0&&("\r"===s||"\n"===s)&&"html"===c.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "), +s=" ",l=t.createTracker(n),l.move(i.join(""))),i.push(l.move(t.handle(c,e,t,{ +...l.current(),before:s,after:u}))),s=i[i.length-1].slice(-1)} +return r.pop(),i.join("")}(e,this,t)}function nS(e,t){return function(e,t,n){ +const r=t.indexStack,o=e.children||[],i=t.createTracker(n),a=[];let s=-1 +;for(r.push(-1);++s=c||e+1l&&(l=e[c].length);++ds[d])&&(s[d]=e)}n.push(i)}i[c]=n,a[c]=o}var u;let d=-1 +;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=i),h[d]=i),p[d]=a} +i.splice(1,0,p),a.splice(1,0,h),c=-1;const f=[];for(;++co?0:o+t:t>o?o:t, +n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n), +e.splice(...i);else for(n&&e.splice(t,n);a0?(mS(e,e.length,0,t),e):t}const vS={}.hasOwnProperty +;function bS(e){const t={};let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n} +function MS(e){const t=[];let n=-1,r=0,o=0;for(;++n55295&&i<57344){ +const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t), +o=1):a="�"}else a=String.fromCharCode(i) +;a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)} +return t.join("")+e.slice(r)}function LS(e){ +return null===e||wx(e)||Sx(e)?1:kx(e)?2:void 0}function BS(e,t,n){const r=[] +;let o=-1;for(;++o1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1 +;const d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start) +;jS(d,-s),jS(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d, +end:Object.assign({},e[n][1].end)},a={ +type:s>1?"strongSequence":"emphasisSequence", +start:Object.assign({},e[u][1].start),end:p},o={ +type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end), +end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis", +start:Object.assign({},i.start),end:Object.assign({},a.end) +},e[n][1].end=Object.assign({},i.start), +e[u][1].start=Object.assign({},a.end),l=[], +e[n][1].end.offset-e[n][1].start.offset&&(l=gS(l,[["enter",e[n][1],t],["exit",e[n][1],t]])), +l=gS(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]), +l=gS(l,BS(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)), +l=gS(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]), +e[u][1].end.offset-e[u][1].start.offset?(c=2, +l=gS(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0, +mS(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1 +;for(;++u=s?(e.exit("codeFencedFenceSequence"), +xx(t)?FS(e,d,"whitespace")(t):d(t)):n(t)}function d(r){ +return null===r||yx(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0} +;let i,a=0,s=0;return function(t){return function(t){ +const n=r.events[r.events.length-1] +;return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t, +e.enter("codeFenced"), +e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)} +;function l(t){ +return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"), +xx(t)?FS(e,c,"whitespace")(t):c(t))}function c(n){ +return null===n||yx(n)?(e.exit("codeFencedFence"), +r.interrupt?t(n):e.check(VS,h,b)(n)):(e.enter("codeFencedFenceInfo"), +e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){ +return null===t||yx(t)?(e.exit("chunkString"), +e.exit("codeFencedFenceInfo"),c(t)):xx(t)?(e.exit("chunkString"), +e.exit("codeFencedFenceInfo"), +FS(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){ +return null===t||yx(t)?c(t):(e.enter("codeFencedFenceMeta"), +e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){ +return null===t||yx(t)?(e.exit("chunkString"), +e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)} +function h(t){return e.attempt(o,b,f)(t)}function f(t){ +return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){ +return a>0&&xx(t)?FS(e,g,"linePrefix",a+1)(t):g(t)}function g(t){ +return null===t||yx(t)?e.check(VS,h,b)(t):(e.enter("codeFlowValue"),v(t))} +function v(t){ +return null===t||yx(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)} +function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const XS={ +name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){ +return e.enter("codeIndented"),FS(e,o,"linePrefix",5)(t)};function o(e){ +const t=r.events[r.events.length-1] +;return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e) +}function i(t){ +return null===t?s(t):yx(t)?e.attempt(YS,i,s)(t):(e.enter("codeFlowValue"),a(t))} +function a(t){ +return null===t||yx(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)} +function s(n){return e.exit("codeIndented"),t(n)}}},YS={ +tokenize:function(e,t,n){const r=this;return o;function o(t){ +return r.parser.lazy[r.now().line]?n(t):yx(t)?(e.enter("lineEnding"), +e.consume(t),e.exit("lineEnding"),o):FS(e,i,"linePrefix",5)(t)}function i(e){ +const i=r.events[r.events.length-1] +;return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):yx(e)?o(e):n(e) +}},partial:!0};const GS={name:"codeText",tokenize:function(e,t,n){let r,o,i=0 +;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)} +;function a(t){ +return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))} +function s(t){ +return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"), +s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):yx(t)?(e.enter("lineEnding"), +e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))} +function l(t){ +return null===t||32===t||96===t||yx(t)?(e.exit("codeTextData"),s(t)):(e.consume(t), +l)}function c(n){ +return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"), +e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){ +let t,n,r=e.length-4,o=3 +;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`") +;return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse()) +}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e)) +;const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY) +;return n&&JS(this.left,n),o.reverse()}pop(){ +return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){ +this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){ +this.setCursor(Number.POSITIVE_INFINITY),JS(this.left,e)}unshift(e){ +this.setCursor(0),this.right.push(e)}unshiftMany(e){ +this.setCursor(0),JS(this.right,e.reverse())}setCursor(e){ +if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o) +}},partial:!0};function o_(e,t,n,r,o,i,a,s,l){ +const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){ +if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d +;if(null===t||32===t||41===t||gx(t))return n(t) +;return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{ +contentType:"string"}),f(t)};function d(n){ +return 62===n?(e.enter(i),e.consume(n), +e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{ +contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"), +e.exit(s),d(t)):null===t||60===t||yx(t)?n(t):(e.consume(t),92===t?h:p)} +function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(o){ +return u||null!==o&&41!==o&&!wx(o)?u999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i), +e.enter(o), +e.consume(d),e.exit(o),e.exit(r),t):yx(d)?(e.enter("lineEnding"),e.consume(d), +e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))} +function u(t){ +return null===t||91===t||93===t||yx(t)||l++>999?(e.exit("chunkString"), +c(t)):(e.consume(t),s||(s=!xx(t)),92===t?d:u)}function d(t){ +return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}} +function a_(e,t,n,r,o,i){let a;return function(t){ +if(34===t||39===t||40===t)return e.enter(r), +e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){ +return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))} +function l(t){ +return t===a?(e.exit(i),s(a)):null===t?n(t):yx(t)?(e.enter("lineEnding"), +e.consume(t),e.exit("lineEnding"),FS(e,l,"linePrefix")):(e.enter("chunkString",{ +contentType:"string"}),c(t))}function c(t){ +return t===a||null===t||yx(t)?(e.exit("chunkString"), +l(t)):(e.consume(t),92===t?u:c)}function u(t){ +return t===a||92===t?(e.consume(t),c):c(t)}}function s_(e,t){let n +;return function r(o){ +if(yx(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r +;if(xx(o))return FS(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const l_={ +name:"definition",tokenize:function(e,t,n){const r=this;let o +;return function(t){return e.enter("definition"),function(t){ +return i_.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t) +}(t)};function i(t){ +return o=Ux(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)), +58===t?(e.enter("definitionMarker"), +e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){ +return wx(t)?s_(e,s)(t):s(t)}function s(t){ +return o_(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t) +}function l(t){return e.attempt(c_,c,c)(t)}function c(t){ +return xx(t)?FS(e,u,"whitespace")(t):u(t)}function u(i){ +return null===i||yx(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i) +}}},c_={tokenize:function(e,t,n){return function(t){return wx(t)?s_(e,r)(t):n(t) +};function r(t){ +return a_(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t) +}function o(t){return xx(t)?FS(e,i,"whitespace")(t):i(t)}function i(e){ +return null===e||yx(e)?t(e):n(e)}},partial:!0};const u_={name:"hardBreakEscape", +tokenize:function(e,t,n){return function(t){ +return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){ +return yx(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const d_={ +name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){ +return e.enter("atxHeading"),function(t){ +return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){ +return 35===t&&r++<6?(e.consume(t), +o):null===t||wx(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){ +return 35===n?(e.enter("atxHeadingSequence"), +a(n)):null===n||yx(n)?(e.exit("atxHeading"), +t(n)):xx(n)?FS(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))} +function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t)) +}function s(t){ +return null===t||35===t||wx(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)} +},resolve:function(e,t){let n,r,o=e.length-2,i=3 +;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2) +;"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4) +;o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={ +type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text" +},mS(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])) +;return e}} +;const p_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],h_=["pre","script","style","textarea"],f_={ +name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l +;return function(t){return function(t){ +return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)} +;function c(s){ +return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,h):63===s?(e.consume(s), +o=3,r.interrupt?t:N):hx(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)} +function u(i){ +return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,p):hx(i)?(e.consume(i), +o=4,r.interrupt?t:N):n(i)}function d(o){ +return 45===o?(e.consume(o),r.interrupt?t:N):n(o)}function p(o){const i="CDATA[" +;return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:E:p):n(o)} +function h(t){return hx(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)} +function f(s){if(null===s||47===s||62===s||wx(s)){ +const l=47===s,c=a.toLowerCase() +;return l||i||!h_.includes(c)?p_.includes(a.toLowerCase())?(o=6,l?(e.consume(s), +m):r.interrupt?t(s):E(s)):(o=7, +r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):v(s)):(o=1, +r.interrupt?t(s):E(s))} +return 45===s||fx(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)} +function m(o){return 62===o?(e.consume(o),r.interrupt?t:E):n(o)}function g(t){ +return xx(t)?(e.consume(t),g):S(t)}function v(t){ +return 47===t?(e.consume(t),S):58===t||95===t||hx(t)?(e.consume(t), +b):xx(t)?(e.consume(t),v):S(t)}function b(t){ +return 45===t||46===t||58===t||95===t||fx(t)?(e.consume(t),b):O(t)} +function O(t){return 61===t?(e.consume(t),y):xx(t)?(e.consume(t),O):v(t)} +function y(t){ +return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t), +l=t,w):xx(t)?(e.consume(t),y):x(t)}function w(t){ +return t===l?(e.consume(t),l=null,k):null===t||yx(t)?n(t):(e.consume(t),w)} +function x(t){ +return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||wx(t)?O(t):(e.consume(t), +x)}function k(e){return 47===e||62===e||xx(e)?v(e):n(e)}function S(t){ +return 62===t?(e.consume(t),_):n(t)}function _(t){ +return null===t||yx(t)?E(t):xx(t)?(e.consume(t),_):n(t)}function E(t){ +return 45===t&&2===o?(e.consume(t), +P):60===t&&1===o?(e.consume(t),D):62===t&&4===o?(e.consume(t), +I):63===t&&3===o?(e.consume(t), +N):93===t&&5===o?(e.consume(t),R):!yx(t)||6!==o&&7!==o?null===t||yx(t)?(e.exit("htmlFlowData"), +T(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(m_,M,T)(t))} +function T(t){return e.check(g_,C,M)(t)}function C(t){ +return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){ +return null===t||yx(t)?T(t):(e.enter("htmlFlowData"),E(t))}function P(t){ +return 45===t?(e.consume(t),N):E(t)}function D(t){ +return 47===t?(e.consume(t),a="",$):E(t)}function $(t){if(62===t){ +const n=a.toLowerCase();return h_.includes(n)?(e.consume(t),I):E(t)} +return hx(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),$):E(t)} +function R(t){return 93===t?(e.consume(t),N):E(t)}function N(t){ +return 62===t?(e.consume(t),I):45===t&&2===o?(e.consume(t),N):E(t)} +function I(t){ +return null===t||yx(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),I)} +function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){ +let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type);); +t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start, +e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},m_={ +tokenize:function(e,t,n){return function(r){ +return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(qS,t,n) +}},partial:!0},g_={tokenize:function(e,t,n){const r=this;return function(t){ +if(yx(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o +;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}, +partial:!0};const v_={name:"htmlText",tokenize:function(e,t,n){const r=this +;let o,i,a;return function(t){ +return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s} +;function s(t){ +return 33===t?(e.consume(t),l):47===t?(e.consume(t),y):63===t?(e.consume(t), +b):hx(t)?(e.consume(t),k):n(t)}function l(t){ +return 45===t?(e.consume(t),c):91===t?(e.consume(t), +i=0,h):hx(t)?(e.consume(t),v):n(t)}function c(t){ +return 45===t?(e.consume(t),p):n(t)}function u(t){ +return null===t?n(t):45===t?(e.consume(t),d):yx(t)?(a=u,$(t)):(e.consume(t),u)} +function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){ +return 62===e?D(e):45===e?d(e):u(e)}function h(t){const r="CDATA[" +;return t===r.charCodeAt(i++)?(e.consume(t),6===i?f:h):n(t)}function f(t){ +return null===t?n(t):93===t?(e.consume(t),m):yx(t)?(a=f,$(t)):(e.consume(t),f)} +function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){ +return 62===t?D(t):93===t?(e.consume(t),g):f(t)}function v(t){ +return null===t||62===t?D(t):yx(t)?(a=v,$(t)):(e.consume(t),v)}function b(t){ +return null===t?n(t):63===t?(e.consume(t),O):yx(t)?(a=b,$(t)):(e.consume(t),b)} +function O(e){return 62===e?D(e):b(e)}function y(t){ +return hx(t)?(e.consume(t),w):n(t)}function w(t){ +return 45===t||fx(t)?(e.consume(t),w):x(t)}function x(t){ +return yx(t)?(a=x,$(t)):xx(t)?(e.consume(t),x):D(t)}function k(t){ +return 45===t||fx(t)?(e.consume(t),k):47===t||62===t||wx(t)?S(t):n(t)} +function S(t){ +return 47===t?(e.consume(t),D):58===t||95===t||hx(t)?(e.consume(t), +_):yx(t)?(a=S,$(t)):xx(t)?(e.consume(t),S):D(t)}function _(t){ +return 45===t||46===t||58===t||95===t||fx(t)?(e.consume(t),_):E(t)} +function E(t){ +return 61===t?(e.consume(t),T):yx(t)?(a=E,$(t)):xx(t)?(e.consume(t),E):S(t)} +function T(t){ +return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t), +o=t,C):yx(t)?(a=T,$(t)):xx(t)?(e.consume(t),T):(e.consume(t),A)}function C(t){ +return t===o?(e.consume(t), +o=void 0,P):null===t?n(t):yx(t)?(a=C,$(t)):(e.consume(t),C)}function A(t){ +return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||wx(t)?S(t):(e.consume(t), +A)}function P(e){return 47===e||62===e||wx(e)?S(e):n(e)}function D(r){ +return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)} +function $(t){ +return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"), +R}function R(t){ +return xx(t)?FS(e,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t) +}function N(t){return e.enter("htmlTextData"),a(t)}}};const b_={name:"labelEnd", +tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length +;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){ +o=r.events[a][1];break}return function(t){if(!o)return n(t) +;if(o._inactive)return u(t) +;return i=r.parser.defined.includes(Ux(r.sliceSerialize({start:o.end,end:r.now() +}))), +e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"), +e.exit("labelEnd"),s};function s(t){ +return 40===t?e.attempt(O_,c,i?c:u)(t):91===t?e.attempt(y_,c,i?l:u)(t):i?c(t):u(t) +}function l(t){return e.attempt(w_,c,u)(t)}function c(e){return t(e)} +function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){ +let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){ +if("link"===n.type||"labelLink"===n.type&&n._inactive)break +;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){ +if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a, +"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={ +type:"labelLink"===e[r][1].type?"link":"image", +start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end) +},c={type:"label",start:Object.assign({},e[r][1].start), +end:Object.assign({},e[o][1].end)},u={type:"labelText", +start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)} +;return i=[["enter",l,t],["enter",c,t]], +i=gS(i,e.slice(r+1,r+s+3)),i=gS(i,[["enter",u,t]]), +i=gS(i,BS(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)), +i=gS(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]), +i=gS(i,e.slice(o+1)),i=gS(i,[["exit",l,t]]),mS(e,r,e.length,i),e}, +resolveAll:function(e){let t=-1;for(;++t=3&&(null===i||yx(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){ +return t===r?(e.consume(t), +o++,a):(e.exit("thematicBreakSequence"),xx(t)?FS(e,i,"whitespace")(t):i(t))}}} +;const E_={name:"list",tokenize:function(e,t,n){ +const r=this,o=r.events[r.events.length-1] +;let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0 +;return function(t){ +const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered") +;if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:vx(t)){ +if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0 +})),"listUnordered"===o)return e.enter("listItemPrefix"), +42===t||45===t?e.check(__,n,l)(t):l(t) +;if(!r.interrupt||49===t)return e.enter("listItemPrefix"), +e.enter("listItemValue"),s(t)}return n(t)};function s(t){ +return vx(t)&&++a<10?(e.consume(t), +s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"), +l(t)):n(t)}function l(t){ +return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"), +r.containerState.marker=r.containerState.marker||t, +e.check(qS,r.interrupt?n:c,e.attempt(T_,d,u))}function c(e){ +return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){ +return xx(t)?(e.enter("listItemPrefixWhitespace"), +e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){ +return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length, +t(n)}},continuation:{tokenize:function(e,t,n){const r=this +;return r.containerState._closeFlow=void 0,e.check(qS,(function(n){ +return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine, +FS(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){ +if(r.containerState.furtherBlankLines||!xx(n))return r.containerState.furtherBlankLines=void 0, +r.containerState.initialBlankLine=void 0,o(n) +;return r.containerState.furtherBlankLines=void 0, +r.containerState.initialBlankLine=void 0,e.attempt(C_,t,o)(n)}));function o(o){ +return r.containerState._closeFlow=!0, +r.interrupt=void 0,FS(e,e.attempt(E_,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o) +}}},exit:function(e){e.exit(this.containerState.type)}},T_={ +tokenize:function(e,t,n){const r=this;return FS(e,(function(e){ +const o=r.events[r.events.length-1] +;return!xx(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e) +}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5) +},partial:!0},C_={tokenize:function(e,t,n){const r=this +;return FS(e,(function(e){const o=r.events[r.events.length-1] +;return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e) +}),"listItemIndent",r.containerState.size+1)},partial:!0};const A_={ +name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o +;return function(t){let a,s=r.events.length +;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){ +a="paragraph"===r.events[s][1].type;break} +if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"), +o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t) +};function i(t){ +return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"), +xx(t)?FS(e,a,"lineSuffix")(t):a(t))}function a(r){ +return null===r||yx(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}, +resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){ +if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i) +}else"content"===e[i][1].type&&e.splice(i,1), +o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading", +start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end) +} +;e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]), +e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a +;return e.push(["exit",a,t]),e}};const P_={tokenize:function(e,t,n){const r=this +;return FS(e,(function(e){const o=r.events[r.events.length-1] +;return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e) +}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function D_(e,t,n){const r=this +;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]) +;let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break} +if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break +}return function(o){if(!a||!a._balanced)return n(o) +;const s=Ux(r.sliceSerialize({start:a.end,end:r.now()})) +;if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o) +;return e.enter("gfmFootnoteCallLabelMarker"), +e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function $_(e,t){ +let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){ +e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker" +;const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start), +end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker", +start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)} +;o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={ +type:"gfmFootnoteCallString",start:Object.assign({},o.end), +end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString", +contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end) +},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]] +;return e.splice(n,e.length-n+1,...s),e}function R_(e,t,n){ +const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0 +;return function(t){ +return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"), +e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){ +return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"), +e.consume(t),e.exit("gfmFootnoteCallMarker"), +e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)} +function l(s){if(a>999||93===s&&!i||null===s||91===s||wx(s))return n(s) +;if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString") +;return o.includes(Ux(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"), +e.consume(s), +e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)} +return wx(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){ +return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function N_(e,t,n){ +const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0 +;return function(t){ +return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"), +e.enter("gfmFootnoteDefinitionLabelMarker"), +e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){ +return 94===t?(e.enter("gfmFootnoteDefinitionMarker"), +e.consume(t),e.exit("gfmFootnoteDefinitionMarker"), +e.enter("gfmFootnoteDefinitionLabelString"), +e.enter("chunkString").contentType="string",c):n(t)}function c(t){ +if(s>999||93===t&&!a||null===t||91===t||wx(t))return n(t);if(93===t){ +e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString") +;return i=Ux(r.sliceSerialize(n)), +e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t), +e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"), +d}return wx(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){ +return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){ +return 58===t?(e.enter("definitionMarker"), +e.consume(t),e.exit("definitionMarker"), +o.includes(i)||o.push(i),FS(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)} +function p(e){return t(e)}}function I_(e,t,n){ +return e.check(qS,t,e.attempt(P_,t,n))}function M_(e){ +e.exit("gfmFootnoteDefinition")}function L_(e){let t=(e||{}).singleTilde +;const n={tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0 +;return function(t){ +if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t) +;return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){ +const l=LS(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s) +;if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=LS(i) +;return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}}, +resolveAll:function(e,t){let n=-1 +;for(;++n0;)t-=1, +n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0] +;n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop() +;this.map.length=0}}function Q_(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type +;if("lineEnding"!==e&&"linePrefix"!==e)break;t--} +const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?y:s +;if(i===y&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){ +return e.enter("tableHead"),e.enter("tableRow"),function(e){ +if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){ +return null===t?n(t):yx(t)?a>1?(a=0, +r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"), +e.consume(t),e.exit("lineEnding"), +d):n(t):xx(t)?FS(e,l,"whitespace")(t):(a+=1,o&&(o=!1, +i+=1),124===t?(e.enter("tableCellDivider"), +e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))} +function c(t){ +return null===t||124===t||wx(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)} +function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){ +return r.interrupt=!1, +r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"), +o=!1,xx(t)?FS(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)) +}function p(t){ +return 45===t||58===t?f(t):124===t?(o=!0,e.enter("tableCellDivider"), +e.consume(t),e.exit("tableCellDivider"),h):O(t)}function h(t){ +return xx(t)?FS(e,f,"whitespace")(t):f(t)}function f(t){ +return 58===t?(a+=1,o=!0, +e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"), +m):45===t?(a+=1,m(t)):null===t||yx(t)?b(t):O(t)}function m(t){ +return 45===t?(e.enter("tableDelimiterFiller"),g(t)):O(t)}function g(t){ +return 45===t?(e.consume(t), +g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"), +e.consume(t), +e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))} +function v(t){return xx(t)?FS(e,b,"whitespace")(t):b(t)}function b(n){ +return 124===n?p(n):(null===n||yx(n))&&o&&i===a?(e.exit("tableDelimiterRow"), +e.exit("tableHead"),t(n)):O(n)}function O(e){return n(e)}function y(t){ +return e.enter("tableRow"),w(t)}function w(n){ +return 124===n?(e.enter("tableCellDivider"), +e.consume(n),e.exit("tableCellDivider"), +w):null===n||yx(n)?(e.exit("tableRow"),t(n)):xx(n)?FS(e,w,"whitespace")(n):(e.enter("data"), +x(n))}function x(t){ +return null===t||124===t||wx(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?k:x)} +function k(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function U_(e,t){ +let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new B_ +;for(;++in[2]+1){ +const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])} +return void 0!==o&&(i.end=Object.assign({},z_(t.events,o)), +e.add(o,0,[["exit",i,t]]),i=void 0),i}function q_(e,t,n,r,o){ +const i=[],a=z_(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])), +r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function z_(e,t){ +const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const H_={ +tokenize:function(e,t,n){const r=this;return function(t){ +if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t) +;return e.enter("taskListCheck"), +e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o} +;function o(t){ +return wx(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t), +e.exit("taskListCheckValueUnchecked"), +i):88===t||120===t?(e.enter("taskListCheckValueChecked"), +e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){ +return 93===t?(e.enter("taskListCheckMarker"), +e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)} +function a(r){return yx(r)?t(r):xx(r)?e.check({tokenize:Z_},t,n)(r):n(r)}}} +;function Z_(e,t,n){return FS(e,(function(e){return null===e?n(e):t(e) +}),"whitespace")}const V_={};function W_(e){ +const t=e||V_,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]) +;r.push(function(e){return bS([{text:AS},{document:{91:{tokenize:N_, +continuation:{tokenize:I_},exit:M_}},text:{91:{tokenize:R_},93:{add:"after", +tokenize:D_,resolveTo:$_}}},L_(e),{flow:{null:{tokenize:j_,resolveAll:U_}}},{ +text:{91:H_}}])}(t)),o.push([{transforms:[Lx],enter:{literalAutolink:Dx, +literalAutolinkEmail:$x,literalAutolinkHttp:$x,literalAutolinkWww:$x},exit:{ +literalAutolink:Mx,literalAutolinkEmail:Ix,literalAutolinkHttp:Rx, +literalAutolinkWww:Nx}},{enter:{gfmFootnoteDefinition:Fx, +gfmFootnoteDefinitionLabelString:qx,gfmFootnoteCall:Zx,gfmFootnoteCallString:Vx +},exit:{gfmFootnoteDefinition:Hx,gfmFootnoteDefinitionLabelString:zx, +gfmFootnoteCall:Xx,gfmFootnoteCallString:Wx}},{canContainEols:["delete"],enter:{ +strikethrough:ek},exit:{strikethrough:tk}},{enter:{table:oS,tableData:lS, +tableHeader:lS,tableRow:aS},exit:{codeText:cS,table:iS,tableData:sS, +tableHeader:sS,tableRow:sS}},{exit:{taskListCheckValueChecked:pS, +taskListCheckValueUnchecked:pS,paragraph:hS}}]),i.push(function(e){return{ +extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]", +inConstruct:Ax,notInConstruct:Px},{character:".",before:"[Ww]", +after:"[\\-.\\w]",inConstruct:Ax,notInConstruct:Px},{character:":", +before:"[ps]",after:"\\/",inConstruct:Ax,notInConstruct:Px}]},{unsafe:[{ +character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{ +footnoteDefinition:Gx,footnoteReference:Yx}},{unsafe:[{character:"~", +inConstruct:"phrasing",notInConstruct:Jx}],handlers:{delete:nk}},dS(e),{ +unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fS}}]}}(t)) +}const X_={tokenize:function(e){ +const t=e.attempt(this.parser.constructs.contentInitial,(function(n){ +if(null===n)return void e.consume(n) +;return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"), +FS(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n +;return t;function r(t){const r=e.enter("chunkText",{contentType:"text", +previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){ +return null===t?(e.exit("chunkText"), +e.exit("paragraph"),void e.consume(t)):yx(t)?(e.consume(t), +e.exit("chunkText"),r):(e.consume(t),o)}}};const Y_={tokenize:function(e){ +const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(ai))return +;const n=t.events.length;let o,s,l=n +;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){ +s=t.events[l][1].end;break}o=!0} +for(v(a),e=n;er;){const r=n[o] +;t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){ +r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},G_={ +tokenize:function(e,t,n){ +return FS(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4) +}};const K_={tokenize:function(e){const t=this,n=e.attempt(qS,(function(r){ +if(null===r)return void e.consume(r) +;return e.enter("lineEndingBlank"),e.consume(r), +e.exit("lineEndingBlank"),t.currentConstruct=void 0,n +}),e.attempt(this.parser.constructs.flowInitial,r,FS(e,e.attempt(this.parser.constructs.flow,r,e.attempt(n_,r)),"linePrefix"))) +;return n;function r(r){ +if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"), +t.currentConstruct=void 0,n;e.consume(r)}}};const J_={resolveAll:rE() +},eE=nE("string"),tE=nE("text");function nE(e){return{tokenize:function(t){ +const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i +;function i(e){return l(e)?o(e):a(e)}function a(e){ +if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){ +return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){ +if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o-1){const e=a[0] +;"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))} +return a}(a,e)}function p(){ +const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e, +column:t,offset:n,_index:o,_bufferIndex:i}}function h(){let e +;for(;r._index0){ +const e=i.tokenStack[i.tokenStack.length-1];(e[1]||SE).call(i,void 0,e[0])} +for(r.position={start:wE(e.length>0?e[0][1].start:{line:1,column:1,offset:0}), +end:wE(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0}) +},d=-1;++d1:t} +const CE=9,AE=32;function PE(e){const t=String(e),n=/\r?\n|\r/g +;let r=n.exec(t),o=0;const i=[] +;for(;r;)i.push(DE(t.slice(o,r.index),o>0,!0),r[0]), +o=r.index+r[0].length,r=n.exec(t) +;return i.push(DE(t.slice(o),o>0,!1)),i.join("")}function DE(e,t,n){ +let r=0,o=e.length;if(t){let t=e.codePointAt(r) +;for(;t===CE||t===AE;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1) +;for(;t===CE||t===AE;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""} +const $E={blockquote:function(e,t){const n={type:"element",tagName:"blockquote", +properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n) +},break:function(e,t){const n={type:"element",tagName:"br",properties:{}, +children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]}, +code:function(e,t){const n=t.value?t.value+"\n":"",r={} +;t.lang&&(r.className=["language-"+t.lang]);let o={type:"element", +tagName:"code",properties:r,children:[{type:"text",value:n}]} +;return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={ +type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}, +delete:function(e,t){const n={type:"element",tagName:"del",properties:{}, +children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){ +const n={type:"element",tagName:"em",properties:{},children:e.all(t)} +;return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){ +const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=MS(r.toLowerCase()),i=e.footnoteOrder.indexOf(r) +;let a,s=e.footnoteCounts.get(r) +;void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1, +s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{ +href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0, +ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]} +;e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]} +;return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={ +type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)} +;return e.patch(t,n),e.applyData(t,n)},html:function(e,t){ +if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value} +;return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){ +const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n) +;if(!r)return EE(e,t);const o={src:MS(r.url||""),alt:t.alt} +;null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element", +tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}, +image:function(e,t){const n={src:MS(t.url)} +;null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt), +null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element", +tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}, +inlineCode:function(e,t){const n={type:"text", +value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element", +tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r) +},linkReference:function(e,t){ +const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n) +;if(!r)return EE(e,t);const o={href:MS(r.url||"")} +;null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element", +tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i) +},link:function(e,t){const n={href:MS(t.url)} +;null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element", +tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r) +},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1 +;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1 +;for(;!t&&++r0&&n.children.unshift({type:"text",value:" " +}),n.children.unshift({type:"element",tagName:"input",properties:{ +type:"checkbox",checked:t.checked,disabled:!0},children:[] +}),i.className=["task-list-item"]}let s=-1;for(;++s0){const r={type:"element",tagName:"tbody",properties:{}, +children:e.wrap(n,!0)},i=Xy(t.children[1]),a=Wy(t.children[t.children.length-1]) +;i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element", +tagName:"table",properties:{},children:e.wrap(o,!0)} +;return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={ +type:"element",tagName:"td",properties:{},children:e.all(t)} +;return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){ +const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length +;let s=-1;const l=[];for(;++s1&&n.push({type:"element",tagName:"sup", +properties:{},children:[{type:"text",value:String(t)}]}),n}function IE(e,t){ +return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const ME={}.hasOwnProperty,LE={} +;function BE(e,t){e.position&&(t.position=Gy(e))}function QE(e,t){let n=t +;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties +;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element", +tagName:t,properties:{},children:"children"in n?n.children:[n]}} +"element"===n.type&&o&&Object.assign(n.properties,jm(o)), +"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function jE(e,t){ +const n=t.data||{},r=!("value"in t)||ME.call(n,"hProperties")||ME.call(n,"hChildren")?{ +type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text", +value:t.value};return e.patch(t,r),e.applyData(t,r)}function UE(e,t){const n=[] +;let r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text", +value:"\n"}),n}function FE(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++, +n=e.charCodeAt(t);return e.slice(t)}function qE(e,t){const n=function(e,t){ +const n=t||LE,r=new Map,o=new Map,i=new Map,a={...$E,...n.handlers},s={ +all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1 +;for(;++r0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u) +;"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element", +tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""), +dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u), +className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})} +const h=i[i.length-1];if(h&&"element"===h.type&&"p"===h.tagName){ +const e=h.children[h.children.length-1] +;e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" " +}),h.children.push(...d)}else i.push(...d);const f={type:"element",tagName:"li", +properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,f),s.push(f)} +if(0!==s.length)return{type:"element",tagName:"section",properties:{ +dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i, +properties:{...jm(a),id:"footnote-label"},children:[{type:"text",value:o}]},{ +type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{}, +children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{ +type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({ +type:"text",value:"\n"},o),i}function zE(e,t){ +return e&&"run"in e?async function(n,r){const o=qE(n,{file:r,...t}) +;await e.run(o,r)}:function(n,r){return qE(n,{file:r,...t||e})}}function HE(e){ +const t=this;t.compiler=function(n){return Gk(n,{...t.data("settings"),...e, +extensions:t.data("toMarkdownExtensions")||[]})}}function ZE(e){if(e)throw e} +var VE=Object.prototype.hasOwnProperty,WE=Object.prototype.toString,XE=Object.defineProperty,YE=Object.getOwnPropertyDescriptor,GE=function(e){ +return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===WE.call(e) +},KE=function(e){if(!e||"[object Object]"!==WE.call(e))return!1 +;var t,n=VE.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&VE.call(e.constructor.prototype,"isPrototypeOf") +;if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||VE.call(e,t) +},JE=function(e,t){XE&&"__proto__"===t.name?XE(e,t.name,{enumerable:!0, +configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue +},eT=function(e,t){if("__proto__"===t){if(!VE.call(e,t))return +;if(YE)return YE(e,t).value}return e[t]},tT=function e(){ +var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1 +;for("boolean"==typeof s&&(u=s, +s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});lt.length;let s;r&&t.push(o) +;try{s=e.apply(this,t)}catch(i){if(r&&n)throw i;return o(i)} +r||(s&&s.then&&"function"==typeof s.then?s.then(a,o):s instanceof Error?o(s):a(s)) +}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)} +}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){ +if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n) +;return e.push(n),t}};return t}class iT extends Error{constructor(e,t,n){ +super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1 +;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t +}:"type"in t?{ancestors:[t],place:t.position}:{...t +}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0, +r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){ +const e=n.indexOf(":") +;-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))} +if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1] +;e&&(o.place=e.position)} +const a=o.place&&"start"in o.place?o.place.start:o.place +;this.ancestors=o.ancestors||void 0, +this.cause=o.cause||void 0,this.column=a?a.column:void 0, +this.fatal=void 0,this.file, +this.message=r,this.line=a?a.line:void 0,this.name=mE(o.place)||"1:1", +this.place=o.place||void 0, +this.reason=this.message,this.ruleId=o.ruleId||void 0, +this.source=o.source||void 0, +this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"", +this.actual,this.expected,this.note,this.url}} +iT.prototype.file="",iT.prototype.name="", +iT.prototype.reason="",iT.prototype.message="", +iT.prototype.stack="",iT.prototype.column=void 0, +iT.prototype.line=void 0,iT.prototype.ancestors=void 0, +iT.prototype.cause=void 0, +iT.prototype.fatal=void 0,iT.prototype.place=void 0,iT.prototype.ruleId=void 0, +iT.prototype.source=void 0;const aT={basename:function(e,t){ +if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string') +;sT(e);let n,r=0,o=-1,i=e.length +;if(void 0===t||0===t.length||t.length>e.length){ +for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1) +;return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1 +;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break} +}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1, +o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){ +if(sT(e),0===e.length)return".";let t,n=-1,r=e.length +;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0) +;return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n) +},extname:function(e){sT(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){ +const s=e.codePointAt(n) +;if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){ +o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"" +;return e.slice(i,r)},join:function(...e){let t,n=-1 +;for(;++n2){ +if(r=o.lastIndexOf("/"),r!==o.length-1){ +r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue +}}else if(o.length>0){o="",i=0,a=l,s=0;continue} +t&&(o=o.length>0?o+"/..":"..",i=2) +}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0 +}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".") +;n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)}, +sep:"/"};function sT(e){ +if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e)) +}const lT={cwd:function(){return"/"}};function cT(e){ +return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth) +}function uT(e){if("string"==typeof e)e=new URL(e);else if(!cT(e)){ +const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`") +;throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){ +const e=new TypeError("The URL must be of scheme file") +;throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){ +const e=new TypeError('File URL host must be "localhost" or empty on darwin') +;throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1 +;for(;++n0){let[r,...i]=t;const a=n[o][1] +;rT(a)&&rT(r)&&(r=nT(!0,a,r)),n[o]=[e,r,...i]}}}}const OT=(new bT).freeze() +;function yT(e,t){ +if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")} +function wT(e,t){ +if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`") +}function xT(e,t){ +if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.") +}function kT(e){ +if(!rT(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`") +}function ST(e,t,n){ +if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")} +function _T(e){return function(e){ +return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e) +}(e)?e:new pT(e)}const ET=function(e,t,n){const r=Ym(n) +;if(!e||!e.type||!e.children)throw new Error("Expected parent node") +;if("number"==typeof t){ +if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index") +}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index") +;for(;++tl&&(l=e):e&&(void 0!==l&&l>-1&&s.push("\n".repeat(l)||" "), +l=-1,s.push(e))}return s.join("")}function MT(e,t,n){ +return"element"===e.type?function(e,t,n){const r=QT(e,n),o=e.children||[] +;let i,a,s=-1,l=[];if(RT(e))return l;AT(e)||$T(e)&&ET(t,e,$T)?a="\n":DT(e)?(i=2, +a=2):NT(e)&&(i=1,a=1);for(;++sXT(e,t,n-1)))} +const YT="[A-Za-z$_][0-9A-Za-z$_]*",GT=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],KT=["true","false","null","undefined","NaN","Infinity"],JT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],eC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],tC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],nC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],rC=[].concat(tC,JT,eC) +;var oC="[0-9](_*[0-9])*",iC=`\\.(${oC})`,aC="[0-9a-fA-F](_*[0-9a-fA-F])*",sC={ +className:"number",variants:[{ +begin:`(\\b(${oC})((${iC})|\\.)?|(${iC}))[eE][+-]?(${oC})[fFdD]?\\b`},{ +begin:`\\b(${oC})((${iC})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ +begin:`(${iC})[fFdD]?\\b`},{begin:`\\b(${oC})[fFdD]\\b`},{ +begin:`\\b0[xX]((${aC})\\.?|(${aC})?\\.(${aC}))[pP][+-]?(${oC})[fFdD]?\\b`},{ +begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${aC})[lL]?\\b`},{ +begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}], +relevance:0} +;const lC=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],cC=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],uC=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],dC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],pC=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),hC=uC.concat(dC) +;const fC=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],mC=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],gC=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],vC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],bC=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse() +;function OC(e){return e?"string"==typeof e?e:e.source:null}function yC(e){ +return wC("(?=",e,")")}function wC(...e){return e.map((e=>OC(e))).join("")} +function xC(...e){const t=function(e){const t=e[e.length-1] +;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{} +}(e);return"("+(t.capture?"":"?:")+e.map((e=>OC(e))).join("|")+")"} +const kC=e=>wC(/\b/,e,/\w$/.test(e)?/\b/:/\B/),SC=["Protocol","Type"].map(kC),_C=["init","self"].map(kC),EC=["Any","Self"],TC=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],CC=["false","nil","true"],AC=["assignment","associativity","higherThan","left","lowerThan","none","right"],PC=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],DC=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],$C=xC(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),RC=xC($C,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),NC=wC($C,RC,"*"),IC=xC(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),MC=xC(IC,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),LC=wC(IC,MC,"*"),BC=wC(/[A-Z]/,MC,"*"),QC=["attached","autoclosure",wC(/convention\(/,xC("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",wC(/objc\(/,LC,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],jC=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] +;const UC="[A-Za-z$_][0-9A-Za-z$_]*",FC=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],qC=["true","false","null","undefined","NaN","Infinity"],zC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],HC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ZC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],VC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],WC=[].concat(ZC,zC,HC) +;function XC(e){ +const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r={ +className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/, +contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}] +},i=e.inherit(o,{begin:/\(/,end:/\)/}),a=e.inherit(e.APOS_STRING_MODE,{ +className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={ +endsWithParent:!0,illegal:/`]+/}]}]}]};return{ +name:"HTML, XML", +aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"], +case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,s,a,i,{begin:/\[/,end:/\]/,contains:[{ +className:"meta",begin://,contains:[o,i,s,a]}]}] +},e.COMMENT(//,{relevance:10}),{begin://, +relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/, +relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag", +begin:/)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{ +end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag", +begin:/)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{ +end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{ +className:"tag",begin:/<>|<\/>/},{className:"tag", +begin:t.concat(//,/>/,/\s/)))), +end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{ +className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{ +className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}} +function YC(e){return e instanceof Map?e.clear=e.delete=e.set=function(){ +throw new Error("map is read-only") +}:e instanceof Set&&(e.add=e.clear=e.delete=function(){ +throw new Error("set is read-only") +}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((t=>{ +const n=e[t],r=typeof n;"object"!==r&&"function"!==r||Object.isFrozen(n)||YC(n) +})),e}class GC{constructor(e){ +void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1} +ignoreMatch(){this.isMatchIgnored=!0}}function KC(e){ +return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'") +}function JC(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r] +;return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n} +const eA=e=>!!e.scope;class tA{constructor(e,t){ +this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){ +this.buffer+=KC(e)}openNode(e){if(!eA(e))return;const t=((e,{prefix:t})=>{ +if(e.startsWith("language:"))return e.replace("language:","language-") +;if(e.includes(".")){const n=e.split(".") +;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ") +}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)} +closeNode(e){eA(e)&&(this.buffer+="")}value(){return this.buffer}span(e){ +this.buffer+=``}}const nA=(e={})=>{const t={children:[]} +;return Object.assign(t,e),t};class rA{constructor(){ +this.rootNode=nA(),this.stack=[this.rootNode]}get top(){ +return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){ +this.top.children.push(e)}openNode(e){const t=nA({scope:e}) +;this.add(t),this.stack.push(t)}closeNode(){ +if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){ +for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)} +walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){ +return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t), +t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){ +"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{ +rA._collapse(e)})))}}class oA extends rA{constructor(e){super(),this.options=e} +addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){ +this.closeNode()}__addSublanguage(e,t){const n=e.root +;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){ +return new tA(this,this.options).value()}finalize(){return this.closeAllNodes(), +!0}}function iA(e){return e?"string"==typeof e?e:e.source:null}function aA(e){ +return cA("(?=",e,")")}function sA(e){return cA("(?:",e,")*")}function lA(e){ +return cA("(?:",e,")?")}function cA(...e){return e.map((e=>iA(e))).join("")} +function uA(...e){const t=function(e){const t=e[e.length-1] +;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{} +}(e);return"("+(t.capture?"":"?:")+e.map((e=>iA(e))).join("|")+")"} +function dA(e){return new RegExp(e.toString()+"|").exec("").length-1} +const pA=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./ +;function hA(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n +;let r=iA(e),o="";for(;r.length>0;){const e=pA.exec(r);if(!e){o+=r;break} +o+=r.substring(0,e.index), +r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?o+="\\"+String(Number(e[1])+t):(o+=e[0], +"("===e[0]&&n++)}return o})).map((e=>`(${e})`)).join(t)} +const fA="[a-zA-Z]\\w*",mA="[a-zA-Z_]\\w*",gA="\\b\\d+(\\.\\d+)?",vA="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bA="\\b(0b[01]+)",OA={ +begin:"\\\\[\\s\\S]",relevance:0},yA={scope:"string",begin:"'",end:"'", +illegal:"\\n",contains:[OA]},wA={scope:"string",begin:'"',end:'"',illegal:"\\n", +contains:[OA]},xA=function(e,t,n={}){const r=JC({scope:"comment",begin:e,end:t, +contains:[]},n);r.contains.push({scope:"doctag", +begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)", +end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0}) +;const o=uA("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/) +;return r.contains.push({begin:cA(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}), +r},kA=xA("//","$"),SA=xA("/\\*","\\*/"),_A=xA("#","$"),EA={scope:"number", +begin:gA,relevance:0},TA={scope:"number",begin:vA,relevance:0},CA={ +scope:"number",begin:bA,relevance:0},AA={scope:"regexp",begin:/\/(?=[^/\n]*\/)/, +end:/\/[gimuy]*/,contains:[OA,{begin:/\[/,end:/\]/,relevance:0,contains:[OA]}] +},PA={scope:"title",begin:fA,relevance:0},DA={scope:"title",begin:mA,relevance:0 +},$A={begin:"\\.\\s*"+mA,relevance:0};var RA=Object.freeze({__proto__:null, +APOS_STRING_MODE:yA,BACKSLASH_ESCAPE:OA,BINARY_NUMBER_MODE:CA, +BINARY_NUMBER_RE:bA,COMMENT:xA,C_BLOCK_COMMENT_MODE:SA,C_LINE_COMMENT_MODE:kA, +C_NUMBER_MODE:TA,C_NUMBER_RE:vA,END_SAME_AS_BEGIN:function(e){ +return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]}, +"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}, +HASH_COMMENT_MODE:_A,IDENT_RE:fA,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:$A, +NUMBER_MODE:EA,NUMBER_RE:gA,PHRASAL_WORDS_MODE:{ +begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ +},QUOTE_STRING_MODE:wA,REGEXP_MODE:AA, +RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", +SHEBANG:(e={})=>{const t=/^#![ ]*\// +;return e.binary&&(e.begin=cA(t,/.*\b/,e.binary,/\b.*/)),JC({scope:"meta", +begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e) +},TITLE_MODE:PA,UNDERSCORE_IDENT_RE:mA,UNDERSCORE_TITLE_MODE:DA}) +;function NA(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function IA(e,t){ +void 0!==e.className&&(e.scope=e.className,delete e.className)}function MA(e,t){ +t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)", +e.__beforeBegin=NA, +e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords, +void 0===e.relevance&&(e.relevance=0))}function LA(e,t){ +Array.isArray(e.illegal)&&(e.illegal=uA(...e.illegal))}function BA(e,t){ +if(e.match){ +if(e.begin||e.end)throw new Error("begin & end are not supported with match") +;e.begin=e.match,delete e.match}}function QA(e,t){ +void 0===e.relevance&&(e.relevance=1)}const jA=(e,t)=>{if(!e.beforeMatch)return +;if(e.starts)throw new Error("beforeMatch cannot be used with starts") +;const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t] +})),e.keywords=n.keywords,e.begin=cA(n.beforeMatch,aA(n.begin)),e.starts={ +relevance:0,contains:[Object.assign(n,{endsParent:!0})] +},e.relevance=0,delete n.beforeMatch +},UA=["of","and","for","in","not","or","if","then","parent","list","value"],FA="keyword" +;function qA(e,t,n=FA){const r=Object.create(null) +;return"string"==typeof e?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach((function(n){ +Object.assign(r,qA(e[n],t,n))})),r;function o(e,n){ +t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|") +;r[n[0]]=[e,zA(n[0],n[1])]}))}}function zA(e,t){return t?Number(t):function(e){ +return UA.includes(e.toLowerCase())}(e)?0:1}const HA={},ZA=e=>{console.error(e) +},VA=(e,...t)=>{console.log(`WARN: ${e}`,...t)},WA=(e,t)=>{ +HA[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),HA[`${e}/${t}`]=!0) +},XA=new Error;function YA(e,t,{key:n}){let r=0;const o=e[n],i={},a={} +;for(let s=1;s<=t.length;s++)a[s+r]=o[s],i[s+r]=!0,r+=dA(t[s-1]) +;e[n]=a,e[n]._emit=i,e[n]._multi=!0}function GA(e){!function(e){ +e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope, +delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={ +_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope +}),function(e){if(Array.isArray(e.begin)){ +if(e.skip||e.excludeBegin||e.returnBegin)throw ZA("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), +XA +;if("object"!=typeof e.beginScope||null===e.beginScope)throw ZA("beginScope must be object"), +XA;YA(e,e.begin,{key:"beginScope"}),e.begin=hA(e.begin,{joinWith:""})} +}(e),function(e){if(Array.isArray(e.end)){ +if(e.skip||e.excludeEnd||e.returnEnd)throw ZA("skip, excludeEnd, returnEnd not compatible with endScope: {}"), +XA +;if("object"!=typeof e.endScope||null===e.endScope)throw ZA("endScope must be object"), +XA;YA(e,e.end,{key:"endScope"}),e.end=hA(e.end,{joinWith:""})}}(e)} +function KA(e){function t(t,n){ +return new RegExp(iA(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":"")) +}class n{constructor(){ +this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0} +addRule(e,t){ +t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]), +this.matchAt+=dA(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null) +;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(hA(e,{joinWith:"|" +}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex +;const t=this.matcherRe.exec(e);if(!t)return null +;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n] +;return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){ +this.rules=[],this.multiRegexes=[], +this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){ +if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n +;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))), +t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){ +return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){ +this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){ +const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex +;let n=t.exec(e) +;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{ +const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)} +return n&&(this.regexIndex+=n.position+1, +this.regexIndex===this.count&&this.considerAll()),n}} +if(e.compilerExtensions||(e.compilerExtensions=[]), +e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.") +;return e.classNameAliases=JC(e.classNameAliases||{}),function n(o,i){const a=o +;if(o.isCompiled)return a +;[IA,BA,GA,jA].forEach((e=>e(o,i))),e.compilerExtensions.forEach((e=>e(o,i))), +o.__beforeBegin=null,[MA,LA,QA].forEach((e=>e(o,i))),o.isCompiled=!0;let s=null +;return"object"==typeof o.keywords&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords), +s=o.keywords.$pattern, +delete o.keywords.$pattern),s=s||/\w+/,o.keywords&&(o.keywords=qA(o.keywords,e.case_insensitive)), +a.keywordPatternRe=t(s,!0), +i&&(o.begin||(o.begin=/\B|\b/),a.beginRe=t(a.begin),o.end||o.endsWithParent||(o.end=/\B|\b/), +o.end&&(a.endRe=t(a.end)), +a.terminatorEnd=iA(a.end)||"",o.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(o.end?"|":"")+i.terminatorEnd)), +o.illegal&&(a.illegalRe=t(o.illegal)), +o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map((function(e){ +return function(e){ +e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){ +return JC(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants +;if(JA(e))return JC(e,{starts:e.starts?JC(e.starts):null}) +;if(Object.isFrozen(e))return JC(e);return e}("self"===e?o:e) +}))),o.contains.forEach((function(e){n(e,a) +})),o.starts&&n(o.starts,i),a.matcher=function(e){const t=new r +;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin" +}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end" +}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function JA(e){ +return!!e&&(e.endsWithParent||JA(e.starts))}class eP extends Error{ +constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}} +const tP=KC,nP=JC,rP=Symbol("nomatch"),oP=function(e){ +const t=Object.create(null),n=Object.create(null),r=[];let o=!0 +;const i="Could not find the language '{}', did you forget to load/include a language module?",a={ +disableAutodetect:!0,name:"Plain text",contains:[]};let s={ +ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i, +languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-", +cssSelector:"pre code",languages:null,__emitter:oA};function l(e){ +return s.noHighlightRe.test(e)}function c(e,t,n){let r="",o="" +;"object"==typeof t?(r=e, +n=t.ignoreIllegals,o=t.language):(WA("10.7.0","highlight(lang, code, ...args) has been deprecated."), +WA("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), +o=e,r=t),void 0===n&&(n=!0);const i={code:r,language:o};b("before:highlight",i) +;const a=i.result?i.result:u(i.language,i.code,n) +;return a.code=i.code,b("after:highlight",a),a}function u(e,n,r,a){ +const l=Object.create(null);function c(){if(!_.keywords)return void T.addText(C) +;let e=0;_.keywordPatternRe.lastIndex=0;let t=_.keywordPatternRe.exec(C),n="" +;for(;t;){n+=C.substring(e,t.index) +;const o=x.case_insensitive?t[0].toLowerCase():t[0],i=(r=o,_.keywords[r]);if(i){ +const[e,r]=i +;if(T.addText(n),n="",l[o]=(l[o]||0)+1,l[o]<=7&&(A+=r),e.startsWith("_"))n+=t[0];else{ +const n=x.classNameAliases[e]||e;h(t[0],n)}}else n+=t[0] +;e=_.keywordPatternRe.lastIndex,t=_.keywordPatternRe.exec(C)}var r +;n+=C.substring(e),T.addText(n)}function p(){null!=_.subLanguage?function(){ +if(""===C)return;let e=null;if("string"==typeof _.subLanguage){ +if(!t[_.subLanguage])return void T.addText(C) +;e=u(_.subLanguage,C,!0,E[_.subLanguage]),E[_.subLanguage]=e._top +}else e=d(C,_.subLanguage.length?_.subLanguage:null) +;_.relevance>0&&(A+=e.relevance),T.__addSublanguage(e._emitter,e.language) +}():c(),C=""}function h(e,t){""!==e&&(T.startScope(t),T.addText(e),T.endScope()) +}function f(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++ +;continue}const r=x.classNameAliases[e[n]]||e[n],o=t[n];r?h(o,r):(C=o,c(),C=""), +n++}}function g(e,t){ +return e.scope&&"string"==typeof e.scope&&T.openNode(x.classNameAliases[e.scope]||e.scope), +e.beginScope&&(e.beginScope._wrap?(h(C,x.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap), +C=""):e.beginScope._multi&&(f(e.beginScope,t),C="")),_=Object.create(e,{parent:{ +value:_}}),_}function v(e,t,n){let r=function(e,t){const n=e&&e.exec(t) +;return n&&0===n.index}(e.endRe,n);if(r){if(e["on:end"]){const n=new GC(e) +;e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){ +for(;e.endsParent&&e.parent;)e=e.parent;return e}} +if(e.endsWithParent)return v(e.parent,t,n)}function b(e){ +return 0===_.matcher.regexIndex?(C+=e[0],1):($=!0,0)}function O(e){ +const t=e[0],r=n.substring(e.index),o=v(_,e,r);if(!o)return rP;const i=_ +;_.endScope&&_.endScope._wrap?(p(), +h(t,_.endScope._wrap)):_.endScope&&_.endScope._multi?(p(), +f(_.endScope,e)):i.skip?C+=t:(i.returnEnd||i.excludeEnd||(C+=t), +p(),i.excludeEnd&&(C=t));do{ +_.scope&&T.closeNode(),_.skip||_.subLanguage||(A+=_.relevance),_=_.parent +}while(_!==o.parent);return o.starts&&g(o.starts,e),i.returnEnd?0:t.length} +let y={};function w(t,i){const a=i&&i[0];if(C+=t,null==a)return p(),0 +;if("begin"===y.type&&"end"===i.type&&y.index===i.index&&""===a){ +if(C+=n.slice(i.index,i.index+1),!o){ +const t=new Error(`0 width match regex (${e})`) +;throw t.languageName=e,t.badRule=y.rule,t}return 1} +if(y=i,"begin"===i.type)return function(e){ +const t=e[0],n=e.rule,r=new GC(n),o=[n.__beforeBegin,n["on:begin"]] +;for(const i of o)if(i&&(i(e,r),r.isMatchIgnored))return b(t) +;return n.skip?C+=t:(n.excludeBegin&&(C+=t), +p(),n.returnBegin||n.excludeBegin||(C=t)),g(n,e),n.returnBegin?0:t.length}(i) +;if("illegal"===i.type&&!r){ +const e=new Error('Illegal lexeme "'+a+'" for mode "'+(_.scope||"")+'"') +;throw e.mode=_,e}if("end"===i.type){const e=O(i);if(e!==rP)return e} +if("illegal"===i.type&&""===a)return 1;if(D>1e5&&D>3*i.index){ +throw new Error("potential infinite loop, way more iterations than matches")} +return C+=a,a.length}const x=m(e) +;if(!x)throw ZA(i.replace("{}",e)),new Error('Unknown language: "'+e+'"') +;const k=KA(x);let S="",_=a||k;const E={},T=new s.__emitter(s);!function(){ +const e=[];for(let t=_;t!==x;t=t.parent)t.scope&&e.unshift(t.scope) +;e.forEach((e=>T.openNode(e)))}();let C="",A=0,P=0,D=0,$=!1;try{ +if(x.__emitTokens)x.__emitTokens(n,T);else{for(_.matcher.considerAll();;){ +D++,$?$=!1:_.matcher.considerAll(),_.matcher.lastIndex=P +;const e=_.matcher.exec(n);if(!e)break;const t=w(n.substring(P,e.index),e) +;P=e.index+t}w(n.substring(P))}return T.finalize(),S=T.toHTML(),{language:e, +value:S,relevance:A,illegal:!1,_emitter:T,_top:_}}catch(R){ +if(R.message&&R.message.includes("Illegal"))return{language:e,value:tP(n), +illegal:!0,relevance:0,_illegalBy:{message:R.message,index:P, +context:n.slice(P-100,P+100),mode:R.mode,resultSoFar:S},_emitter:T};if(o)return{ +language:e,value:tP(n),illegal:!1,relevance:0,errorRaised:R,_emitter:T,_top:_} +;throw R}}function d(e,n){n=n||s.languages||Object.keys(t);const r=function(e){ +const t={value:tP(e),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)} +;return t._emitter.addText(e),t}(e),o=n.filter(m).filter(v).map((t=>u(t,e,!1))) +;o.unshift(r);const i=o.sort(((e,t)=>{ +if(e.relevance!==t.relevance)return t.relevance-e.relevance +;if(e.language&&t.language){if(m(e.language).supersetOf===t.language)return 1 +;if(m(t.language).supersetOf===e.language)return-1}return 0})),[l,c]=i,d=l +;return d.secondBest=c,d}function p(e){let t=null;const r=function(e){ +let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"" +;const n=s.languageDetectRe.exec(t);if(n){const t=m(n[1]) +;return t||(VA(i.replace("{}",n[1])), +VA("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight" +}return t.split(/\s+/).find((e=>l(e)||m(e)))}(e);if(l(r))return +;if(b("before:highlightElement",{el:e,language:r +}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e) +;if(e.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), +console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), +console.warn("The element with unescaped HTML:"), +console.warn(e)),s.throwUnescapedHTML)){ +throw new eP("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e +;const o=t.textContent,a=r?c(o,{language:r,ignoreIllegals:!0}):d(o) +;e.innerHTML=a.value,e.dataset.highlighted="yes",function(e,t,r){ +const o=t&&n[t]||r;e.classList.add("hljs"),e.classList.add(`language-${o}`) +}(e,r,a.language),e.result={language:a.language,re:a.relevance, +relevance:a.relevance},a.secondBest&&(e.secondBest={ +language:a.secondBest.language,relevance:a.secondBest.relevance +}),b("after:highlightElement",{el:e,result:a,text:o})}let h=!1;function f(){ +if("loading"===document.readyState)return void(h=!0) +;document.querySelectorAll(s.cssSelector).forEach(p)}function m(e){ +return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function g(e,{languageName:t}){ +"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))} +function v(e){const t=m(e);return t&&!t.disableAutodetect}function b(e,t){ +const n=e;r.forEach((function(e){e[n]&&e[n](t)}))} +"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){ +h&&f()}),!1),Object.assign(e,{highlight:c,highlightAuto:d,highlightAll:f, +highlightElement:p,highlightBlock:function(e){ +return WA("10.7.0","highlightBlock will be removed entirely in v12.0"), +WA("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){ +s=nP(s,e)},initHighlighting:()=>{ +f(),WA("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")}, +initHighlightingOnLoad:function(){ +f(),WA("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.") +},registerLanguage:function(n,r){let i=null;try{i=r(e)}catch(s){ +if(ZA("Language definition for '{}' could not be registered.".replace("{}",n)), +!o)throw s;ZA(s),i=a} +i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&g(i.aliases,{ +languageName:n})},unregisterLanguage:function(e){delete t[e] +;for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){ +return Object.keys(t)},getLanguage:m,registerAliases:g,autoDetection:v, +inherit:nP,addPlugin:function(e){!function(e){ +e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{ +e["before:highlightBlock"](Object.assign({block:t.el},t)) +}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{ +e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),r.push(e)}, +removePlugin:function(e){const t=r.indexOf(e);-1!==t&&r.splice(t,1)} +}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0 +},e.versionString="11.9.0",e.regex={concat:cA,lookahead:aA,either:uA, +optional:lA,anyNumberOfTimes:sA} +;for(const O in RA)"object"==typeof RA[O]&&YC(RA[O]);return Object.assign(e,RA), +e},iP=oP({});iP.newInstance=()=>oP({});var aP=iP;iP.HighlightJS=iP,iP.default=iP +;const sP=Jf(aP),lP={},cP="hljs-";class uP{constructor(e){ +this.options=e,this.root={type:"root",children:[],data:{language:void 0, +relevance:0}},this.stack=[this.root]}addText(e){if(""===e)return +;const t=this.stack[this.stack.length-1],n=t.children[t.children.length-1] +;n&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e})} +startScope(e){this.openNode(String(e))}endScope(){this.closeNode()} +__addSublanguage(e,t){const n=this.stack[this.stack.length-1],r=e.root.children +;t?n.children.push({type:"element",tagName:"span",properties:{className:[t]}, +children:r}):n.children.push(...r)}openNode(e){const t=this,n={type:"element", +tagName:"span",properties:{className:e.split(".").map((function(e,n){ +return n?e+"_".repeat(n):t.options.classPrefix+e}))},children:[]} +;this.stack[this.stack.length-1].children.push(n),this.stack.push(n)} +closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const dP={ +ts:"typescript",js:"javascript",py:"python",py3:"python","c#":"csharp", +"c++":"cpp",node:"javascript"},pP={};function hP(e){ +const t=e||pP,n=t.aliases,r=(null==e?void 0:e.detect)??!1,o=t.languages,i=t.plainText,a=t.prefix,s=t.subset +;let l="hljs";const c=(null==e?void 0:e.lowlight)??function(e){ +const t=sP.newInstance();return e&&o(e),{highlight:n, +highlightAuto:function(e,o){const i=(o||lP).subset||r();let a,s=-1,l=0 +;for(;++sl&&(l=c.data.relevance,a=c) +}return a||{type:"root",children:[],data:{language:void 0,relevance:l}}}, +listLanguages:r,register:o,registerAlias:function(e,n){ +if("string"==typeof e)t.registerAliases("string"==typeof n?n:[...n],{ +languageName:e});else{let n;for(n in e)if(Object.hasOwn(e,n)){const r=e[n] +;t.registerAliases("string"==typeof r?r:[...r],{languageName:n})}}}, +registered:function(e){return Boolean(t.getLanguage(e))}};function n(e,n,r){ +const o=r||lP,i="string"==typeof o.prefix?o.prefix:cP +;if(!t.getLanguage(e))throw new Error("Unknown language: `"+e+"` is not registered") +;t.configure({__emitter:uP,classPrefix:i});const a=t.highlight(n,{ +ignoreIllegals:!0,language:e}) +;if(a.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{ +cause:a.errorRaised});const s=a._emitter.root,l=s.data +;return l.language=a.language,l.relevance=a.relevance,s}function r(){ +return t.listLanguages()}function o(e,n){ +if("string"==typeof e)t.registerLanguage(e,n);else{let n +;for(n in e)Object.hasOwn(e,n)&&t.registerLanguage(n,e[n])}}}(o) +;if(n&&c.registerAlias(n),a){const e=a.indexOf("-");l=e>-1?a.slice(0,e):a} +return function(e,t){og(e,"element",(function(e,n,o){var u +;if("code"!==e.tagName||!o||"element"!==o.type||"pre"!==o.tagName)return +;const d=function(e){const t=e.properties.className +;if(!Array.isArray(t))return"";const n=t.reduce(((e,t)=>{if(e)return e +;const n=String(t) +;return"no-highlight"===n||"nohighlight"===n?"no-highlight":"lang-"===n.slice(0,5)?n.slice(5):"language-"===n.slice(0,9)?n.slice(9):e +}),"");return dP[n||""]||n}(e) +;if("no-highlight"===d||!d&&!r||d&&(null==i?void 0:i.includes(d)))return;let p +;Array.isArray(e.properties.className)||(e.properties.className=[]), +e.properties.className.includes(l)||e.properties.className.unshift(l);try{ +p=d?c.highlight(d,IT(o),{prefix:a}):c.highlightAuto(IT(o),{prefix:a,subset:s}) +}catch(h){const n=h +;if(d&&/Unknown language/.test(n.message))return void t.message("Cannot highlight as `"+d+"`, it’s not registered",{ +ancestors:[o,e],cause:n,place:e.position,ruleId:"missing-language", +source:"rehype-highlight"});throw n} +!d&&(null==(u=p.data)?void 0:u.language)&&e.properties.className.push("language-"+p.data.language), +p.children.length>0&&(e.children=p.children)}))}}const fP={bash:function(e){ +const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/, +contains:[n]}]};Object.assign(n,{className:"variable",variants:[{ +begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const o={ +className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={ +begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/, +end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/, +contains:[e.BACKSLASH_ESCAPE,n,o]};o.contains.push(a);const s={begin:/\$?\(\(/, +end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n] +},l=e.SHEBANG({ +binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`, +relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/, +returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})], +relevance:0};return{name:"Bash",aliases:["sh"],keywords:{ +$pattern:/\b[a-z][a-z0-9._-]+\b/, +keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"], +literal:["true","false"], +built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"] +},contains:[l,e.SHEBANG(),c,s,e.HASH_COMMENT_MODE,i,{match:/(\/[a-z._-]+)+/},a,{ +match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},n]}}, +c:function(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}] +}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",i="("+r+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={ +className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{ +match:/\batomic_[a-z]{3,6}\b/}]},s={className:"string",variants:[{ +begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{ +begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", +end:"'",illegal:"."},e.END_SAME_AS_BEGIN({ +begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={ +className:"number",variants:[{begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" +},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ +keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" +},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{ +className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={ +className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0 +},d=t.optional(o)+e.IDENT_RE+"\\s*\\(",p={ +keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"], +type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"], +literal:"true false NULL", +built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr" +},h=[c,a,n,e.C_BLOCK_COMMENT_MODE,l,s],f={variants:[{begin:/=/,end:/;/},{ +begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}], +keywords:p,contains:h.concat([{begin:/\(/,end:/\)/,keywords:p, +contains:h.concat(["self"]),relevance:0}]),relevance:0},m={ +begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0, +keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:p,relevance:0},{ +begin:d,returnBegin:!0,contains:[e.inherit(u,{className:"title.function"})], +relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/, +keywords:p,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,l,a,{begin:/\(/, +end:/\)/,keywords:p,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,s,l,a] +}]},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:p, +disableAutodetect:!0,illegal:"=]/,contains:[{ +beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c, +strings:s,keywords:p}}},clojure:function(e){ +const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",o={ +$pattern:n, +built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize" +},i={begin:n,relevance:0},a={scope:"number",relevance:0,variants:[{ +match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{ +match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{ +match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{ +match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{ +match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{ +match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/, +relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE] +},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation", +match:/,/,relevance:0},d=e.COMMENT(";","$",{relevance:0}),p={ +className:"literal",begin:/\b(true|false|nil)\b/},h={ +begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},f={className:"symbol", +begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0 +},v={keywords:o,className:"name",begin:n,relevance:0,starts:g +},b=[u,m,s,l,c,d,f,h,a,p,i],O={beginKeywords:r,keywords:{$pattern:n,keyword:r}, +end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n, +relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)} +;return m.contains=[O,v,g],g.contains=b,h.contains=b,{name:"Clojure", +aliases:["clj","edn"],illegal:/\S/,contains:[u,m,s,l,c,d,f,h,a,p]}}, +cpp:function(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}] +}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",i="(?!struct)("+r+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={ +className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{ +begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{ +begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)", +end:"'",illegal:"."},e.END_SAME_AS_BEGIN({ +begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={ +className:"number",variants:[{begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" +},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{ +keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" +},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{ +className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={ +className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0 +},d=t.optional(o)+e.IDENT_RE+"\\s*\\(",p={ +type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"], +keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"], +literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"], +_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"] +},h={className:"function.dispatch",relevance:0,keywords:{ +_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"] +}, +begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/)) +},f=[h,c,a,n,e.C_BLOCK_COMMENT_MODE,l,s],m={variants:[{begin:/=/,end:/;/},{ +begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}], +keywords:p,contains:f.concat([{begin:/\(/,end:/\)/,keywords:p, +contains:f.concat(["self"]),relevance:0}]),relevance:0},g={className:"function", +begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0, +keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:p,relevance:0},{ +begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{ +begin:/:/,endsWithParent:!0,contains:[s,l]},{relevance:0,match:/,/},{ +className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0, +contains:[n,e.C_BLOCK_COMMENT_MODE,s,l,a,{begin:/\(/,end:/\)/,keywords:p, +relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,s,l,a]}] +},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++", +aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"",keywords:p,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:p},{ +match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/], +className:{1:"keyword",3:"title.class"}}])}},css:function(e){ +const t=e.regex,n=(e=>({IMPORTANT:{scope:"meta",begin:"!important"}, +BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number", +begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{ +className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{ +scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$", +contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{ +scope:"number", +begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", +relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/} +}))(e),r=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS", +case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"}, +classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,{ +begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n.CSS_NUMBER_MODE,{ +className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{ +className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0 +},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{ +begin:":("+FT.join("|")+")"},{begin:":(:)?("+qT.join("|")+")"}] +},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+zT.join("|")+")\\b"},{ +begin:/:/,end:/[;}{]/, +contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...r,{ +begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri" +},contains:[...r,{className:"string",begin:/[^)]/,endsWithParent:!0, +excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]", +relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/ +},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{ +$pattern:/[a-z-]+/,keyword:"and or not only",attribute:UT.join(" ")},contains:[{ +begin:/[a-z-]+(?=:)/,className:"attribute"},...r,n.CSS_NUMBER_MODE]}]},{ +className:"selector-tag",begin:"\\b("+jT.join("|")+")\\b"}]}}, +curl:Jf((function(e){const t={className:"string",begin:/"/,end:/"/, +contains:[e.BACKSLASH_ESCAPE,{className:"variable",begin:/\$\(/,end:/\)/, +contains:[e.BACKSLASH_ESCAPE]}],relevance:0},n={className:"number",variants:[{ +begin:e.C_NUMBER_RE}],relevance:0};return{name:"curl",aliases:["curl"], +keywords:"curl",case_insensitive:!0,contains:[{className:"literal", +begin:/(--request|-X)\s/,contains:[{className:"symbol", +begin:/(get|post|delete|options|head|put|patch|trace|connect)/,end:/\s/, +returnEnd:!0}],returnEnd:!0,relevance:10},{className:"literal",begin:/--/, +end:/[\s"]/,returnEnd:!0,relevance:0},{className:"literal",begin:/-\w/, +end:/[\s"]/,returnEnd:!0,relevance:0},t,{className:"string",begin:/\\"/, +relevance:0},{className:"string",begin:/'/,end:/'/,relevance:0 +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n,{match:/(\/[a-z._-]+)+/}]}})), +csharp:function(e){const t={ +keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]), +built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"], +literal:["default","false","null","true"]},n=e.inherit(e.TITLE_MODE,{ +begin:"[a-zA-Z](\\.?\\w)*"}),r={className:"number",variants:[{ +begin:"\\b(0b[01']+)"},{ +begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{ +begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" +}],relevance:0},o={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}] +},i=e.inherit(o,{illegal:/\n/}),a={className:"subst",begin:/\{/,end:/\}/, +keywords:t},s=e.inherit(a,{illegal:/\n/}),l={className:"string",begin:/\$"/, +end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/ +},e.BACKSLASH_ESCAPE,s]},c={className:"string",begin:/\$@"/,end:'"',contains:[{ +begin:/\{\{/},{begin:/\}\}/},{begin:'""'},a]},u=e.inherit(c,{illegal:/\n/, +contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]}) +;a.contains=[c,l,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.C_BLOCK_COMMENT_MODE], +s.contains=[u,l,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.inherit(e.C_BLOCK_COMMENT_MODE,{ +illegal:/\n/})];const d={variants:[c,l,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] +},p={begin:"<",end:">",contains:[{beginKeywords:"in out"},n] +},h=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",f={ +begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"], +keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0, +contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{ +begin:"\x3c!--|--\x3e"},{begin:""}]}] +}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#", +end:"$",keywords:{ +keyword:"if else elif endif define undef warning error line region endregion pragma checksum" +}},d,r,{beginKeywords:"class interface",relevance:0,end:/[{;=]/, +illegal:/[^\s:,]/,contains:[{beginKeywords:"where class" +},n,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace", +relevance:0,end:/[{;=]/,illegal:/[^\s:]/, +contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ +beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/, +contains:[n,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta", +begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{ +className:"string",begin:/"/,end:/"/}]},{ +beginKeywords:"new return throw await else",relevance:0},{className:"function", +begin:"("+h+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0, +end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{ +beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "), +relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0, +contains:[e.TITLE_MODE,p],relevance:0},{match:/\(\)/},{className:"params", +begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0, +contains:[d,r,e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},f]}},elixir:function(e){ +const t=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r={$pattern:n, +keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"], +literal:["false","nil","true"]},o={className:"subst",begin:/#\{/,end:/\}/, +keywords:r},i={match:/\\[\s\S]/,scope:"char.escape",relevance:0 +},a="[/|([{<\"']",s=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//, +end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{ +begin:/\{/,end:/\}/},{begin://}],l=e=>({scope:"char.escape", +begin:t.concat(/\\/,e),relevance:0}),c={className:"string", +begin:"~[a-z](?="+a+")",contains:s.map((t=>e.inherit(t,{contains:[l(t.end),i,o] +})))},u={className:"string",begin:"~[A-Z](?="+a+")", +contains:s.map((t=>e.inherit(t,{contains:[l(t.end)]})))},d={className:"regex", +variants:[{begin:"~r(?="+a+")",contains:s.map((n=>e.inherit(n,{ +end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end),i,o]})))},{ +begin:"~R(?="+a+")",contains:s.map((n=>e.inherit(n,{ +end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end)]})))}]},p={ +className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/, +end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{ +begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{ +begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},h={ +className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/, +contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},f=e.inherit(h,{ +className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord", +end:/\bdo\b|$|;/}),m=[p,d,u,c,e.HASH_COMMENT_MODE,f,h,{begin:"::"},{ +className:"symbol",begin:":(?![\\s:])",contains:[p,{ +begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?" +}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{ +className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},{ +className:"number", +begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)", +relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}] +;return o.contains=m,{name:"Elixir",aliases:["ex","exs"],keywords:r,contains:m} +},go:function(e){const t={ +keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"], +type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"], +literal:["true","false","iota","nil"], +built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"] +};return{name:"Go",aliases:["golang"],keywords:t,illegal:")?",/~~~/g,2),o={ +keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"], +literal:["false","true","null"], +type:["char","boolean","long","float","int","byte","short","double"], +built_in:["super","this"]},i={className:"meta",begin:"@"+n,contains:[{ +begin:/\(/,end:/\)/,contains:["self"]}]},a={className:"params",begin:/\(/, +end:/\)/,keywords:o,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0} +;return{name:"Java",aliases:["jsp"],keywords:o,illegal:/<\/|#/, +contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/, +relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{ +begin:/import java\.[a-z]+\./,keywords:"import",relevance:2 +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/, +className:"string",contains:[e.BACKSLASH_ESCAPE] +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{ +match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{ +1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{ +begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type", +3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword", +3:"title.class"},contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ +beginKeywords:"new throw return else",relevance:0},{ +begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{ +2:"title.function"},keywords:o,contains:[{className:"params",begin:/\(/, +end:/\)/,keywords:o,relevance:0, +contains:[i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,WT,e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},WT,i]}},javascript:function(e){ +const t=e.regex,n=YT,r="<>",o="",i={begin:/<[A-Za-z0-9\\._:-]+/, +end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{ +const n=e[0].length+e.index,r=e.input[n] +;if("<"===r||","===r)return void t.ignoreMatch();let o +;">"===r&&(((e,{after:t})=>{const n="",A={ +match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(C)], +keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]} +;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{ +PARAMS_CONTAINS:O,CLASS_REFERENCE:x},illegal:/#(?![$_A-z])/, +contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{ +label:"use_strict",className:"meta",relevance:10, +begin:/^\s*['"]use (strict|asm)['"]/ +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,f,m,g,{match:/\$\d+/},u,x,{ +className:"attr",begin:n+t.lookahead(":"),relevance:0},A,{ +begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*", +keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{ +className:"function",begin:C,returnBegin:!0,end:"\\s*=>",contains:[{ +className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{ +className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0, +excludeEnd:!0,keywords:a,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/, +relevance:0},{variants:[{begin:r,end:o},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{ +begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml", +contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},k,{ +beginKeywords:"while if switch catch for"},{ +begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", +returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:n, +className:"title.function"})]},{match:/\.\.\./,relevance:0},E,{match:"\\$"+n, +relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"}, +contains:[y]},S,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, +className:"variable.constant"},w,T,{match:/\$[(.]/}]}},json:function(e){ +const t=["true","false","null"],n={scope:"literal",beginKeywords:t.join(" ")} +;return{name:"JSON",keywords:{literal:t},contains:[{className:"attr", +begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/, +className:"punctuation",relevance:0 +},e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE], +illegal:"\\S"}},kotlin:function(e){const t={ +keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual", +built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing", +literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@" +},r={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={ +className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},i={className:"string", +variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,r]},{begin:"'",end:"'", +illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/, +contains:[e.BACKSLASH_ESCAPE,o,r]}]};r.contains.push(i);const a={ +className:"meta", +begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?" +},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/, +end:/\)/,contains:[e.inherit(i,{className:"string"}),"self"]}] +},l=sC,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={ +variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/, +contains:[]}]},d=u;return d.variants[1].contains=[u],u.variants[1].contains=[d], +{name:"Kotlin",aliases:["kt","kts"],keywords:t, +contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag", +begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword", +begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol", +begin:/@\w+/}]}},n,a,s,{className:"function",beginKeywords:"fun",end:"[(]|$", +returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{ +begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0, +contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://, +keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/, +endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/, +endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,c],relevance:0 +},e.C_LINE_COMMENT_MODE,c,a,s,i,e.C_NUMBER_MODE]},c]},{ +begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{ +3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0, +illegal:"extends implements",contains:[{ +beginKeywords:"public protected internal private constructor" +},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0, +excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/, +excludeBegin:!0,returnEnd:!0},a,s]},i,{className:"meta",begin:"^#!/usr/bin/env", +end:"$",illegal:"\n"},l]}},less:function(e){const t=(e=>({IMPORTANT:{ +scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{ +scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/}, +FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/}, +ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$", +contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{ +scope:"number", +begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", +relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/} +}))(e),n=hC,r="[\\w-]+",o="("+r+"|@\\{"+r+"\\})",i=[],a=[],s=function(e){return{ +className:"string",begin:"~?"+e+".*?"+e}},l=function(e,t,n){return{className:e, +begin:t,relevance:n}},c={$pattern:/[a-z-]+/,keyword:"and or not only", +attribute:cC.join(" ")},u={begin:"\\(",end:"\\)",contains:a,keywords:c, +relevance:0} +;a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s("'"),s('"'),t.CSS_NUMBER_MODE,{ +begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]", +excludeEnd:!0} +},t.HEXCOLOR,u,l("variable","@@?"+r,10),l("variable","@\\{"+r+"\\}"),l("built_in","~?`[^`]*?`"),{ +className:"attribute",begin:r+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0 +},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const d=a.concat({ +begin:/\{/,end:/\}/,contains:i}),p={beginKeywords:"when",endsWithParent:!0, +contains:[{beginKeywords:"and not"}].concat(a)},h={begin:o+"\\s*:", +returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/ +},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+pC.join("|")+")\\b", +end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}] +},f={className:"keyword", +begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b", +starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:a,relevance:0}},m={ +className:"variable",variants:[{begin:"@"+r+"\\s*:",relevance:15},{begin:"@"+r +}],starts:{end:"[;}]",returnEnd:!0,contains:d}},g={variants:[{ +begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0, +returnEnd:!0,illegal:"[<='$\"]",relevance:0, +contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+r+"\\}"),{ +begin:"\\b("+lC.join("|")+")\\b",className:"selector-tag" +},t.CSS_NUMBER_MODE,l("selector-tag",o,0),l("selector-id","#"+o),l("selector-class","\\."+o,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{ +className:"selector-pseudo",begin:":("+uC.join("|")+")"},{ +className:"selector-pseudo",begin:":(:)?("+dC.join("|")+")"},{begin:/\(/, +end:/\)/,relevance:0,contains:d},{begin:"!important"},t.FUNCTION_DISPATCH]},v={ +begin:r+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[g]} +;return i.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,m,v,h,g,p,t.FUNCTION_DISPATCH), +{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:i}}, +makefile:function(e){const t={className:"variable",variants:[{ +begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{ +begin:/\$[@%",subLanguage:"xml", +relevance:0},n={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{ +begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/, +relevance:2},{ +begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/), +relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{ +begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/ +},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0, +returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)", +excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[", +end:"\\]",excludeBegin:!0,excludeEnd:!0}]},r={className:"strong",contains:[], +variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}] +},o={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{ +begin:/_(?![_\s])/,end:/_/,relevance:0}]},i=e.inherit(r,{contains:[] +}),a=e.inherit(o,{contains:[]});r.contains.push(a),o.contains.push(i) +;let s=[t,n];return[r,o,i,a].forEach((e=>{e.contains=e.contains.concat(s) +})),s=s.concat(r,o),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{ +className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:s},{ +begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n", +contains:s}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)", +end:"\\s+",excludeEnd:!0},r,o,{className:"quote",begin:"^>\\s+",contains:s, +end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{ +begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{ +begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))", +contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{ +begin:"^[-\\*]{3,}",end:"$"},n,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{ +className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{ +className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}},matlab:function(e){ +const t="('|\\.')+",n={relevance:0,contains:[{begin:t}]};return{name:"Matlab", +keywords:{ +keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while", +built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell " +},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function", +beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{ +className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}] +},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{ +begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number", +begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'", +contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{ +className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n +},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}, +nginx:function(e){const t=e.regex,n={className:"variable",variants:[{ +begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE) +}]},r={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/, +literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"] +},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string", +contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/ +}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n] +},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^", +end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{ +begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number", +begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{ +className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{ +name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{ +beginKeywords:"upstream location",end:/;|\{/,contains:r.contains,keywords:{ +section:"upstream location"}},{className:"section", +begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{ +begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{ +className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}], +illegal:"[^\\s\\}\\{]"}},objectivec:function(e){ +const t=/[a-zA-Z@][a-zA-Z0-9_]*/,n={$pattern:t, +keyword:["@interface","@class","@protocol","@implementation"]};return{ +name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"], +keywords:{"variable.language":["this","super"],$pattern:t, +keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"], +literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"], +built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"], +type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"] +},illegal:"/,end:/$/,illegal:"\\n" +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class", +begin:"("+n.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:n, +contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE, +relevance:0}]}},ocaml:function(e){return{name:"OCaml",aliases:["ml"],keywords:{ +$pattern:"[a-z_]\\w*!?", +keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value", +built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref", +literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal", +begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{ +contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{ +className:"type",begin:"`[A-Z][\\w']*"},{className:"type", +begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0 +},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0 +}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number", +begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)", +relevance:0},{begin:/->/}]}},php:function(e){ +const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),o=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),i={ +scope:"variable",match:"\\$+"+r},a={scope:"subst",variants:[{begin:/\$\w+/},{ +begin:/\{\$/,end:/\}/}]},s=e.inherit(e.APOS_STRING_MODE,{illegal:null +}),l="[ \t\n]",c={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{ +illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(a)}),s,{ +begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/, +contains:e.QUOTE_STRING_MODE.contains.concat(a),"on:begin":(e,t)=>{ +t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{ +t.data._beginMatch!==e[1]&&t.ignoreMatch()}},e.END_SAME_AS_BEGIN({ +begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/})]},u={scope:"number",variants:[{ +begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{ +begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{ +begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?" +}],relevance:0 +},d=["false","null","true"],p=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],h=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],f={ +keyword:p,literal:(e=>{const t=[];return e.forEach((e=>{ +t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase()) +})),t})(d),built_in:h},m=e=>e.map((e=>e.replace(/\|\d+$/,""))),g={variants:[{ +match:[/new/,t.concat(l,"+"),t.concat("(?!",m(h).join("\\b|"),"\\b)"),o],scope:{ +1:"keyword",4:"title.class"}}]},v=t.concat(r,"\\b(?!\\()"),b={variants:[{ +match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{2:"variable.constant" +}},{match:[/::/,/class/],scope:{2:"variable.language"}},{ +match:[o,t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{1:"title.class", +3:"variable.constant"}},{match:[o,t.concat("::",t.lookahead(/(?!class\b)/))], +scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class", +3:"variable.language"}}]},O={scope:"attr", +match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},y={relevance:0, +begin:/\(/,end:/\)/,keywords:f,contains:[O,i,b,e.C_BLOCK_COMMENT_MODE,c,u,g] +},w={relevance:0, +match:[/\b/,t.concat("(?!fn\\b|function\\b|",m(p).join("\\b|"),"|",m(h).join("\\b|"),"\\b)"),r,t.concat(l,"*"),t.lookahead(/(?=\()/)], +scope:{3:"title.function.invoke"},contains:[y]};y.contains.push(w) +;const x=[O,b,e.C_BLOCK_COMMENT_MODE,c,u,g];return{case_insensitive:!1, +keywords:f,contains:[{begin:t.concat(/#\[\s*/,o),beginScope:"meta",end:/]/, +endScope:"meta",keywords:{literal:d,keyword:["new","array"]},contains:[{ +begin:/\[/,end:/]/,keywords:{literal:d,keyword:["new","array"]}, +contains:["self",...x]},...x,{scope:"meta",match:o}] +},e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{ +scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/, +keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE, +contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{ +begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{ +begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},i,w,b,{ +match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},g,{ +scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/, +excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use" +},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params", +begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:f, +contains:["self",i,b,e.C_BLOCK_COMMENT_MODE,c,u]}]},{scope:"class",variants:[{ +beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait", +illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{ +beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{ +beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/, +contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{ +beginKeywords:"use",relevance:0,end:";",contains:[{ +match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},c,u]} +},plaintext:function(e){return{name:"Plain text",aliases:["text","txt"], +disableAutodetect:!0}},powershell:function(e){const t={ +$pattern:/-?[A-z\.\-]+\b/, +keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter", +built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write" +},n={begin:"`[\\s\\S]",relevance:0},r={className:"variable",variants:[{ +begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}] +},o={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}], +contains:[n,r,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},i={ +className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}] +},a=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/, +end:/#>/}],contains:[{className:"doctag",variants:[{ +begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/ +},{ +begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/ +}]}]}),s={className:"built_in",variants:[{ +begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+") +}]},l={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0, +relevance:0,contains:[e.TITLE_MODE]},c={className:"function", +begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0, +contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title", +begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/, +className:"params",relevance:0,contains:[r]}]},u={begin:/using\s/,end:/$/, +returnBegin:!0,contains:[o,i,{className:"keyword", +begin:/(using|assembly|command|module|namespace|type)/}]},d={variants:[{ +className:"operator", +begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b") +},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},p={ +className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0, +relevance:0,contains:[{className:"keyword", +begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0, +relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})] +},h=[p,a,n,e.NUMBER_MODE,o,i,s,r,{className:"literal", +begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0 +}],f={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0, +contains:[].concat("self",h,{ +begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")", +className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/, +relevance:0})};return p.contains.unshift(f),{name:"PowerShell", +aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:t, +contains:h.concat(l,c,u,d,f)}},python:function(e){ +const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={ +$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r, +built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"], +literal:["__debug__","Ellipsis","False","None","NotImplemented","True"], +type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"] +},i={className:"meta",begin:/^(>>>|\.\.\.) /},a={className:"subst",begin:/\{/, +end:/\}/,keywords:o,illegal:/#/},s={begin:/\{\{/,relevance:0},l={ +className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{ +begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/, +contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{ +begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/, +contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{ +begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/, +contains:[e.BACKSLASH_ESCAPE,i,s,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/, +end:/"""/,contains:[e.BACKSLASH_ESCAPE,i,s,a]},{begin:/([uU]|[rR])'/,end:/'/, +relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{ +begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/, +end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/, +contains:[e.BACKSLASH_ESCAPE,s,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/, +contains:[e.BACKSLASH_ESCAPE,s,a]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE] +},c="[0-9](_?[0-9])*",u=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,d=`\\b|${r.join("|")}`,p={ +className:"number",relevance:0,variants:[{ +begin:`(\\b(${c})|(${u}))[eE][+-]?(${c})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{ +begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{ +begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})` +},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${c})[jJ](?=${d})` +}]},h={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:o, +contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},f={ +className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/, +end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o, +contains:["self",i,p,l,e.HASH_COMMENT_MODE]}]};return a.contains=[l,p,i],{ +name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o, +illegal:/(<\/|\?)|=>/,contains:[i,p,{begin:/\bself\b/},{beginKeywords:"if", +relevance:0},l,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{ +1:"keyword",3:"title.function"},contains:[f]},{variants:[{ +match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}], +scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{ +className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,f,l]}]}}, +r:function(e){ +const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/) +;return{name:"R",keywords:{$pattern:n, +keyword:"function if in break next repeat else for while", +literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10", +built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm" +},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/, +starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)), +endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{ +scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0 +}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}] +}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE], +variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/ +}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"', +relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{ +1:"operator",2:"number"},match:[o,r]},{scope:{1:"operator",2:"number"}, +match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[i,r]},{scope:{ +2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"}, +match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{ +match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`", +contains:[{begin:/\\./}]}]}},ruby:function(e){ +const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=t.concat(r,/(::\w+)*/),i={ +"variable.constant":["__FILE__","__LINE__","__ENCODING__"], +"variable.language":["self","super"], +keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"], +built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"], +literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},s={ +begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[a] +}),e.COMMENT("^=begin","^=end",{contains:[a],relevance:10 +}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/, +end:/\}/,keywords:i},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c], +variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{ +begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{ +begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//, +end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{ +begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{ +begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{ +begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{ +begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{ +begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)), +contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/, +contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[0-9](_?[0-9])*",p={className:"number", +relevance:0,variants:[{ +begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{ +begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b" +},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{ +begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{ +begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{ +className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0, +keywords:i}]},f=[u,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{ +match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class", +4:"title.class.inherited"},keywords:i},{match:[/(include|extend)\s+/,o],scope:{ +2:"title.class"},keywords:i},{relevance:0,match:[o,/\.new[. (]/],scope:{ +1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, +className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{ +match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[h]},{ +begin:e.IDENT_RE+"::"},{className:"symbol", +begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol", +begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},p,{className:"variable", +begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{ +className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0, +relevance:0,keywords:i},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*", +keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c], +illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{ +begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[", +end:"\\][a-z]*"}]}].concat(s,l),relevance:0}].concat(s,l) +;c.contains=f,h.contains=f;const m=[{begin:/^\s*=>/,starts:{end:"$",contains:f} +},{className:"meta.prompt", +begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])", +starts:{end:"$",keywords:i,contains:f}}];return l.unshift(s),{name:"Ruby", +aliases:["rb","gemspec","podspec","thor","irb"],keywords:i,illegal:/\/\*/, +contains:[e.SHEBANG({binary:"ruby"})].concat(m).concat(l).concat(f)}}, +rust:function(e){const t=e.regex,n={className:"title.function.invoke", +relevance:0, +begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/)) +},r="([ui](8|16|32|64|128|size)|f(32|64))?",o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],i=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"] +;return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:i, +keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"], +literal:["true","false","Some","None","Ok","Err"],built_in:o},illegal:""},n]}}, +scss:function(e){const t=(e=>({IMPORTANT:{scope:"meta",begin:"!important"}, +BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number", +begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{ +className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{ +scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$", +contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{ +scope:"number", +begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", +relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/} +}))(e),n=vC,r=gC,o="@[a-z-]+",i={className:"variable", +begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS", +case_insensitive:!0,illegal:"[=/|']", +contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{ +className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{ +className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0 +},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag", +begin:"\\b("+fC.join("|")+")\\b",relevance:0},{className:"selector-pseudo", +begin:":("+r.join("|")+")"},{className:"selector-pseudo", +begin:":(:)?("+n.join("|")+")"},i,{begin:/\(/,end:/\)/, +contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute", +begin:"\\b("+bC.join("|")+")\\b"},{ +begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" +},{begin:/:/,end:/[;}{]/,relevance:0, +contains:[t.BLOCK_COMMENT,i,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH] +},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{ +begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/, +keyword:"and or not only",attribute:mC.join(" ")},contains:[{begin:o, +className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute" +},i,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE] +},t.FUNCTION_DISPATCH]}},shell:function(e){return{name:"Shell Session", +aliases:["console","shellsession"],contains:[{className:"meta.prompt", +begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/, +subLanguage:"bash"}}]}},sql:function(e){ +const t=e.regex,n=e.COMMENT("--","$"),r=["true","false","unknown"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],i=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],a=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],s=i,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!i.includes(e))),c={ +begin:t.concat(/\b/,t.either(...s),/\s*\(/),relevance:0,keywords:{built_in:s}} +;return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{ +$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:n}={}){const r=n +;return t=t||[],e.map((e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)) +}(l,{when:e=>e.length<3}),literal:r,type:o, +built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"] +},contains:[{begin:t.either(...a),relevance:0,keywords:{$pattern:/[\w\.]+/, +keyword:l.concat(a),literal:r,type:o}},{className:"type", +begin:t.either("double precision","large object","with timezone","without timezone") +},c,{className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},{className:"string", +variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/, +contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{ +className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/, +relevance:0}]}},swift:function(e){const t={match:/\s+/,relevance:0 +},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],o={ +match:[/\./,xC(...SC,..._C)],className:{2:"keyword"}},i={ +match:wC(/\./,xC(...TC)),relevance:0 +},a=TC.filter((e=>"string"==typeof e)).concat(["_|0"]),s={variants:[{ +className:"keyword", +match:xC(...TC.filter((e=>"string"!=typeof e)).concat(EC).map(kC),..._C)}]},l={ +$pattern:xC(/\b\w+/,/#\w+/),keyword:a.concat(PC),literal:CC},c=[o,i,s],u=[{ +match:wC(/\./,xC(...DC)),relevance:0},{className:"built_in", +match:wC(/\b/,xC(...DC),/(?=\()/)}],d={match:/->/,relevance:0},p=[d,{ +className:"operator",relevance:0,variants:[{match:NC},{match:`\\.(\\.|${RC})+`}] +}],h="([0-9]_*)+",f="([0-9a-fA-F]_*)+",m={className:"number",relevance:0, +variants:[{match:`\\b(${h})(\\.(${h}))?([eE][+-]?(${h}))?\\b`},{ +match:`\\b0x(${f})(\\.(${f}))?([pP][+-]?(${h}))?\\b`},{match:/\b0o([0-7]_*)+\b/ +},{match:/\b0b([01]_*)+\b/}]},g=(e="")=>({className:"subst",variants:[{ +match:wC(/\\/,e,/[0\\tnr"']/)},{match:wC(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}] +}),v=(e="")=>({className:"subst",match:wC(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/) +}),b=(e="")=>({className:"subst",label:"interpol",begin:wC(/\\/,e,/\(/),end:/\)/ +}),O=(e="")=>({begin:wC(e,/"""/),end:wC(/"""/,e),contains:[g(e),v(e),b(e)] +}),y=(e="")=>({begin:wC(e,/"/),end:wC(/"/,e),contains:[g(e),b(e)]}),w={ +className:"string", +variants:[O(),O("#"),O("##"),O("###"),y(),y("#"),y("##"),y("###")] +},x=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0, +contains:[e.BACKSLASH_ESCAPE]}],k={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//, +contains:x},S=e=>{const t=wC(e,/\//),n=wC(/\//,e);return{begin:t,end:n, +contains:[...x,{scope:"comment",begin:`#(?!.*${n})`,end:/$/}]}},_={ +scope:"regexp",variants:[S("###"),S("##"),S("#"),k]},E={match:wC(/`/,LC,/`/) +},T=[E,{className:"variable",match:/\$\d+/},{className:"variable", +match:`\\$${MC}+`}],C=[{match:/(@|#(un)?)available/,scope:"keyword",starts:{ +contains:[{begin:/\(/,end:/\)/,keywords:jC,contains:[...p,m,w]}]}},{ +scope:"keyword",match:wC(/@/,xC(...QC))},{scope:"meta",match:wC(/@/,LC)}],A={ +match:yC(/\b[A-Z]/),relevance:0,contains:[{className:"type", +match:wC(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,MC,"+") +},{className:"type",match:BC,relevance:0},{match:/[?!]+/,relevance:0},{ +match:/\.\.\./,relevance:0},{match:wC(/\s+&\s+/,yC(BC)),relevance:0}]},P={ +begin://,keywords:l,contains:[...r,...c,...C,d,A]};A.contains.push(P) +;const D={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",{ +match:wC(LC,/\s*:/),keywords:"_|0",relevance:0 +},...r,_,...c,...u,...p,m,w,...T,...C,A]},$={begin://, +keywords:"repeat each",contains:[...r,A]},R={begin:/\(/,end:/\)/,keywords:l, +contains:[{begin:xC(yC(wC(LC,/\s*:/)),yC(wC(LC,/\s+/,LC,/\s*:/))),end:/:/, +relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params", +match:LC}]},...r,...c,...p,m,w,...C,A,D],endsParent:!0,illegal:/["']/},N={ +match:[/(func|macro)/,/\s+/,xC(E.match,LC,NC)],className:{1:"keyword", +3:"title.function"},contains:[$,R,t],illegal:[/\[/,/%/]},I={ +match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"}, +contains:[$,R,t],illegal:/\[|%/},M={match:[/operator/,/\s+/,NC],className:{ +1:"keyword",3:"title"}},L={begin:[/precedencegroup/,/\s+/,BC],className:{ +1:"keyword",3:"title"},contains:[A],keywords:[...AC,...CC],end:/}/} +;for(const B of w.variants){const e=B.contains.find((e=>"interpol"===e.label)) +;e.keywords=l;const t=[...c,...u,...p,m,w,...T];e.contains=[...t,{begin:/\(/, +end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:l, +contains:[...r,N,I,{beginKeywords:"struct protocol class extension enum actor", +end:"\\{",excludeEnd:!0,keywords:l,contains:[e.inherit(e.TITLE_MODE,{ +className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c] +},M,L,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0 +},_,...c,...u,...p,m,w,...T,...C,A,D]}},typescript:function(e){ +const t=function(e){const t=e.regex,n=UC,r="<>",o="",i={ +begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/, +isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n] +;if("<"===r||","===r)return void t.ignoreMatch();let o +;">"===r&&(((e,{after:t})=>{const n="",A={ +match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(C)], +keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]} +;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{ +PARAMS_CONTAINS:O,CLASS_REFERENCE:x},illegal:/#(?![$_A-z])/, +contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{ +label:"use_strict",className:"meta",relevance:10, +begin:/^\s*['"]use (strict|asm)['"]/ +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,f,m,g,{match:/\$\d+/},u,x,{ +className:"attr",begin:n+t.lookahead(":"),relevance:0},A,{ +begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*", +keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{ +className:"function",begin:C,returnBegin:!0,end:"\\s*=>",contains:[{ +className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{ +className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0, +excludeEnd:!0,keywords:a,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/, +relevance:0},{variants:[{begin:r,end:o},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{ +begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml", +contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},k,{ +beginKeywords:"while if switch catch for"},{ +begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{", +returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:n, +className:"title.function"})]},{match:/\.\.\./,relevance:0},E,{match:"\\$"+n, +relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"}, +contains:[y]},S,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/, +className:"variable.constant"},w,T,{match:/\$[(.]/}]} +}(e),n=UC,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={ +beginKeywords:"namespace",end:/\{/,excludeEnd:!0, +contains:[t.exports.CLASS_REFERENCE]},i={beginKeywords:"interface",end:/\{/, +excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r}, +contains:[t.exports.CLASS_REFERENCE]},a={$pattern:UC, +keyword:FC.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]), +literal:qC,built_in:WC.concat(r),"variable.language":VC},s={className:"meta", +begin:"@"+n},l=(e,t,n)=>{const r=e.contains.findIndex((e=>e.label===t)) +;if(-1===r)throw new Error("can not find mode to replace") +;e.contains.splice(r,1,n)} +;return Object.assign(t.keywords,a),t.exports.PARAMS_CONTAINS.push(s), +t.contains=t.contains.concat([s,o,i]), +l(t,"shebang",e.SHEBANG()),l(t,"use_strict",{className:"meta",relevance:10, +begin:/^\s*['"]use strict['"]/ +}),t.contains.find((e=>"func.def"===e.label)).relevance=0,Object.assign(t,{ +name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t},xml:XC,yaml:function(e){ +const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={ +className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/ +},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable", +variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},o=e.inherit(r,{ +variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),i={ +className:"number", +begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b" +},a={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},s={ +begin:/\{/,end:/\}/,contains:[a],illegal:"\\n",relevance:0},l={begin:"\\[", +end:"\\]",contains:[a],illegal:"\\n",relevance:0},c=[{className:"attr", +variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{ +begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)" +}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string", +begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{ +begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0, +relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type", +begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n +},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta", +begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)", +relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},i,{ +className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},s,l,r],u=[...c] +;return u.pop(),u.push(o),a.contains=u,{name:"YAML",case_insensitive:!0, +aliases:["yml"],contains:c}}},mP=function(e,...t){return t=>{ +(null==e?void 0:e.transform)&&(null==e?void 0:e.type)&&og(t,null==e?void 0:e.type,(t=>((null==e?void 0:e.transform)&&(null==e||e.transform(t)), +ng)))}};function gP(e){return OT().use(_E).use(W_).parse(e)}function vP(e,t=1){ +const n=gP(e),r=[];return og(n,"heading",(e=>{const n=bP(e);n&&r.push({ +depth:e.depth??t,value:n.value})})),r}function bP(e){if("text"===e.type)return e +;if("children"in e&&e.children)for(const t of e.children){const e=bP(t) +;if(e)return e}return null}function OP(e){var t;const n=gP(e),r=[];let o=[] +;return null==(t=n.children)||t.forEach((e=>{ +"heading"===e.type?(o.length&&r.push(o),r.push([e]),o=[]):o.push(e) +})),o.length&&r.push(o),r.map((e=>function(e){ +const t=OT().use(HE).use(W_).stringify({type:"root",children:e});return t.trim() +}(e)))}const yP=(e,t)=>e.map((e=>({...e,slug:t.slug(e.value)})));function wP(e){ +const t=new jh,n=vP(e);return yP(n,t)}const xP=e=>{ +const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1};function kP(e){ +var t,n;if(!e)return{} +;const r=Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.schemas)??{}).length?null==(n=null==e?void 0:e.components)?void 0:n.schemas:Object.keys((null==e?void 0:e.definitions)??{}).length?null==e?void 0:e.definitions:{} +;return Object.keys(r??{}).forEach((e=>{var t +;!0===(null==(t=r[e])?void 0:t["x-internal"])&&delete r[e]})),r} +const SP=e=>!!e&&!!Object.keys(kP(e)??{}).length,_P=e=>{var t +;return!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.securitySchemes)??{}).length +},EP=(e,t)=>e.replace(/\/$/,"")+"/"+t.replace(/^\//,""),{server:TP}=mp(),{setOperation:CP,setGlobalSecurity:AP}=Kd(),{toggleApiClient:PP}=Hd(),{setActiveRequest:DP,resetActiveResponse:$P}={ +readOnly:lp,activeRequest:np,activeResponse:ip,requestHistory:Jd, +requestHistoryOrder:ep,activeRequestId:tp,setActiveResponse:op, +resetActiveResponse:sp,addRequestToHistory:rp,setActiveRequest:ap} +;function RP(e,t){ +const n=function({serverState:e,authenticationState:t,operation:n,globalSecurity:r}){ +var o,i;const a=Dm({url:Md(e)},cf(n,{requiredOnly:!1 +}),t?Xs(t,(null==(o=n.information)?void 0:o.security)??r??[]):{}),s=cf(n,{ +requiredOnly:!1}),l=rf(n,"path",!1);return{id:n.operationId,name:n.name, +type:a.method,path:s.path??"",variables:l,cookies:uf(a.cookies), +query:a.queryString.map((e=>{const t=e;return{...e,enabled:t.required??!0}})), +headers:uf(a.headers),url:Md(e)??"",body:null==(i=a.postData)?void 0:i.text}}({ +serverState:TP,operation:e,authenticationState:null,globalSecurity:null}) +;$P(),DP(n),CP(e),AP(t),PP(n,!0)}const NP={"2.0":{ +title:"A JSON Schema for Swagger 2.0 API.", +id:"http://swagger.io/v2/schema.json#", +$schema:"http://json-schema.org/draft-04/schema#",type:"object", +required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{ +"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{ +type:"string",enum:["2.0"],description:"The Swagger version of this document."}, +info:{$ref:"#/definitions/info"},host:{type:"string", +pattern:"^[^{}/ :\\\\]+(?::\\d+)?$", +description:"The host (name or ip) of the API. Example: 'swagger.io'"}, +basePath:{type:"string",pattern:"^/", +description:"The base path to the API. Example: '/api'."},schemes:{ +$ref:"#/definitions/schemesList"},consumes:{ +description:"A list of MIME types accepted by the API.",allOf:[{ +$ref:"#/definitions/mediaTypeList"}]},produces:{ +description:"A list of MIME types the API can produce.",allOf:[{ +$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"}, +definitions:{$ref:"#/definitions/definitions"},parameters:{ +$ref:"#/definitions/parameterDefinitions"},responses:{ +$ref:"#/definitions/responseDefinitions"},security:{ +$ref:"#/definitions/security"},securityDefinitions:{ +$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{ +$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{ +$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object", +description:"General information about the API.",required:["version","title"], +additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string", +description:"A unique and precise title of the API."},version:{type:"string", +description:"A semantic version number of the API."},description:{type:"string", +description:"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed." +},termsOfService:{type:"string",description:"The terms of service for the API." +},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}} +},contact:{type:"object", +description:"Contact information for the owners of the API.", +additionalProperties:!1,properties:{name:{type:"string", +description:"The identifying name of the contact person/organization."},url:{ +type:"string",description:"The URL pointing to the contact information.", +format:"uri"},email:{type:"string", +description:"The email address of the contact person/organization.", +format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"} +}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{ +name:{type:"string", +description:"The name of the license type. It's encouraged to use an OSI compatible license." +},url:{type:"string",description:"The URL pointing to the license.",format:"uri" +}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{ +type:"object", +description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.", +patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{ +$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{ +type:"object",additionalProperties:{$ref:"#/definitions/schema"}, +description:"One or more JSON objects describing the schemas being consumed and produced by the API." +},parameterDefinitions:{type:"object",additionalProperties:{ +$ref:"#/definitions/parameter"}, +description:"One or more JSON representations for parameters"}, +responseDefinitions:{type:"object",additionalProperties:{ +$ref:"#/definitions/response"}, +description:"One or more JSON representations for responses"},externalDocs:{ +type:"object",additionalProperties:!1, +description:"information about external documentation",required:["url"], +properties:{description:{type:"string"},url:{type:"string",format:"uri"}}, +patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{ +type:"object",additionalProperties:!0},mimeType:{type:"string", +description:"The MIME type of the HTTP message."},operation:{type:"object", +required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{ +type:"string"},uniqueItems:!0},summary:{type:"string", +description:"A brief summary of the operation."},description:{type:"string", +description:"A longer description of the operation, GitHub Flavored Markdown is allowed." +},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string", +description:"A unique identifier of the operation."},produces:{ +description:"A list of MIME types the API can produce.",allOf:[{ +$ref:"#/definitions/mediaTypeList"}]},consumes:{ +description:"A list of MIME types the API can consume.",allOf:[{ +$ref:"#/definitions/mediaTypeList"}]},parameters:{ +$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"}, +schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1 +},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object", +additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{ +$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{ +$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"}, +options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"}, +patch:{$ref:"#/definitions/operation"},parameters:{ +$ref:"#/definitions/parametersList"}}},responses:{type:"object", +description:"Response objects names can either be any valid HTTP status code or 'default'.", +minProperties:1,additionalProperties:!1,patternProperties:{ +"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{ +$ref:"#/definitions/vendorExtension"}},not:{type:"object", +additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{ +$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{ +type:"object",required:["description"],properties:{description:{type:"string"}, +schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}] +},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples" +}},additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}}},headers:{type:"object", +additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object", +additionalProperties:!1,required:["type"],properties:{type:{type:"string", +enum:["string","number","integer","boolean","array"]},format:{type:"string"}, +items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{ +$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"}, +maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{ +$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"}, +exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{ +$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"}, +pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"}, +minItems:{$ref:"#/definitions/minItems"},uniqueItems:{ +$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{ +$ref:"#/definitions/multipleOf"},description:{type:"string"}}, +patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}, +vendorExtension:{description:"Any property starting with x- is valid.", +additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object", +required:["name","in","schema"],patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string", +description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." +},name:{type:"string",description:"The name of the parameter."},in:{ +type:"string",description:"Determines the location of the parameter.", +enum:["body"]},required:{type:"boolean", +description:"Determines whether or not this parameter is required or optional.", +default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1}, +headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean", +description:"Determines whether or not this parameter is required or optional.", +default:!1},in:{type:"string", +description:"Determines the location of the parameter.",enum:["header"]}, +description:{type:"string", +description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." +},name:{type:"string",description:"The name of the parameter."},type:{ +type:"string",enum:["string","number","boolean","integer","array"]},format:{ +type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{ +$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"}, +maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{ +$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"}, +exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{ +$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"}, +pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"}, +minItems:{$ref:"#/definitions/minItems"},uniqueItems:{ +$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{ +$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{ +additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean", +description:"Determines whether or not this parameter is required or optional.", +default:!1},in:{type:"string", +description:"Determines the location of the parameter.",enum:["query"]}, +description:{type:"string", +description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." +},name:{type:"string",description:"The name of the parameter."}, +allowEmptyValue:{type:"boolean",default:!1, +description:"allows sending a parameter by name only or with an empty value."}, +type:{type:"string",enum:["string","number","boolean","integer","array"]}, +format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"}, +collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{ +$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"}, +exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{ +$ref:"#/definitions/minimum"},exclusiveMinimum:{ +$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength" +},minLength:{$ref:"#/definitions/minLength"},pattern:{ +$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"}, +minItems:{$ref:"#/definitions/minItems"},uniqueItems:{ +$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{ +$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{ +additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean", +description:"Determines whether or not this parameter is required or optional.", +default:!1},in:{type:"string", +description:"Determines the location of the parameter.",enum:["formData"]}, +description:{type:"string", +description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." +},name:{type:"string",description:"The name of the parameter."}, +allowEmptyValue:{type:"boolean",default:!1, +description:"allows sending a parameter by name only or with an empty value."}, +type:{type:"string",enum:["string","number","boolean","integer","array","file"] +},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"}, +collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{ +$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"}, +exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{ +$ref:"#/definitions/minimum"},exclusiveMinimum:{ +$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength" +},minLength:{$ref:"#/definitions/minLength"},pattern:{ +$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"}, +minItems:{$ref:"#/definitions/minItems"},uniqueItems:{ +$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{ +$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{ +additionalProperties:!1,patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{ +required:{type:"boolean",enum:[!0], +description:"Determines whether or not this parameter is required or optional." +},in:{type:"string",description:"Determines the location of the parameter.", +enum:["path"]},description:{type:"string", +description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." +},name:{type:"string",description:"The name of the parameter."},type:{ +type:"string",enum:["string","number","boolean","integer","array"]},format:{ +type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{ +$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"}, +maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{ +$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"}, +exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{ +$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"}, +pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"}, +minItems:{$ref:"#/definitions/minItems"},uniqueItems:{ +$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{ +$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object", +required:["name","in","type"],oneOf:[{ +$ref:"#/definitions/headerParameterSubSchema"},{ +$ref:"#/definitions/formDataParameterSubSchema"},{ +$ref:"#/definitions/queryParameterSubSchema"},{ +$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{ +$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]}, +schema:{type:"object", +description:"A deterministic version of a JSON Schema object.", +patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{ +$ref:{type:"string"},format:{type:"string"},title:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"}, +exclusiveMaximum:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"}, +minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"}, +exclusiveMinimum:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"}, +maxLength:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"}, +minLength:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" +},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"}, +maxItems:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"}, +minItems:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" +},uniqueItems:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"}, +maxProperties:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"}, +minProperties:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" +},required:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/enum"}, +additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}], +default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type" +},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{ +$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1, +items:{$ref:"#/definitions/schema"}},properties:{type:"object", +additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{ +type:"string"},readOnly:{type:"boolean",default:!1},xml:{ +$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"}, +example:{}},additionalProperties:!1},fileSchema:{type:"object", +description:"A deterministic version of a JSON Schema object.", +patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}, +required:["type"],properties:{format:{type:"string"},title:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{ +type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{ +$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1}, +primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{ +type:"string",enum:["string","number","integer","boolean","array"]},format:{ +type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{ +$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"}, +maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{ +$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"}, +exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{ +$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"}, +pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"}, +minItems:{$ref:"#/definitions/minItems"},uniqueItems:{ +$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{ +$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{ +$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{ +type:"object",additionalProperties:{type:"array",items:{type:"string"}, +uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{ +type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{ +type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}}, +patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{ +type:"object",additionalProperties:!1,required:["name"],properties:{name:{ +type:"string"},description:{type:"string"},externalDocs:{ +$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object", +additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity" +},{$ref:"#/definitions/apiKeySecurity"},{ +$ref:"#/definitions/oauth2ImplicitSecurity"},{ +$ref:"#/definitions/oauth2PasswordSecurity"},{ +$ref:"#/definitions/oauth2ApplicationSecurity"},{ +$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{ +type:"object",additionalProperties:!1,required:["type"],properties:{type:{ +type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{ +"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object", +additionalProperties:!1,required:["type","name","in"],properties:{type:{ +type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string", +enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object", +additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{ +type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]}, +scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string", +format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object", +additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{ +type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{ +$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"}, +description:{type:"string"}},patternProperties:{"^x-":{ +$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{ +type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"], +properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string", +enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{ +type:"string",format:"uri"},description:{type:"string"}},patternProperties:{ +"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{ +type:"object",additionalProperties:!1, +required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{ +type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{ +$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri" +},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}}, +patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{ +type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array", +items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{ +type:"array",description:"The parameters needed to send a valid API call.", +additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{ +$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array", +description:"The transfer protocol of the API.",items:{type:"string", +enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{ +type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"}, +collectionFormatWithMulti:{type:"string", +enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"}, +exclusiveMaximum:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"}, +minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"}, +exclusiveMinimum:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"}, +maxLength:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"}, +minLength:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" +},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"}, +maxItems:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"}, +minItems:{ +$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" +},uniqueItems:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{ +$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{ +type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{ +type:"string"}}}}},"3.0":{ +id:"https://spec.openapis.org/oas/3.0/schema/2021-09-28", +$schema:"http://json-schema.org/draft-04/schema#", +description:"The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3", +type:"object",required:["openapi","info","paths"],properties:{openapi:{ +type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"}, +externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array", +items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{ +$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{ +$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"}, +components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}}, +additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"], +patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{ +type:"object",required:["title","version"],properties:{title:{type:"string"}, +description:{type:"string"},termsOfService:{type:"string",format:"uri-reference" +},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"}, +version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1}, +Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string", +format:"uri-reference"},email:{type:"string",format:"email"}}, +patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object", +required:["name"],properties:{name:{type:"string"},url:{type:"string", +format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1}, +Server:{type:"object",required:["url"],properties:{url:{type:"string"}, +description:{type:"string"},variables:{type:"object",additionalProperties:{ +$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}}, +additionalProperties:!1},ServerVariable:{type:"object",required:["default"], +properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"}, +description:{type:"string"}},patternProperties:{"^x-":{}}, +additionalProperties:!1},Components:{type:"object",properties:{schemas:{ +type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{ +$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{ +type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{ +$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{ +type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{ +$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{ +type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{ +$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}}, +requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{ +oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}}, +headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{ +$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}}, +securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{ +oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}} +},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{ +$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{ +type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{ +$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}}, +patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object", +properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0, +exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean", +default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1 +},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0, +default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer", +minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{ +type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0}, +minProperties:{type:"integer",minimum:0,default:0},required:{type:"array", +items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{}, +minItems:1,uniqueItems:!1},type:{type:"string", +enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{ +$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{ +type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{ +$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{ +$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{ +type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{ +$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{ +$ref:"#/definitions/Reference"}]},properties:{type:"object", +additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{ +$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{ +$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}], +default:!0},description:{type:"string"},format:{type:"string"},default:{}, +nullable:{type:"boolean",default:!1},discriminator:{ +$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1}, +writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{ +$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean", +default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}}, +additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"], +properties:{propertyName:{type:"string"},mapping:{type:"object", +additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{ +type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"}, +attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}}, +patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object", +required:["description"],properties:{description:{type:"string"},headers:{ +type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{ +$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{ +$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{ +oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}}, +patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object", +properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{ +$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object", +additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{ +$ref:"#/definitions/Reference"}]}},encoding:{type:"object", +additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{ +"^x-":{}},additionalProperties:!1,allOf:[{ +$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{ +summary:{type:"string"},description:{type:"string"},value:{},externalValue:{ +type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}}, +additionalProperties:!1},Header:{type:"object",properties:{description:{ +type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean", +default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string", +enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{ +type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{ +$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{ +$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{}, +examples:{type:"object",additionalProperties:{oneOf:[{ +$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}}, +patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{ +$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent" +}]},Paths:{type:"object",patternProperties:{"^\\/":{ +$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{ +type:"object",properties:{$ref:{type:"string"},summary:{type:"string"}, +description:{type:"string"},servers:{type:"array",items:{ +$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{ +$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]}, +uniqueItems:!0}},patternProperties:{ +"^(get|put|post|delete|options|head|patch|trace)$":{ +$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{ +type:"object",required:["responses"],properties:{tags:{type:"array",items:{ +type:"string"}},summary:{type:"string"},description:{type:"string"}, +externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{ +type:"string"},parameters:{type:"array",items:{oneOf:[{ +$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]}, +uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{ +$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"}, +callbacks:{type:"object",additionalProperties:{oneOf:[{ +$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{ +type:"boolean",default:!1},security:{type:"array",items:{ +$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{ +$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}}, +additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{ +$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}}, +patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response" +},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1, +additionalProperties:!1},SecurityRequirement:{type:"object", +additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object", +required:["name"],properties:{name:{type:"string"},description:{type:"string"}, +externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{ +"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object", +required:["url"],properties:{description:{type:"string"},url:{type:"string", +format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1}, +ExampleXORExamples:{description:"Example and examples are mutually exclusive", +not:{required:["example","examples"]}},SchemaXORContent:{ +description:"Schema and content are mutually exclusive, at least one is required", +not:{required:["schema","content"]},oneOf:[{required:["schema"]},{ +required:["content"], +description:"Some properties are not allowed if content is present",allOf:[{ +not:{required:["style"]}},{not:{required:["explode"]}},{not:{ +required:["allowReserved"]}},{not:{required:["example"]}},{not:{ +required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{ +type:"string"},in:{type:"string"},description:{type:"string"},required:{ +type:"boolean",default:!1},deprecated:{type:"boolean",default:!1}, +allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{ +type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{ +$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{ +type:"object",additionalProperties:{$ref:"#/definitions/MediaType"}, +minProperties:1,maxProperties:1},example:{},examples:{type:"object", +additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{ +$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}}, +additionalProperties:!1,required:["name","in"],allOf:[{ +$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent" +},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{ +description:"Parameter location",oneOf:[{description:"Parameter in path", +required:["required"],properties:{in:{enum:["path"]},style:{ +enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{ +description:"Parameter in query",properties:{in:{enum:["query"]},style:{ +enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{ +description:"Parameter in header",properties:{in:{enum:["header"]},style:{ +enum:["simple"],default:"simple"}}},{description:"Parameter in cookie", +properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]}, +RequestBody:{type:"object",required:["content"],properties:{description:{ +type:"string"},content:{type:"object",additionalProperties:{ +$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}}, +patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{ +$ref:"#/definitions/APIKeySecurityScheme"},{ +$ref:"#/definitions/HTTPSecurityScheme"},{ +$ref:"#/definitions/OAuth2SecurityScheme"},{ +$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{ +type:"object",required:["type","name","in"],properties:{type:{type:"string", +enum:["apiKey"]},name:{type:"string"},in:{type:"string", +enum:["header","query","cookie"]},description:{type:"string"}}, +patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{ +type:"object",required:["scheme","type"],properties:{scheme:{type:"string"}, +bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string", +enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{ +description:"Bearer",properties:{scheme:{type:"string", +pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}},{description:"Non Bearer",not:{ +required:["bearerFormat"]},properties:{scheme:{not:{type:"string", +pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}}}]},OAuth2SecurityScheme:{type:"object", +required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]}, +flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}}, +patternProperties:{"^x-":{}},additionalProperties:!1}, +OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"], +properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{ +type:"string",format:"uri-reference"},description:{type:"string"}}, +patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object", +properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{ +$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{ +$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{ +$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}}, +additionalProperties:!1},ImplicitOAuthFlow:{type:"object", +required:["authorizationUrl","scopes"],properties:{authorizationUrl:{ +type:"string",format:"uri-reference"},refreshUrl:{type:"string", +format:"uri-reference"},scopes:{type:"object",additionalProperties:{ +type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1}, +PasswordOAuthFlow:{type:"object",required:["tokenUrl","scopes"],properties:{ +tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string", +format:"uri-reference"},scopes:{type:"object",additionalProperties:{ +type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1}, +ClientCredentialsFlow:{type:"object",required:["tokenUrl","scopes"],properties:{ +tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string", +format:"uri-reference"},scopes:{type:"object",additionalProperties:{ +type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1}, +AuthorizationCodeOAuthFlow:{type:"object", +required:["authorizationUrl","tokenUrl","scopes"],properties:{authorizationUrl:{ +type:"string",format:"uri-reference"},tokenUrl:{type:"string", +format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"}, +scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{ +"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{ +type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{ +type:"object",additionalProperties:{}},requestBody:{},description:{type:"string" +},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}}, +additionalProperties:!1,not:{ +description:"Operation Id and Operation Ref are mutually exclusive", +required:["operationId","operationRef"]}},Callback:{type:"object", +additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{} +}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{ +type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{ +$ref:"#/definitions/Reference"}]}},style:{type:"string", +enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{ +type:"boolean"},allowReserved:{type:"boolean",default:!1}}, +additionalProperties:!1}}},3.1:{ +$id:"https://spec.openapis.org/oas/3.1/schema/2022-10-07", +$schema:"https://json-schema.org/draft/2020-12/schema", +description:"The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0", +type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$" +},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri", +default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array", +items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"}, +webhooks:{type:"object",additionalProperties:{ +$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"}, +security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{ +type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{ +$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{ +required:["paths"]},{required:["components"]},{required:["webhooks"]}], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#info-object",type:"object", +properties:{title:{type:"string"},summary:{type:"string"},description:{ +type:"string"},termsOfService:{type:"string",format:"uri"},contact:{ +$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"} +},required:["title","version"],$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},contact:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#contact-object",type:"object", +properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{ +type:"string",format:"email"}},$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},license:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#license-object",type:"object", +properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string", +format:"uri"}},required:["name"],dependentSchemas:{identifier:{not:{ +required:["url"]}}},$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},server:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#server-object",type:"object", +properties:{url:{type:"string",format:"uri-reference"},description:{ +type:"string"},variables:{type:"object",additionalProperties:{ +$ref:"#/$defs/server-variable"}}},required:["url"], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}, +"server-variable":{ +$comment:"https://spec.openapis.org/oas/v3.1.0#server-variable-object", +type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1}, +default:{type:"string"},description:{type:"string"}},required:["default"], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#components-object",type:"object", +properties:{schemas:{type:"object",additionalProperties:{$ref:"#/$defs/schema"} +},responses:{type:"object",additionalProperties:{ +$ref:"#/$defs/response-or-reference"}},parameters:{type:"object", +additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{ +type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}, +requestBodies:{type:"object",additionalProperties:{ +$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object", +additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{ +type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"} +},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}}, +callbacks:{type:"object",additionalProperties:{ +$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object", +additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}}, +patternProperties:{ +"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{ +$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected", +propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}}, +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#paths-object",type:"object", +patternProperties:{"^/":{$ref:"#/$defs/path-item"}}, +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{ +$comment:"https://spec.openapis.org/oas/v3.1.0#path-item-object",type:"object", +properties:{summary:{type:"string"},description:{type:"string"},servers:{ +type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{ +$ref:"#/$defs/parameter-or-reference"}},get:{$ref:"#/$defs/operation"},put:{ +$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{ +$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{ +$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{ +$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object", +required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{ +$ref:"#/$defs/path-item"}},operation:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#operation-object",type:"object", +properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"}, +description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation" +},operationId:{type:"string"},parameters:{type:"array",items:{ +$ref:"#/$defs/parameter-or-reference"}},requestBody:{ +$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"}, +callbacks:{type:"object",additionalProperties:{ +$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"}, +security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{ +type:"array",items:{$ref:"#/$defs/server"}}}, +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}, +"external-documentation":{ +$comment:"https://spec.openapis.org/oas/v3.1.0#external-documentation-object", +type:"object",properties:{description:{type:"string"},url:{type:"string", +format:"uri"}},required:["url"],$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},parameter:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#parameter-object",type:"object", +properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]}, +description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{ +default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{ +$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"], +oneOf:[{required:["schema"]},{required:["content"]}],if:{properties:{in:{ +const:"query"}},required:["in"]},then:{properties:{allowEmptyValue:{default:!1, +type:"boolean"}}},dependentSchemas:{schema:{properties:{style:{type:"string"}, +explode:{type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{ +$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{ +$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{ +$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{ +$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{ +$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{ +"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{ +properties:{name:{pattern:"[^/#?]+$"},style:{default:"simple", +enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}}, +"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]}, +then:{properties:{style:{default:"simple",const:"simple"}}}}, +"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{ +properties:{style:{default:"form", +enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{ +default:!1,type:"boolean"}}}},"styles-for-cookie":{if:{properties:{in:{ +const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form", +const:"form"}}}},"styles-for-form":{if:{properties:{style:{const:"form"}}, +required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{ +explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object", +required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{ +$ref:"#/$defs/parameter"}},"request-body":{ +$comment:"https://spec.openapis.org/oas/v3.1.0#request-body-object", +type:"object",properties:{description:{type:"string"},content:{ +$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}}, +required:["content"],$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object", +required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{ +$ref:"#/$defs/request-body"}},content:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",type:"object", +additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{ +format:"media-range"}},"media-type":{ +$comment:"https://spec.openapis.org/oas/v3.1.0#media-type-object",type:"object", +properties:{schema:{$ref:"#/$defs/schema"},encoding:{type:"object", +additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{ +$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}], +unevaluatedProperties:!1},encoding:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object", +properties:{contentType:{type:"string",format:"media-range"},headers:{ +type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{ +default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]}, +explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{ +$ref:"#/$defs/specification-extensions"},{ +$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{ +"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]}, +then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}} +}}}},responses:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#responses-object",type:"object", +properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{ +"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}}, +minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1 +},response:{$comment:"https://spec.openapis.org/oas/v3.1.0#response-object", +type:"object",properties:{description:{type:"string"},headers:{type:"object", +additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{ +$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{ +$ref:"#/$defs/link-or-reference"}}},required:["description"], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}, +"response-or-reference":{if:{type:"object",required:["$ref"]},then:{ +$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#callback-object",type:"object", +$ref:"#/$defs/specification-extensions",additionalProperties:{ +$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{ +type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{ +$ref:"#/$defs/callbacks"}},example:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#example-object",type:"object", +properties:{summary:{type:"string"},description:{type:"string"},value:!0, +externalValue:{type:"string",format:"uri"}},not:{ +required:["value","externalValue"]},$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},"example-or-reference":{if:{type:"object", +required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"} +},link:{$comment:"https://spec.openapis.org/oas/v3.1.0#link-object", +type:"object",properties:{operationRef:{type:"string",format:"uri-reference"}, +operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"}, +requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}}, +oneOf:[{required:["operationRef"]},{required:["operationId"]}], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}, +"link-or-reference":{if:{type:"object",required:["$ref"]},then:{ +$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#header-object",type:"object", +properties:{description:{type:"string"},required:{default:!1,type:"boolean"}, +deprecated:{default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{ +$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{ +required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{ +properties:{style:{default:"simple",const:"simple"},explode:{default:!1, +type:"boolean"}},$ref:"#/$defs/examples"}}, +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}, +"header-or-reference":{if:{type:"object",required:["$ref"]},then:{ +$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#tag-object",type:"object", +properties:{name:{type:"string"},description:{type:"string"},externalDocs:{ +$ref:"#/$defs/external-documentation"}},required:["name"], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#reference-object",type:"object", +properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"}, +description:{type:"string"}},unevaluatedProperties:!1},schema:{ +$comment:"https://spec.openapis.org/oas/v3.1.0#schema-object", +$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{ +$comment:"https://spec.openapis.org/oas/v3.1.0#security-scheme-object", +type:"object",properties:{type:{ +enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{ +type:"string"}},required:["type"],allOf:[{ +$ref:"#/$defs/specification-extensions"},{ +$ref:"#/$defs/security-scheme/$defs/type-apikey"},{ +$ref:"#/$defs/security-scheme/$defs/type-http"},{ +$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{ +$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{ +$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1, +$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]}, +then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}}, +required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}}, +required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"] +}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{ +type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"] +},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{ +properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{ +$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{ +type:{const:"openIdConnect"}},required:["type"]},then:{properties:{ +openIdConnectUrl:{type:"string",format:"uri"}},required:["openIdConnectUrl"]}}} +},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{ +$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{ +type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"}, +password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{ +$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{ +$ref:"#/$defs/oauth-flows/$defs/authorization-code"}}, +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{ +implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri" +},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"} +},required:["authorizationUrl","scopes"], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{ +type:"object",properties:{tokenUrl:{type:"string",format:"uri"},refreshUrl:{ +type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}}, +required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions", +unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{ +tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"}, +scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}, +"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string", +format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string", +format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}}, +required:["authorizationUrl","tokenUrl","scopes"], +$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}}, +"security-requirement":{ +$comment:"https://spec.openapis.org/oas/v3.1.0#security-requirement-object", +type:"object",additionalProperties:{type:"array",items:{type:"string"}}}, +"specification-extensions":{ +$comment:"https://spec.openapis.org/oas/v3.1.0#specification-extensions", +patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{ +type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}}, +"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}} +},IP=Object.keys(NP),MP={ +EMPTY_OR_INVALID:"Can’t find JSON, YAML or filename in data", +OPENAPI_VERSION_NOT_SUPPORTED:"Can’t find supported Swagger/OpenAPI version in specification, version must be a string.", +INVALID_REFERENCE:"Can’t resolve reference: %s", +EXTERNAL_REFERENCE_NOT_FOUND:"Can’t resolve external reference: %s", +FILE_DOES_NOT_EXIST:"File does not exist: %s",NO_CONTENT:"No content found"} +;function LP(e){for(const t of new Set(IP)){ +const n="2.0"===t?"swagger":"openapi",r=e[n] +;if("string"==typeof r&&r.startsWith(t))return{version:t,specificationType:n, +specificationVersion:r}}return{version:void 0,specificationType:void 0, +specificationVersion:void 0}}function BP(e){ +return null==e?void 0:e.find((e=>e.isEntrypoint))}function QP(e){ +return decodeURI(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function jP(e,t){ +const n={} +;for(const[r,o]of Object.entries(e))Array.isArray(o)?n[r]=o.map((e=>"object"==typeof e&&null!==e?jP(e,t):e)):n[r]="object"==typeof o&&null!==o?jP(o,t):o +;return t(n)}function UP(e){const t=[] +;return e&&"object"==typeof e?(jP(e,(e=>(e.$ref&&"string"==typeof e.$ref&&!e.$ref.startsWith("#")&&t.push(e.$ref.split("#")[0]), +e))),[...new Set(t)]):t}function FP(e){ +return void 0!==e&&Array.isArray(e)&&e.length>0&&e.some((e=>!0===e.isEntrypoint)) +}function qP(e){if(FP(e))return e;if("string"==typeof e)try{return JSON.parse(e) +}catch(a$){return function(e,t,n){let r +;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t) +;const o=ad(e,n);if(!o)return null +;if(o.warnings.forEach((e=>oc(o.options.logLevel,e))),o.errors.length>0){ +if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]} +return o.toJS(Object.assign({reviver:r},n))}(e,{maxAliasCount:1e4})}return e} +function zP(e,t={}){if(FP(e))return e;const n=qP(e);return[{isEntrypoint:!0, +specification:n,filename:null,dir:"./",references:UP(n),...t}]} +function HP(e,t,n,r){void 0===r&&(r=[]);const o=zP(structuredClone(e)),i=BP(o) +;return a((null==n?void 0:n.specification)??i.specification,o,n??i), +a((null==n?void 0:n.specification)??i.specification,o,n??i),{ +valid:0===(r=r.filter(((e,t,n)=>t===n.findIndex((t=>t.message===e.message&&t.code===e.code))))).length, +errors:r,schema:(n??BP(o)).specification};function a(e,n,o){let i +;return Object.entries(e??{}).forEach((([s,l])=>{if(void 0!==e.$ref){ +const i=ZP(e.$ref,t,o,n,r);if(void 0===i)return +;delete e.$ref,"object"==typeof i&&Object.keys(i).forEach((t=>{ +void 0===e[t]&&(e[t]=i[t])}))}"object"!=typeof l||function(e){try{ +return JSON.stringify(e),!1}catch(t){return!0}}(l)||(i=a(l,n,o))})),{ +errors:(null==i?void 0:i.errors)??[]}}}function ZP(e,t,n,r,o){ +if("string"!=typeof e)return void o.push({code:"INVALID_REFERENCE", +message:MP.INVALID_REFERENCE.replace("%s",e)});const[i,a]=e.split("#",2);if(i){ +const e=r.find((e=>e.filename===i));if(!e)return void o.push({ +code:"EXTERNAL_REFERENCE_NOT_FOUND", +message:MP.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",i)});const n=HP(r,t,e,o) +;return void 0===a?n.schema:ZP(`#${a}`,t,e,r,o)}const s=function(e){ +return e.split("/").slice(1).map(QP)}(a);try{ +return s.reduce(((e,t)=>e[t]),n.specification)}catch(a$){o.push({ +code:"INVALID_REFERENCE",message:MP.INVALID_REFERENCE.replace("%s",e)})}} +async function VP(e,t){const n=zP(e),r=BP(n),o=HP(n,t);return{ +specification:r.specification,errors:o.errors,schema:o.schema, +...LP(r.specification)}}async function WP(e,t){var n,r,o,i,a,s;const l=[] +;if(null==(n=null==t?void 0:t.filesystem)?void 0:n.find((t=>t.filename===e)))return{ +specification:null==(r=BP(t.filesystem))?void 0:r.specification, +filesystem:t.filesystem,errors:l} +;const c=null==(o=null==t?void 0:t.plugins)?void 0:o.find((t=>t.check(e)));let u +;if(c)try{u=qP(await c.get(e))}catch(V$){ +if(null==t?void 0:t.throwOnError)throw new Error(MP.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",e)) +;return l.push({code:"EXTERNAL_REFERENCE_NOT_FOUND", +message:MP.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",e)}),{specification:null, +filesystem:[],errors:l}}else u=qP(e);if(void 0===u){ +if(null==t?void 0:t.throwOnError)throw new Error("No content to load") +;return l.push({code:"NO_CONTENT",message:MP.NO_CONTENT}),{specification:null, +filesystem:[],errors:l}}let d=zP(u,{filename:(null==t?void 0:t.filename)??null}) +;const p=((null==t?void 0:t.filename)?d.find((e=>e.filename===(null==t?void 0:t.filename))):BP(d)).references??UP(u) +;if(0===p.length)return{specification:null==(i=BP(d))?void 0:i.specification, +filesystem:d,errors:l};for(const h of p){ +const n=null==(a=null==t?void 0:t.plugins)?void 0:a.find((e=>e.check(h))) +;if(!n)continue;const r=n.check(h)&&n.resolvePath?n.resolvePath(e,h):h +;if(d.find((e=>e.filename===h)))continue +;const{filesystem:o,errors:i}=await WP(r,{...t,filename:h}) +;l.push(...i),d=[...d,...o.map((e=>({...e,isEntrypoint:!1})))]}return{ +specification:null==(s=BP(d))?void 0:s.specification,filesystem:d,errors:l}} +function XP(e){var t +;return(null==(t=e.openapi)?void 0:t.startsWith("3.0"))?(e.openapi="3.1.0", +e=jP(e,(e=>("undefined"!==e.type&&!0===e.nullable&&(e.type=["null",e.type], +delete e.nullable), +e))),e=jP(e,(e=>(!0===e.exclusiveMinimum?(e.exclusiveMinimum=e.minimum, +delete e.minimum):!1===e.exclusiveMinimum&&delete e.exclusiveMinimum, +!0===e.exclusiveMaximum?(e.exclusiveMaximum=e.maximum, +delete e.maximum):!1===e.exclusiveMaximum&&delete e.exclusiveMaximum, +e))),e=jP(e,(e=>(void 0!==e.example&&(e.examples={default:e.example +},delete e.example),e))),e=jP(e,(e=>{ +if("object"===e.type&&void 0!==e.properties){ +const t=Object.entries(e.properties) +;for(const[e,n]of t)"object"==typeof n&&"string"===n.type&&"binary"===n.format&&(n.contentEncoding="application/octet-stream", +delete n.format)}return e})),e=jP(e,(e=>{ +if("string"!==e.type||"binary"!==e.format)return e +})),e=jP(e,(e=>"string"===e.type&&"base64"===e.format?{type:"string", +contentEncoding:"base64"}:e))):e}function YP(e){var t,n,r +;if(!(null==(t=e.swagger)?void 0:t.startsWith("2.0")))return e +;if(e.openapi="3.0.3", +delete e.swagger,console.warn("[upgradeFromTwoToThree] The upgrade from Swagger 2.0 to OpenAPI 3.0 documents is experimental and lacks features."), +e.host){const t=(null==(n=e.schemes)?void 0:n.length)?e.schemes:["http"] +;e.servers=t.map((t=>({url:`${t}://${e.host}${e.basePath??""}` +}))),delete e.basePath,delete e.schemes,delete e.host} +if(e.definitions&&("object"!=typeof e.components&&(e.components={}), +e.components.schemas=e.definitions,delete e.definitions,e=jP(e,(e=>{var t +;return(null==(t=e.$ref)?void 0:t.startsWith("#/definitions/"))&&(e.$ref=e.$ref.replace(/^#\/definitions\//,"#/components/schemas/")), +e}))),e.paths)for(const o in e.paths)if(Object.hasOwn(e.paths,o)){ +const t=e.paths[o];for(const n in t)if(Object.hasOwn(t,n)){const o=t[n] +;if(o.parameters){ +const t=structuredClone(o.parameters.find((e=>"body"===e.in))??{}) +;if(t&&Object.keys(t).length){delete t.name,delete t.in +;const n=e.consumes??o.consumes??["application/json"] +;"object"!=typeof o.requestBody&&(o.requestBody={}), +"object"!=typeof o.requestBody.content&&(o.requestBody.content={}) +;const{schema:r,...i}=t;o.requestBody={...o.requestBody,...i} +;for(const e of n)o.requestBody.content[e]={schema:r}} +o.parameters=o.parameters.filter((e=>"body"!==e.in)),delete o.consumes} +if(o.responses)for(const t in o.responses)if(Object.hasOwn(o.responses,t)){ +const n=o.responses[t];if(n.schema){ +const t=e.produces??o.produces??["application/json"] +;"object"!=typeof n.content&&(n.content={});for(const e of t)n.content[e]={ +schema:n.schema};delete n.schema}} +delete o.produces,0===(null==(r=o.parameters)?void 0:r.length)&&delete o.parameters +}}return e}const GP={limit:20},KP=e=>{let t=0;const n={...GP,...e};return{ +check:e=>"string"==typeof e&&!(!e.startsWith("http://")&&!e.startsWith("https://")), +async get(e){ +if(!1!==(null==n?void 0:n.limit)&&t>=(null==n?void 0:n.limit))console.warn(`[fetchUrls] Maximum number of requests reeached (${null==n?void 0:n.limit}), skipping request`);else try{ +t++;const r=await((null==n?void 0:n.fetch)?n.fetch(e):fetch(e)) +;return await r.text()}catch(r){console.error("[fetchUrls]",r.message,`(${e})`)} +}}},JP=e=>{let t={} +;t=e&&"object"==typeof e?structuredClone(e):dp(),t.tags||(t.tags=[]), +t.paths||(t.paths={});const n={};Object.keys(t.webhooks??{}).forEach((e=>{var r +;Object.keys((null==(r=t.webhooks)?void 0:r[e])??{}).forEach((r=>{var o,i,a +;const s=null==(o=t.webhooks)?void 0:o[e][r] +;!0!==(null==s?void 0:s["x-internal"])&&(void 0===n[e]&&(n[e]={}),n[e][r]={ +httpVerb:Qd(r),path:e,operationId:(null==s?void 0:s.operationId)||e, +name:(null==s?void 0:s.summary)||e||"", +description:(null==s?void 0:s.description)||"", +pathParameters:null==(a=null==(i=t.paths)?void 0:i[e])?void 0:a.parameters, +information:{...s}})}))})),Object.keys(t.paths).forEach((e=>{ +Object.keys(t.paths[e]).filter((e=>Ws.includes(e.toUpperCase()))).forEach((n=>{ +var r,o,i,a,s,l;const c=t.paths[e][n];if(void 0===c)return +;if(!0===c["x-internal"])return;const u={httpVerb:Qd(n),path:e, +operationId:c.operationId||e,name:c.summary||e||"", +description:c.description||"",information:{...c}, +pathParameters:null==(o=null==(r=t.paths)?void 0:r[e])?void 0:o.parameters} +;if(c.tags&&0!==c.tags.length)c.tags.forEach((e=>{var n,r,o +;const i=null==(n=t.tags)?void 0:n.findIndex((t=>t.name===e)) +;-1===i&&(null==(r=t.tags)||r.push({name:e,description:""})) +;const a=-1!==i?i:t.tags.length-1 +;void 0===(null==(o=t.tags[a])?void 0:o.operations)&&(t.tags[a].operations=[]), +t.tags[a].operations.push(u)}));else{ +(null==(i=t.tags)?void 0:i.find((e=>"default"===e.name)))||null==(a=t.tags)||a.push({ +name:"default",description:"",operations:[]}) +;const e=null==(s=t.tags)?void 0:s.findIndex((e=>"default"===e.name)) +;e>=0&&(null==(l=t.tags[e])||l.operations.push(u))}}))}));return{...t,webhooks:n +}},eD=Symbol(),tD=Symbol(),nD=Symbol(),rD=Symbol(),oD=async e=>{var t +;null==(t=document.getElementById(e))||t.scrollIntoView() +},iD=e=>new Promise((t=>setTimeout(t,e))),aD=Qp(Symbol("downloadSpec")) +;const sD=async({url:e,content:t},n)=>{if(e){ +const t=performance.now(),r=function(e){try{return Boolean(new URL(e))}catch{ +return!1}}(e)?await dd(e,n):await dd(e),o=performance.now() +;return console.log(`fetch: ${Math.round(o-t)} ms (${e})`), +console.log("size:",Math.round(r.length/1024),"kB"),r} +const r="function"==typeof t?t():t +;return"string"==typeof r?r:"object"==typeof r?Ad(r):void 0} +;function lD({specConfig:e,proxy:t}){const n=Bn(""),r=wn(dp()),o=Bn(null) +;function i(e){return e?((e,{proxy:t}={})=>new Promise((async(n,r)=>{var o;try{ +if(!e)return n(JP(dp()));const i=performance.now(),{filesystem:a}=await WP(e,{ +plugins:[KP({fetch:e=>fetch(t?Js(t,e):e)})] +}),{schema:s,errors:l}=await VP(a),c=performance.now() +;return console.log(`dereference: ${Math.round(c-i)} ms`), +(null==l?void 0:l.length)&&console.warn("Please open an issue on https://github.com/scalar/scalar\n","Scalar OpenAPI Parser Warning:\n",l), +void 0===s?(r((null==(o=null==l?void 0:l[0])?void 0:o.message)??"Failed to parse the OpenAPI file."), +n(JP(dp()))):n(JP(s))}catch(i){r(i)}return n(JP(dp()))})))(e,{ +proxy:t?qn(t):void 0}).then((e=>{o.value=null,Object.assign(r,{servers:[],...e}) +})).catch((e=>{o.value=e.toString()})):Object.assign(r,dp())} +return li((()=>qn(e)),(async e=>{var r;if(e){ +const o=null==(r=await sD(e,qn(t)))?void 0:r.trim() +;"string"==typeof o&&(n.value=o)}}),{immediate:!0,deep:!0}),li(n,(()=>{ +i(n.value)})),{rawSpec:n,parsedSpec:r,specErrors:o}}function cD(e){return{ +responses:Aa((()=>{if(!e.information)return[] +;const{responses:t}=e.information,n=[] +;return t?(Object.entries(t).forEach((([e,t])=>{n.push({name:e, +description:t.description,content:t.content,headers:t.headers})})),n):n}))}} +const uD=Qp(Symbol()),{getHeadingId:dD,getModelId:pD,getOperationId:hD,getSectionId:fD,getTagId:mD,getWebhookId:gD,hash:vD}=Jh(),bD=Bn(void 0),OD=wn({}) +;function yD(e){var t,n +;return"alpha"===OD.tagsSorter?e.tags=null==(t=e.tags)?void 0:t.sort(((e,t)=>e.name.localeCompare(t.name))):"function"==typeof OD.tagsSorter&&(e.tags=null==(n=e.tags)?void 0:n.sort(OD.tagsSorter)), +bD.value=e} +const wD=Bn(!1),xD=Bn(!1),kD=wn($d["useSidebarContent-collapsedSidebarItems"]??{}) +;function SD(e){kD[e]=!kD[e]}function _D(e,t){kD[e]=t}const ED=Bn([]) +;const TD=Aa((()=>{var e,t,n,r,o,i,a,s,l,c +;const{state:u}=Hd(),d={},{openApi:{globalSecurity:p}}=Kd(),h=[];let f=null +;ED.value.forEach((e=>{var t;e.depth===xP(ED.value)?(f={id:dD(e),title:e.value, +show:!u.showApiClient,children:[]},h.push(f)):f&&(null==(t=f.children)||t.push({ +id:dD(e),title:e.value,show:!u.showApiClient}))})) +;const m=null==(t=null==(e=bD.value)?void 0:e.tags)?void 0:t[0],g=m&&(1!==(null==(v=null==(n=bD.value)?void 0:n.tags)?void 0:v.length)||"default"!==v[0].name||""!==v[0].description)?null==(o=null==(r=bD.value)?void 0:r.tags)?void 0:o.filter((e=>{ +var t;return(null==(t=e.operations)?void 0:t.length)>0})).map((e=>{var t;return{ +id:mD(e),title:e.name,displayTitle:e["x-displayName"]??e.name,show:!0, +children:null==(t=e.operations)?void 0:t.map((t=>{var n +;const r=hD(t,e),o=t.name??t.path;return d[r]=o,{id:r,title:o, +httpVerb:t.httpVerb, +deprecated:(null==(n=t.information)?void 0:n.deprecated)??!1,show:!0, +select:()=>{u.showApiClient&&RP(t,p)}}}))} +})):null==(i=null==m?void 0:m.operations)?void 0:i.map((e=>{var t +;const n=hD(e,m),r=e.name??e.path;return d[n]=r,{id:n,title:r, +httpVerb:e.httpVerb, +deprecated:(null==(t=e.information)?void 0:t.deprecated)??!1,show:!0, +select:()=>{u.showApiClient&&RP(e,p)}}}));var v;let b=SP(bD.value)&&!wD.value?[{ +id:pD(),title:"Models",show:!u.showApiClient, +children:Object.keys(kP(bD.value)??{}).map((e=>{var t;const n=pD(e) +;return d[n]=e,{id:n,title:(null==(t=kP(bD.value))?void 0:t[e]).title??e, +show:!u.showApiClient}})) +}]:[],O=(y=bD.value)&&Object.keys((null==y?void 0:y.webhooks)??{}).length?[{ +id:gD(),title:"Webhooks",show:!u.showApiClient, +children:Object.keys((null==(a=bD.value)?void 0:a.webhooks)??{}).map((e=>{ +var t,n;const r=gD(e) +;return d[r]=e,Object.keys((null==(n=null==(t=bD.value)?void 0:t.webhooks)?void 0:n[e])??{}).map((t=>{ +var n,r,o;return{id:gD(e,t), +title:null==(o=null==(r=null==(n=bD.value)?void 0:n.webhooks)?void 0:r[e][t])?void 0:o.name, +httpVerb:t,show:!u.showApiClient}}))})).flat()}]:[];var y +;const w=(null==(s=bD.value)?void 0:s["x-tagGroups"])?null==(c=null==(l=bD.value)?void 0:l["x-tagGroups"])?void 0:c.map((e=>{ +var t;const n=[];null==(t=e.tags)||t.map((e=>{ +if("models"===e&&b.length>0)n.push(b[0]), +b=[];else if("webhooks"===e&&O.length>0)n.push(O[0]),O=[];else{ +const t=null==g?void 0:g.find((t=>t.title===e));t&&n.push(t)}}));return{ +id:e.name,title:e.name,children:n,show:!0,isGroup:!0} +})):void 0,x=[...h,...w??g??[],...O,...b];return xD.value&&x.forEach((e=>{ +_D(e.id,!0),e.show=!0})),{entries:x,titles:d}})),CD=Bn(!1),AD=Aa((()=>{var e,t +;return(null==(t=null==(e=TD.value)?void 0:e.titles)?void 0:t[vD.value])??"" +})),PD=e=>{const t=fD(e);if(t!==e)if(kD[t])oD(e);else{const n=uD.on((t=>{ +t.id===e&&(oD(e),n())}));_D(t,!0)}};function DD(e){ +return Object.assign(OD,e),(null==e?void 0:e.parsedSpec)&&(yD(e.parsedSpec), +li((()=>{var e,t +;return null==(t=null==(e=bD.value)?void 0:e.tags)?void 0:t.length}),(()=>{ +var e,t;if(vD.value){const e=fD(vD.value);e&&_D(e,!0)}else{ +const n=null==(t=null==(e=bD.value)?void 0:e.tags)?void 0:t[0];n&&_D(mD(n),!0)} +})),li((()=>{var e,t +;return null==(t=null==(e=bD.value)?void 0:e.info)?void 0:t.description}),(()=>{ +var e,t;const n=null==(t=null==(e=bD.value)?void 0:e.info)?void 0:t.description +;return ED.value=n?function(e){const t=wP(e),n=xP(t) +;return t.filter((e=>e.depth===n||e.depth===n+1))}(n):[]}),{immediate:!0})),{ +breadcrumb:AD,items:TD,isSidebarOpen:CD,collapsedSidebarItems:kD, +toggleCollapsedSidebarItem:SD,setCollapsedSidebarItem:_D,hideModels:wD, +setParsedSpec:yD,defaultOpenAllTags:xD,scrollToOperation:PD}}const $D={ +targetKey:"shell",clientKey:"curl"};function RD(e){var t +;return(null==(t=LD.value.find((t=>t.key===e.targetKey)))?void 0:t.title)??e.targetKey +}function ND(e){var t,n +;return(null==(n=null==(t=LD.value.find((t=>t.key===e.targetKey)))?void 0:t.clients.find((t=>t.key===e.clientKey)))?void 0:n.title)??e.clientKey +}const ID=Aa((()=>RD(HD))),MD=Aa((()=>ND(HD)));const LD=Aa((()=>{var e +;const t=Object.keys(Am).map((e=>({...Am[e].info, +clients:Object.keys(Am[e].clientsById).map((t=>Am[e].clientsById[t].info))}))) +;return null==(e=t.find((e=>"node"===e.key)))||e.clients.unshift({ +description:"An HTTP/1.1 client, written from scratch for Node.js.", +key:"undici",link:"https://github.com/nodejs/undici",title:"undici" +}),function(e,t){return!0===t.value?[]:e.flatMap((e=>{var n +;return"object"!=typeof t.value?[]:Array.isArray(t.value)?(e.clients=e.clients.filter((e=>!t.value.includes(e.key))), +[e]):!0===t.value[e.key]?[]:(Array.isArray(t.value[e.key])&&(e.clients=e.clients.filter((n=>!t.value[e.key].includes(n.key)))), +(null==(n=null==e?void 0:e.clients)?void 0:n.length)?[e]:[])}))}(t,QD)})),BD={ +node:["unirest"]},QD=Bn({...!0===BD?{}:BD}),jD=Bn();function UD(e){ +void 0!==e&&(jD.value=e,ZD(FD()))}const FD=()=>{var e,t,n,r +;return qD(jD.value)?jD.value:qD($D)?$D:{ +targetKey:null==(e=LD.value[0])?void 0:e.key, +clientKey:null==(r=null==(n=null==(t=LD.value[0])?void 0:t.clients)?void 0:n[0])?void 0:r.key +}};function qD(e){ +return void 0!==e&&!!LD.value.find((t=>t.key===e.targetKey&&t.clients.find((t=>t.key===e.clientKey)))) +}function zD(){Cd(HD,FD())}const HD=wn(FD()),ZD=e=>{Object.assign(HD,{...HD,...e +})},VD=()=>({httpClient:kn(HD),resetState:zD,setHttpClient:ZD, +setDefaultHttpClient:UD,excludedClients:kn(QD),setExcludedClients:e=>{ +QD.value=e,Cd(HD,FD())},availableTargets:LD,getClientTitle:ND,getTargetTitle:RD, +httpTargetTitle:ID,httpClientTitle:MD});function WD(e){ +"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{ +throw e}))))}function XD(){let e=[],t={ +addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o), +t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){ +let n=requestAnimationFrame(...e);t.add((()=>cancelAnimationFrame(n)))}, +nextFrame(...e){t.requestAnimationFrame((()=>{t.requestAnimationFrame(...e)}))}, +setTimeout(...e){let n=setTimeout(...e);t.add((()=>clearTimeout(n)))}, +microTask(...e){let n={current:!0};return WD((()=>{n.current&&e[0]() +})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t) +;return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{ +[t]:r})}))},group(e){let t=XD();return e(t),this.add((()=>t.dispose()))}, +add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t() +}),dispose(){for(let t of e.splice(0))t()}};return t} +let YD=Symbol("headlessui.useid"),GD=0;function KD(){ +return $o(YD,(()=>""+ ++GD))()}function JD(e){var t +;if(null==e||null==e.value)return null;let n=null!=(t=e.value.$el)?t:e.value +;return n instanceof Node?n:null}function e$(e,t,...n){if(e in t){let r=t[e] +;return"function"==typeof r?r(...n):r} +let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`) +;throw Error.captureStackTrace&&Error.captureStackTrace(r,e$),r} +var t$=Object.defineProperty,n$=(e,t,n)=>(((e,t,n)=>{t in e?t$(e,t,{ +enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n +})(e,"symbol"!=typeof t?t+"":t,n),n);let r$=new class{constructor(){ +n$(this,"current",this.detect()),n$(this,"currentId",0)}set(e){ +this.current!==e&&(this.currentId=0,this.current=e)}reset(){ +this.set(this.detect())}nextId(){return++this.currentId}get isServer(){ +return"server"===this.current}get isClient(){return"client"===this.current} +detect(){ +return"undefined"==typeof window||"undefined"==typeof document?"server":"client" +}};function o$(e){if(r$.isServer)return null +;if(e instanceof Node)return e.ownerDocument +;if(null!=e&&e.hasOwnProperty("value")){let t=JD(e);if(t)return t.ownerDocument} +return document} +let i$=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",") +;var a$,s$,l$,c$=((l$=c$||{})[l$.First=1]="First", +l$[l$.Previous=2]="Previous",l$[l$.Next=4]="Next", +l$[l$.Last=8]="Last",l$[l$.WrapAround=16]="WrapAround", +l$[l$.NoScroll=32]="NoScroll", +l$),u$=((s$=u$||{})[s$.Error=0]="Error",s$[s$.Overflow=1]="Overflow", +s$[s$.Success=2]="Success", +s$[s$.Underflow=3]="Underflow",s$),d$=((a$=d$||{})[a$.Previous=-1]="Previous", +a$[a$.Next=1]="Next",a$);function p$(e=document.body){ +return null==e?[]:Array.from(e.querySelectorAll(i$)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))) +}var h$=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(h$||{}) +;function f$(e,t=0){var n;return e!==(null==(n=o$(e))?void 0:n.body)&&e$(t,{ +0:()=>e.matches(i$),1(){let t=e;for(;null!==t;){if(t.matches(i$))return!0 +;t=t.parentElement}return!1}})}function m$(e){let t=o$(e);dr((()=>{ +t&&!f$(t.activeElement,0)&&v$(e)}))} +var g$=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(g$||{}) +;function v$(e){null==e||e.focus({preventScroll:!0})} +"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{ +e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="") +}),!0),document.addEventListener("click",(e=>{ +1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="") +}),!0));let b$=["textarea","input"].join(",");function O$(e,t=e=>e){ +return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0 +;let i=r.compareDocumentPosition(o) +;return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0 +}))}function y$(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i +;let a=null!=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:null==e?void 0:e.ownerDocument)?i:document,s=Array.isArray(e)?n?O$(e):e:p$(e) +;o.length>0&&s.length>1&&(s=s.filter((e=>!o.includes(e)))), +r=null!=r?r:a.activeElement;let l,c=(()=>{if(5&t)return 1;if(10&t)return-1 +;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last") +})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(r))-1 +;if(4&t)return Math.max(0,s.indexOf(r))+1;if(8&t)return s.length-1 +;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last") +})(),d=32&t?{preventScroll:!0}:{},p=0,h=s.length;do{if(p>=h||p+h<=0)return 0 +;let e=u+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1} +l=s[e],null==l||l.focus(d),p+=c}while(l!==a.activeElement) +;return 6&t&&function(e){var t,n +;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,b$))&&n +}(l)&&l.select(),2}function w$(){ +return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0 +}function x$(){return w$()||/Android/gi.test(window.navigator.userAgent)} +function k$(e,t,n){r$.isServer||ai((r=>{ +document.addEventListener(e,t,n),r((()=>document.removeEventListener(e,t,n)))})) +}function S$(e,t,n){r$.isServer||ai((r=>{ +window.addEventListener(e,t,n),r((()=>window.removeEventListener(e,t,n)))}))} +function _$(e,t,n=Aa((()=>!0))){function r(r,o){ +if(!n.value||r.defaultPrevented)return;let i=o(r) +;if(null===i||!i.getRootNode().contains(i))return;let a=function e(t){ +return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e) +;for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:JD(e) +;if(null!=t&&t.contains(i)||r.composed&&r.composedPath().includes(t))return} +return!f$(i,h$.Loose)&&-1!==i.tabIndex&&r.preventDefault(),t(r,i)}let o=Bn(null) +;k$("pointerdown",(e=>{var t,r +;n.value&&(o.value=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target) +}),!0),k$("mousedown",(e=>{var t,r +;n.value&&(o.value=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target) +}),!0),k$("click",(e=>{x$()||o.value&&(r(e,(()=>o.value)),o.value=null) +}),!0),k$("touchend",(e=>r(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0), +S$("blur",(e=>r(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0) +}function E$(e,t){if(e)return e;let n=null!=t?t:"button" +;return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0} +function T$(e,t){let n=Bn(E$(e.value.type,e.value.as));return Ur((()=>{ +n.value=E$(e.value.type,e.value.as)})),ai((()=>{var e +;n.value||JD(t)&&JD(t)instanceof HTMLButtonElement&&(null==(e=JD(t))||!e.hasAttribute("type"))&&(n.value="button") +})),n}function C$(e){return[e.screenX,e.screenY]}function A$(){let e=Bn([-1,-1]) +;return{wasMoved(t){let n=C$(t) +;return(e.value[0]!==n[0]||e.value[1]!==n[1])&&(e.value=n,!0)},update(t){ +e.value=C$(t)}}} +var P$,D$=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy", +e[e.Static=2]="Static", +e))(D$||{}),$$=((P$=$$||{})[P$.Unmount=0]="Unmount",P$[P$.Hidden=1]="Hidden",P$) +;function R$({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i +;let a=M$(r,n),s=Object.assign(o,{props:a});if(e||2&t&&a.static)return N$(s) +;if(1&t){return e$(null==(i=a.unmount)||i?0:1,{0:()=>null,1:()=>N$({...o,props:{ +...a,hidden:!0,style:{display:"none"}}})})}return N$(s)} +function N$({props:e,attrs:t,slots:n,slot:r,name:o}){var i,a +;let{as:s,...l}=L$(e,["unmount","static"]),c=null==(i=n.default)?void 0:i.call(n,r),u={} +;if(r){let e=!1,t=[] +;for(let[n,o]of Object.entries(r))"boolean"==typeof o&&(e=!0),!0===o&&t.push(n) +;e&&(u["data-headlessui-state"]=t.join(" "))}if("template"===s){ +if(c=I$(null!=c?c:[]),Object.keys(l).length>0||Object.keys(t).length>0){ +let[e,...n]=null!=c?c:[];if(!function(e){ +return null!=e&&("string"==typeof e.type||"object"==typeof e.type||"function"==typeof e.type) +}(e)||n.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).map((e=>e.trim())).filter(((e,t,n)=>n.indexOf(e)===t)).sort(((e,t)=>e.localeCompare(t))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n")) +;let r=M$(null!=(a=e.props)?a:{},l,u),i=ra(e,r,!0) +;for(let t in r)t.startsWith("on")&&(i.props||(i.props={}),i.props[t]=r[t]) +;return i}return Array.isArray(c)&&1===c.length?c[0]:c} +return Pa(s,Object.assign({},l,u),{default:()=>c})}function I$(e){ +return e.flatMap((e=>e.type===Bi?I$(e.children):[e]))}function M$(...e){ +if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={} +;for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]), +n[e].push(r[e])):t[e]=r[e] +;if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0])))) +;for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){ +if(e instanceof Event&&e.defaultPrevented)return;n(e,...t)}}});return t} +function L$(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r] +;return n} +var B$=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden", +e))(B$||{});let Q$=eo({name:"Hidden",props:{as:{type:[Object,String], +default:"div"},features:{type:Number,default:1}}, +setup:(e,{slots:t,attrs:n})=>()=>{var r;let{features:o,...i}=e;return R$({ +ourProps:{"aria-hidden":!(2&~o)||(null!=(r=i["aria-hidden"])?r:void 0), +hidden:!(4&~o)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0, +padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)", +whiteSpace:"nowrap",borderWidth:"0",...!(4&~o)&&!!(2&~o)&&{display:"none"}}}, +theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}),j$=Symbol("Context") +;var U$=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing", +e[e.Opening=8]="Opening",e))(U$||{});function F$(){return $o(j$,null)} +function q$(e){Do(j$,e)} +var z$,H$=((z$=H$||{}).Space=" ",z$.Enter="Enter",z$.Escape="Escape", +z$.Backspace="Backspace", +z$.Delete="Delete",z$.ArrowLeft="ArrowLeft",z$.ArrowUp="ArrowUp", +z$.ArrowRight="ArrowRight",z$.ArrowDown="ArrowDown",z$.Home="Home",z$.End="End", +z$.PageUp="PageUp",z$.PageDown="PageDown",z$.Tab="Tab",z$);let Z$=[] +;!function(e){function t(){ +"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t)) +} +"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t), +t())}((()=>{function e(e){ +e.target instanceof HTMLElement&&e.target!==document.body&&Z$[0]!==e.target&&(Z$.unshift(e.target), +Z$=Z$.filter((e=>null!=e&&e.isConnected)),Z$.splice(10))} +window.addEventListener("click",e,{capture:!0 +}),window.addEventListener("mousedown",e,{capture:!0 +}),window.addEventListener("focus",e,{capture:!0 +}),document.body.addEventListener("click",e,{capture:!0 +}),document.body.addEventListener("mousedown",e,{capture:!0 +}),document.body.addEventListener("focus",e,{capture:!0})})) +;var V$,W$=((V$=W$||{})[V$.First=0]="First", +V$[V$.Previous=1]="Previous",V$[V$.Next=2]="Next", +V$[V$.Last=3]="Last",V$[V$.Specific=4]="Specific",V$[V$.Nothing=5]="Nothing",V$) +;function X$(e,t){let n=t.resolveItems();if(n.length<=0)return null +;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0: +for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r +;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r +;case 4:for(let r=0;r{ +(e=null!=e?e:window).addEventListener(t,n,r), +o((()=>e.removeEventListener(t,n,r)))}))}var eR=(e=>(e[e.Forwards=0]="Forwards", +e[e.Backwards=1]="Backwards",e))(eR||{});function tR(){let e=Bn(0) +;return S$("keydown",(t=>{"Tab"===t.key&&(e.value=t.shiftKey?1:0)})),e} +function nR(e){if(!e)return new Set;if("function"==typeof e)return new Set(e()) +;let t=new Set;for(let n of e.value){let e=JD(n) +;e instanceof HTMLElement&&t.add(e)}return t} +var rR=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus", +e[e.TabLock=4]="TabLock", +e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus", +e[e.All=30]="All",e))(rR||{});let oR=Object.assign(eo({name:"FocusTrap",props:{ +as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null}, +features:{type:Number,default:30},containers:{type:[Object,Function], +default:Bn(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){ +let o=Bn(null);r({el:o,$el:o});let i=Aa((()=>o$(o))),a=Bn(!1) +;Ur((()=>a.value=!0)),Hr((()=>a.value=!1)),function({ownerDocument:e},t){ +let n=function(e){let t=Bn(Z$.slice());return li([e],(([e],[n])=>{ +!0===n&&!1===e?WD((()=>{t.value.splice(0) +})):!1===n&&!0===e&&(t.value=Z$.slice())}),{flush:"post"}),()=>{var e +;return null!=(e=t.value.find((e=>null!=e&&e.isConnected)))?e:null}}(t) +;Ur((()=>{ai((()=>{var r,o +;t.value||(null==(r=e.value)?void 0:r.activeElement)===(null==(o=e.value)?void 0:o.body)&&v$(n()) +}),{flush:"post"})})),Hr((()=>{t.value&&v$(n())}))}({ownerDocument:i +},Aa((()=>a.value&&Boolean(16&e.features)))) +;let s=function({ownerDocument:e,container:t,initialFocus:n},r){ +let o=Bn(null),i=Bn(!1) +;return Ur((()=>i.value=!0)),Hr((()=>i.value=!1)),Ur((()=>{li([t,n,r],((a,s)=>{ +if(a.every(((e,t)=>(null==s?void 0:s[t])===e))||!r.value)return;let l=JD(t) +;l&&WD((()=>{var t,r;if(!i.value)return +;let a=JD(n),s=null==(t=e.value)?void 0:t.activeElement;if(a){ +if(a===s)return void(o.value=s)}else if(l.contains(s))return void(o.value=s) +;a?v$(a):y$(l,c$.First|c$.NoScroll)===u$.Error&&console.warn("There are no focusable elements inside the "), +o.value=null==(r=e.value)?void 0:r.activeElement}))}),{immediate:!0,flush:"post" +})})),o}({ownerDocument:i,container:o,initialFocus:Aa((()=>e.initialFocus)) +},Aa((()=>a.value&&Boolean(2&e.features)))) +;!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){ +var i;J$(null==(i=e.value)?void 0:i.defaultView,"focus",(e=>{if(!o.value)return +;let i=nR(n);JD(t)instanceof HTMLElement&&i.add(JD(t));let a=r.value +;if(!a)return;let s=e.target +;s&&s instanceof HTMLElement?iR(i,s)?(r.value=s,v$(s)):(e.preventDefault(), +e.stopPropagation(),v$(a)):v$(r.value)}),!0)}({ownerDocument:i,container:o, +containers:e.containers,previousActiveElement:s +},Aa((()=>a.value&&Boolean(8&e.features))));let l=tR();function c(e){let t=JD(o) +;t&&e$(l.value,{[eR.Forwards]:()=>{y$(t,c$.First,{skipElements:[e.relatedTarget] +})},[eR.Backwards]:()=>{y$(t,c$.Last,{skipElements:[e.relatedTarget]})}})} +let u=Bn(!1);function d(e){ +"Tab"===e.key&&(u.value=!0,requestAnimationFrame((()=>{u.value=!1})))} +function p(t){if(!a.value)return;let n=nR(e.containers) +;JD(o)instanceof HTMLElement&&n.add(JD(o));let r=t.relatedTarget +;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(iR(n,r)||(u.value?y$(JD(o),e$(l.value,{ +[eR.Forwards]:()=>c$.Next,[eR.Backwards]:()=>c$.Previous})|c$.WrapAround,{ +relativeTo:t.target}):t.target instanceof HTMLElement&&v$(t.target)))} +return()=>{let r={ref:o,onKeydown:d,onFocusout:p +},{features:i,initialFocus:a,containers:s,...l}=e +;return Pa(Bi,[Boolean(4&i)&&Pa(Q$,{as:"button",type:"button", +"data-headlessui-focus-guard":!0,onFocus:c,features:B$.Focusable}),R$({ +ourProps:r,theirProps:{...t,...l},slot:{},attrs:t,slots:n,name:"FocusTrap" +}),Boolean(4&i)&&Pa(Q$,{as:"button",type:"button", +"data-headlessui-focus-guard":!0,onFocus:c,features:B$.Focusable})])}}}),{ +features:rR});function iR(e,t){for(let n of e)if(n.contains(t))return!0;return!1 +}function aR(){let e;return{before({doc:t}){var n;let r=t.documentElement +;e=(null!=(n=t.defaultView)?n:window).innerWidth-r.clientWidth}, +after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o +;n.style(r,"paddingRight",`${i}px`)}}}function sR(e){let t={} +;for(let n of e)Object.assign(t,n(t));return t}let lR=function(e,t){ +let n=e(),r=new Set;return{getSnapshot:()=>n, +subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o) +;i&&(n=i,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n +;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:XD(),meta:new Set} +;return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e) +;return n&&(n.count--,n.meta.delete(t)),this}, +SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:sR(n)},o=[w$()?{ +before({doc:e,d:t,meta:n}){function r(e){ +return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))} +t.microTask((()=>{var n +;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){ +let n=XD() +;n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose())))) +}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null +;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{ +let n=t.target.closest("a");if(!n)return +;let{hash:o}=new URL(n.href),a=e.querySelector(o);a&&!r(a)&&(i=a)}catch{}}),!0), +t.addEventListener(e,"touchstart",(e=>{ +if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target +;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement +;t.style(n,"overscrollBehavior","contain") +}else t.style(e.target,"touchAction","none") +})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){ +if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target +;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement +;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()} +}),{passive:!1}),t.add((()=>{var e +;let t=null!=(e=window.scrollY)?e:window.pageYOffset +;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({ +block:"nearest"}),i=null)}))}))}}:{},aR(),{before({doc:e,d:t}){ +t.style(e.documentElement,"overflow","hidden")}}] +;o.forEach((({before:e})=>null==e?void 0:e(r))), +o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()}, +TEARDOWN({doc:e}){this.delete(e)}});function cR(e,t,n){let r=function(e){ +let t=Qn(e.getSnapshot());return Hr(e.subscribe((()=>{t.value=e.getSnapshot() +}))),t}(lR),o=Aa((()=>{let t=e.value?r.value.get(e.value):void 0 +;return!!t&&t.count>0}));return li([e,t],(([e,t],[r],o)=>{if(!e||!t)return +;lR.dispatch("PUSH",e,n);let i=!1;o((()=>{ +i||(lR.dispatch("POP",null!=r?r:e,n),i=!0)}))}),{immediate:!0}),o} +lR.subscribe((()=>{let e=lR.getSnapshot(),t=new Map +;for(let[n]of e)t.set(n,n.documentElement.style.overflow) +;for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count +;(r&&!e||!r&&e)&&lR.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n), +0===n.count&&lR.dispatch("TEARDOWN",n)}}));let uR=new Map,dR=new Map +;function pR(e,t=Bn(!0)){ai((n=>{var r;if(!t.value)return;let o=JD(e) +;if(!o)return;n((function(){var e;if(!o)return;let t=null!=(e=dR.get(o))?e:1 +;if(1===t?dR.delete(o):dR.set(o,t-1),1!==t)return;let n=uR.get(o) +;n&&(null===n["aria-hidden"]?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",n["aria-hidden"]), +o.inert=n.inert,uR.delete(o))}));let i=null!=(r=dR.get(o))?r:0 +;dR.set(o,i+1),0===i&&(uR.set(o,{"aria-hidden":o.getAttribute("aria-hidden"), +inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)}))} +function hR({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){ +let r=Bn(null),o=o$(r);function i(){var n,i,a;let s=[] +;for(let t of e)null!==t&&(t instanceof HTMLElement?s.push(t):"value"in t&&t.value instanceof HTMLElement&&s.push(t.value)) +;if(null!=t&&t.value)for(let e of t.value)s.push(e) +;for(let e of null!=(n=null==o?void 0:o.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(JD(r))||e.contains(null==(a=null==(i=JD(r))?void 0:i.getRootNode())?void 0:a.host)||s.some((t=>e.contains(t)))||s.push(e)) +;return s}return{resolveContainers:i,contains:e=>i().some((t=>t.contains(e))), +mainTreeNodeRef:r,MainTreeNode:()=>null!=n?null:Pa(Q$,{features:B$.Hidden,ref:r +})}}let fR=Symbol("ForcePortalRootContext");let mR=eo({name:"ForcePortalRoot", +props:{as:{type:[Object,String],default:"template"},force:{type:Boolean, +default:!1}},setup:(e,{slots:t,attrs:n})=>(Do(fR,e.force),()=>{ +let{force:r,...o}=e;return R$({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n, +name:"ForcePortalRoot"})})}),gR=Symbol("StackContext") +;var vR=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(vR||{}) +;function bR({type:e,enabled:t,element:n,onUpdate:r}){let o=$o(gR,(()=>{})) +;function i(...e){null==r||r(...e),o(...e)}Ur((()=>{li(t,((t,r)=>{ +t?i(0,e,n):!0===r&&i(1,e,n)}),{immediate:!0,flush:"sync"})})),Hr((()=>{ +t.value&&i(1,e,n)})),Do(gR,i)}let OR=Symbol("DescriptionContext");let yR=eo({ +name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String, +default:null}},setup(e,{attrs:t,slots:n}){var r +;let o=null!=(r=e.id)?r:`headlessui-description-${KD()}`,i=function(){ +let e=$o(OR,null);if(null===e)throw new Error("Missing parent");return e}() +;return Ur((()=>Hr(i.register(o)))),()=>{ +let{name:r="Description",slot:a=Bn({}),props:s={}}=i,{...l}=e;return R$({ +ourProps:{...Object.entries(s).reduce(((e,[t,n])=>Object.assign(e,{[t]:Fn(n) +})),{}),id:o},theirProps:l,slot:a.value,attrs:t,slots:n,name:r})}}}) +;const wR=new WeakMap;function xR(e,t){let n=t(function(e){var t +;return null!=(t=wR.get(e))?t:0}(e));return n<=0?wR.delete(e):wR.set(e,n),n} +let kR=eo({name:"Portal",props:{as:{type:[Object,String],default:"div"}}, +setup(e,{slots:t,attrs:n}){ +let r=Bn(null),o=Aa((()=>o$(r))),i=$o(fR,!1),a=$o(ER,null),s=Bn(!0===i||null==a?function(e){ +let t=o$(e);if(!t){if(null===e)return null +;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`) +}let n=t.getElementById("headlessui-portal-root");if(n)return n +;let r=t.createElement("div") +;return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r) +}(r.value):a.resolveTarget());s.value&&xR(s.value,(e=>e+1));let l=Bn(!1) +;Ur((()=>{l.value=!0})),ai((()=>{i||null!=a&&(s.value=a.resolveTarget())})) +;let c=$o(SR,null),u=!1,d=ma();return li(r,(()=>{if(u||!c)return;let e=JD(r) +;e&&(Hr(c.register(e),d),u=!0)})),Hr((()=>{var e,t +;let n=null==(e=o.value)?void 0:e.getElementById("headlessui-portal-root") +;!n||s.value!==n||xR(s.value,(e=>e-1))||s.value.children.length>0||null==(t=s.value.parentElement)||t.removeChild(s.value) +})),()=>{if(!l.value||null===s.value)return null;let o={ref:r, +"data-headlessui-portal":""};return Pa(Mi,{to:s.value},R$({ourProps:o, +theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}} +}),SR=Symbol("PortalParentContext");function _R(){let e=$o(SR,null),t=Bn([]) +;function n(n){let r=t.value.indexOf(n) +;-1!==r&&t.value.splice(r,1),e&&e.unregister(n)}let r={register:function(r){ +return t.value.push(r),e&&e.register(r),()=>n(r)},unregister:n,portals:t} +;return[t,eo({name:"PortalWrapper",setup:(e,{slots:t})=>(Do(SR,r),()=>{var e +;return null==(e=t.default)?void 0:e.call(t)})})]} +let ER=Symbol("PortalGroupContext"),TR=eo({name:"PortalGroup",props:{as:{ +type:[Object,String],default:"template"},target:{type:Object,default:null}}, +setup(e,{attrs:t,slots:n}){let r=wn({resolveTarget:()=>e.target}) +;return Do(ER,r),()=>{let{target:r,...o}=e;return R$({theirProps:o,ourProps:{}, +slot:{},attrs:t,slots:n,name:"PortalGroup"})}}}) +;var CR,AR=((CR=AR||{})[CR.Open=0]="Open",CR[CR.Closed=1]="Closed",CR) +;let PR=Symbol("DialogContext");function DR(e){let t=$o(PR,null);if(null===t){ +let t=new Error(`<${e} /> is missing a parent component.`) +;throw Error.captureStackTrace&&Error.captureStackTrace(t,DR),t}return t} +let $R="DC8F892D-2EBD-447C-A4C8-A03058436FF4",RR=eo({name:"Dialog", +inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{ +type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{ +type:[Boolean,String],default:$R},initialFocus:{type:Object,default:null},id:{ +type:String,default:null},role:{type:String,default:"dialog"}},emits:{ +close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i,a +;let s=null!=(i=e.id)?i:`headlessui-dialog-${KD()}`,l=Bn(!1);Ur((()=>{l.value=!0 +})) +;let c=!1,u=Aa((()=>"dialog"===e.role||"alertdialog"===e.role?e.role:(c||(c=!0, +console.warn(`Invalid role [${u}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), +"dialog"))),d=Bn(0),p=F$(),h=Aa((()=>e.open===$R&&null!==p?(p.value&U$.Open)===U$.Open:e.open)),f=Bn(null),m=Aa((()=>o$(f))) +;if(o({el:f,$el:f +}),e.open===$R&&null===p)throw new Error("You forgot to provide an `open` prop to the `Dialog`.") +;if("boolean"!=typeof h.value)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value===$R?void 0:e.open}`) +;let g=Aa((()=>l.value&&h.value?0:1)),v=Aa((()=>0===g.value)),b=Aa((()=>d.value>1)),O=null!==$o(PR,null),[y,w]=_R(),{resolveContainers:x,mainTreeNodeRef:k,MainTreeNode:S}=hR({ +portals:y,defaultContainers:[Aa((()=>{var e +;return null!=(e=R.panelRef.value)?e:f.value}))] +}),_=Aa((()=>b.value?"parent":"leaf")),E=Aa((()=>null!==p&&(p.value&U$.Closing)===U$.Closing)),T=Aa((()=>!O&&!E.value&&v.value)),C=Aa((()=>{ +var e,t,n +;return null!=(n=Array.from(null!=(t=null==(e=m.value)?void 0:e.querySelectorAll("body > *"))?t:[]).find((e=>"headlessui-portal-root"!==e.id&&(e.contains(JD(k))&&e instanceof HTMLElement))))?n:null +}));pR(C,T);let A=Aa((()=>!!b.value||v.value)),P=Aa((()=>{var e,t,n +;return null!=(n=Array.from(null!=(t=null==(e=m.value)?void 0:e.querySelectorAll("[data-headlessui-portal]"))?t:[]).find((e=>e.contains(JD(k))&&e instanceof HTMLElement)))?n:null +}));pR(P,A),bR({type:"Dialog",enabled:Aa((()=>0===g.value)),element:f, +onUpdate:(e,t)=>{if("Dialog"===t)return e$(e,{[vR.Add]:()=>d.value+=1, +[vR.Remove]:()=>d.value-=1})}}) +;let D=function({slot:e=Bn({}),name:t="Description",props:n={}}={}){let r=Bn([]) +;return Do(OR,{register:function(e){return r.value.push(e),()=>{ +let t=r.value.indexOf(e);-1!==t&&r.value.splice(t,1)}},slot:e,name:t,props:n +}),Aa((()=>r.value.length>0?r.value.join(" "):void 0))}({ +name:"DialogDescription",slot:Aa((()=>({open:h.value})))}),$=Bn(null),R={ +titleId:$,panelRef:Bn(null),dialogState:g,setTitleId(e){$.value!==e&&($.value=e) +},close(){t("close",!1)}};Do(PR,R);let N=Aa((()=>!(!v.value||b.value))) +;_$(x,((e,t)=>{e.preventDefault(),R.close(),dr((()=>null==t?void 0:t.focus())) +}),N);let I=Aa((()=>!(b.value||0!==g.value))) +;J$(null==(a=m.value)?void 0:a.defaultView,"keydown",(e=>{ +I.value&&(e.defaultPrevented||e.key===H$.Escape&&(e.preventDefault(), +e.stopPropagation(),R.close()))}));let M=Aa((()=>!(E.value||0!==g.value||O))) +;return cR(m,M,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],x]} +})),ai((e=>{if(0!==g.value)return;let t=JD(f);if(!t)return +;let n=new ResizeObserver((e=>{for(let t of e){ +let e=t.target.getBoundingClientRect() +;0===e.x&&0===e.y&&0===e.width&&0===e.height&&R.close()}})) +;n.observe(t),e((()=>n.disconnect()))})),()=>{ +let{open:t,initialFocus:o,...i}=e,a={...n,ref:f,id:s,role:u.value, +"aria-modal":0===g.value||void 0,"aria-labelledby":$.value, +"aria-describedby":D.value},l={open:0===g.value};return Pa(mR,{force:!0 +},(()=>[Pa(kR,(()=>Pa(TR,{target:f.value},(()=>Pa(mR,{force:!1},(()=>Pa(oR,{ +initialFocus:o,containers:x,features:v.value?e$(_.value,{ +parent:oR.features.RestoreFocus,leaf:oR.features.All&~oR.features.FocusLock +}):oR.features.None},(()=>Pa(w,{},(()=>R$({ourProps:a,theirProps:{...i,...n}, +slot:l,attrs:n,slots:r,visible:0===g.value,features:D$.RenderStrategy|D$.Static, +name:"Dialog"}))))))))))),Pa(S)]))}}}),NR=eo({name:"DialogPanel",props:{as:{ +type:[Object,String],default:"div"},id:{type:String,default:null}}, +setup(e,{attrs:t,slots:n,expose:r}){var o +;let i=null!=(o=e.id)?o:`headlessui-dialog-panel-${KD()}`,a=DR("DialogPanel") +;function s(e){e.stopPropagation()}return r({el:a.panelRef,$el:a.panelRef +}),()=>{let{...r}=e;return R$({ourProps:{id:i,ref:a.panelRef,onClick:s}, +theirProps:r,slot:{open:0===a.dialogState.value},attrs:t,slots:n, +name:"DialogPanel"})}}}),IR=eo({name:"DialogTitle",props:{as:{ +type:[Object,String],default:"h2"},id:{type:String,default:null}}, +setup(e,{attrs:t,slots:n}){var r +;let o=null!=(r=e.id)?r:`headlessui-dialog-title-${KD()}`,i=DR("DialogTitle") +;return Ur((()=>{i.setTitleId(o),Hr((()=>i.setTitleId(null)))})),()=>{ +let{...r}=e;return R$({ourProps:{id:o},theirProps:r,slot:{ +open:0===i.dialogState.value},attrs:t,slots:n,name:"DialogTitle"})}}}),MR=yR +;var LR=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(LR||{}) +;let BR=Symbol("DisclosureContext");function QR(e){let t=$o(BR,null) +;if(null===t){ +let t=new Error(`<${e} /> is missing a parent component.`) +;throw Error.captureStackTrace&&Error.captureStackTrace(t,QR),t}return t} +let jR=Symbol("DisclosurePanelContext");let UR=eo({name:"Disclosure",props:{as:{ +type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1} +},setup(e,{slots:t,attrs:n}){ +let r=Bn(e.defaultOpen?0:1),o=Bn(null),i=Bn(null),a={ +buttonId:Bn(`headlessui-disclosure-button-${KD()}`), +panelId:Bn(`headlessui-disclosure-panel-${KD()}`),disclosureState:r,panel:o, +button:i,toggleDisclosure(){r.value=e$(r.value,{0:1,1:0})},closeDisclosure(){ +1!==r.value&&(r.value=1)},close(e){a.closeDisclosure() +;let t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?JD(e):JD(a.button):JD(a.button) +;null==t||t.focus()}};return Do(BR,a),q$(Aa((()=>e$(r.value,{0:U$.Open, +1:U$.Closed})))),()=>{let{defaultOpen:o,...i}=e;return R$({theirProps:i, +ourProps:{},slot:{open:0===r.value,close:a.close},slots:t,attrs:n, +name:"Disclosure"})}}}),FR=eo({name:"DisclosureButton",props:{as:{ +type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{ +type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){ +let o=QR("DisclosureButton"),i=$o(jR,null),a=Aa((()=>null!==i&&i.value===o.panelId.value)) +;Ur((()=>{a.value||null!==e.id&&(o.buttonId.value=e.id)})),Hr((()=>{ +a.value||(o.buttonId.value=null)}));let s=Bn(null);r({el:s,$el:s +}),a.value||ai((()=>{o.button.value=s.value}));let l=T$(Aa((()=>({as:e.as, +type:t.type}))),s);function c(){var t +;e.disabled||(a.value?(o.toggleDisclosure(), +null==(t=JD(o.button))||t.focus()):o.toggleDisclosure())}function u(t){var n +;if(!e.disabled)if(a.value)switch(t.key){case H$.Space:case H$.Enter: +t.preventDefault(), +t.stopPropagation(),o.toggleDisclosure(),null==(n=JD(o.button))||n.focus() +}else switch(t.key){case H$.Space:case H$.Enter: +t.preventDefault(),t.stopPropagation(),o.toggleDisclosure()}}function d(e){ +if(e.key===H$.Space)e.preventDefault()}return()=>{var r;let i={ +open:0===o.disclosureState.value},{id:p,...h}=e;return R$({ourProps:a.value?{ +ref:s,type:l.value,onClick:c,onKeydown:u}:{id:null!=(r=o.buttonId.value)?r:p, +ref:s,type:l.value,"aria-expanded":0===o.disclosureState.value, +"aria-controls":0===o.disclosureState.value||JD(o.panel)?o.panelId.value:void 0, +disabled:!!e.disabled||void 0,onClick:c,onKeydown:u,onKeyup:d},theirProps:h, +slot:i,attrs:t,slots:n,name:"DisclosureButton"})}}}),qR=eo({ +name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{ +type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String, +default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=QR("DisclosurePanel") +;Ur((()=>{null!==e.id&&(o.panelId.value=e.id)})),Hr((()=>{o.panelId.value=null +})),r({el:o.panel,$el:o.panel}),Do(jR,o.panelId) +;let i=F$(),a=Aa((()=>null!==i?(i.value&U$.Open)===U$.Open:0===o.disclosureState.value)) +;return()=>{var r;let i={open:0===o.disclosureState.value,close:o.close +},{id:s,...l}=e;return R$({ourProps:{id:null!=(r=o.panelId.value)?r:s, +ref:o.panel},theirProps:l,slot:i,attrs:t,slots:n, +features:D$.RenderStrategy|D$.Static,visible:a.value,name:"DisclosurePanel"})}} +}),zR=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g +;function HR(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0) +;if(!(o instanceof HTMLElement))return r;let i=!1 +;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(), +i=!0;let a=i?null!=(n=o.innerText)?n:"":r +;return zR.test(a)&&(a=a.replace(zR,"")),a}function ZR(e){let t=Bn(""),n=Bn("") +;return()=>{let r=JD(e);if(!r)return"";let o=r.innerText +;if(t.value===o)return n.value;let i=function(e){ +let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim() +;let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{ +let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label") +;return"string"==typeof e?e.trim():HR(t).trim()}return null})).filter(Boolean) +;if(e.length>0)return e.join(", ")}return HR(e).trim()}(r).trim().toLowerCase() +;return t.value=o,n.value=i,i}}function VR(e,t){return e===t} +var WR=(e=>(e[e.Open=0]="Open", +e[e.Closed=1]="Closed",e))(WR||{}),XR=(e=>(e[e.Single=0]="Single", +e[e.Multi=1]="Multi", +e))(XR||{}),YR=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(YR||{}) +;let GR=Symbol("ListboxContext");function KR(e){let t=$o(GR,null);if(null===t){ +let t=new Error(`<${e} /> is missing a parent component.`) +;throw Error.captureStackTrace&&Error.captureStackTrace(t,KR),t}return t} +let JR=eo({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{ +type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1}, +by:{type:[String,Function],default:()=>VR},horizontal:{type:[Boolean],default:!1 +},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{ +type:[Object,String,Number,Boolean],default:void 0},form:{type:String, +optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1} +},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){ +let o=Bn(1),i=Bn(null),a=Bn(null),s=Bn(null),l=Bn([]),c=Bn(""),u=Bn(null),d=Bn(1) +;function p(e=e=>e){ +let t=null!==u.value?l.value[u.value]:null,n=O$(e(l.value.slice()),(e=>JD(e.dataRef.domRef))),r=t?n.indexOf(t):null +;return-1===r&&(r=null),{options:n,activeOptionIndex:r}} +let h=Aa((()=>e.multiple?1:0)),[f,m]=function(e,t,n){ +let r=Bn(null==n?void 0:n.value),o=Aa((()=>void 0!==e.value)) +;return[Aa((()=>o.value?e.value:r.value)),function(e){ +return o.value||(r.value=e),null==t?void 0:t(e)}] +}(Aa((()=>e.modelValue)),(e=>r("update:modelValue",e)),Aa((()=>e.defaultValue))),g=Aa((()=>void 0===f.value?e$(h.value,{ +1:[],0:void 0}):f.value)),v={listboxState:o,value:g,mode:h,compare(t,n){ +if("string"==typeof e.by){let r=e.by +;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e.by(t,n)}, +orientation:Aa((()=>e.horizontal?"horizontal":"vertical")),labelRef:i, +buttonRef:a,optionsRef:s,disabled:Aa((()=>e.disabled)),options:l,searchQuery:c, +activeOptionIndex:u,activationTrigger:d,closeListbox(){ +e.disabled||1!==o.value&&(o.value=1,u.value=null)},openListbox(){ +e.disabled||0!==o.value&&(o.value=0)},goToOption(t,n,r){ +if(e.disabled||1===o.value)return;let i=p(),a=X$(t===W$.Specific?{ +focus:W$.Specific,id:n}:{focus:t},{resolveItems:()=>i.options, +resolveActiveIndex:()=>i.activeOptionIndex,resolveId:e=>e.id, +resolveDisabled:e=>e.dataRef.disabled}) +;c.value="",u.value=a,d.value=null!=r?r:1,l.value=i.options},search(t){ +if(e.disabled||1===o.value)return;let n=""!==c.value?0:1 +;c.value+=t.toLowerCase() +;let r=(null!==u.value?l.value.slice(u.value+n).concat(l.value.slice(0,u.value+n)):l.value).find((e=>e.dataRef.textValue.startsWith(c.value)&&!e.dataRef.disabled)),i=r?l.value.indexOf(r):-1 +;-1===i||i===u.value||(u.value=i,d.value=1)},clearSearch(){ +e.disabled||1!==o.value&&""!==c.value&&(c.value="")},registerOption(e,t){ +let n=p((n=>[...n,{id:e,dataRef:t}])) +;l.value=n.options,u.value=n.activeOptionIndex},unregisterOption(e){ +let t=p((t=>{let n=t.findIndex((t=>t.id===e));return-1!==n&&t.splice(n,1),t})) +;l.value=t.options,u.value=t.activeOptionIndex,d.value=1},theirOnChange(t){ +e.disabled||m(t)},select(t){e.disabled||m(e$(h.value,{0:()=>t,1:()=>{ +let e=Pn(v.value.value).slice(),n=Pn(t),r=e.findIndex((e=>v.compare(n,Pn(e)))) +;return-1===r?e.push(n):e.splice(r,1),e}}))}};_$([a,s],((e,t)=>{var n +;v.closeListbox(), +f$(t,h$.Loose)||(e.preventDefault(),null==(n=JD(a))||n.focus()) +}),Aa((()=>0===o.value))),Do(GR,v),q$(Aa((()=>e$(o.value,{0:U$.Open,1:U$.Closed +}))));let b=Aa((()=>{var e;return null==(e=JD(a))?void 0:e.closest("form")})) +;return Ur((()=>{li([b],(()=>{ +if(b.value&&void 0!==e.defaultValue)return b.value.addEventListener("reset",t), +()=>{var e;null==(e=b.value)||e.removeEventListener("reset",t)};function t(){ +v.theirOnChange(e.defaultValue)}}),{immediate:!0})})),()=>{ +let{name:r,modelValue:i,disabled:a,form:s,...l}=e,c={open:0===o.value, +disabled:a,value:g.value};return Pa(Bi,[...null!=r&&null!=g.value?Y$({ +[r]:g.value}).map((([e,t])=>Pa(Q$,function(e){let t=Object.assign({},e) +;for(let n in t)void 0===t[n]&&delete t[n];return t}({features:B$.Hidden,key:e, +as:"input",type:"hidden",hidden:!0,readOnly:!0,form:s,disabled:a,name:e,value:t +})))):[],R$({ourProps:{},theirProps:{...n, +...L$(l,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])}, +slot:c,slots:t,attrs:n,name:"Listbox"})])}}}),eN=eo({name:"ListboxButton", +props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null} +},setup(e,{attrs:t,slots:n,expose:r}){var o +;let i=null!=(o=e.id)?o:`headlessui-listbox-button-${KD()}`,a=KR("ListboxButton") +;function s(e){switch(e.key){case H$.Space:case H$.Enter:case H$.ArrowDown: +e.preventDefault(),a.openListbox(),dr((()=>{var e +;null==(e=JD(a.optionsRef))||e.focus({preventScroll:!0 +}),a.value.value||a.goToOption(W$.First)}));break;case H$.ArrowUp: +e.preventDefault(),a.openListbox(),dr((()=>{var e +;null==(e=JD(a.optionsRef))||e.focus({preventScroll:!0 +}),a.value.value||a.goToOption(W$.Last)}))}}function l(e){ +if(e.key===H$.Space)e.preventDefault()}function c(e){ +a.disabled.value||(0===a.listboxState.value?(a.closeListbox(),dr((()=>{var e +;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0}) +}))):(e.preventDefault(),a.openListbox(),function(e){ +requestAnimationFrame((()=>requestAnimationFrame(e)))}((()=>{var e +;return null==(e=JD(a.optionsRef))?void 0:e.focus({preventScroll:!0})}))))}r({ +el:a.buttonRef,$el:a.buttonRef});let u=T$(Aa((()=>({as:e.as,type:t.type +}))),a.buttonRef);return()=>{var r,o;let d={open:0===a.listboxState.value, +disabled:a.disabled.value,value:a.value.value},{...p}=e;return R$({ourProps:{ +ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"listbox", +"aria-controls":null==(r=JD(a.optionsRef))?void 0:r.id, +"aria-expanded":0===a.listboxState.value, +"aria-labelledby":a.labelRef.value?[null==(o=JD(a.labelRef))?void 0:o.id,i].join(" "):void 0, +disabled:!0===a.disabled.value||void 0,onKeydown:s,onKeyup:l,onClick:c}, +theirProps:p,slot:d,attrs:t,slots:n,name:"ListboxButton"})}}}),tN=eo({ +name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{ +type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String, +default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o +;let i=null!=(o=e.id)?o:`headlessui-listbox-options-${KD()}`,a=KR("ListboxOptions"),s=Bn(null) +;function l(e){switch(s.value&&clearTimeout(s.value),e.key){case H$.Space: +if(""!==a.searchQuery.value)return e.preventDefault(), +e.stopPropagation(),a.search(e.key);case H$.Enter: +if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex.value){ +let e=a.options.value[a.activeOptionIndex.value];a.select(e.dataRef.value)} +0===a.mode.value&&(a.closeListbox(),dr((()=>{var e +;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})})));break +;case e$(a.orientation.value,{vertical:H$.ArrowDown,horizontal:H$.ArrowRight}): +return e.preventDefault(),e.stopPropagation(),a.goToOption(W$.Next) +;case e$(a.orientation.value,{vertical:H$.ArrowUp,horizontal:H$.ArrowLeft}): +return e.preventDefault(),e.stopPropagation(),a.goToOption(W$.Previous) +;case H$.Home:case H$.PageUp: +return e.preventDefault(),e.stopPropagation(),a.goToOption(W$.First) +;case H$.End:case H$.PageDown: +return e.preventDefault(),e.stopPropagation(),a.goToOption(W$.Last) +;case H$.Escape: +e.preventDefault(),e.stopPropagation(),a.closeListbox(),dr((()=>{var e +;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})}));break +;case H$.Tab:e.preventDefault(),e.stopPropagation();break;default: +1===e.key.length&&(a.search(e.key), +s.value=setTimeout((()=>a.clearSearch()),350))}}r({el:a.optionsRef, +$el:a.optionsRef}) +;let c=F$(),u=Aa((()=>null!==c?(c.value&U$.Open)===U$.Open:0===a.listboxState.value)) +;return()=>{var r,o;let s={open:0===a.listboxState.value},{...c}=e;return R$({ +ourProps:{ +"aria-activedescendant":null===a.activeOptionIndex.value||null==(r=a.options.value[a.activeOptionIndex.value])?void 0:r.id, +"aria-multiselectable":1===a.mode.value||void 0, +"aria-labelledby":null==(o=JD(a.buttonRef))?void 0:o.id, +"aria-orientation":a.orientation.value,id:i,onKeydown:l,role:"listbox", +tabIndex:0,ref:a.optionsRef},theirProps:c,slot:s,attrs:t,slots:n, +features:D$.RenderStrategy|D$.Static,visible:u.value,name:"ListboxOptions"})}} +}),nN=eo({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"}, +value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}, +id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o +;let i=null!=(o=e.id)?o:`headlessui-listbox-option-${KD()}`,a=KR("ListboxOption"),s=Bn(null) +;r({el:s,$el:s}) +;let l=Aa((()=>null!==a.activeOptionIndex.value&&a.options.value[a.activeOptionIndex.value].id===i)),c=Aa((()=>e$(a.mode.value,{ +0:()=>a.compare(Pn(a.value.value),Pn(e.value)), +1:()=>Pn(a.value.value).some((t=>a.compare(Pn(t),Pn(e.value)))) +}))),u=Aa((()=>e$(a.mode.value,{1:()=>{var e;let t=Pn(a.value.value) +;return(null==(e=a.options.value.find((e=>t.some((t=>a.compare(Pn(t),Pn(e.dataRef.value)))))))?void 0:e.id)===i +},0:()=>c.value}))),d=ZR(s),p=Aa((()=>({disabled:e.disabled,value:e.value, +get textValue(){return d()},domRef:s})));function h(t){ +if(e.disabled)return t.preventDefault() +;a.select(e.value),0===a.mode.value&&(a.closeListbox(),dr((()=>{var e +;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})})))} +function f(){if(e.disabled)return a.goToOption(W$.Nothing) +;a.goToOption(W$.Specific,i)} +Ur((()=>a.registerOption(i,p))),Hr((()=>a.unregisterOption(i))),Ur((()=>{ +li([a.listboxState,c],(()=>{0===a.listboxState.value&&c.value&&e$(a.mode.value,{ +1:()=>{u.value&&a.goToOption(W$.Specific,i)},0:()=>{a.goToOption(W$.Specific,i)} +})}),{immediate:!0})})),ai((()=>{ +0===a.listboxState.value&&l.value&&0!==a.activationTrigger.value&&dr((()=>{ +var e,t +;return null==(t=null==(e=JD(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{ +block:"nearest"})}))}));let m=A$();function g(e){m.update(e)}function v(t){ +m.wasMoved(t)&&(e.disabled||l.value||a.goToOption(W$.Specific,i,0))} +function b(t){m.wasMoved(t)&&(e.disabled||l.value&&a.goToOption(W$.Nothing))} +return()=>{let{disabled:r}=e,o={active:l.value,selected:c.value,disabled:r +},{value:a,disabled:u,...d}=e;return R$({ourProps:{id:i,ref:s,role:"option", +tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0, +"aria-selected":c.value,disabled:void 0,onClick:h,onFocus:f,onPointerenter:g, +onMouseenter:g,onPointermove:v,onMousemove:v,onPointerleave:b,onMouseleave:b}, +theirProps:d,slot:o,attrs:n,slots:t,name:"ListboxOption"})}}}) +;var rN=(e=>(e[e.Open=0]="Open", +e[e.Closed=1]="Closed",e))(rN||{}),oN=(e=>(e[e.Pointer=0]="Pointer", +e[e.Other=1]="Other",e))(oN||{});let iN=Symbol("MenuContext");function aN(e){ +let t=$o(iN,null);if(null===t){ +let t=new Error(`<${e} /> is missing a parent component.`) +;throw Error.captureStackTrace&&Error.captureStackTrace(t,aN),t}return t} +let sN=eo({name:"Menu",props:{as:{type:[Object,String],default:"template"}}, +setup(e,{slots:t,attrs:n}){ +let r=Bn(1),o=Bn(null),i=Bn(null),a=Bn([]),s=Bn(""),l=Bn(null),c=Bn(1) +;function u(e=e=>e){ +let t=null!==l.value?a.value[l.value]:null,n=O$(e(a.value.slice()),(e=>JD(e.dataRef.domRef))),r=t?n.indexOf(t):null +;return-1===r&&(r=null),{items:n,activeItemIndex:r}}let d={menuState:r, +buttonRef:o,itemsRef:i,items:a,searchQuery:s,activeItemIndex:l, +activationTrigger:c,closeMenu:()=>{r.value=1,l.value=null}, +openMenu:()=>r.value=0,goToItem(e,t,n){let r=u(),o=X$(e===W$.Specific?{ +focus:W$.Specific,id:t}:{focus:e},{resolveItems:()=>r.items, +resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id, +resolveDisabled:e=>e.dataRef.disabled}) +;s.value="",l.value=o,c.value=null!=n?n:1,a.value=r.items},search(e){ +let t=""!==s.value?0:1;s.value+=e.toLowerCase() +;let n=(null!==l.value?a.value.slice(l.value+t).concat(a.value.slice(0,l.value+t)):a.value).find((e=>e.dataRef.textValue.startsWith(s.value)&&!e.dataRef.disabled)),r=n?a.value.indexOf(n):-1 +;-1===r||r===l.value||(l.value=r,c.value=1)},clearSearch(){s.value=""}, +registerItem(e,t){let n=u((n=>[...n,{id:e,dataRef:t}])) +;a.value=n.items,l.value=n.activeItemIndex,c.value=1},unregisterItem(e){ +let t=u((t=>{let n=t.findIndex((t=>t.id===e));return-1!==n&&t.splice(n,1),t})) +;a.value=t.items,l.value=t.activeItemIndex,c.value=1}};return _$([o,i],((e,t)=>{ +var n +;d.closeMenu(),f$(t,h$.Loose)||(e.preventDefault(),null==(n=JD(o))||n.focus()) +}),Aa((()=>0===r.value))),Do(iN,d),q$(Aa((()=>e$(r.value,{0:U$.Open,1:U$.Closed +})))),()=>{let o={open:0===r.value,close:d.closeMenu};return R$({ourProps:{}, +theirProps:e,slot:o,slots:t,attrs:n,name:"Menu"})}}}),lN=eo({name:"MenuButton", +props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String], +default:"button"},id:{type:String,default:null}}, +setup(e,{attrs:t,slots:n,expose:r}){var o +;let i=null!=(o=e.id)?o:`headlessui-menu-button-${KD()}`,a=aN("MenuButton") +;function s(e){switch(e.key){case H$.Space:case H$.Enter:case H$.ArrowDown: +e.preventDefault(),e.stopPropagation(),a.openMenu(),dr((()=>{var e +;null==(e=JD(a.itemsRef))||e.focus({preventScroll:!0}),a.goToItem(W$.First)})) +;break;case H$.ArrowUp: +e.preventDefault(),e.stopPropagation(),a.openMenu(),dr((()=>{var e +;null==(e=JD(a.itemsRef))||e.focus({preventScroll:!0}),a.goToItem(W$.Last)}))}} +function l(e){if(e.key===H$.Space)e.preventDefault()}function c(t){ +e.disabled||(0===a.menuState.value?(a.closeMenu(),dr((()=>{var e +;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0}) +}))):(t.preventDefault(),a.openMenu(),function(e){ +requestAnimationFrame((()=>requestAnimationFrame(e)))}((()=>{var e +;return null==(e=JD(a.itemsRef))?void 0:e.focus({preventScroll:!0})}))))}r({ +el:a.buttonRef,$el:a.buttonRef});let u=T$(Aa((()=>({as:e.as,type:t.type +}))),a.buttonRef);return()=>{var r;let o={open:0===a.menuState.value},{...d}=e +;return R$({ourProps:{ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"menu", +"aria-controls":null==(r=JD(a.itemsRef))?void 0:r.id, +"aria-expanded":0===a.menuState.value,onKeydown:s,onKeyup:l,onClick:c}, +theirProps:d,slot:o,attrs:t,slots:n,name:"MenuButton"})}}}),cN=eo({ +name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{ +type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String, +default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o +;let i=null!=(o=e.id)?o:`headlessui-menu-items-${KD()}`,a=aN("MenuItems"),s=Bn(null) +;function l(e){var t;switch(s.value&&clearTimeout(s.value),e.key){case H$.Space: +if(""!==a.searchQuery.value)return e.preventDefault(), +e.stopPropagation(),a.search(e.key);case H$.Enter: +if(e.preventDefault(),e.stopPropagation(),null!==a.activeItemIndex.value){ +null==(t=JD(a.items.value[a.activeItemIndex.value].dataRef.domRef))||t.click()} +a.closeMenu(),m$(JD(a.buttonRef));break;case H$.ArrowDown: +return e.preventDefault(),e.stopPropagation(),a.goToItem(W$.Next) +;case H$.ArrowUp: +return e.preventDefault(),e.stopPropagation(),a.goToItem(W$.Previous) +;case H$.Home:case H$.PageUp: +return e.preventDefault(),e.stopPropagation(),a.goToItem(W$.First);case H$.End: +case H$.PageDown: +return e.preventDefault(),e.stopPropagation(),a.goToItem(W$.Last) +;case H$.Escape:e.preventDefault(),e.stopPropagation(),a.closeMenu(),dr((()=>{ +var e;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})})) +;break;case H$.Tab: +e.preventDefault(),e.stopPropagation(),a.closeMenu(),dr((()=>function(e,t){ +return y$(p$(),t,{relativeTo:e}) +}(JD(a.buttonRef),e.shiftKey?c$.Previous:c$.Next)));break;default: +1===e.key.length&&(a.search(e.key), +s.value=setTimeout((()=>a.clearSearch()),350))}}function c(e){ +if(e.key===H$.Space)e.preventDefault()}r({el:a.itemsRef,$el:a.itemsRef +}),function({container:e,accept:t,walk:n,enabled:r}){ai((()=>{let o=e.value +;if(!o||void 0!==r&&!r.value)return;let i=o$(e);if(!i)return +;let a=Object.assign((e=>t(e)),{acceptNode:t +}),s=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,a,!1) +;for(;s.nextNode();)n(s.currentNode)}))}({container:Aa((()=>JD(a.itemsRef))), +enabled:Aa((()=>0===a.menuState.value)), +accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT, +walk(e){e.setAttribute("role","none")}}) +;let u=F$(),d=Aa((()=>null!==u?(u.value&U$.Open)===U$.Open:0===a.menuState.value)) +;return()=>{var r,o;let s={open:0===a.menuState.value},{...u}=e;return R$({ +ourProps:{ +"aria-activedescendant":null===a.activeItemIndex.value||null==(r=a.items.value[a.activeItemIndex.value])?void 0:r.id, +"aria-labelledby":null==(o=JD(a.buttonRef))?void 0:o.id,id:i,onKeydown:l, +onKeyup:c,role:"menu",tabIndex:0,ref:a.itemsRef},theirProps:u,slot:s,attrs:t, +slots:n,features:D$.RenderStrategy|D$.Static,visible:d.value,name:"MenuItems"})} +}}),uN=eo({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String], +default:"template"},disabled:{type:Boolean,default:!1},id:{type:String, +default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o +;let i=null!=(o=e.id)?o:`headlessui-menu-item-${KD()}`,a=aN("MenuItem"),s=Bn(null) +;r({el:s,$el:s}) +;let l=Aa((()=>null!==a.activeItemIndex.value&&a.items.value[a.activeItemIndex.value].id===i)),c=ZR(s),u=Aa((()=>({ +disabled:e.disabled,get textValue(){return c()},domRef:s})));function d(t){ +if(e.disabled)return t.preventDefault();a.closeMenu(),m$(JD(a.buttonRef))} +function p(){if(e.disabled)return a.goToItem(W$.Nothing) +;a.goToItem(W$.Specific,i)} +Ur((()=>a.registerItem(i,u))),Hr((()=>a.unregisterItem(i))),ai((()=>{ +0===a.menuState.value&&l.value&&0!==a.activationTrigger.value&&dr((()=>{var e,t +;return null==(t=null==(e=JD(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{ +block:"nearest"})}))}));let h=A$();function f(e){h.update(e)}function m(t){ +h.wasMoved(t)&&(e.disabled||l.value||a.goToItem(W$.Specific,i,0))}function g(t){ +h.wasMoved(t)&&(e.disabled||l.value&&a.goToItem(W$.Nothing))}return()=>{ +let{disabled:r,...o}=e,c={active:l.value,disabled:r,close:a.closeMenu} +;return R$({ourProps:{id:i,ref:s,role:"menuitem",tabIndex:!0===r?void 0:-1, +"aria-disabled":!0===r||void 0,onClick:d,onFocus:p,onPointerenter:f, +onMouseenter:f,onPointermove:m,onMousemove:m,onPointerleave:g,onMouseleave:g}, +theirProps:{...n,...o},slot:c,attrs:n,slots:t,name:"MenuItem"})}}}) +;var dN,pN=((dN=pN||{})[dN.Open=0]="Open",dN[dN.Closed=1]="Closed",dN) +;let hN=Symbol("PopoverContext");function fN(e){let t=$o(hN,null);if(null===t){ +let t=new Error(`<${e} /> is missing a parent <${bN.name} /> component.`) +;throw Error.captureStackTrace&&Error.captureStackTrace(t,fN),t}return t} +let mN=Symbol("PopoverGroupContext");function gN(){return $o(mN,null)} +let vN=Symbol("PopoverPanelContext");let bN=eo({name:"Popover",inheritAttrs:!1, +props:{as:{type:[Object,String],default:"div"}}, +setup(e,{slots:t,attrs:n,expose:r}){var o;let i=Bn(null);r({el:i,$el:i}) +;let a=Bn(1),s=Bn(null),l=Bn(null),c=Bn(null),u=Bn(null),d=Aa((()=>o$(i))),p=Aa((()=>{ +var e,t;if(!JD(s)||!JD(u))return!1 +;for(let c of document.querySelectorAll("body > *"))if(Number(null==c?void 0:c.contains(JD(s)))^Number(null==c?void 0:c.contains(JD(u))))return!0 +;let n=p$(),r=n.indexOf(JD(s)),o=(r+n.length-1)%n.length,i=(r+1)%n.length,a=n[o],l=n[i] +;return!(null!=(e=JD(u))&&e.contains(a)||null!=(t=JD(u))&&t.contains(l))})),h={ +popoverState:a,buttonId:Bn(null),panelId:Bn(null),panel:u,button:s, +isPortalled:p,beforePanelSentinel:l,afterPanelSentinel:c,togglePopover(){ +a.value=e$(a.value,{0:1,1:0})},closePopover(){1!==a.value&&(a.value=1)}, +close(e){h.closePopover() +;let t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?JD(e):JD(h.button):JD(h.button) +;null==t||t.focus()}};Do(hN,h),q$(Aa((()=>e$(a.value,{0:U$.Open,1:U$.Closed})))) +;let f={buttonId:h.buttonId,panelId:h.panelId,close(){h.closePopover()} +},m=gN(),g=null==m?void 0:m.registerPopover,[v,b]=_R(),O=hR({ +mainTreeNodeRef:null==m?void 0:m.mainTreeNodeRef,portals:v, +defaultContainers:[s,u]}) +;return ai((()=>null==g?void 0:g(f))),J$(null==(o=d.value)?void 0:o.defaultView,"focus",(e=>{ +var t,n +;e.target!==window&&e.target instanceof HTMLElement&&0===a.value&&(function(){ +var e,t,n,r +;return null!=(r=null==m?void 0:m.isFocusWithinPopoverGroup())?r:(null==(e=d.value)?void 0:e.activeElement)&&((null==(t=JD(s))?void 0:t.contains(d.value.activeElement))||(null==(n=JD(u))?void 0:n.contains(d.value.activeElement))) +}()||s&&u&&(O.contains(e.target)||null!=(t=JD(h.beforePanelSentinel))&&t.contains(e.target)||null!=(n=JD(h.afterPanelSentinel))&&n.contains(e.target)||h.closePopover())) +}),!0),_$(O.resolveContainers,((e,t)=>{var n +;h.closePopover(),f$(t,h$.Loose)||(e.preventDefault(), +null==(n=JD(s))||n.focus())}),Aa((()=>0===a.value))),()=>{let r={ +open:0===a.value,close:h.close};return Pa(Bi,[Pa(b,{},(()=>R$({theirProps:{...e, +...n},ourProps:{ref:i},slot:r,slots:t,attrs:n,name:"Popover" +}))),Pa(O.MainTreeNode)])}}}),ON=eo({name:"PopoverButton",props:{as:{ +type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{ +type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){ +var o +;let i=null!=(o=e.id)?o:`headlessui-popover-button-${KD()}`,a=fN("PopoverButton"),s=Aa((()=>o$(a.button))) +;r({el:a.button,$el:a.button}),Ur((()=>{a.buttonId.value=i})),Hr((()=>{ +a.buttonId.value=null})) +;let l=gN(),c=null==l?void 0:l.closeOthers,u=$o(vN,null),d=Aa((()=>null!==u&&u.value===a.panelId.value)),p=Bn(null),h=`headlessui-focus-sentinel-${KD()}` +;d.value||ai((()=>{a.button.value=JD(p)}));let f=T$(Aa((()=>({as:e.as, +type:t.type}))),p);function m(e){var t,n,r,o,i;if(d.value){ +if(1===a.popoverState.value)return;switch(e.key){case H$.Space:case H$.Enter: +e.preventDefault(), +null==(n=(t=e.target).click)||n.call(t),a.closePopover(),null==(r=JD(a.button))||r.focus() +}}else switch(e.key){case H$.Space:case H$.Enter: +e.preventDefault(),e.stopPropagation(), +1===a.popoverState.value&&(null==c||c(a.buttonId.value)),a.togglePopover();break +;case H$.Escape: +if(0!==a.popoverState.value)return null==c?void 0:c(a.buttonId.value) +;if(!JD(a.button)||null!=(o=s.value)&&o.activeElement&&(null==(i=JD(a.button))||!i.contains(s.value.activeElement)))return +;e.preventDefault(),e.stopPropagation(),a.closePopover()}}function g(e){ +d.value||e.key===H$.Space&&e.preventDefault()}function v(t){var n,r +;e.disabled||(d.value?(a.closePopover(), +null==(n=JD(a.button))||n.focus()):(t.preventDefault(), +t.stopPropagation(),1===a.popoverState.value&&(null==c||c(a.buttonId.value)), +a.togglePopover(),null==(r=JD(a.button))||r.focus()))}function b(e){ +e.preventDefault(),e.stopPropagation()}let O=tR();function y(){let e=JD(a.panel) +;e&&e$(O.value,{[eR.Forwards]:()=>y$(e,c$.First), +[eR.Backwards]:()=>y$(e,c$.Last) +})===u$.Error&&y$(p$().filter((e=>"true"!==e.dataset.headlessuiFocusGuard)),e$(O.value,{ +[eR.Forwards]:c$.Next,[eR.Backwards]:c$.Previous}),{relativeTo:JD(a.button)})} +return()=>{let r=0===a.popoverState.value,o={open:r},{...s}=e,l=d.value?{ref:p, +type:f.value,onKeydown:m,onClick:v}:{ref:p,id:i,type:f.value, +"aria-expanded":0===a.popoverState.value, +"aria-controls":JD(a.panel)?a.panelId.value:void 0, +disabled:!!e.disabled||void 0,onKeydown:m,onKeyup:g,onClick:v,onMousedown:b} +;return Pa(Bi,[R$({ourProps:l,theirProps:{...t,...s},slot:o,attrs:t,slots:n, +name:"PopoverButton"}),r&&!d.value&&a.isPortalled.value&&Pa(Q$,{id:h, +features:B$.Focusable,"data-headlessui-focus-guard":!0,as:"button", +type:"button",onFocus:y})])}}}),yN=eo({name:"PopoverPanel",props:{as:{ +type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{ +type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String, +default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o +;let i=null!=(o=e.id)?o:`headlessui-popover-panel-${KD()}`,{focus:a}=e,s=fN("PopoverPanel"),l=Aa((()=>o$(s.panel))),c=`headlessui-focus-sentinel-before-${KD()}`,u=`headlessui-focus-sentinel-after-${KD()}` +;r({el:s.panel,$el:s.panel}),Ur((()=>{s.panelId.value=i})),Hr((()=>{ +s.panelId.value=null})),Do(vN,s.panelId),ai((()=>{var e,t +;if(!a||0!==s.popoverState.value||!s.panel)return +;let n=null==(e=l.value)?void 0:e.activeElement +;null!=(t=JD(s.panel))&&t.contains(n)||y$(JD(s.panel),c$.First)})) +;let d=F$(),p=Aa((()=>null!==d?(d.value&U$.Open)===U$.Open:0===s.popoverState.value)) +;function h(e){var t,n;if(e.key===H$.Escape){ +if(0!==s.popoverState.value||!JD(s.panel)||l.value&&(null==(t=JD(s.panel))||!t.contains(l.value.activeElement)))return +;e.preventDefault(), +e.stopPropagation(),s.closePopover(),null==(n=JD(s.button))||n.focus()}} +function f(e){var t,n,r,o,i;let a=e.relatedTarget +;a&&JD(s.panel)&&(null!=(t=JD(s.panel))&&t.contains(a)||(s.closePopover(), +(null!=(r=null==(n=JD(s.beforePanelSentinel))?void 0:n.contains)&&r.call(n,a)||null!=(i=null==(o=JD(s.afterPanelSentinel))?void 0:o.contains)&&i.call(o,a))&&a.focus({ +preventScroll:!0})))}let m=tR();function g(){let e=JD(s.panel);e&&e$(m.value,{ +[eR.Forwards]:()=>{var t +;y$(e,c$.First)===u$.Error&&(null==(t=JD(s.afterPanelSentinel))||t.focus())}, +[eR.Backwards]:()=>{var e;null==(e=JD(s.button))||e.focus({preventScroll:!0})}}) +}function v(){let e=JD(s.panel);e&&e$(m.value,{[eR.Forwards]:()=>{ +let e=JD(s.button),t=JD(s.panel);if(!e)return +;let n=p$(),r=n.indexOf(e),o=n.slice(0,r+1),i=[...n.slice(r+1),...o] +;for(let a of i.slice())if("true"===a.dataset.headlessuiFocusGuard||null!=t&&t.contains(a)){ +let e=i.indexOf(a);-1!==e&&i.splice(e,1)}y$(i,c$.First,{sorted:!1})}, +[eR.Backwards]:()=>{var t +;y$(e,c$.Previous)===u$.Error&&(null==(t=JD(s.button))||t.focus())}})} +return()=>{let r={open:0===s.popoverState.value,close:s.close},{focus:o,...l}=e +;return R$({ourProps:{ref:s.panel,id:i,onKeydown:h, +onFocusout:a&&0===s.popoverState.value?f:void 0,tabIndex:-1},theirProps:{...t, +...l},attrs:t,slot:r,slots:{...n,default:(...e)=>{var t +;return[Pa(Bi,[p.value&&s.isPortalled.value&&Pa(Q$,{id:c, +ref:s.beforePanelSentinel,features:B$.Focusable, +"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g +}),null==(t=n.default)?void 0:t.call(n,...e),p.value&&s.isPortalled.value&&Pa(Q$,{ +id:u,ref:s.afterPanelSentinel,features:B$.Focusable, +"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:v})])]}}, +features:D$.RenderStrategy|D$.Static,visible:p.value,name:"PopoverPanel"})}}}) +;function wN(e){var t,n,r="" +;if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"boolean"==typeof e?"".concat(e):0===e?"0":e,SN=e=>{ +const t=function(){ +for(var t=arguments.length,n=new Array(t),r=0;r{const r=Object.fromEntries(Object.entries(e||{}).filter((e=>{ +let[t]=e;return!["class","className"].includes(t)}))) +;return t(n.map((e=>e(r))),null==e?void 0:e.class,null==e?void 0:e.className)}}, +cva:e=>n=>{var r +;if(null==(null==e?void 0:e.variants))return t(null==e?void 0:e.base,null==n?void 0:n.class,null==n?void 0:n.className) +;const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map((e=>{ +const t=null==n?void 0:n[e],r=null==i?void 0:i[e],a=kN(t)||kN(r);return o[e][a] +})),s={...i,...n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t +;return void 0===r?e:{...e,[n]:r}}),{}) +},l=null==e||null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{ +let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e +;const r=s[t];return Array.isArray(n)?n.includes(r):r===n}))?[...e,n,r]:e}),[]) +;return t(null==e?void 0:e.base,a,l,null==n?void 0:n.class,null==n?void 0:n.className) +},cx:t}},{compose:_N,cva:EN,cx:TN}=SN(),CN="-";function AN(e){ +const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[] +},o=function(e,t){if(!t)return e +;return e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])) +}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{$N(n,r,e,t)})),r +}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{ +getClassGroupId:function(e){const n=e.split(CN) +;return""===n[0]&&1!==n.length&&n.shift(),PN(n,t)||function(e){if(DN.test(e)){ +const t=DN.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":")) +;if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){ +const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function PN(e,t){var n +;if(0===e.length)return t.classGroupId +;const r=e[0],o=t.nextPart.get(r),i=o?PN(e.slice(1),o):void 0;if(i)return i +;if(0===t.validators.length)return;const a=e.join(CN) +;return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId +}const DN=/^\[(.+)\]$/;function $N(e,t,n,r){e.forEach((e=>{ +if("string"!=typeof e){ +if("function"==typeof e)return e.isThemeGetter?void $N(e(r),t,n,r):void t.validators.push({ +validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{ +$N(o,RN(t,e),n,r)}))}else{(""===e?t:RN(t,e)).classGroupId=n}}))} +function RN(e,t){let n=e;return t.split(CN).forEach((e=>{ +n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[] +}),n=n.nextPart.get(e)})),n}function NN(e){if(e<1)return{get:()=>{},set:()=>{}} +;let t=0,n=new Map,r=new Map;function o(o,i){ +n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e) +;return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){ +n.has(e)?n.set(e,t):o(e,t)}}}const IN="!";function MN(e){ +const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){ +const i=[];let a,s=0,l=0;for(let d=0;dl?a-l:void 0}}}const LN=/\s+/;function BN(){ +let e,t,n=0,r="" +;for(;nt(e)),e()) +;return n=function(e){return{cache:NN(e.cacheSize),splitModifiers:MN(e),...AN(e) +}}(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e) +;if(t)return t;const i=function(e,t){ +const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set +;return e.trim().split(LN).map((e=>{ +const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e) +;let s=r(a?i.substring(0,a):i),l=Boolean(a);if(!s){if(!a)return{ +isTailwindClass:!1,originalClassName:e};if(s=r(i),!s)return{isTailwindClass:!1, +originalClassName:e};l=!1}const c=function(e){if(e.length<=1)return e;const t=[] +;let n=[];return e.forEach((e=>{ +"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t +}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+IN:c,classGroupId:s, +originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{ +if(!e.isTailwindClass)return!0 +;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n +;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0) +})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,i),i} +return function(){return i(BN.apply(null,arguments))}}function UN(e){ +const t=t=>t[e]||[];return t.isThemeGetter=!0,t} +const FN=/^\[(?:([a-z-]+):)?(.+)\]$/i,qN=/^\d+\/\d+$/,zN=new Set(["px","full","screen"]),HN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,VN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,WN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/ +;function YN(e){return KN(e)||zN.has(e)||qN.test(e)}function GN(e){ +return dI(e,"length",pI)}function KN(e){ +return Boolean(e)&&!Number.isNaN(Number(e))}function JN(e){ +return dI(e,"number",KN)}function eI(e){ +return Boolean(e)&&Number.isInteger(Number(e))}function tI(e){ +return e.endsWith("%")&&KN(e.slice(0,-1))}function nI(e){return FN.test(e)} +function rI(e){return HN.test(e)} +const oI=new Set(["length","size","percentage"]);function iI(e){ +return dI(e,oI,hI)}function aI(e){return dI(e,"position",hI)} +const sI=new Set(["image","url"]);function lI(e){return dI(e,sI,mI)} +function cI(e){return dI(e,"",fI)}function uI(){return!0}function dI(e,t,n){ +const r=FN.exec(e) +;return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))} +function pI(e){return ZN.test(e)&&!VN.test(e)}function hI(){return!1} +function fI(e){return WN.test(e)}function mI(e){return XN.test(e)}function gI(){ +const e=UN("colors"),t=UN("spacing"),n=UN("blur"),r=UN("brightness"),o=UN("borderColor"),i=UN("borderRadius"),a=UN("borderSpacing"),s=UN("borderWidth"),l=UN("contrast"),c=UN("grayscale"),u=UN("hueRotate"),d=UN("invert"),p=UN("gap"),h=UN("gradientColorStops"),f=UN("gradientColorStopPositions"),m=UN("inset"),g=UN("margin"),v=UN("opacity"),b=UN("padding"),O=UN("saturate"),y=UN("scale"),w=UN("sepia"),x=UN("skew"),k=UN("space"),S=UN("translate"),_=()=>["auto",nI,t],E=()=>[nI,t],T=()=>["",YN,GN],C=()=>["auto",KN,nI],A=()=>["","0",nI],P=()=>[KN,JN],D=()=>[KN,nI] +;return{cacheSize:500,separator:":",theme:{colors:[uI],spacing:[YN,GN], +blur:["none","",rI,nI],brightness:P(),borderColor:[e], +borderRadius:["none","","full",rI,nI],borderSpacing:E(),borderWidth:T(), +contrast:P(),grayscale:A(),hueRotate:D(),invert:A(),gap:E(), +gradientColorStops:[e],gradientColorStopPositions:[tI,GN],inset:_(),margin:_(), +opacity:P(),padding:E(),saturate:P(),scale:P(),sepia:A(),skew:D(),space:E(), +translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",nI]}], +container:["container"],columns:[{columns:[rI]}],"break-after":[{ +"break-after":["auto","avoid","all","avoid-page","page","left","right","column"] +}],"break-before":[{ +"break-before":["auto","avoid","all","avoid-page","page","left","right","column"] +}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"] +}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{ +box:["border","content"]}], +display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"], +float:[{float:["right","left","none","start","end"]}],clear:[{ +clear:["left","right","both","none","start","end"]}], +isolation:["isolate","isolation-auto"],"object-fit":[{ +object:["contain","cover","fill","none","scale-down"]}],"object-position":[{ +object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",nI] +}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}], +"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}], +"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}], +overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{ +"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{ +"overscroll-y":["auto","contain","none"]}], +position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}], +"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}], +end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}], +left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{ +z:["auto",eI,nI]}],basis:[{basis:_()}],"flex-direction":[{ +flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{ +flex:["wrap","wrap-reverse","nowrap"]}],flex:[{ +flex:["1","auto","initial","none",nI]}],grow:[{grow:A()}],shrink:[{shrink:A()}], +order:[{order:["first","last","none",eI,nI]}],"grid-cols":[{"grid-cols":[uI]}], +"col-start-end":[{col:["auto",{span:["full",eI,nI]},nI]}],"col-start":[{ +"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[uI]}], +"row-start-end":[{row:["auto",{span:[eI,nI]},nI]}],"row-start":[{"row-start":C() +}],"row-end":[{"row-end":C()}],"grid-flow":[{ +"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{ +"auto-cols":["auto","min","max","fr",nI]}],"auto-rows":[{ +"auto-rows":["auto","min","max","fr",nI]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p] +}],"gap-y":[{"gap-y":[p]}],"justify-content":[{ +justify:["normal","start","end","center","between","around","evenly","stretch"] +}],"justify-items":[{"justify-items":["start","end","center","stretch"]}], +"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}], +"align-content":[{ +content:["normal","start","end","center","between","around","evenly","stretch","baseline"] +}],"align-items":[{items:["start","end","center","baseline","stretch"]}], +"align-self":[{self:["auto","start","end","center","stretch","baseline"]}], +"place-content":[{ +"place-content":["start","end","center","between","around","evenly","stretch","baseline"] +}],"place-items":[{"place-items":["start","end","center","baseline","stretch"] +}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{ +p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}], +pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g] +}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ +ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"], +"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{ +w:["auto","min","max","fit","svw","lvw","dvw",nI,t]}],"min-w":[{ +"min-w":[nI,t,"min","max","fit"]}],"max-w":[{ +"max-w":[nI,t,"none","full","min","max","fit","prose",{screen:[rI]},rI]}],h:[{ +h:[nI,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{ +"min-h":[nI,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{ +"max-h":[nI,t,"min","max","fit","svh","lvh","dvh"]}],size:[{ +size:[nI,t,"auto","min","max","fit"]}],"font-size":[{text:["base",rI,GN]}], +"font-smoothing":["antialiased","subpixel-antialiased"], +"font-style":["italic","not-italic"],"font-weight":[{ +font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",JN] +}],"font-family":[{font:[uI]}],"fvn-normal":["normal-nums"], +"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"], +"fvn-figure":["lining-nums","oldstyle-nums"], +"fvn-spacing":["proportional-nums","tabular-nums"], +"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{ +tracking:["tighter","tight","normal","wide","wider","widest",nI]}], +"line-clamp":[{"line-clamp":["none",KN,JN]}],leading:[{ +leading:["none","tight","snug","normal","relaxed","loose",YN,nI]}], +"list-image":[{"list-image":["none",nI]}],"list-style-type":[{ +list:["none","disc","decimal",nI]}],"list-style-position":[{ +list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}], +"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{ +text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e] +}],"text-opacity":[{"text-opacity":[v]}], +"text-decoration":["underline","overline","line-through","no-underline"], +"text-decoration-style":[{ +decoration:["solid","dashed","dotted","double","none","wavy"]}], +"text-decoration-thickness":[{decoration:["auto","from-font",YN,GN]}], +"underline-offset":[{"underline-offset":["auto",YN,nI]}], +"text-decoration-color":[{decoration:[e]}], +"text-transform":["uppercase","lowercase","capitalize","normal-case"], +"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{ +text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}], +"vertical-align":[{ +align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nI] +}],whitespace:[{ +whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}], +break:[{break:["normal","words","all","keep"]}],hyphens:[{ +hyphens:["none","manual","auto"]}],content:[{content:["none",nI]}], +"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{ +"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{ +"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}], +"bg-position":[{ +bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",aI] +}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}], +"bg-size":[{bg:["auto","cover","contain",iI]}],"bg-image":[{bg:["none",{ +"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lI]}],"bg-color":[{bg:[e] +}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}], +"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{ +via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{ +"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i] +}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}], +"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}], +"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}], +"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}], +"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}], +"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{ +"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s] +}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}], +"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{ +"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{ +border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{ +"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{ +"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{ +"divide-opacity":[v]}],"divide-style":[{ +divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o] +}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}], +"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}], +"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}], +"divide-color":[{divide:[o]}],"outline-style":[{ +outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{ +"outline-offset":[YN,nI]}],"outline-w":[{outline:[YN,GN]}],"outline-color":[{ +outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"], +"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}], +"ring-offset-w":[{"ring-offset":[YN,GN]}],"ring-offset-color":[{ +"ring-offset":[e]}],shadow:[{shadow:["","inner","none",rI,cI]}], +"shadow-color":[{shadow:[uI]}],opacity:[{opacity:[v]}],"mix-blend":[{ +"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"] +}],"bg-blend":[{ +"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"] +}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r] +}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",rI,nI]}], +grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{ +invert:[d]}],saturate:[{saturate:[O]}],sepia:[{sepia:[w]}],"backdrop-filter":[{ +"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}], +"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{ +"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}], +"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{ +"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}], +"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{ +"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}], +"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{ +"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}], +"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}], +transition:[{ +transition:["none","all","","colors","opacity","shadow","transform",nI]}], +duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",nI]}], +delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",nI] +}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{ +"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[eI,nI]}], +"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}], +"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{ +origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",nI] +}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}], +cursor:[{ +cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",nI] +}],"caret-color":[{caret:[e]}],"pointer-events":[{ +"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}], +"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}], +"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{ +"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E() +}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}], +"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{ +"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E() +}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}], +"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{ +"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}], +"snap-stop":[{snap:["normal","always"]}],"snap-type":[{ +snap:["none","x","y","both"]}],"snap-strictness":[{ +snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}], +"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{ +"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{ +select:["none","text","all","auto"]}],"will-change":[{ +"will-change":["auto","scroll","contents","transform",nI]}],fill:[{ +fill:[e,"none"]}],"stroke-w":[{stroke:[YN,GN,JN]}],stroke:[{stroke:[e,"none"]}], +sr:["sr-only","not-sr-only"],"forced-color-adjust":[{ +"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{ +overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"], +inset:["inset-x","inset-y","start","end","top","right","bottom","left"], +"inset-x":["right","left"],"inset-y":["top","bottom"], +flex:["basis","grow","shrink"],gap:["gap-x","gap-y"], +p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"], +m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"], +size:["w","h"],"font-size":["leading"], +"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"], +"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"], +"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"], +"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"], +rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"], +"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"], +"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"], +"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"], +"border-spacing":["border-spacing-x","border-spacing-y"], +"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"], +"border-w-x":["border-w-r","border-w-l"], +"border-w-y":["border-w-t","border-w-b"], +"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"], +"border-color-x":["border-color-r","border-color-l"], +"border-color-y":["border-color-t","border-color-b"], +"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"], +"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"], +"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"], +"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"], +touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"], +"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}} +function vI(e,t,n){void 0!==n&&(e[t]=n)}function bI(e,t){ +if(t)for(const n in t)vI(e,n,t[n])}function OI(e,t){if(t)for(const n in t){ +const r=t[n];void 0!==r&&(e[n]=(e[n]||[]).concat(r))}}const yI=function(e,...t){ +return"function"==typeof e?jN(gI,e,...t):jN((()=>function(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:i={}}){ +vI(e,"cacheSize",t),vI(e,"prefix",n),vI(e,"separator",r) +;for(const a in i)bI(e[a],i[a]);for(const a in o)OI(e[a],o[a]);return e +}(gI(),e)),...t)}({extend:{classGroups:{"font-size":["text-xxs"]}} +}),{cva:wI,cx:xI,compose:kI}=SN({hooks:{onComplete:e=>yI(e)}}),SI=()=>wn({ +open:!1,show(){this.open=!0},hide(){this.open=!1}}),_I=eo({__name:"ScalarModal", +props:{state:{},title:{},bodyClass:{},maxWidth:{},size:{default:"md"},variant:{} +},setup(e){const t=wI({ +base:["scalar-modal","col relative mx-auto mb-0 mt-20 w-[calc(100vw-16px)] rounded-lg bg-b-2 p-0 text-left leading-snug text-c-1 opacity-0 lg:w-[calc(100vw-32px)]"].join(" "), +variants:{size:{xxs:"mt-20 max-w-screen-xxs",xs:"mt-20 max-w-screen-xs", +sm:"mt-20 max-w-screen-sm",md:"mt-20 max-w-screen-md", +lg:"mt-10 max-w-screen-lg",xl:"mt-2 max-w-screen-xl",full:"mt-0 overflow-hidden" +},variant:{history:"scalar-modal-history bg-b-1",search:"scalar-modal-search"}} +}),n=wI({ +base:["scalar-modal-body","relative m-1 max-h-[calc(100dvh-240px)] rounded-lg bg-b-1 p-3"].join(" "), +variants:{variant:{history:"pt-3", +search:"col !m-0 max-h-[440px] overflow-hidden p-0"},size:{ +xxs:"max-h-[calc(100dvh-240px)]",xs:"max-h-[calc(100dvh-240px)]", +sm:"max-h-[calc(100dvh-240px)]",md:"max-h-[calc(100dvh-240px)]", +lg:"max-h-[calc(100dvh-180px)]",xl:"max-h-[calc(100dvh-120px)]",full:"max-h-dvh" +}}});return(e,r)=>(zi(),Xi(Fn(RR),{open:e.state.open, +onClose:r[0]||(r[0]=t=>e.state.hide())},{default:Tr((()=>[ea("div",{ +class:et(Fn(xI)("scalar-modal-layout fixed left-0 top-0 flex items-start justify-center","z-[1001] h-[100dvh] w-[100dvw]","bg-backdrop opacity-0 dark:bg-backdropdark","full"===e.size&&"flex")) +},[ta(Fn(NR),{class:et(Fn(t)({size:e.size,variant:e.variant})),style:Xe({ +maxWidth:e.maxWidth})},{default:Tr((()=>[e.title?(zi(),Xi(Fn(IR),{key:0, +class:et(["scalar-modal-header m-0 -mb-1 rounded-lg p-3 text-left text-sm font-medium text-c-1",{ +"pb-0 pt-6":"history"===e.variant}])},{default:Tr((()=>[oa(st(e.title),1)])),_:1 +},8,["class"])):aa("",!0),"full"===e.size?(zi(),Wi("div",{key:1, +class:et(e.bodyClass) +},[no(e.$slots,"default",{},void 0,!0)],2)):(zi(),Xi(Fn(MR),{key:2, +class:et(Fn(xI)(e.bodyClass,Fn(n)({size:e.size,variant:e.variant})))},{ +default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),_:3},8,["class"]))])), +_:3},8,["class","style"])],2)])),_:3},8,["open"]))}}),EI=(e,t)=>{ +const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n +},TI=EI(_I,[["__scopeId","data-v-75d4f452"]]),CI={ +solid:["scalar-button-solid","bg-b-btn text-c-btn shadow-sm active:bg-b-btn active:shadow-none hocus:bg-h-btn"], +outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-transparent text-c-1 hover:bg-b-2 shadow"], +ghost:["scalar-button-ghost","bg-transparent text-c-3 active:text-c-1 hocus:text-c-1"], +danger:["scalar-button-danger","bg-red text-white active:brightness-90 hocus:brightness-90"] +},AI=wI({ +base:"scalar-button scalar-row cursor-pointer items-center justify-center rounded font-medium", +variants:{disabled:{true:"bg-background-2 text-color-3 shadow-none"},fullWidth:{ +true:"w-full"},size:{sm:"px-2 py-1 text-xs",md:"h-10 px-6 text-sm"},variant:CI}, +compoundVariants:[{disabled:!0,variant:["solid","outlined","ghost","danger"], +class:"bg-b-2 text-c-3 shadow-none"}] +}),PI=ia('',5),DI={ +key:0,class:"circular-loader"};function $I(){return wn({isValid:!1,isInvalid:!1, +isLoading:!1,startLoading(){this.isLoading=!0},stopLoading(){this.isLoading=!1}, +validate(e=800,t){this.isInvalid=!1,this.isValid=!0;const n=t?e-300:e +;return new Promise((e=>setTimeout(t?()=>this.clear().then((()=>e(!0))):()=>e(!0),n))) +},invalidate(e=1100,t){this.isValid=!1,this.isInvalid=!0;const n=t?e-300:e +;return new Promise((e=>setTimeout(t?()=>this.clear().then((()=>e(!0))):()=>e(!0),n))) +},clear(e=300){ +return this.isValid=!1,this.isInvalid=!1,this.isLoading=!1,new Promise((t=>{ +setTimeout((()=>{t(!0)}),e)}))}})}const RI=eo({__name:"ScalarLoading",props:{ +loadingState:{},size:{}},setup(e){const t=wI({variants:{size:{xs:"size-3", +sm:"size-3.5",md:"size-4",lg:"size-5",xl:"size-6","2xl":"size-8", +"3xl":"size-10",full:"size-full"}},defaultVariants:{size:"full"}}) +;return(e,n)=>e.loadingState?(zi(),Wi("div",{key:0, +class:et(Fn(xI)("loader-wrapper",Fn(t)({size:e.size})))},[(zi(),Wi("svg",{ +class:et(["svg-loader",{"icon-is-valid":e.loadingState.isValid, +"icon-is-invalid":e.loadingState.isInvalid}]),viewBox:"0 0 100 100", +xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink" +},[PI,e.loadingState.isLoading?(zi(),Wi("g",DI,[ea("circle",{ +class:et(["loader-path",{ +"loader-path-off":e.loadingState.isValid||e.loadingState.isInvalid}]),cx:"50", +cy:"50",fill:"none",r:"20","stroke-width":"2" +},null,2)])):aa("",!0)],2))],2)):aa("",!0)} +}),NI=EI(RI,[["__scopeId","data-v-5a129980"]]),II=["ariaDisabled","type"],MI={ +key:3,class:"centered-x absolute"},LI=eo({inheritAttrs:!1,__name:"ScalarButton", +props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{}, +size:{default:"md"},variant:{default:"solid"},type:{default:"button"}},setup(e){ +const t=Aa((()=>{const{class:e,...t}=uo();return{class:e||"",rest:t}})) +;return(e,n)=>{var r,o,i,a;return zi(),Wi("button",ua(t.value.rest,{ +ariaDisabled:e.disabled||void 0,class:Fn(xI)(Fn(AI)({fullWidth:e.fullWidth, +disabled:e.disabled,size:e.size,variant:e.variant}),{ +relative:null==(r=e.loading)?void 0:r.isLoading},`${t.value.class}`),type:e.type +}),[e.$slots.icon?(zi(),Wi("div",{key:0,class:et(["mr-2 h-4 w-4",{ +invisible:null==(o=e.loading)?void 0:o.isLoading}]) +},[no(e.$slots,"icon")],2)):aa("",!0),e.loading?(zi(),Wi("span",{key:1, +class:et({invisible:null==(i=e.loading)?void 0:i.isLoading}) +},[no(e.$slots,"default")],2)):no(e.$slots,"default",{key:2 +}),null!=(a=e.loading)&&a.isLoading?(zi(),Wi("div",MI,[ta(Fn(NI),{ +loadingState:e.loading,size:"xs"},null,8,["loadingState"])])):aa("",!0)],16,II)} +}}),BI={abandonedHeadElementChild:{ +reason:"Unexpected metadata element after head", +description:"Unexpected element after head. Expected the element before ``", +url:!1},abruptClosingOfEmptyComment:{ +reason:"Unexpected abruptly closed empty comment", +description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"}, +abruptDoctypePublicIdentifier:{ +reason:"Unexpected abruptly closed public identifier", +description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier" +},abruptDoctypeSystemIdentifier:{ +reason:"Unexpected abruptly closed system identifier", +description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier" +},absenceOfDigitsInNumericCharacterReference:{ +reason:"Unexpected non-digit at start of numeric character reference", +description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references" +},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML", +description:"Unexpected `` in ``", +description:"Unexpected text character `%c`. Only use text in `