@vuebro/runtime 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,422 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./PageView-9Jti-a9O.js","./sucrase-B167QcXN.js","./compiler-sfc-CHbDt8t7.js","./RootView-BlcOarGZ.js","./NotFoundView-CJkxnZFz.js"])))=>i.map(i=>d[i]);
2
- import{toValue as xe,isRef as lr,hasInjectionContext as Rd,inject as Od,ref as ct,watchEffect as Td,getCurrentInstance as oi,onBeforeUnmount as Nd,onDeactivated as Ad,onActivated as Id,reactive as ut,unref as qu,getCurrentScope as Md,onScopeDispose as zd,onMounted as si,nextTick as ii,watch as Ge,computed as ke,shallowRef as lt,readonly as qd,isReactive as Fd,defineComponent as Fu,onUnmounted as Dd,h as Ri,resolveComponent as Ld,createBlock as Oi,openBlock as Ti,withCtx as Vd,resolveDynamicComponent as Ud,defineAsyncComponent as Hd,createApp as Kd}from"vue";import{g as yr,e as Wd,t as Ni}from"./sucrase-B167QcXN.js";import{useRoute as Bd,createRouter as Gd,createWebHistory as Jd}from"vue-router";import{p as Xd,c as Yd,a as Qd,b as Zd}from"./compiler-sfc-CHbDt8t7.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const ep="modulepreload",tp=function(e,t){return new URL(e,t).href},Ai={},Et=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let f=function(l){return Promise.all(l.map(p=>Promise.resolve(p).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");o=f(r.map(l=>{if(l=tp(l,n),l in Ai)return;Ai[l]=!0;const p=l.endsWith(".css"),b=p?'[rel="stylesheet"]':"";if(!!n)for(let g=i.length-1;g>=0;g--){const d=i[g];if(d.href===l&&(!p||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${b}`))return;const v=document.createElement("link");if(v.rel=p?"stylesheet":ep,p||(v.as="script"),v.crossOrigin="",v.href=l,c&&v.setAttribute("nonce",c),document.head.appendChild(v),p)return new Promise((g,d)=>{v.addEventListener("load",g),v.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};function Is(e,t={},r){for(const n in e){const o=e[n],s=r?`${r}:${n}`:n;typeof o=="object"&&o!==null?Is(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const rp={run:e=>e()},np=()=>rp,Du=typeof console.createTask<"u"?console.createTask:np;function op(e,t){const r=t.shift(),n=Du(r);return e.reduce((o,s)=>o.then(()=>n.run(()=>s(...t))),Promise.resolve())}function sp(e,t){const r=t.shift(),n=Du(r);return Promise.all(e.map(o=>n.run(()=>o(...t))))}function Go(e,t){for(const r of[...e])r(t)}class ip{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(t,r,n={}){if(!t||typeof r!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,o=(...s)=>(typeof n=="function"&&n(),n=void 0,o=void 0,r(...s));return n=this.hook(t,o),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const o of n)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=Is(t),n=Object.keys(r).map(o=>this.hook(o,r[o]));return()=>{for(const o of n.splice(0,n.length))o()}}removeHooks(t){const r=Is(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(op,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(sp,t,...r)}callHookWith(t,r,...n){const o=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&Go(this._before,o);const s=t(r in this._hooks?[...this._hooks[r]]:[],n);return s instanceof Promise?s.finally(()=>{this._after&&o&&Go(this._after,o)}):(this._after&&o&&Go(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function ap(){return new ip}const cp=new Set(["link","style","script","noscript"]),lp=new Set(["title","titleTemplate","script","style","noscript"]),Ii=new Set(["base","meta","link","style","script","noscript"]),up=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),fp=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),dp=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),pp=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ai=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),hp=["name","property","http-equiv"],mp=new Set(["viewport","description","keywords","robots"]);function Lu(e){const t=e.split(":");return t.length?ai.has(t[1]):!1}function Ms(e){const{props:t,tag:r}=e;if(fp.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of hp)if(t[n]!==void 0){const o=t[n],s=o.includes(":"),i=mp.has(o),c=!(s||i)&&e.key?`:key:${e.key}`:"";return`${r}:${o}${c}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(lp.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function Mi(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,o])=>`${n}:${String(o)}`).join(",")}`}function lo(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());let o;if(t&&(o=t(r,e)),Array.isArray(o))return o.map(s=>lo(s,t));if(o?.constructor===Object){const s={};for(const i of Object.keys(o))s[i]=lo(o[i],t,i);return s}return o}function gp(e,t){const r=e==="style"?new Map:new Set;function n(o){const s=o.trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(c=>c.trim());i&&a.length&&r.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>r.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(o=>n(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,s])=>{s&&s!=="false"&&(e==="style"?r.set(o.trim(),s):n(o))}),r}function Vu(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=gp(r,n);return}if(dp.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[r]=JSON.stringify(n)}else e[r]=n;return}const o=String(n),s=r.startsWith("data-");o==="true"||o===""?e.props[r]=s?o:!0:!n&&s&&o==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e}function yp(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=Vu({tag:e,props:{}},r);return n.key&&cp.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(o=>({...n,props:{...n.props,content:o}})):n}function bp(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(o,s)=>{for(let i=0;i<t.length;i++)s=t[i](o,s);return s};e=r(void 0,e);const n=[];return e=lo(e,r),Object.entries(e||{}).forEach(([o,s])=>{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])n.push(yp(o,i))}),n.flat()}const zi=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,qi={base:-10,title:10},vp={critical:-8,high:-1,low:2},Fi={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},$p=/@import/,Bt=e=>e===""||e===!0;function wp(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=vp[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Fi;if(t.tag in qi)r=qi[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(r=Fi.meta[s])}else t.tag==="link"&&t.props.rel?r=o.link[t.props.rel]:t.tag==="script"?Bt(t.props.async)?r=o.script.async:t.props.src&&!Bt(t.props.defer)&&!Bt(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?r=o.script.sync:Bt(t.props.defer)&&t.props.src&&!Bt(t.props.async)&&(r=o.script.defer):t.tag==="style"&&(r=t.innerHTML&&$p.test(t.innerHTML)?o.style.imported:o.style.sync);return(r||100)+n}function Di(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function _p(e={}){const t=ap();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,o=new Map,s=new Set,i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:a=>Di(i,a),push(a,c){const f={...c||{}};delete f.head;const l=f._index??i._entryCount++,p={_i:l,input:a,options:f},b={_poll(y=!1){i.dirty=!0,!y&&s.add(l),t.callHook("entries:updated",i)},dispose(){n.delete(l)&&i.invalidate()},patch(y){(!f.mode||f.mode==="server"&&r||f.mode==="client"&&!r)&&(p.input=y,n.set(l,p),b._poll())}};return b.patch(a),b},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);s.size;){const b=s.values().next().value;s.delete(b);const y=n.get(b);if(y){const v={tags:bp(y.input,e.propResolvers||[]).map(g=>Object.assign(g,y.options)),entry:y};await t.callHook("entries:normalize",v),y._tags=v.tags.map((g,d)=>(g._w=wp(i,g),g._p=(y._i<<10)+d,g._d=Ms(g),g))}}let c=!1;a.entries.flatMap(b=>(b._tags||[]).map(y=>({...y,props:{...y.props}}))).sort(zi).reduce((b,y)=>{const v=String(y._d||y._p);if(!b.has(v))return b.set(v,y);const g=b.get(v);if((y?.tagDuplicateStrategy||(pp.has(y.tag)?"merge":null)||(y.key&&y.key===g.key?"merge":null))==="merge"){const m={...g.props};Object.entries(y.props).forEach(([u,h])=>m[u]=u==="style"?new Map([...g.props.style||new Map,...h]):u==="class"?new Set([...g.props.class||new Set,...h]):h),b.set(v,{...y,props:m})}else y._p>>10===g._p>>10&&y.tag==="meta"&&Lu(v)?(b.set(v,Object.assign([...Array.isArray(g)?g:[g],y],y)),c=!0):(y._w===g._w?y._p>g._p:y?._w<g?._w)&&b.set(v,y);return b},a.tagMap);const f=a.tagMap.get("title"),l=a.tagMap.get("titleTemplate");if(i._title=f?.textContent,l){const b=l?.textContent;if(i._titleTemplate=b,b){let y=typeof b=="function"?b(f?.textContent):b;typeof y=="string"&&!i.plugins.has("template-params")&&(y=y.replace("%s",f?.textContent||"")),f?y===null?a.tagMap.delete("title"):a.tagMap.set("title",{...f,textContent:y}):(l.tag="title",l.textContent=y)}}a.tags=Array.from(a.tagMap.values()),c&&(a.tags=a.tags.flat().sort(zi)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const p=[];for(const b of a.tags){const{innerHTML:y,tag:v,props:g}=b;if(up.has(v)&&!(Object.keys(g).length===0&&!b.innerHTML&&!b.textContent)&&!(v==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(v==="script"&&y){if(g.type?.endsWith("json")){const d=typeof y=="string"?y:JSON.stringify(y);b.innerHTML=d.replace(/</g,"\\u003C")}else typeof y=="string"&&(b.innerHTML=y.replace(new RegExp(`</${v}`,"g"),`<\\/${v}`));b._d=Ms(b)}p.push(b)}}return p},invalidate(){for(const a of n.values())s.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>Di(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}async function Uu(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{const s=new Map,i=new Promise(y=>{e.resolveTags().then(v=>{y(v.map(g=>{const d=s.get(g._d)||0,m={tag:g,id:(d?`${g._d}:${d}`:g._d)||Mi(g),shouldRender:!0};return g._d&&Lu(g._d)&&s.set(g._d,d+1),m}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const y of["body","head"]){const v=r[y]?.children;for(const g of v){const d=g.tagName.toLowerCase();if(!Ii.has(d))continue;const m=Vu({tag:d,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((u,h)=>(u[h]=g.getAttribute(h),u),{})||{}});if(m.key=g.getAttribute("data-hid")||void 0,m._d=Ms(m)||Mi(m),a.elMap.has(m._d)){let u=1,h=m._d;for(;a.elMap.has(h);)h=`${m._d}:${u++}`;a.elMap.set(h,g)}else a.elMap.set(m._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function c(y,v,g){const d=`${y}:${v}`;a.sideEffects[d]=g,delete a.pendingSideEffects[d]}function f({id:y,$el:v,tag:g}){const d=g.tag.endsWith("Attrs");a.elMap.set(y,v),d||(g.textContent&&g.textContent!==v.textContent&&(v.textContent=g.textContent),g.innerHTML&&g.innerHTML!==v.innerHTML&&(v.innerHTML=g.innerHTML),c(y,"el",()=>{v?.remove(),a.elMap.delete(y)}));for(const m in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,m))continue;const u=g.props[m];if(m.startsWith("on")&&typeof u=="function"){const _=v?.dataset;if(_&&_[`${m}fired`]){const $=m.slice(0,-5);u.call(v,new Event($.substring(2)))}v.getAttribute(`data-${m}`)!==""&&((g.tag==="bodyAttrs"?r.defaultView:v).addEventListener(m.substring(2),u.bind(v)),v.setAttribute(`data-${m}`,""));continue}const h=`attr:${m}`;if(m==="class"){if(!u)continue;for(const _ of u)d&&c(y,`${h}:${_}`,()=>v.classList.remove(_)),!v.classList.contains(_)&&v.classList.add(_)}else if(m==="style"){if(!u)continue;for(const[_,$]of u)c(y,`${h}:${_}`,()=>{v.style.removeProperty(_)}),v.style.setProperty(_,$)}else u!==!1&&u!==null&&(v.getAttribute(m)!==u&&v.setAttribute(m,u===!0?"":String(u)),d&&c(y,h,()=>v.removeAttribute(m)))}}const l=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0},b=await i;for(const y of b){const{tag:v,shouldRender:g,id:d}=y;if(g){if(v.tag==="title"){r.title=v.textContent,c("title","",()=>r.title=a.title);continue}y.$el=y.$el||a.elMap.get(d),y.$el?f(y):Ii.has(v.tag)&&l.push(y)}}for(const y of l){const v=y.tag.tagPosition||"head";y.$el=r.createElement(y.tag.tag),f(y),p[v]=p[v]||r.createDocumentFragment(),p[v].appendChild(y.$el)}for(const y of b)await e.hooks.callHook("dom:renderTag",y,r,c);p.head&&r.head.appendChild(p.head),p.bodyOpen&&r.body.insertBefore(p.bodyOpen,r.body.firstChild),p.bodyClose&&r.body.appendChild(p.bodyClose);for(const y in a.pendingSideEffects)a.pendingSideEffects[y]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:b}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function kp(e={}){const t=e.domOptions?.render||Uu;e.document=e.document||(typeof window<"u"?document:void 0);const r=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return _p({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function Sp(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}const fr={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},Ep={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},Hu={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${rt(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?rt(e):`${rt(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${rt(e)} ${t}`}},charset:{}};function rt(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-");return r===-1?t:fr.META.has(t.slice(0,r))||fr.OG.has(t.slice(0,r))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function Ku(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>String(r)!=="false"&&t))}function zs(e){return Array.isArray(e)?e.map(zs):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,r])=>[rt(t),zs(r)]))}function Wu(e,t={}){const{entrySeparator:r="",keyValueSeparator:n="",wrapValue:o,resolve:s}=t;return Object.entries(e).map(([i,a])=>{if(s){const f=s({key:i,value:a});if(f!==void 0)return f}const c=typeof a=="object"?Wu(a,t):typeof a=="number"?a.toString():typeof a=="string"&&o?`${o}${a.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:a;return`${i}${n}${c}`}).join(r)}function Li(e,t){const r=Ku(t),n=rt(e),o=Bu(n);if(!ai.has(n))return[{[o]:n,...r}];const s=Object.fromEntries(Object.entries(r).map(([i,a])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,a]));return uo(s||{}).sort((i,a)=>(i[o]?.length||0)-(a[o]?.length||0))}function Bu(e){if(Hu[e]?.metaKey==="http-equiv"||fr.HTTP_EQUIV.has(e))return"http-equiv";const t=rt(e),r=t.indexOf(":");return r===-1?"name":fr.OG.has(t.slice(0,r))?"property":"name"}function xp(e){return Ep[e]||rt(e)}function Pp(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:Wu(zs(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:r,key:n})=>r===null?"":typeof r=="boolean"?n:void 0,...Hu[t]?.unpack})}function uo(e){const t=[],r={};for(const[o,s]of Object.entries(e)){if(Array.isArray(s)){if(o==="themeColor"){s.forEach(i=>{typeof i=="object"&&i!==null&&t.push({name:"theme-color",...i})});continue}for(const i of s)if(typeof i=="object"&&i!==null){const a=[],c=[];for(const[f,l]of Object.entries(i)){const p=`${o}${f==="url"?"":`:${f}`}`,b=uo({[p]:l});(f==="url"?a:c).push(...b)}t.push(...a,...c)}else t.push(...typeof i=="string"?uo({[o]:i}):Li(o,i));continue}if(typeof s=="object"&&s)if(fr.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",a=o.replace(/^(og|twitter)/,"").toLowerCase(),c=i==="twitter"?"name":"property";s.url&&t.push({[c]:`${i}:${a}`,content:s.url}),s.secureUrl&&t.push({[c]:`${i}:${a}:secure_url`,content:s.secureUrl});for(const[f,l]of Object.entries(s))f!=="url"&&f!=="secureUrl"&&t.push({[c]:`${i}:${a}:${f}`,content:l})}else ai.has(rt(o))?t.push(...Li(o,s)):r[o]=Ku(s);else r[o]=s}const n=Object.entries(r).map(([o,s])=>{if(o==="charset")return{charset:s===null?"_null":s};const i=Bu(o),a=xp(o),c=s===null?"_null":typeof s=="object"?Pp(s,o):typeof s=="number"?s.toString():s;return i==="http-equiv"?{"http-equiv":a,content:c}:{[i]:a,content:c}});return[...t,...n].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const Cp={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(r=>r.tag!=="_flatMeta"?r:(t.push(uo(r.props).map(n=>({...r,tag:"meta",props:n}))),!1)).filter(Boolean).concat(...t)}}},jp=(e,t)=>lr(t)?xe(t):t,Gu="usehead";function Rp(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(Gu,e)}}.install}function Ju(){if(Rd()){const e=Od(Gu);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Xu(e,t={}){const r=t.head||Ju();return r.ssr?r.push(e||{},t):Op(r,e,t)}function Op(e,t,r={}){const n=ct(!1);let o;return Td(()=>{const i=n.value?{}:lo(t,jp);o?o.patch(i):o=e.push(i,r)}),oi()&&(Nd(()=>{o.dispose()}),Ad(()=>{n.value=!0}),Id(()=>{n.value=!1})),o}function Tp(e={},t={}){(t.head||Ju()).use(Cp);const{title:n,titleTemplate:o,...s}=e;return Xu({title:n,titleTemplate:o,_flatMeta:s},t)}function Np(e={}){const t=kp({domOptions:{render:Sp(()=>Uu(t),r=>setTimeout(r,0))},...e});return t.install=Rp(t),t}const to="default",qs="preflights",Ap="shortcuts",Yu="imports",Ip={[Yu]:-200,[qs]:-100,[Ap]:-10,[to]:0},Qu=/[\\:]?[\s'"`;{}]+/g;function Mp(e){return e.split(Qu)}const zp={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Mp(e)}};function ge(e=[]){return Array.isArray(e)?e:[e]}function Be(e){return Array.from(new Set(e))}function Vi(e,t){return e.reduce((r,n)=>(r.findIndex(s=>t(n,s))===-1&&r.push(n),r),[])}function ve(e){return typeof e=="string"}class Zu extends Set{_map=new Map;constructor(t){if(super(),t)for(const r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}}function Jo(e){return e instanceof Zu}function dr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zt(e){const t=e.length;let r=-1,n,o="";const s=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="�";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&s===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}const Xo=zt;function qp(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}const Fp=/^\[(.+?)~?="(.*)"\]$/,Dp=/[\w\u00A0-\uFFFF%-?]/;function Lp(e){return e.match(Fp)}function Fs(e=""){return Dp.test(e)}function Vp(e){return typeof e=="function"?{match:e}:e}function Ui(e){return e.length===3}function ro(e){return e!=null}function Up(){}class Hp{_map=new Map;get(t,r){const n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,s])=>t(s,r,o)))}}class Kp extends Map{getFallback(t,r){const n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){const r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){const r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}}function fo(e){return ve(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Wp(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>fo(t)):[e]:[fo(e)]}function Bp(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Yo(e){return e==null?"":Bp(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function kr(e){return e&&typeof e=="object"&&!Array.isArray(e)}function jo(e,t,r=!1){const n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];const s={...n};return kr(n)&&kr(o)&&Object.keys(o).forEach(i=>{kr(n[i])&&kr(o[i])||Array.isArray(n[i])&&Array.isArray(o[i])?s[i]=jo(n[i],o[i],r):Object.assign(s,{[i]:o[i]})}),s}function no(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?no(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:no(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?no(n):n;return r}return e}function Gp(e){return ve(e[0])}function Jp(e){return ve(e[0])}const Sr={};function Xp(e=["-",":"]){const t=e.join("|");return Sr[t]||(Sr[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Sr[t].lastIndex=0,Sr[t]}function Yp(e,t=["-",":"],r=5){const n=Xp(t);let o,s=e.toString();const i=new Set,a=new Map;do o=!1,s=s.replace(n,(f,l,p,b,y)=>{if(!t.includes(p))return f;o=!0,i.add(l+p);const v=y+l.length+p.length+1,g={length:f.length,items:[]};a.set(y,g);for(const d of[...b.matchAll(/\S+/g)]){const m=v+d.index;let u=a.get(m)?.items;u?a.delete(m):u=[{offset:m,length:d[0].length,className:d[0]}];for(const h of u)h.className=h.className==="~"?l:h.className.replace(/^(!?)(.*)/,`$1${l}${p}$2`),g.items.push(h)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let f=0;for(const[l,p]of a)c+=e.slice(f,l),c+=p.items.map(b=>b.className).join(" "),f=l+p.length;c+=e.slice(f)}else{c=e;for(const[f,l]of a)c.overwrite(f,f+l.length,l.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(i),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Qp(e,t=["-",":"],r=5){const n=Yp(e,t,r);return typeof e=="string"?n.expanded:e}const Hi=new Set;function ef(e){Hi.has(e)||(console.warn("[unocss]",e),Hi.add(e))}function tf(e){return ge(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const Ki="_uno_resolved";async function Zp(e){let t=typeof e=="function"?await e():await e;if(Ki in t)return t;t={...t},Object.defineProperty(t,Ki,{value:!0,enumerable:!1});const r=t.shortcuts?tf(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){const n=o=>{o[2]||(o[2]={});const s=o[2];s.prefix==null&&t.prefix&&(s.prefix=ge(t.prefix)),s.layer==null&&t.layer&&(s.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function rf(e){const t=await Zp(e);if(!t.presets)return[t];const r=(await Promise.all((t.presets||[]).flatMap(ge).flatMap(rf))).flat();return[t,...r]}function eh(e){if(e.length===0)return{};const t=[],r=[];let n=!1;const o=[],s=[];for(const a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&s.push(a.inline)}const i={pipeline:n?!1:{include:Be(Bi(...t)),exclude:Be(Bi(...r))}};return o.length&&(i.filesystem=Be(o.flat())),s.length&&(i.inline=Be(s.flat())),i}async function Wi(e={},t={}){const r=Object.assign({},t,e),n=Vi((await Promise.all((r.presets||[]).flatMap(ge).flatMap(rf))).flat(),($,k)=>$.name===k.name),o=[...n.filter($=>$.enforce==="pre"),...n.filter($=>!$.enforce),...n.filter($=>$.enforce==="post")],s=[...o,r],i=[...s].reverse(),a=Object.assign({},Ip,...s.map($=>$.layers));function c($){return Be(s.flatMap(k=>ge(k[$]||[])))}const f=c("extractors");let l=i.find($=>$.extractorDefault!==void 0)?.extractorDefault;l===void 0&&(l=zp),l&&!f.includes(l)&&f.unshift(l),f.sort(($,k)=>($.order||0)-(k.order||0));const p=c("rules"),b={},y=p.length,v=p.filter($=>Gp($)?(ge($[2]?.prefix||"").forEach(S=>{b[S+$[0]]=$}),!1):!0).reverse(),g={templates:Be(s.flatMap($=>ge($.autocomplete?.templates))),extractors:s.flatMap($=>ge($.autocomplete?.extractors)).sort(($,k)=>($.order||0)-(k.order||0)),shorthands:rh(s.map($=>$.autocomplete?.shorthands||{}))};let d=c("separators");d.length||(d=[":","-"]);const m=c("content"),u=eh(m),h={mergeSelectors:!0,warn:!0,sortLayers:$=>$,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:th(s.map($=>$.theme)),rules:p,rulesSize:y,rulesDynamic:v,rulesStaticMap:b,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:g,variants:c("variants").map(Vp).sort(($,k)=>($.order||0)-(k.order||0)),shortcuts:tf(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:d,details:r.details??r.envMode==="dev",content:u,transformers:Vi(c("transformers"),($,k)=>$.name===k.name)},_=c("extendTheme");for(const $ of _)h.theme=$(h.theme,h)||h.theme;for(const $ of s)$?.configResolved?.(h);return h}function th(e){return e.map(t=>t?no(t):{}).reduce((t,r)=>jo(t,r),{})}function rh(e){return e.reduce((t,r)=>{const n={};for(const o in r){const s=r[o];Array.isArray(s)?n[o]=`(${s.join("|")})`:n[o]=s}return{...t,...n}},{})}function Bi(...e){return e.flatMap(nh)}function nh(e){return Array.isArray(e)?e:e?[e]:[]}const oh="66.3.3",Pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"};class ci{constructor(t={},r={}){this.userConfig=t,this.defaults=r}version=oh;events=qp();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){const n=new ci(t,r);return n.config=await Wi(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Wi(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){const o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(const s of this.config.extractors){const i=await s.extract?.(o);if(i)if(Jo(i)&&Jo(n))for(const a of i)n.setCount(a,n.getCount(a)+i.getCount(a));else for(const a of i)n.add(a)}return n}makeContext(t,r){const n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Pe,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;const n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);const o=this.config.preprocess.reduce((c,f)=>f(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}const s=await this.matchVariants(t,o);if(s.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}const i=async c=>{const f=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);const l=await this.expandShortcut(f.currentSelector,f);return l?await this.stringifyShortcuts(f.variantMatch,f,l[0],l[1]):(await this.parseUtil(f.variantMatch,f))?.map(b=>this.stringifyUtil(b,f)).filter(ro)},a=(await Promise.all(s.map(c=>i(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){const{id:n,scope:o,preflights:s=!0,safelist:i=!0,minify:a=!1,extendedInfo:c=!1}=r,f=ve(t)?await this.applyExtractors(t,n,c?new Zu:new Set):Array.isArray(t)?new Set(t):t;if(i){const S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(P=>typeof P=="function"?P(S):P).forEach(P=>{const O=P.trim();O&&!f.has(O)&&f.add(O)})}const l=a?"":`
3
- `,p=new Set([to]),b=c?new Map:new Set,y=new Map;let v={};const g=Array.from(f).map(async S=>{if(b.has(S))return;const P=await this.parseToken(S);if(P!=null){b instanceof Map?b.set(S,{data:P,count:Jo(f)?f.getCount(S):-1}):b.add(S);for(const O of P){const q=O[3]||"",M=O[4]?.layer;y.has(q)||y.set(q,[]),y.get(q).push(O),M&&p.add(M)}}});await Promise.all(g),await(async()=>{if(!s)return;const S={generator:this,theme:this.config.theme},P=new Set([]);this.config.preflights.forEach(({layer:O=qs})=>{p.add(O),P.add(O)}),v=Object.fromEntries(await Promise.all(Array.from(P).map(async O=>{const M=(await Promise.all(this.config.preflights.filter(L=>(L.layer||qs)===O).map(async L=>await L.getCSS(S)))).filter(Boolean).join(l);return[O,M]})))})();const d=this.config.sortLayers(Array.from(p).sort((S,P)=>(this.config.layers[S]??0)-(this.config.layers[P]??0)||S.localeCompare(P))),m={},u=this.config.outputToCssLayers,h=S=>{let P=S;return typeof u=="object"&&(P=u.cssLayerName?.(S)),P===null?null:P??S},_=(S=to)=>{if(m[S])return m[S];let P=Array.from(y).sort((M,L)=>(this.parentOrders.get(M[0])??0)-(this.parentOrders.get(L[0])??0)||M[0]?.localeCompare(L[0]||"")||0).map(([M,L])=>{const D=L.length,V=L.filter(B=>(B[4]?.layer||to)===S).sort((B,ee)=>B[0]-ee[0]||(B[4]?.sort||0)-(ee[4]?.sort||0)||B[5]?.currentSelector?.localeCompare(ee[5]?.currentSelector??"")||B[1]?.localeCompare(ee[1]||"")||B[2]?.localeCompare(ee[2]||"")||0).map(([,B,ee,,z,,C])=>[[[(B&&ah(B,o))??"",z?.sort??0]],ee,!!(C??z?.noMerge)]);if(!V.length)return;const W=V.reverse().map(([B,ee,z],C)=>{if(!z&&this.config.mergeSelectors)for(let R=C+1;R<D;R++){const w=V[R];if(w&&!w[2]&&(B&&w[0]||B==null&&w[0]==null)&&w[1]===ee)return B&&w[0]&&w[0].push(...B),null}const A=B?Be(B.sort((R,w)=>R[1]-w[1]||R[0]?.localeCompare(w[0]||"")||0).map(R=>R[0]).filter(Boolean)):[];return A.length?`${A.join(`,${l}`)}{${ee}}`:ee}).filter(Boolean),Q=Array.from(new Set(W)).reverse().join(l);if(!M)return Q;const Z=M.split(" $$ ");return`${Z.join("{")}{${l}${Q}${l}${"}".repeat(Z.length)}`}).filter(Boolean).join(l);s&&(P=[v[S],P].filter(Boolean).join(l));let O;u&&P&&(O=h(S),O!==null&&(P=`@layer ${O}{${l}${P}${l}}`));const q=a?"":`/* layer: ${S}${O&&O!==S?`, alias: ${O}`:""} */${l}`;return m[S]=P?q+P:""},$=(S=d,P)=>{const O=S.filter(q=>!P?.includes(q));return[u&&O.length>0?`@layer ${O.map(h).filter(ro).join(", ")};`:void 0,...O.map(q=>_(q)||"")].filter(Boolean).join(l)};return{get css(){return $()},layers:d,matched:b,getLayers:$,getLayer:_,setLayer:async(S,P)=>{const O=await P(_(S));return m[S]=O,O}}}async matchVariants(t,r){const n={rawSelector:t,theme:this.config.theme,generator:this},o=async s=>{let i=!0;const[,,a,c]=s;for(;i;){i=!1;const f=s[1];for(const l of this.config.variants){if(!l.multiPass&&c.has(l))continue;let p=await l.match(f,n);if(p){if(ve(p)){if(p===f)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(l.multiPass)throw new Error("multiPass can not be used together with array return variants");const b=p.map(y=>{const v=y.matcher??f,g=[y,...a],d=new Set(c);return d.add(l),[s[0],v,g,d]});return(await Promise.all(b.map(y=>o(y)))).flat()}}s[1]=p.matcher??f,a.unshift(p),c.add(l),i=!0;break}}if(!i)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[s]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){const s=r.slice().sort((f,l)=>(f.order||0)-(l.order||0)).reduceRight((f,l)=>p=>{const b=l.body?.(p.entries)||p.entries,y=Array.isArray(l.parent)?l.parent:[l.parent,void 0],v=l.selector?.(p.selector,b);return(l.handle??ch)({...p,entries:b,selector:v||p.selector,parent:y[0]||p.parent,parentOrder:y[1]||p.parentOrder,layer:l.layer||p.layer,sort:l.sort||p.sort},f)},f=>f)({prefix:"",selector:of(n),pseudo:"",entries:t[2]}),{parent:i,parentOrder:a}=s;i!=null&&a!=null&&this.parentOrders.set(i,a);const c={selector:[s.prefix,s.selector,s.pseudo].join(""),entries:s.entries,parent:i,layer:s.layer,sort:s.sort,noMerge:s.noMerge};for(const f of this.config.postprocess)f(c);return c}constructCustomCSS(t,r,n){const o=fo(r);if(ve(o))return o;const{selector:s,entries:i,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${s}{${Yo(i)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){const s=ve(t)?await this.matchVariants(t):[t],i=async([c,f,l])=>{this.config.details&&(r.rules=r.rules??[]);const p={...r,variantHandlers:l},b=this.config.rulesStaticMap[f];if(b&&b[1]&&(n||!b[2]?.internal))return this.resolveCSSResult(c,b[1],b,p);for(const y of this.config.rulesDynamic){const[v,g,d]=y;if(d?.internal&&!n)continue;let m=f;if(d?.prefix){const $=ge(d.prefix);if(o){const k=ge(o);if(!$.some(S=>k.includes(S)))continue}else{const k=$.find(S=>f.startsWith(S));if(k==null)continue;m=f.slice(k.length)}}const u=m.match(v);if(!u)continue;let h=await g(u,p);if(!h)continue;if(typeof h!="string")if(Symbol.asyncIterator in h){const $=[];for await(const k of h)k&&$.push(k);h=$}else Symbol.iterator in h&&!Array.isArray(h)&&(h=Array.from(h).filter(ro));const _=this.resolveCSSResult(c,h,y,p);if(_)return _}},a=(await Promise.all(s.map(c=>i(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{const s=Wp(r).filter(i=>i.length);if(s.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);const i=o.generator.config.rules.indexOf(n),a=n[2];return s.map(c=>{if(ve(c))return[i,c,a];let f=o.variantHandlers,l=a;for(const p of c)p[0]===Pe.variants?typeof p[1]=="function"?f=p[1](f)||f:f=[...ge(p[1]),...f]:p[0]===Pe.parent?f=[{parent:p[1]},...f]:p[0]===Pe.selector?f=[{selector:p[1]},...f]:p[0]===Pe.layer?f=[{layer:p[1]},...f]:p[0]===Pe.sort?l={...l,sort:p[1]}:p[0]===Pe.noMerge&&(l={...l,noMerge:p[1]});return[i,t,c,l,f]})}};stringifyUtil(t,r){if(!t)return;if(Ui(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];const{selector:n,entries:o,parent:s,layer:i,sort:a,noMerge:c}=this.applyVariants(t),f=Yo(o);if(!f)return;const{layer:l,sort:p,...b}=t[3]??{},y={...b,layer:i??l,sort:a??p};return[t[0],n,f,s,y,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;const o=this.config.details?f=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(f)}:Up;let s,i,a,c;for(const f of this.config.shortcuts){let l=t;if(f[2]?.prefix){const b=ge(f[2].prefix).find(y=>t.startsWith(y));if(b==null)continue;l=t.slice(b.length)}if(Jp(f)){if(f[0]===l){s=s||f[2],i=f[1],o(f);break}}else{const p=l.match(f[0]);if(p&&(i=f[1](p,r)),i){s=s||f[2],o(f);break}}}if(i&&(a=Be(ge(i).filter(ve).map(f=>Qp(f.trim()).split(/\s+/g)).flat()),c=ge(i).filter(f=>!ve(f)).map(f=>({handles:[],value:f}))),!i){const f=ve(t)?await this.matchVariants(t):[t];for(const l of f){const[p,b,y]=l;if(p!==b){const v=await this.expandShortcut(b,r,n-1);v&&(a=v[0].filter(ve).map(g=>p.replace(b,g)),c=v[0].filter(g=>!ve(g)).map(g=>({handles:[...g.handles,...y],value:g.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(ge(a).map(async f=>(await this.expandShortcut(f,r,n-1))?.[0]||[f])),c].flat(2).filter(f=>!!f),s]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){const s=new Kp,i=(await Promise.all(Be(n).map(async l=>{const p=ve(l)?await this.parseUtil(l,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",fo(l.value),void 0,l.handles]];return!p&&this.config.warn&&ef(`unmatched utility "${l}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((l,p)=>l[0]-p[0]),[a,,c]=t,f=[];for(const l of i){if(Ui(l)){f.push([l[0],void 0,l[1],void 0,l[2],r,void 0]);continue}const{selector:p,entries:b,parent:y,sort:v,noMerge:g,layer:d}=this.applyVariants(l,[...l[4],...c],a);s.getFallback(d??o.layer,new Hp).getFallback(p,y,[[],l[0]])[0].push([b,!!(g??l[3]?.noMerge),v??0])}return f.concat(s.flatMap((l,p)=>l.map(([b,y],v,g)=>{const d=(u,h,_)=>{const $=Math.max(..._.map(S=>S[1])),k=_.map(S=>S[0]);return(u?[k.flat(1)]:k).map(S=>{const P=Yo(S);if(P)return[y,v,P,g,{...o,noMerge:h,sort:$,layer:p},r,void 0]})};return[[b.filter(([,u])=>u).map(([u,,h])=>[u,h]),!0],[b.filter(([,u])=>!u).map(([u,,h])=>[u,h]),!1]].map(([u,h])=>[...d(!1,h,u.filter(([_])=>_.some($=>$[0]===Pe.shortcutsNoMerge))),...d(!0,h,u.filter(([_])=>_.every($=>$[0]!==Pe.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):ve(r)?r===t:r.test(t))}getBlocked(t){const r=this.config.blocklist.find(n=>{const o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):ve(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}}async function sh(e,t){return await ci.create(e,t)}const nf=/\s\$\$\s+/g;function ih(e){return nf.test(e)}function ah(e,t){return ih(e)?e.replace(nf,t?` ${t} `:" "):t?`${t} ${e}`:e}const Gi=/^\[(.+?)(~?=)"(.*)"\]$/;function of(e){return Gi.test(e)?e.replace(Gi,(t,r,n,o)=>`[${Xo(r)}${n}"${Xo(o)}"]`):`.${Xo(e)}`}function ch(e,t){return t(e)}var lh={};function uh(e,t){return{name:e,getImportUrl(r){const n=r.map(o=>{const{name:s,weights:i,italic:a}=o,c=s.toLowerCase().replace(/\s/g,"-");if(!i?.length)return`${c}${a?":i":""}`;let f=i.map(p=>p.toString());return!f.some(p=>p.endsWith("i"))&&a&&(f=f.map(p=>p+="i")),`${c}:${f.join(",")}`});return`${t}/css?family=${n.join("|")}&display=swap`}}}const fh=uh("bunny","https://fonts.bunny.net");function dh(e,t){return{name:e,getImportUrl(r){const n=s=>{const i=s.map(c=>c[0]),a=s.map(c=>c[1]);return`${i.join(";")};${a.join(";")}`},o=r.map(s=>{let i=s.name.replace(/\s+/g,"+");return s.weights?.length&&(i+=s.italic?`:ital,wght@${n(s.weights.map(a=>[`0,${a}`,`1,${a}`]))}`:`:wght@${s.weights.join(";")}`),`family=${i}`}).join("&");return`${t}/css2?${o}&display=swap`}}}const ph=dh("coollabs","https://api.fonts.coollabs.io"),hh=mh("fontshare","https://api.fontshare.com");function mh(e,t){return{name:e,getImportUrl(r){const n=r.map(o=>{let s=o.name.replace(/\s+/g,"-").toLocaleLowerCase();return o.weights?.length?s+=`@${o.weights.flatMap(i=>o.italic?Number(i)+1:i).sort().join()}`:s+=`@${o.italic?2:1}`,`f[]=${s}`}).join("&");return`${t}/v2/css?${n}&display=swap`}}}function gh(e,t){const r=new Map,n=new Map;return{name:e,async getPreflight(o){return(await Promise.all(o.map(async i=>{const a=[],c=i.name.toLowerCase().replace(/\s+/g,"-");let f=r.get(c);if(!f){const d=`https://api.fontsource.org/v1/fonts/${c}`;try{f=await(await Et(async()=>{const{$fetch:m}=await Promise.resolve().then(()=>Vs);return{$fetch:m}},void 0,import.meta.url)).$fetch(d),r.set(c,f)}catch{throw new Error(`Failed to fetch font: ${i.name}`)}}const{weights:l,unicodeRange:p,variants:b,family:y}=f,v=f.subsets.filter(d=>i.subsets?i.subsets.includes(d):!0),g=i.italic?"italic":"normal";if(f.variable&&!i.preferStatic){let d=n.get(c);const m=`https://api.fontsource.org/v1/variable/${c}`;try{d=await(await Et(async()=>{const{$fetch:h}=await Promise.resolve().then(()=>Vs);return{$fetch:h}},void 0,import.meta.url)).$fetch(m),n.set(c,d)}catch{throw new Error(`Failed to fetch font variable: ${i.name}`)}const u=jo(d.axes,i.variable??{});for(const h of v)if(p[h]){const _=`${t}/fontsource/fonts/${f.id}:vf@latest/${h}-wght-${g}.woff2`,$={family:y,display:"swap",style:g,weight:400,src:[{url:_,format:"woff2-variations"}],variable:{wght:u.wght??void 0,wdth:u.wdth??void 0,slnt:u.slnt??void 0},unicodeRange:p[h],comment:`${f.id}-${h}-wght-normal`};a.push(Qo($))}else Object.entries(p).filter(([_])=>!f.subsets.includes(_)).forEach(([_,$])=>{const k=`${t}/fontsource/fonts/${f.id}:vf@latest/${_.slice(1,-1)}-wght-${g}.woff2`,S={family:y,display:"swap",style:g,weight:400,src:[{url:k,format:"woff2-variations"}],variable:{wght:u.wght??void 0,wdth:u.wdth??void 0,slnt:u.slnt??void 0},unicodeRange:$,comment:`${f.id}-${_}-wght-normal`};a.push(Qo(S))})}else{const d=i.weights&&i.weights.length>0?i.weights:l;for(const m of v)for(const u of d){const h=b[u][g][m].url,_={family:y,display:"swap",style:g,weight:Number(u),src:[{url:h.woff2,format:"woff2"}],unicodeRange:p[m],comment:`${f.id}-${m}-${u}-${g}`};a.push(Qo(_))}}return a}))).flat().join(`
4
-
5
- `)}}}const yh=gh("fontsource","https://cdn.jsdelivr.net");function Qo(e){const{family:t,style:r,display:n,weight:o,variable:s,src:i,unicodeRange:a,comment:c,spacer:f=`
6
- `}=e,{wght:l,wdth:p,slnt:b}=s??{};let y="@font-face {";return y+=`${f}font-family: '${t}';`,y+=`${f}font-style: ${b?`oblique ${Number(b.max)*-1}deg ${Number(b.min)*-1}deg`:r};`,y+=`${f}font-display: ${n};`,y+=`${f}font-weight: ${l?bh(l):o};`,p&&(y+=`${f}font-stretch: ${p.min}% ${p.max}%;`),y+=`${f}src: ${i.map(({url:v,format:g})=>`url(${v}) format('${g}')`).join(", ")};`,a&&(y+=`${f}unicode-range: ${a};`),c&&(y=`/* ${c} */
7
- ${y}`),`${y}
8
- }`}function bh(e){return e?e.min===e.max?`${e.min}`:`${e.min} ${e.max}`:"400"}function vh(e,t){return{name:e,getImportUrl(r){const n=s=>{const i=s.map(c=>c[0]),a=s.map(c=>c[1]);return`${i.join(";")};${a.join(";")}`},o=r.map(s=>{let i=s.name.replace(/\s+/g,"+");return s.weights?.length&&(i+=s.italic?`:ital,wght@${n(s.weights.map(a=>[`0,${a}`,`1,${a}`]))}`:`:wght@${s.weights.join(";")}`),`family=${i}`}).join("&");return`${t}/css2?${o}&display=swap`}}}const $h=vh("google","https://fonts.googleapis.com"),wh={name:"none",getPreflight(){return""},getFontName(e){return e.name}},_h={google:$h,bunny:fh,fontshare:hh,fontsource:yh,coollabs:ph,none:wh};function Ji(e){return typeof e=="string"?_h[e]:e}function kh(e,t){if(typeof e!="string")return e.provider=Ji(e.provider||t),e.weights&&(e.weights=[...new Set(e.weights.sort((o,s)=>o.toString().localeCompare(s.toString(),"en",{numeric:!0})))]),e;const[r,n=""]=e.split(":");return{name:r,weights:[...new Set(n.split(/[,;]\s*/).filter(Boolean).sort((o,s)=>o.localeCompare(s,"en",{numeric:!0})))],provider:Ji(t)}}function Sh(e){return(t={})=>{const{provider:r="google",extendTheme:n=!0,inlineImports:o=!0,customFetch:s=e,timeouts:i={}}=t,a="fonts",c=o?a:Yu,f=ge(t.processors||[]),l=Object.fromEntries(Object.entries(t.fonts||{}).map(([u,h])=>[u,ge(h).map(_=>kh(_,r))])),p=Object.values(l).flatMap(u=>u),b={};async function y(u){if(i===!1)return s(u);const{warning:h=1e3,failure:_=2e3}=i;let $=!1;const k=setTimeout(()=>{console.warn(`[unocss] Fetching web fonts: ${u}`),$=!0},h);return await Promise.race([s(u),new Promise((S,P)=>{setTimeout(()=>P(new Error("[unocss] Fetch web fonts timeout.")),_)})]).then(S=>($&&console.info("[unocss] Web fonts fetched."),S)).finally(()=>clearTimeout(k))}async function v(u){return o?(b[u]||(b[u]=y(u).catch(h=>{if(console.error(`[unocss] Failed to fetch web fonts: ${u}`),console.error(h),typeof process<"u"&&lh.CI)throw h})),await b[u]):`@import url('${u}');`}const g=Array.from(new Set(p.map(u=>u.provider)));async function d(u,h){const _=[];for(const k of h){const S=u.filter(P=>P.provider.name===k.name);if(k.getImportUrl){const P=k.getImportUrl(S);P&&_.push(await v(P))}_.push(await k.getPreflight?.(S))}return _.filter(Boolean).join(`
9
- `)}const m={name:"@unocss/preset-web-fonts",preflights:[{async getCSS(){let u;for(const h of f){const _=await h.getCSS?.(p,g,d);if(_){u=_;break}}u||(u=await d(p,g));for(const h of f)u=await h.transformCSS?.(u)||u;return u},layer:c}],layers:{[a]:-200}};return n&&(m.extendTheme=(u,h)=>{const _=h.presets.some(S=>S.name==="@unocss/preset-wind4"),$=t.themeKey??(_?"font":"fontFamily");u[$]||(u[$]={});const k=Object.fromEntries(Object.entries(l).map(([S,P])=>[S,P.map(O=>O.provider.getFontName?.(O)??`"${O.name}"`)]));for(const S of Object.keys(k))typeof u[$][S]=="string"?u[$][S]=k[S].map(P=>`${P},`).join("")+u[$][S]:u[$][S]=k[S].join(",")}),m}}const Eh="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36",xh=async e=>(await Et(async()=>{const{$fetch:t}=await Promise.resolve().then(()=>Vs);return{$fetch:t}},void 0,import.meta.url)).$fetch(e,{headers:{"User-Agent":Eh},retry:3}),Ph=Sh(xh);function Ch(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function Xi(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Yi(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Qi=["Webkit","Moz","ms"];function jh(e){const t={};function r(n){const o=t[n];if(o)return o;let s=Ch(n);if(s!=="filter"&&s in e)return t[n]=Yi(s);s=Xi(s);for(let i=0;i<Qi.length;i++){const a=`${Qi[i]}${s}`;if(a in e)return t[n]=Yi(Xi(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Rh(e){return e.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function Oh(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,r=window.document,n=()=>r.documentElement,o=t.__unocss||{},s=Object.assign({},e,o.runtime),i=s.defaults||{},a=s.cloakAttribute??"un-cloak";s.autoPrefix&&(i.postprocess=ge(i.postprocess)).unshift(jh(r.createElement("div").style)),s.configResolved?.(o,i);const c=await sh(o,i),f=D=>s.inject?s.inject(D):n().prepend(D),l=()=>s.rootElement?s.rootElement():r.body,p=new Map;let b=!0;const y=new Set;let v,g,d=[];const m=()=>new Promise(D=>{d.push(D),g!=null&&clearTimeout(g),g=setTimeout(()=>_().then(()=>{const V=d;d=[],V.forEach(W=>W())}),0)});function u(D,V=!1){if(D.nodeType!==1)return;const W=D;W.hasAttribute(a)&&W.removeAttribute(a),V&&W.querySelectorAll(`[${a}]`).forEach(Q=>{Q.removeAttribute(a)})}function h(D,V){let W=p.get(D);if(!W)if(W=r.createElement("style"),W.setAttribute("data-unocss-runtime-layer",D),p.set(D,W),V==null)f(W);else{const Q=h(V),Z=Q.parentNode;Z?Z.insertBefore(W,Q.nextSibling):f(W)}return W}async function _(){const D=[...y],V=await c.generate(D);return V.layers.reduce((Q,Z)=>(h(Z,Q).innerHTML=V.getLayer(Z)??"",Z),void 0),D.filter(Q=>!V.matched.has(Q)).forEach(Q=>y.delete(Q)),{...V,getStyleElement:Q=>p.get(Q),getStyleElements:()=>p}}async function $(D){const V=y.size;await c.applyExtractors(D,void 0,y),V!==y.size&&await m()}async function k(D=l()){const V=D&&D.outerHTML;V&&(await $(`${V} ${Rh(V)}`),u(n()),u(D,!0))}const S=new MutationObserver(D=>{b||D.forEach(async V=>{if(V.target.nodeType!==1)return;const W=V.target;for(const Q of p)if(W===Q[1])return;if(V.type==="childList")V.addedNodes.forEach(async Q=>{if(Q.nodeType!==1)return;const Z=Q;v&&!v(Z)||(await $(Z.outerHTML),u(Z))});else{if(v&&!v(W))return;if(V.attributeName!==a){const Q=Array.from(W.attributes).map(B=>B.value?`${B.name}="${B.value}"`:B.name).join(" "),Z=`<${W.tagName.toLowerCase()} ${Q}>`;await $(Z)}u(W)}})});let P=!1;function O(){if(P)return;const D=s.observer?.target?s.observer.target():l();D&&(S.observe(D,{childList:!0,subtree:!0,attributes:!0,attributeFilter:s.observer?.attributeFilter}),P=!0)}function q(){s.bypassDefined&&Th(c.blocked),k(),O()}function M(){r.readyState==="loading"?t.addEventListener("DOMContentLoaded",q):q()}const L=t.__unocss_runtime=t.__unocss_runtime={version:c.version,uno:c,async extract(D){ve(D)||(D.forEach(V=>y.add(V)),D=""),await $(D)},extractAll:k,inspect(D){v=D},toggleObserver(D){D===void 0?b=!b:b=!!D,!P&&!b&&M()},update:_,presets:t.__unocss_runtime?.presets??{}};s.ready?.(L)!==!1&&(b=!1,M())}function Th(e=new Set){for(let t=0;t<document.styleSheets.length;t++){const r=document.styleSheets[t];let n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(o=>o.selectorText?.split(/,/g)||[]).forEach(o=>{o&&(o=o.trim(),o.startsWith(".")&&(o=o.slice(1)),e.add(o))})}catch{continue}}return e}function Ro(e){return Md()?(zd(e),!0):!1}function Zi(e){if(!lr(e))return ut(e);const t=new Proxy({},{get(r,n,o){return qu(Reflect.get(e.value,n,o))},set(r,n,o){return lr(e.value[n])&&!lr(o)?e.value[n].value=o:e.value[n]=o,!0},deleteProperty(r,n){return Reflect.deleteProperty(e.value,n)},has(r,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ut(t)}const sf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const af=e=>e!=null,Nh=Object.prototype.toString,Ah=e=>Nh.call(e)==="[object Object]",nt=()=>{};function cf(e,t){function r(...n){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(s)})}return r}function Ih(e,t={}){let r,n,o=nt;const s=c=>{clearTimeout(c),o(),o=nt};let i;return c=>{const f=xe(e),l=xe(t.maxWait);return r&&s(r),f<=0||l!==void 0&&l<=0?(n&&(s(n),n=void 0),Promise.resolve(c())):new Promise((p,b)=>{o=t.rejectOnCancel?b:p,i=c,l&&!n&&(n=setTimeout(()=>{r&&s(r),n=void 0,p(i())},l)),r=setTimeout(()=>{n&&s(n),n=void 0,p(c())},f)})}}function Mh(...e){let t=0,r,n=!0,o=nt,s,i,a,c,f;!lr(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:c=!0,rejectOnCancel:f=!1}=e[0]:[i,a=!0,c=!0,f=!1]=e;const l=()=>{r&&(clearTimeout(r),r=void 0,o(),o=nt)};return b=>{const y=xe(i),v=Date.now()-t,g=()=>s=b();return l(),y<=0?(t=Date.now(),g()):(v>y&&(c||!n)?(t=Date.now(),g()):a&&(s=new Promise((d,m)=>{o=f?m:d,r=setTimeout(()=>{t=Date.now(),n=!0,d(g()),l()},Math.max(0,y-v))})),!c&&!r&&(r=setTimeout(()=>n=!0,y)),n=!1,s)}}function ur(e){return Array.isArray(e)?e:[e]}function zh(e){return oi()}function qh(e,t=200,r={}){return cf(Ih(t,r),e)}function Fh(e,t=200,r=!1,n=!0,o=!1){return cf(Mh(t,r,n,o),e)}function lf(e,t=!0,r){zh()?si(e,r):t?e():ii(e)}function Dh(e,t,r){return Ge(e,t,{...r,immediate:!0})}const Oo=sf?window:void 0,Lh=sf?window.document:void 0;function qt(e){var t;const r=xe(e);return(t=r?.$el)!=null?t:r}function ea(...e){const t=[],r=()=>{t.forEach(a=>a()),t.length=0},n=(a,c,f,l)=>(a.addEventListener(c,f,l),()=>a.removeEventListener(c,f,l)),o=ke(()=>{const a=ur(xe(e[0])).filter(c=>c!=null);return a.every(c=>typeof c!="string")?a:void 0}),s=Dh(()=>{var a,c;return[(c=(a=o.value)==null?void 0:a.map(f=>qt(f)))!=null?c:[Oo].filter(f=>f!=null),ur(xe(o.value?e[1]:e[0])),ur(qu(o.value?e[2]:e[1])),xe(o.value?e[3]:e[2])]},([a,c,f,l])=>{if(r(),!a?.length||!c?.length||!f?.length)return;const p=Ah(l)?{...l}:l;t.push(...a.flatMap(b=>c.flatMap(y=>f.map(v=>n(b,y,v,p)))))},{flush:"post"}),i=()=>{s(),r()};return Ro(r),i}function Vh(){const e=lt(!1),t=oi();return t&&si(()=>{e.value=!0},t),e}function uf(e){const t=Vh();return ke(()=>(t.value,!!e()))}function Uh(e,t,r={}){const{window:n=Oo,...o}=r;let s;const i=uf(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},c=ke(()=>{const b=xe(e),y=ur(b).map(qt).filter(af);return new Set(y)}),f=Ge(()=>c.value,b=>{a(),i.value&&b.size&&(s=new MutationObserver(t),b.forEach(y=>s.observe(y,o)))},{immediate:!0,flush:"post"}),l=()=>s?.takeRecords(),p=()=>{f(),a()};return Ro(p),{isSupported:i,stop:p,takeRecords:l}}function Pk(e,t,r={}){const{root:n,rootMargin:o="0px",threshold:s=0,window:i=Oo,immediate:a=!0}=r,c=uf(()=>i&&"IntersectionObserver"in i),f=ke(()=>{const v=xe(e);return ur(v).map(qt).filter(af)});let l=nt;const p=lt(a),b=c.value?Ge(()=>[f.value,qt(n),p.value],([v,g])=>{if(l(),!p.value||!v.length)return;const d=new IntersectionObserver(t,{root:qt(g),rootMargin:o,threshold:s});v.forEach(m=>m&&d.observe(m)),l=()=>{d.disconnect(),l=nt}},{immediate:a,flush:"post"}):nt,y=()=>{l(),b(),p.value=!1};return Ro(y),{isSupported:c,isActive:p,pause(){l(),p.value=!1},resume(){p.value=!0},stop:y}}const ta=1;function Ck(e,t={}){const{throttle:r=0,idle:n=200,onStop:o=nt,onScroll:s=nt,offset:i={left:0,right:0,top:0,bottom:0},observe:a={mutation:!1},eventListenerOptions:c={capture:!1,passive:!0},behavior:f="auto",window:l=Oo,onError:p=O=>{console.error(O)}}=t,b=typeof a=="boolean"?{mutation:a}:a,y=lt(0),v=lt(0),g=ke({get(){return y.value},set(O){m(O,void 0)}}),d=ke({get(){return v.value},set(O){m(void 0,O)}});function m(O,q){var M,L,D,V;if(!l)return;const W=xe(e);if(!W)return;(D=W instanceof Document?l.document.body:W)==null||D.scrollTo({top:(M=xe(q))!=null?M:d.value,left:(L=xe(O))!=null?L:g.value,behavior:xe(f)});const Q=((V=W?.document)==null?void 0:V.documentElement)||W?.documentElement||W;g!=null&&(y.value=Q.scrollLeft),d!=null&&(v.value=Q.scrollTop)}const u=lt(!1),h=ut({left:!0,right:!1,top:!0,bottom:!1}),_=ut({left:!1,right:!1,top:!1,bottom:!1}),$=O=>{u.value&&(u.value=!1,_.left=!1,_.right=!1,_.top=!1,_.bottom=!1,o(O))},k=qh($,r+n),S=O=>{var q;if(!l)return;const M=((q=O?.document)==null?void 0:q.documentElement)||O?.documentElement||qt(O),{display:L,flexDirection:D,direction:V}=getComputedStyle(M),W=V==="rtl"?-1:1,Q=M.scrollLeft;_.left=Q<y.value,_.right=Q>y.value;const Z=Math.abs(Q*W)<=(i.left||0),B=Math.abs(Q*W)+M.clientWidth>=M.scrollWidth-(i.right||0)-ta;L==="flex"&&D==="row-reverse"?(h.left=B,h.right=Z):(h.left=Z,h.right=B),y.value=Q;let ee=M.scrollTop;O===l.document&&!ee&&(ee=l.document.body.scrollTop),_.top=ee<v.value,_.bottom=ee>v.value;const z=Math.abs(ee)<=(i.top||0),C=Math.abs(ee)+M.clientHeight>=M.scrollHeight-(i.bottom||0)-ta;L==="flex"&&D==="column-reverse"?(h.top=C,h.bottom=z):(h.top=z,h.bottom=C),v.value=ee},P=O=>{var q;if(!l)return;const M=(q=O.target.documentElement)!=null?q:O.target;S(M),u.value=!0,k(O),s(O)};return ea(e,"scroll",r?Fh(P,r,!0,!1):P,c),lf(()=>{try{const O=xe(e);if(!O)return;S(O)}catch(O){p(O)}}),b?.mutation&&e!=null&&e!==l&&e!==document&&Uh(e,()=>{const O=xe(e);O&&S(O)},{attributes:!0,childList:!0,subtree:!0}),ea(e,"scrollend",$,c),{x:g,y:d,isScrolling:u,arrivedState:h,directions:_,measure(){const O=xe(e);l&&O&&S(O)}}}let Hh=0;function Kh(e,t={}){const r=lt(!1),{document:n=Lh,immediate:o=!0,manual:s=!1,id:i=`vueuse_styletag_${++Hh}`}=t,a=lt(e);let c=()=>{};const f=()=>{if(!n)return;const p=n.getElementById(i)||n.createElement("style");p.isConnected||(p.id=i,t.nonce&&(p.nonce=t.nonce),t.media&&(p.media=t.media),n.head.appendChild(p)),!r.value&&(c=Ge(a,b=>{p.textContent=b},{immediate:!0}),r.value=!0)},l=()=>{!n||!r.value||(c(),n.head.removeChild(n.getElementById(i)),r.value=!1)};return o&&!s&&lf(f),s||Ro(l),{id:i,css:a,unload:l,load:f,isLoaded:qd(r)}}const Wh=(e,{branch:t="branch",children:r="children",id:n="id",index:o="index",next:s="next",parent:i="parent",prev:a="prev",siblings:c="siblings"}={})=>{const f={[t]:{get(){const y=[this];for(;y[0]?.[i];)y.unshift(y[0][i]);return y}},[o]:{get(){return this[c].findIndex(y=>this[n]===y[n])}},[s]:{get(){return this[c][this[o]+1]}},[a]:{get(){return this[c][this[o]-1]}}},l=(y,v={})=>y.value.flatMap(g=>(Object.defineProperties(g,{...f,[i]:v,[c]:y}),[g,...l({configurable:!0,value:g[r]??[]},{configurable:!0,value:g})])),p=ke(()=>l({value:Fd(e)?e:ut(e)})),b=Zi(ke(()=>Object.fromEntries(p.value.map(y=>[y[n],y]))));return{add:y=>{const v=b[y];if(v){const g=v[r],d=URL.createObjectURL(new Blob),m=d.split("/").pop()??crypto.randomUUID(),u=v[o],h=v[c];switch(URL.revokeObjectURL(d),!0){case!!v[i]:h.splice(u+1,0,{[n]:m});break;case!!g:g.unshift({[n]:m});break;default:h.splice(u+1,0,{[n]:m});break}return m}},arrLeaves:Zi(p),down:y=>{const v=b[y];if(v){const g=v[o],d=g+1,m=v[c];g<m.length-1&&m[g]&&m[d]&&([m[g],m[d]]=[m[d],m[g]])}},leaves:p,left:y=>{const v=b[y];if(v){const g=v[i];if(g?.[i]){const d=g[r]??[];return g[c].splice(g[o]+1,0,...d.splice(v[o],1)),g[n]}}},objLeaves:b,remove:y=>{const v=b[y];if(v){const g=v[i];if(g){const[d]=p.value,m=v[s],u=v[a],h=m?.[n]??u?.[n]??g[n]??d?.[n];return v[c].splice(v[o],1),h}}},right:y=>{const v=b[y];if(v){const g=v[a];if(g){const d=g[r]??[],m=g[n],u=v[c];return g[r]=[...d,...u.splice(v[o],1)],m}}},up:y=>{const v=b[y];if(v){const g=v[o],d=g-1,m=v[c];g&&m[g]&&m[d]&&([m[d],m[g]]=[m[g],m[d]])}}}};var Er={exports:{}},Zo={},Je={},gt={},es={},ts={},rs={},ra;function po(){return ra||(ra=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(u){if(super(),!e.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((h,_)=>`${h}${_}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((h,_)=>(_ instanceof r&&(h[_.str]=(h[_.str]||0)+1),h),{})}}e._Code=n,e.nil=new n("");function o(m,...u){const h=[m[0]];let _=0;for(;_<u.length;)a(h,u[_]),h.push(m[++_]);return new n(h)}e._=o;const s=new n("+");function i(m,...u){const h=[y(m[0])];let _=0;for(;_<u.length;)h.push(s),a(h,u[_]),h.push(s,y(m[++_]));return c(h),new n(h)}e.str=i;function a(m,u){u instanceof n?m.push(...u._items):u instanceof r?m.push(u):m.push(p(u))}e.addCodeArg=a;function c(m){let u=1;for(;u<m.length-1;){if(m[u]===s){const h=f(m[u-1],m[u+1]);if(h!==void 0){m.splice(u-1,3,h);continue}m[u++]="+"}u++}}function f(m,u){if(u==='""')return m;if(m==='""')return u;if(typeof m=="string")return u instanceof r||m[m.length-1]!=='"'?void 0:typeof u!="string"?`${m.slice(0,-1)}${u}"`:u[0]==='"'?m.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(m instanceof r))return`"${m}${u.slice(1)}`}function l(m,u){return u.emptyStr()?m:m.emptyStr()?u:i`${m}${u}`}e.strConcat=l;function p(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:y(Array.isArray(m)?m.join(","):m)}function b(m){return new n(y(m))}e.stringify=b;function y(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function v(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new n(`.${m}`):o`[${m}]`}e.getProperty=v;function g(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new n(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=g;function d(m){return new n(m.toString())}e.regexpCode=d}(rs)),rs}var ns={},na;function oa(){return na||(na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=po();class r extends Error{constructor(f){super(`CodeGen: "code" for ${f} not defined`),this.value=f.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:f,parent:l}={}){this._names={},this._prefixes=f,this._parent=l}toName(f){return f instanceof t.Name?f:this.name(f)}name(f){return new t.Name(this._newName(f))}_newName(f){const l=this._names[f]||this._nameGroup(f);return`${f}${l.index++}`}_nameGroup(f){var l,p;if(!((p=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||p===void 0)&&p.has(f)||this._prefixes&&!this._prefixes.has(f))throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);return this._names[f]={prefix:f,index:0}}}e.Scope=o;class s extends t.Name{constructor(f,l){super(l),this.prefix=f}setValue(f,{property:l,itemIndex:p}){this.value=f,this.scopePath=(0,t._)`.${new t.Name(l)}[${p}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class a extends o{constructor(f){super(f),this._values={},this._scope=f.scope,this.opts={...f,_n:f.lines?i:t.nil}}get(){return this._scope}name(f){return new s(f,this._newName(f))}value(f,l){var p;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const b=this.toName(f),{prefix:y}=b,v=(p=l.key)!==null&&p!==void 0?p:l.ref;let g=this._values[y];if(g){const u=g.get(v);if(u)return u}else g=this._values[y]=new Map;g.set(v,b);const d=this._scope[y]||(this._scope[y]=[]),m=d.length;return d[m]=l.ref,b.setValue(l,{property:y,itemIndex:m}),b}getValue(f,l){const p=this._values[f];if(p)return p.get(l)}scopeRefs(f,l=this._values){return this._reduceValues(l,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${f}${p.scopePath}`})}scopeCode(f=this._values,l,p){return this._reduceValues(f,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},l,p)}_reduceValues(f,l,p={},b){let y=t.nil;for(const v in f){const g=f[v];if(!g)continue;const d=p[v]=p[v]||new Map;g.forEach(m=>{if(d.has(m))return;d.set(m,n.Started);let u=l(m);if(u){const h=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${h} ${m} = ${u};${this.opts._n}`}else if(u=b?.(m))y=(0,t._)`${y}${u}${this.opts._n}`;else throw new r(m);d.set(m,n.Completed)})}return y}}e.ValueScope=a}(ns)),ns}var sa;function ie(){return sa||(sa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=po(),r=oa();var n=po();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=oa();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(w,E){return this}}class i extends s{constructor(w,E,T){super(),this.varKind=w,this.name=E,this.rhs=T}render({es5:w,_n:E}){const T=w?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${U};`+E}optimizeNames(w,E){if(w[this.name.str])return this.rhs&&(this.rhs=V(this.rhs,w,E)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(w,E,T){super(),this.lhs=w,this.rhs=E,this.sideEffects=T}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,E){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=V(this.rhs,w,E),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return D(w,this.rhs)}}class c extends a{constructor(w,E,T,U){super(w,T,U),this.op=E}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class f extends s{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class l extends s{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class p extends s{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class b extends s{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,E){return this.code=V(this.code,w,E),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends s{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((E,T)=>E+T.render(w),"")}optimizeNodes(){const{nodes:w}=this;let E=w.length;for(;E--;){const T=w[E].optimizeNodes();Array.isArray(T)?w.splice(E,1,...T):T?w[E]=T:w.splice(E,1)}return w.length>0?this:void 0}optimizeNames(w,E){const{nodes:T}=this;let U=T.length;for(;U--;){const K=T[U];K.optimizeNames(w,E)||(W(w,K.names),T.splice(U,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((w,E)=>L(w,E.names),{})}}class v extends y{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class g extends y{}class d extends v{}d.kind="else";class m extends v{constructor(w,E){super(E),this.condition=w}render(w){let E=`if(${this.condition})`+super.render(w);return this.else&&(E+="else "+this.else.render(w)),E}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let E=this.else;if(E){const T=E.optimizeNodes();E=this.else=Array.isArray(T)?new d(T):T}if(E)return w===!1?E instanceof m?E:E.nodes:this.nodes.length?this:new m(Q(w),E instanceof m?[E]:E.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,E){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(w,E),!!(super.optimizeNames(w,E)||this.else))return this.condition=V(this.condition,w,E),this}get names(){const w=super.names;return D(w,this.condition),this.else&&L(w,this.else.names),w}}m.kind="if";class u extends v{}u.kind="for";class h extends u{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,E){if(super.optimizeNames(w,E))return this.iteration=V(this.iteration,w,E),this}get names(){return L(super.names,this.iteration.names)}}class _ extends u{constructor(w,E,T,U){super(),this.varKind=w,this.name=E,this.from=T,this.to=U}render(w){const E=w.es5?r.varKinds.var:this.varKind,{name:T,from:U,to:K}=this;return`for(${E} ${T}=${U}; ${T}<${K}; ${T}++)`+super.render(w)}get names(){const w=D(super.names,this.from);return D(w,this.to)}}class $ extends u{constructor(w,E,T,U){super(),this.loop=w,this.varKind=E,this.name=T,this.iterable=U}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,E){if(super.optimizeNames(w,E))return this.iterable=V(this.iterable,w,E),this}get names(){return L(super.names,this.iterable.names)}}class k extends v{constructor(w,E,T){super(),this.name=w,this.args=E,this.async=T}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}k.kind="func";class S extends y{render(w){return"return "+super.render(w)}}S.kind="return";class P extends v{render(w){let E="try"+super.render(w);return this.catch&&(E+=this.catch.render(w)),this.finally&&(E+=this.finally.render(w)),E}optimizeNodes(){var w,E;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(E=this.finally)===null||E===void 0||E.optimizeNodes(),this}optimizeNames(w,E){var T,U;return super.optimizeNames(w,E),(T=this.catch)===null||T===void 0||T.optimizeNames(w,E),(U=this.finally)===null||U===void 0||U.optimizeNames(w,E),this}get names(){const w=super.names;return this.catch&&L(w,this.catch.names),this.finally&&L(w,this.finally.names),w}}class O extends v{constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}O.kind="catch";class q extends v{render(w){return"finally"+super.render(w)}}q.kind="finally";class M{constructor(w,E={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...E,_n:E.lines?`
10
- `:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,E){const T=this._extScope.value(w,E);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(w,E){return this._extScope.getValue(w,E)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,E,T,U){const K=this._scope.toName(E);return T!==void 0&&U&&(this._constants[K.str]=T),this._leafNode(new i(w,K,T)),K}const(w,E,T){return this._def(r.varKinds.const,w,E,T)}let(w,E,T){return this._def(r.varKinds.let,w,E,T)}var(w,E,T){return this._def(r.varKinds.var,w,E,T)}assign(w,E,T){return this._leafNode(new a(w,E,T))}add(w,E){return this._leafNode(new c(w,e.operators.ADD,E))}code(w){return typeof w=="function"?w():w!==t.nil&&this._leafNode(new b(w)),this}object(...w){const E=["{"];for(const[T,U]of w)E.length>1&&E.push(","),E.push(T),(T!==U||this.opts.es5)&&(E.push(":"),(0,t.addCodeArg)(E,U));return E.push("}"),new t._Code(E)}if(w,E,T){if(this._blockNode(new m(w)),E&&T)this.code(E).else().code(T).endIf();else if(E)this.code(E).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new m(w))}else(){return this._elseNode(new d)}endIf(){return this._endBlockNode(m,d)}_for(w,E){return this._blockNode(w),E&&this.code(E).endFor(),this}for(w,E){return this._for(new h(w),E)}forRange(w,E,T,U,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const X=this._scope.toName(w);return this._for(new _(K,X,E,T),()=>U(X))}forOf(w,E,T,U=r.varKinds.const){const K=this._scope.toName(w);if(this.opts.es5){const X=E instanceof t.Name?E:this.var("_arr",E);return this.forRange("_i",0,(0,t._)`${X}.length`,J=>{this.var(K,(0,t._)`${X}[${J}]`),T(K)})}return this._for(new $("of",U,K,E),()=>T(K))}forIn(w,E,T,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(w,(0,t._)`Object.keys(${E})`,T);const K=this._scope.toName(w);return this._for(new $("in",U,K,E),()=>T(K))}endFor(){return this._endBlockNode(u)}label(w){return this._leafNode(new f(w))}break(w){return this._leafNode(new l(w))}return(w){const E=new S;if(this._blockNode(E),this.code(w),E.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(w,E,T){if(!E&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new P;if(this._blockNode(U),this.code(w),E){const K=this.name("e");this._currNode=U.catch=new O(K),E(K)}return T&&(this._currNode=U.finally=new q,this.code(T)),this._endBlockNode(O,q)}throw(w){return this._leafNode(new p(w))}block(w,E){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(E),this}endBlock(w){const E=this._blockStarts.pop();if(E===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-E;if(T<0||w!==void 0&&T!==w)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${w} expected`);return this._nodes.length=E,this}func(w,E=t.nil,T,U){return this._blockNode(new k(w,E,T)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,E){const T=this._currNode;if(T instanceof w||E&&T instanceof E)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${E?`${w.kind}/${E.kind}`:w.kind}"`)}_elseNode(w){const E=this._currNode;if(!(E instanceof m))throw new Error('CodeGen: "else" without "if"');return this._currNode=E.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const E=this._nodes;E[E.length-1]=w}}e.CodeGen=M;function L(R,w){for(const E in w)R[E]=(R[E]||0)+(w[E]||0);return R}function D(R,w){return w instanceof t._CodeOrName?L(R,w.names):R}function V(R,w,E){if(R instanceof t.Name)return T(R);if(!U(R))return R;return new t._Code(R._items.reduce((K,X)=>(X instanceof t.Name&&(X=T(X)),X instanceof t._Code?K.push(...X._items):K.push(X),K),[]));function T(K){const X=E[K.str];return X===void 0||w[K.str]!==1?K:(delete w[K.str],X)}function U(K){return K instanceof t._Code&&K._items.some(X=>X instanceof t.Name&&w[X.str]===1&&E[X.str]!==void 0)}}function W(R,w){for(const E in w)R[E]=(R[E]||0)-(w[E]||0)}function Q(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,t._)`!${A(R)}`}e.not=Q;const Z=C(e.operators.AND);function B(...R){return R.reduce(Z)}e.and=B;const ee=C(e.operators.OR);function z(...R){return R.reduce(ee)}e.or=z;function C(R){return(w,E)=>w===t.nil?E:E===t.nil?w:(0,t._)`${A(w)} ${R} ${A(E)}`}function A(R){return R instanceof t.Name?R:(0,t._)`(${R})`}}(ts)),ts}var te={},ia;function le(){if(ia)return te;ia=1,Object.defineProperty(te,"__esModule",{value:!0}),te.checkStrictMode=te.getErrorPath=te.Type=te.useFunc=te.setEvaluated=te.evaluatedPropsToName=te.mergeEvaluated=te.eachItem=te.unescapeJsonPointer=te.escapeJsonPointer=te.escapeFragment=te.unescapeFragment=te.schemaRefOrVal=te.schemaHasRulesButRef=te.schemaHasRules=te.checkUnknownRules=te.alwaysValidSchema=te.toHash=void 0;const e=ie(),t=po();function r($){const k={};for(const S of $)k[S]=!0;return k}te.toHash=r;function n($,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(o($,k),!s(k,$.self.RULES.all))}te.alwaysValidSchema=n;function o($,k=$.schema){const{opts:S,self:P}=$;if(!S.strictSchema||typeof k=="boolean")return;const O=P.RULES.keywords;for(const q in k)O[q]||_($,`unknown keyword: "${q}"`)}te.checkUnknownRules=o;function s($,k){if(typeof $=="boolean")return!$;for(const S in $)if(k[S])return!0;return!1}te.schemaHasRules=s;function i($,k){if(typeof $=="boolean")return!$;for(const S in $)if(S!=="$ref"&&k.all[S])return!0;return!1}te.schemaHasRulesButRef=i;function a({topSchemaRef:$,schemaPath:k},S,P,O){if(!O){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${$}${k}${(0,e.getProperty)(P)}`}te.schemaRefOrVal=a;function c($){return p(decodeURIComponent($))}te.unescapeFragment=c;function f($){return encodeURIComponent(l($))}te.escapeFragment=f;function l($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}te.escapeJsonPointer=l;function p($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}te.unescapeJsonPointer=p;function b($,k){if(Array.isArray($))for(const S of $)k(S);else k($)}te.eachItem=b;function y({mergeNames:$,mergeToName:k,mergeValues:S,resultToName:P}){return(O,q,M,L)=>{const D=M===void 0?q:M instanceof e.Name?(q instanceof e.Name?$(O,q,M):k(O,q,M),M):q instanceof e.Name?(k(O,M,q),q):S(q,M);return L===e.Name&&!(D instanceof e.Name)?P(O,D):D}}te.mergeEvaluated={props:y({mergeNames:($,k,S)=>$.if((0,e._)`${S} !== true && ${k} !== undefined`,()=>{$.if((0,e._)`${k} === true`,()=>$.assign(S,!0),()=>$.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${k})`))}),mergeToName:($,k,S)=>$.if((0,e._)`${S} !== true`,()=>{k===!0?$.assign(S,!0):($.assign(S,(0,e._)`${S} || {}`),g($,S,k))}),mergeValues:($,k)=>$===!0?!0:{...$,...k},resultToName:v}),items:y({mergeNames:($,k,S)=>$.if((0,e._)`${S} !== true && ${k} !== undefined`,()=>$.assign(S,(0,e._)`${k} === true ? true : ${S} > ${k} ? ${S} : ${k}`)),mergeToName:($,k,S)=>$.if((0,e._)`${S} !== true`,()=>$.assign(S,k===!0?!0:(0,e._)`${S} > ${k} ? ${S} : ${k}`)),mergeValues:($,k)=>$===!0?!0:Math.max($,k),resultToName:($,k)=>$.var("items",k)})};function v($,k){if(k===!0)return $.var("props",!0);const S=$.var("props",(0,e._)`{}`);return k!==void 0&&g($,S,k),S}te.evaluatedPropsToName=v;function g($,k,S){Object.keys(S).forEach(P=>$.assign((0,e._)`${k}${(0,e.getProperty)(P)}`,!0))}te.setEvaluated=g;const d={};function m($,k){return $.scopeValue("func",{ref:k,code:d[k.code]||(d[k.code]=new t._Code(k.code))})}te.useFunc=m;var u;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(u||(te.Type=u={}));function h($,k,S){if($ instanceof e.Name){const P=k===u.Num;return S?P?(0,e._)`"[" + ${$} + "]"`:(0,e._)`"['" + ${$} + "']"`:P?(0,e._)`"/" + ${$}`:(0,e._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)($).toString():"/"+l($)}te.getErrorPath=h;function _($,k,S=$.opts.strictSchema){if(S){if(k=`strict mode: ${k}`,S===!0)throw new Error(k);$.self.logger.warn(k)}}return te.checkStrictMode=_,te}var xr={},aa;function ft(){if(aa)return xr;aa=1,Object.defineProperty(xr,"__esModule",{value:!0});const e=ie(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return xr.default=t,xr}var ca;function To(){return ca||(ca=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ie(),r=le(),n=ft();e.keywordError={message:({keyword:d})=>(0,t.str)`must pass "${d}" keyword validation`},e.keyword$DataError={message:({keyword:d,schemaType:m})=>m?(0,t.str)`"${d}" keyword must be ${m} ($data)`:(0,t.str)`"${d}" keyword is invalid ($data)`};function o(d,m=e.keywordError,u,h){const{it:_}=d,{gen:$,compositeRule:k,allErrors:S}=_,P=p(d,m,u);h??(k||S)?c($,P):f(_,(0,t._)`[${P}]`)}e.reportError=o;function s(d,m=e.keywordError,u){const{it:h}=d,{gen:_,compositeRule:$,allErrors:k}=h,S=p(d,m,u);c(_,S),$||k||f(h,n.default.vErrors)}e.reportExtraError=s;function i(d,m){d.assign(n.default.errors,m),d.if((0,t._)`${n.default.vErrors} !== null`,()=>d.if(m,()=>d.assign((0,t._)`${n.default.vErrors}.length`,m),()=>d.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function a({gen:d,keyword:m,schemaValue:u,data:h,errsCount:_,it:$}){if(_===void 0)throw new Error("ajv implementation error");const k=d.name("err");d.forRange("i",_,n.default.errors,S=>{d.const(k,(0,t._)`${n.default.vErrors}[${S}]`),d.if((0,t._)`${k}.instancePath === undefined`,()=>d.assign((0,t._)`${k}.instancePath`,(0,t.strConcat)(n.default.instancePath,$.errorPath))),d.assign((0,t._)`${k}.schemaPath`,(0,t.str)`${$.errSchemaPath}/${m}`),$.opts.verbose&&(d.assign((0,t._)`${k}.schema`,u),d.assign((0,t._)`${k}.data`,h))})}e.extendErrors=a;function c(d,m){const u=d.const("err",m);d.if((0,t._)`${n.default.vErrors} === null`,()=>d.assign(n.default.vErrors,(0,t._)`[${u}]`),(0,t._)`${n.default.vErrors}.push(${u})`),d.code((0,t._)`${n.default.errors}++`)}function f(d,m){const{gen:u,validateName:h,schemaEnv:_}=d;_.$async?u.throw((0,t._)`new ${d.ValidationError}(${m})`):(u.assign((0,t._)`${h}.errors`,m),u.return(!1))}const l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(d,m,u){const{createErrors:h}=d.it;return h===!1?(0,t._)`{}`:b(d,m,u)}function b(d,m,u={}){const{gen:h,it:_}=d,$=[y(_,u),v(d,u)];return g(d,m,$),h.object(...$)}function y({errorPath:d},{instancePath:m}){const u=m?(0,t.str)`${d}${(0,r.getErrorPath)(m,r.Type.Str)}`:d;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,u)]}function v({keyword:d,it:{errSchemaPath:m}},{schemaPath:u,parentSchema:h}){let _=h?m:(0,t.str)`${m}/${d}`;return u&&(_=(0,t.str)`${_}${(0,r.getErrorPath)(u,r.Type.Str)}`),[l.schemaPath,_]}function g(d,{params:m,message:u},h){const{keyword:_,data:$,schemaValue:k,it:S}=d,{opts:P,propertyName:O,topSchemaRef:q,schemaPath:M}=S;h.push([l.keyword,_],[l.params,typeof m=="function"?m(d):m||(0,t._)`{}`]),P.messages&&h.push([l.message,typeof u=="function"?u(d):u]),P.verbose&&h.push([l.schema,k],[l.parentSchema,(0,t._)`${q}${M}`],[n.default.data,$]),O&&h.push([l.propertyName,O])}}(es)),es}var la;function Bh(){if(la)return gt;la=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.boolOrEmptySchema=gt.topBoolOrEmptySchema=void 0;const e=To(),t=ie(),r=ft(),n={message:"boolean schema is false"};function o(a){const{gen:c,schema:f,validateName:l}=a;f===!1?i(a,!1):typeof f=="object"&&f.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${l}.errors`,null),c.return(!0))}gt.topBoolOrEmptySchema=o;function s(a,c){const{gen:f,schema:l}=a;l===!1?(f.var(c,!1),i(a)):f.var(c,!0)}gt.boolOrEmptySchema=s;function i(a,c){const{gen:f,data:l}=a,p={gen:f,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(p,n,void 0,c)}return gt}var Se={},yt={},ua;function ff(){if(ua)return yt;ua=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.getRules=yt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(o){return typeof o=="string"&&t.has(o)}yt.isJSONType=r;function n(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}return yt.getRules=n,yt}var Xe={},fa;function df(){if(fa)return Xe;fa=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.shouldUseRule=Xe.shouldUseGroup=Xe.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const i=o.RULES.types[s];return i&&i!==!0&&t(n,i)}Xe.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}Xe.shouldUseGroup=t;function r(n,o){var s;return n[o.keyword]!==void 0||((s=o.definition.implements)===null||s===void 0?void 0:s.some(i=>n[i]!==void 0))}return Xe.shouldUseRule=r,Xe}var da;function ho(){if(da)return Se;da=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.reportTypeError=Se.checkDataTypes=Se.checkDataType=Se.coerceAndCheckDataType=Se.getJSONTypes=Se.getSchemaTypes=Se.DataType=void 0;const e=ff(),t=df(),r=To(),n=ie(),o=le();var s;(function(u){u[u.Correct=0]="Correct",u[u.Wrong=1]="Wrong"})(s||(Se.DataType=s={}));function i(u){const h=a(u.type);if(h.includes("null")){if(u.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!h.length&&u.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');u.nullable===!0&&h.push("null")}return h}Se.getSchemaTypes=i;function a(u){const h=Array.isArray(u)?u:u?[u]:[];if(h.every(e.isJSONType))return h;throw new Error("type must be JSONType or JSONType[]: "+h.join(","))}Se.getJSONTypes=a;function c(u,h){const{gen:_,data:$,opts:k}=u,S=l(h,k.coerceTypes),P=h.length>0&&!(S.length===0&&h.length===1&&(0,t.schemaHasRulesForType)(u,h[0]));if(P){const O=v(h,$,k.strictNumbers,s.Wrong);_.if(O,()=>{S.length?p(u,h,S):d(u)})}return P}Se.coerceAndCheckDataType=c;const f=new Set(["string","number","integer","boolean","null"]);function l(u,h){return h?u.filter(_=>f.has(_)||h==="array"&&_==="array"):[]}function p(u,h,_){const{gen:$,data:k,opts:S}=u,P=$.let("dataType",(0,n._)`typeof ${k}`),O=$.let("coerced",(0,n._)`undefined`);S.coerceTypes==="array"&&$.if((0,n._)`${P} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>$.assign(k,(0,n._)`${k}[0]`).assign(P,(0,n._)`typeof ${k}`).if(v(h,k,S.strictNumbers),()=>$.assign(O,k))),$.if((0,n._)`${O} !== undefined`);for(const M of _)(f.has(M)||M==="array"&&S.coerceTypes==="array")&&q(M);$.else(),d(u),$.endIf(),$.if((0,n._)`${O} !== undefined`,()=>{$.assign(k,O),b(u,O)});function q(M){switch(M){case"string":$.elseIf((0,n._)`${P} == "number" || ${P} == "boolean"`).assign(O,(0,n._)`"" + ${k}`).elseIf((0,n._)`${k} === null`).assign(O,(0,n._)`""`);return;case"number":$.elseIf((0,n._)`${P} == "boolean" || ${k} === null
11
- || (${P} == "string" && ${k} && ${k} == +${k})`).assign(O,(0,n._)`+${k}`);return;case"integer":$.elseIf((0,n._)`${P} === "boolean" || ${k} === null
12
- || (${P} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(O,(0,n._)`+${k}`);return;case"boolean":$.elseIf((0,n._)`${k} === "false" || ${k} === 0 || ${k} === null`).assign(O,!1).elseIf((0,n._)`${k} === "true" || ${k} === 1`).assign(O,!0);return;case"null":$.elseIf((0,n._)`${k} === "" || ${k} === 0 || ${k} === false`),$.assign(O,null);return;case"array":$.elseIf((0,n._)`${P} === "string" || ${P} === "number"
13
- || ${P} === "boolean" || ${k} === null`).assign(O,(0,n._)`[${k}]`)}}}function b({gen:u,parentData:h,parentDataProperty:_},$){u.if((0,n._)`${h} !== undefined`,()=>u.assign((0,n._)`${h}[${_}]`,$))}function y(u,h,_,$=s.Correct){const k=$===s.Correct?n.operators.EQ:n.operators.NEQ;let S;switch(u){case"null":return(0,n._)`${h} ${k} null`;case"array":S=(0,n._)`Array.isArray(${h})`;break;case"object":S=(0,n._)`${h} && typeof ${h} == "object" && !Array.isArray(${h})`;break;case"integer":S=P((0,n._)`!(${h} % 1) && !isNaN(${h})`);break;case"number":S=P();break;default:return(0,n._)`typeof ${h} ${k} ${u}`}return $===s.Correct?S:(0,n.not)(S);function P(O=n.nil){return(0,n.and)((0,n._)`typeof ${h} == "number"`,O,_?(0,n._)`isFinite(${h})`:n.nil)}}Se.checkDataType=y;function v(u,h,_,$){if(u.length===1)return y(u[0],h,_,$);let k;const S=(0,o.toHash)(u);if(S.array&&S.object){const P=(0,n._)`typeof ${h} != "object"`;k=S.null?P:(0,n._)`!${h} || ${P}`,delete S.null,delete S.array,delete S.object}else k=n.nil;S.number&&delete S.integer;for(const P in S)k=(0,n.and)(k,y(P,h,_,$));return k}Se.checkDataTypes=v;const g={message:({schema:u})=>`must be ${u}`,params:({schema:u,schemaValue:h})=>typeof u=="string"?(0,n._)`{type: ${u}}`:(0,n._)`{type: ${h}}`};function d(u){const h=m(u);(0,r.reportError)(h,g)}Se.reportTypeError=d;function m(u){const{gen:h,data:_,schema:$}=u,k=(0,o.schemaRefOrVal)(u,$,"type");return{gen:h,keyword:"type",data:_,schema:$.type,schemaCode:k,schemaValue:k,parentSchema:$,params:{},it:u}}return Se}var Gt={},pa;function Gh(){if(pa)return Gt;pa=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.assignDefaults=void 0;const e=ie(),t=le();function r(o,s){const{properties:i,items:a}=o.schema;if(s==="object"&&i)for(const c in i)n(o,c,i[c].default);else s==="array"&&Array.isArray(a)&&a.forEach((c,f)=>n(o,f,c.default))}Gt.assignDefaults=r;function n(o,s,i){const{gen:a,compositeRule:c,data:f,opts:l}=o;if(i===void 0)return;const p=(0,e._)`${f}${(0,e.getProperty)(s)}`;if(c){(0,t.checkStrictMode)(o,`default is ignored for: ${p}`);return}let b=(0,e._)`${p} === undefined`;l.useDefaults==="empty"&&(b=(0,e._)`${b} || ${p} === null || ${p} === ""`),a.if(b,(0,e._)`${p} = ${(0,e.stringify)(i)}`)}return Gt}var Fe={},pe={},ha;function He(){if(ha)return pe;ha=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.validateUnion=pe.validateArray=pe.usePattern=pe.callValidateCode=pe.schemaProperties=pe.allSchemaProperties=pe.noPropertyInData=pe.propertyInData=pe.isOwnProperty=pe.hasPropFunc=pe.reportMissingProp=pe.checkMissingProp=pe.checkReportMissingProp=void 0;const e=ie(),t=le(),r=ft(),n=le();function o(u,h){const{gen:_,data:$,it:k}=u;_.if(l(_,$,h,k.opts.ownProperties),()=>{u.setParams({missingProperty:(0,e._)`${h}`},!0),u.error()})}pe.checkReportMissingProp=o;function s({gen:u,data:h,it:{opts:_}},$,k){return(0,e.or)(...$.map(S=>(0,e.and)(l(u,h,S,_.ownProperties),(0,e._)`${k} = ${S}`)))}pe.checkMissingProp=s;function i(u,h){u.setParams({missingProperty:h},!0),u.error()}pe.reportMissingProp=i;function a(u){return u.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}pe.hasPropFunc=a;function c(u,h,_){return(0,e._)`${a(u)}.call(${h}, ${_})`}pe.isOwnProperty=c;function f(u,h,_,$){const k=(0,e._)`${h}${(0,e.getProperty)(_)} !== undefined`;return $?(0,e._)`${k} && ${c(u,h,_)}`:k}pe.propertyInData=f;function l(u,h,_,$){const k=(0,e._)`${h}${(0,e.getProperty)(_)} === undefined`;return $?(0,e.or)(k,(0,e.not)(c(u,h,_))):k}pe.noPropertyInData=l;function p(u){return u?Object.keys(u).filter(h=>h!=="__proto__"):[]}pe.allSchemaProperties=p;function b(u,h){return p(h).filter(_=>!(0,t.alwaysValidSchema)(u,h[_]))}pe.schemaProperties=b;function y({schemaCode:u,data:h,it:{gen:_,topSchemaRef:$,schemaPath:k,errorPath:S},it:P},O,q,M){const L=M?(0,e._)`${u}, ${h}, ${$}${k}`:h,D=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,P.parentData],[r.default.parentDataProperty,P.parentDataProperty],[r.default.rootData,r.default.rootData]];P.opts.dynamicRef&&D.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const V=(0,e._)`${L}, ${_.object(...D)}`;return q!==e.nil?(0,e._)`${O}.call(${q}, ${V})`:(0,e._)`${O}(${V})`}pe.callValidateCode=y;const v=(0,e._)`new RegExp`;function g({gen:u,it:{opts:h}},_){const $=h.unicodeRegExp?"u":"",{regExp:k}=h.code,S=k(_,$);return u.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${k.code==="new RegExp"?v:(0,n.useFunc)(u,k)}(${_}, ${$})`})}pe.usePattern=g;function d(u){const{gen:h,data:_,keyword:$,it:k}=u,S=h.name("valid");if(k.allErrors){const O=h.let("valid",!0);return P(()=>h.assign(O,!1)),O}return h.var(S,!0),P(()=>h.break()),S;function P(O){const q=h.const("len",(0,e._)`${_}.length`);h.forRange("i",0,q,M=>{u.subschema({keyword:$,dataProp:M,dataPropType:t.Type.Num},S),h.if((0,e.not)(S),O)})}}pe.validateArray=d;function m(u){const{gen:h,schema:_,keyword:$,it:k}=u;if(!Array.isArray(_))throw new Error("ajv implementation error");if(_.some(q=>(0,t.alwaysValidSchema)(k,q))&&!k.opts.unevaluated)return;const P=h.let("valid",!1),O=h.name("_valid");h.block(()=>_.forEach((q,M)=>{const L=u.subschema({keyword:$,schemaProp:M,compositeRule:!0},O);h.assign(P,(0,e._)`${P} || ${O}`),u.mergeValidEvaluated(L,O)||h.if((0,e.not)(P))})),u.result(P,()=>u.reset(),()=>u.error(!0))}return pe.validateUnion=m,pe}var ma;function Jh(){if(ma)return Fe;ma=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.validateKeywordUsage=Fe.validSchemaType=Fe.funcKeywordCode=Fe.macroKeywordCode=void 0;const e=ie(),t=ft(),r=He(),n=To();function o(b,y){const{gen:v,keyword:g,schema:d,parentSchema:m,it:u}=b,h=y.macro.call(u.self,d,m,u),_=f(v,g,h);u.opts.validateSchema!==!1&&u.self.validateSchema(h,!0);const $=v.name("valid");b.subschema({schema:h,schemaPath:e.nil,errSchemaPath:`${u.errSchemaPath}/${g}`,topSchemaRef:_,compositeRule:!0},$),b.pass($,()=>b.error(!0))}Fe.macroKeywordCode=o;function s(b,y){var v;const{gen:g,keyword:d,schema:m,parentSchema:u,$data:h,it:_}=b;c(_,y);const $=!h&&y.compile?y.compile.call(_.self,m,u,_):y.validate,k=f(g,d,$),S=g.let("valid");b.block$data(S,P),b.ok((v=y.valid)!==null&&v!==void 0?v:S);function P(){if(y.errors===!1)M(),y.modifying&&i(b),L(()=>b.error());else{const D=y.async?O():q();y.modifying&&i(b),L(()=>a(b,D))}}function O(){const D=g.let("ruleErrs",null);return g.try(()=>M((0,e._)`await `),V=>g.assign(S,!1).if((0,e._)`${V} instanceof ${_.ValidationError}`,()=>g.assign(D,(0,e._)`${V}.errors`),()=>g.throw(V))),D}function q(){const D=(0,e._)`${k}.errors`;return g.assign(D,null),M(e.nil),D}function M(D=y.async?(0,e._)`await `:e.nil){const V=_.opts.passContext?t.default.this:t.default.self,W=!("compile"in y&&!h||y.schema===!1);g.assign(S,(0,e._)`${D}${(0,r.callValidateCode)(b,k,V,W)}`,y.modifying)}function L(D){var V;g.if((0,e.not)((V=y.valid)!==null&&V!==void 0?V:S),D)}}Fe.funcKeywordCode=s;function i(b){const{gen:y,data:v,it:g}=b;y.if(g.parentData,()=>y.assign(v,(0,e._)`${g.parentData}[${g.parentDataProperty}]`))}function a(b,y){const{gen:v}=b;v.if((0,e._)`Array.isArray(${y})`,()=>{v.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(b)},()=>b.error())}function c({schemaEnv:b},y){if(y.async&&!b.$async)throw new Error("async keyword in sync schema")}function f(b,y,v){if(v===void 0)throw new Error(`keyword "${y}" failed to compile`);return b.scopeValue("keyword",typeof v=="function"?{ref:v}:{ref:v,code:(0,e.stringify)(v)})}function l(b,y,v=!1){return!y.length||y.some(g=>g==="array"?Array.isArray(b):g==="object"?b&&typeof b=="object"&&!Array.isArray(b):typeof b==g||v&&typeof b>"u")}Fe.validSchemaType=l;function p({schema:b,opts:y,self:v,errSchemaPath:g},d,m){if(Array.isArray(d.keyword)?!d.keyword.includes(m):d.keyword!==m)throw new Error("ajv implementation error");const u=d.dependencies;if(u?.some(h=>!Object.prototype.hasOwnProperty.call(b,h)))throw new Error(`parent schema must have dependencies of ${m}: ${u.join(",")}`);if(d.validateSchema&&!d.validateSchema(b[m])){const _=`keyword "${m}" value is invalid at path "${g}": `+v.errorsText(d.validateSchema.errors);if(y.validateSchema==="log")v.logger.error(_);else throw new Error(_)}}return Fe.validateKeywordUsage=p,Fe}var Ye={},ga;function Xh(){if(ga)return Ye;ga=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.extendSubschemaMode=Ye.extendSubschemaData=Ye.getSubschema=void 0;const e=ie(),t=le();function r(s,{keyword:i,schemaProp:a,schema:c,schemaPath:f,errSchemaPath:l,topSchemaRef:p}){if(i!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const b=s.schema[i];return a===void 0?{schema:b,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(i)}`,errSchemaPath:`${s.errSchemaPath}/${i}`}:{schema:b[a],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(i)}${(0,e.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${i}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(f===void 0||l===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:f,topSchemaRef:p,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}Ye.getSubschema=r;function n(s,i,{dataProp:a,dataPropType:c,data:f,dataTypes:l,propertyName:p}){if(f!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:b}=i;if(a!==void 0){const{errorPath:v,dataPathArr:g,opts:d}=i,m=b.let("data",(0,e._)`${i.data}${(0,e.getProperty)(a)}`,!0);y(m),s.errorPath=(0,e.str)`${v}${(0,t.getErrorPath)(a,c,d.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${a}`,s.dataPathArr=[...g,s.parentDataProperty]}if(f!==void 0){const v=f instanceof e.Name?f:b.let("data",f,!0);y(v),p!==void 0&&(s.propertyName=p)}l&&(s.dataTypes=l);function y(v){s.data=v,s.dataLevel=i.dataLevel+1,s.dataTypes=[],i.definedProperties=new Set,s.parentData=i.data,s.dataNames=[...i.dataNames,v]}}Ye.extendSubschemaData=n;function o(s,{jtdDiscriminator:i,jtdMetadata:a,compositeRule:c,createErrors:f,allErrors:l}){c!==void 0&&(s.compositeRule=c),f!==void 0&&(s.createErrors=f),l!==void 0&&(s.allErrors=l),s.jtdDiscriminator=i,s.jtdMetadata=a}return Ye.extendSubschemaMode=o,Ye}var Ce={},os,ya;function No(){return ya||(ya=1,os=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r}),os}var ss={exports:{}},ba;function Yh(){if(ba)return ss.exports;ba=1;var e=ss.exports=function(n,o,s){typeof o=="function"&&(s=o,o={}),s=o.cb||s;var i=typeof s=="function"?s:s.pre||function(){},a=s.post||function(){};t(o,i,a,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,o,s,i,a,c,f,l,p,b){if(i&&typeof i=="object"&&!Array.isArray(i)){o(i,a,c,f,l,p,b);for(var y in i){var v=i[y];if(Array.isArray(v)){if(y in e.arrayKeywords)for(var g=0;g<v.length;g++)t(n,o,s,v[g],a+"/"+y+"/"+g,c,a,y,i,g)}else if(y in e.propsKeywords){if(v&&typeof v=="object")for(var d in v)t(n,o,s,v[d],a+"/"+y+"/"+r(d),c,a,y,i,d)}else(y in e.keywords||n.allKeys&&!(y in e.skipKeywords))&&t(n,o,s,v,a+"/"+y,c,a,y,i)}s(i,a,c,f,l,p,b)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return ss.exports}var va;function Ao(){if(va)return Ce;va=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.getSchemaRefs=Ce.resolveUrl=Ce.normalizeId=Ce._getFullPath=Ce.getFullPath=Ce.inlineRef=void 0;const e=le(),t=No(),r=Yh(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(g,d=!0){return typeof g=="boolean"?!0:d===!0?!i(g):d?a(g)<=d:!1}Ce.inlineRef=o;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(g){for(const d in g){if(s.has(d))return!0;const m=g[d];if(Array.isArray(m)&&m.some(i)||typeof m=="object"&&i(m))return!0}return!1}function a(g){let d=0;for(const m in g){if(m==="$ref")return 1/0;if(d++,!n.has(m)&&(typeof g[m]=="object"&&(0,e.eachItem)(g[m],u=>d+=a(u)),d===1/0))return 1/0}return d}function c(g,d="",m){m!==!1&&(d=p(d));const u=g.parse(d);return f(g,u)}Ce.getFullPath=c;function f(g,d){return g.serialize(d).split("#")[0]+"#"}Ce._getFullPath=f;const l=/#\/?$/;function p(g){return g?g.replace(l,""):""}Ce.normalizeId=p;function b(g,d,m){return m=p(m),g.resolve(d,m)}Ce.resolveUrl=b;const y=/^[a-z_][-a-z0-9._]*$/i;function v(g,d){if(typeof g=="boolean")return{};const{schemaId:m,uriResolver:u}=this.opts,h=p(g[m]||d),_={"":h},$=c(u,h,!1),k={},S=new Set;return r(g,{allKeys:!0},(q,M,L,D)=>{if(D===void 0)return;const V=$+M;let W=_[D];typeof q[m]=="string"&&(W=Q.call(this,q[m])),Z.call(this,q.$anchor),Z.call(this,q.$dynamicAnchor),_[M]=W;function Q(B){const ee=this.opts.uriResolver.resolve;if(B=p(W?ee(W,B):B),S.has(B))throw O(B);S.add(B);let z=this.refs[B];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?P(q,z.schema,B):B!==p(V)&&(B[0]==="#"?(P(q,k[B],B),k[B]=q):this.refs[B]=V),B}function Z(B){if(typeof B=="string"){if(!y.test(B))throw new Error(`invalid anchor "${B}"`);Q.call(this,`#${B}`)}}}),k;function P(q,M,L){if(M!==void 0&&!t(q,M))throw O(L)}function O(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return Ce.getSchemaRefs=v,Ce}var $a;function Io(){if($a)return Je;$a=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.getData=Je.KeywordCxt=Je.validateFunctionCode=void 0;const e=Bh(),t=ho(),r=df(),n=ho(),o=Gh(),s=Jh(),i=Xh(),a=ie(),c=ft(),f=Ao(),l=le(),p=To();function b(x){if($(x)&&(S(x),_(x))){d(x);return}y(x,()=>(0,e.topBoolOrEmptySchema)(x))}Je.validateFunctionCode=b;function y({gen:x,validateName:j,schema:N,schemaEnv:F,opts:H},G){H.code.es5?x.func(j,(0,a._)`${c.default.data}, ${c.default.valCxt}`,F.$async,()=>{x.code((0,a._)`"use strict"; ${u(N,H)}`),g(x,H),x.code(G)}):x.func(j,(0,a._)`${c.default.data}, ${v(H)}`,F.$async,()=>x.code(u(N,H)).code(G))}function v(x){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${x.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function g(x,j){x.if(c.default.valCxt,()=>{x.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),x.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),x.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),x.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),j.dynamicRef&&x.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{x.var(c.default.instancePath,(0,a._)`""`),x.var(c.default.parentData,(0,a._)`undefined`),x.var(c.default.parentDataProperty,(0,a._)`undefined`),x.var(c.default.rootData,c.default.data),j.dynamicRef&&x.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function d(x){const{schema:j,opts:N,gen:F}=x;y(x,()=>{N.$comment&&j.$comment&&D(x),q(x),F.let(c.default.vErrors,null),F.let(c.default.errors,0),N.unevaluated&&m(x),P(x),V(x)})}function m(x){const{gen:j,validateName:N}=x;x.evaluated=j.const("evaluated",(0,a._)`${N}.evaluated`),j.if((0,a._)`${x.evaluated}.dynamicProps`,()=>j.assign((0,a._)`${x.evaluated}.props`,(0,a._)`undefined`)),j.if((0,a._)`${x.evaluated}.dynamicItems`,()=>j.assign((0,a._)`${x.evaluated}.items`,(0,a._)`undefined`))}function u(x,j){const N=typeof x=="object"&&x[j.schemaId];return N&&(j.code.source||j.code.process)?(0,a._)`/*# sourceURL=${N} */`:a.nil}function h(x,j){if($(x)&&(S(x),_(x))){k(x,j);return}(0,e.boolOrEmptySchema)(x,j)}function _({schema:x,self:j}){if(typeof x=="boolean")return!x;for(const N in x)if(j.RULES.all[N])return!0;return!1}function $(x){return typeof x.schema!="boolean"}function k(x,j){const{schema:N,gen:F,opts:H}=x;H.$comment&&N.$comment&&D(x),M(x),L(x);const G=F.const("_errs",c.default.errors);P(x,G),F.var(j,(0,a._)`${G} === ${c.default.errors}`)}function S(x){(0,l.checkUnknownRules)(x),O(x)}function P(x,j){if(x.opts.jtd)return Q(x,[],!1,j);const N=(0,t.getSchemaTypes)(x.schema),F=(0,t.coerceAndCheckDataType)(x,N);Q(x,N,!F,j)}function O(x){const{schema:j,errSchemaPath:N,opts:F,self:H}=x;j.$ref&&F.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(j,H.RULES)&&H.logger.warn(`$ref: keywords ignored in schema at path "${N}"`)}function q(x){const{schema:j,opts:N}=x;j.default!==void 0&&N.useDefaults&&N.strictSchema&&(0,l.checkStrictMode)(x,"default is ignored in the schema root")}function M(x){const j=x.schema[x.opts.schemaId];j&&(x.baseId=(0,f.resolveUrl)(x.opts.uriResolver,x.baseId,j))}function L(x){if(x.schema.$async&&!x.schemaEnv.$async)throw new Error("async schema in sync schema")}function D({gen:x,schemaEnv:j,schema:N,errSchemaPath:F,opts:H}){const G=N.$comment;if(H.$comment===!0)x.code((0,a._)`${c.default.self}.logger.log(${G})`);else if(typeof H.$comment=="function"){const ae=(0,a.str)`${F}/$comment`,ye=x.scopeValue("root",{ref:j.root});x.code((0,a._)`${c.default.self}.opts.$comment(${G}, ${ae}, ${ye}.schema)`)}}function V(x){const{gen:j,schemaEnv:N,validateName:F,ValidationError:H,opts:G}=x;N.$async?j.if((0,a._)`${c.default.errors} === 0`,()=>j.return(c.default.data),()=>j.throw((0,a._)`new ${H}(${c.default.vErrors})`)):(j.assign((0,a._)`${F}.errors`,c.default.vErrors),G.unevaluated&&W(x),j.return((0,a._)`${c.default.errors} === 0`))}function W({gen:x,evaluated:j,props:N,items:F}){N instanceof a.Name&&x.assign((0,a._)`${j}.props`,N),F instanceof a.Name&&x.assign((0,a._)`${j}.items`,F)}function Q(x,j,N,F){const{gen:H,schema:G,data:ae,allErrors:ye,opts:fe,self:de}=x,{RULES:ce}=de;if(G.$ref&&(fe.ignoreKeywordsWithRef||!(0,l.schemaHasRulesButRef)(G,ce))){H.block(()=>U(x,"$ref",ce.all.$ref.definition));return}fe.jtd||B(x,j),H.block(()=>{for(const me of ce.rules)Te(me);Te(ce.post)});function Te(me){(0,r.shouldUseGroup)(G,me)&&(me.type?(H.if((0,n.checkDataType)(me.type,ae,fe.strictNumbers)),Z(x,me),j.length===1&&j[0]===me.type&&N&&(H.else(),(0,n.reportTypeError)(x)),H.endIf()):Z(x,me),ye||H.if((0,a._)`${c.default.errors} === ${F||0}`))}}function Z(x,j){const{gen:N,schema:F,opts:{useDefaults:H}}=x;H&&(0,o.assignDefaults)(x,j.type),N.block(()=>{for(const G of j.rules)(0,r.shouldUseRule)(F,G)&&U(x,G.keyword,G.definition,j.type)})}function B(x,j){x.schemaEnv.meta||!x.opts.strictTypes||(ee(x,j),x.opts.allowUnionTypes||z(x,j),C(x,x.dataTypes))}function ee(x,j){if(j.length){if(!x.dataTypes.length){x.dataTypes=j;return}j.forEach(N=>{R(x.dataTypes,N)||E(x,`type "${N}" not allowed by context "${x.dataTypes.join(",")}"`)}),w(x,j)}}function z(x,j){j.length>1&&!(j.length===2&&j.includes("null"))&&E(x,"use allowUnionTypes to allow union type keyword")}function C(x,j){const N=x.self.RULES.all;for(const F in N){const H=N[F];if(typeof H=="object"&&(0,r.shouldUseRule)(x.schema,H)){const{type:G}=H.definition;G.length&&!G.some(ae=>A(j,ae))&&E(x,`missing type "${G.join(",")}" for keyword "${F}"`)}}}function A(x,j){return x.includes(j)||j==="number"&&x.includes("integer")}function R(x,j){return x.includes(j)||j==="integer"&&x.includes("number")}function w(x,j){const N=[];for(const F of x.dataTypes)R(j,F)?N.push(F):j.includes("integer")&&F==="number"&&N.push("integer");x.dataTypes=N}function E(x,j){const N=x.schemaEnv.baseId+x.errSchemaPath;j+=` at "${N}" (strictTypes)`,(0,l.checkStrictMode)(x,j,x.opts.strictTypes)}class T{constructor(j,N,F){if((0,s.validateKeywordUsage)(j,N,F),this.gen=j.gen,this.allErrors=j.allErrors,this.keyword=F,this.data=j.data,this.schema=j.schema[F],this.$data=N.$data&&j.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(j,this.schema,F,this.$data),this.schemaType=N.schemaType,this.parentSchema=j.schema,this.params={},this.it=j,this.def=N,this.$data)this.schemaCode=j.gen.const("vSchema",J(this.$data,j));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,N.schemaType,N.allowUndefined))throw new Error(`${F} value must be ${JSON.stringify(N.schemaType)}`);("code"in N?N.trackErrors:N.errors!==!1)&&(this.errsCount=j.gen.const("_errs",c.default.errors))}result(j,N,F){this.failResult((0,a.not)(j),N,F)}failResult(j,N,F){this.gen.if(j),F?F():this.error(),N?(this.gen.else(),N(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(j,N){this.failResult((0,a.not)(j),void 0,N)}fail(j){if(j===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(j),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(j){if(!this.$data)return this.fail(j);const{schemaCode:N}=this;this.fail((0,a._)`${N} !== undefined && (${(0,a.or)(this.invalid$data(),j)})`)}error(j,N,F){if(N){this.setParams(N),this._error(j,F),this.setParams({});return}this._error(j,F)}_error(j,N){(j?p.reportExtraError:p.reportError)(this,this.def.error,N)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(j){this.allErrors||this.gen.if(j)}setParams(j,N){N?Object.assign(this.params,j):this.params=j}block$data(j,N,F=a.nil){this.gen.block(()=>{this.check$data(j,F),N()})}check$data(j=a.nil,N=a.nil){if(!this.$data)return;const{gen:F,schemaCode:H,schemaType:G,def:ae}=this;F.if((0,a.or)((0,a._)`${H} === undefined`,N)),j!==a.nil&&F.assign(j,!0),(G.length||ae.validateSchema)&&(F.elseIf(this.invalid$data()),this.$dataError(),j!==a.nil&&F.assign(j,!1)),F.else()}invalid$data(){const{gen:j,schemaCode:N,schemaType:F,def:H,it:G}=this;return(0,a.or)(ae(),ye());function ae(){if(F.length){if(!(N instanceof a.Name))throw new Error("ajv implementation error");const fe=Array.isArray(F)?F:[F];return(0,a._)`${(0,n.checkDataTypes)(fe,N,G.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function ye(){if(H.validateSchema){const fe=j.scopeValue("validate$data",{ref:H.validateSchema});return(0,a._)`!${fe}(${N})`}return a.nil}}subschema(j,N){const F=(0,i.getSubschema)(this.it,j);(0,i.extendSubschemaData)(F,this.it,j),(0,i.extendSubschemaMode)(F,j);const H={...this.it,...F,items:void 0,props:void 0};return h(H,N),H}mergeEvaluated(j,N){const{it:F,gen:H}=this;F.opts.unevaluated&&(F.props!==!0&&j.props!==void 0&&(F.props=l.mergeEvaluated.props(H,j.props,F.props,N)),F.items!==!0&&j.items!==void 0&&(F.items=l.mergeEvaluated.items(H,j.items,F.items,N)))}mergeValidEvaluated(j,N){const{it:F,gen:H}=this;if(F.opts.unevaluated&&(F.props!==!0||F.items!==!0))return H.if(N,()=>this.mergeEvaluated(j,a.Name)),!0}}Je.KeywordCxt=T;function U(x,j,N,F){const H=new T(x,N,j);"code"in N?N.code(H,F):H.$data&&N.validate?(0,s.funcKeywordCode)(H,N):"macro"in N?(0,s.macroKeywordCode)(H,N):(N.compile||N.validate)&&(0,s.funcKeywordCode)(H,N)}const K=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function J(x,{dataLevel:j,dataNames:N,dataPathArr:F}){let H,G;if(x==="")return c.default.rootData;if(x[0]==="/"){if(!K.test(x))throw new Error(`Invalid JSON-pointer: ${x}`);H=x,G=c.default.rootData}else{const de=X.exec(x);if(!de)throw new Error(`Invalid JSON-pointer: ${x}`);const ce=+de[1];if(H=de[2],H==="#"){if(ce>=j)throw new Error(fe("property/index",ce));return F[j-ce]}if(ce>j)throw new Error(fe("data",ce));if(G=N[j-ce],!H)return G}let ae=G;const ye=H.split("/");for(const de of ye)de&&(G=(0,a._)`${G}${(0,a.getProperty)((0,l.unescapeJsonPointer)(de))}`,ae=(0,a._)`${ae} && ${G}`);return ae;function fe(de,ce){return`Cannot access ${de} ${ce} levels up, current level is ${j}`}}return Je.getData=J,Je}var Pr={},wa;function li(){if(wa)return Pr;wa=1,Object.defineProperty(Pr,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Pr.default=e,Pr}var Cr={},_a;function Mo(){if(_a)return Cr;_a=1,Object.defineProperty(Cr,"__esModule",{value:!0});const e=Ao();class t extends Error{constructor(n,o,s,i){super(i||`can't resolve reference ${s} from id ${o}`),this.missingRef=(0,e.resolveUrl)(n,o,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return Cr.default=t,Cr}var Ne={},ka;function ui(){if(ka)return Ne;ka=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.resolveSchema=Ne.getCompilingSchema=Ne.resolveRef=Ne.compileSchema=Ne.SchemaEnv=void 0;const e=ie(),t=li(),r=ft(),n=Ao(),o=le(),s=Io();class i{constructor(m){var u;this.refs={},this.dynamicAnchors={};let h;typeof m.schema=="object"&&(h=m.schema),this.schema=m.schema,this.schemaId=m.schemaId,this.root=m.root||this,this.baseId=(u=m.baseId)!==null&&u!==void 0?u:(0,n.normalizeId)(h?.[m.schemaId||"$id"]),this.schemaPath=m.schemaPath,this.localRefs=m.localRefs,this.meta=m.meta,this.$async=h?.$async,this.refs={}}}Ne.SchemaEnv=i;function a(d){const m=l.call(this,d);if(m)return m;const u=(0,n.getFullPath)(this.opts.uriResolver,d.root.baseId),{es5:h,lines:_}=this.opts.code,{ownProperties:$}=this.opts,k=new e.CodeGen(this.scope,{es5:h,lines:_,ownProperties:$});let S;d.$async&&(S=k.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=k.scopeName("validate");d.validateName=P;const O={gen:k,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:k.scopeValue("schema",this.opts.code.source===!0?{ref:d.schema,code:(0,e.stringify)(d.schema)}:{ref:d.schema}),validateName:P,ValidationError:S,schema:d.schema,schemaEnv:d,rootId:u,baseId:d.baseId||u,schemaPath:e.nil,errSchemaPath:d.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(d),(0,s.validateFunctionCode)(O),k.optimize(this.opts.code.optimize);const M=k.toString();q=`${k.scopeRefs(r.default.scope)}return ${M}`,this.opts.code.process&&(q=this.opts.code.process(q,d));const D=new Function(`${r.default.self}`,`${r.default.scope}`,q)(this,this.scope.get());if(this.scope.value(P,{ref:D}),D.errors=null,D.schema=d.schema,D.schemaEnv=d,d.$async&&(D.$async=!0),this.opts.code.source===!0&&(D.source={validateName:P,validateCode:M,scopeValues:k._values}),this.opts.unevaluated){const{props:V,items:W}=O;D.evaluated={props:V instanceof e.Name?void 0:V,items:W instanceof e.Name?void 0:W,dynamicProps:V instanceof e.Name,dynamicItems:W instanceof e.Name},D.source&&(D.source.evaluated=(0,e.stringify)(D.evaluated))}return d.validate=D,d}catch(M){throw delete d.validate,delete d.validateName,q&&this.logger.error("Error compiling schema, function code:",q),M}finally{this._compilations.delete(d)}}Ne.compileSchema=a;function c(d,m,u){var h;u=(0,n.resolveUrl)(this.opts.uriResolver,m,u);const _=d.refs[u];if(_)return _;let $=b.call(this,d,u);if($===void 0){const k=(h=d.localRefs)===null||h===void 0?void 0:h[u],{schemaId:S}=this.opts;k&&($=new i({schema:k,schemaId:S,root:d,baseId:m}))}if($!==void 0)return d.refs[u]=f.call(this,$)}Ne.resolveRef=c;function f(d){return(0,n.inlineRef)(d.schema,this.opts.inlineRefs)?d.schema:d.validate?d:a.call(this,d)}function l(d){for(const m of this._compilations)if(p(m,d))return m}Ne.getCompilingSchema=l;function p(d,m){return d.schema===m.schema&&d.root===m.root&&d.baseId===m.baseId}function b(d,m){let u;for(;typeof(u=this.refs[m])=="string";)m=u;return u||this.schemas[m]||y.call(this,d,m)}function y(d,m){const u=this.opts.uriResolver.parse(m),h=(0,n._getFullPath)(this.opts.uriResolver,u);let _=(0,n.getFullPath)(this.opts.uriResolver,d.baseId,void 0);if(Object.keys(d.schema).length>0&&h===_)return g.call(this,u,d);const $=(0,n.normalizeId)(h),k=this.refs[$]||this.schemas[$];if(typeof k=="string"){const S=y.call(this,d,k);return typeof S?.schema!="object"?void 0:g.call(this,u,S)}if(typeof k?.schema=="object"){if(k.validate||a.call(this,k),$===(0,n.normalizeId)(m)){const{schema:S}=k,{schemaId:P}=this.opts,O=S[P];return O&&(_=(0,n.resolveUrl)(this.opts.uriResolver,_,O)),new i({schema:S,schemaId:P,root:d,baseId:_})}return g.call(this,u,k)}}Ne.resolveSchema=y;const v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(d,{baseId:m,schema:u,root:h}){var _;if(((_=d.fragment)===null||_===void 0?void 0:_[0])!=="/")return;for(const S of d.fragment.slice(1).split("/")){if(typeof u=="boolean")return;const P=u[(0,o.unescapeFragment)(S)];if(P===void 0)return;u=P;const O=typeof u=="object"&&u[this.opts.schemaId];!v.has(S)&&O&&(m=(0,n.resolveUrl)(this.opts.uriResolver,m,O))}let $;if(typeof u!="boolean"&&u.$ref&&!(0,o.schemaHasRulesButRef)(u,this.RULES)){const S=(0,n.resolveUrl)(this.opts.uriResolver,m,u.$ref);$=y.call(this,h,S)}const{schemaId:k}=this.opts;if($=$||new i({schema:u,schemaId:k,root:h,baseId:m}),$.schema!==$.root.schema)return $}return Ne}const Qh="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Zh="Meta-schema for $data reference (JSON AnySchema extension proposal)",em="object",tm=["$data"],rm={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},nm=!1,om={$id:Qh,description:Zh,type:em,required:tm,properties:rm,additionalProperties:nm};var jr={},Jt={exports:{}},is,Sa;function sm(){return Sa||(Sa=1,is={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),is}var as,Ea;function im(){if(Ea)return as;Ea=1;const{HEX:e}=sm(),t=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function r(g){if(a(g,".")<3)return{host:g,isIPV4:!1};const d=g.match(t)||[],[m]=d;return m?{host:i(m,"."),isIPV4:!0}:{host:g,isIPV4:!1}}function n(g,d=!1){let m="",u=!0;for(const h of g){if(e[h]===void 0)return;h!=="0"&&u===!0&&(u=!1),u||(m+=h)}return d&&m.length===0&&(m="0"),m}function o(g){let d=0;const m={error:!1,address:"",zone:""},u=[],h=[];let _=!1,$=!1,k=!1;function S(){if(h.length){if(_===!1){const P=n(h);if(P!==void 0)u.push(P);else return m.error=!0,!1}h.length=0}return!0}for(let P=0;P<g.length;P++){const O=g[P];if(!(O==="["||O==="]"))if(O===":"){if($===!0&&(k=!0),!S())break;if(d++,u.push(":"),d>7){m.error=!0;break}P-1>=0&&g[P-1]===":"&&($=!0);continue}else if(O==="%"){if(!S())break;_=!0}else{h.push(O);continue}}return h.length&&(_?m.zone=h.join(""):k?u.push(h.join("")):u.push(n(h))),m.address=u.join(""),m}function s(g){if(a(g,":")<2)return{host:g,isIPV6:!1};const d=o(g);if(d.error)return{host:g,isIPV6:!1};{let m=d.address,u=d.address;return d.zone&&(m+="%"+d.zone,u+="%25"+d.zone),{host:m,escapedHost:u,isIPV6:!0}}}function i(g,d){let m="",u=!0;const h=g.length;for(let _=0;_<h;_++){const $=g[_];$==="0"&&u?(_+1<=h&&g[_+1]===d||_+1===h)&&(m+=$,u=!1):($===d?u=!0:u=!1,m+=$)}return m}function a(g,d){let m=0;for(let u=0;u<g.length;u++)g[u]===d&&m++;return m}const c=/^\.\.?\//u,f=/^\/\.(?:\/|$)/u,l=/^\/\.\.(?:\/|$)/u,p=/^\/?(?:.|\n)*?(?=\/|$)/u;function b(g){const d=[];for(;g.length;)if(g.match(c))g=g.replace(c,"");else if(g.match(f))g=g.replace(f,"/");else if(g.match(l))g=g.replace(l,"/"),d.pop();else if(g==="."||g==="..")g="";else{const m=g.match(p);if(m){const u=m[0];g=g.slice(u.length),d.push(u)}else throw new Error("Unexpected dot segment condition")}return d.join("")}function y(g,d){const m=d!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=m(g.scheme)),g.userinfo!==void 0&&(g.userinfo=m(g.userinfo)),g.host!==void 0&&(g.host=m(g.host)),g.path!==void 0&&(g.path=m(g.path)),g.query!==void 0&&(g.query=m(g.query)),g.fragment!==void 0&&(g.fragment=m(g.fragment)),g}function v(g){const d=[];if(g.userinfo!==void 0&&(d.push(g.userinfo),d.push("@")),g.host!==void 0){let m=unescape(g.host);const u=r(m);if(u.isIPV4)m=u.host;else{const h=s(u.host);h.isIPV6===!0?m=`[${h.escapedHost}]`:m=g.host}d.push(m)}return(typeof g.port=="number"||typeof g.port=="string")&&(d.push(":"),d.push(String(g.port))),d.length?d.join(""):void 0}return as={recomposeAuthority:v,normalizeComponentEncoding:y,removeDotSegments:b,normalizeIPv4:r,normalizeIPv6:s,stringArrayToHexStripped:n},as}var cs,xa;function am(){if(xa)return cs;xa=1;const e=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(u){return typeof u.secure=="boolean"?u.secure:String(u.scheme).toLowerCase()==="wss"}function n(u){return u.host||(u.error=u.error||"HTTP URIs must have a host."),u}function o(u){const h=String(u.scheme).toLowerCase()==="https";return(u.port===(h?443:80)||u.port==="")&&(u.port=void 0),u.path||(u.path="/"),u}function s(u){return u.secure=r(u),u.resourceName=(u.path||"/")+(u.query?"?"+u.query:""),u.path=void 0,u.query=void 0,u}function i(u){if((u.port===(r(u)?443:80)||u.port==="")&&(u.port=void 0),typeof u.secure=="boolean"&&(u.scheme=u.secure?"wss":"ws",u.secure=void 0),u.resourceName){const[h,_]=u.resourceName.split("?");u.path=h&&h!=="/"?h:void 0,u.query=_,u.resourceName=void 0}return u.fragment=void 0,u}function a(u,h){if(!u.path)return u.error="URN can not be parsed",u;const _=u.path.match(t);if(_){const $=h.scheme||u.scheme||"urn";u.nid=_[1].toLowerCase(),u.nss=_[2];const k=`${$}:${h.nid||u.nid}`,S=m[k];u.path=void 0,S&&(u=S.parse(u,h))}else u.error=u.error||"URN can not be parsed.";return u}function c(u,h){const _=h.scheme||u.scheme||"urn",$=u.nid.toLowerCase(),k=`${_}:${h.nid||$}`,S=m[k];S&&(u=S.serialize(u,h));const P=u,O=u.nss;return P.path=`${$||h.nid}:${O}`,h.skipEscape=!0,P}function f(u,h){const _=u;return _.uuid=_.nss,_.nss=void 0,!h.tolerant&&(!_.uuid||!e.test(_.uuid))&&(_.error=_.error||"UUID is not valid."),_}function l(u){const h=u;return h.nss=(u.uuid||"").toLowerCase(),h}const p={scheme:"http",domainHost:!0,parse:n,serialize:o},b={scheme:"https",domainHost:p.domainHost,parse:n,serialize:o},y={scheme:"ws",domainHost:!0,parse:s,serialize:i},v={scheme:"wss",domainHost:y.domainHost,parse:y.parse,serialize:y.serialize},m={http:p,https:b,ws:y,wss:v,urn:{scheme:"urn",parse:a,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:l,skipNormalize:!0}};return cs=m,cs}var Pa;function pf(){if(Pa)return Jt.exports;Pa=1;const{normalizeIPv6:e,normalizeIPv4:t,removeDotSegments:r,recomposeAuthority:n,normalizeComponentEncoding:o}=im(),s=am();function i(d,m){return typeof d=="string"?d=l(v(d,m),m):typeof d=="object"&&(d=v(l(d,m),m)),d}function a(d,m,u){const h=Object.assign({scheme:"null"},u),_=c(v(d,h),v(m,h),h,!0);return l(_,{...h,skipEscape:!0})}function c(d,m,u,h){const _={};return h||(d=v(l(d,u),u),m=v(l(m,u),u)),u=u||{},!u.tolerant&&m.scheme?(_.scheme=m.scheme,_.userinfo=m.userinfo,_.host=m.host,_.port=m.port,_.path=r(m.path||""),_.query=m.query):(m.userinfo!==void 0||m.host!==void 0||m.port!==void 0?(_.userinfo=m.userinfo,_.host=m.host,_.port=m.port,_.path=r(m.path||""),_.query=m.query):(m.path?(m.path.charAt(0)==="/"?_.path=r(m.path):((d.userinfo!==void 0||d.host!==void 0||d.port!==void 0)&&!d.path?_.path="/"+m.path:d.path?_.path=d.path.slice(0,d.path.lastIndexOf("/")+1)+m.path:_.path=m.path,_.path=r(_.path)),_.query=m.query):(_.path=d.path,m.query!==void 0?_.query=m.query:_.query=d.query),_.userinfo=d.userinfo,_.host=d.host,_.port=d.port),_.scheme=d.scheme),_.fragment=m.fragment,_}function f(d,m,u){return typeof d=="string"?(d=unescape(d),d=l(o(v(d,u),!0),{...u,skipEscape:!0})):typeof d=="object"&&(d=l(o(d,!0),{...u,skipEscape:!0})),typeof m=="string"?(m=unescape(m),m=l(o(v(m,u),!0),{...u,skipEscape:!0})):typeof m=="object"&&(m=l(o(m,!0),{...u,skipEscape:!0})),d.toLowerCase()===m.toLowerCase()}function l(d,m){const u={host:d.host,scheme:d.scheme,userinfo:d.userinfo,port:d.port,path:d.path,query:d.query,nid:d.nid,nss:d.nss,uuid:d.uuid,fragment:d.fragment,reference:d.reference,resourceName:d.resourceName,secure:d.secure,error:""},h=Object.assign({},m),_=[],$=s[(h.scheme||u.scheme||"").toLowerCase()];$&&$.serialize&&$.serialize(u,h),u.path!==void 0&&(h.skipEscape?u.path=unescape(u.path):(u.path=escape(u.path),u.scheme!==void 0&&(u.path=u.path.split("%3A").join(":")))),h.reference!=="suffix"&&u.scheme&&_.push(u.scheme,":");const k=n(u);if(k!==void 0&&(h.reference!=="suffix"&&_.push("//"),_.push(k),u.path&&u.path.charAt(0)!=="/"&&_.push("/")),u.path!==void 0){let S=u.path;!h.absolutePath&&(!$||!$.absolutePath)&&(S=r(S)),k===void 0&&(S=S.replace(/^\/\//u,"/%2F")),_.push(S)}return u.query!==void 0&&_.push("?",u.query),u.fragment!==void 0&&_.push("#",u.fragment),_.join("")}const p=Array.from({length:127},(d,m)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(m)));function b(d){let m=0;for(let u=0,h=d.length;u<h;++u)if(m=d.charCodeAt(u),m>126||p[m])return!0;return!1}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(d,m){const u=Object.assign({},m),h={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},_=d.indexOf("%")!==-1;let $=!1;u.reference==="suffix"&&(d=(u.scheme?u.scheme+":":"")+"//"+d);const k=d.match(y);if(k){if(h.scheme=k[1],h.userinfo=k[3],h.host=k[4],h.port=parseInt(k[5],10),h.path=k[6]||"",h.query=k[7],h.fragment=k[8],isNaN(h.port)&&(h.port=k[5]),h.host){const P=t(h.host);if(P.isIPV4===!1){const O=e(P.host);h.host=O.host.toLowerCase(),$=O.isIPV6}else h.host=P.host,$=!0}h.scheme===void 0&&h.userinfo===void 0&&h.host===void 0&&h.port===void 0&&h.query===void 0&&!h.path?h.reference="same-document":h.scheme===void 0?h.reference="relative":h.fragment===void 0?h.reference="absolute":h.reference="uri",u.reference&&u.reference!=="suffix"&&u.reference!==h.reference&&(h.error=h.error||"URI is not a "+u.reference+" reference.");const S=s[(u.scheme||h.scheme||"").toLowerCase()];if(!u.unicodeSupport&&(!S||!S.unicodeSupport)&&h.host&&(u.domainHost||S&&S.domainHost)&&$===!1&&b(h.host))try{h.host=URL.domainToASCII(h.host.toLowerCase())}catch(P){h.error=h.error||"Host's domain name can not be converted to ASCII: "+P}(!S||S&&!S.skipNormalize)&&(_&&h.scheme!==void 0&&(h.scheme=unescape(h.scheme)),_&&h.host!==void 0&&(h.host=unescape(h.host)),h.path&&(h.path=escape(unescape(h.path))),h.fragment&&(h.fragment=encodeURI(decodeURIComponent(h.fragment)))),S&&S.parse&&S.parse(h,u)}else h.error=h.error||"URI can not be parsed.";return h}const g={SCHEMES:s,normalize:i,resolve:a,resolveComponents:c,equal:f,serialize:l,parse:v};return Jt.exports=g,Jt.exports.default=g,Jt.exports.fastUri=g,Jt.exports}var Ca;function cm(){if(Ca)return jr;Ca=1,Object.defineProperty(jr,"__esModule",{value:!0});const e=pf();return e.code='require("ajv/dist/runtime/uri").default',jr.default=e,jr}var ja;function lm(){return ja||(ja=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Io();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ie();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=li(),o=Mo(),s=ff(),i=ui(),a=ie(),c=Ao(),f=ho(),l=le(),p=om,b=cm(),y=(z,C)=>new RegExp(z,C);y.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),d={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},m={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},u=200;function h(z){var C,A,R,w,E,T,U,K,X,J,x,j,N,F,H,G,ae,ye,fe,de,ce,Te,me,pt,ht;const qe=z.strict,mt=(C=z.code)===null||C===void 0?void 0:C.optimize,Kt=mt===!0||mt===void 0?1:mt||0,Wt=(R=(A=z.code)===null||A===void 0?void 0:A.regExp)!==null&&R!==void 0?R:y,Bo=(w=z.uriResolver)!==null&&w!==void 0?w:b.default;return{strictSchema:(T=(E=z.strictSchema)!==null&&E!==void 0?E:qe)!==null&&T!==void 0?T:!0,strictNumbers:(K=(U=z.strictNumbers)!==null&&U!==void 0?U:qe)!==null&&K!==void 0?K:!0,strictTypes:(J=(X=z.strictTypes)!==null&&X!==void 0?X:qe)!==null&&J!==void 0?J:"log",strictTuples:(j=(x=z.strictTuples)!==null&&x!==void 0?x:qe)!==null&&j!==void 0?j:"log",strictRequired:(F=(N=z.strictRequired)!==null&&N!==void 0?N:qe)!==null&&F!==void 0?F:!1,code:z.code?{...z.code,optimize:Kt,regExp:Wt}:{optimize:Kt,regExp:Wt},loopRequired:(H=z.loopRequired)!==null&&H!==void 0?H:u,loopEnum:(G=z.loopEnum)!==null&&G!==void 0?G:u,meta:(ae=z.meta)!==null&&ae!==void 0?ae:!0,messages:(ye=z.messages)!==null&&ye!==void 0?ye:!0,inlineRefs:(fe=z.inlineRefs)!==null&&fe!==void 0?fe:!0,schemaId:(de=z.schemaId)!==null&&de!==void 0?de:"$id",addUsedSchema:(ce=z.addUsedSchema)!==null&&ce!==void 0?ce:!0,validateSchema:(Te=z.validateSchema)!==null&&Te!==void 0?Te:!0,validateFormats:(me=z.validateFormats)!==null&&me!==void 0?me:!0,unicodeRegExp:(pt=z.unicodeRegExp)!==null&&pt!==void 0?pt:!0,int32range:(ht=z.int32range)!==null&&ht!==void 0?ht:!0,uriResolver:Bo}}class _{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,...h(C)};const{es5:A,lines:R}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:A,lines:R}),this.logger=L(C.logger);const w=C.validateFormats;C.validateFormats=!1,this.RULES=(0,s.getRules)(),$.call(this,d,C,"NOT SUPPORTED"),$.call(this,m,C,"DEPRECATED","warn"),this._metaOpts=q.call(this),C.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&O.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),S.call(this),C.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:A,schemaId:R}=this.opts;let w=p;R==="id"&&(w={...p},w.id=w.$id,delete w.$id),A&&C&&this.addMetaSchema(w,w[R],!1)}defaultMeta(){const{meta:C,schemaId:A}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[A]||C:void 0}validate(C,A){let R;if(typeof C=="string"){if(R=this.getSchema(C),!R)throw new Error(`no schema with key or ref "${C}"`)}else R=this.compile(C);const w=R(A);return"$async"in R||(this.errors=R.errors),w}compile(C,A){const R=this._addSchema(C,A);return R.validate||this._compileSchemaEnv(R)}compileAsync(C,A){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:R}=this.opts;return w.call(this,C,A);async function w(J,x){await E.call(this,J.$schema);const j=this._addSchema(J,x);return j.validate||T.call(this,j)}async function E(J){J&&!this.getSchema(J)&&await w.call(this,{$ref:J},!0)}async function T(J){try{return this._compileSchemaEnv(J)}catch(x){if(!(x instanceof o.default))throw x;return U.call(this,x),await K.call(this,x.missingSchema),T.call(this,J)}}function U({missingSchema:J,missingRef:x}){if(this.refs[J])throw new Error(`AnySchema ${J} is loaded but ${x} cannot be resolved`)}async function K(J){const x=await X.call(this,J);this.refs[J]||await E.call(this,x.$schema),this.refs[J]||this.addSchema(x,J,A)}async function X(J){const x=this._loading[J];if(x)return x;try{return await(this._loading[J]=R(J))}finally{delete this._loading[J]}}}addSchema(C,A,R,w=this.opts.validateSchema){if(Array.isArray(C)){for(const T of C)this.addSchema(T,void 0,R,w);return this}let E;if(typeof C=="object"){const{schemaId:T}=this.opts;if(E=C[T],E!==void 0&&typeof E!="string")throw new Error(`schema ${T} must be string`)}return A=(0,c.normalizeId)(A||E),this._checkUnique(A),this.schemas[A]=this._addSchema(C,R,A,w,!0),this}addMetaSchema(C,A,R=this.opts.validateSchema){return this.addSchema(C,A,!0,R),this}validateSchema(C,A){if(typeof C=="boolean")return!0;let R;if(R=C.$schema,R!==void 0&&typeof R!="string")throw new Error("$schema must be a string");if(R=R||this.opts.defaultMeta||this.defaultMeta(),!R)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(R,C);if(!w&&A){const E="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(E);else throw new Error(E)}return w}getSchema(C){let A;for(;typeof(A=k.call(this,C))=="string";)C=A;if(A===void 0){const{schemaId:R}=this.opts,w=new i.SchemaEnv({schema:{},schemaId:R});if(A=i.resolveSchema.call(this,w,C),!A)return;this.refs[C]=A}return A.validate||this._compileSchemaEnv(A)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const A=k.call(this,C);return typeof A=="object"&&this._cache.delete(A.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const A=C;this._cache.delete(A);let R=C[this.opts.schemaId];return R&&(R=(0,c.normalizeId)(R),delete this.schemas[R],delete this.refs[R]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(C){for(const A of C)this.addKeyword(A);return this}addKeyword(C,A){let R;if(typeof C=="string")R=C,typeof A=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),A.keyword=R);else if(typeof C=="object"&&A===void 0){if(A=C,R=A.keyword,Array.isArray(R)&&!R.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(V.call(this,R,A),!A)return(0,l.eachItem)(R,E=>W.call(this,E)),this;Z.call(this,A);const w={...A,type:(0,f.getJSONTypes)(A.type),schemaType:(0,f.getJSONTypes)(A.schemaType)};return(0,l.eachItem)(R,w.type.length===0?E=>W.call(this,E,w):E=>w.type.forEach(T=>W.call(this,E,w,T))),this}getKeyword(C){const A=this.RULES.all[C];return typeof A=="object"?A.definition:!!A}removeKeyword(C){const{RULES:A}=this;delete A.keywords[C],delete A.all[C];for(const R of A.rules){const w=R.rules.findIndex(E=>E.keyword===C);w>=0&&R.rules.splice(w,1)}return this}addFormat(C,A){return typeof A=="string"&&(A=new RegExp(A)),this.formats[C]=A,this}errorsText(C=this.errors,{separator:A=", ",dataVar:R="data"}={}){return!C||C.length===0?"No errors":C.map(w=>`${R}${w.instancePath} ${w.message}`).reduce((w,E)=>w+A+E)}$dataMetaSchema(C,A){const R=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const w of A){const E=w.split("/").slice(1);let T=C;for(const U of E)T=T[U];for(const U in R){const K=R[U];if(typeof K!="object")continue;const{$data:X}=K.definition,J=T[U];X&&J&&(T[U]=ee(J))}}return C}_removeAllSchemas(C,A){for(const R in C){const w=C[R];(!A||A.test(R))&&(typeof w=="string"?delete C[R]:w&&!w.meta&&(this._cache.delete(w.schema),delete C[R]))}}_addSchema(C,A,R,w=this.opts.validateSchema,E=this.opts.addUsedSchema){let T;const{schemaId:U}=this.opts;if(typeof C=="object")T=C[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(C);if(K!==void 0)return K;R=(0,c.normalizeId)(T||R);const X=c.getSchemaRefs.call(this,C,R);return K=new i.SchemaEnv({schema:C,schemaId:U,meta:A,baseId:R,localRefs:X}),this._cache.set(K.schema,K),E&&!R.startsWith("#")&&(R&&this._checkUnique(R),this.refs[R]=K),w&&this.validateSchema(C,!0),K}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):i.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const A=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,C)}finally{this.opts=A}}}_.ValidationError=n.default,_.MissingRefError=o.default,e.default=_;function $(z,C,A,R="error"){for(const w in z){const E=w;E in C&&this.logger[R](`${A}: option ${w}. ${z[E]}`)}}function k(z){return z=(0,c.normalizeId)(z),this.schemas[z]||this.refs[z]}function S(){const z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(const C in z)this.addSchema(z[C],C)}function P(){for(const z in this.opts.formats){const C=this.opts.formats[z];C&&this.addFormat(z,C)}}function O(z){if(Array.isArray(z)){this.addVocabulary(z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in z){const A=z[C];A.keyword||(A.keyword=C),this.addKeyword(A)}}function q(){const z={...this.opts};for(const C of v)delete z[C];return z}const M={log(){},warn(){},error(){}};function L(z){if(z===!1)return M;if(z===void 0)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}const D=/^[a-z_$][a-z0-9_$:-]*$/i;function V(z,C){const{RULES:A}=this;if((0,l.eachItem)(z,R=>{if(A.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!D.test(R))throw new Error(`Keyword ${R} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function W(z,C,A){var R;const w=C?.post;if(A&&w)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:E}=this;let T=w?E.post:E.rules.find(({type:K})=>K===A);if(T||(T={type:A,rules:[]},E.rules.push(T)),E.keywords[z]=!0,!C)return;const U={keyword:z,definition:{...C,type:(0,f.getJSONTypes)(C.type),schemaType:(0,f.getJSONTypes)(C.schemaType)}};C.before?Q.call(this,T,U,C.before):T.rules.push(U),E.all[z]=U,(R=C.implements)===null||R===void 0||R.forEach(K=>this.addKeyword(K))}function Q(z,C,A){const R=z.rules.findIndex(w=>w.keyword===A);R>=0?z.rules.splice(R,0,C):(z.rules.push(C),this.logger.warn(`rule ${A} is not defined`))}function Z(z){let{metaSchema:C}=z;C!==void 0&&(z.$data&&this.opts.$data&&(C=ee(C)),z.validateSchema=this.compile(C,!0))}const B={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ee(z){return{anyOf:[z,B]}}}(Zo)),Zo}var Rr={},Or={},Tr={},Ra;function um(){if(Ra)return Tr;Ra=1,Object.defineProperty(Tr,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Tr.default=e,Tr}var ot={},Oa;function fm(){if(Oa)return ot;Oa=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.callRef=ot.getValidate=void 0;const e=Mo(),t=He(),r=ie(),n=ft(),o=ui(),s=le(),i={keyword:"$ref",schemaType:"string",code(f){const{gen:l,schema:p,it:b}=f,{baseId:y,schemaEnv:v,validateName:g,opts:d,self:m}=b,{root:u}=v;if((p==="#"||p==="#/")&&y===u.baseId)return _();const h=o.resolveRef.call(m,u,y,p);if(h===void 0)throw new e.default(b.opts.uriResolver,y,p);if(h instanceof o.SchemaEnv)return $(h);return k(h);function _(){if(v===u)return c(f,g,v,v.$async);const S=l.scopeValue("root",{ref:u});return c(f,(0,r._)`${S}.validate`,u,u.$async)}function $(S){const P=a(f,S);c(f,P,S,S.$async)}function k(S){const P=l.scopeValue("schema",d.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),O=l.name("valid"),q=f.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:P,errSchemaPath:p},O);f.mergeEvaluated(q),f.ok(O)}}};function a(f,l){const{gen:p}=f;return l.validate?p.scopeValue("validate",{ref:l.validate}):(0,r._)`${p.scopeValue("wrapper",{ref:l})}.validate`}ot.getValidate=a;function c(f,l,p,b){const{gen:y,it:v}=f,{allErrors:g,schemaEnv:d,opts:m}=v,u=m.passContext?n.default.this:r.nil;b?h():_();function h(){if(!d.$async)throw new Error("async schema referenced by sync schema");const S=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,t.callValidateCode)(f,l,u)}`),k(l),g||y.assign(S,!0)},P=>{y.if((0,r._)`!(${P} instanceof ${v.ValidationError})`,()=>y.throw(P)),$(P),g||y.assign(S,!1)}),f.ok(S)}function _(){f.result((0,t.callValidateCode)(f,l,u),()=>k(l),()=>$(l))}function $(S){const P=(0,r._)`${S}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${P} : ${n.default.vErrors}.concat(${P})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function k(S){var P;if(!v.opts.unevaluated)return;const O=(P=p?.validate)===null||P===void 0?void 0:P.evaluated;if(v.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(v.props=s.mergeEvaluated.props(y,O.props,v.props));else{const q=y.var("props",(0,r._)`${S}.evaluated.props`);v.props=s.mergeEvaluated.props(y,q,v.props,r.Name)}if(v.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(v.items=s.mergeEvaluated.items(y,O.items,v.items));else{const q=y.var("items",(0,r._)`${S}.evaluated.items`);v.items=s.mergeEvaluated.items(y,q,v.items,r.Name)}}}return ot.callRef=c,ot.default=i,ot}var Ta;function dm(){if(Ta)return Or;Ta=1,Object.defineProperty(Or,"__esModule",{value:!0});const e=um(),t=fm(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Or.default=r,Or}var Nr={},Ar={},Na;function pm(){if(Na)return Ar;Na=1,Object.defineProperty(Ar,"__esModule",{value:!0});const e=ie(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:s,schemaCode:i})=>(0,e.str)`must be ${r[s].okStr} ${i}`,params:({keyword:s,schemaCode:i})=>(0,e._)`{comparison: ${r[s].okStr}, limit: ${i}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{keyword:i,data:a,schemaCode:c}=s;s.fail$data((0,e._)`${a} ${r[i].fail} ${c} || isNaN(${a})`)}};return Ar.default=o,Ar}var Ir={},Aa;function hm(){if(Aa)return Ir;Aa=1,Object.defineProperty(Ir,"__esModule",{value:!0});const e=ie(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:o,data:s,schemaCode:i,it:a}=n,c=a.opts.multipleOfPrecision,f=o.let("res"),l=c?(0,e._)`Math.abs(Math.round(${f}) - ${f}) > 1e-${c}`:(0,e._)`${f} !== parseInt(${f})`;n.fail$data((0,e._)`(${i} === 0 || (${f} = ${s}/${i}, ${l}))`)}};return Ir.default=r,Ir}var Mr={},zr={},Ia;function mm(){if(Ia)return zr;Ia=1,Object.defineProperty(zr,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,o=0,s;for(;o<r;)n++,s=t.charCodeAt(o++),s>=55296&&s<=56319&&o<r&&(s=t.charCodeAt(o),(s&64512)===56320&&o++);return n}return zr.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',zr}var Ma;function gm(){if(Ma)return Mr;Ma=1,Object.defineProperty(Mr,"__esModule",{value:!0});const e=ie(),t=le(),r=mm(),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:i}){const a=s==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} characters`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:i,data:a,schemaCode:c,it:f}=s,l=i==="maxLength"?e.operators.GT:e.operators.LT,p=f.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(s.gen,r.default)}(${a})`;s.fail$data((0,e._)`${p} ${l} ${c}`)}};return Mr.default=o,Mr}var qr={},za;function ym(){if(za)return qr;za=1,Object.defineProperty(qr,"__esModule",{value:!0});const e=He(),t=ie(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,t._)`{pattern: ${o}}`},code(o){const{data:s,$data:i,schema:a,schemaCode:c,it:f}=o,l=f.opts.unicodeRegExp?"u":"",p=i?(0,t._)`(new RegExp(${c}, ${l}))`:(0,e.usePattern)(o,a);o.fail$data((0,t._)`!${p}.test(${s})`)}};return qr.default=n,qr}var Fr={},qa;function bm(){if(qa)return Fr;qa=1,Object.defineProperty(Fr,"__esModule",{value:!0});const e=ie(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:i}=n,a=o==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${s}).length ${a} ${i}`)}};return Fr.default=r,Fr}var Dr={},Fa;function vm(){if(Fa)return Dr;Fa=1,Object.defineProperty(Dr,"__esModule",{value:!0});const e=He(),t=ie(),r=le(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,t.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,t._)`{missingProperty: ${s}}`},code(s){const{gen:i,schema:a,schemaCode:c,data:f,$data:l,it:p}=s,{opts:b}=p;if(!l&&a.length===0)return;const y=a.length>=b.loopRequired;if(p.allErrors?v():g(),b.strictRequired){const u=s.parentSchema.properties,{definedProperties:h}=s.it;for(const _ of a)if(u?.[_]===void 0&&!h.has(_)){const $=p.schemaEnv.baseId+p.errSchemaPath,k=`required property "${_}" is not defined at "${$}" (strictRequired)`;(0,r.checkStrictMode)(p,k,p.opts.strictRequired)}}function v(){if(y||l)s.block$data(t.nil,d);else for(const u of a)(0,e.checkReportMissingProp)(s,u)}function g(){const u=i.let("missing");if(y||l){const h=i.let("valid",!0);s.block$data(h,()=>m(u,h)),s.ok(h)}else i.if((0,e.checkMissingProp)(s,a,u)),(0,e.reportMissingProp)(s,u),i.else()}function d(){i.forOf("prop",c,u=>{s.setParams({missingProperty:u}),i.if((0,e.noPropertyInData)(i,f,u,b.ownProperties),()=>s.error())})}function m(u,h){s.setParams({missingProperty:u}),i.forOf(u,c,()=>{i.assign(h,(0,e.propertyInData)(i,f,u,b.ownProperties)),i.if((0,t.not)(h),()=>{s.error(),i.break()})},t.nil)}}};return Dr.default=o,Dr}var Lr={},Da;function $m(){if(Da)return Lr;Da=1,Object.defineProperty(Lr,"__esModule",{value:!0});const e=ie(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:i}=n,a=o==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${s}.length ${a} ${i}`)}};return Lr.default=r,Lr}var Vr={},Ur={},La;function fi(){if(La)return Ur;La=1,Object.defineProperty(Ur,"__esModule",{value:!0});const e=No();return e.code='require("ajv/dist/runtime/equal").default',Ur.default=e,Ur}var Va;function wm(){if(Va)return Vr;Va=1,Object.defineProperty(Vr,"__esModule",{value:!0});const e=ho(),t=ie(),r=le(),n=fi(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${i} are identical)`,params:({params:{i,j:a}})=>(0,t._)`{i: ${i}, j: ${a}}`},code(i){const{gen:a,data:c,$data:f,schema:l,parentSchema:p,schemaCode:b,it:y}=i;if(!f&&!l)return;const v=a.let("valid"),g=p.items?(0,e.getSchemaTypes)(p.items):[];i.block$data(v,d,(0,t._)`${b} === false`),i.ok(v);function d(){const _=a.let("i",(0,t._)`${c}.length`),$=a.let("j");i.setParams({i:_,j:$}),a.assign(v,!0),a.if((0,t._)`${_} > 1`,()=>(m()?u:h)(_,$))}function m(){return g.length>0&&!g.some(_=>_==="object"||_==="array")}function u(_,$){const k=a.name("item"),S=(0,e.checkDataTypes)(g,k,y.opts.strictNumbers,e.DataType.Wrong),P=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${_}--;`,()=>{a.let(k,(0,t._)`${c}[${_}]`),a.if(S,(0,t._)`continue`),g.length>1&&a.if((0,t._)`typeof ${k} == "string"`,(0,t._)`${k} += "_"`),a.if((0,t._)`typeof ${P}[${k}] == "number"`,()=>{a.assign($,(0,t._)`${P}[${k}]`),i.error(),a.assign(v,!1).break()}).code((0,t._)`${P}[${k}] = ${_}`)})}function h(_,$){const k=(0,r.useFunc)(a,n.default),S=a.name("outer");a.label(S).for((0,t._)`;${_}--;`,()=>a.for((0,t._)`${$} = ${_}; ${$}--;`,()=>a.if((0,t._)`${k}(${c}[${_}], ${c}[${$}])`,()=>{i.error(),a.assign(v,!1).break(S)})))}}};return Vr.default=s,Vr}var Hr={},Ua;function _m(){if(Ua)return Hr;Ua=1,Object.defineProperty(Hr,"__esModule",{value:!0});const e=ie(),t=le(),r=fi(),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,e._)`{allowedValue: ${s}}`},code(s){const{gen:i,data:a,$data:c,schemaCode:f,schema:l}=s;c||l&&typeof l=="object"?s.fail$data((0,e._)`!${(0,t.useFunc)(i,r.default)}(${a}, ${f})`):s.fail((0,e._)`${l} !== ${a}`)}};return Hr.default=o,Hr}var Kr={},Ha;function km(){if(Ha)return Kr;Ha=1,Object.defineProperty(Kr,"__esModule",{value:!0});const e=ie(),t=le(),r=fi(),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,e._)`{allowedValues: ${s}}`},code(s){const{gen:i,data:a,$data:c,schema:f,schemaCode:l,it:p}=s;if(!c&&f.length===0)throw new Error("enum must have non-empty array");const b=f.length>=p.opts.loopEnum;let y;const v=()=>y??(y=(0,t.useFunc)(i,r.default));let g;if(b||c)g=i.let("valid"),s.block$data(g,d);else{if(!Array.isArray(f))throw new Error("ajv implementation error");const u=i.const("vSchema",l);g=(0,e.or)(...f.map((h,_)=>m(u,_)))}s.pass(g);function d(){i.assign(g,!1),i.forOf("v",l,u=>i.if((0,e._)`${v()}(${a}, ${u})`,()=>i.assign(g,!0).break()))}function m(u,h){const _=f[h];return typeof _=="object"&&_!==null?(0,e._)`${v()}(${a}, ${u}[${h}])`:(0,e._)`${a} === ${_}`}}};return Kr.default=o,Kr}var Ka;function Sm(){if(Ka)return Nr;Ka=1,Object.defineProperty(Nr,"__esModule",{value:!0});const e=pm(),t=hm(),r=gm(),n=ym(),o=bm(),s=vm(),i=$m(),a=wm(),c=_m(),f=km(),l=[e.default,t.default,r.default,n.default,o.default,s.default,i.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,f.default];return Nr.default=l,Nr}var Wr={},Ct={},Wa;function hf(){if(Wa)return Ct;Wa=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.validateAdditionalItems=void 0;const e=ie(),t=le(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{parentSchema:i,it:a}=s,{items:c}=i;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}o(s,c)}};function o(s,i){const{gen:a,schema:c,data:f,keyword:l,it:p}=s;p.items=!0;const b=a.const("len",(0,e._)`${f}.length`);if(c===!1)s.setParams({len:i.length}),s.pass((0,e._)`${b} <= ${i.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(p,c)){const v=a.var("valid",(0,e._)`${b} <= ${i.length}`);a.if((0,e.not)(v),()=>y(v)),s.ok(v)}function y(v){a.forRange("i",i.length,b,g=>{s.subschema({keyword:l,dataProp:g,dataPropType:t.Type.Num},v),p.allErrors||a.if((0,e.not)(v),()=>a.break())})}}return Ct.validateAdditionalItems=o,Ct.default=n,Ct}var Br={},jt={},Ba;function mf(){if(Ba)return jt;Ba=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.validateTuple=void 0;const e=ie(),t=le(),r=He(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:i,it:a}=s;if(Array.isArray(i))return o(s,"additionalItems",i);a.items=!0,!(0,t.alwaysValidSchema)(a,i)&&s.ok((0,r.validateArray)(s))}};function o(s,i,a=s.schema){const{gen:c,parentSchema:f,data:l,keyword:p,it:b}=s;g(f),b.opts.unevaluated&&a.length&&b.items!==!0&&(b.items=t.mergeEvaluated.items(c,a.length,b.items));const y=c.name("valid"),v=c.const("len",(0,e._)`${l}.length`);a.forEach((d,m)=>{(0,t.alwaysValidSchema)(b,d)||(c.if((0,e._)`${v} > ${m}`,()=>s.subschema({keyword:p,schemaProp:m,dataProp:m},y)),s.ok(y))});function g(d){const{opts:m,errSchemaPath:u}=b,h=a.length,_=h===d.minItems&&(h===d.maxItems||d[i]===!1);if(m.strictTuples&&!_){const $=`"${p}" is ${h}-tuple, but minItems or maxItems/${i} are not specified or different at path "${u}"`;(0,t.checkStrictMode)(b,$,m.strictTuples)}}}return jt.validateTuple=o,jt.default=n,jt}var Ga;function Em(){if(Ga)return Br;Ga=1,Object.defineProperty(Br,"__esModule",{value:!0});const e=mf(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Br.default=t,Br}var Gr={},Ja;function xm(){if(Ja)return Gr;Ja=1,Object.defineProperty(Gr,"__esModule",{value:!0});const e=ie(),t=le(),r=He(),n=hf(),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{schema:a,parentSchema:c,it:f}=i,{prefixItems:l}=c;f.items=!0,!(0,t.alwaysValidSchema)(f,a)&&(l?(0,n.validateAdditionalItems)(i,l):i.ok((0,r.validateArray)(i)))}};return Gr.default=s,Gr}var Jr={},Xa;function Pm(){if(Xa)return Jr;Xa=1,Object.defineProperty(Jr,"__esModule",{value:!0});const e=ie(),t=le(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:o,max:s}})=>s===void 0?(0,e.str)`must contain at least ${o} valid item(s)`:(0,e.str)`must contain at least ${o} and no more than ${s} valid item(s)`,params:({params:{min:o,max:s}})=>s===void 0?(0,e._)`{minContains: ${o}}`:(0,e._)`{minContains: ${o}, maxContains: ${s}}`},code(o){const{gen:s,schema:i,parentSchema:a,data:c,it:f}=o;let l,p;const{minContains:b,maxContains:y}=a;f.opts.next?(l=b===void 0?1:b,p=y):l=1;const v=s.const("len",(0,e._)`${c}.length`);if(o.setParams({min:l,max:p}),p===void 0&&l===0){(0,t.checkStrictMode)(f,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&l>p){(0,t.checkStrictMode)(f,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,t.alwaysValidSchema)(f,i)){let h=(0,e._)`${v} >= ${l}`;p!==void 0&&(h=(0,e._)`${h} && ${v} <= ${p}`),o.pass(h);return}f.items=!0;const g=s.name("valid");p===void 0&&l===1?m(g,()=>s.if(g,()=>s.break())):l===0?(s.let(g,!0),p!==void 0&&s.if((0,e._)`${c}.length > 0`,d)):(s.let(g,!1),d()),o.result(g,()=>o.reset());function d(){const h=s.name("_valid"),_=s.let("count",0);m(h,()=>s.if(h,()=>u(_)))}function m(h,_){s.forRange("i",0,v,$=>{o.subschema({keyword:"contains",dataProp:$,dataPropType:t.Type.Num,compositeRule:!0},h),_()})}function u(h){s.code((0,e._)`${h}++`),p===void 0?s.if((0,e._)`${h} >= ${l}`,()=>s.assign(g,!0).break()):(s.if((0,e._)`${h} > ${p}`,()=>s.assign(g,!1).break()),l===1?s.assign(g,!0):s.if((0,e._)`${h} >= ${l}`,()=>s.assign(g,!0)))}}};return Jr.default=n,Jr}var ls={},Ya;function Cm(){return Ya||(Ya=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ie(),r=le(),n=He();e.error={message:({params:{property:c,depsCount:f,deps:l}})=>{const p=f===1?"property":"properties";return(0,t.str)`must have ${p} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:f,deps:l,missingProperty:p}})=>(0,t._)`{property: ${c},
14
- missingProperty: ${p},
15
- depsCount: ${f},
16
- deps: ${l}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[f,l]=s(c);i(c,f),a(c,l)}};function s({schema:c}){const f={},l={};for(const p in c){if(p==="__proto__")continue;const b=Array.isArray(c[p])?f:l;b[p]=c[p]}return[f,l]}function i(c,f=c.schema){const{gen:l,data:p,it:b}=c;if(Object.keys(f).length===0)return;const y=l.let("missing");for(const v in f){const g=f[v];if(g.length===0)continue;const d=(0,n.propertyInData)(l,p,v,b.opts.ownProperties);c.setParams({property:v,depsCount:g.length,deps:g.join(", ")}),b.allErrors?l.if(d,()=>{for(const m of g)(0,n.checkReportMissingProp)(c,m)}):(l.if((0,t._)`${d} && (${(0,n.checkMissingProp)(c,g,y)})`),(0,n.reportMissingProp)(c,y),l.else())}}e.validatePropertyDeps=i;function a(c,f=c.schema){const{gen:l,data:p,keyword:b,it:y}=c,v=l.name("valid");for(const g in f)(0,r.alwaysValidSchema)(y,f[g])||(l.if((0,n.propertyInData)(l,p,g,y.opts.ownProperties),()=>{const d=c.subschema({keyword:b,schemaProp:g},v);c.mergeValidEvaluated(d,v)},()=>l.var(v,!0)),c.ok(v))}e.validateSchemaDeps=a,e.default=o}(ls)),ls}var Xr={},Qa;function jm(){if(Qa)return Xr;Qa=1,Object.defineProperty(Xr,"__esModule",{value:!0});const e=ie(),t=le(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:o})=>(0,e._)`{propertyName: ${o.propertyName}}`},code(o){const{gen:s,schema:i,data:a,it:c}=o;if((0,t.alwaysValidSchema)(c,i))return;const f=s.name("valid");s.forIn("key",a,l=>{o.setParams({propertyName:l}),o.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},f),s.if((0,e.not)(f),()=>{o.error(!0),c.allErrors||s.break()})}),o.ok(f)}};return Xr.default=n,Xr}var Yr={},Za;function gf(){if(Za)return Yr;Za=1,Object.defineProperty(Yr,"__esModule",{value:!0});const e=He(),t=ie(),r=ft(),n=le(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,t._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:a,schema:c,parentSchema:f,data:l,errsCount:p,it:b}=i;if(!p)throw new Error("ajv implementation error");const{allErrors:y,opts:v}=b;if(b.props=!0,v.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(b,c))return;const g=(0,e.allSchemaProperties)(f.properties),d=(0,e.allSchemaProperties)(f.patternProperties);m(),i.ok((0,t._)`${p} === ${r.default.errors}`);function m(){a.forIn("key",l,k=>{!g.length&&!d.length?_(k):a.if(u(k),()=>_(k))})}function u(k){let S;if(g.length>8){const P=(0,n.schemaRefOrVal)(b,f.properties,"properties");S=(0,e.isOwnProperty)(a,P,k)}else g.length?S=(0,t.or)(...g.map(P=>(0,t._)`${k} === ${P}`)):S=t.nil;return d.length&&(S=(0,t.or)(S,...d.map(P=>(0,t._)`${(0,e.usePattern)(i,P)}.test(${k})`))),(0,t.not)(S)}function h(k){a.code((0,t._)`delete ${l}[${k}]`)}function _(k){if(v.removeAdditional==="all"||v.removeAdditional&&c===!1){h(k);return}if(c===!1){i.setParams({additionalProperty:k}),i.error(),y||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(b,c)){const S=a.name("valid");v.removeAdditional==="failing"?($(k,S,!1),a.if((0,t.not)(S),()=>{i.reset(),h(k)})):($(k,S),y||a.if((0,t.not)(S),()=>a.break()))}}function $(k,S,P){const O={keyword:"additionalProperties",dataProp:k,dataPropType:n.Type.Str};P===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(O,S)}}};return Yr.default=s,Yr}var Qr={},ec;function Rm(){if(ec)return Qr;ec=1,Object.defineProperty(Qr,"__esModule",{value:!0});const e=Io(),t=He(),r=le(),n=gf(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:i,schema:a,parentSchema:c,data:f,it:l}=s;l.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(l,n.default,"additionalProperties"));const p=(0,t.allSchemaProperties)(a);for(const d of p)l.definedProperties.add(d);l.opts.unevaluated&&p.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(i,(0,r.toHash)(p),l.props));const b=p.filter(d=>!(0,r.alwaysValidSchema)(l,a[d]));if(b.length===0)return;const y=i.name("valid");for(const d of b)v(d)?g(d):(i.if((0,t.propertyInData)(i,f,d,l.opts.ownProperties)),g(d),l.allErrors||i.else().var(y,!0),i.endIf()),s.it.definedProperties.add(d),s.ok(y);function v(d){return l.opts.useDefaults&&!l.compositeRule&&a[d].default!==void 0}function g(d){s.subschema({keyword:"properties",schemaProp:d,dataProp:d},y)}}};return Qr.default=o,Qr}var Zr={},tc;function Om(){if(tc)return Zr;tc=1,Object.defineProperty(Zr,"__esModule",{value:!0});const e=He(),t=ie(),r=le(),n=le(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:i,schema:a,data:c,parentSchema:f,it:l}=s,{opts:p}=l,b=(0,e.allSchemaProperties)(a),y=b.filter(_=>(0,r.alwaysValidSchema)(l,a[_]));if(b.length===0||y.length===b.length&&(!l.opts.unevaluated||l.props===!0))return;const v=p.strictSchema&&!p.allowMatchingProperties&&f.properties,g=i.name("valid");l.props!==!0&&!(l.props instanceof t.Name)&&(l.props=(0,n.evaluatedPropsToName)(i,l.props));const{props:d}=l;m();function m(){for(const _ of b)v&&u(_),l.allErrors?h(_):(i.var(g,!0),h(_),i.if(g))}function u(_){for(const $ in v)new RegExp(_).test($)&&(0,r.checkStrictMode)(l,`property ${$} matches pattern ${_} (use allowMatchingProperties)`)}function h(_){i.forIn("key",c,$=>{i.if((0,t._)`${(0,e.usePattern)(s,_)}.test(${$})`,()=>{const k=y.includes(_);k||s.subschema({keyword:"patternProperties",schemaProp:_,dataProp:$,dataPropType:n.Type.Str},g),l.opts.unevaluated&&d!==!0?i.assign((0,t._)`${d}[${$}]`,!0):!k&&!l.allErrors&&i.if((0,t.not)(g),()=>i.break())})})}}};return Zr.default=o,Zr}var en={},rc;function Tm(){if(rc)return en;rc=1,Object.defineProperty(en,"__esModule",{value:!0});const e=le(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:s}=r;if((0,e.alwaysValidSchema)(s,o)){r.fail();return}const i=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),r.failResult(i,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return en.default=t,en}var tn={},nc;function Nm(){if(nc)return tn;nc=1,Object.defineProperty(tn,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:He().validateUnion,error:{message:"must match a schema in anyOf"}};return tn.default=t,tn}var rn={},oc;function Am(){if(oc)return rn;oc=1,Object.defineProperty(rn,"__esModule",{value:!0});const e=ie(),t=le(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:o})=>(0,e._)`{passingSchemas: ${o.passing}}`},code(o){const{gen:s,schema:i,parentSchema:a,it:c}=o;if(!Array.isArray(i))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const f=i,l=s.let("valid",!1),p=s.let("passing",null),b=s.name("_valid");o.setParams({passing:p}),s.block(y),o.result(l,()=>o.reset(),()=>o.error(!0));function y(){f.forEach((v,g)=>{let d;(0,t.alwaysValidSchema)(c,v)?s.var(b,!0):d=o.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},b),g>0&&s.if((0,e._)`${b} && ${l}`).assign(l,!1).assign(p,(0,e._)`[${p}, ${g}]`).else(),s.if(b,()=>{s.assign(l,!0),s.assign(p,g),d&&o.mergeEvaluated(d,e.Name)})})}}};return rn.default=n,rn}var nn={},sc;function Im(){if(sc)return nn;sc=1,Object.defineProperty(nn,"__esModule",{value:!0});const e=le(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:s}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const i=n.name("valid");o.forEach((a,c)=>{if((0,e.alwaysValidSchema)(s,a))return;const f=r.subschema({keyword:"allOf",schemaProp:c},i);r.ok(i),r.mergeEvaluated(f)})}};return nn.default=t,nn}var on={},ic;function Mm(){if(ic)return on;ic=1,Object.defineProperty(on,"__esModule",{value:!0});const e=ie(),t=le(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:i,parentSchema:a,it:c}=s;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const f=o(c,"then"),l=o(c,"else");if(!f&&!l)return;const p=i.let("valid",!0),b=i.name("_valid");if(y(),s.reset(),f&&l){const g=i.let("ifClause");s.setParams({ifClause:g}),i.if(b,v("then",g),v("else",g))}else f?i.if(b,v("then")):i.if((0,e.not)(b),v("else"));s.pass(p,()=>s.error(!0));function y(){const g=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},b);s.mergeEvaluated(g)}function v(g,d){return()=>{const m=s.subschema({keyword:g},b);i.assign(p,b),s.mergeValidEvaluated(m,p),d?i.assign(d,(0,e._)`${g}`):s.setParams({ifClause:g})}}}};function o(s,i){const a=s.schema[i];return a!==void 0&&!(0,t.alwaysValidSchema)(s,a)}return on.default=n,on}var sn={},ac;function zm(){if(ac)return sn;ac=1,Object.defineProperty(sn,"__esModule",{value:!0});const e=le(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:o}){n.if===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "if" is ignored`)}};return sn.default=t,sn}var cc;function qm(){if(cc)return Wr;cc=1,Object.defineProperty(Wr,"__esModule",{value:!0});const e=hf(),t=Em(),r=mf(),n=xm(),o=Pm(),s=Cm(),i=jm(),a=gf(),c=Rm(),f=Om(),l=Tm(),p=Nm(),b=Am(),y=Im(),v=Mm(),g=zm();function d(m=!1){const u=[l.default,p.default,b.default,y.default,v.default,g.default,i.default,a.default,s.default,c.default,f.default];return m?u.push(t.default,n.default):u.push(e.default,r.default),u.push(o.default),u}return Wr.default=d,Wr}var an={},cn={},lc;function Fm(){if(lc)return cn;lc=1,Object.defineProperty(cn,"__esModule",{value:!0});const e=ie(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,o){const{gen:s,data:i,$data:a,schema:c,schemaCode:f,it:l}=n,{opts:p,errSchemaPath:b,schemaEnv:y,self:v}=l;if(!p.validateFormats)return;a?g():d();function g(){const m=s.scopeValue("formats",{ref:v.formats,code:p.code.formats}),u=s.const("fDef",(0,e._)`${m}[${f}]`),h=s.let("fType"),_=s.let("format");s.if((0,e._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`,()=>s.assign(h,(0,e._)`${u}.type || "string"`).assign(_,(0,e._)`${u}.validate`),()=>s.assign(h,(0,e._)`"string"`).assign(_,u)),n.fail$data((0,e.or)($(),k()));function $(){return p.strictSchema===!1?e.nil:(0,e._)`${f} && !${_}`}function k(){const S=y.$async?(0,e._)`(${u}.async ? await ${_}(${i}) : ${_}(${i}))`:(0,e._)`${_}(${i})`,P=(0,e._)`(typeof ${_} == "function" ? ${S} : ${_}.test(${i}))`;return(0,e._)`${_} && ${_} !== true && ${h} === ${o} && !${P}`}}function d(){const m=v.formats[c];if(!m){$();return}if(m===!0)return;const[u,h,_]=k(m);u===o&&n.pass(S());function $(){if(p.strictSchema===!1){v.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${c}" ignored in schema at path "${b}"`}}function k(P){const O=P instanceof RegExp?(0,e.regexpCode)(P):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(c)}`:void 0,q=s.scopeValue("formats",{key:c,ref:P,code:O});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${q}.validate`]:["string",P,q]}function S(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${_}(${i})`}return typeof h=="function"?(0,e._)`${_}(${i})`:(0,e._)`${_}.test(${i})`}}}};return cn.default=r,cn}var uc;function Dm(){if(uc)return an;uc=1,Object.defineProperty(an,"__esModule",{value:!0});const t=[Fm().default];return an.default=t,an}var bt={},fc;function Lm(){return fc||(fc=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.contentVocabulary=bt.metadataVocabulary=void 0,bt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],bt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),bt}var dc;function Vm(){if(dc)return Rr;dc=1,Object.defineProperty(Rr,"__esModule",{value:!0});const e=dm(),t=Sm(),r=qm(),n=Dm(),o=Lm(),s=[e.default,t.default,(0,r.default)(),n.default,o.metadataVocabulary,o.contentVocabulary];return Rr.default=s,Rr}var ln={},Xt={},pc;function Um(){if(pc)return Xt;pc=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(Xt.DiscrError=e={})),Xt}var hc;function Hm(){if(hc)return ln;hc=1,Object.defineProperty(ln,"__esModule",{value:!0});const e=ie(),t=Um(),r=ui(),n=Mo(),o=le(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:f}})=>(0,e._)`{error: ${a}, tag: ${f}, tagValue: ${c}}`},code(a){const{gen:c,data:f,schema:l,parentSchema:p,it:b}=a,{oneOf:y}=p;if(!b.opts.discriminator)throw new Error("discriminator: requires discriminator option");const v=l.propertyName;if(typeof v!="string")throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const g=c.let("valid",!1),d=c.const("tag",(0,e._)`${f}${(0,e.getProperty)(v)}`);c.if((0,e._)`typeof ${d} == "string"`,()=>m(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:d,tagName:v})),a.ok(g);function m(){const _=h();c.if(!1);for(const $ in _)c.elseIf((0,e._)`${d} === ${$}`),c.assign(g,u(_[$]));c.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:d,tagName:v}),c.endIf()}function u(_){const $=c.name("valid"),k=a.subschema({keyword:"oneOf",schemaProp:_},$);return a.mergeEvaluated(k,e.Name),$}function h(){var _;const $={},k=P(p);let S=!0;for(let M=0;M<y.length;M++){let L=y[M];if(L?.$ref&&!(0,o.schemaHasRulesButRef)(L,b.self.RULES)){const V=L.$ref;if(L=r.resolveRef.call(b.self,b.schemaEnv.root,b.baseId,V),L instanceof r.SchemaEnv&&(L=L.schema),L===void 0)throw new n.default(b.opts.uriResolver,b.baseId,V)}const D=(_=L?.properties)===null||_===void 0?void 0:_[v];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${v}"`);S=S&&(k||P(L)),O(D,M)}if(!S)throw new Error(`discriminator: "${v}" must be required`);return $;function P({required:M}){return Array.isArray(M)&&M.includes(v)}function O(M,L){if(M.const)q(M.const,L);else if(M.enum)for(const D of M.enum)q(D,L);else throw new Error(`discriminator: "properties/${v}" must have "const" or "enum"`)}function q(M,L){if(typeof M!="string"||M in $)throw new Error(`discriminator: "${v}" values must be unique strings`);$[M]=L}}}};return ln.default=i,ln}const Km="http://json-schema.org/draft-07/schema#",Wm="http://json-schema.org/draft-07/schema#",Bm="Core schema meta-schema",Gm={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Jm=["object","boolean"],Xm={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Ym={$schema:Km,$id:Wm,title:Bm,definitions:Gm,type:Jm,properties:Xm,default:!0};var mc;function Qm(){return mc||(mc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=lm(),n=Vm(),o=Hm(),s=Ym,i=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(v,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var f=Io();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var l=ie();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=li();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var b=Mo();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return b.default}})}(Er,Er.exports)),Er.exports}var Zm=Qm();const e0=yr(Zm);var un={exports:{}},us={},gc;function t0(){return gc||(gc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(M,L){return{validate:M,compare:L}}e.fullFormats={date:t(s,i),time:t(c(!0),f),"date-time":t(b(!0),y),"iso-time":t(c(),l),"iso-date-time":t(b(),v),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:q,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:h,int32:{type:"number",validate:k},int64:{type:"number",validate:S},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,y),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,v),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(M){return M%4===0&&(M%100!==0||M%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(M){const L=n.exec(M);if(!L)return!1;const D=+L[1],V=+L[2],W=+L[3];return V>=1&&V<=12&&W>=1&&W<=(V===2&&r(D)?29:o[V])}function i(M,L){if(M&&L)return M>L?1:M<L?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(M){return function(D){const V=a.exec(D);if(!V)return!1;const W=+V[1],Q=+V[2],Z=+V[3],B=V[4],ee=V[5]==="-"?-1:1,z=+(V[6]||0),C=+(V[7]||0);if(z>23||C>59||M&&!B)return!1;if(W<=23&&Q<=59&&Z<60)return!0;const A=Q-C*ee,R=W-z*ee-(A<0?1:0);return(R===23||R===-1)&&(A===59||A===-1)&&Z<61}}function f(M,L){if(!(M&&L))return;const D=new Date("2020-01-01T"+M).valueOf(),V=new Date("2020-01-01T"+L).valueOf();if(D&&V)return D-V}function l(M,L){if(!(M&&L))return;const D=a.exec(M),V=a.exec(L);if(D&&V)return M=D[1]+D[2]+D[3],L=V[1]+V[2]+V[3],M>L?1:M<L?-1:0}const p=/t|\s/i;function b(M){const L=c(M);return function(V){const W=V.split(p);return W.length===2&&s(W[0])&&L(W[1])}}function y(M,L){if(!(M&&L))return;const D=new Date(M).valueOf(),V=new Date(L).valueOf();if(D&&V)return D-V}function v(M,L){if(!(M&&L))return;const[D,V]=M.split(p),[W,Q]=L.split(p),Z=i(D,W);if(Z!==void 0)return Z||f(V,Q)}const g=/\/|:/,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function m(M){return g.test(M)&&d.test(M)}const u=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function h(M){return u.lastIndex=0,u.test(M)}const _=-2147483648,$=2**31-1;function k(M){return Number.isInteger(M)&&M<=$&&M>=_}function S(M){return Number.isInteger(M)}function P(){return!0}const O=/[^\\]\\Z/;function q(M){if(O.test(M))return!1;try{return new RegExp(M),!0}catch{return!1}}}(us)),us}var fs={},fn={exports:{}},ds={},Qe={},vt={},ps={},hs={},ms={},yc;function mo(){return yc||(yc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(u){if(super(),!e.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((h,_)=>`${h}${_}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((h,_)=>(_ instanceof r&&(h[_.str]=(h[_.str]||0)+1),h),{})}}e._Code=n,e.nil=new n("");function o(m,...u){const h=[m[0]];let _=0;for(;_<u.length;)a(h,u[_]),h.push(m[++_]);return new n(h)}e._=o;const s=new n("+");function i(m,...u){const h=[y(m[0])];let _=0;for(;_<u.length;)h.push(s),a(h,u[_]),h.push(s,y(m[++_]));return c(h),new n(h)}e.str=i;function a(m,u){u instanceof n?m.push(...u._items):u instanceof r?m.push(u):m.push(p(u))}e.addCodeArg=a;function c(m){let u=1;for(;u<m.length-1;){if(m[u]===s){const h=f(m[u-1],m[u+1]);if(h!==void 0){m.splice(u-1,3,h);continue}m[u++]="+"}u++}}function f(m,u){if(u==='""')return m;if(m==='""')return u;if(typeof m=="string")return u instanceof r||m[m.length-1]!=='"'?void 0:typeof u!="string"?`${m.slice(0,-1)}${u}"`:u[0]==='"'?m.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(m instanceof r))return`"${m}${u.slice(1)}`}function l(m,u){return u.emptyStr()?m:m.emptyStr()?u:i`${m}${u}`}e.strConcat=l;function p(m){return typeof m=="number"||typeof m=="boolean"||m===null?m:y(Array.isArray(m)?m.join(","):m)}function b(m){return new n(y(m))}e.stringify=b;function y(m){return JSON.stringify(m).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function v(m){return typeof m=="string"&&e.IDENTIFIER.test(m)?new n(`.${m}`):o`[${m}]`}e.getProperty=v;function g(m){if(typeof m=="string"&&e.IDENTIFIER.test(m))return new n(`${m}`);throw new Error(`CodeGen: invalid export name: ${m}, use explicit $id name mapping`)}e.getEsmExportName=g;function d(m){return new n(m.toString())}e.regexpCode=d}(ms)),ms}var gs={},bc;function vc(){return bc||(bc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=mo();class r extends Error{constructor(f){super(`CodeGen: "code" for ${f} not defined`),this.value=f.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:f,parent:l}={}){this._names={},this._prefixes=f,this._parent=l}toName(f){return f instanceof t.Name?f:this.name(f)}name(f){return new t.Name(this._newName(f))}_newName(f){const l=this._names[f]||this._nameGroup(f);return`${f}${l.index++}`}_nameGroup(f){var l,p;if(!((p=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||p===void 0)&&p.has(f)||this._prefixes&&!this._prefixes.has(f))throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);return this._names[f]={prefix:f,index:0}}}e.Scope=o;class s extends t.Name{constructor(f,l){super(l),this.prefix=f}setValue(f,{property:l,itemIndex:p}){this.value=f,this.scopePath=(0,t._)`.${new t.Name(l)}[${p}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class a extends o{constructor(f){super(f),this._values={},this._scope=f.scope,this.opts={...f,_n:f.lines?i:t.nil}}get(){return this._scope}name(f){return new s(f,this._newName(f))}value(f,l){var p;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const b=this.toName(f),{prefix:y}=b,v=(p=l.key)!==null&&p!==void 0?p:l.ref;let g=this._values[y];if(g){const u=g.get(v);if(u)return u}else g=this._values[y]=new Map;g.set(v,b);const d=this._scope[y]||(this._scope[y]=[]),m=d.length;return d[m]=l.ref,b.setValue(l,{property:y,itemIndex:m}),b}getValue(f,l){const p=this._values[f];if(p)return p.get(l)}scopeRefs(f,l=this._values){return this._reduceValues(l,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${f}${p.scopePath}`})}scopeCode(f=this._values,l,p){return this._reduceValues(f,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},l,p)}_reduceValues(f,l,p={},b){let y=t.nil;for(const v in f){const g=f[v];if(!g)continue;const d=p[v]=p[v]||new Map;g.forEach(m=>{if(d.has(m))return;d.set(m,n.Started);let u=l(m);if(u){const h=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${h} ${m} = ${u};${this.opts._n}`}else if(u=b?.(m))y=(0,t._)`${y}${u}${this.opts._n}`;else throw new r(m);d.set(m,n.Completed)})}return y}}e.ValueScope=a}(gs)),gs}var $c;function oe(){return $c||($c=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=mo(),r=vc();var n=mo();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=vc();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(w,E){return this}}class i extends s{constructor(w,E,T){super(),this.varKind=w,this.name=E,this.rhs=T}render({es5:w,_n:E}){const T=w?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${U};`+E}optimizeNames(w,E){if(w[this.name.str])return this.rhs&&(this.rhs=V(this.rhs,w,E)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(w,E,T){super(),this.lhs=w,this.rhs=E,this.sideEffects=T}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,E){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=V(this.rhs,w,E),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return D(w,this.rhs)}}class c extends a{constructor(w,E,T,U){super(w,T,U),this.op=E}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class f extends s{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class l extends s{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class p extends s{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class b extends s{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,E){return this.code=V(this.code,w,E),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends s{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((E,T)=>E+T.render(w),"")}optimizeNodes(){const{nodes:w}=this;let E=w.length;for(;E--;){const T=w[E].optimizeNodes();Array.isArray(T)?w.splice(E,1,...T):T?w[E]=T:w.splice(E,1)}return w.length>0?this:void 0}optimizeNames(w,E){const{nodes:T}=this;let U=T.length;for(;U--;){const K=T[U];K.optimizeNames(w,E)||(W(w,K.names),T.splice(U,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((w,E)=>L(w,E.names),{})}}class v extends y{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class g extends y{}class d extends v{}d.kind="else";class m extends v{constructor(w,E){super(E),this.condition=w}render(w){let E=`if(${this.condition})`+super.render(w);return this.else&&(E+="else "+this.else.render(w)),E}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let E=this.else;if(E){const T=E.optimizeNodes();E=this.else=Array.isArray(T)?new d(T):T}if(E)return w===!1?E instanceof m?E:E.nodes:this.nodes.length?this:new m(Q(w),E instanceof m?[E]:E.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,E){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(w,E),!!(super.optimizeNames(w,E)||this.else))return this.condition=V(this.condition,w,E),this}get names(){const w=super.names;return D(w,this.condition),this.else&&L(w,this.else.names),w}}m.kind="if";class u extends v{}u.kind="for";class h extends u{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,E){if(super.optimizeNames(w,E))return this.iteration=V(this.iteration,w,E),this}get names(){return L(super.names,this.iteration.names)}}class _ extends u{constructor(w,E,T,U){super(),this.varKind=w,this.name=E,this.from=T,this.to=U}render(w){const E=w.es5?r.varKinds.var:this.varKind,{name:T,from:U,to:K}=this;return`for(${E} ${T}=${U}; ${T}<${K}; ${T}++)`+super.render(w)}get names(){const w=D(super.names,this.from);return D(w,this.to)}}class $ extends u{constructor(w,E,T,U){super(),this.loop=w,this.varKind=E,this.name=T,this.iterable=U}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,E){if(super.optimizeNames(w,E))return this.iterable=V(this.iterable,w,E),this}get names(){return L(super.names,this.iterable.names)}}class k extends v{constructor(w,E,T){super(),this.name=w,this.args=E,this.async=T}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}k.kind="func";class S extends y{render(w){return"return "+super.render(w)}}S.kind="return";class P extends v{render(w){let E="try"+super.render(w);return this.catch&&(E+=this.catch.render(w)),this.finally&&(E+=this.finally.render(w)),E}optimizeNodes(){var w,E;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(E=this.finally)===null||E===void 0||E.optimizeNodes(),this}optimizeNames(w,E){var T,U;return super.optimizeNames(w,E),(T=this.catch)===null||T===void 0||T.optimizeNames(w,E),(U=this.finally)===null||U===void 0||U.optimizeNames(w,E),this}get names(){const w=super.names;return this.catch&&L(w,this.catch.names),this.finally&&L(w,this.finally.names),w}}class O extends v{constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}O.kind="catch";class q extends v{render(w){return"finally"+super.render(w)}}q.kind="finally";class M{constructor(w,E={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...E,_n:E.lines?`
17
- `:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,E){const T=this._extScope.value(w,E);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(w,E){return this._extScope.getValue(w,E)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,E,T,U){const K=this._scope.toName(E);return T!==void 0&&U&&(this._constants[K.str]=T),this._leafNode(new i(w,K,T)),K}const(w,E,T){return this._def(r.varKinds.const,w,E,T)}let(w,E,T){return this._def(r.varKinds.let,w,E,T)}var(w,E,T){return this._def(r.varKinds.var,w,E,T)}assign(w,E,T){return this._leafNode(new a(w,E,T))}add(w,E){return this._leafNode(new c(w,e.operators.ADD,E))}code(w){return typeof w=="function"?w():w!==t.nil&&this._leafNode(new b(w)),this}object(...w){const E=["{"];for(const[T,U]of w)E.length>1&&E.push(","),E.push(T),(T!==U||this.opts.es5)&&(E.push(":"),(0,t.addCodeArg)(E,U));return E.push("}"),new t._Code(E)}if(w,E,T){if(this._blockNode(new m(w)),E&&T)this.code(E).else().code(T).endIf();else if(E)this.code(E).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new m(w))}else(){return this._elseNode(new d)}endIf(){return this._endBlockNode(m,d)}_for(w,E){return this._blockNode(w),E&&this.code(E).endFor(),this}for(w,E){return this._for(new h(w),E)}forRange(w,E,T,U,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const X=this._scope.toName(w);return this._for(new _(K,X,E,T),()=>U(X))}forOf(w,E,T,U=r.varKinds.const){const K=this._scope.toName(w);if(this.opts.es5){const X=E instanceof t.Name?E:this.var("_arr",E);return this.forRange("_i",0,(0,t._)`${X}.length`,J=>{this.var(K,(0,t._)`${X}[${J}]`),T(K)})}return this._for(new $("of",U,K,E),()=>T(K))}forIn(w,E,T,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(w,(0,t._)`Object.keys(${E})`,T);const K=this._scope.toName(w);return this._for(new $("in",U,K,E),()=>T(K))}endFor(){return this._endBlockNode(u)}label(w){return this._leafNode(new f(w))}break(w){return this._leafNode(new l(w))}return(w){const E=new S;if(this._blockNode(E),this.code(w),E.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(w,E,T){if(!E&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new P;if(this._blockNode(U),this.code(w),E){const K=this.name("e");this._currNode=U.catch=new O(K),E(K)}return T&&(this._currNode=U.finally=new q,this.code(T)),this._endBlockNode(O,q)}throw(w){return this._leafNode(new p(w))}block(w,E){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(E),this}endBlock(w){const E=this._blockStarts.pop();if(E===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-E;if(T<0||w!==void 0&&T!==w)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${w} expected`);return this._nodes.length=E,this}func(w,E=t.nil,T,U){return this._blockNode(new k(w,E,T)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,E){const T=this._currNode;if(T instanceof w||E&&T instanceof E)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${E?`${w.kind}/${E.kind}`:w.kind}"`)}_elseNode(w){const E=this._currNode;if(!(E instanceof m))throw new Error('CodeGen: "else" without "if"');return this._currNode=E.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const E=this._nodes;E[E.length-1]=w}}e.CodeGen=M;function L(R,w){for(const E in w)R[E]=(R[E]||0)+(w[E]||0);return R}function D(R,w){return w instanceof t._CodeOrName?L(R,w.names):R}function V(R,w,E){if(R instanceof t.Name)return T(R);if(!U(R))return R;return new t._Code(R._items.reduce((K,X)=>(X instanceof t.Name&&(X=T(X)),X instanceof t._Code?K.push(...X._items):K.push(X),K),[]));function T(K){const X=E[K.str];return X===void 0||w[K.str]!==1?K:(delete w[K.str],X)}function U(K){return K instanceof t._Code&&K._items.some(X=>X instanceof t.Name&&w[X.str]===1&&E[X.str]!==void 0)}}function W(R,w){for(const E in w)R[E]=(R[E]||0)-(w[E]||0)}function Q(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,t._)`!${A(R)}`}e.not=Q;const Z=C(e.operators.AND);function B(...R){return R.reduce(Z)}e.and=B;const ee=C(e.operators.OR);function z(...R){return R.reduce(ee)}e.or=z;function C(R){return(w,E)=>w===t.nil?E:E===t.nil?w:(0,t._)`${A(w)} ${R} ${A(E)}`}function A(R){return R instanceof t.Name?R:(0,t._)`(${R})`}}(hs)),hs}var re={},wc;function ue(){if(wc)return re;wc=1,Object.defineProperty(re,"__esModule",{value:!0}),re.checkStrictMode=re.getErrorPath=re.Type=re.useFunc=re.setEvaluated=re.evaluatedPropsToName=re.mergeEvaluated=re.eachItem=re.unescapeJsonPointer=re.escapeJsonPointer=re.escapeFragment=re.unescapeFragment=re.schemaRefOrVal=re.schemaHasRulesButRef=re.schemaHasRules=re.checkUnknownRules=re.alwaysValidSchema=re.toHash=void 0;const e=oe(),t=mo();function r($){const k={};for(const S of $)k[S]=!0;return k}re.toHash=r;function n($,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(o($,k),!s(k,$.self.RULES.all))}re.alwaysValidSchema=n;function o($,k=$.schema){const{opts:S,self:P}=$;if(!S.strictSchema||typeof k=="boolean")return;const O=P.RULES.keywords;for(const q in k)O[q]||_($,`unknown keyword: "${q}"`)}re.checkUnknownRules=o;function s($,k){if(typeof $=="boolean")return!$;for(const S in $)if(k[S])return!0;return!1}re.schemaHasRules=s;function i($,k){if(typeof $=="boolean")return!$;for(const S in $)if(S!=="$ref"&&k.all[S])return!0;return!1}re.schemaHasRulesButRef=i;function a({topSchemaRef:$,schemaPath:k},S,P,O){if(!O){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${$}${k}${(0,e.getProperty)(P)}`}re.schemaRefOrVal=a;function c($){return p(decodeURIComponent($))}re.unescapeFragment=c;function f($){return encodeURIComponent(l($))}re.escapeFragment=f;function l($){return typeof $=="number"?`${$}`:$.replace(/~/g,"~0").replace(/\//g,"~1")}re.escapeJsonPointer=l;function p($){return $.replace(/~1/g,"/").replace(/~0/g,"~")}re.unescapeJsonPointer=p;function b($,k){if(Array.isArray($))for(const S of $)k(S);else k($)}re.eachItem=b;function y({mergeNames:$,mergeToName:k,mergeValues:S,resultToName:P}){return(O,q,M,L)=>{const D=M===void 0?q:M instanceof e.Name?(q instanceof e.Name?$(O,q,M):k(O,q,M),M):q instanceof e.Name?(k(O,M,q),q):S(q,M);return L===e.Name&&!(D instanceof e.Name)?P(O,D):D}}re.mergeEvaluated={props:y({mergeNames:($,k,S)=>$.if((0,e._)`${S} !== true && ${k} !== undefined`,()=>{$.if((0,e._)`${k} === true`,()=>$.assign(S,!0),()=>$.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${k})`))}),mergeToName:($,k,S)=>$.if((0,e._)`${S} !== true`,()=>{k===!0?$.assign(S,!0):($.assign(S,(0,e._)`${S} || {}`),g($,S,k))}),mergeValues:($,k)=>$===!0?!0:{...$,...k},resultToName:v}),items:y({mergeNames:($,k,S)=>$.if((0,e._)`${S} !== true && ${k} !== undefined`,()=>$.assign(S,(0,e._)`${k} === true ? true : ${S} > ${k} ? ${S} : ${k}`)),mergeToName:($,k,S)=>$.if((0,e._)`${S} !== true`,()=>$.assign(S,k===!0?!0:(0,e._)`${S} > ${k} ? ${S} : ${k}`)),mergeValues:($,k)=>$===!0?!0:Math.max($,k),resultToName:($,k)=>$.var("items",k)})};function v($,k){if(k===!0)return $.var("props",!0);const S=$.var("props",(0,e._)`{}`);return k!==void 0&&g($,S,k),S}re.evaluatedPropsToName=v;function g($,k,S){Object.keys(S).forEach(P=>$.assign((0,e._)`${k}${(0,e.getProperty)(P)}`,!0))}re.setEvaluated=g;const d={};function m($,k){return $.scopeValue("func",{ref:k,code:d[k.code]||(d[k.code]=new t._Code(k.code))})}re.useFunc=m;var u;(function($){$[$.Num=0]="Num",$[$.Str=1]="Str"})(u||(re.Type=u={}));function h($,k,S){if($ instanceof e.Name){const P=k===u.Num;return S?P?(0,e._)`"[" + ${$} + "]"`:(0,e._)`"['" + ${$} + "']"`:P?(0,e._)`"/" + ${$}`:(0,e._)`"/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)($).toString():"/"+l($)}re.getErrorPath=h;function _($,k,S=$.opts.strictSchema){if(S){if(k=`strict mode: ${k}`,S===!0)throw new Error(k);$.self.logger.warn(k)}}return re.checkStrictMode=_,re}var dn={},_c;function dt(){if(_c)return dn;_c=1,Object.defineProperty(dn,"__esModule",{value:!0});const e=oe(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return dn.default=t,dn}var kc;function zo(){return kc||(kc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=oe(),r=ue(),n=dt();e.keywordError={message:({keyword:d})=>(0,t.str)`must pass "${d}" keyword validation`},e.keyword$DataError={message:({keyword:d,schemaType:m})=>m?(0,t.str)`"${d}" keyword must be ${m} ($data)`:(0,t.str)`"${d}" keyword is invalid ($data)`};function o(d,m=e.keywordError,u,h){const{it:_}=d,{gen:$,compositeRule:k,allErrors:S}=_,P=p(d,m,u);h??(k||S)?c($,P):f(_,(0,t._)`[${P}]`)}e.reportError=o;function s(d,m=e.keywordError,u){const{it:h}=d,{gen:_,compositeRule:$,allErrors:k}=h,S=p(d,m,u);c(_,S),$||k||f(h,n.default.vErrors)}e.reportExtraError=s;function i(d,m){d.assign(n.default.errors,m),d.if((0,t._)`${n.default.vErrors} !== null`,()=>d.if(m,()=>d.assign((0,t._)`${n.default.vErrors}.length`,m),()=>d.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function a({gen:d,keyword:m,schemaValue:u,data:h,errsCount:_,it:$}){if(_===void 0)throw new Error("ajv implementation error");const k=d.name("err");d.forRange("i",_,n.default.errors,S=>{d.const(k,(0,t._)`${n.default.vErrors}[${S}]`),d.if((0,t._)`${k}.instancePath === undefined`,()=>d.assign((0,t._)`${k}.instancePath`,(0,t.strConcat)(n.default.instancePath,$.errorPath))),d.assign((0,t._)`${k}.schemaPath`,(0,t.str)`${$.errSchemaPath}/${m}`),$.opts.verbose&&(d.assign((0,t._)`${k}.schema`,u),d.assign((0,t._)`${k}.data`,h))})}e.extendErrors=a;function c(d,m){const u=d.const("err",m);d.if((0,t._)`${n.default.vErrors} === null`,()=>d.assign(n.default.vErrors,(0,t._)`[${u}]`),(0,t._)`${n.default.vErrors}.push(${u})`),d.code((0,t._)`${n.default.errors}++`)}function f(d,m){const{gen:u,validateName:h,schemaEnv:_}=d;_.$async?u.throw((0,t._)`new ${d.ValidationError}(${m})`):(u.assign((0,t._)`${h}.errors`,m),u.return(!1))}const l={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(d,m,u){const{createErrors:h}=d.it;return h===!1?(0,t._)`{}`:b(d,m,u)}function b(d,m,u={}){const{gen:h,it:_}=d,$=[y(_,u),v(d,u)];return g(d,m,$),h.object(...$)}function y({errorPath:d},{instancePath:m}){const u=m?(0,t.str)`${d}${(0,r.getErrorPath)(m,r.Type.Str)}`:d;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,u)]}function v({keyword:d,it:{errSchemaPath:m}},{schemaPath:u,parentSchema:h}){let _=h?m:(0,t.str)`${m}/${d}`;return u&&(_=(0,t.str)`${_}${(0,r.getErrorPath)(u,r.Type.Str)}`),[l.schemaPath,_]}function g(d,{params:m,message:u},h){const{keyword:_,data:$,schemaValue:k,it:S}=d,{opts:P,propertyName:O,topSchemaRef:q,schemaPath:M}=S;h.push([l.keyword,_],[l.params,typeof m=="function"?m(d):m||(0,t._)`{}`]),P.messages&&h.push([l.message,typeof u=="function"?u(d):u]),P.verbose&&h.push([l.schema,k],[l.parentSchema,(0,t._)`${q}${M}`],[n.default.data,$]),O&&h.push([l.propertyName,O])}}(ps)),ps}var Sc;function r0(){if(Sc)return vt;Sc=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.boolOrEmptySchema=vt.topBoolOrEmptySchema=void 0;const e=zo(),t=oe(),r=dt(),n={message:"boolean schema is false"};function o(a){const{gen:c,schema:f,validateName:l}=a;f===!1?i(a,!1):typeof f=="object"&&f.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${l}.errors`,null),c.return(!0))}vt.topBoolOrEmptySchema=o;function s(a,c){const{gen:f,schema:l}=a;l===!1?(f.var(c,!1),i(a)):f.var(c,!0)}vt.boolOrEmptySchema=s;function i(a,c){const{gen:f,data:l}=a,p={gen:f,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(p,n,void 0,c)}return vt}var Ee={},$t={},Ec;function yf(){if(Ec)return $t;Ec=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.getRules=$t.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(o){return typeof o=="string"&&t.has(o)}$t.isJSONType=r;function n(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}return $t.getRules=n,$t}var Ze={},xc;function bf(){if(xc)return Ze;xc=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.shouldUseRule=Ze.shouldUseGroup=Ze.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const i=o.RULES.types[s];return i&&i!==!0&&t(n,i)}Ze.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}Ze.shouldUseGroup=t;function r(n,o){var s;return n[o.keyword]!==void 0||((s=o.definition.implements)===null||s===void 0?void 0:s.some(i=>n[i]!==void 0))}return Ze.shouldUseRule=r,Ze}var Pc;function go(){if(Pc)return Ee;Pc=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.reportTypeError=Ee.checkDataTypes=Ee.checkDataType=Ee.coerceAndCheckDataType=Ee.getJSONTypes=Ee.getSchemaTypes=Ee.DataType=void 0;const e=yf(),t=bf(),r=zo(),n=oe(),o=ue();var s;(function(u){u[u.Correct=0]="Correct",u[u.Wrong=1]="Wrong"})(s||(Ee.DataType=s={}));function i(u){const h=a(u.type);if(h.includes("null")){if(u.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!h.length&&u.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');u.nullable===!0&&h.push("null")}return h}Ee.getSchemaTypes=i;function a(u){const h=Array.isArray(u)?u:u?[u]:[];if(h.every(e.isJSONType))return h;throw new Error("type must be JSONType or JSONType[]: "+h.join(","))}Ee.getJSONTypes=a;function c(u,h){const{gen:_,data:$,opts:k}=u,S=l(h,k.coerceTypes),P=h.length>0&&!(S.length===0&&h.length===1&&(0,t.schemaHasRulesForType)(u,h[0]));if(P){const O=v(h,$,k.strictNumbers,s.Wrong);_.if(O,()=>{S.length?p(u,h,S):d(u)})}return P}Ee.coerceAndCheckDataType=c;const f=new Set(["string","number","integer","boolean","null"]);function l(u,h){return h?u.filter(_=>f.has(_)||h==="array"&&_==="array"):[]}function p(u,h,_){const{gen:$,data:k,opts:S}=u,P=$.let("dataType",(0,n._)`typeof ${k}`),O=$.let("coerced",(0,n._)`undefined`);S.coerceTypes==="array"&&$.if((0,n._)`${P} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>$.assign(k,(0,n._)`${k}[0]`).assign(P,(0,n._)`typeof ${k}`).if(v(h,k,S.strictNumbers),()=>$.assign(O,k))),$.if((0,n._)`${O} !== undefined`);for(const M of _)(f.has(M)||M==="array"&&S.coerceTypes==="array")&&q(M);$.else(),d(u),$.endIf(),$.if((0,n._)`${O} !== undefined`,()=>{$.assign(k,O),b(u,O)});function q(M){switch(M){case"string":$.elseIf((0,n._)`${P} == "number" || ${P} == "boolean"`).assign(O,(0,n._)`"" + ${k}`).elseIf((0,n._)`${k} === null`).assign(O,(0,n._)`""`);return;case"number":$.elseIf((0,n._)`${P} == "boolean" || ${k} === null
18
- || (${P} == "string" && ${k} && ${k} == +${k})`).assign(O,(0,n._)`+${k}`);return;case"integer":$.elseIf((0,n._)`${P} === "boolean" || ${k} === null
19
- || (${P} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(O,(0,n._)`+${k}`);return;case"boolean":$.elseIf((0,n._)`${k} === "false" || ${k} === 0 || ${k} === null`).assign(O,!1).elseIf((0,n._)`${k} === "true" || ${k} === 1`).assign(O,!0);return;case"null":$.elseIf((0,n._)`${k} === "" || ${k} === 0 || ${k} === false`),$.assign(O,null);return;case"array":$.elseIf((0,n._)`${P} === "string" || ${P} === "number"
20
- || ${P} === "boolean" || ${k} === null`).assign(O,(0,n._)`[${k}]`)}}}function b({gen:u,parentData:h,parentDataProperty:_},$){u.if((0,n._)`${h} !== undefined`,()=>u.assign((0,n._)`${h}[${_}]`,$))}function y(u,h,_,$=s.Correct){const k=$===s.Correct?n.operators.EQ:n.operators.NEQ;let S;switch(u){case"null":return(0,n._)`${h} ${k} null`;case"array":S=(0,n._)`Array.isArray(${h})`;break;case"object":S=(0,n._)`${h} && typeof ${h} == "object" && !Array.isArray(${h})`;break;case"integer":S=P((0,n._)`!(${h} % 1) && !isNaN(${h})`);break;case"number":S=P();break;default:return(0,n._)`typeof ${h} ${k} ${u}`}return $===s.Correct?S:(0,n.not)(S);function P(O=n.nil){return(0,n.and)((0,n._)`typeof ${h} == "number"`,O,_?(0,n._)`isFinite(${h})`:n.nil)}}Ee.checkDataType=y;function v(u,h,_,$){if(u.length===1)return y(u[0],h,_,$);let k;const S=(0,o.toHash)(u);if(S.array&&S.object){const P=(0,n._)`typeof ${h} != "object"`;k=S.null?P:(0,n._)`!${h} || ${P}`,delete S.null,delete S.array,delete S.object}else k=n.nil;S.number&&delete S.integer;for(const P in S)k=(0,n.and)(k,y(P,h,_,$));return k}Ee.checkDataTypes=v;const g={message:({schema:u})=>`must be ${u}`,params:({schema:u,schemaValue:h})=>typeof u=="string"?(0,n._)`{type: ${u}}`:(0,n._)`{type: ${h}}`};function d(u){const h=m(u);(0,r.reportError)(h,g)}Ee.reportTypeError=d;function m(u){const{gen:h,data:_,schema:$}=u,k=(0,o.schemaRefOrVal)(u,$,"type");return{gen:h,keyword:"type",data:_,schema:$.type,schemaCode:k,schemaValue:k,parentSchema:$,params:{},it:u}}return Ee}var Yt={},Cc;function n0(){if(Cc)return Yt;Cc=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.assignDefaults=void 0;const e=oe(),t=ue();function r(o,s){const{properties:i,items:a}=o.schema;if(s==="object"&&i)for(const c in i)n(o,c,i[c].default);else s==="array"&&Array.isArray(a)&&a.forEach((c,f)=>n(o,f,c.default))}Yt.assignDefaults=r;function n(o,s,i){const{gen:a,compositeRule:c,data:f,opts:l}=o;if(i===void 0)return;const p=(0,e._)`${f}${(0,e.getProperty)(s)}`;if(c){(0,t.checkStrictMode)(o,`default is ignored for: ${p}`);return}let b=(0,e._)`${p} === undefined`;l.useDefaults==="empty"&&(b=(0,e._)`${b} || ${p} === null || ${p} === ""`),a.if(b,(0,e._)`${p} = ${(0,e.stringify)(i)}`)}return Yt}var De={},he={},jc;function Ke(){if(jc)return he;jc=1,Object.defineProperty(he,"__esModule",{value:!0}),he.validateUnion=he.validateArray=he.usePattern=he.callValidateCode=he.schemaProperties=he.allSchemaProperties=he.noPropertyInData=he.propertyInData=he.isOwnProperty=he.hasPropFunc=he.reportMissingProp=he.checkMissingProp=he.checkReportMissingProp=void 0;const e=oe(),t=ue(),r=dt(),n=ue();function o(u,h){const{gen:_,data:$,it:k}=u;_.if(l(_,$,h,k.opts.ownProperties),()=>{u.setParams({missingProperty:(0,e._)`${h}`},!0),u.error()})}he.checkReportMissingProp=o;function s({gen:u,data:h,it:{opts:_}},$,k){return(0,e.or)(...$.map(S=>(0,e.and)(l(u,h,S,_.ownProperties),(0,e._)`${k} = ${S}`)))}he.checkMissingProp=s;function i(u,h){u.setParams({missingProperty:h},!0),u.error()}he.reportMissingProp=i;function a(u){return u.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}he.hasPropFunc=a;function c(u,h,_){return(0,e._)`${a(u)}.call(${h}, ${_})`}he.isOwnProperty=c;function f(u,h,_,$){const k=(0,e._)`${h}${(0,e.getProperty)(_)} !== undefined`;return $?(0,e._)`${k} && ${c(u,h,_)}`:k}he.propertyInData=f;function l(u,h,_,$){const k=(0,e._)`${h}${(0,e.getProperty)(_)} === undefined`;return $?(0,e.or)(k,(0,e.not)(c(u,h,_))):k}he.noPropertyInData=l;function p(u){return u?Object.keys(u).filter(h=>h!=="__proto__"):[]}he.allSchemaProperties=p;function b(u,h){return p(h).filter(_=>!(0,t.alwaysValidSchema)(u,h[_]))}he.schemaProperties=b;function y({schemaCode:u,data:h,it:{gen:_,topSchemaRef:$,schemaPath:k,errorPath:S},it:P},O,q,M){const L=M?(0,e._)`${u}, ${h}, ${$}${k}`:h,D=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,P.parentData],[r.default.parentDataProperty,P.parentDataProperty],[r.default.rootData,r.default.rootData]];P.opts.dynamicRef&&D.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const V=(0,e._)`${L}, ${_.object(...D)}`;return q!==e.nil?(0,e._)`${O}.call(${q}, ${V})`:(0,e._)`${O}(${V})`}he.callValidateCode=y;const v=(0,e._)`new RegExp`;function g({gen:u,it:{opts:h}},_){const $=h.unicodeRegExp?"u":"",{regExp:k}=h.code,S=k(_,$);return u.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${k.code==="new RegExp"?v:(0,n.useFunc)(u,k)}(${_}, ${$})`})}he.usePattern=g;function d(u){const{gen:h,data:_,keyword:$,it:k}=u,S=h.name("valid");if(k.allErrors){const O=h.let("valid",!0);return P(()=>h.assign(O,!1)),O}return h.var(S,!0),P(()=>h.break()),S;function P(O){const q=h.const("len",(0,e._)`${_}.length`);h.forRange("i",0,q,M=>{u.subschema({keyword:$,dataProp:M,dataPropType:t.Type.Num},S),h.if((0,e.not)(S),O)})}}he.validateArray=d;function m(u){const{gen:h,schema:_,keyword:$,it:k}=u;if(!Array.isArray(_))throw new Error("ajv implementation error");if(_.some(q=>(0,t.alwaysValidSchema)(k,q))&&!k.opts.unevaluated)return;const P=h.let("valid",!1),O=h.name("_valid");h.block(()=>_.forEach((q,M)=>{const L=u.subschema({keyword:$,schemaProp:M,compositeRule:!0},O);h.assign(P,(0,e._)`${P} || ${O}`),u.mergeValidEvaluated(L,O)||h.if((0,e.not)(P))})),u.result(P,()=>u.reset(),()=>u.error(!0))}return he.validateUnion=m,he}var Rc;function o0(){if(Rc)return De;Rc=1,Object.defineProperty(De,"__esModule",{value:!0}),De.validateKeywordUsage=De.validSchemaType=De.funcKeywordCode=De.macroKeywordCode=void 0;const e=oe(),t=dt(),r=Ke(),n=zo();function o(b,y){const{gen:v,keyword:g,schema:d,parentSchema:m,it:u}=b,h=y.macro.call(u.self,d,m,u),_=f(v,g,h);u.opts.validateSchema!==!1&&u.self.validateSchema(h,!0);const $=v.name("valid");b.subschema({schema:h,schemaPath:e.nil,errSchemaPath:`${u.errSchemaPath}/${g}`,topSchemaRef:_,compositeRule:!0},$),b.pass($,()=>b.error(!0))}De.macroKeywordCode=o;function s(b,y){var v;const{gen:g,keyword:d,schema:m,parentSchema:u,$data:h,it:_}=b;c(_,y);const $=!h&&y.compile?y.compile.call(_.self,m,u,_):y.validate,k=f(g,d,$),S=g.let("valid");b.block$data(S,P),b.ok((v=y.valid)!==null&&v!==void 0?v:S);function P(){if(y.errors===!1)M(),y.modifying&&i(b),L(()=>b.error());else{const D=y.async?O():q();y.modifying&&i(b),L(()=>a(b,D))}}function O(){const D=g.let("ruleErrs",null);return g.try(()=>M((0,e._)`await `),V=>g.assign(S,!1).if((0,e._)`${V} instanceof ${_.ValidationError}`,()=>g.assign(D,(0,e._)`${V}.errors`),()=>g.throw(V))),D}function q(){const D=(0,e._)`${k}.errors`;return g.assign(D,null),M(e.nil),D}function M(D=y.async?(0,e._)`await `:e.nil){const V=_.opts.passContext?t.default.this:t.default.self,W=!("compile"in y&&!h||y.schema===!1);g.assign(S,(0,e._)`${D}${(0,r.callValidateCode)(b,k,V,W)}`,y.modifying)}function L(D){var V;g.if((0,e.not)((V=y.valid)!==null&&V!==void 0?V:S),D)}}De.funcKeywordCode=s;function i(b){const{gen:y,data:v,it:g}=b;y.if(g.parentData,()=>y.assign(v,(0,e._)`${g.parentData}[${g.parentDataProperty}]`))}function a(b,y){const{gen:v}=b;v.if((0,e._)`Array.isArray(${y})`,()=>{v.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(b)},()=>b.error())}function c({schemaEnv:b},y){if(y.async&&!b.$async)throw new Error("async keyword in sync schema")}function f(b,y,v){if(v===void 0)throw new Error(`keyword "${y}" failed to compile`);return b.scopeValue("keyword",typeof v=="function"?{ref:v}:{ref:v,code:(0,e.stringify)(v)})}function l(b,y,v=!1){return!y.length||y.some(g=>g==="array"?Array.isArray(b):g==="object"?b&&typeof b=="object"&&!Array.isArray(b):typeof b==g||v&&typeof b>"u")}De.validSchemaType=l;function p({schema:b,opts:y,self:v,errSchemaPath:g},d,m){if(Array.isArray(d.keyword)?!d.keyword.includes(m):d.keyword!==m)throw new Error("ajv implementation error");const u=d.dependencies;if(u?.some(h=>!Object.prototype.hasOwnProperty.call(b,h)))throw new Error(`parent schema must have dependencies of ${m}: ${u.join(",")}`);if(d.validateSchema&&!d.validateSchema(b[m])){const _=`keyword "${m}" value is invalid at path "${g}": `+v.errorsText(d.validateSchema.errors);if(y.validateSchema==="log")v.logger.error(_);else throw new Error(_)}}return De.validateKeywordUsage=p,De}var et={},Oc;function s0(){if(Oc)return et;Oc=1,Object.defineProperty(et,"__esModule",{value:!0}),et.extendSubschemaMode=et.extendSubschemaData=et.getSubschema=void 0;const e=oe(),t=ue();function r(s,{keyword:i,schemaProp:a,schema:c,schemaPath:f,errSchemaPath:l,topSchemaRef:p}){if(i!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const b=s.schema[i];return a===void 0?{schema:b,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(i)}`,errSchemaPath:`${s.errSchemaPath}/${i}`}:{schema:b[a],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(i)}${(0,e.getProperty)(a)}`,errSchemaPath:`${s.errSchemaPath}/${i}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(f===void 0||l===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:f,topSchemaRef:p,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}et.getSubschema=r;function n(s,i,{dataProp:a,dataPropType:c,data:f,dataTypes:l,propertyName:p}){if(f!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:b}=i;if(a!==void 0){const{errorPath:v,dataPathArr:g,opts:d}=i,m=b.let("data",(0,e._)`${i.data}${(0,e.getProperty)(a)}`,!0);y(m),s.errorPath=(0,e.str)`${v}${(0,t.getErrorPath)(a,c,d.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${a}`,s.dataPathArr=[...g,s.parentDataProperty]}if(f!==void 0){const v=f instanceof e.Name?f:b.let("data",f,!0);y(v),p!==void 0&&(s.propertyName=p)}l&&(s.dataTypes=l);function y(v){s.data=v,s.dataLevel=i.dataLevel+1,s.dataTypes=[],i.definedProperties=new Set,s.parentData=i.data,s.dataNames=[...i.dataNames,v]}}et.extendSubschemaData=n;function o(s,{jtdDiscriminator:i,jtdMetadata:a,compositeRule:c,createErrors:f,allErrors:l}){c!==void 0&&(s.compositeRule=c),f!==void 0&&(s.createErrors=f),l!==void 0&&(s.allErrors=l),s.jtdDiscriminator=i,s.jtdMetadata=a}return et.extendSubschemaMode=o,et}var je={},ys={exports:{}},Tc;function i0(){if(Tc)return ys.exports;Tc=1;var e=ys.exports=function(n,o,s){typeof o=="function"&&(s=o,o={}),s=o.cb||s;var i=typeof s=="function"?s:s.pre||function(){},a=s.post||function(){};t(o,i,a,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(n,o,s,i,a,c,f,l,p,b){if(i&&typeof i=="object"&&!Array.isArray(i)){o(i,a,c,f,l,p,b);for(var y in i){var v=i[y];if(Array.isArray(v)){if(y in e.arrayKeywords)for(var g=0;g<v.length;g++)t(n,o,s,v[g],a+"/"+y+"/"+g,c,a,y,i,g)}else if(y in e.propsKeywords){if(v&&typeof v=="object")for(var d in v)t(n,o,s,v[d],a+"/"+y+"/"+r(d),c,a,y,i,d)}else(y in e.keywords||n.allKeys&&!(y in e.skipKeywords))&&t(n,o,s,v,a+"/"+y,c,a,y,i)}s(i,a,c,f,l,p,b)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return ys.exports}var Nc;function qo(){if(Nc)return je;Nc=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;const e=ue(),t=No(),r=i0(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(g,d=!0){return typeof g=="boolean"?!0:d===!0?!i(g):d?a(g)<=d:!1}je.inlineRef=o;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(g){for(const d in g){if(s.has(d))return!0;const m=g[d];if(Array.isArray(m)&&m.some(i)||typeof m=="object"&&i(m))return!0}return!1}function a(g){let d=0;for(const m in g){if(m==="$ref")return 1/0;if(d++,!n.has(m)&&(typeof g[m]=="object"&&(0,e.eachItem)(g[m],u=>d+=a(u)),d===1/0))return 1/0}return d}function c(g,d="",m){m!==!1&&(d=p(d));const u=g.parse(d);return f(g,u)}je.getFullPath=c;function f(g,d){return g.serialize(d).split("#")[0]+"#"}je._getFullPath=f;const l=/#\/?$/;function p(g){return g?g.replace(l,""):""}je.normalizeId=p;function b(g,d,m){return m=p(m),g.resolve(d,m)}je.resolveUrl=b;const y=/^[a-z_][-a-z0-9._]*$/i;function v(g,d){if(typeof g=="boolean")return{};const{schemaId:m,uriResolver:u}=this.opts,h=p(g[m]||d),_={"":h},$=c(u,h,!1),k={},S=new Set;return r(g,{allKeys:!0},(q,M,L,D)=>{if(D===void 0)return;const V=$+M;let W=_[D];typeof q[m]=="string"&&(W=Q.call(this,q[m])),Z.call(this,q.$anchor),Z.call(this,q.$dynamicAnchor),_[M]=W;function Q(B){const ee=this.opts.uriResolver.resolve;if(B=p(W?ee(W,B):B),S.has(B))throw O(B);S.add(B);let z=this.refs[B];return typeof z=="string"&&(z=this.refs[z]),typeof z=="object"?P(q,z.schema,B):B!==p(V)&&(B[0]==="#"?(P(q,k[B],B),k[B]=q):this.refs[B]=V),B}function Z(B){if(typeof B=="string"){if(!y.test(B))throw new Error(`invalid anchor "${B}"`);Q.call(this,`#${B}`)}}}),k;function P(q,M,L){if(M!==void 0&&!t(q,M))throw O(L)}function O(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return je.getSchemaRefs=v,je}var Ac;function Fo(){if(Ac)return Qe;Ac=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.getData=Qe.KeywordCxt=Qe.validateFunctionCode=void 0;const e=r0(),t=go(),r=bf(),n=go(),o=n0(),s=o0(),i=s0(),a=oe(),c=dt(),f=qo(),l=ue(),p=zo();function b(x){if($(x)&&(S(x),_(x))){d(x);return}y(x,()=>(0,e.topBoolOrEmptySchema)(x))}Qe.validateFunctionCode=b;function y({gen:x,validateName:j,schema:N,schemaEnv:F,opts:H},G){H.code.es5?x.func(j,(0,a._)`${c.default.data}, ${c.default.valCxt}`,F.$async,()=>{x.code((0,a._)`"use strict"; ${u(N,H)}`),g(x,H),x.code(G)}):x.func(j,(0,a._)`${c.default.data}, ${v(H)}`,F.$async,()=>x.code(u(N,H)).code(G))}function v(x){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${x.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function g(x,j){x.if(c.default.valCxt,()=>{x.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),x.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),x.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),x.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),j.dynamicRef&&x.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{x.var(c.default.instancePath,(0,a._)`""`),x.var(c.default.parentData,(0,a._)`undefined`),x.var(c.default.parentDataProperty,(0,a._)`undefined`),x.var(c.default.rootData,c.default.data),j.dynamicRef&&x.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function d(x){const{schema:j,opts:N,gen:F}=x;y(x,()=>{N.$comment&&j.$comment&&D(x),q(x),F.let(c.default.vErrors,null),F.let(c.default.errors,0),N.unevaluated&&m(x),P(x),V(x)})}function m(x){const{gen:j,validateName:N}=x;x.evaluated=j.const("evaluated",(0,a._)`${N}.evaluated`),j.if((0,a._)`${x.evaluated}.dynamicProps`,()=>j.assign((0,a._)`${x.evaluated}.props`,(0,a._)`undefined`)),j.if((0,a._)`${x.evaluated}.dynamicItems`,()=>j.assign((0,a._)`${x.evaluated}.items`,(0,a._)`undefined`))}function u(x,j){const N=typeof x=="object"&&x[j.schemaId];return N&&(j.code.source||j.code.process)?(0,a._)`/*# sourceURL=${N} */`:a.nil}function h(x,j){if($(x)&&(S(x),_(x))){k(x,j);return}(0,e.boolOrEmptySchema)(x,j)}function _({schema:x,self:j}){if(typeof x=="boolean")return!x;for(const N in x)if(j.RULES.all[N])return!0;return!1}function $(x){return typeof x.schema!="boolean"}function k(x,j){const{schema:N,gen:F,opts:H}=x;H.$comment&&N.$comment&&D(x),M(x),L(x);const G=F.const("_errs",c.default.errors);P(x,G),F.var(j,(0,a._)`${G} === ${c.default.errors}`)}function S(x){(0,l.checkUnknownRules)(x),O(x)}function P(x,j){if(x.opts.jtd)return Q(x,[],!1,j);const N=(0,t.getSchemaTypes)(x.schema),F=(0,t.coerceAndCheckDataType)(x,N);Q(x,N,!F,j)}function O(x){const{schema:j,errSchemaPath:N,opts:F,self:H}=x;j.$ref&&F.ignoreKeywordsWithRef&&(0,l.schemaHasRulesButRef)(j,H.RULES)&&H.logger.warn(`$ref: keywords ignored in schema at path "${N}"`)}function q(x){const{schema:j,opts:N}=x;j.default!==void 0&&N.useDefaults&&N.strictSchema&&(0,l.checkStrictMode)(x,"default is ignored in the schema root")}function M(x){const j=x.schema[x.opts.schemaId];j&&(x.baseId=(0,f.resolveUrl)(x.opts.uriResolver,x.baseId,j))}function L(x){if(x.schema.$async&&!x.schemaEnv.$async)throw new Error("async schema in sync schema")}function D({gen:x,schemaEnv:j,schema:N,errSchemaPath:F,opts:H}){const G=N.$comment;if(H.$comment===!0)x.code((0,a._)`${c.default.self}.logger.log(${G})`);else if(typeof H.$comment=="function"){const ae=(0,a.str)`${F}/$comment`,ye=x.scopeValue("root",{ref:j.root});x.code((0,a._)`${c.default.self}.opts.$comment(${G}, ${ae}, ${ye}.schema)`)}}function V(x){const{gen:j,schemaEnv:N,validateName:F,ValidationError:H,opts:G}=x;N.$async?j.if((0,a._)`${c.default.errors} === 0`,()=>j.return(c.default.data),()=>j.throw((0,a._)`new ${H}(${c.default.vErrors})`)):(j.assign((0,a._)`${F}.errors`,c.default.vErrors),G.unevaluated&&W(x),j.return((0,a._)`${c.default.errors} === 0`))}function W({gen:x,evaluated:j,props:N,items:F}){N instanceof a.Name&&x.assign((0,a._)`${j}.props`,N),F instanceof a.Name&&x.assign((0,a._)`${j}.items`,F)}function Q(x,j,N,F){const{gen:H,schema:G,data:ae,allErrors:ye,opts:fe,self:de}=x,{RULES:ce}=de;if(G.$ref&&(fe.ignoreKeywordsWithRef||!(0,l.schemaHasRulesButRef)(G,ce))){H.block(()=>U(x,"$ref",ce.all.$ref.definition));return}fe.jtd||B(x,j),H.block(()=>{for(const me of ce.rules)Te(me);Te(ce.post)});function Te(me){(0,r.shouldUseGroup)(G,me)&&(me.type?(H.if((0,n.checkDataType)(me.type,ae,fe.strictNumbers)),Z(x,me),j.length===1&&j[0]===me.type&&N&&(H.else(),(0,n.reportTypeError)(x)),H.endIf()):Z(x,me),ye||H.if((0,a._)`${c.default.errors} === ${F||0}`))}}function Z(x,j){const{gen:N,schema:F,opts:{useDefaults:H}}=x;H&&(0,o.assignDefaults)(x,j.type),N.block(()=>{for(const G of j.rules)(0,r.shouldUseRule)(F,G)&&U(x,G.keyword,G.definition,j.type)})}function B(x,j){x.schemaEnv.meta||!x.opts.strictTypes||(ee(x,j),x.opts.allowUnionTypes||z(x,j),C(x,x.dataTypes))}function ee(x,j){if(j.length){if(!x.dataTypes.length){x.dataTypes=j;return}j.forEach(N=>{R(x.dataTypes,N)||E(x,`type "${N}" not allowed by context "${x.dataTypes.join(",")}"`)}),w(x,j)}}function z(x,j){j.length>1&&!(j.length===2&&j.includes("null"))&&E(x,"use allowUnionTypes to allow union type keyword")}function C(x,j){const N=x.self.RULES.all;for(const F in N){const H=N[F];if(typeof H=="object"&&(0,r.shouldUseRule)(x.schema,H)){const{type:G}=H.definition;G.length&&!G.some(ae=>A(j,ae))&&E(x,`missing type "${G.join(",")}" for keyword "${F}"`)}}}function A(x,j){return x.includes(j)||j==="number"&&x.includes("integer")}function R(x,j){return x.includes(j)||j==="integer"&&x.includes("number")}function w(x,j){const N=[];for(const F of x.dataTypes)R(j,F)?N.push(F):j.includes("integer")&&F==="number"&&N.push("integer");x.dataTypes=N}function E(x,j){const N=x.schemaEnv.baseId+x.errSchemaPath;j+=` at "${N}" (strictTypes)`,(0,l.checkStrictMode)(x,j,x.opts.strictTypes)}class T{constructor(j,N,F){if((0,s.validateKeywordUsage)(j,N,F),this.gen=j.gen,this.allErrors=j.allErrors,this.keyword=F,this.data=j.data,this.schema=j.schema[F],this.$data=N.$data&&j.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l.schemaRefOrVal)(j,this.schema,F,this.$data),this.schemaType=N.schemaType,this.parentSchema=j.schema,this.params={},this.it=j,this.def=N,this.$data)this.schemaCode=j.gen.const("vSchema",J(this.$data,j));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,N.schemaType,N.allowUndefined))throw new Error(`${F} value must be ${JSON.stringify(N.schemaType)}`);("code"in N?N.trackErrors:N.errors!==!1)&&(this.errsCount=j.gen.const("_errs",c.default.errors))}result(j,N,F){this.failResult((0,a.not)(j),N,F)}failResult(j,N,F){this.gen.if(j),F?F():this.error(),N?(this.gen.else(),N(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(j,N){this.failResult((0,a.not)(j),void 0,N)}fail(j){if(j===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(j),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(j){if(!this.$data)return this.fail(j);const{schemaCode:N}=this;this.fail((0,a._)`${N} !== undefined && (${(0,a.or)(this.invalid$data(),j)})`)}error(j,N,F){if(N){this.setParams(N),this._error(j,F),this.setParams({});return}this._error(j,F)}_error(j,N){(j?p.reportExtraError:p.reportError)(this,this.def.error,N)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(j){this.allErrors||this.gen.if(j)}setParams(j,N){N?Object.assign(this.params,j):this.params=j}block$data(j,N,F=a.nil){this.gen.block(()=>{this.check$data(j,F),N()})}check$data(j=a.nil,N=a.nil){if(!this.$data)return;const{gen:F,schemaCode:H,schemaType:G,def:ae}=this;F.if((0,a.or)((0,a._)`${H} === undefined`,N)),j!==a.nil&&F.assign(j,!0),(G.length||ae.validateSchema)&&(F.elseIf(this.invalid$data()),this.$dataError(),j!==a.nil&&F.assign(j,!1)),F.else()}invalid$data(){const{gen:j,schemaCode:N,schemaType:F,def:H,it:G}=this;return(0,a.or)(ae(),ye());function ae(){if(F.length){if(!(N instanceof a.Name))throw new Error("ajv implementation error");const fe=Array.isArray(F)?F:[F];return(0,a._)`${(0,n.checkDataTypes)(fe,N,G.opts.strictNumbers,n.DataType.Wrong)}`}return a.nil}function ye(){if(H.validateSchema){const fe=j.scopeValue("validate$data",{ref:H.validateSchema});return(0,a._)`!${fe}(${N})`}return a.nil}}subschema(j,N){const F=(0,i.getSubschema)(this.it,j);(0,i.extendSubschemaData)(F,this.it,j),(0,i.extendSubschemaMode)(F,j);const H={...this.it,...F,items:void 0,props:void 0};return h(H,N),H}mergeEvaluated(j,N){const{it:F,gen:H}=this;F.opts.unevaluated&&(F.props!==!0&&j.props!==void 0&&(F.props=l.mergeEvaluated.props(H,j.props,F.props,N)),F.items!==!0&&j.items!==void 0&&(F.items=l.mergeEvaluated.items(H,j.items,F.items,N)))}mergeValidEvaluated(j,N){const{it:F,gen:H}=this;if(F.opts.unevaluated&&(F.props!==!0||F.items!==!0))return H.if(N,()=>this.mergeEvaluated(j,a.Name)),!0}}Qe.KeywordCxt=T;function U(x,j,N,F){const H=new T(x,N,j);"code"in N?N.code(H,F):H.$data&&N.validate?(0,s.funcKeywordCode)(H,N):"macro"in N?(0,s.macroKeywordCode)(H,N):(N.compile||N.validate)&&(0,s.funcKeywordCode)(H,N)}const K=/^\/(?:[^~]|~0|~1)*$/,X=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function J(x,{dataLevel:j,dataNames:N,dataPathArr:F}){let H,G;if(x==="")return c.default.rootData;if(x[0]==="/"){if(!K.test(x))throw new Error(`Invalid JSON-pointer: ${x}`);H=x,G=c.default.rootData}else{const de=X.exec(x);if(!de)throw new Error(`Invalid JSON-pointer: ${x}`);const ce=+de[1];if(H=de[2],H==="#"){if(ce>=j)throw new Error(fe("property/index",ce));return F[j-ce]}if(ce>j)throw new Error(fe("data",ce));if(G=N[j-ce],!H)return G}let ae=G;const ye=H.split("/");for(const de of ye)de&&(G=(0,a._)`${G}${(0,a.getProperty)((0,l.unescapeJsonPointer)(de))}`,ae=(0,a._)`${ae} && ${G}`);return ae;function fe(de,ce){return`Cannot access ${de} ${ce} levels up, current level is ${j}`}}return Qe.getData=J,Qe}var pn={},Ic;function di(){if(Ic)return pn;Ic=1,Object.defineProperty(pn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return pn.default=e,pn}var hn={},Mc;function Do(){if(Mc)return hn;Mc=1,Object.defineProperty(hn,"__esModule",{value:!0});const e=qo();class t extends Error{constructor(n,o,s,i){super(i||`can't resolve reference ${s} from id ${o}`),this.missingRef=(0,e.resolveUrl)(n,o,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return hn.default=t,hn}var Ae={},zc;function pi(){if(zc)return Ae;zc=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.resolveSchema=Ae.getCompilingSchema=Ae.resolveRef=Ae.compileSchema=Ae.SchemaEnv=void 0;const e=oe(),t=di(),r=dt(),n=qo(),o=ue(),s=Fo();class i{constructor(m){var u;this.refs={},this.dynamicAnchors={};let h;typeof m.schema=="object"&&(h=m.schema),this.schema=m.schema,this.schemaId=m.schemaId,this.root=m.root||this,this.baseId=(u=m.baseId)!==null&&u!==void 0?u:(0,n.normalizeId)(h?.[m.schemaId||"$id"]),this.schemaPath=m.schemaPath,this.localRefs=m.localRefs,this.meta=m.meta,this.$async=h?.$async,this.refs={}}}Ae.SchemaEnv=i;function a(d){const m=l.call(this,d);if(m)return m;const u=(0,n.getFullPath)(this.opts.uriResolver,d.root.baseId),{es5:h,lines:_}=this.opts.code,{ownProperties:$}=this.opts,k=new e.CodeGen(this.scope,{es5:h,lines:_,ownProperties:$});let S;d.$async&&(S=k.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=k.scopeName("validate");d.validateName=P;const O={gen:k,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:k.scopeValue("schema",this.opts.code.source===!0?{ref:d.schema,code:(0,e.stringify)(d.schema)}:{ref:d.schema}),validateName:P,ValidationError:S,schema:d.schema,schemaEnv:d,rootId:u,baseId:d.baseId||u,schemaPath:e.nil,errSchemaPath:d.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(d),(0,s.validateFunctionCode)(O),k.optimize(this.opts.code.optimize);const M=k.toString();q=`${k.scopeRefs(r.default.scope)}return ${M}`,this.opts.code.process&&(q=this.opts.code.process(q,d));const D=new Function(`${r.default.self}`,`${r.default.scope}`,q)(this,this.scope.get());if(this.scope.value(P,{ref:D}),D.errors=null,D.schema=d.schema,D.schemaEnv=d,d.$async&&(D.$async=!0),this.opts.code.source===!0&&(D.source={validateName:P,validateCode:M,scopeValues:k._values}),this.opts.unevaluated){const{props:V,items:W}=O;D.evaluated={props:V instanceof e.Name?void 0:V,items:W instanceof e.Name?void 0:W,dynamicProps:V instanceof e.Name,dynamicItems:W instanceof e.Name},D.source&&(D.source.evaluated=(0,e.stringify)(D.evaluated))}return d.validate=D,d}catch(M){throw delete d.validate,delete d.validateName,q&&this.logger.error("Error compiling schema, function code:",q),M}finally{this._compilations.delete(d)}}Ae.compileSchema=a;function c(d,m,u){var h;u=(0,n.resolveUrl)(this.opts.uriResolver,m,u);const _=d.refs[u];if(_)return _;let $=b.call(this,d,u);if($===void 0){const k=(h=d.localRefs)===null||h===void 0?void 0:h[u],{schemaId:S}=this.opts;k&&($=new i({schema:k,schemaId:S,root:d,baseId:m}))}if($!==void 0)return d.refs[u]=f.call(this,$)}Ae.resolveRef=c;function f(d){return(0,n.inlineRef)(d.schema,this.opts.inlineRefs)?d.schema:d.validate?d:a.call(this,d)}function l(d){for(const m of this._compilations)if(p(m,d))return m}Ae.getCompilingSchema=l;function p(d,m){return d.schema===m.schema&&d.root===m.root&&d.baseId===m.baseId}function b(d,m){let u;for(;typeof(u=this.refs[m])=="string";)m=u;return u||this.schemas[m]||y.call(this,d,m)}function y(d,m){const u=this.opts.uriResolver.parse(m),h=(0,n._getFullPath)(this.opts.uriResolver,u);let _=(0,n.getFullPath)(this.opts.uriResolver,d.baseId,void 0);if(Object.keys(d.schema).length>0&&h===_)return g.call(this,u,d);const $=(0,n.normalizeId)(h),k=this.refs[$]||this.schemas[$];if(typeof k=="string"){const S=y.call(this,d,k);return typeof S?.schema!="object"?void 0:g.call(this,u,S)}if(typeof k?.schema=="object"){if(k.validate||a.call(this,k),$===(0,n.normalizeId)(m)){const{schema:S}=k,{schemaId:P}=this.opts,O=S[P];return O&&(_=(0,n.resolveUrl)(this.opts.uriResolver,_,O)),new i({schema:S,schemaId:P,root:d,baseId:_})}return g.call(this,u,k)}}Ae.resolveSchema=y;const v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(d,{baseId:m,schema:u,root:h}){var _;if(((_=d.fragment)===null||_===void 0?void 0:_[0])!=="/")return;for(const S of d.fragment.slice(1).split("/")){if(typeof u=="boolean")return;const P=u[(0,o.unescapeFragment)(S)];if(P===void 0)return;u=P;const O=typeof u=="object"&&u[this.opts.schemaId];!v.has(S)&&O&&(m=(0,n.resolveUrl)(this.opts.uriResolver,m,O))}let $;if(typeof u!="boolean"&&u.$ref&&!(0,o.schemaHasRulesButRef)(u,this.RULES)){const S=(0,n.resolveUrl)(this.opts.uriResolver,m,u.$ref);$=y.call(this,h,S)}const{schemaId:k}=this.opts;if($=$||new i({schema:u,schemaId:k,root:h,baseId:m}),$.schema!==$.root.schema)return $}return Ae}const a0="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",c0="Meta-schema for $data reference (JSON AnySchema extension proposal)",l0="object",u0=["$data"],f0={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},d0=!1,p0={$id:a0,description:c0,type:l0,required:u0,properties:f0,additionalProperties:d0};var mn={},qc;function h0(){if(qc)return mn;qc=1,Object.defineProperty(mn,"__esModule",{value:!0});const e=pf();return e.code='require("ajv/dist/runtime/uri").default',mn.default=e,mn}var Fc;function m0(){return Fc||(Fc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Fo();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=oe();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=di(),o=Do(),s=yf(),i=pi(),a=oe(),c=qo(),f=go(),l=ue(),p=p0,b=h0(),y=(z,C)=>new RegExp(z,C);y.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),d={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},m={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},u=200;function h(z){var C,A,R,w,E,T,U,K,X,J,x,j,N,F,H,G,ae,ye,fe,de,ce,Te,me,pt,ht;const qe=z.strict,mt=(C=z.code)===null||C===void 0?void 0:C.optimize,Kt=mt===!0||mt===void 0?1:mt||0,Wt=(R=(A=z.code)===null||A===void 0?void 0:A.regExp)!==null&&R!==void 0?R:y,Bo=(w=z.uriResolver)!==null&&w!==void 0?w:b.default;return{strictSchema:(T=(E=z.strictSchema)!==null&&E!==void 0?E:qe)!==null&&T!==void 0?T:!0,strictNumbers:(K=(U=z.strictNumbers)!==null&&U!==void 0?U:qe)!==null&&K!==void 0?K:!0,strictTypes:(J=(X=z.strictTypes)!==null&&X!==void 0?X:qe)!==null&&J!==void 0?J:"log",strictTuples:(j=(x=z.strictTuples)!==null&&x!==void 0?x:qe)!==null&&j!==void 0?j:"log",strictRequired:(F=(N=z.strictRequired)!==null&&N!==void 0?N:qe)!==null&&F!==void 0?F:!1,code:z.code?{...z.code,optimize:Kt,regExp:Wt}:{optimize:Kt,regExp:Wt},loopRequired:(H=z.loopRequired)!==null&&H!==void 0?H:u,loopEnum:(G=z.loopEnum)!==null&&G!==void 0?G:u,meta:(ae=z.meta)!==null&&ae!==void 0?ae:!0,messages:(ye=z.messages)!==null&&ye!==void 0?ye:!0,inlineRefs:(fe=z.inlineRefs)!==null&&fe!==void 0?fe:!0,schemaId:(de=z.schemaId)!==null&&de!==void 0?de:"$id",addUsedSchema:(ce=z.addUsedSchema)!==null&&ce!==void 0?ce:!0,validateSchema:(Te=z.validateSchema)!==null&&Te!==void 0?Te:!0,validateFormats:(me=z.validateFormats)!==null&&me!==void 0?me:!0,unicodeRegExp:(pt=z.unicodeRegExp)!==null&&pt!==void 0?pt:!0,int32range:(ht=z.int32range)!==null&&ht!==void 0?ht:!0,uriResolver:Bo}}class _{constructor(C={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,C=this.opts={...C,...h(C)};const{es5:A,lines:R}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:A,lines:R}),this.logger=L(C.logger);const w=C.validateFormats;C.validateFormats=!1,this.RULES=(0,s.getRules)(),$.call(this,d,C,"NOT SUPPORTED"),$.call(this,m,C,"DEPRECATED","warn"),this._metaOpts=q.call(this),C.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),C.keywords&&O.call(this,C.keywords),typeof C.meta=="object"&&this.addMetaSchema(C.meta),S.call(this),C.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:C,meta:A,schemaId:R}=this.opts;let w=p;R==="id"&&(w={...p},w.id=w.$id,delete w.$id),A&&C&&this.addMetaSchema(w,w[R],!1)}defaultMeta(){const{meta:C,schemaId:A}=this.opts;return this.opts.defaultMeta=typeof C=="object"?C[A]||C:void 0}validate(C,A){let R;if(typeof C=="string"){if(R=this.getSchema(C),!R)throw new Error(`no schema with key or ref "${C}"`)}else R=this.compile(C);const w=R(A);return"$async"in R||(this.errors=R.errors),w}compile(C,A){const R=this._addSchema(C,A);return R.validate||this._compileSchemaEnv(R)}compileAsync(C,A){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:R}=this.opts;return w.call(this,C,A);async function w(J,x){await E.call(this,J.$schema);const j=this._addSchema(J,x);return j.validate||T.call(this,j)}async function E(J){J&&!this.getSchema(J)&&await w.call(this,{$ref:J},!0)}async function T(J){try{return this._compileSchemaEnv(J)}catch(x){if(!(x instanceof o.default))throw x;return U.call(this,x),await K.call(this,x.missingSchema),T.call(this,J)}}function U({missingSchema:J,missingRef:x}){if(this.refs[J])throw new Error(`AnySchema ${J} is loaded but ${x} cannot be resolved`)}async function K(J){const x=await X.call(this,J);this.refs[J]||await E.call(this,x.$schema),this.refs[J]||this.addSchema(x,J,A)}async function X(J){const x=this._loading[J];if(x)return x;try{return await(this._loading[J]=R(J))}finally{delete this._loading[J]}}}addSchema(C,A,R,w=this.opts.validateSchema){if(Array.isArray(C)){for(const T of C)this.addSchema(T,void 0,R,w);return this}let E;if(typeof C=="object"){const{schemaId:T}=this.opts;if(E=C[T],E!==void 0&&typeof E!="string")throw new Error(`schema ${T} must be string`)}return A=(0,c.normalizeId)(A||E),this._checkUnique(A),this.schemas[A]=this._addSchema(C,R,A,w,!0),this}addMetaSchema(C,A,R=this.opts.validateSchema){return this.addSchema(C,A,!0,R),this}validateSchema(C,A){if(typeof C=="boolean")return!0;let R;if(R=C.$schema,R!==void 0&&typeof R!="string")throw new Error("$schema must be a string");if(R=R||this.opts.defaultMeta||this.defaultMeta(),!R)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(R,C);if(!w&&A){const E="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(E);else throw new Error(E)}return w}getSchema(C){let A;for(;typeof(A=k.call(this,C))=="string";)C=A;if(A===void 0){const{schemaId:R}=this.opts,w=new i.SchemaEnv({schema:{},schemaId:R});if(A=i.resolveSchema.call(this,w,C),!A)return;this.refs[C]=A}return A.validate||this._compileSchemaEnv(A)}removeSchema(C){if(C instanceof RegExp)return this._removeAllSchemas(this.schemas,C),this._removeAllSchemas(this.refs,C),this;switch(typeof C){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const A=k.call(this,C);return typeof A=="object"&&this._cache.delete(A.schema),delete this.schemas[C],delete this.refs[C],this}case"object":{const A=C;this._cache.delete(A);let R=C[this.opts.schemaId];return R&&(R=(0,c.normalizeId)(R),delete this.schemas[R],delete this.refs[R]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(C){for(const A of C)this.addKeyword(A);return this}addKeyword(C,A){let R;if(typeof C=="string")R=C,typeof A=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),A.keyword=R);else if(typeof C=="object"&&A===void 0){if(A=C,R=A.keyword,Array.isArray(R)&&!R.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(V.call(this,R,A),!A)return(0,l.eachItem)(R,E=>W.call(this,E)),this;Z.call(this,A);const w={...A,type:(0,f.getJSONTypes)(A.type),schemaType:(0,f.getJSONTypes)(A.schemaType)};return(0,l.eachItem)(R,w.type.length===0?E=>W.call(this,E,w):E=>w.type.forEach(T=>W.call(this,E,w,T))),this}getKeyword(C){const A=this.RULES.all[C];return typeof A=="object"?A.definition:!!A}removeKeyword(C){const{RULES:A}=this;delete A.keywords[C],delete A.all[C];for(const R of A.rules){const w=R.rules.findIndex(E=>E.keyword===C);w>=0&&R.rules.splice(w,1)}return this}addFormat(C,A){return typeof A=="string"&&(A=new RegExp(A)),this.formats[C]=A,this}errorsText(C=this.errors,{separator:A=", ",dataVar:R="data"}={}){return!C||C.length===0?"No errors":C.map(w=>`${R}${w.instancePath} ${w.message}`).reduce((w,E)=>w+A+E)}$dataMetaSchema(C,A){const R=this.RULES.all;C=JSON.parse(JSON.stringify(C));for(const w of A){const E=w.split("/").slice(1);let T=C;for(const U of E)T=T[U];for(const U in R){const K=R[U];if(typeof K!="object")continue;const{$data:X}=K.definition,J=T[U];X&&J&&(T[U]=ee(J))}}return C}_removeAllSchemas(C,A){for(const R in C){const w=C[R];(!A||A.test(R))&&(typeof w=="string"?delete C[R]:w&&!w.meta&&(this._cache.delete(w.schema),delete C[R]))}}_addSchema(C,A,R,w=this.opts.validateSchema,E=this.opts.addUsedSchema){let T;const{schemaId:U}=this.opts;if(typeof C=="object")T=C[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof C!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(C);if(K!==void 0)return K;R=(0,c.normalizeId)(T||R);const X=c.getSchemaRefs.call(this,C,R);return K=new i.SchemaEnv({schema:C,schemaId:U,meta:A,baseId:R,localRefs:X}),this._cache.set(K.schema,K),E&&!R.startsWith("#")&&(R&&this._checkUnique(R),this.refs[R]=K),w&&this.validateSchema(C,!0),K}_checkUnique(C){if(this.schemas[C]||this.refs[C])throw new Error(`schema with key or id "${C}" already exists`)}_compileSchemaEnv(C){if(C.meta?this._compileMetaSchema(C):i.compileSchema.call(this,C),!C.validate)throw new Error("ajv implementation error");return C.validate}_compileMetaSchema(C){const A=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,C)}finally{this.opts=A}}}_.ValidationError=n.default,_.MissingRefError=o.default,e.default=_;function $(z,C,A,R="error"){for(const w in z){const E=w;E in C&&this.logger[R](`${A}: option ${w}. ${z[E]}`)}}function k(z){return z=(0,c.normalizeId)(z),this.schemas[z]||this.refs[z]}function S(){const z=this.opts.schemas;if(z)if(Array.isArray(z))this.addSchema(z);else for(const C in z)this.addSchema(z[C],C)}function P(){for(const z in this.opts.formats){const C=this.opts.formats[z];C&&this.addFormat(z,C)}}function O(z){if(Array.isArray(z)){this.addVocabulary(z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const C in z){const A=z[C];A.keyword||(A.keyword=C),this.addKeyword(A)}}function q(){const z={...this.opts};for(const C of v)delete z[C];return z}const M={log(){},warn(){},error(){}};function L(z){if(z===!1)return M;if(z===void 0)return console;if(z.log&&z.warn&&z.error)return z;throw new Error("logger must implement log, warn and error methods")}const D=/^[a-z_$][a-z0-9_$:-]*$/i;function V(z,C){const{RULES:A}=this;if((0,l.eachItem)(z,R=>{if(A.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!D.test(R))throw new Error(`Keyword ${R} has invalid name`)}),!!C&&C.$data&&!("code"in C||"validate"in C))throw new Error('$data keyword must have "code" or "validate" function')}function W(z,C,A){var R;const w=C?.post;if(A&&w)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:E}=this;let T=w?E.post:E.rules.find(({type:K})=>K===A);if(T||(T={type:A,rules:[]},E.rules.push(T)),E.keywords[z]=!0,!C)return;const U={keyword:z,definition:{...C,type:(0,f.getJSONTypes)(C.type),schemaType:(0,f.getJSONTypes)(C.schemaType)}};C.before?Q.call(this,T,U,C.before):T.rules.push(U),E.all[z]=U,(R=C.implements)===null||R===void 0||R.forEach(K=>this.addKeyword(K))}function Q(z,C,A){const R=z.rules.findIndex(w=>w.keyword===A);R>=0?z.rules.splice(R,0,C):(z.rules.push(C),this.logger.warn(`rule ${A} is not defined`))}function Z(z){let{metaSchema:C}=z;C!==void 0&&(z.$data&&this.opts.$data&&(C=ee(C)),z.validateSchema=this.compile(C,!0))}const B={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ee(z){return{anyOf:[z,B]}}}(ds)),ds}var gn={},yn={},bn={},Dc;function g0(){if(Dc)return bn;Dc=1,Object.defineProperty(bn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return bn.default=e,bn}var st={},Lc;function y0(){if(Lc)return st;Lc=1,Object.defineProperty(st,"__esModule",{value:!0}),st.callRef=st.getValidate=void 0;const e=Do(),t=Ke(),r=oe(),n=dt(),o=pi(),s=ue(),i={keyword:"$ref",schemaType:"string",code(f){const{gen:l,schema:p,it:b}=f,{baseId:y,schemaEnv:v,validateName:g,opts:d,self:m}=b,{root:u}=v;if((p==="#"||p==="#/")&&y===u.baseId)return _();const h=o.resolveRef.call(m,u,y,p);if(h===void 0)throw new e.default(b.opts.uriResolver,y,p);if(h instanceof o.SchemaEnv)return $(h);return k(h);function _(){if(v===u)return c(f,g,v,v.$async);const S=l.scopeValue("root",{ref:u});return c(f,(0,r._)`${S}.validate`,u,u.$async)}function $(S){const P=a(f,S);c(f,P,S,S.$async)}function k(S){const P=l.scopeValue("schema",d.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),O=l.name("valid"),q=f.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:P,errSchemaPath:p},O);f.mergeEvaluated(q),f.ok(O)}}};function a(f,l){const{gen:p}=f;return l.validate?p.scopeValue("validate",{ref:l.validate}):(0,r._)`${p.scopeValue("wrapper",{ref:l})}.validate`}st.getValidate=a;function c(f,l,p,b){const{gen:y,it:v}=f,{allErrors:g,schemaEnv:d,opts:m}=v,u=m.passContext?n.default.this:r.nil;b?h():_();function h(){if(!d.$async)throw new Error("async schema referenced by sync schema");const S=y.let("valid");y.try(()=>{y.code((0,r._)`await ${(0,t.callValidateCode)(f,l,u)}`),k(l),g||y.assign(S,!0)},P=>{y.if((0,r._)`!(${P} instanceof ${v.ValidationError})`,()=>y.throw(P)),$(P),g||y.assign(S,!1)}),f.ok(S)}function _(){f.result((0,t.callValidateCode)(f,l,u),()=>k(l),()=>$(l))}function $(S){const P=(0,r._)`${S}.errors`;y.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${P} : ${n.default.vErrors}.concat(${P})`),y.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function k(S){var P;if(!v.opts.unevaluated)return;const O=(P=p?.validate)===null||P===void 0?void 0:P.evaluated;if(v.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(v.props=s.mergeEvaluated.props(y,O.props,v.props));else{const q=y.var("props",(0,r._)`${S}.evaluated.props`);v.props=s.mergeEvaluated.props(y,q,v.props,r.Name)}if(v.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(v.items=s.mergeEvaluated.items(y,O.items,v.items));else{const q=y.var("items",(0,r._)`${S}.evaluated.items`);v.items=s.mergeEvaluated.items(y,q,v.items,r.Name)}}}return st.callRef=c,st.default=i,st}var Vc;function b0(){if(Vc)return yn;Vc=1,Object.defineProperty(yn,"__esModule",{value:!0});const e=g0(),t=y0(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return yn.default=r,yn}var vn={},$n={},Uc;function v0(){if(Uc)return $n;Uc=1,Object.defineProperty($n,"__esModule",{value:!0});const e=oe(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:s,schemaCode:i})=>(0,e.str)`must be ${r[s].okStr} ${i}`,params:({keyword:s,schemaCode:i})=>(0,e._)`{comparison: ${r[s].okStr}, limit: ${i}}`},o={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{keyword:i,data:a,schemaCode:c}=s;s.fail$data((0,e._)`${a} ${r[i].fail} ${c} || isNaN(${a})`)}};return $n.default=o,$n}var wn={},Hc;function $0(){if(Hc)return wn;Hc=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=oe(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:o,data:s,schemaCode:i,it:a}=n,c=a.opts.multipleOfPrecision,f=o.let("res"),l=c?(0,e._)`Math.abs(Math.round(${f}) - ${f}) > 1e-${c}`:(0,e._)`${f} !== parseInt(${f})`;n.fail$data((0,e._)`(${i} === 0 || (${f} = ${s}/${i}, ${l}))`)}};return wn.default=r,wn}var _n={},kn={},Kc;function w0(){if(Kc)return kn;Kc=1,Object.defineProperty(kn,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,o=0,s;for(;o<r;)n++,s=t.charCodeAt(o++),s>=55296&&s<=56319&&o<r&&(s=t.charCodeAt(o),(s&64512)===56320&&o++);return n}return kn.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',kn}var Wc;function _0(){if(Wc)return _n;Wc=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=oe(),t=ue(),r=w0(),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:i}){const a=s==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${i} characters`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:i,data:a,schemaCode:c,it:f}=s,l=i==="maxLength"?e.operators.GT:e.operators.LT,p=f.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(s.gen,r.default)}(${a})`;s.fail$data((0,e._)`${p} ${l} ${c}`)}};return _n.default=o,_n}var Sn={},Bc;function k0(){if(Bc)return Sn;Bc=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e=Ke(),t=oe(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,t._)`{pattern: ${o}}`},code(o){const{data:s,$data:i,schema:a,schemaCode:c,it:f}=o,l=f.opts.unicodeRegExp?"u":"",p=i?(0,t._)`(new RegExp(${c}, ${l}))`:(0,e.usePattern)(o,a);o.fail$data((0,t._)`!${p}.test(${s})`)}};return Sn.default=n,Sn}var En={},Gc;function S0(){if(Gc)return En;Gc=1,Object.defineProperty(En,"__esModule",{value:!0});const e=oe(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:i}=n,a=o==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${s}).length ${a} ${i}`)}};return En.default=r,En}var xn={},Jc;function E0(){if(Jc)return xn;Jc=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=Ke(),t=oe(),r=ue(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,t.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,t._)`{missingProperty: ${s}}`},code(s){const{gen:i,schema:a,schemaCode:c,data:f,$data:l,it:p}=s,{opts:b}=p;if(!l&&a.length===0)return;const y=a.length>=b.loopRequired;if(p.allErrors?v():g(),b.strictRequired){const u=s.parentSchema.properties,{definedProperties:h}=s.it;for(const _ of a)if(u?.[_]===void 0&&!h.has(_)){const $=p.schemaEnv.baseId+p.errSchemaPath,k=`required property "${_}" is not defined at "${$}" (strictRequired)`;(0,r.checkStrictMode)(p,k,p.opts.strictRequired)}}function v(){if(y||l)s.block$data(t.nil,d);else for(const u of a)(0,e.checkReportMissingProp)(s,u)}function g(){const u=i.let("missing");if(y||l){const h=i.let("valid",!0);s.block$data(h,()=>m(u,h)),s.ok(h)}else i.if((0,e.checkMissingProp)(s,a,u)),(0,e.reportMissingProp)(s,u),i.else()}function d(){i.forOf("prop",c,u=>{s.setParams({missingProperty:u}),i.if((0,e.noPropertyInData)(i,f,u,b.ownProperties),()=>s.error())})}function m(u,h){s.setParams({missingProperty:u}),i.forOf(u,c,()=>{i.assign(h,(0,e.propertyInData)(i,f,u,b.ownProperties)),i.if((0,t.not)(h),()=>{s.error(),i.break()})},t.nil)}}};return xn.default=o,xn}var Pn={},Xc;function x0(){if(Xc)return Pn;Xc=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e=oe(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:i}=n,a=o==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${s}.length ${a} ${i}`)}};return Pn.default=r,Pn}var Cn={},jn={},Yc;function hi(){if(Yc)return jn;Yc=1,Object.defineProperty(jn,"__esModule",{value:!0});const e=No();return e.code='require("ajv/dist/runtime/equal").default',jn.default=e,jn}var Qc;function P0(){if(Qc)return Cn;Qc=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=go(),t=oe(),r=ue(),n=hi(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${i} are identical)`,params:({params:{i,j:a}})=>(0,t._)`{i: ${i}, j: ${a}}`},code(i){const{gen:a,data:c,$data:f,schema:l,parentSchema:p,schemaCode:b,it:y}=i;if(!f&&!l)return;const v=a.let("valid"),g=p.items?(0,e.getSchemaTypes)(p.items):[];i.block$data(v,d,(0,t._)`${b} === false`),i.ok(v);function d(){const _=a.let("i",(0,t._)`${c}.length`),$=a.let("j");i.setParams({i:_,j:$}),a.assign(v,!0),a.if((0,t._)`${_} > 1`,()=>(m()?u:h)(_,$))}function m(){return g.length>0&&!g.some(_=>_==="object"||_==="array")}function u(_,$){const k=a.name("item"),S=(0,e.checkDataTypes)(g,k,y.opts.strictNumbers,e.DataType.Wrong),P=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${_}--;`,()=>{a.let(k,(0,t._)`${c}[${_}]`),a.if(S,(0,t._)`continue`),g.length>1&&a.if((0,t._)`typeof ${k} == "string"`,(0,t._)`${k} += "_"`),a.if((0,t._)`typeof ${P}[${k}] == "number"`,()=>{a.assign($,(0,t._)`${P}[${k}]`),i.error(),a.assign(v,!1).break()}).code((0,t._)`${P}[${k}] = ${_}`)})}function h(_,$){const k=(0,r.useFunc)(a,n.default),S=a.name("outer");a.label(S).for((0,t._)`;${_}--;`,()=>a.for((0,t._)`${$} = ${_}; ${$}--;`,()=>a.if((0,t._)`${k}(${c}[${_}], ${c}[${$}])`,()=>{i.error(),a.assign(v,!1).break(S)})))}}};return Cn.default=s,Cn}var Rn={},Zc;function C0(){if(Zc)return Rn;Zc=1,Object.defineProperty(Rn,"__esModule",{value:!0});const e=oe(),t=ue(),r=hi(),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,e._)`{allowedValue: ${s}}`},code(s){const{gen:i,data:a,$data:c,schemaCode:f,schema:l}=s;c||l&&typeof l=="object"?s.fail$data((0,e._)`!${(0,t.useFunc)(i,r.default)}(${a}, ${f})`):s.fail((0,e._)`${l} !== ${a}`)}};return Rn.default=o,Rn}var On={},el;function j0(){if(el)return On;el=1,Object.defineProperty(On,"__esModule",{value:!0});const e=oe(),t=ue(),r=hi(),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,e._)`{allowedValues: ${s}}`},code(s){const{gen:i,data:a,$data:c,schema:f,schemaCode:l,it:p}=s;if(!c&&f.length===0)throw new Error("enum must have non-empty array");const b=f.length>=p.opts.loopEnum;let y;const v=()=>y??(y=(0,t.useFunc)(i,r.default));let g;if(b||c)g=i.let("valid"),s.block$data(g,d);else{if(!Array.isArray(f))throw new Error("ajv implementation error");const u=i.const("vSchema",l);g=(0,e.or)(...f.map((h,_)=>m(u,_)))}s.pass(g);function d(){i.assign(g,!1),i.forOf("v",l,u=>i.if((0,e._)`${v()}(${a}, ${u})`,()=>i.assign(g,!0).break()))}function m(u,h){const _=f[h];return typeof _=="object"&&_!==null?(0,e._)`${v()}(${a}, ${u}[${h}])`:(0,e._)`${a} === ${_}`}}};return On.default=o,On}var tl;function R0(){if(tl)return vn;tl=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=v0(),t=$0(),r=_0(),n=k0(),o=S0(),s=E0(),i=x0(),a=P0(),c=C0(),f=j0(),l=[e.default,t.default,r.default,n.default,o.default,s.default,i.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,f.default];return vn.default=l,vn}var Tn={},Rt={},rl;function vf(){if(rl)return Rt;rl=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.validateAdditionalItems=void 0;const e=oe(),t=ue(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{parentSchema:i,it:a}=s,{items:c}=i;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}o(s,c)}};function o(s,i){const{gen:a,schema:c,data:f,keyword:l,it:p}=s;p.items=!0;const b=a.const("len",(0,e._)`${f}.length`);if(c===!1)s.setParams({len:i.length}),s.pass((0,e._)`${b} <= ${i.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(p,c)){const v=a.var("valid",(0,e._)`${b} <= ${i.length}`);a.if((0,e.not)(v),()=>y(v)),s.ok(v)}function y(v){a.forRange("i",i.length,b,g=>{s.subschema({keyword:l,dataProp:g,dataPropType:t.Type.Num},v),p.allErrors||a.if((0,e.not)(v),()=>a.break())})}}return Rt.validateAdditionalItems=o,Rt.default=n,Rt}var Nn={},Ot={},nl;function $f(){if(nl)return Ot;nl=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.validateTuple=void 0;const e=oe(),t=ue(),r=Ke(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:i,it:a}=s;if(Array.isArray(i))return o(s,"additionalItems",i);a.items=!0,!(0,t.alwaysValidSchema)(a,i)&&s.ok((0,r.validateArray)(s))}};function o(s,i,a=s.schema){const{gen:c,parentSchema:f,data:l,keyword:p,it:b}=s;g(f),b.opts.unevaluated&&a.length&&b.items!==!0&&(b.items=t.mergeEvaluated.items(c,a.length,b.items));const y=c.name("valid"),v=c.const("len",(0,e._)`${l}.length`);a.forEach((d,m)=>{(0,t.alwaysValidSchema)(b,d)||(c.if((0,e._)`${v} > ${m}`,()=>s.subschema({keyword:p,schemaProp:m,dataProp:m},y)),s.ok(y))});function g(d){const{opts:m,errSchemaPath:u}=b,h=a.length,_=h===d.minItems&&(h===d.maxItems||d[i]===!1);if(m.strictTuples&&!_){const $=`"${p}" is ${h}-tuple, but minItems or maxItems/${i} are not specified or different at path "${u}"`;(0,t.checkStrictMode)(b,$,m.strictTuples)}}}return Ot.validateTuple=o,Ot.default=n,Ot}var ol;function O0(){if(ol)return Nn;ol=1,Object.defineProperty(Nn,"__esModule",{value:!0});const e=$f(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Nn.default=t,Nn}var An={},sl;function T0(){if(sl)return An;sl=1,Object.defineProperty(An,"__esModule",{value:!0});const e=oe(),t=ue(),r=Ke(),n=vf(),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{schema:a,parentSchema:c,it:f}=i,{prefixItems:l}=c;f.items=!0,!(0,t.alwaysValidSchema)(f,a)&&(l?(0,n.validateAdditionalItems)(i,l):i.ok((0,r.validateArray)(i)))}};return An.default=s,An}var In={},il;function N0(){if(il)return In;il=1,Object.defineProperty(In,"__esModule",{value:!0});const e=oe(),t=ue(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:o,max:s}})=>s===void 0?(0,e.str)`must contain at least ${o} valid item(s)`:(0,e.str)`must contain at least ${o} and no more than ${s} valid item(s)`,params:({params:{min:o,max:s}})=>s===void 0?(0,e._)`{minContains: ${o}}`:(0,e._)`{minContains: ${o}, maxContains: ${s}}`},code(o){const{gen:s,schema:i,parentSchema:a,data:c,it:f}=o;let l,p;const{minContains:b,maxContains:y}=a;f.opts.next?(l=b===void 0?1:b,p=y):l=1;const v=s.const("len",(0,e._)`${c}.length`);if(o.setParams({min:l,max:p}),p===void 0&&l===0){(0,t.checkStrictMode)(f,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&l>p){(0,t.checkStrictMode)(f,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,t.alwaysValidSchema)(f,i)){let h=(0,e._)`${v} >= ${l}`;p!==void 0&&(h=(0,e._)`${h} && ${v} <= ${p}`),o.pass(h);return}f.items=!0;const g=s.name("valid");p===void 0&&l===1?m(g,()=>s.if(g,()=>s.break())):l===0?(s.let(g,!0),p!==void 0&&s.if((0,e._)`${c}.length > 0`,d)):(s.let(g,!1),d()),o.result(g,()=>o.reset());function d(){const h=s.name("_valid"),_=s.let("count",0);m(h,()=>s.if(h,()=>u(_)))}function m(h,_){s.forRange("i",0,v,$=>{o.subschema({keyword:"contains",dataProp:$,dataPropType:t.Type.Num,compositeRule:!0},h),_()})}function u(h){s.code((0,e._)`${h}++`),p===void 0?s.if((0,e._)`${h} >= ${l}`,()=>s.assign(g,!0).break()):(s.if((0,e._)`${h} > ${p}`,()=>s.assign(g,!1).break()),l===1?s.assign(g,!0):s.if((0,e._)`${h} >= ${l}`,()=>s.assign(g,!0)))}}};return In.default=n,In}var bs={},al;function A0(){return al||(al=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=oe(),r=ue(),n=Ke();e.error={message:({params:{property:c,depsCount:f,deps:l}})=>{const p=f===1?"property":"properties";return(0,t.str)`must have ${p} ${l} when property ${c} is present`},params:({params:{property:c,depsCount:f,deps:l,missingProperty:p}})=>(0,t._)`{property: ${c},
21
- missingProperty: ${p},
22
- depsCount: ${f},
23
- deps: ${l}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[f,l]=s(c);i(c,f),a(c,l)}};function s({schema:c}){const f={},l={};for(const p in c){if(p==="__proto__")continue;const b=Array.isArray(c[p])?f:l;b[p]=c[p]}return[f,l]}function i(c,f=c.schema){const{gen:l,data:p,it:b}=c;if(Object.keys(f).length===0)return;const y=l.let("missing");for(const v in f){const g=f[v];if(g.length===0)continue;const d=(0,n.propertyInData)(l,p,v,b.opts.ownProperties);c.setParams({property:v,depsCount:g.length,deps:g.join(", ")}),b.allErrors?l.if(d,()=>{for(const m of g)(0,n.checkReportMissingProp)(c,m)}):(l.if((0,t._)`${d} && (${(0,n.checkMissingProp)(c,g,y)})`),(0,n.reportMissingProp)(c,y),l.else())}}e.validatePropertyDeps=i;function a(c,f=c.schema){const{gen:l,data:p,keyword:b,it:y}=c,v=l.name("valid");for(const g in f)(0,r.alwaysValidSchema)(y,f[g])||(l.if((0,n.propertyInData)(l,p,g,y.opts.ownProperties),()=>{const d=c.subschema({keyword:b,schemaProp:g},v);c.mergeValidEvaluated(d,v)},()=>l.var(v,!0)),c.ok(v))}e.validateSchemaDeps=a,e.default=o}(bs)),bs}var Mn={},cl;function I0(){if(cl)return Mn;cl=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=oe(),t=ue(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:o})=>(0,e._)`{propertyName: ${o.propertyName}}`},code(o){const{gen:s,schema:i,data:a,it:c}=o;if((0,t.alwaysValidSchema)(c,i))return;const f=s.name("valid");s.forIn("key",a,l=>{o.setParams({propertyName:l}),o.subschema({keyword:"propertyNames",data:l,dataTypes:["string"],propertyName:l,compositeRule:!0},f),s.if((0,e.not)(f),()=>{o.error(!0),c.allErrors||s.break()})}),o.ok(f)}};return Mn.default=n,Mn}var zn={},ll;function wf(){if(ll)return zn;ll=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=Ke(),t=oe(),r=dt(),n=ue(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,t._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:a,schema:c,parentSchema:f,data:l,errsCount:p,it:b}=i;if(!p)throw new Error("ajv implementation error");const{allErrors:y,opts:v}=b;if(b.props=!0,v.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(b,c))return;const g=(0,e.allSchemaProperties)(f.properties),d=(0,e.allSchemaProperties)(f.patternProperties);m(),i.ok((0,t._)`${p} === ${r.default.errors}`);function m(){a.forIn("key",l,k=>{!g.length&&!d.length?_(k):a.if(u(k),()=>_(k))})}function u(k){let S;if(g.length>8){const P=(0,n.schemaRefOrVal)(b,f.properties,"properties");S=(0,e.isOwnProperty)(a,P,k)}else g.length?S=(0,t.or)(...g.map(P=>(0,t._)`${k} === ${P}`)):S=t.nil;return d.length&&(S=(0,t.or)(S,...d.map(P=>(0,t._)`${(0,e.usePattern)(i,P)}.test(${k})`))),(0,t.not)(S)}function h(k){a.code((0,t._)`delete ${l}[${k}]`)}function _(k){if(v.removeAdditional==="all"||v.removeAdditional&&c===!1){h(k);return}if(c===!1){i.setParams({additionalProperty:k}),i.error(),y||a.break();return}if(typeof c=="object"&&!(0,n.alwaysValidSchema)(b,c)){const S=a.name("valid");v.removeAdditional==="failing"?($(k,S,!1),a.if((0,t.not)(S),()=>{i.reset(),h(k)})):($(k,S),y||a.if((0,t.not)(S),()=>a.break()))}}function $(k,S,P){const O={keyword:"additionalProperties",dataProp:k,dataPropType:n.Type.Str};P===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(O,S)}}};return zn.default=s,zn}var qn={},ul;function M0(){if(ul)return qn;ul=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=Fo(),t=Ke(),r=ue(),n=wf(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:i,schema:a,parentSchema:c,data:f,it:l}=s;l.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(l,n.default,"additionalProperties"));const p=(0,t.allSchemaProperties)(a);for(const d of p)l.definedProperties.add(d);l.opts.unevaluated&&p.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(i,(0,r.toHash)(p),l.props));const b=p.filter(d=>!(0,r.alwaysValidSchema)(l,a[d]));if(b.length===0)return;const y=i.name("valid");for(const d of b)v(d)?g(d):(i.if((0,t.propertyInData)(i,f,d,l.opts.ownProperties)),g(d),l.allErrors||i.else().var(y,!0),i.endIf()),s.it.definedProperties.add(d),s.ok(y);function v(d){return l.opts.useDefaults&&!l.compositeRule&&a[d].default!==void 0}function g(d){s.subschema({keyword:"properties",schemaProp:d,dataProp:d},y)}}};return qn.default=o,qn}var Fn={},fl;function z0(){if(fl)return Fn;fl=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=Ke(),t=oe(),r=ue(),n=ue(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:i,schema:a,data:c,parentSchema:f,it:l}=s,{opts:p}=l,b=(0,e.allSchemaProperties)(a),y=b.filter(_=>(0,r.alwaysValidSchema)(l,a[_]));if(b.length===0||y.length===b.length&&(!l.opts.unevaluated||l.props===!0))return;const v=p.strictSchema&&!p.allowMatchingProperties&&f.properties,g=i.name("valid");l.props!==!0&&!(l.props instanceof t.Name)&&(l.props=(0,n.evaluatedPropsToName)(i,l.props));const{props:d}=l;m();function m(){for(const _ of b)v&&u(_),l.allErrors?h(_):(i.var(g,!0),h(_),i.if(g))}function u(_){for(const $ in v)new RegExp(_).test($)&&(0,r.checkStrictMode)(l,`property ${$} matches pattern ${_} (use allowMatchingProperties)`)}function h(_){i.forIn("key",c,$=>{i.if((0,t._)`${(0,e.usePattern)(s,_)}.test(${$})`,()=>{const k=y.includes(_);k||s.subschema({keyword:"patternProperties",schemaProp:_,dataProp:$,dataPropType:n.Type.Str},g),l.opts.unevaluated&&d!==!0?i.assign((0,t._)`${d}[${$}]`,!0):!k&&!l.allErrors&&i.if((0,t.not)(g),()=>i.break())})})}}};return Fn.default=o,Fn}var Dn={},dl;function q0(){if(dl)return Dn;dl=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=ue(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:o,it:s}=r;if((0,e.alwaysValidSchema)(s,o)){r.fail();return}const i=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),r.failResult(i,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Dn.default=t,Dn}var Ln={},pl;function F0(){if(pl)return Ln;pl=1,Object.defineProperty(Ln,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ke().validateUnion,error:{message:"must match a schema in anyOf"}};return Ln.default=t,Ln}var Vn={},hl;function D0(){if(hl)return Vn;hl=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=oe(),t=ue(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:o})=>(0,e._)`{passingSchemas: ${o.passing}}`},code(o){const{gen:s,schema:i,parentSchema:a,it:c}=o;if(!Array.isArray(i))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const f=i,l=s.let("valid",!1),p=s.let("passing",null),b=s.name("_valid");o.setParams({passing:p}),s.block(y),o.result(l,()=>o.reset(),()=>o.error(!0));function y(){f.forEach((v,g)=>{let d;(0,t.alwaysValidSchema)(c,v)?s.var(b,!0):d=o.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},b),g>0&&s.if((0,e._)`${b} && ${l}`).assign(l,!1).assign(p,(0,e._)`[${p}, ${g}]`).else(),s.if(b,()=>{s.assign(l,!0),s.assign(p,g),d&&o.mergeEvaluated(d,e.Name)})})}}};return Vn.default=n,Vn}var Un={},ml;function L0(){if(ml)return Un;ml=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=ue(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:o,it:s}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");const i=n.name("valid");o.forEach((a,c)=>{if((0,e.alwaysValidSchema)(s,a))return;const f=r.subschema({keyword:"allOf",schemaProp:c},i);r.ok(i),r.mergeEvaluated(f)})}};return Un.default=t,Un}var Hn={},gl;function V0(){if(gl)return Hn;gl=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=oe(),t=ue(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:i,parentSchema:a,it:c}=s;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const f=o(c,"then"),l=o(c,"else");if(!f&&!l)return;const p=i.let("valid",!0),b=i.name("_valid");if(y(),s.reset(),f&&l){const g=i.let("ifClause");s.setParams({ifClause:g}),i.if(b,v("then",g),v("else",g))}else f?i.if(b,v("then")):i.if((0,e.not)(b),v("else"));s.pass(p,()=>s.error(!0));function y(){const g=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},b);s.mergeEvaluated(g)}function v(g,d){return()=>{const m=s.subschema({keyword:g},b);i.assign(p,b),s.mergeValidEvaluated(m,p),d?i.assign(d,(0,e._)`${g}`):s.setParams({ifClause:g})}}}};function o(s,i){const a=s.schema[i];return a!==void 0&&!(0,t.alwaysValidSchema)(s,a)}return Hn.default=n,Hn}var Kn={},yl;function U0(){if(yl)return Kn;yl=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=ue(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:o}){n.if===void 0&&(0,e.checkStrictMode)(o,`"${r}" without "if" is ignored`)}};return Kn.default=t,Kn}var bl;function H0(){if(bl)return Tn;bl=1,Object.defineProperty(Tn,"__esModule",{value:!0});const e=vf(),t=O0(),r=$f(),n=T0(),o=N0(),s=A0(),i=I0(),a=wf(),c=M0(),f=z0(),l=q0(),p=F0(),b=D0(),y=L0(),v=V0(),g=U0();function d(m=!1){const u=[l.default,p.default,b.default,y.default,v.default,g.default,i.default,a.default,s.default,c.default,f.default];return m?u.push(t.default,n.default):u.push(e.default,r.default),u.push(o.default),u}return Tn.default=d,Tn}var Wn={},Bn={},vl;function K0(){if(vl)return Bn;vl=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=oe(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,o){const{gen:s,data:i,$data:a,schema:c,schemaCode:f,it:l}=n,{opts:p,errSchemaPath:b,schemaEnv:y,self:v}=l;if(!p.validateFormats)return;a?g():d();function g(){const m=s.scopeValue("formats",{ref:v.formats,code:p.code.formats}),u=s.const("fDef",(0,e._)`${m}[${f}]`),h=s.let("fType"),_=s.let("format");s.if((0,e._)`typeof ${u} == "object" && !(${u} instanceof RegExp)`,()=>s.assign(h,(0,e._)`${u}.type || "string"`).assign(_,(0,e._)`${u}.validate`),()=>s.assign(h,(0,e._)`"string"`).assign(_,u)),n.fail$data((0,e.or)($(),k()));function $(){return p.strictSchema===!1?e.nil:(0,e._)`${f} && !${_}`}function k(){const S=y.$async?(0,e._)`(${u}.async ? await ${_}(${i}) : ${_}(${i}))`:(0,e._)`${_}(${i})`,P=(0,e._)`(typeof ${_} == "function" ? ${S} : ${_}.test(${i}))`;return(0,e._)`${_} && ${_} !== true && ${h} === ${o} && !${P}`}}function d(){const m=v.formats[c];if(!m){$();return}if(m===!0)return;const[u,h,_]=k(m);u===o&&n.pass(S());function $(){if(p.strictSchema===!1){v.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${c}" ignored in schema at path "${b}"`}}function k(P){const O=P instanceof RegExp?(0,e.regexpCode)(P):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(c)}`:void 0,q=s.scopeValue("formats",{key:c,ref:P,code:O});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${q}.validate`]:["string",P,q]}function S(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${_}(${i})`}return typeof h=="function"?(0,e._)`${_}(${i})`:(0,e._)`${_}.test(${i})`}}}};return Bn.default=r,Bn}var $l;function W0(){if($l)return Wn;$l=1,Object.defineProperty(Wn,"__esModule",{value:!0});const t=[K0().default];return Wn.default=t,Wn}var wt={},wl;function B0(){return wl||(wl=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.contentVocabulary=wt.metadataVocabulary=void 0,wt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],wt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),wt}var _l;function G0(){if(_l)return gn;_l=1,Object.defineProperty(gn,"__esModule",{value:!0});const e=b0(),t=R0(),r=H0(),n=W0(),o=B0(),s=[e.default,t.default,(0,r.default)(),n.default,o.metadataVocabulary,o.contentVocabulary];return gn.default=s,gn}var Gn={},Qt={},kl;function J0(){if(kl)return Qt;kl=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(Qt.DiscrError=e={})),Qt}var Sl;function X0(){if(Sl)return Gn;Sl=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=oe(),t=J0(),r=pi(),n=Do(),o=ue(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:f}})=>(0,e._)`{error: ${a}, tag: ${f}, tagValue: ${c}}`},code(a){const{gen:c,data:f,schema:l,parentSchema:p,it:b}=a,{oneOf:y}=p;if(!b.opts.discriminator)throw new Error("discriminator: requires discriminator option");const v=l.propertyName;if(typeof v!="string")throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const g=c.let("valid",!1),d=c.const("tag",(0,e._)`${f}${(0,e.getProperty)(v)}`);c.if((0,e._)`typeof ${d} == "string"`,()=>m(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:d,tagName:v})),a.ok(g);function m(){const _=h();c.if(!1);for(const $ in _)c.elseIf((0,e._)`${d} === ${$}`),c.assign(g,u(_[$]));c.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:d,tagName:v}),c.endIf()}function u(_){const $=c.name("valid"),k=a.subschema({keyword:"oneOf",schemaProp:_},$);return a.mergeEvaluated(k,e.Name),$}function h(){var _;const $={},k=P(p);let S=!0;for(let M=0;M<y.length;M++){let L=y[M];if(L?.$ref&&!(0,o.schemaHasRulesButRef)(L,b.self.RULES)){const V=L.$ref;if(L=r.resolveRef.call(b.self,b.schemaEnv.root,b.baseId,V),L instanceof r.SchemaEnv&&(L=L.schema),L===void 0)throw new n.default(b.opts.uriResolver,b.baseId,V)}const D=(_=L?.properties)===null||_===void 0?void 0:_[v];if(typeof D!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${v}"`);S=S&&(k||P(L)),O(D,M)}if(!S)throw new Error(`discriminator: "${v}" must be required`);return $;function P({required:M}){return Array.isArray(M)&&M.includes(v)}function O(M,L){if(M.const)q(M.const,L);else if(M.enum)for(const D of M.enum)q(D,L);else throw new Error(`discriminator: "properties/${v}" must have "const" or "enum"`)}function q(M,L){if(typeof M!="string"||M in $)throw new Error(`discriminator: "${v}" values must be unique strings`);$[M]=L}}}};return Gn.default=i,Gn}const Y0="http://json-schema.org/draft-07/schema#",Q0="http://json-schema.org/draft-07/schema#",Z0="Core schema meta-schema",eg={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},tg=["object","boolean"],rg={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},ng={$schema:Y0,$id:Q0,title:Z0,definitions:eg,type:tg,properties:rg,default:!0};var El;function og(){return El||(El=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=m0(),n=G0(),o=X0(),s=ng,i=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(v,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var f=Fo();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var l=oe();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=di();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var b=Do();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return b.default}})}(fn,fn.exports)),fn.exports}var xl;function sg(){return xl||(xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=og(),r=oe(),n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:a,schemaCode:c})=>(0,r.str)`should be ${o[a].okStr} ${c}`,params:({keyword:a,schemaCode:c})=>(0,r._)`{comparison: ${o[a].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:c,data:f,schemaCode:l,keyword:p,it:b}=a,{opts:y,self:v}=b;if(!y.validateFormats)return;const g=new t.KeywordCxt(b,v.RULES.all.format.definition,"format");g.$data?d():m();function d(){const h=c.scopeValue("formats",{ref:v.formats,code:y.code.formats}),_=c.const("fmt",(0,r._)`${h}[${g.schemaCode}]`);a.fail$data((0,r.or)((0,r._)`typeof ${_} != "object"`,(0,r._)`${_} instanceof RegExp`,(0,r._)`typeof ${_}.compare != "function"`,u(_)))}function m(){const h=g.schema,_=v.formats[h];if(!_||_===!0)return;if(typeof _!="object"||_ instanceof RegExp||typeof _.compare!="function")throw new Error(`"${p}": format "${h}" does not define "compare" function`);const $=c.scopeValue("formats",{key:h,ref:_,code:y.code.formats?(0,r._)`${y.code.formats}${(0,r.getProperty)(h)}`:void 0});a.fail$data(u($))}function u(h){return(0,r._)`${h}.compare(${f}, ${l}) ${o[p].fail} 0`}},dependencies:["format"]};const i=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=i}(fs)),fs}var Pl;function ig(){return Pl||(Pl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=t0(),n=sg(),o=oe(),s=new o.Name("fullFormats"),i=new o.Name("fastFormats"),a=(f,l={keywords:!0})=>{if(Array.isArray(l))return c(f,l,r.fullFormats,s),f;const[p,b]=l.mode==="fast"?[r.fastFormats,i]:[r.fullFormats,s],y=l.formats||r.formatNames;return c(f,y,p,b),l.keywords&&(0,n.default)(f),f};a.get=(f,l="full")=>{const b=(l==="fast"?r.fastFormats:r.fullFormats)[f];if(!b)throw new Error(`Unknown format "${f}"`);return b};function c(f,l,p,b){var y,v;(y=(v=f.opts.code).formats)!==null&&y!==void 0||(v.formats=(0,o._)`require("ajv-formats/dist/formats").${b}`);for(const g of l)f.addFormat(g,p[g])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a}(un,un.exports)),un.exports}var ag=ig();const cg=yr(ag);var Jn={exports:{}},Cl;function lg(){return Cl||(Cl=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r={},n={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:l=>{var p;const b=(p=l?.max)!==null&&p!==void 0?p:2;return()=>Math.floor(Math.random()*b)},seq:l=>{var p;const b=(p=l?.name)!==null&&p!==void 0?p:"";return r[b]||(r[b]=0),()=>r[b]++}},o=Object.assign(s,{DEFAULTS:n});function s(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(l,p,b){if(!b.opts.useDefaults||b.compositeRule)return()=>!0;const y={};for(const g in l)y[g]=i(l[g]);const v=b.opts.useDefaults==="empty";return g=>{for(const d in l)(g[d]===void 0||v&&(g[d]===null||g[d]===""))&&(g[d]=y[d]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function i(l){return typeof l=="object"?a(l):c(l)}function a({func:l,args:p}){const b=n[l];return f(l,b),b(p)}function c(l=""){const p=n[l];return f(l,p),p()}function f(l,p){if(!p)throw new Error(`invalid "dynamicDefaults" keyword property value: ${l}`)}t.default=o,e.exports=o}(Jn,Jn.exports)),Jn.exports}var ug=lg();const _f=yr(ug),fg={$id:"urn:jsonschema:credentials",additionalProperties:{properties:{accessKeyId:{default:null,nullable:!0,type:"string"},Bucket:{default:null,nullable:!0,type:"string"},endpoint:{default:null,nullable:!0,type:"string"},region:{default:null,nullable:!0,type:"string"},secretAccessKey:{default:null,nullable:!0,type:"string"}},type:"object"},type:"object"},dg={$id:"urn:jsonschema:data",items:{$ref:"urn:jsonschema:page"},type:"array"},pg={$id:"urn:jsonschema:feed",additionalProperties:!1,definitions:{author:{additionalProperties:!1,minProperties:1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{avatar:{description:"The URL for an image for the author. It should be square and relatively large — such as 512 x 512 pixels — and should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},name:{description:"The author’s name.",type:"string"},url:{description:"The URL of a site owned by the author. It could be a blog, micro-blog, Twitter account, and so on. Ideally the linked-to page provides a way to contact the author, but that’s not required. The URL could be a mailto: link.",format:"uri",type:"string"}},title:"Author",type:"object"},extension:{additionalProperties:!1,patternProperties:{"^[^.]*$":{}},title:"Extension",type:"object"}},description:"JSON Feed Version 1.1",dynamicDefaults:{id:"uuid"},patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{author:{allOf:[{$ref:"#/definitions/author"}],description:"The feed author."},authors:{description:"One or more feed authors.",items:{$ref:"#/definitions/author"},type:"array"},description:{description:"Provides more detail, beyond the title, on what the feed is about. A feed reader may display this text.",type:"string"},expired:{description:"Whether or not the feed is finished — that is, whether or not it will ever update again. A feed for a temporary event, such as an instance of the Olympics, could expire. If the value is true, then it’s expired. Any other value, or the absence of expired, means the feed may continue to update.",type:"boolean"},favicon:{description:"The URL of an image for the feed suitable to be used in a source list. It should be square and relatively small, but not smaller than 64 x 64 pixels (so that it can look good on retina displays). This image should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},feed_url:{description:"The URL of the feed, serves as the unique identifier for the feed. This should be considered required for feeds on the public web.",format:"uri",type:"string"},home_page_url:{description:"The URL of the resource that the feed describes. This resource may or may not actually be a “home” page, but it should be an HTML page. If a feed is published on the public web, this should be considered as required.",format:"uri",type:"string"},hubs:{description:"Describes endpoints that can be used to subscribe to real-time notifications from the publisher of this feed.",items:{additionalProperties:!1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{type:{description:"Describes the protocol used to talk with the hub, such as “rssCloud” or “WebSub.”",type:"string"},url:{format:"uri",type:"string"}},required:["type","url"],type:"object"},type:"array"},icon:{description:"The URL of an image for the feed suitable to be used in a timeline, much the way an avatar might be used. It should be square and relatively large — such as 512 x 512 pixels — so that it can be scaled-down and so that it can look good on retina displays. It should use transparency where appropriate, since it may be rendered on a non-white background.",format:"uri",type:"string"},items:{default:[],items:{additionalProperties:!1,anyOf:[{required:["content_html"]},{required:["content_text"]}],patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{attachments:{description:"Lists related resources. Podcasts, for instance, would include an attachment that’s an audio or video file.",items:{additionalProperties:!1,patternProperties:{"^_[a-zA-Z][^.]*$":{$ref:"#/definitions/extension"}},properties:{duration_in_seconds:{description:"How long it takes to listen to or watch, when played at normal speed.",type:"number"},mime_type:{description:"The type of the attachment, such as “audio/mpeg.”",type:"string"},size_in_bytes:{description:"How large the file is.",type:"number"},title:{description:"A name for the attachment. Important: if there are multiple attachments, and two or more have the exact same title (when title is present), then they are considered as alternate representations of the same thing. In this way a podcaster, for instance, might provide an audio recording in different formats.",type:"string"},url:{description:"The location of the attachment.",format:"uri",type:"string"}},required:["url","mime_type"],type:"object"},type:"array"},author:{allOf:[{$ref:"#/definitions/author"}],description:"The author of the item."},authors:{description:"The authors of the item.",items:{$ref:"#/definitions/author"},type:"array"},banner_image:{description:"The URL of an image to use as a banner. Some blogging systems (such as Medium) display a different banner image chosen to go with each post, but that image wouldn’t otherwise appear in the content_html. A feed reader with a detail view may choose to show this banner image at the top of the detail view, possibly with the title overlaid.",format:"uri",type:"string"},content_html:{description:"The HTML of the item.",type:"string"},content_text:{description:"The plain text of the item.",type:"string"},date_modified:{description:"The modification date in RFC 3339 format.",format:"date-time",type:"string"},date_published:{description:"The date in RFC 3339 format.",format:"date-time",type:"string"},external_url:{description:"The URL of a page elsewhere. This is especially useful for linkblogs. If url links to where you’re talking about a thing, then external_url links to the thing you’re talking about.",format:"uri",type:"string"},id:{description:"Unique for that item for that feed over time. If an item is ever updated, the id should be unchanged. New items should never use a previously-used id. Ideally, the id is the full URL of the resource described by the item, since URLs make great unique identifiers.",type:"string"},image:{description:"The URL of the main image for the item. This image may also appear in the content_html — if so, it’s a hint to the feed reader that this is the main, featured image. Feed readers may use the image as a preview (probably resized as a thumbnail and placed in a timeline).",format:"uri",type:"string"},language:{description:"The language for this item, using the format specified in RFC 5646. The value can be different than the primary language for the feed when a specific item is written in a different language than other items in the feed.",type:"string"},summary:{description:"A plain text sentence or two describing the item. This might be presented in a timeline, for instance, where a detail view would display all of content_html or content_text.",type:"string"},tags:{description:"Can have any plain text values you want. Tags tend to be just one word, but they may be anything. Note: they are not the equivalent of Twitter hashtags. Some blogging systems and other feed formats call these categories.",items:{type:"string"},type:"array"},title:{description:"Plain text. Microblog items in particular may omit titles.",type:"string"},url:{description:"The URL of the resource described by the item. It’s the permalink. This may be the same as the id.",format:"uri",type:"string"}},required:["id"],type:"object"},type:"array"},language:{description:"The primary language for the feed in the format specified in RFC 5646. The value is usually a 2-letter language tag from ISO 639-1, optionally followed by a region tag.",type:"string"},next_url:{description:"The URL of a feed that provides the next n items, where n is determined by the publisher. This allows for pagination, but with the expectation that reader software is not required to use it and probably won’t use it very often.",format:"uri",type:"string"},title:{description:"The name of the feed, which will often correspond to the name of the website (blog, for instance), though not necessarily.",type:"string"},user_comment:{description:"A description of the purpose of the feed. This is for the use of people looking at the raw JSON, and should be ignored by feed readers.",type:"string"},version:{description:"The URL of the version of the format the feed uses. This should appear at the very top.",enum:["https://jsonfeed.org/version/1","https://jsonfeed.org/version/1.1"],format:"uri",type:"string"}},required:["version","title","items"],title:"JSON Feed",type:"object"},hg={$id:"urn:jsonschema:importmap",additionalProperties:!1,properties:{imports:{additionalProperties:{type:"string"},default:{},description:"The Imports field",type:"object"},scopes:{additionalProperties:{additionalProperties:{type:"string"},type:"object"},description:"The Scopes field",type:"object"}},title:"JSON schema for Import Maps files",type:"object"},mg={$id:"urn:jsonschema:page",additionalProperties:!1,dynamicDefaults:{id:"uuid"},properties:{changefreq:{default:null,enum:["always","hourly","daily","weekly","monthly","yearly","never",null],nullable:!0,type:"string"},children:{default:[],items:{type:"object"},type:"array"},class:{default:["prose","max-w-none"],description:"Классы",items:{type:"string"},type:"array"},description:{default:null,nullable:!0,type:"string"},enabled:{default:!0,type:"boolean"},flat:{default:!0,type:"boolean"},header:{type:"string"},icon:{type:"string"},id:{type:"string"},images:{default:[],items:{properties:{alt:{type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},keywords:{default:[],items:{type:"string"},type:"array"},lastmod:{default:null,nullable:!0,type:"string"},loc:{default:null,nullable:!0,type:"string"},name:{default:null,nullable:!0,type:"string"},priority:{default:null,maximum:1,minimum:0,nullable:!0,type:"number"},type:{default:null,enum:["article","book","profile","website","music.song","music.album","music.playlist","music.radio_station","video.movie","video.episode","video.tv_show","video.other",null],nullable:!0,type:"string"}},type:"object"},kf=()=>{const e=URL.createObjectURL(new Blob),t=e.split("/").pop()??crypto.randomUUID();return URL.revokeObjectURL(e),t};_f.DEFAULTS.uuid=()=>kf;const br=new e0({code:{esm:!0},coerceTypes:!0,keywords:[_f()],removeAdditional:!0,schemas:[fg,dg,mg,hg,pg],useDefaults:!0});cg(br);const gg={get(){return this.children.filter(({enabled:e})=>e)}},yg={get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},bg={get(){return this.$siblings[this.$index+1]}},vg={get(){return this.$siblings[this.$index-1]}},$g={get(){return this.siblings.filter(({enabled:e})=>e)}},wg=e=>{window.console.error(e)},_g=async e=>(await fetch(e)).text(),kg=ut({}),Sg=e=>Object.fromEntries(e.map(t=>[t.toLowerCase().replaceAll(" ","_"),t])),Eg={get(){return this.icon&&`i-${this.icon}`}},xg=ut({}),yo=ut([]),Pg={get(){const e=this.branch.slice(1);return e.some(({name:t})=>!t)?void 0:e.map(({name:t})=>t).join("/").replaceAll(" ","_")}},Cg={get(){return["",void 0].includes(this.header)?this.name??"":this.header}},jg={get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}};br.getSchema("urn:jsonschema:credentials");const Rg=br.getSchema("urn:jsonschema:data"),Og=br.getSchema("urn:jsonschema:feed"),Tg=br.getSchema("urn:jsonschema:importmap"),{leaves:bo,objLeaves:Ds}=Wh(yo);Ge(kg,async e=>{await Og?.(e)});Ge(xg,async e=>{await Tg?.(e)});Ge(bo,async e=>{await Rg?.(e)?e.forEach(t=>{Object.defineProperties(t,{$children:gg,$index:yg,$next:bg,$prev:vg,$siblings:$g,i:Eg,path:Pg,title:Cg,to:jg})}):(yo.length=0,yo.push({}))});const Sf=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Ng(e={}){const t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1;let o;return{name:"attributify",match(s,{generator:i}){const a=Lp(s);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;const f=a[2],[,l="",p=f]=f.match(Sf)||[];if(p==="~"||n&&p==="true"||!p)return`${l}${c}`;if(o==null){const b=i?.config?.separators?.join("|");b?o=new RegExp(`^(.*\\](?:${b}))(\\[[^\\]]+?\\])$`):o=!1}if(o){const[,b,y]=f.match(o)||[];if(y)return`${b}${l}${c}-${y}`}if(l&&p.match(/^[\d.]+$/)){const b=l.split(/([^:]*:)/g).filter(Boolean),y=b.pop()+p,v=b.join("");return[{matcher:`${l}${c}-${p}`},{matcher:`${v}${c}-${y}`}]}return`${l}${c}-${p}`}}}const Ag=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Ig=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,jl=/[\s'"`;>]+/;function Mg(e){return{name:"attributify",extract:({content:t,cursor:r})=>{const n=t.matchAll(Ag);let o,s=0;for(const u of n){const[,h,_]=u,$=u.index+h.length;if(r>$&&r<=$+_.length){s=$,o=_;break}}if(!o)return null;const i=o.matchAll(Ig);let a=0,c,f;for(const u of i){const[h,_,$]=u,k=s+u.index;if(r>k&&r<=k+h.length){a=k,c=_,f=$?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;const l=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!l)return null;const p=l?c.slice(e.prefix.length):c;if(f===void 0)return{extracted:p,resolveReplacement(u){const h=l?e.prefix.length:0;return{start:a+h,end:a+c.length,replacement:u}}};const b=a+c.length+2;let y=jl.exec(f),v=0,g;for(;y;){const[u]=y;if(r>b+v&&r<=b+v+y.index){g=f.slice(v,v+y.index);break}v+=y.index+u.length,y=jl.exec(f.slice(v))}g===void 0&&(g=f.slice(v));const[,d="",m]=g.match(Sf)||[];return{extracted:`${d}${p}-${m}`,transformSuggestions(u){return u.filter(h=>h.startsWith(`${d}${p}-`)).map(h=>d+h.slice(d.length+p.length+1))},resolveReplacement(u){return{start:v+b,end:v+b+g.length,replacement:d+u.slice(d.length+p.length+1)}}}}}}const zg=["v-bind:",":"],Rl=/[\s'"`;]+/g,vs=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,qg=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Ef=["placeholder","fill","opacity","stroke-opacity"];function Fg(e){const t=e?.ignoreAttributes??Ef,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(vs)).flatMap(s=>Array.from((s[1]||"").matchAll(qg))).flatMap(([,s,...i])=>{const a=i.filter(Boolean).join("");if(t.includes(s))return[];for(const c of zg)if(s.startsWith(c)){s=s.slice(c.length);break}if(!a){if(Fs(s)&&r!==!1){const c=[`[${s}=""]`];return n&&c.push(`[${s}="true"]`),c}return[]}return["class","className"].includes(s)?a.split(Rl).filter(Fs):vs.test(a)?(vs.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!s.startsWith(e.prefix)?[]:a.split(Rl).filter(c=>!!c&&c!==":").map(c=>`[${s}~="${c}"]`)})}}}const Dg=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??Ef;const t=[Ng(e)],r=[Fg(e)],n=[Mg(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},Lg=Object.freeze({left:0,top:0,width:16,height:16}),vo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),xf=Object.freeze({...Lg,...vo}),Vg=Object.freeze({...xf,body:"",hidden:!1}),Ug=Object.freeze({width:null,height:null}),Pf=Object.freeze({...Ug,...vo});function Hg(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Ol(e,t){const r=Hg(e,t);for(const n in Vg)n in vo?n in e&&!(n in r)&&(r[n]=vo[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Kg(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(s),o}function Tl(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Ol(n[a]||o[a],s)}return i(t),r.forEach(i),Ol(e,s)}function Wg(e,t){if(e.icons[t])return Tl(e,t,[]);const r=Kg(e,[t])[t];return r?Tl(e,t,r):null}const Bg=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gg=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $o(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(Bg);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=Gg.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function Jg(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("</"+t);if(o===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function Xg(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Yg(e,t,r){const n=Jg(e);return Xg(n.defs,t+n.content+r)}const mi=e=>e==="unset"||e==="undefined"||e==="none";function Qg(e,t){const r={...xf,...e},n={...Pf,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(g=>{const d=[],m=g.hFlip,u=g.vFlip;let h=g.rotate;m?u?h+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):u&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let _;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){case 1:_=o.height/2+o.top,d.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:d.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:_=o.width/2+o.left,d.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}h%2===1&&(o.left!==o.top&&(_=o.left,o.left=o.top,o.top=_),o.width!==o.height&&(_=o.width,o.width=o.height,o.height=_)),d.length&&(s=Yg(s,'<g transform="'+d.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=o.width,f=o.height;let l,p;i===null?(p=a===null?"1em":a==="auto"?f:a,l=$o(p,c/f)):(l=i==="auto"?c:i,p=a===null?$o(l,f/c):a==="auto"?f:a);const b={},y=(g,d)=>{mi(d)||(b[g]=d.toString())};y("width",l),y("height",p);const v=[o.left,o.top,c,f];return b.viewBox=v.join(" "),{attributes:b,viewBox:v,body:s}}function Zg(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Nl(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),Zg(t)}function ey(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}const ty=/\swidth\s*=\s*["']([\w.]+)["']/,ry=/\sheight\s*=\s*["']([\w.]+)["']/,$s=/<svg\s+/;function ny(e,t,r){const n=e.slice(0,e.indexOf(">")),o=(s,i)=>{const a=i.exec(n),c=a!=null,f=t[s];return!f&&!mi(f)&&(typeof r=="number"?r>0&&(t[s]=$o(a?.[1]??"1em",r)):a&&(t[s]=a[1])),c};return[o("width",ty),o("height",ry)]}async function Cf(e,t,r,n,o,s){const{scale:i,addXmlNs:a=!1}=n??{},{additionalProps:c={},iconCustomizer:f}=n?.customizations??{},l=await o?.()??{};await f?.(t,r,l),Object.keys(c).forEach(g=>{const d=c[g];d!=null&&(l[g]=d)}),s?.(l);const[p,b]=ny(e,l,i);a&&(!e.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const y=Object.keys(l).map(g=>g==="width"&&p||g==="height"&&b?null:`${g}="${l[g]}"`).filter(g=>g!=null);if(y.length&&(e=e.replace($s,`<svg ${y.join(" ")} `)),n){const{defaultStyle:g,defaultClass:d}=n;d&&!e.includes("class=")&&(e=e.replace($s,`<svg class="${d}" `)),g&&!e.includes("style=")&&(e=e.replace($s,`<svg style="${g}" `))}const v=n?.usedProps;return v&&(Object.keys(c).forEach(g=>{const d=l[g];d!=null&&(v[g]=d)}),typeof l.width<"u"&&l.width!==null&&(v.width=l.width),typeof l.height<"u"&&l.height!==null&&(v.height=l.height)),e}var Xn={exports:{}},ws,Al;function oy(){if(Al)return ws;Al=1;var e=1e3,t=e*60,r=t*60,n=r*24,o=n*7,s=n*365.25;ws=function(l,p){p=p||{};var b=typeof l;if(b==="string"&&l.length>0)return i(l);if(b==="number"&&isFinite(l))return p.long?c(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(p){var b=parseFloat(p[1]),y=(p[2]||"ms").toLowerCase();switch(y){case"years":case"year":case"yrs":case"yr":case"y":return b*s;case"weeks":case"week":case"w":return b*o;case"days":case"day":case"d":return b*n;case"hours":case"hour":case"hrs":case"hr":case"h":return b*r;case"minutes":case"minute":case"mins":case"min":case"m":return b*t;case"seconds":case"second":case"secs":case"sec":case"s":return b*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function a(l){var p=Math.abs(l);return p>=n?Math.round(l/n)+"d":p>=r?Math.round(l/r)+"h":p>=t?Math.round(l/t)+"m":p>=e?Math.round(l/e)+"s":l+"ms"}function c(l){var p=Math.abs(l);return p>=n?f(l,p,n,"day"):p>=r?f(l,p,r,"hour"):p>=t?f(l,p,t,"minute"):p>=e?f(l,p,e,"second"):l+" ms"}function f(l,p,b,y){var v=p>=b*1.5;return Math.round(l/b)+" "+y+(v?"s":"")}return ws}var _s,Il;function sy(){if(Il)return _s;Il=1;function e(t){n.debug=n,n.default=n,n.coerce=f,n.disable=a,n.enable=s,n.enabled=c,n.humanize=oy(),n.destroy=l,Object.keys(t).forEach(p=>{n[p]=t[p]}),n.names=[],n.skips=[],n.formatters={};function r(p){let b=0;for(let y=0;y<p.length;y++)b=(b<<5)-b+p.charCodeAt(y),b|=0;return n.colors[Math.abs(b)%n.colors.length]}n.selectColor=r;function n(p){let b,y=null,v,g;function d(...m){if(!d.enabled)return;const u=d,h=Number(new Date),_=h-(b||h);u.diff=_,u.prev=b,u.curr=h,b=h,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let $=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(S,P)=>{if(S==="%%")return"%";$++;const O=n.formatters[P];if(typeof O=="function"){const q=m[$];S=O.call(u,q),m.splice($,1),$--}return S}),n.formatArgs.call(u,m),(u.log||n.log).apply(u,m)}return d.namespace=p,d.useColors=n.useColors(),d.color=n.selectColor(p),d.extend=o,d.destroy=n.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(v!==n.namespaces&&(v=n.namespaces,g=n.enabled(p)),g),set:m=>{y=m}}),typeof n.init=="function"&&n.init(d),d}function o(p,b){const y=n(this.namespace+(typeof b>"u"?":":b)+p);return y.log=this.log,y}function s(p){n.save(p),n.namespaces=p,n.names=[],n.skips=[];const b=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const y of b)y[0]==="-"?n.skips.push(y.slice(1)):n.names.push(y)}function i(p,b){let y=0,v=0,g=-1,d=0;for(;y<p.length;)if(v<b.length&&(b[v]===p[y]||b[v]==="*"))b[v]==="*"?(g=v,d=y,v++):(y++,v++);else if(g!==-1)v=g+1,d++,y=d;else return!1;for(;v<b.length&&b[v]==="*";)v++;return v===b.length}function a(){const p=[...n.names,...n.skips.map(b=>"-"+b)].join(",");return n.enable(""),p}function c(p){for(const b of n.skips)if(i(p,b))return!1;for(const b of n.names)if(i(p,b))return!0;return!1}function f(p){return p instanceof Error?p.stack||p.message:p}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return _s=e,_s}var Ml;function iy(){return Ml||(Ml=1,function(e,t){var r={};t.formatArgs=o,t.save=s,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let f=!1;return()=>{f||(f=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let f;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(f=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(f[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(f){if(f[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+f[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;f.splice(1,0,l,"color: inherit");let p=0,b=0;f[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(p++,y==="%c"&&(b=p))}),f.splice(b,0,l)}t.log=console.debug||console.log||(()=>{});function s(f){try{f?t.storage.setItem("debug",f):t.storage.removeItem("debug")}catch{}}function i(){let f;try{f=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!f&&typeof process<"u"&&"env"in process&&(f=r.DEBUG),f}function a(){try{return localStorage}catch{}}e.exports=sy()(t);const{formatters:c}=e.exports;c.j=function(f){try{return JSON.stringify(f)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Xn,Xn.exports)),Xn.exports}var ay=iy();const jf=yr(ay),cy=jf("@iconify-loader:custom");async function zl(e,t,r,n){let o;cy(`${t}:${r}`);try{if(typeof e=="function")o=await e(r);else{const s=e[r];o=typeof s=="function"?await s():s}}catch(s){console.warn(`Failed to load custom icon "${r}" in "${t}":`,s);return}if(o){const s=o.indexOf("<svg");s>0&&(o=o.slice(s));const{transform:i}=n?.customizations??{};return o=typeof i=="function"?await i(o,t,r):o,o.startsWith("<svg")?await Cf(n?.customizations?.trimCustomSvg===!0?ey(o):o,t,r,n,void 0):(console.warn(`Custom icon "${r}" in "${t}" is not a valid SVG`),o)}}const ly=jf("@iconify-loader:icon");async function Rf(e,t,r,n){let o;const{customize:s}=n?.customizations??{};for(const i of r)if(o=Wg(e,i),o){ly(`${t}:${i}`);let a={...Pf};typeof s=="function"&&(o=Object.assign({},o),a=s(a,o,`${t}:${i}`)??a);const{attributes:{width:c,height:f,...l},body:p}=Qg(o,a),b=n?.scale;return await Cf(`<svg >${p}</svg>`,t,i,n,()=>({...l}),y=>{const v=(g,d)=>{const m=y[g];let u;if(!mi(m)){if(m)return;typeof b=="number"?b&&(u=$o(d??"1em",b)):u=d}u?y[g]=u:delete y[g]};v("width",c),v("height",f)})}}const Of=async(e,t,r)=>{const n=r?.customCollections?.[e];if(n)if(typeof n=="function"){let o;try{o=await n(t)}catch(s){console.warn(`Failed to load custom icon "${t}" in "${e}":`,s);return}if(o){if(typeof o=="string")return await zl(()=>o,e,t,r);if("icons"in o){const s=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Rf(o,e,s,r)}}}else return await zl(n,e,t,r)},uy=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,fy=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,dy=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function py(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){hy(e);return}return t}function hy(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function my(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!dy.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(uy.test(e)||fy.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,py)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const gy=/#/g,yy=/&/g,by=/\//g,vy=/=/g,gi=/\+/g,$y=/%5e/gi,wy=/%60/gi,_y=/%7c/gi,ky=/%20/gi;function Sy(e){return encodeURI(""+e).replace(_y,"|")}function Ls(e){return Sy(typeof e=="string"?e:JSON.stringify(e)).replace(gi,"%2B").replace(ky,"+").replace(gy,"%23").replace(yy,"%26").replace(wy,"`").replace($y,"^").replace(by,"%2F")}function ks(e){return Ls(e).replace(vy,"%3D")}function Tf(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Ey(e){return Tf(e.replace(gi," "))}function xy(e){return Tf(e.replace(gi," "))}function Py(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const o=Ey(n[1]);if(o==="__proto__"||o==="constructor")continue;const s=xy(n[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function Cy(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${ks(e)}=${Ls(r)}`).join("&"):`${ks(e)}=${Ls(t)}`:ks(e)}function jy(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Cy(t,e[t])).filter(Boolean).join("&")}const Ry=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Oy=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Ty=/^([/\\]\s*){2,}[^/\\]/,Ny=/^\.?\//;function Nf(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Ry.test(e):Oy.test(e)||(t.acceptRelative?Ty.test(e):!1)}function Ay(e="",t){return e.endsWith("/")}function Iy(e="",t){return(Ay(e)?e.slice(0,-1):e)||"/"}function My(e="",t){return e.endsWith("/")?e:e+"/"}function zy(e,t){if(Fy(t)||Nf(e))return e;const r=Iy(t);return e.startsWith(r)?e:Ly(r,e)}function qy(e,t){const r=Vy(e),n={...Py(r.search),...t};return r.search=jy(n),Uy(r)}function Fy(e){return!e||e==="/"}function Dy(e){return e&&e!=="/"}function Ly(e,...t){let r=e||"";for(const n of t.filter(o=>Dy(o)))if(r){const o=n.replace(Ny,"");r=My(r)+o}else r=n;return r}const Af=Symbol.for("ufo:protocolRelative");function Vy(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,p,b=""]=r;return{protocol:p.toLowerCase(),pathname:b,href:p+b,auth:"",host:"",search:"",hash:""}}if(!Nf(e,{acceptRelative:!0}))return ql(e);const[,n="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:f,hash:l}=ql(a);return{protocol:n.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:c,search:f,hash:l,[Af]:!n}}function ql(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function Uy(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Af]?(e.protocol||"")+"//":"")+o+s+t+r+n}class If extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}}function Mf(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",o=`[${r}] ${JSON.stringify(n)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${o}: ${s}${t?` ${t}`:""}`,a=new If(i,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[f]}});return a}const Hy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Fl(e="GET"){return Hy.has(e.toUpperCase())}function Ky(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Wy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),By=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Gy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return By.test(t)?"json":Wy.has(t)||t.startsWith("text/")?"text":"blob"}function Jy(e,t,r,n){const o=Xy(t?.headers??e?.headers,r?.headers,n);let s;return(r?.query||r?.params||t?.params||t?.query)&&(s={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:s,params:s,headers:o}}function Xy(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(o,s);return n}async function Yn(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const Yy=new Set([408,409,425,429,500,502,503,504]),Qy=new Set([101,204,205,304]);function yi(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function o(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let l;typeof a.options.retry=="number"?l=a.options.retry:l=Fl(a.options.method)?0:1;const p=a.response&&a.response.status||500;if(l>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(p):Yy.has(p))){const b=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return b>0&&await new Promise(y=>setTimeout(y,b)),s(a.request,{...a.options,retry:l-1})}}const f=Mf(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,s),f}const s=async function(c,f={}){const l={request:c,options:Jy(c,f,e.defaults,r),response:void 0,error:void 0};l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&await Yn(l,l.options.onRequest),typeof l.request=="string"&&(l.options.baseURL&&(l.request=zy(l.request,l.options.baseURL)),l.options.query&&(l.request=qy(l.request,l.options.query),delete l.options.query),"query"in l.options&&delete l.options.query,"params"in l.options&&delete l.options.params),l.options.body&&Fl(l.options.method)&&(Ky(l.options.body)?(l.options.body=typeof l.options.body=="string"?l.options.body:JSON.stringify(l.options.body),l.options.headers=new r(l.options.headers||{}),l.options.headers.has("content-type")||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")):("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half")));let p;if(!l.options.signal&&l.options.timeout){const y=new n;p=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,y.abort(v)},l.options.timeout),l.options.signal=y.signal}try{l.response=await t(l.request,l.options)}catch(y){return l.error=y,l.options.onRequestError&&await Yn(l,l.options.onRequestError),await o(l)}finally{p&&clearTimeout(p)}if((l.response.body||l.response._bodyInit)&&!Qy.has(l.response.status)&&l.options.method!=="HEAD"){const y=(l.options.parseResponse?"json":l.options.responseType)||Gy(l.response.headers.get("content-type")||"");switch(y){case"json":{const v=await l.response.text(),g=l.options.parseResponse||my;l.response._data=g(v);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[y]()}}return l.options.onResponse&&await Yn(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await Yn(l,l.options.onResponseError),await o(l)):l.response},i=async function(c,f){return(await s(c,f))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={},c={})=>yi({...e,...c,defaults:{...e.defaults,...c.defaults,...a}}),i}const wo=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),zf=wo.fetch?(...e)=>wo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),qf=wo.Headers,Ff=wo.AbortController,Df=yi({fetch:zf,Headers:qf,AbortController:Ff}),Lf=Df,Vs=Object.freeze(Object.defineProperty({__proto__:null,$fetch:Lf,AbortController:Ff,FetchError:If,Headers:qf,createFetch:yi,createFetchError:Mf,fetch:zf,ofetch:Df},Symbol.toStringTag,{value:"Module"}));var Dl={};const Vf=["academicons","akar-icons","ant-design","arcticons","aws","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],Zy=3;function eb(e){return(t={})=>{const{scale:r=1,mode:n="auto",prefix:o="i-",warn:s=!1,iconifyCollectionsNames:i,collections:a,extraProperties:c={},customizations:f={},autoInstall:l=!1,collectionsNodeResolvePath:p,layer:b="icons",unit:y,processor:v}=t,g=tb(),d={addXmlNs:!0,scale:r,customCollections:a,autoInstall:l,cwd:p,warn:void 0,customizations:{...f,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(u,h,_){await f.iconCustomizer?.(u,h,_),y&&(_.width||(_.width=`${r}${y}`),_.height||(_.height=`${r}${y}`))}}};let m;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Nl,parseIconWithLoader:Ll},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async u=>{let[h,_,$=n]=u;m=m||await e(t);const k={},S=await Ll(_,m,{...d,usedProps:k},i);if(!S){s&&!g.isESLint&&ef(`failed to load icon "${h}"`);return}let P;const O=`url("data:image/svg+xml;utf8,${Nl(S.svg)}")`;return $==="auto"&&($=S.svg.includes("currentColor")?"mask":"bg"),$==="mask"?P={"--un-icon":O,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...k}:P={background:`${O} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...k},v?.(P,{...S,icon:S.name,mode:$}),P},{layer:b,prefix:o}]]}}}function Uf(e,t,r=new Map){function n(o){if(Vf.includes(o))return r.has(o)||r.set(o,e(`${t}@iconify-json/${o}/icons.json`)),r.get(o)}return async(o,s,i)=>{let a=await Of(o,s,i);if(a)return a;const c=await n(o);if(c){const f=[s,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Rf(c,o,f,i)}return a}}function tb(){const e=typeof process<"u"&&process.stdout,t=e&&!!Dl.VSCODE_CWD,r=e&&!!Dl.ESLINT;return{isNode:e,isVSCode:t,isESLint:r}}async function Ll(e,t,r={},n=[]){let o="",s="",i;const a=new Set([...Vf,...n,...Object.keys(r.customCollections||{})]);if(e.includes(":")){if([o,s]=e.split(":"),!a.has(o))return;i=await t(o,s,r)}else{const c=e.split(/-/g);for(let f=Zy;f>=1&&(o=c.slice(0,f).join("-"),!(!!a.has(o)&&(s=c.slice(f).join("-"),i=await t(o,s,r),i)));f--);}if(i)return{collection:o,name:s,svg:i}}function rb(e){return Uf(Lf,e)}const nb=eb(async e=>{const t=e?.customFetch,r=e?.cdn;return t&&r?Uf(t,r):r?rb(r):Of}),Us="__TAGIFY__",ob=/<([\w:-]+)/g;function sb(e){const{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(ob)).filter(({1:o})=>{for(const s of r)if(typeof s=="string"){if(o===s)return!1}else if(s.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${Us}${o}`)}}}function ib(e){const{extraProperties:t}=e,r=`${Us}${e.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;const o=n.slice(r.length),s={matcher:o,selector:i=>i.slice(Us.length+1)};return t&&(typeof t=="function"?s.body=i=>[...i,...Object.entries(t(o)??{})]:s.body=i=>[...i,...Object.entries(t)]),s}}}const ab=(e={})=>{const{defaultExtractor:t=!0}=e,r=[ib(e)],n=[sb(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}};class _o{constructor(t){this.bits=t instanceof _o?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class pr{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new pr(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){const r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;const s=new pr(t,this.end,o);return s.outro=this.outro,this.outro="",this.end=t,this.edited?(s.edit("",!1),this.content=""):this.content=n,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const r=this.content.replace(t,"");if(r.length){if(r!==this.content){const n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}}function cb(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const lb=cb();class ub{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Wd(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+lb(this.toString())}}function fb(e){const t=e.split(`
24
- `),r=t.filter(s=>/^\t+/.test(s)),n=t.filter(s=>/^ {2,}/.test(s));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";const o=n.reduce((s,i)=>{const a=/^ +/.exec(i)[0].length;return Math.min(a,s)},1/0);return new Array(o+1).join(" ")}function db(e,t){const r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}const pb=Object.prototype.toString;function hb(e){return pb.call(e)==="[object Object]"}function Vl(e){const t=e.split(`
25
- `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let s=0,i=r.length;for(;s<i;){const f=s+i>>1;o<r[f]?i=f:s=f+1}const a=s-1,c=o-r[a];return{line:a,column:c}}}const mb=/\w/;class gb{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){const s=r.length-1;let i=r.indexOf(`
26
- `,0),a=-1;for(;i>=0&&s>i;){const f=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&f.push(o),this.rawSegments.push(f),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=i,i=r.indexOf(`
27
- `,i+1)}const c=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&c.push(o),this.rawSegments.push(c),this.advance(r.slice(a+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(t,r,n,o,s){let i=r.start,a=!0,c=!1;for(;i<r.end;){if(n[i]===`
28
- `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0,c=!1;else{if(this.hires||a||s.has(i)){const f=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?mb.test(n[i])?c||(this.rawSegments.push(f),c=!0):(this.rawSegments.push(f),c=!1):this.rawSegments.push(f)}o.column+=1,this.generatedCodeColumn+=1,a=!1}i+=1}this.pending=null}advance(t){if(!t)return;const r=t.split(`
29
- `);if(r.length>1){for(let n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}}const Zt=`
30
- `,Tt={insertLeft:!1,insertRight:!1,storeName:!1};class bi{constructor(t,r={}){const n=new pr(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new _o},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=n,this.byEnd[t.length]=n}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];return n?n.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];return n?n.appendRight(r):this.outro+=r,this}clone(){const t=new bi(this.original,{filename:this.filename,offset:this.offset});let r=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[n.start]=n,t.byEnd[n.end]=n;const o=r.next,s=o&&o.clone();s&&(n.next=s,s.previous=n,n=s),r=o}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new _o(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};const r=0,n=Object.keys(this.storedNames),o=new gb(t.hires),s=Vl(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(i=>{const a=s(i.start);i.intro.length&&o.advance(i.intro),i.edited?o.addEdit(r,i.content,a,i.storeName?n.indexOf(i.original):-1):o.addUneditedChunk(r,i,this.original,a,this.sourcemapLocations),i.outro.length&&o.advance(i.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?db(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new ub(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=fb(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){const n=/^[^\r\n]/gm;if(hb(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};const o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(l=>{for(let p=l[0];p<l[1];p+=1)o[p]=!0});let s=r.indentStart!==!1;const i=f=>s?`${t}${f}`:(s=!0,f);this.intro=this.intro.replace(n,i);let a=0,c=this.firstChunk;for(;c;){const f=c.end;if(c.edited)o[a]||(c.content=c.content.replace(n,i),c.content.length&&(s=c.content[c.content.length-1]===`
31
- `));else for(a=c.start;a<f;){if(!o[a]){const l=this.original[a];l===`
32
- `?s=!0:l!=="\r"&&s&&(s=!1,a===c.start||(this._splitChunk(c,a),c=c.next),c.prependRight(t))}a+=1}a=c.end,c=c.next}return this.outro=this.outro.replace(n,i),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return Tt.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Tt.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return Tt.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Tt.insertRight=!0),this.prependRight(t,r)}move(t,r,n){if(t=t+this.offset,r=r+this.offset,n=n+this.offset,n>=t&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(n);const o=this.byStart[t],s=this.byEnd[r],i=o.previous,a=s.next,c=this.byStart[n];if(!c&&s===this.lastChunk)return this;const f=c?c.previous:this.lastChunk;return i&&(i.next=a),a&&(a.previous=i),f&&(f.next=o),c&&(c.previous=s),o.previous||(this.firstChunk=s.next),s.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=f,s.next=c||null,f||(this.firstChunk=o),c||(this.lastChunk=s),this}overwrite(t,r,n,o){return o=o||{},this.update(t,r,n,{...o,overwrite:!o.contentOnly})}update(t,r,n,o){if(t=t+this.offset,r=r+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(r),o===!0&&(Tt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Tt.storeName=!0),o={storeName:!0});const s=o!==void 0?o.storeName:!1,i=o!==void 0?o.overwrite:!1;if(s){const f=this.original.slice(t,r);Object.defineProperty(this.storedNames,f,{writable:!0,value:!0,enumerable:!0})}const a=this.byStart[t],c=this.byEnd[r];if(a){let f=a;for(;f!==c;){if(f.next!==this.byStart[f.end])throw new Error("Cannot overwrite across a split point");f=f.next,f.edit("",!1)}a.edit(n,s,!i)}else{const f=new pr(t,r,"").edit(n,s);c.next=f,f.previous=c}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byEnd[t];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(t=t+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);const n=this.byStart[t];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(t,r){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Zt);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(Zt),t!==-1)return n.outro.substr(t+1)+r;r=n.outro+r}if(n.content.length>0){if(t=n.content.lastIndexOf(Zt),t!==-1)return n.content.substr(t+1)+r;r=n.content+r}if(n.intro.length>0){if(t=n.intro.lastIndexOf(Zt),t!==-1)return n.intro.substr(t+1)+r;r=n.intro+r}}while(n=n.previous);return t=this.intro.lastIndexOf(Zt),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length-this.offset){if(t=t+this.offset,r=r+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length}let n="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<r&&o.end>=r)return n;o=o.next}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const s=o;for(;o;){o.intro&&(s!==o||o.start===t)&&(n+=o.intro);const i=o.start<r&&o.end>=r;if(i&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);const a=s===o?t-o.start:0,c=i?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(a,c),o.outro&&(!i||o.end===r)&&(n+=o.outro),i)break;o=o.next}return n}snip(t,r){const n=this.clone();return n.remove(0,t),n.remove(r,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk;const n=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(t,r){if(t.edited&&t.content.length){const o=Vl(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} – "${t.original}")`)}const n=t.split(r);return this.byEnd[r]=t,this.byStart[r]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{const o=n.end,s=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{const o=n.end,s=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),s)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function n(s,i){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,c)=>c==="$"?"$":c==="&"?s[0]:+c<s.length?s[+c]:`$${c}`):r(...s,s.index,i,s.groups)}function o(s,i){let a;const c=[];for(;a=s.exec(i);)c.push(a);return c}if(t.global)o(t,this.original).forEach(i=>{if(i.index!=null){const a=n(i,this.original);a!==i[0]&&this.overwrite(i.index,i.index+i[0].length,a)}});else{const s=this.original.match(t);if(s&&s.index!=null){const i=n(s,this.original);i!==s[0]&&this.overwrite(s.index,s.index+s[0].length,i)}}return this}_replaceString(t,r){const{original:n}=this,o=n.indexOf(t);return o!==-1&&this.overwrite(o,o+t.length,r),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){const{original:n}=this,o=t.length;for(let s=n.indexOf(t);s!==-1;s=n.indexOf(t,s+o))n.slice(s,s+o)!==r&&this.overwrite(s,s+o,r);return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}}function vi(e,t,r){if(e==="")return;const n=e.length;let o=0,s=!1,i=0;for(let a=0;a<n;a++)switch(e[a]){case t:s||(s=!0,i=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(i,a+1),e.slice(a+1),e.slice(0,i)];break}}function Lo(e,t,r,n){if(e===""||(ve(n)&&(n=[n]),n.length===0))return;const o=e.length;let s=0;for(let i=0;i<o;i++)switch(e[i]){case t:s++;break;case r:if(--s<0)return;break;default:for(const a of n){const c=a.length;if(c&&a===e.slice(i,i+c)&&s===0)return i===0||i===o-c?void 0:[e.slice(0,i),e.slice(i+c)]}}return[e,""]}function hr(e,t,r,n="(",o=")"){r=r??10;const s=[];let i=0;for(;e!=="";){if(++i>r)return;const a=Lo(e,n,o,t);if(!a)return;const[c,f]=a;s.push(c),e=f}if(s.length>0)return s}const $i=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],yb=["srgb","srgb-linear","display-p3","a98-rgb","prophoto-rgb","rec2020","lab","oklab","xyz","xyz-d50","xyz-d65"],bb=["hsl","hwb","lch","oklch"],vb=["shorter","longer","increasing","decreasing"],Hf=["%alpha","<alpha-value>"],Kf=new RegExp(Hf.map(e=>dr(e)).join("|"),"g");function Ul(e){return e?yb.some(t=>e.includes(t))||bb.some(t=>e.includes(t))||vb.some(t=>e.includes(t)):!1}function Mt(e=""){const t=$b(e);if(t==null||t===!1)return;const{type:r,components:n,alpha:o}=t,s=r.toLowerCase();if(n.length!==0&&!($i.includes(s)&&![1,3].includes(n.length)))return{type:s,components:n.map(i=>typeof i=="string"?i.trim():i),alpha:typeof o=="string"?o.trim():o}}function Hs(e,t){if(typeof e=="string")return e.replace(Kf,`${t??1}`);const{components:r}=e;let{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,$i.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function $b(e){if(!e)return;let t=wb(e);if(t!=null||(t=_b(e),t!=null)||(t=kb(e),t!=null)||(t=Eb(e),t!=null)||(t=xb(e),t!=null))return t}function wb(e){const[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{const r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{const r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function _b(e){const t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function kb(e){const t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;const[,r,n]=t,o=hr(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}const Sb=new RegExp(`^(${$i.join("|")})\\((.+)\\)$`,"i");function Eb(e){const t=e.match(Sb);if(!t)return;const[,r,n]=t,o=Wf(`${r} ${n}`);if(o){const{alpha:s,components:[i,...a]}=o;return{type:i,components:a,alpha:s}}}function xb(e){const t=e.match(/^color\((.+)\)$/);if(!t)return;const r=Wf(t[1]);if(r){const{alpha:n,components:[o,...s]}=r;return{type:o,components:s,alpha:n}}}function Wf(e){const t=hr(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){const s=t.splice(r-2);t.push(s.join(" ")),--r}const n=hr(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};const o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}const Pb=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Cb(e){return e.includes("theme(")&&e.includes(")")}function jb(e,t,r=!0){const n=Array.from(e.toString().matchAll(Pb));if(!n.length)return e;const o=new bi(e);for(const s of n){const i=s[2];if(!i)throw new Error("theme() expect exact one argument, but got 0");const a=Rb(i,t,r);a&&o.overwrite(s.index,s.index+s[0].length,a)}return o.toString()}function Rb(e,t,r=!0){const[n,o]=e.split("/");let i=n.trim().split(".").reduce((a,c)=>a?.[c],t);if(typeof i=="object"&&(i=i.DEFAULT),typeof i=="string"){if(o){const a=Mt(i);a&&(i=Hs(a,o))}return i}else if(r)throw new Error(`theme of "${e}" did not found`)}function Hl(e){const t=e.match(/^-?\d+\.?\d*/)?.[0]||"",r=e.slice(t.length);if(r==="px"){const n=Number.parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`}return`calc(${e} - 0.1px)`}function Ob(e){const t=function(n){const o=this.__options?.sequence||[];this.__options.sequence=[];for(const s of o){const i=e[s](n);if(i!=null)return i}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(const n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}const Bf="__pseudo_placeholder__",Vt=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${Bf})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Gf=Object.keys(Vt),Ut=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Jf=Object.keys(Ut),Tb=["not","is","where","has"],Xf=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Ks=Object.entries(Vt).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Ws=Object.entries(Ut).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),_t=Tb.join("|"),Kl=Object.keys(Xf).sort((e,t)=>t.length-e.length).join("|"),Nb=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Wl=Object.entries(Vt).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Bl=Object.entries(Ut).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function Ab(e,t,r,n){const{h:o,variantGetBracket:s}=n,i=new RegExp(`^(${dr(t)}:)(\\S+)${dr(r)}\\1`);let a,c,f,l;const p=v=>{const g=s(`${e}-`,v,[]);if(!g)return;const[d,m]=g,u=o.bracket(d);if(u==null)return;const h=m.split(a,1)?.[0]??"",_=`${t}${zt(h)}`;return[h,v.slice(v.length-(m.length-h.length-1)),u.includes("&")?u.replace(/&/g,_):`${_}${u}`]},b=v=>{const g=v.match(c)||v.match(f);if(!g)return;const[d,m,u]=g,h=g[3]??"";let _=Vt[u]||Ut[u]||`:${u}`;return m&&(_=`:${m}(${_})`),[h,v.slice(d.length),`${t}${zt(h)}${_}`,u]},y=v=>{const g=v.match(l);if(!g)return;const[d,m,u]=g,h=g[3]??"",_=`:${m}(${u})`;return[h,v.slice(d.length),`${t}${zt(h)}${_}`]};return{name:`pseudo:${e}`,match(v,g){if(a&&c&&f||(a=new RegExp(`(?:${g.generator.config.separators.join("|")})`),c=new RegExp(`^${e}-(?:(?:(${_t})-)?(${Ks}))(?:(/[\\w-]+))?(?:${g.generator.config.separators.join("|")})`),f=new RegExp(`^${e}-(?:(?:(${_t})-)?(${Ws}))(?:(/[\\w-]+))?(?:${g.generator.config.separators.filter($=>$!=="-").join("|")})`),l=new RegExp(`^${e}-(?:(${_t})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${g.generator.config.separators.filter($=>$!=="-").join("|")})`)),!v.startsWith(e))return;const d=p(v)||b(v)||y(v);if(!d)return;const[m,u,h,_=""]=d;return{matcher:u,handle:($,k)=>k({...$,prefix:`${h}${r}${$.prefix}`.replace(i,"$1$2:"),sort:Gf.indexOf(_)??Jf.indexOf(_)})}},multiPass:!0}}function Ib(e){const{h:t}=e;let r,n,o;return[{name:"pseudo",match(s,i){r&&n||(r=new RegExp(`^(${Wl})(?:-(\\d+|\\[\\w+\\]))?(?:${i.generator.config.separators.join("|")})`),n=new RegExp(`^(${Bl})(?:${i.generator.config.separators.filter(c=>c!=="-").join("|")})`));const a=s.match(r)||s.match(n);if(a){let c=Vt[a[1]]||Ut[a[1]]||`:${a[1]}`;if(a[2]){let l;a[2].startsWith("[")&&a[2].endsWith("]")?l=t.bracket(a[2]):l=a[2],l&&(c=c.replace(Bf,l))}let f=Gf.indexOf(a[1]);return f===-1&&(f=Jf.indexOf(a[1])),f===-1&&(f=void 0),{matcher:s.slice(a[0].length),handle:(l,p)=>{const b=c.includes("::")&&!Nb.includes(c)?{pseudo:`${l.pseudo}${c}`}:{selector:`${l.selector}${c}`};return p({...l,...b,sort:f,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Wl}|${Bl}):`},{name:"pseudo:multi",match(s,i){o||(o=new RegExp(`^(${Kl})(?:${i.generator.config.separators.join("|")})`));const a=s.match(o);if(a)return Xf[a[1]].map(f=>({matcher:s.slice(a[0].length),handle:(l,p)=>p({...l,pseudo:`${l.pseudo}${f}`})}))},multiPass:!1,autocomplete:`(${Kl}):`}]}function Mb(e){const{getBracket:t,h:r}=e;let n,o,s;return{match(i,a){n&&o||(n=new RegExp(`^(${_t})-(${Ks})(?:${a.generator.config.separators.join("|")})`),o=new RegExp(`^(${_t})-(${Ws})(?:${a.generator.config.separators.filter(f=>f!=="-").join("|")})`),s=new RegExp(`^(${_t})-(\\[.+\\])(?:${a.generator.config.separators.filter(f=>f!=="-").join("|")})`));const c=i.match(n)||i.match(o)||i.match(s);if(c){const f=c[1],p=t(c[2],"[","]")?r.bracket(c[2]):Vt[c[2]]||Ut[c[2]]||`:${c[2]}`;return{matcher:i.slice(c[0].length),selector:b=>`${b}:${f}(${p})`}}},multiPass:!0,autocomplete:`(${_t})-(${Ks}|${Ws}):`}}function zb(e,t){const r=!!e?.attributifyPseudo;let n=e?.prefix??"";n=(Array.isArray(n)?n:[n]).filter(Boolean)[0]??"";const o=(s,i)=>Ab(s,r?`[${n}${s}=""]`:`.${n}${s}`,i,t);return[o("group"," "),o("peer","~"),o("parent",">"),o("previous","+")]}const qb=/(part-\[(.+)\]:)(.+)/;function Fb(){return{match(e){const t=e.match(qb);if(t){const r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0}}function Ve(e,t,r={}){let n;return{name:e,match(o,s){n||(n=new RegExp(`^${dr(e)}(?:${s.generator.config.separators.join("|")})`));const i=o.match(n);if(i){const a=o.slice(i[0].length),c=ge(t).map(f=>({matcher:a,handle:(l,p)=>p({...l,...f(l)}),...r}));return c.length===1?c[0]:c}},autocomplete:`${e}:`}}function Oe(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${dr(e)}(?:${o.generator.config.separators.join("|")})`));const s=n.match(r);if(s)return{matcher:n.slice(s[0].length),handle:(i,a)=>a({...i,parent:`${i.parent?`${i.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function vr(e,t,r){if(t.startsWith(`${e}[`)){const[n,o]=vi(t.slice(e.length),"[","]")??[];if(n&&o){for(const s of r)if(o.startsWith(s))return[n,o.slice(s.length),s];return[n,o,""]}}}function ze(e,t,r){for(const n of ge(e))if(t.startsWith(n)){const o=vr(n,t,r);if(o){const[s="",i=o[1]]=ze("/",o[1],r)??[];return[o[0],i,s]}for(const s of r.filter(i=>i!=="/")){const i=t.indexOf(s,n.length);if(i!==-1){const a=t.indexOf("/",n.length),c=a===-1||i<=a;return[t.slice(n.length,c?i:a),t.slice(i+s.length),c?"":t.slice(a+1,i)]}}}}function Gl(e){return{"h1,h2,h3,h4,h5,h6":{color:"var(--un-prose-headings)","font-weight":"600","line-height":1.25},a:{color:"var(--un-prose-links)","text-decoration":"underline","font-weight":"500"},"a code":{color:"var(--un-prose-links)"},"p,ul,ol,pre":{margin:"1em 0","line-height":1.75},blockquote:{margin:"1em 0","padding-left":"1em","font-style":"italic","border-left":".25em solid var(--un-prose-borders)"},h1:{margin:"1rem 0","font-size":"2.25em"},h2:{margin:"1.75em 0 .5em","font-size":"1.75em"},h3:{margin:"1.5em 0 .5em","font-size":"1.375em"},h4:{margin:"1em 0","font-size":"1.125em"},"img,video":{"max-width":"100%"},"figure,picture":{margin:"1em 0"},figcaption:{color:"var(--un-prose-captions)","font-size":".875em"},code:{color:"var(--un-prose-code)","font-size":".875em","font-weight":600,"font-family":e.fontFamily?.mono},":not(pre) > code::before,:not(pre) > code::after":{content:'"`"'},pre:{padding:"1.25rem 1.5rem","overflow-x":"auto","border-radius":".375rem"},"pre,code":{"white-space":"pre","word-spacing":"normal","word-break":"normal","word-wrap":"normal","-moz-tab-size":4,"-o-tab-size":4,"tab-size":4,"-webkit-hyphens":"none","-moz-hyphens":"none",hyphens:"none",background:"transparent"},"pre code":{"font-weight":"inherit"},"ol,ul":{"padding-left":"1.25em"},ol:{"list-style-type":"decimal"},'ol[type="A"]':{"list-style-type":"upper-alpha"},'ol[type="a"]':{"list-style-type":"lower-alpha"},'ol[type="A" s]':{"list-style-type":"upper-alpha"},'ol[type="a" s]':{"list-style-type":"lower-alpha"},'ol[type="I"]':{"list-style-type":"upper-roman"},'ol[type="i"]':{"list-style-type":"lower-roman"},'ol[type="I" s]':{"list-style-type":"upper-roman"},'ol[type="i" s]':{"list-style-type":"lower-roman"},'ol[type="1"]':{"list-style-type":"decimal"},ul:{"list-style-type":"disc"},"ol > li::marker,ul > li::marker,summary::marker":{color:"var(--un-prose-lists)"},hr:{margin:"2em 0",border:"1px solid var(--un-prose-hr)"},table:{display:"block",margin:"1em 0","border-collapse":"collapse","overflow-x":"auto"},"tr:nth-child(2n)":{background:"var(--un-prose-bg-soft)"},"td,th":{border:"1px solid var(--un-prose-borders)",padding:".625em 1em"},abbr:{cursor:"help"},kbd:{color:"var(--un-prose-code)",border:"1px solid",padding:".25rem .5rem","font-size":".875em","border-radius":".25rem"},details:{margin:"1em 0",padding:"1.25rem 1.5rem",background:"var(--un-prose-bg-soft)"},summary:{cursor:"pointer","font-weight":"600"}}}const Db=[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"]];function Lb(e){for(const[t,...r]of Db)if(t===e)return r.length>0?r:[t]}function Jl(e){let t="";const{escapedSelector:r,selectorName:n,preflights:o,compatibility:s,important:i}=e,a=s?.noColonNot||s?.noColonWhere;for(const c in o){const f=o[c],l=`:not(:where(.not-${n},.not-${n} *))`,p=c.split(",").map(b=>{const y=b.match(/:[():\-\w]+$/g);if(y){const v=y[0];return b=b.replace(v,""),r.map(g=>a?`${g} ${b}${v}`:`${g} :where(${b})${l}${v}`).join(",")}return null}).filter(b=>b);p.length?t+=p.join(","):t+=r.map(b=>a?c.split(",").map(y=>`${b} ${y}`).join(","):`${b} :where(${c})${l}`).join(","),t+="{";for(const b in f){const y=f[b];t+=`${b}:${y}${i?" !important":""};`}t+="}"}return t}function Vb(e,t){const{compatibility:r,selectorName:n,important:o=!1}=t,s=typeof t?.cssExtend=="function"?t.cssExtend(e.theme):t?.cssExtend;let i=Array.from(t.escapedSelectors);return!i[i.length-1].startsWith(".")&&!r?.noColonIs&&(i=[`:is(${i[i.length-1]},.${t.selectorName})`]),typeof o=="string"&&(i=i.map(a=>r?.noColonIs?`${o} ${a}`:`:is(${o}) ${a}`)),Jl(s?{escapedSelector:i,selectorName:n,preflights:jo(Gl(e.theme),s),compatibility:r,important:o===!0}:{escapedSelector:i,selectorName:n,preflights:Gl(e.theme),compatibility:r,important:o===!0})}const Ub=e=>{e?.className&&console.warn('[unocss:preset-typography] "className" is deprecated. Please use "selectorName" instead.');const t=new Set,r=e?.selectorName||e?.className||"prose",n=new RegExp(`^${r}$`),o=new RegExp(`^${r}-([-\\w]+)$`),s=new RegExp(`^${r}-invert$`),i=e?.compatibility?.noColonNot||e?.compatibility?.noColonWhere;return{name:"@unocss/preset-typography",enforce:"post",layers:{typography:-20},rules:[[n,(a,{rawSelector:c})=>(t.add(of(c)),{color:"var(--un-prose-body)","max-width":"65ch"}),{layer:"typography"}],[o,([,a],{theme:c})=>{const f=c.colors?.[a];if(f==null)return;const l=typeof f=="object"?f:{},p={body:700,headings:900,links:900,lists:400,hr:200,captions:500,code:900,borders:200,"bg-soft":100,"invert-body":200,"invert-headings":100,"invert-links":100,"invert-lists":500,"invert-hr":700,"invert-captions":400,"invert-code":100,"invert-borders":700,"invert-bg-soft":800},b={};for(const y in p){const v=p[y],g=l[v]??f;let d=!1;for(const m of Hf)if(g.includes(m)){d=!0,b[`--un-prose-${y}-opacity`]=1,b[`--un-prose-${y}`]=g.replace(m,`var(--un-prose-${y}-opacity)`);break}d||(b[`--un-prose-${y}`]=g)}return b},{layer:"typography"}],[s,()=>({"--un-prose-body":"var(--un-prose-invert-body)","--un-prose-headings":"var(--un-prose-invert-headings)","--un-prose-links":"var(--un-prose-invert-links)","--un-prose-lists":"var(--un-prose-invert-lists)","--un-prose-hr":"var(--un-prose-invert-hr)","--un-prose-captions":"var(--un-prose-invert-captions)","--un-prose-code":"var(--un-prose-invert-code)","--un-prose-borders":"var(--un-prose-invert-borders)","--un-prose-bg-soft":"var(--un-prose-invert-bg-soft)"}),{layer:"typography"}]],variants:[{name:"typography element modifiers",match:a=>{if(a.startsWith(`${r}-`)){const c=new RegExp(`^${r}-(\\w+)[:-].+$`),f=a.match(c)?.[1];if(f){const l=Lb(f);if(l?.length)return{matcher:a.slice(r.length+f.length+2),selector:p=>{const b=`:not(:where(.not-${r},.not-${r} *))`;return i?l.map(v=>`${p} ${v}`).join(","):`${p} :is(:where(${l})${b})`}}}}}}],preflights:[{layer:"typography",getCSS:a=>{if(t.size>0)return Vb(a,{escapedSelectors:t,...e,selectorName:r})}}]}};function Hb(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Kb(e,t,r,n){for(const o of Array.from(e.matchAll(r)))if(o!=null){const s=o[0],i=`${n}${Hb(s)}`;t.set(i,s),e=e.replace(s,i)}return e}function Wb(e,t){for(const[r,n]of t.entries())e=e.replaceAll(r,n);return e}const Bb=/\/\/#\s*sourceMappingURL=.*\n?/g;function Gb(e){return e.includes("sourceMappingURL=")?e.replace(Bb,""):e}const Jb=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Xb=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Yb=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Qb(e){const t=[];for(const o of e.matchAll(Xb))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(const o of e.matchAll(Jb))t.push(o[0]);const r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Kb(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Qu).forEach(o=>{o.includes(n)&&(o=Wb(o,r)),Fs(o)&&!Yb.test(o)&&t.push(o)}),t}function Zb(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Qb(Gb(e))}}}const ev="@unocss/preset-wind4",Bs="$$mini-no-negative",Vo={transparent:"transparent",current:"currentColor",inherit:"inherit"},Ie={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-inline"],y:["-block"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Xl={...Ie,x:["-inset-inline"],y:["-inset-block"],s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},oo={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Yf={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tv=["x","y","z"],Yl=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],Re=Object.assign({},...Yl.map(e=>({[e.replace(/ /,"-")]:e})),...Yl.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),we=["inherit","initial","revert","revert-layer","unset"],wi=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,Qf=/^(var)\s*\((.+)\)(.*)/,$r=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,rv=/^(-?\d*(?:\.\d+)?)$/,Zf=/^(px|[sld]?v[wh])$/i,ed={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},_i=/^\[(color|image|length|size|position|quoted|string|number|family):/i,nv=/,(?![^()]*\))/g,ov=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","background-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"];function Ue(e){return+e.toFixed(10)}function sv(e){const t=e.match($r);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${Ue(o)}${n}`}function iv(e){if(e==="auto"||e==="a")return"auto"}function av(e){if(!e)return;if(Zf.test(e))return`${ed[e]}${e}`;const t=e.match($r);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${Ue(o)}${n}`:`${Ue(o/4)}rem`}function cv(e){if(Zf.test(e))return`${ed[e]}${e}`;const t=e.match($r);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${Ue(o)}${n}`:`${Ue(o)}px`}function td(e){if(!rv.test(e))return;const t=Number.parseFloat(e);if(!Number.isNaN(t))return Ue(t)}function lv(e){e.endsWith("%")&&(e=e.slice(0,-1));const t=td(e);if(t!=null)return`${t}%`}function uv(e){if(!e)return;if(e==="full")return"100%";const[t,r]=e.split("/"),n=Number.parseFloat(t)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${Ue(n*100)}%`}function Pt(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n;const o=e.match(_i);if(!o)r=e.slice(1,-1);else{if(!t)n=o[1];else if(o[1]!==t)return;r=e.slice(o[0].length,-1)}if(!r||r==='=""')return;if(r.startsWith("--")){const[i,a]=r.slice(2).split(",");r=`var(--${zt(i)}${a?`, ${a}`:""})`}let s=0;for(const i of r)if(i==="[")s+=1;else if(i==="]"&&(s-=1,s<0))return;if(s)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,i=>i.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,i=>{const a=[];return i.replace(/var\((--.+?)[,)]/g,(c,f)=>(a.push(f),c.replace(f,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function fv(e){return Pt(e)}function dv(e){return Pt(e,"color")}function pv(e){return Pt(e,"length")||Pt(e,"size")}function hv(e){return Pt(e,"position")}function mv(e){return Pt(e,"family")}function gv(e){return Pt(e,"number")}function yv(e){if(e.startsWith("var("))return e;const t=e.match(/^(?:\$|--)([^\s'"`;{}]+)$/);if(t){const[r,n]=t[1].split(",");return`var(--${zt(r)}${n?`, ${n}`:""})`}}function bv(e){const t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${Ue(o)}${n}`:`${Ue(o)}ms`}function vv(e){const t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;const[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${Ue(o)}${n}`:`${Ue(o)}deg`}function $v(e){if(we.includes(e))return e}function wv(e){if(e.split(",").every(t=>ov.includes(t)))return e}function _v(e){if(["top","left","right","bottom","center"].includes(e))return e}function kv(e){if(e==="none")return"none"}const Sv={__proto__:null,auto:iv,bracket:fv,bracketOfColor:dv,bracketOfFamily:mv,bracketOfLength:pv,bracketOfNumber:gv,bracketOfPosition:hv,cssvar:yv,degree:vv,fraction:uv,global:$v,none:kv,number:td,numberWithUnit:sv,percent:lv,position:_v,properties:wv,px:cv,rem:av,time:bv},Ev=Ob(Sv),I=Ev;function Me(e,t){const r=I.number(e)??t;if(r!=null){let n=Number(r);return String(r).endsWith("%")&&(n=Number(String(r).slice(0,-1))/100),n}}function be(e){function t(n){const o=n.match($r);if(o){const[,s,i]=o,a=Number.parseFloat(s);if(!Number.isNaN(a))return[a,i]}return[void 0,void 0]}function r(n){let o,s;if(n.spacing?.DEFAULT){const[i,a]=t(n.spacing.DEFAULT);i!=null&&a!=null&&(o=i,s=a)}return Object.entries(n.spacing??{}).reduce((i,[a,c])=>{const[f,l]=t(c);return f!=null&&l!=null&&l===s?i[a]=f/o:i[a]=c,i},{})}return([n,o,s],{theme:i})=>{if(s!=null&&o!=null){const a=r(i);let c;const f=s.startsWith("-");if(f&&(s=s.slice(1)),c=Me(s,a[s]),c!=null)return Number.isNaN(c)?(ne("spacing",s),Ie[o].map(l=>[`${e}${l}`,f?`calc(var(--spacing-${s} * -1)`:`var(--spacing-${s})`])):(ne("spacing"),Ie[o].map(l=>[`${e}${l}`,`calc(var(--spacing) * ${f?"-":""}${c})`]));if(c=I.bracket.cssvar.global.auto.fraction.rem(f?`-${s}`:s),c!=null)return Ie[o].map(l=>[`${e}${l}`,c])}}}function Uo(e,t){let r;const[n,...o]=hr(e,["/",":"],3)??[];if(n!=null){const g=(n.match(_i)??[])[1];(g==null||g==="color")&&(r=[n,...o])}if(!r)return;let s,[i,a,c]=r;Ul(a)||Ul(I.bracket(a??""))?c=a:s=a;const f=i.replace(/([a-z])(\d)(?![-_a-z])/g,"$1-$2").split(/-/g),[l]=f;if(!l)return;let p=Ql(t,f);if(!p&&f.length>=2){const g=f.at(-1),d=f.at(-2);if(/^\d+$/.test(g)){const m=f.slice(0,-2).concat([`${d}${g}`]);p=Ql(t,m)}}let{no:b,keys:y,color:v}=p??{};if(!v){const g=I.bracketOfColor(i),d=g||i;if(I.numberWithUnit(d))return;/^#[\da-f]+$/i.test(d)?v=d:/^hex-[\da-fA-F]+$/.test(d)?v=`#${d.slice(4)}`:i.startsWith("$")&&(v=I.cssvar(i)),v=v||g}return{opacity:s,modifier:c&&I.bracket.cssvar(c)||c,name:l,no:b,color:v??Vo[l],alpha:I.bracket.cssvar.percent(s??""),keys:y,get cssColor(){return Mt(this.color)}}}function Ql(e,t){let r,n,o;const s=ko(e,"colors",t);if(typeof s=="object"?"DEFAULT"in s&&(r=s.DEFAULT,n="DEFAULT",o=[...t,n]):typeof s=="string"&&(r=s,o=t,n=t.at(-1)),!!r)return{color:r,no:n,keys:o}}function ko(e,t,r){const n=e[t];function o(s,i){if(!(!s||typeof s!="object")){if(i.length===0)return s;for(let a=i.length;a>0;a--){const c=i.slice(0,a).join("-");if(c in s){const f=s[c];return a===i.length?f:o(f,i.slice(a))}}}}return o(n,r)}function rd(e,t,r,n){if(!e)return;const{color:o,keys:s,alpha:i,modifier:a}=e,c=n?.generator.config.envMode==="dev"&&o?` /* ${o} */`:"",f={};if(o){const l=[f];if(Object.values(Vo).includes(o))f[t]=o;else{const p=`--un-${r}-opacity`,b=s?$e("colors",s):o;let y=a??(s?"in srgb":"in oklab");!y.startsWith("in ")&&!y.startsWith("var(")&&(y=`in ${y}`),f[t]=`color-mix(${y}, ${b} ${i??`var(${p})`}, transparent)${c}`,l.push(Y(p,{syntax:"<percentage>",initialValue:"100%"})),s&&(ne("colors",s),a||l.push({[Pe.parent]:"@supports (color: color-mix(in lab, red, red))",[Pe.noMerge]:!0,[Pe.shortcutsNoMerge]:!0,[t]:`color-mix(in oklab, ${b} ${i??`var(${p})`}, transparent)${c}`})),n?.theme&&Ko(o,n.theme)}return l}}function _e(e,t){return([,r],n)=>{const o=Uo(r??"",n.theme);if(o)return rd(o,e,t,n)}}function ki(e,t){const r=[];e=ge(e);for(let n=0;n<e.length;n++){const o=hr(e[n]," ",6);if(!o||o.length<3)return e;let s=!1;const i=o.indexOf("inset");i!==-1&&(o.splice(i,1),s=!0);let a="";const c=o.at(-1);if(Mt(o.at(0))){const f=Mt(o.shift());f&&(a=`, ${Hs(f)}`)}else if(Mt(c)){const f=Mt(o.pop());f&&(a=`, ${Hs(f)}`)}else c&&Qf.test(c)&&(a=`, ${o.pop()}`);r.push(`${s?"inset ":""}${o.join(" ")} var(${t}${a})`)}return r}function mr(e,t){return e!=null&&!!Uo(e,t)?.color}const Zl=/[a-z]+/gi,Ss=new WeakMap;function Ho({theme:e,generator:t},r="breakpoint"){const n=t?.userConfig?.theme?.[r]||e[r];if(!n)return;if(Ss.has(e))return Ss.get(e);const o=Object.entries(n).sort((s,i)=>Number.parseInt(s[1].replace(Zl,""))-Number.parseInt(i[1].replace(Zl,""))).map(([s,i])=>({point:s,size:i}));return Ss.set(e,o),o}function se(e,t){return we.map(r=>[`${e}-${r}`,{[t??e]:r}])}function Y(e,t={}){const{syntax:r="*",inherits:n=!1,initialValue:o}=t,s={[Pe.shortcutsNoMerge]:!0,[Pe.noMerge]:!0,[Pe.variants]:()=>[{parent:"",layer:"properties",selector:()=>`@property ${e}`}],syntax:JSON.stringify(r),inherits:n?"true":"false"};return o!=null&&(s["initial-value"]=o),Pv(e,o?String(o):"initial"),s}function wr(e){return e!=null&&wi.test(e)}function xv(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),wi.test(e)||$r.test(e)}function Gs(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}function nd(e,t=!1){return t?e.trim():e.trim().replace(/\s+/g," ").replace(/\/\*[\s\S]*?\*\//g,"")}const Ft=new Set([]);function ne(e,t="DEFAULT"){const r=`${e}:${ge(t).join("-")}`;Ft.has(r)||Ft.add(r)}function $e(e,t){return`var(--${e}-${ge(t).join("-")})`}function Ko(e,t){if(e.startsWith("var(")){const r=e.match(/var\(--([\w-]+)(?:,.*)?\)/)?.[1];if(r){const[n,...o]=r.split("-"),s=ko(t,n,o);typeof s=="string"&&(ne(n,o),Ko(s,t))}}}const Dt=new Map;function Pv(e,t){Dt.has(e)||Dt.set(e,t)}function Cv({important:e}){if(e==null||e===!1)return[];const t=r=>r.startsWith(":is(")&&r.endsWith(")")?r:r.includes("::")?r.replace(/(.*?)((?:\s\*)?::.*)/,":is($1)$2"):`:is(${r})`;return[e===!0?r=>{r.layer!=="properties"&&r.entries.forEach(n=>{n[1]!=null&&!String(n[1]).endsWith("!important")&&(n[1]+=" !important")})}:r=>{r.selector.startsWith(e)||(r.selector=`${e} ${t(r.selector)}`)}]}function jv({variablePrefix:e}){return e!=="un-"?[r=>{r.entries.forEach(n=>{n[0]=n[0].replace(/^--un-/,`--${e}`),typeof n[1]=="string"&&(n[1]=n[1].replace(/var\(--un-/g,`var(--${e}`))})}]:[]}function Rv(e){return[Cv,jv].flatMap(t=>t(e))}const Ov={name:"aria",match(e,t){const r=ze("aria-",e,t.generator.config.separators);if(r){const[n,o]=r,s=I.bracket(n)??t.theme.aria?.[n]??"";if(s)return{matcher:o,selector:i=>`${i}[aria-${s}]`}}},multiPass:!0,autocomplete:"aria-$aria"};function Nt(e){return{name:`${e}-aria`,match(t,r){const n=ze(`${e}-aria-`,t,r.generator.config.separators);if(n){const[o,s,i]=n,a=I.bracket(o)??r.theme.aria?.[o]??"";if(a){const c={group:`&:is(:where(.group${i?`\\/${i}`:""})[aria-${a}] *)`,peer:`&:is(:where(.peer${i?`\\/${i}`:""})[aria-${a}] ~ *)`,previous:`:where(*[aria-${a}] + &)`,parent:`:where(*[aria-${a}] > &)`,has:`&:has(*[aria-${a}])`,in:`:where(*[aria-${a}]) &`};return{matcher:s,handle:(f,l)=>l({...f,parent:`${f.parent?`${f.parent} $$ `:""}${f.selector}`,selector:c[e]})}}}},multiPass:!0}}const Tv=[Nt("group"),Nt("peer"),Nt("parent"),Nt("previous"),Nt("has"),Nt("in")],eu=/(max|min)-\[([^\]]*)\]:/;function Nv(){const e={};return{name:"breakpoints",match(t,r){if(eu.test(t)){const o=t.match(eu);return{matcher:t.replace(o[0],""),handle:(i,a)=>a({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}const n=(Ho(r)??[]).map(({point:o,size:s},i)=>[o,s,i]);for(const[o,s,i]of n){e[o]||(e[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));const a=t.match(e[o]);if(!a)continue;const[,c]=a,f=t.slice(c.length);if(f==="container")continue;const l=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),p=c.startsWith("at-")||c.startsWith("~");let b=3e3;return l?(b-=i+1,{matcher:f,handle:(y,v)=>v({...y,parent:`${y.parent?`${y.parent} $$ `:""}@media (max-width: ${Hl(s)})`,parentOrder:b})}):(b+=i+1,p&&i<n.length-1?{matcher:f,handle:(y,v)=>v({...y,parent:`${y.parent?`${y.parent} $$ `:""}@media (min-width: ${s}) and (max-width: ${Hl(n[i+1][1])})`,parentOrder:b})}:{matcher:f,handle:(y,v)=>v({...y,parent:`${y.parent?`${y.parent} $$ `:""}@media (min-width: ${s})`,parentOrder:b})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoint:"}}const Av=[Ve("*",e=>({selector:`${e.selector} > *`}),{order:-1}),Ve("**",e=>({selector:`${e.selector} *`}),{order:-1})];function er(e,t){return{name:`combinator:${e}`,match(r,n){if(!r.startsWith(e))return;const o=n.generator.config.separators;let s=vr(`${e}-`,r,o);if(!s){for(const a of o)if(r.startsWith(`${e}${a}`)){s=["",r.slice(e.length+a.length)];break}if(!s)return}let i=I.bracket(s[0])??"";return i===""&&(i="*"),{matcher:s[1],selector:a=>`${a}${t}${i}`}},multiPass:!0}}const Iv=[er("all"," "),er("children",">"),er("next","+"),er("sibling","+"),er("siblings","~")],Mv=[Ve("svg",e=>({selector:`${e.selector} svg`}))],zv={name:"@",match(e,t){if(e.startsWith("@container"))return;const r=ze("@",e,t.generator.config.separators);if(r){const[n,o,s]=r,i=I.bracket(n);let a;if(i?a=I.numberWithUnit(i):a=t.theme.container?.[n]??"",a){let c=1e3+Object.keys(t.theme.container??{}).indexOf(n);return s&&(c+=1e3),{matcher:o,handle:(f,l)=>l({...f,parent:`${f.parent?`${f.parent} $$ `:""}@container${s?` ${s} `:" "}(min-width: ${a})`,parentOrder:c})}}}},multiPass:!0};function qv(e={}){if(e?.dark==="class"||typeof e.dark=="object"){const{dark:t=".dark",light:r=".light"}=typeof e.dark=="string"?{}:e.dark;return[Ve("dark",n=>({prefix:`${t} $$ ${n.prefix}`})),Ve("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[Oe("dark","@media (prefers-color-scheme: dark)"),Oe("light","@media (prefers-color-scheme: light)")]}const Fv=[Ve(".dark",e=>({prefix:`.dark $$ ${e.prefix}`})),Ve(".light",e=>({prefix:`.light $$ ${e.prefix}`})),Oe("@dark","@media (prefers-color-scheme: dark)"),Oe("@light","@media (prefers-color-scheme: light)"),Oe("not-dark","@media not (prefers-color-scheme: dark)")],Dv={name:"data",match(e,t){const r=ze("data-",e,t.generator.config.separators);if(r){const[n,o]=r,s=I.bracket(n)??t.theme.data?.[n]??"";if(s)return{matcher:o,selector:i=>`${i}[data-${s}]`}}},multiPass:!0};function At(e){return{name:`${e}-data`,match(t,r){const n=ze(`${e}-data-`,t,r.generator.config.separators);if(n){const[o,s,i]=n,a=I.bracket(o)??r.theme.data?.[o]??"";if(a){const c={group:`&:is(:where(.group${i?`\\/${i}`:""})[data-${a}] *)`,peer:`&:is(:where(.peer${i?`\\/${i}`:""})[data-${a}] ~ *)`,previous:`:where(*[data-${a}] + &)`,parent:`:where(*[data-${a}] > &)`,has:`&:has(*[data-${a}])`,in:`:where(*[data-${a}]) &`};return{matcher:s,handle:(f,l)=>l({...f,parent:`${f.parent?`${f.parent} $$ `:""}${f.selector}`,selector:c[e]})}}}},multiPass:!0}}const Lv=[At("group"),At("peer"),At("parent"),At("previous"),At("has"),At("in")],Vv=[Ve("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),Ve("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function Uv(){let e;return{name:"important",match(t,r){e||(e=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n;const o=t.match(e);if(o?n=t.slice(o[0].length):t.endsWith("!")&&(n=t.slice(0,-1)),n)return{matcher:n,body:s=>(s.forEach(i=>{i[1]!=null&&(i[1]+=" !important")}),s)}}}}const Hv=Ve("inert",e=>({parent:`${e.parent?`${e.parent} $$ `:""}${e.selector}`,selector:"&:is([inert],[inert] *)"})),Kv=Oe("noscript","@media (scripting: none)"),Wv={name:"scripting",match(e,t){const r=ze(["script-","scripting-"],e,t.generator.config.separators);if(r){const[n,o]=r;if(["none","initial-only","enabled"].includes(n))return{matcher:o,handle:(i,a)=>a({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media (scripting: ${n})`})}}},multiPass:!0,autocomplete:["(scripting|script)-(none|initial-only|enabled)"]},Bv=Oe("print","@media print"),Gv={name:"media",match(e,t){const r=ze("media-",e,t.generator.config.separators);if(r){const[n,o]=r;let s=I.bracket(n)??"";if(s===""&&(s=t.theme.media?.[n]??""),s)return{matcher:o,handle:(i,a)=>a({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media ${s}`})}}},multiPass:!0,autocomplete:"media-$media"},Jv=[Oe("contrast-more","@media (prefers-contrast: more)"),Oe("contrast-less","@media (prefers-contrast: less)")],Xv=[Oe("motion-reduce","@media (prefers-reduced-motion: reduce)"),Oe("motion-safe","@media (prefers-reduced-motion: no-preference)")],Yv=[Oe("landscape","@media (orientation: landscape)"),Oe("portrait","@media (orientation: portrait)")],Qv=[Oe("forced-colors","@media (forced-colors: active)")],Zv={name:"selector",match(e,t){const r=vr("selector-",e,t.generator.config.separators);if(r){const[n,o]=r,s=I.bracket(n);if(s)return{matcher:o,selector:()=>s}}}},e$={name:"layer",match(e,t){const r=ze("layer-",e,t.generator.config.separators);if(r){const[n,o]=r,s=I.bracket(n)??n;if(s)return{matcher:o,handle:(i,a)=>a({...i,parent:`${i.parent?`${i.parent} $$ `:""}@layer ${s}`})}}}},t$={name:"uno-layer",match(e,t){const r=ze("uno-layer-",e,t.generator.config.separators);if(r){const[n,o]=r,s=I.bracket(n)??n;if(s)return{matcher:o,layer:s}}}},r$={name:"scope",match(e,t){const r=vr("scope-",e,t.generator.config.separators);if(r){const[n,o]=r,s=I.bracket(n);if(s)return{matcher:o,selector:i=>`${s} $$ ${i}`}}}},n$={name:"variables",match(e,t){if(!e.startsWith("["))return;const[r,n]=vi(e,"[","]")??[];if(!(r&&n))return;let o;for(const a of t.generator.config.separators)if(n.startsWith(a)){o=n.slice(a.length);break}if(o==null)return;const s=I.bracket(r)??"",i=s.startsWith("@");if(i||s.includes("&"))return{matcher:o,handle(a,c){const f=i?{parent:`${a.parent?`${a.parent} $$ `:""}${s}`}:{selector:s.replace(/&/g,a.selector)};return c({...a,...f})}}},multiPass:!0},o$={name:"theme-variables",match(e,t){if(Cb(e))return{matcher:e,handle(r,n){return n({...r,entries:JSON.parse(jb(JSON.stringify(r.entries),t.theme))})}}}},s$=[Ve("@hover",e=>({parent:`${e.parent?`${e.parent} $$ `:""}@media (hover: hover) and (pointer: fine)`,selector:`${e.selector||""}:hover`}))],i$={name:"implicit-group",match(e,t){const r=ze("in-",e,t.generator.config.separators);if(r){const[n,o]=r,s=I.bracket(n)??n;if(s)return{matcher:o,handle:(i,a)=>a({...i,parent:`${i.parent?`${i.parent} $$ `:""}${i.selector}`,selector:`:where(*:is(${s})) &`})}}}},od=/^-?[0-9.]+(?:[a-z]+|%)?$/,sd=/-?[0-9.]+(?:[a-z]+|%)?/,a$=[/\b(opacity|color|flex|backdrop-filter|^filter|transform|mask-image)\b/];function c$(e){const t=e.match(wi)||e.match(Qf);if(t){const[r,n]=Lo(`(${t[2]})${t[3]}`,"(",")"," ")??[];if(r)return`calc(${t[1]}${r} * -1)${n?` ${n}`:""}`}}const l$=/\b(hue-rotate)\s*(\(.*)/;function u$(e){const t=e.match(l$);if(t){const[r,n]=Lo(t[2],"(",")"," ")??[];if(r){const o=od.test(r.slice(1,-1))?r.replace(sd,s=>s.startsWith("-")?s.slice(1):`-${s}`):`(calc(${r} * -1))`;return`${t[1]}${o}${n?` ${n}`:""}`}}}const f$={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===Bs))return;let r=!1;return t.forEach(n=>{if(ge(n[2]).includes(Bs))return;const o=n[1]?.toString();if(!o||o==="0"||a$.some(a=>a.test(n[0])))return;const s=c$(o);if(s){n[1]=s,r=!0;return}const i=u$(o);if(i){n[1]=i,r=!0;return}od.test(o)&&(n[1]=o.replace(sd,a=>a.startsWith("-")?a.slice(1):`-${a}`),r=!0)}),r?t:[]}}}},d$=(e,{theme:t})=>{const r=e.match(/^(.*)\b(placeholder-)(.+)$/);if(r){const[,n="",o,s]=r;if(mr(s,t)||p$(s))return{matcher:`${n}placeholder-$ ${o}${s}`}}};function p$(e){const t=e.match(/^op(?:acity)?-?(.+)$/);return t&&t[1]!=null?I.bracket.percent(t[1])!=null:!1}function h$(){return Ib({h:I})}function m$(){return Mb({getBracket:vi,h:I})}function g$(e={}){return zb(e,{h:I,variantGetBracket:vr})}const y$=Fb(),b$={name:"starting",match(e){if(e.startsWith("starting:"))return{matcher:e.slice(9),handle:(t,r)=>r({...t,parent:"@starting-style"})}}},v$={name:"supports",match(e,t){const r=ze("supports-",e,t.generator.config.separators);if(r){const[n,o]=r;let s=I.bracket(n)??"";if(s===""&&(s=t.theme.supports?.[n]??""),s)return s.startsWith("(")&&s.endsWith(")")||(s=`(${s})`),{matcher:o,handle:(i,a)=>a({...i,parent:`${i.parent?`${i.parent} $$ `:""}@supports ${s}`})}}},multiPass:!0};function $$(e){return[Ov,Dv,e$,Zv,t$,f$,b$,Uv(),v$,Kv,Wv,Bv,Gv,...Jv,...Xv,...Yv,...Qv,Nv(),...Iv,...Mv,d$,...h$(),m$(),...g$(e),y$,...qv(e),...Fv,...Vv,r$,...Av,Hv,zv,n$,...Lv,...Tv,o$,...s$,i$].flat()}const id={black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},light:{50:"oklch(99.4% 0 0)",100:"oklch(99.11% 0 0)",200:"oklch(98.51% 0 0)",300:"oklch(98.16% 0.0017 247.84)",400:"oklch(97.31% 0 0)",500:"oklch(96.12% 0 0)",600:"oklch(96.32% 0.0034 247.86)",700:"oklch(94.17% 0.0052 247.88)",800:"oklch(91.09% 0.007 247.9)",900:"oklch(90.72% 0.0051 228.82)",950:"oklch(89.23% 0.006 239.83)"},dark:{50:"oklch(40.91% 0 0)",100:"oklch(35.62% 0 0)",200:"oklch(31.71% 0 0)",300:"oklch(29.72% 0 0)",400:"oklch(25.2% 0 0)",500:"oklch(23.93% 0 0)",600:"oklch(22.73% 0.0038 286.09)",700:"oklch(22.21% 0 0)",800:"oklch(20.9% 0 0)",900:"oklch(16.84% 0 0)",950:"oklch(13.44% 0 0)"}};Object.values(id).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400])});const w$={keyframes:{pulse:"{0%, 100% {opacity:1} 50% {opacity:.5}}",bounce:"{0%, 100% {transform:translateY(-25%);animation-timing-function:cubic-bezier(0.8,0,1,1)} 50% {transform:translateY(0);animation-timing-function:cubic-bezier(0,0,0.2,1)}}",spin:"{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}",ping:"{0%{transform:scale(1);opacity:1}75%,100%{transform:scale(2);opacity:0}}","bounce-alt":"{from,20%,53%,80%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.05,0.855,0.06);transform:translate3d(0,-30px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.05,0.855,0.06);transform:translate3d(0,-15px,0)}90%{transform:translate3d(0,-4px,0)}}",flash:"{from,50%,to{opacity:1}25%,75%{opacity:0}}","pulse-alt":"{from{transform:scale3d(1,1,1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scale3d(1,1,1)}}","rubber-band":"{from{transform:scale3d(1,1,1)}30%{transform:scale3d(1.25,0.75,1)}40%{transform:scale3d(0.75,1.25,1)}50%{transform:scale3d(1.15,0.85,1)}65%{transform:scale3d(0.95,1.05,1)}75%{transform:scale3d(1.05,0.95,1)}to{transform:scale3d(1,1,1)}}","shake-x":"{from,to{transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}","shake-y":"{from,to{transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}","head-shake":"{0%{transform:translateX(0)}6.5%{transform:translateX(-6px) rotateY(-9deg)}18.5%{transform:translateX(5px) rotateY(7deg)}31.5%{transform:translateX(-3px) rotateY(-5deg)}43.5%{transform:translateX(2px) rotateY(3deg)}50%{transform:translateX(0)}}",swing:"{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0deg)}}",tada:"{from{transform:scale3d(1,1,1)}10%,20%{transform:scale3d(0.9,0.9,0.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scale3d(1,1,1)}}",wobble:"{from{transform:translate3d(0,0,0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translate3d(0,0,0)}}",jello:"{from,11.1%,to{transform:translate3d(0,0,0)}22.2%{transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{transform:skewX(6.25deg) skewY(6.25deg)}44.4%{transform:skewX(-3.125deg)skewY(-3.125deg)}55.5%{transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{transform:skewX(-0.78125deg) skewY(-0.78125deg)}77.7%{transform:skewX(0.390625deg) skewY(0.390625deg)}88.8%{transform:skewX(-0.1953125deg) skewY(-0.1953125deg)}}","heart-beat":"{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}",hinge:"{0%{transform-origin:top left;animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);transform-origin:top left;animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);transform-origin:top left;animation-timing-function:ease-in-out}to{transform:translate3d(0,700px,0);opacity:0}}","jack-in-the-box":"{from{opacity:0;transform-origin:center bottom;transform:scale(0.1) rotate(30deg)}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{transform:scale(1)}}","light-speed-in-left":"{from{opacity:0;transform:translate3d(-100%,0,0) skewX(-30deg)}60%{opacity:1;transform:skewX(20deg)}80%{transform:skewX(-5deg)}to{transform:translate3d(0,0,0)}}","light-speed-in-right":"{from{opacity:0;transform:translate3d(100%,0,0) skewX(-30deg)}60%{opacity:1;transform:skewX(20deg)}80%{transform:skewX(-5deg)}to{transform:translate3d(0,0,0)}}","light-speed-out-left":"{from{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0) skewX(30deg)}}","light-speed-out-right":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) skewX(30deg)}}",flip:"{from{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(0.95,0.95,0.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in}to{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in}}","flip-in-x":"{from{transform:perspective(400px) rotate3d(1,0,0,90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotate3d(1,0,0,-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{transform:perspective(400px) rotate3d(1,0,0,-5deg)}to{transform:perspective(400px)}}","flip-in-y":"{from{transform:perspective(400px) rotate3d(0,1,0,90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotate3d(0,1,0,-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{transform:perspective(400px) rotate3d(0,1,0,-5deg)}to{transform:perspective(400px)}}","flip-out-x":"{from{transform:perspective(400px)}30%{transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}to{transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}","flip-out-y":"{from{transform:perspective(400px)}30%{transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}to{transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}","rotate-in":"{from{transform-origin:center;transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform-origin:center;transform:translate3d(0,0,0);opacity:1}}","rotate-in-down-left":"{from{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform-origin:left bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-in-down-right":"{from{transform-origin:right bottom;transform:rotate3d(0,0,1,45deg);opacity:0}to{transform-origin:right bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-in-up-left":"{from{transform-origin:left top;transform:rotate3d(0,0,1,45deg);opacity:0}to{transform-origin:left top;transform:translate3d(0,0,0);opacity:1}}","rotate-in-up-right":"{from{transform-origin:right bottom;transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform-origin:right bottom;transform:translate3d(0,0,0);opacity:1}}","rotate-out":"{from{transform-origin:center;opacity:1}to{transform-origin:center;transform:rotate3d(0,0,1,200deg);opacity:0}}","rotate-out-down-left":"{from{transform-origin:left bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,45deg);opacity:0}}","rotate-out-down-right":"{from{transform-origin:right bottom;opacity:1}to{transform-origin:right bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}}","rotate-out-up-left":"{from{transform-origin:left bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0}}","rotate-out-up-right":"{from{transform-origin:right bottom;opacity:1}to{transform-origin:left bottom;transform:rotate3d(0,0,1,90deg);opacity:0}}","roll-in":"{from{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translate3d(0,0,0)}}","roll-out":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}","zoom-in":"{from{opacity:0;transform:scale3d(0.3,0.3,0.3)}50%{opacity:1}}","zoom-in-down":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-left":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-right":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-in-up":"{from{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}60%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-out":"{from{opacity:1}50%{opacity:0;transform:scale3d(0.3,0.3,0.3)}to{opacity:0}}","zoom-out-down":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,2000px,0);transform-origin:center bottom;animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","zoom-out-left":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(0.1) translate3d(-2000px,0,0);transform-origin:left center}}","zoom-out-right":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(0.1) translate3d(2000px,0,0);transform-origin:right center}}","zoom-out-up":"{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19)}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,-2000px,0);transform-origin:center bottom;animation-timing-function:cubic-bezier(0.175,0.885,0.32,1)}}","bounce-in":"{from,20%,40%,60%,80%,to{animation-timing-function:ease-in-out}0%{opacity:0;transform:scale3d(0.3,0.3,0.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(0.9,0.9,0.9)}60%{transform:scale3d(1.03,1.03,1.03);opacity:1}80%{transform:scale3d(0.97,0.97,0.97)}to{opacity:1;transform:scale3d(1,1,1)}}","bounce-in-down":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:translate3d(0,0,0)}}","bounce-in-left":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:translate3d(0,0,0)}}","bounce-in-right":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:translate3d(0,0,0)}}","bounce-in-up":"{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.61,0.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translate3d(0,0,0)}}","bounce-out":"{20%{transform:scale3d(0.9,0.9,0.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(0.3,0.3,0.3)}}","bounce-out-down":"{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}","bounce-out-left":"{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}","bounce-out-right":"{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}","bounce-out-up":"{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}","slide-in-down":"{from{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-left":"{from{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-right":"{from{transform:translate3d(100%,0,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-in-up":"{from{transform:translate3d(0,100%,0);visibility:visible}to{transform:translate3d(0,0,0)}}","slide-out-down":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}","slide-out-left":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}","slide-out-right":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}","slide-out-up":"{from{transform:translate3d(0,0,0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}","fade-in":"{from{opacity:0}to{opacity:1}}","fade-in-down":"{from{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-down-big":"{from{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-left":"{from{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-left-big":"{from{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-right":"{from{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-right-big":"{from{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-up":"{from{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-up-big":"{from{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-top-left":"{from{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-top-right":"{from{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-bottom-left":"{from{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-in-bottom-right":"{from{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}","fade-out":"{from{opacity:1}to{opacity:0}}","fade-out-down":"{from{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}","fade-out-down-big":"{from{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}","fade-out-left":"{from{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}","fade-out-left-big":"{from{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}","fade-out-right":"{from{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}","fade-out-right-big":"{from{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}","fade-out-up":"{from{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}","fade-out-up-big":"{from{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}","fade-out-top-left":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}","fade-out-top-right":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}","fade-out-bottom-left":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}","fade-out-bottom-right":"{from{opacity:1;transform:translate3d(0,0,0)}to{opacity:0;transform:translate3d(100%,100%,0)}}","back-in-up":"{0%{opacity:0.7;transform:translateY(1200px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-down":"{0%{opacity:0.7;transform:translateY(-1200px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-right":"{0%{opacity:0.7;transform:translateX(2000px) scale(0.7)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-in-left":"{0%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}80%{opacity:0.7;transform:translateX(0px) scale(0.7)}100%{opacity:1;transform:scale(1)}}","back-out-up":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}","back-out-down":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateY(700px) scale(0.7)}}","back-out-right":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateY(0px) scale(0.7)}100%{opacity:0.7;transform:translateX(2000px) scale(0.7)}}","back-out-left":"{0%{opacity:1;transform:scale(1)}80%{opacity:0.7;transform:translateX(-2000px) scale(0.7)}100%{opacity:0.7;transform:translateY(-700px) scale(0.7)}}"},durations:{pulse:"2s","heart-beat":"1.3s","bounce-in":"0.75s","bounce-out":"0.75s","flip-out-x":"0.75s","flip-out-y":"0.75s",hinge:"2s"},timingFns:{pulse:"cubic-bezier(0.4,0,.6,1)",ping:"cubic-bezier(0,0,.2,1)","head-shake":"ease-in-out","heart-beat":"ease-in-out","pulse-alt":"ease-in-out","light-speed-in-left":"ease-out","light-speed-in-right":"ease-out","light-speed-out-left":"ease-in","light-speed-out-right":"ease-in"},properties:{"bounce-alt":{"transform-origin":"center bottom"},jello:{"transform-origin":"center"},swing:{"transform-origin":"top center"},flip:{"backface-visibility":"visible"},"flip-in-x":{"backface-visibility":"visible !important"},"flip-in-y":{"backface-visibility":"visible !important"},"flip-out-x":{"backface-visibility":"visible !important"},"flip-out-y":{"backface-visibility":"visible !important"},"rotate-in":{"transform-origin":"center"},"rotate-in-down-left":{"transform-origin":"left bottom"},"rotate-in-down-right":{"transform-origin":"right bottom"},"rotate-in-up-left":{"transform-origin":"left bottom"},"rotate-in-up-right":{"transform-origin":"right bottom"},"rotate-out":{"transform-origin":"center"},"rotate-out-down-left":{"transform-origin":"left bottom"},"rotate-out-down-right":{"transform-origin":"right bottom"},"rotate-out-up-left":{"transform-origin":"left bottom"},"rotate-out-up-right":{"transform-origin":"right bottom"},hinge:{"transform-origin":"top left"},"zoom-out-down":{"transform-origin":"center bottom"},"zoom-out-left":{"transform-origin":"left center"},"zoom-out-right":{"transform-origin":"right center"},"zoom-out-up":{"transform-origin":"center bottom"}},counts:{spin:"infinite",ping:"infinite",pulse:"infinite","pulse-alt":"infinite",bounce:"infinite","bounce-alt":"infinite"},category:{pulse:"Attention Seekers",bounce:"Attention Seekers",spin:"Attention Seekers",ping:"Attention Seekers","bounce-alt":"Attention Seekers",flash:"Attention Seekers","pulse-alt":"Attention Seekers","rubber-band":"Attention Seekers","shake-x":"Attention Seekers","shake-y":"Attention Seekers","head-shake":"Attention Seekers",swing:"Attention Seekers",tada:"Attention Seekers",wobble:"Attention Seekers",jello:"Attention Seekers","heart-beat":"Attention Seekers",hinge:"Specials","jack-in-the-box":"Specials","light-speed-in-left":"Lightspeed","light-speed-in-right":"Lightspeed","light-speed-out-left":"Lightspeed","light-speed-out-right":"Lightspeed",flip:"Flippers","flip-in-x":"Flippers","flip-in-y":"Flippers","flip-out-x":"Flippers","flip-out-y":"Flippers","rotate-in":"Rotating Entrances","rotate-in-down-left":"Rotating Entrances","rotate-in-down-right":"Rotating Entrances","rotate-in-up-left":"Rotating Entrances","rotate-in-up-right":"Rotating Entrances","rotate-out":"Rotating Exits","rotate-out-down-left":"Rotating Exits","rotate-out-down-right":"Rotating Exits","rotate-out-up-left":"Rotating Exits","rotate-out-up-right":"Rotating Exits","roll-in":"Specials","roll-out":"Specials","zoom-in":"Zooming Entrances","zoom-in-down":"Zooming Entrances","zoom-in-left":"Zooming Entrances","zoom-in-right":"Zooming Entrances","zoom-in-up":"Zooming Entrances","zoom-out":"Zooming Exits","zoom-out-down":"Zooming Exits","zoom-out-left":"Zooming Exits","zoom-out-right":"Zooming Exits","zoom-out-up":"Zooming Exits","bounce-in":"Bouncing Entrances","bounce-in-down":"Bouncing Entrances","bounce-in-left":"Bouncing Entrances","bounce-in-right":"Bouncing Entrances","bounce-in-up":"Bouncing Entrances","bounce-out":"Bouncing Exits","bounce-out-down":"Bouncing Exits","bounce-out-left":"Bouncing Exits","bounce-out-right":"Bouncing Exits","bounce-out-up":"Bouncing Exits","slide-in-down":"Sliding Entrances","slide-in-left":"Sliding Entrances","slide-in-right":"Sliding Entrances","slide-in-up":"Sliding Entrances","slide-out-down":"Sliding Exits","slide-out-left":"Sliding Exits","slide-out-right":"Sliding Exits","slide-out-up":"Sliding Exits","fade-in":"Fading Entrances","fade-in-down":"Fading Entrances","fade-in-down-big":"Fading Entrances","fade-in-left":"Fading Entrances","fade-in-left-big":"Fading Entrances","fade-in-right":"Fading Entrances","fade-in-right-big":"Fading Entrances","fade-in-up":"Fading Entrances","fade-in-up-big":"Fading Entrances","fade-in-top-left":"Fading Entrances","fade-in-top-right":"Fading Entrances","fade-in-bottom-left":"Fading Entrances","fade-in-bottom-right":"Fading Entrances","fade-out":"Fading Exits","fade-out-down":"Fading Exits","fade-out-down-big":"Fading Exits","fade-out-left":"Fading Exits","fade-out-left-big":"Fading Exits","fade-out-right":"Fading Exits","fade-out-right-big":"Fading Exits","fade-out-up":"Fading Exits","fade-out-up-big":"Fading Exits","fade-out-top-left":"Fading Exits","fade-out-top-right":"Fading Exits","fade-out-bottom-left":"Fading Exits","fade-out-bottom-right":"Fading Exits","back-in-up":"Back Entrances","back-in-down":"Back Entrances","back-in-right":"Back Entrances","back-in-left":"Back Entrances","back-out-up":"Back Exits","back-out-down":"Back Exits","back-out-right":"Back Exits","back-out-left":"Back Exits"}},_$={busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},k$={DEFAULT:"8px",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},S$={sans:["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"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},E$={xs:{fontSize:"0.75rem",lineHeight:"1rem"},sm:{fontSize:"0.875rem",lineHeight:"1.25rem"},base:{fontSize:"1rem",lineHeight:"1.5rem"},lg:{fontSize:"1.125rem",lineHeight:"1.75rem"},xl:{fontSize:"1.25rem",lineHeight:"1.75rem"},"2xl":{fontSize:"1.5rem",lineHeight:"2rem"},"3xl":{fontSize:"1.875rem",lineHeight:"2.25rem"},"4xl":{fontSize:"2.25rem",lineHeight:"2.5rem"},"5xl":{fontSize:"3rem",lineHeight:"1"},"6xl":{fontSize:"3.75rem",lineHeight:"1"},"7xl":{fontSize:"4.5rem",lineHeight:"1"},"8xl":{fontSize:"6rem",lineHeight:"1"},"9xl":{fontSize:"8rem",lineHeight:"1"}},x$={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},P$={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},C$={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},j$={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},R$={portrait:"(orientation: portrait)",landscape:"(orientation: landscape)",os_dark:"(prefers-color-scheme: dark)",os_light:"(prefers-color-scheme: light)",motion_ok:"(prefers-reduced-motion: no-preference)",motion_not_ok:"(prefers-reduced-motion: reduce)",high_contrast:"(prefers-contrast: high)",low_contrast:"(prefers-contrast: low)",opacity_ok:"(prefers-reduced-transparency: no-preference)",opacity_not_ok:"(prefers-reduced-transparency: reduce)",use_data_ok:"(prefers-reduced-data: no-preference)",use_data_not_ok:"(prefers-reduced-data: reduce)",touch:"(hover: none) and (pointer: coarse)",stylus:"(hover: none) and (pointer: fine)",pointer:"(hover) and (pointer: coarse)",mouse:"(hover) and (pointer: fine)",hd_color:"(dynamic-range: high)"},O$={DEFAULT:"0.25rem",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},T$={DEFAULT:"0.25rem",none:"0",xs:"0.125rem",sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","4xl":"2rem"},N$={DEFAULT:["0 1px 3px 0 rgb(0 0 0 / 0.1)","0 1px 2px -1px rgb(0 0 0 / 0.1)"],"2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:["0 1px 3px 0 rgb(0 0 0 / 0.1)","0 1px 2px -1px rgb(0 0 0 / 0.1)"],md:["0 4px 6px -1px rgb(0 0 0 / 0.1)","0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["0 10px 15px -3px rgb(0 0 0 / 0.1)","0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["0 20px 25px -5px rgb(0 0 0 / 0.1)","0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",none:"0 0 rgb(0 0 0 / 0)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},A$={"2xs":"inset 0 1px rgb(0 0 0 / 0.05)",xs:"inset 0 1px 1px rgb(0 0 0 / 0.05)",sm:"inset 0 2px 4px rgb(0 0 0 / 0.05)",none:"0 0 rgb(0 0 0 / 0)"},I$={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],xs:"0 1px 1px rgb(0 0 0 / 0.05)",sm:"0 1px 2px rgb(0 0 0 / 0.15)",md:"0 3px 3px rgb(0 0 0 / 0.12)",lg:"0 4px 4px rgb(0 0 0 / 0.15)",xl:"0 9px 7px rgb(0 0 0 / 0.1)","2xl":"0 25px 25px rgb(0 0 0 / 0.15)"},M$={none:"0 0 rgb(0 0 0 / 0)","2xs":"0 1px 0 rgb(0 0 0 / 0.15)",xs:"0 1px 1px rgb(0 0 0 / 0.2)",sm:["0 1px 0 rgb(0 0 0 / 0.075)","0 1px 1px rgb(0 0 0 / 0.075)","0 2px 2px rgb(0 0 0 / 0.075)"],md:["0 1px 1px rgb(0 0 0 / 0.1)","0 1px 2px rgb(0 0 0 / 0.1)","0 2px 4px rgb(0 0 0 / 0.1)"],lg:["0 1px 2px rgb(0 0 0 / 0.1)","0 3px 2px rgb(0 0 0 / 0.1)","0 4px 8px rgb(0 0 0 / 0.1)"]},z$={dramatic:"100px",near:"300px",normal:"500px",midrange:"800px",distant:"1200px"},q$={transition:{duration:"150ms",timingFunction:"cubic-bezier(0.4, 0, 0.2, 1)"},font:{family:"var(--font-sans)",featureSettings:"var(--font-sans--font-feature-settings)",variationSettings:"var(--font-sans--font-variation-settings)"},monoFont:{family:"var(--font-mono)",featureSettings:"var(--font-mono--font-feature-settings)",variationSettings:"var(--font-mono--font-variation-settings)"}},F$={"3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},ad={sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},D$={...ad},L$={grid:"(display: grid)"},V$={linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)",DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)"},U$={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke","--un-gradient-from","--un-gradient-via","--un-gradient-to"].join(","),opacity:"opacity",shadow:"box-shadow",transform:["transform","translate","scale","rotate"].join(","),get DEFAULT(){return[this.colors,this.opacity,this.shadow,this.transform,"filter","-webkit-backdrop-filter","backdrop-filter"].join(",")}},H$={font:S$,colors:id,spacing:O$,breakpoint:ad,verticalBreakpoint:D$,text:E$,fontWeight:x$,tracking:P$,leading:C$,textStrokeWidth:j$,radius:T$,shadow:N$,insetShadow:A$,dropShadow:I$,textShadow:M$,ease:V$,animation:w$,blur:k$,perspective:z$,property:U$,default:q$,container:F$,aria:_$,media:R$,supports:L$},K$=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,e,t])=>({"container-type":t??"inline-size","container-name":e})]],W$=/@media \(min-width: (.+)\)/,B$=[[/^__container$/,(e,t)=>{const{theme:r,variantHandlers:n}=t,o=r.containers?.padding;let s;ve(o)?s=o:s=o?.DEFAULT;const i=r.containers?.maxWidth;let a;for(const f of n){const l=f.handle?.({},p=>p)?.parent;if(ve(l)){const p=l.match(W$)?.[1];if(p){const y=(Ho(t)??[]).find(v=>v.size===p)?.point;i?y&&(a=i?.[y]):a=p,y&&!ve(o)&&(s=o?.[y]??s)}}}const c={"max-width":a};return n.length||(c.width="100%"),r.containers?.center&&(c["margin-left"]="auto",c["margin-right"]="auto"),o&&(c["padding-left"]=s,c["padding-right"]=s),c},{internal:!0}]],G$=[[/^(?:(\w+)[:-])?container$/,([,e],t)=>{let r=(Ho(t)??[]).map(o=>o.point);if(e){if(!r.includes(e))return;r=r.slice(r.indexOf(e))}const n=r.map(o=>`${o}:__container`);return e||n.unshift("__container"),n}]],J$=[...G$],tu={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(we.map(e=>[e,e]))},X$=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":tu[e]??I.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(tu).join("|")})`,"(vertical|align|v)-<percentage>"]}]],ru=["center","left","right","justify","start","end"],Y$=[...ru.map(e=>[`text-${e}`,{"text-align":e}]),...[...we,...ru].map(e=>[`text-align-${e}`,{"text-align":e}])],Q$=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t})=>{const r=t.animation?.keyframes?.[e];if(r)return[`@keyframes ${e}${r}`,{animation:e}]},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t})=>{const r=t.animation?.keyframes?.[e];if(r){const n=t.animation?.durations?.[e]??"1s",o=t.animation?.timingFns?.[e]??"linear",s=t.animation?.counts?.[e]??1,i=t.animation?.properties?.[e];return[`@keyframes ${e}${r}`,{animation:`${e} ${n} ${o} ${s}`,...i}]}return{animation:I.bracket.cssvar(e)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,e])=>({"animation-name":I.bracket.cssvar(e)??e})],[/^animate-duration-(.+)$/,([,e],{theme:t})=>({"animation-duration":t.duration?.[e||"DEFAULT"]??I.bracket.cssvar.time(e)}),{autocomplete:["animate-duration"]}],[/^animate-delay-(.+)$/,([,e],{theme:t})=>({"animation-delay":t.duration?.[e||"DEFAULT"]??I.bracket.cssvar.time(e)}),{autocomplete:["animate-delay"]}],[/^animate-ease(?:-(.+))?$/,([,e],{theme:t})=>({"animation-timing-function":t.ease?.[e||"DEFAULT"]??I.bracket.cssvar(e)}),{autocomplete:["animate-ease","animate-ease-$ease"]}],[/^animate-(fill-mode-|fill-|mode-)?(.+)$/,([,e,t])=>["none","forwards","backwards","both",e?we:[]].includes(t)?{"animation-fill-mode":t}:void 0,{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(direction-)?(.+)$/,([,e,t])=>["normal","reverse","alternate","alternate-reverse",e?we:[]].includes(t)?{"animation-direction":t}:void 0,{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"]}],[/^animate-(?:iteration-count-|iteration-|count-)(.+)$/,([,e])=>({"animation-iteration-count":I.bracket.cssvar(e)??e.replace(/-/g,",")}),{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(play-state-|play-|state-)?(.+)$/,([,e,t])=>["paused","running",e?we:[]].includes(t)?{"animation-play-state":t}:void 0,{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)","animate-(paused|running|inherit|initial|revert|revert-layer|unset)"]}],["animate-none",{animation:"none"}],...se("animate","animation")],cd={"gradient-position":Y("--un-gradient-position"),"gradient-from":Y("--un-gradient-from",{syntax:"<color>",initialValue:"#0000"}),"gradient-via":Y("--un-gradient-via",{syntax:"<color>",initialValue:"#0000"}),"gradient-to":Y("--un-gradient-to",{syntax:"<color>",initialValue:"#0000"}),"gradient-stops":Y("--un-gradient-stops"),"gradient-via-stops":Y("--un-gradient-via-stops"),"gradient-from-position":Y("--un-gradient-from-position",{syntax:"<length-percentage>",initialValue:"0%"}),"gradient-via-position":Y("--un-gradient-via-position",{syntax:"<length-percentage>",initialValue:"50%"}),"gradient-to-position":Y("--un-gradient-to-position",{syntax:"<length-percentage>",initialValue:"100%"})};function nu(e){let t="in oklab";if(e)if(e.startsWith("[")&&e.endsWith("]"))t=e.slice(1,-1);else switch(e){case"longer":case"shorter":case"increasing":case"decreasing":t=`in oklch ${e} hue`;break;default:t=`in ${e}`}return t}function Z$(){return function*([,e,t],{theme:r}){const n={},o=Uo(t,r);if(o){const{color:s,keys:i,alpha:a}=o;if(s){if(Object.values(Vo).includes(s))n[`--un-gradient-${e}`]=s;else{n[`--un-${e}-opacity`]=a;const c=i?$e("colors",i):s;n[`--un-gradient-${e}`]=`color-mix(in oklab, ${c} var(--un-${e}-opacity), transparent)`,yield Y(`--un-${e}-opacity`,{syntax:"<percentage>",initialValue:"100%"})}i&&ne("colors",i),r&&Ko(s,r)}}else n[`--un-gradient-${e}`]=I.bracket.cssvar(t);if(n[`--un-gradient-${e}`]){switch(e){case"from":yield{...n,"--un-gradient-stops":"var(--un-gradient-via-stops, var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-to) var(--un-gradient-to-position))"};break;case"via":yield{...n,"--un-gradient-via-stops":"var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-via) var(--un-gradient-via-position), var(--un-gradient-to) var(--un-gradient-to-position)","--un-gradient-stops":"var(--un-gradient-via-stops)"};break;case"to":yield{...n,"--un-gradient-stops":"var(--un-gradient-via-stops, var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-to) var(--un-gradient-to-position))"};break;case"stops":yield{...n};break}for(const s of Object.values(cd))yield s}}}function ew(){return function*([,e,t]){yield{[`--un-gradient-${e}-position`]:`${I.bracket.cssvar.percent(t)}`};for(const r of Object.values(cd))yield r}}const tw=[[/^bg-(linear|radial|conic)-([^/]+)(?:\/(.+))?$/,([,e,t,r])=>{let n;if(I.number(t)!=null?n=`from ${I.number(t)}deg ${nu(r)};`:n=I.bracket(t),n)return{"--un-gradient-position":n,"background-image":`${e}-gradient(var(--un-gradient-stops))`}},{autocomplete:["bg-(linear|radial|conic)","(from|to|via)-$colors","(from|to|via)-(op|opacity)","(from|to|via)-(op|opacity)-<percent>"]}],[/^(from|via|to|stops)-(.+)$/,Z$()],[/^(from|via|to)-op(?:acity)?-?(.+)$/,([,e,t])=>({[`--un-${e}-opacity`]:I.bracket.percent(t)})],[/^(from|via|to)-([\d.]+%)$/,ew()],[/^bg-((?:repeating-)?(?:linear|radial|conic))$/,([,e])=>({"background-image":`${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgb(255 255 255 / 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-(linear|radial|conic)(?:-to-([rltb]{1,2}))?(?:\/(.+))?$/,([,e,t,r])=>({"--un-gradient-position":`${t in Re?`to ${Re[t]} `:" "}${nu(r)}`,"background-image":`${e}-gradient(var(--un-gradient-stops))`}),{autocomplete:`bg-gradient-to-(${Object.keys(Re).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],...se("box-decoration","box-decoration-break"),["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],[/^bg-size-(.+)$/,([,e])=>({"background-size":I.bracket.cssvar(e)})],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-clip":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-clip":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-clip":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-clip":"text"}],...we.map(e=>[`bg-clip-${e}`,{"-webkit-background-clip":e,"background-clip":e}]),[/^bg-([-\w]{3,})$/,([,e])=>({"background-position":Re[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],...se("bg-repeat","background-repeat"),["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}],...se("bg-origin","background-origin")],ou=[[/^outline-(?:width-|size-)?(.+)$/,ld,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,rw,{autocomplete:"outline-$colors"}],[/^outline-op(?:acity)?-?(.+)$/,([,e])=>({"--un-outline-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"outline-(op|opacity)-<percent>"}],[/^outline-offset-(.+)$/,([,e])=>({"outline-offset":I.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline-offset-none",{"outline-offset":"0"}],["outline",[{"outline-style":"var(--un-outline-style)","outline-width":"1px"},Y("--un-outline-style",{initialValue:"solid"})]],["outline-hidden",[{"outline-style":"none"},{[Pe.parent]:"@media (forced-colors: active)",outline:"2px solid transparent","outline-offset":"2px"}]],["outline-none",{"--un-outline-style":"none","outline-style":"none"}],...["auto","dashed","dotted","double","solid","groove","ridge","inset","outset",...we].map(e=>[`outline-${e}`,{"--un-outline-style":e,"outline-style":e}])];function*ld([,e]){const t=I.bracket.cssvar.global.px(e);t!=null&&(yield{"outline-style":"var(--un-outline-style)","outline-width":t},yield Y("--un-outline-style",{initialValue:"solid"}))}function*rw(e,t){if(wr(I.bracket(e[1])))yield*ld(e);else{const r=_e("outline-color","outline")(e,t);if(r)for(const n of r)yield n}}const nw=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function ow(e){const t=I.bracket(e);return t&&I.properties(t)?t:I.properties.auto.cssvar.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}const su=[[/^will-change-(.+)/,([,e])=>({"will-change":ow(e)})]],Es={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},sw=[[/^list-(.+?)(?:-(outside|inside))?$/,([,e,t])=>{const r=Es[e];if(r)return t?{"list-style-position":t,"list-style-type":r}:{"list-style-type":r}},{autocomplete:[`list-(${Object.keys(Es).join("|")})`,`list-(${Object.keys(Es).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}],[/^list-image-(.+)$/,([,e])=>{if(/^\[url\(.+\)\]$/.test(e))return{"list-style-image":I.bracket(e)}}],["list-image-none",{"list-style-image":"none"}],...se("list","list-style-type")],iw=[[/^accent-(.+)$/,_e("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":I.bracket.percent(e)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],aw=[[/^caret-(.+)$/,_e("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":I.bracket.percent(e)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],cw=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],lw=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],...se("overscroll","overscroll-behavior"),["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],...se("overscroll-x","overscroll-behavior-x"),["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}],...se("overscroll-y","overscroll-behavior-y")],uw=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}],...se("scroll","scroll-behavior")],kt=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...we],fw=[[/^(?:border|b)()(?:-(.+))?$/,Le,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,Le],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,Le],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,Le],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,Le],[/^(?:border|b)-()(?:width|size)-(.+)$/,Le,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Le],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Le],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Le],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Le],[/^(?:border|b)-()(?:color-)?(.+)$/,tr,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,tr],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,tr],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,tr],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,tr],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,rr,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,rr],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,rr],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,rr],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,rr],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,nr,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$radius","(rounded|rd)","(rounded|rd)-$radius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,nr],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,nr],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,nr],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,nr],[/^(?:border|b)-(?:style-)?()(.+)$/,or,{autocomplete:["(border|b)-style",`(border|b)-(${kt.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${kt.join("|")})`,`(border|b)-<directions>-style-(${kt.join("|")})`,`(border|b)-style-(${kt.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,or],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,or],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,or],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,or]];function dw(e){return([,t],r)=>{const n=Uo(t,r.theme),o=rd(n,`border${e}-color`,`border${e}`,r);if(o){const s=o[0];return n?.color&&!Object.values(Vo).includes(n.color)&&!n.alpha&&e&&e!==""&&(s[`--un-border${e}-opacity`]="var(--un-border-opacity)"),o}}}function Le([,e="",t="1"]){const r=I.bracket.cssvar.global.px(t);if(e in Ie&&r!=null)return Ie[e].map(n=>[`border${n}-width`,r])}function tr([,e="",t],r){if(e in Ie){if(wr(I.bracket(t)))return Le(["",e,t]);if(mr(t,r.theme)){const n=Ie[e].map(o=>dw(o)(["",t],r)).filter(ro);return[n.map(o=>o[0]).reduce((o,s)=>(Object.assign(o,s),o),{}),...n.flatMap(o=>o.slice(1))]}}}function rr([,e="",t]){const r=I.bracket.percent.cssvar(t);if(e in Ie&&r!=null)return Ie[e].map(n=>[`--un-border${n}-opacity`,r])}function nr([,e="",t="DEFAULT"],{theme:r}){if(e in oo){if(t==="full")return oo[e].map(o=>[`border${o}-radius`,"calc(infinity * 1px)"]);const n=r.radius?.[t]??I.bracket.cssvar.global.fraction.rem(t);if(n!=null){const o=r.radius&&t in r.radius;return o&&ne("radius",t),oo[e].map(s=>[`border${s}-radius`,o?$e("radius",t):n])}}}function or([,e="",t]){if(kt.includes(t)&&e in Ie)return[["--un-border-style",t],...Ie[e].map(r=>[`border${r}-style`,t])]}const pw=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:I.bracket.percent.cssvar(e)})]],hw=/^\[url\(.+\)\]$/,mw=/^\[(?:length|size):.+\]$/,gw=/^\[position:.+\]$/,yw=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,bw=/^\[image:.+\]$/,vw=[[/^bg-(.+)$/,(...e)=>{const t=e[0][1];if(hw.test(t))return{"--un-url":I.bracket(t),"background-image":"var(--un-url)"};if(mw.test(t)&&I.bracketOfLength(t)!=null)return{"background-size":I.bracketOfLength(t).split(" ").map(r=>I.fraction.auto.px.cssvar(r)??r).join(" ")};if((xv(t)||gw.test(t))&&I.bracketOfPosition(t)!=null)return{"background-position":I.bracketOfPosition(t).split(" ").map(r=>I.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(yw.test(t)||bw.test(t)){const r=I.bracket(t);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:I.cssvar(r))??r}}return _e("background-color","bg")(...e)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],$w=[[/^(?:color-)?scheme-(.+)$/,([,e])=>({"color-scheme":e.split("-").join(" ")})]],ww=[[/^columns-(.+)$/,([,e])=>({columns:I.bracket.global.number.auto.numberWithUnit(e)}),{autocomplete:"columns-<num>"}],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],...se("break-before"),["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],...se("break-inside"),["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}],...se("break-after")],iu=["solid","double","dotted","dashed","wavy",...we],_w=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,ud,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,kw,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e])=>({"text-underline-offset":I.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...iu.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...iu.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function ud([,e]){return{"text-decoration-thickness":I.bracket.cssvar.global.px(e)}}function kw(e,t){if(wr(I.bracket(e[1])))return ud(e);const r=_e("text-decoration-color","line")(e,t);if(r){const n=r[0];return n["-webkit-text-decoration-color"]=n["text-decoration-color"],r}}const Sw=[[/^pa?()-?(.+)$/,be("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,be("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,be("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,be("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,be("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,be("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Ew=[[/^ma?()-?(.+)$/,be("margin")],[/^m-?xy()()$/,be("margin")],[/^m-?([xy])(?:-?(.+))?$/,be("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,be("margin")],[/^m-(block|inline)(?:-(.+))?$/,be("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,be("margin")]],xw=[[/^space-([xy])-(.+)$/,Pw,{autocomplete:["space-(x|y)","space-(x|y)-reverse","space-(x|y)-$spacing"]}],[/^space-([xy])-reverse$/,function*([,e],{symbols:t}){yield{[t.selector]:St,[`--un-space-${e}-reverse`]:"1"},yield Y(`--un-space-${e}-reverse`,{initialValue:0})}]];function St(e){const t=">:not(:last-child)";return e.includes(t)?e:`${e}${t}`}function*Pw([,e,t],{theme:r,symbols:n}){let o;const s=Me(t);if(s!=null?(ne("spacing"),o=`calc(var(--spacing) * ${s})`):o=r.spacing?.[t]??I.bracket.cssvar.auto.fraction.rem(t||"1"),o!=null){const i=Ie[e==="x"?"inline":"block"].map((a,c)=>{const f=`margin${a}`,l=` calc(${o} * ${c===0?`var(--un-space-${e}-reverse)`:`calc(1 - var(--un-space-${e}-reverse))`})`;return[f,l]});i&&(yield{[n.selector]:St,[`--un-space-${e}-reverse`]:"0",...Object.fromEntries(i)},yield Y(`--un-space-${e}-reverse`,{initialValue:0}))}}const Cw=[[/^divide-(.+)$/,function*(e,t){const r=_e("border-color","divide")(e,t);r&&(yield{[t.symbols.selector]:St,...r[0]},yield r[1])},{autocomplete:"divide-$colors"}],[/^divide-op(?:acity)?-?(.+)$/,function*([,e],{symbols:t}){yield{[t.selector]:St,"--un-divide-opacity":I.bracket.percent(e)}},{autocomplete:["divide-(op|opacity)","divide-(op|opacity)-<percent>"]}],[/^divide-?([xy])$/,au,{autocomplete:["divide-(x|y)","divide-(x|y)-reverse"]}],[/^divide-?([xy])-?(.+)$/,au],[/^divide-?([xy])-reverse$/,function*([,e],{symbols:t}){yield{[t.selector]:St,[`--un-divide-${e}-reverse`]:"1"},yield Y(`--un-divide-${e}-reverse`,{initialValue:0})}],[new RegExp(`^divide-(${kt.join("|")})$`),function*([,e],{symbols:t}){yield{[t.selector]:St,"border-style":e}},{autocomplete:kt.map(e=>`divide-${e}`)}]];function*au([,e,t],{symbols:r}){let n=I.bracket.cssvar.px(t||"1");if(n!=null){n==="0"&&(n="0px");const s={x:["-left","-right"],y:["-top","-bottom"]}[e].map(i=>{const a=i.endsWith("left")||i.endsWith("top")?`calc(${n} * var(--un-divide-${e}-reverse))`:`calc(${n} * calc(1 - var(--un-divide-${e}-reverse)))`;return[[`border${i}-width`,a],[`border${i}-style`,"var(--un-border-style)"]]});s&&(yield{[r.selector]:St,[`--un-divide-${e}-reverse`]:0,...Object.fromEntries(s.flat())},yield Y(`--un-divide-${e}-reverse`,{initialValue:0}),yield Y("--un-border-style",{initialValue:"solid"}))}}const fd=["blur","brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"],Js=fd.map(e=>Y(`--un-${e}`)),So=fd.map(e=>`var(--un-${e},)`).join(" "),dd=["backdrop-blur","backdrop-brightness","backdrop-contrast","backdrop-grayscale","backdrop-hue-rotate","backdrop-invert","backdrop-opacity","backdrop-saturate","backdrop-sepia"],jw=dd.map(e=>Y(`--un-${e}`)),Eo=dd.map(e=>`var(--un-${e},)`).join(" ");function xs(e){let t=I.bracket.cssvar(e||"");if(t!=null||(t=e?I.percent(e):"100%",t!=null&&Number.parseFloat(t.slice(0,-1))<=100))return t}function tt(e,t){return([,r,n],{theme:o})=>{const s=t(n,o)??(n==="none"?"0":"");if(s!=="")return r?[{[`--un-${r}${e}`]:`${e}(${s})`,"-webkit-backdrop-filter":Eo,"backdrop-filter":Eo},...jw]:[{[`--un-${e}`]:`${e}(${s})`,filter:So},...Js]}}function Rw([,e],{theme:t}){let r=t.dropShadow?.[e||"DEFAULT"];if(r!=null)return[{"--un-drop-shadow":`drop-shadow(${ki(r,"--un-drop-shadow-color").join(") drop-shadow(")})`,filter:So},...Js];if(r=I.bracket.cssvar(e)??(e==="none"?"":void 0),r!=null)return[{"--un-drop-shadow":r&&`drop-shadow(${r})`,filter:So},...Js]}const Ow=[[/^(?:(backdrop-)|filter-)?blur(?:-(.+))?$/,tt("blur",(e,t)=>t.blur?.[e||"DEFAULT"]||I.bracket.cssvar.px(e)),{autocomplete:["(backdrop|filter)-blur-$blur","blur-$blur","filter-blur"]}],[/^(?:(backdrop-)|filter-)?brightness-(.+)$/,tt("brightness",e=>I.bracket.cssvar.percent(e)),{autocomplete:["(backdrop|filter)-brightness-<percent>","brightness-<percent>"]}],[/^(?:(backdrop-)|filter-)?contrast-(.+)$/,tt("contrast",e=>I.bracket.cssvar.percent(e)),{autocomplete:["(backdrop|filter)-contrast-<percent>","contrast-<percent>"]}],[/^(?:filter-)?drop-shadow(?:-(.+))?$/,Rw,{autocomplete:["filter-drop","filter-drop-shadow","filter-drop-shadow-color","drop-shadow","drop-shadow-color","filter-drop-shadow-$dropShadow","drop-shadow-$dropShadow","filter-drop-shadow-color-$colors","drop-shadow-color-$colors","filter-drop-shadow-color-(op|opacity)","drop-shadow-color-(op|opacity)","filter-drop-shadow-color-(op|opacity)-<percent>","drop-shadow-color-(op|opacity)-<percent>"]}],[/^(?:filter-)?drop-shadow-color-(.+)$/,_e("--un-drop-shadow-color","drop-shadow")],[/^(?:filter-)?drop-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-drop-shadow-opacity":I.bracket.percent(e)})],[/^(?:(backdrop-)|filter-)?grayscale(?:-(.+))?$/,tt("grayscale",xs),{autocomplete:["(backdrop|filter)-grayscale","(backdrop|filter)-grayscale-<percent>","grayscale-<percent>"]}],[/^(?:(backdrop-)|filter-)?hue-rotate-(.+)$/,tt("hue-rotate",e=>I.bracket.cssvar.degree(e))],[/^(?:(backdrop-)|filter-)?invert(?:-(.+))?$/,tt("invert",xs),{autocomplete:["(backdrop|filter)-invert","(backdrop|filter)-invert-<percent>","invert-<percent>"]}],[/^(backdrop-)op(?:acity)?-(.+)$/,tt("opacity",e=>I.bracket.cssvar.percent(e)),{autocomplete:["backdrop-(op|opacity)","backdrop-(op|opacity)-<percent>"]}],[/^(?:(backdrop-)|filter-)?saturate-(.+)$/,tt("saturate",e=>I.bracket.cssvar.percent(e)),{autocomplete:["(backdrop|filter)-saturate","(backdrop|filter)-saturate-<percent>","saturate-<percent>"]}],[/^(?:(backdrop-)|filter-)?sepia(?:-(.+))?$/,tt("sepia",xs),{autocomplete:["(backdrop|filter)-sepia","(backdrop|filter)-sepia-<percent>","sepia-<percent>"]}],["filter",{filter:So}],["backdrop-filter",{"-webkit-backdrop-filter":Eo,"backdrop-filter":Eo}],["filter-none",{filter:"none"}],["backdrop-filter-none",{"-webkit-backdrop-filter":"none","backdrop-filter":"none"}],...we.map(e=>[`filter-${e}`,{filter:e}]),...we.map(e=>[`backdrop-filter-${e}`,{"-webkit-backdrop-filter":e,"backdrop-filter":e}])],Tw=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:I.bracket(e)!=null?I.bracket(e).split(" ").map(t=>I.cssvar.fraction(t)??t).join(" "):I.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=""])=>({"flex-shrink":I.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":I.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e])=>{const t=Me(e);return t!=null?(ne("spacing"),{"flex-basis":`calc(var(--spacing) * ${t})`}):{"flex-basis":I.bracket.cssvar.auto.fraction.rem(e)}},{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]],cu={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Ps([,e="",t]){const r=Me(t);return r!=null?(ne("spacing"),{[`${cu[e]}gap`]:`calc(var(--spacing) * ${r})`}):{[`${cu[e]}gap`]:I.bracket.cssvar.global.rem(t)}}const Nw=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ps,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ps,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Ps,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function We(e){return e.replace("col","column")}function Aw(e){switch(e){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return I.bracket.cssvar.auto.rem(e)}const Iw=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t])=>({[`grid-${We(e)}`]:I.bracket.number.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${We(e)}`]:"1/-1"};const r=I.bracket.number.cssvar(t);if(r!=null)return{[`grid-${We(e)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${We(e)}-start`]:I.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${We(e)}-end`]:I.bracket.cssvar(t)??t}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t])=>({[`grid-auto-${We(e)}`]:Aw(t)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":I.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":We(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t])=>({[`grid-template-${We(e)}`]:I.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${We(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${We(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":I.cssvar(t)??t.split("-").map(r=>`"${I.bracket(r)}"`).join(" ")}:{"grid-area":I.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]],Qn=["auto","hidden","clip","visible","scroll","overlay",...we],Mw=[[/^(?:overflow|of)-(.+)$/,([,e])=>Qn.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Qn.join("|")})`,`(overflow|of)-(x|y)-(${Qn.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Qn.includes(t)?{[`overflow-${e}`]:t}:void 0]],zw=[[/^line-clamp-(\d+)$/,([,e])=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e}),{autocomplete:["line-clamp","line-clamp-(1|2|3|4|5|6|none)"]}],["line-clamp-none",{overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":"unset"}]],Xs={t:["top"],b:["bottom"],l:["left"],r:["right"],x:["left","right"],y:["top","bottom"]},lu="linear-gradient(#fff, #fff)",qw={"mask-image":"var(--un-mask-linear), var(--un-mask-radial), var(--un-mask-conic)","mask-composite":"intersect"};function uu([,e=""]){if(e in oo)return{"mask-position":e.split("").flatMap(n=>Xs[n]).join(" ")};const t=I.bracket.cssvar.global.position(e);if(t!==null)return{"mask-position":t}}function Cs([e,t="",r,n],o){const s={...qw},i=[];if(i.push(...["linear","radial","conic"].map(a=>Y(`--un-mask-${a}`,{initialValue:lu}))),t in Xs){s["--un-mask-linear"]="var(--un-mask-left), var(--un-mask-right), var(--un-mask-bottom), var(--un-mask-top)";for(const a of Xs[t]){if(s[`--un-mask-${a}`]=`linear-gradient(to ${a}, var(--un-mask-${a}-from-color) var(--un-mask-${a}-from-position), var(--un-mask-${a}-to-color) var(--un-mask-${a}-to-position))`,Me(n)!=null?(ne("spacing"),s[`--un-mask-${a}-${r}-position`]=`calc(var(--spacing) * ${I.bracket.cssvar.fraction.number(n)})`):s[`--un-mask-${a}-${r}-position`]=I.bracket.cssvar.fraction.rem(n),mr(n,o.theme)){const c=_e(`--un-mask-${a}-${r}-color`,Gs("colors"))([e,n],o);if(c){const[f,...l]=c;Object.assign(s,f),i.push(...l)}}i.push(...["from","to"].flatMap(c=>[Y(`--un-mask-${a}-${c}-position`,{syntax:"<length-percentage>",initialValue:c==="from"?"0%":"100%"}),Y(`--un-mask-${a}-${c}-color`,{syntax:"<color>",initialValue:c==="from"?"black":"transparent"})]))}i.push(...["top","right","bottom","left"].map(a=>Y(`--un-mask-${a}`,{initialValue:lu})))}else{if(r==null)t==="radial"?(s["--un-mask-radial"]="radial-gradient(var(--un-mask-radial-stops, var(--un-mask-radial-size)))",s["--un-mask-radial-size"]=I.bracket.cssvar.rem(n)):(s[`--un-mask-${t}`]=`${t}-gradient(var(--un-mask-${t}-stops, var(--un-mask-${t}-position)))`,s[`--un-mask-${t}-position`]=Me(n)?`calc(1deg * ${I.bracket.cssvar.number(n)})`:I.bracket.cssvar.fraction(n));else{const a={linear:"",radial:"var(--un-mask-radial-shape) var(--un-mask-radial-size) at ",conic:"from "};if(s[`--un-mask-${t}-stops`]=`${a[t]}var(--un-mask-${t}-position), var(--un-mask-${t}-from-color) var(--un-mask-${t}-from-position), var(--un-mask-${t}-to-color) var(--un-mask-${t}-to-position)`,s[`--un-mask-${t}`]=`${t}-gradient(var(--un-mask-${t}-stops))`,mr(n,o.theme)){const c=_e(`--un-mask-${t}-${r}-color`,Gs("colors"))([e,n],o);if(c){const[f,...l]=c;Object.assign(s,f),i.push(...l)}}else Me(n)!=null?(ne("spacing"),s[`--un-mask-${t}-${r}-position`]=`calc(var(--spacing) * ${I.bracket.cssvar.fraction.number(n)})`):s[`--un-mask-${t}-${r}-position`]=I.bracket.cssvar.fraction.rem(n)}t==="radial"&&i.push(Y("--un-mask-radial-shape",{initialValue:"ellipse"}),Y("--un-mask-radial-size",{initialValue:"farthest-corner"})),i.push(...["from","to"].flatMap(a=>[Y(`--un-mask-${t}-position`,{initialValue:t==="radial"?"center":"0deg"}),Y(`--un-mask-${t}-${a}-position`,{syntax:"<length-percentage>",initialValue:a==="from"?"0%":"100%"}),Y(`--un-mask-${t}-${a}-color`,{syntax:"<color>",initialValue:a==="from"?"black":"transparent"})]))}return[s,...i]}function Fw([,e=""]){const t=I.bracket.cssvar.global.fraction.rem(e);if(t!==null)return{"mask-size":t}}const Dw=[["mask-clip-border",{"mask-clip":"border-box"}],["mask-clip-padding",{"mask-clip":"padding-box"}],["mask-clip-content",{"mask-clip":"content-box"}],["mask-clip-fill",{"mask-clip":"fill-box"}],["mask-clip-stroke",{"mask-clip":"stroke-box"}],["mask-clip-view",{"mask-clip":"view-box"}],["mask-no-clip",{"mask-clip":"no-clip"}],["mask-add",{"mask-composite":"add"}],["mask-subtract",{"mask-composite":"subtract"}],["mask-intersect",{"mask-composite":"intersect"}],["mask-exclude",{"mask-composite":"exclude"}],[/^mask-(.+)$/,([,e])=>({"mask-image":I.bracket.cssvar(e)})],[/^mask-(linear|radial|conic|[xytblr])-(from|to)()(?:-(.+))?$/,Cs,{autocomplete:["mask-(linear|radial|conic)-(from|to)-$colors","mask-(linear|radial|conic)-(from|to)-<percentage>","mask-(linear|radial|conic)-(from|to)","mask-(linear|radial|conic)-<percent>","mask-(x|y|t|b|l|r)-(from|to)-$colors","mask-(x|y|t|b|l|r)-(from|to)-<percentage>","mask-(x|y|t|b|l|r)-(from|to)","mask-(x|y|t|b|l|r)-<percent>"]}],[/^mask-(linear|radial|conic)-(from|to)?-?(.*)$/,Cs],[/^mask-([trblxy])-(from|to)-(.*)$/,Cs],["mask-none",{"mask-image":"none"}],["mask-radial-circle",{"--un-mask-radial-shape":"circle"}],["mask-radial-ellipse",{"--un-mask-radial-shape":"ellipse"}],["mask-radial-closest-side",{"--un-mask-radial-size":"closest-side"}],["mask-radial-closest-corner",{"--un-mask-radial-size":"closest-corner"}],["mask-radial-farthest-side",{"--un-mask-radial-size":"farthest-side"}],["mask-radial-farthest-corner",{"--un-mask-radial-size":"farthest-corner"}],[/^mask-radial-at-([-\w]{3,})$/,([,e])=>({"--un-mask-radial-position":Re[e]}),{autocomplete:[`mask-radial-at-(${Object.keys(Re).filter(e=>e.length>2).join("|")})`]}],["mask-alpha",{"mask-mode":"alpha"}],["mask-luminance",{"mask-mode":"luminance"}],["mask-match",{"mask-mode":"match-source"}],["mask-origin-border",{"mask-origin":"border-box"}],["mask-origin-padding",{"mask-origin":"padding-box"}],["mask-origin-content",{"mask-origin":"content-box"}],["mask-origin-fill",{"mask-origin":"fill-box"}],["mask-origin-stroke",{"mask-origin":"stroke-box"}],["mask-origin-view",{"mask-origin":"view-box"}],[/^mask-([rltb]{1,2})$/,uu],[/^mask-([-\w]{3,})$/,([,e])=>({"mask-position":Re[e]})],[/^mask-(?:position-|pos-)(.+)$/,uu],["mask-repeat",{"mask-repeat":"repeat"}],["mask-no-repeat",{"mask-repeat":"no-repeat"}],["mask-repeat-x",{"mask-repeat":"repeat-x"}],["mask-repeat-y",{"mask-repeat":"repeat-y"}],["mask-repeat-space",{"mask-repeat":"space"}],["mask-repeat-round",{"mask-repeat":"round"}],["mask-auto",{"mask-size":"auto"}],["mask-cover",{"mask-size":"cover"}],["mask-contain",{"mask-size":"contain"}],[/^mask-size-(.+)$/,Fw],["mask-type-luminance",{"mask-type":"luminance"}],["mask-type-alpha",{"mask-type":"alpha"}]],Lw=[[/^\$ placeholder-(.+)$/,_e("color","placeholder"),{autocomplete:"placeholder-$colors"}],[/^\$ placeholder-op(?:acity)?-?(.+)$/,([,e])=>({"--un-placeholder-opacity":I.bracket.percent(e)}),{autocomplete:["placeholder-(op|opacity)","placeholder-(op|opacity)-<percent>"]}]],Vw=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>we.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],pd=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],["justify-center-safe",{"justify-content":"safe center"}],["justify-end-safe",{"justify-content":"safe flex-end"}],["justify-normal",{"justify-content":"normal"}],...se("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-items-center-safe",{"justify-items":"safe center"}],["justify-items-end-safe",{"justify-items":"safe flex-end"}],...se("justify-items"),["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}],["justify-self-baseline",{"justify-self":"baseline"}],["justify-self-center-safe",{"justify-self":"safe center"}],["justify-self-end-safe",{"justify-self":"safe flex-end"}],...se("justify-self")],Uw=[[/^order-(.+)$/,([,e])=>({order:I.bracket.cssvar.number(e)})],["order-first",{order:"calc(-infinity)"}],["order-last",{order:"calc(infinity)"}],["order-none",{order:"0"}]],hd=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["content-baseline",{"align-content":"baseline"}],["content-center-safe",{"align-content":"safe center"}],["content-end-safe",{"align-content":"safe flex-end"}],["content-stretch",{"align-content":"stretch"}],["content-normal",{"align-content":"normal"}],...se("content","align-content"),["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["items-baseline-last",{"align-items":"last baseline"}],["items-center-safe",{"align-items":"safe center"}],["items-end-safe",{"align-items":"safe flex-end"}],...se("items","align-items"),["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}],["self-baseline-last",{"align-self":"last baseline"}],["self-center-safe",{"align-self":"safe center"}],["self-end-safe",{"align-self":"safe flex-end"}],...se("self","align-self")],md=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-content-baseline",{"place-content":"baseline"}],["place-content-center-safe",{"place-content":"safe center"}],["place-content-end-safe",{"place-content":"safe flex-end"}],...se("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-items-baseline",{"place-items":"baseline"}],["place-items-center-safe",{"place-items":"safe center"}],["place-items-end-safe",{"place-items":"safe flex-end"}],...se("place-items"),["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}],["place-self-center-safe",{"place-self":"safe center"}],["place-self-end-safe",{"place-self":"safe flex-end"}],...se("place-self")],Hw=[...pd,...hd,...md].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function Ys(e){const t=Me(e);return t!=null?(ne("spacing"),`calc(var(--spacing) * ${t})`):I.bracket.cssvar.global.auto.fraction.rem(e)}function sr([,e,t]){const r=Ys(t);if(r!=null&&e in Xl)return Xl[e].map(n=>[n.slice(1),r])}const Kw=[[/^(?:position-|pos-)?inset-(.+)$/,([,e])=>({inset:Ys(e)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,sr],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,sr],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,sr],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,sr],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,sr],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t])=>({[e]:Ys(t)})]],Ww=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...se("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...se("clear")],Bw=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":I.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e])=>({"z-index":I.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],Gw=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...se("box","box-sizing")],Jw=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}} ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]],Qs={shadow:Y("--un-shadow",{initialValue:"0 0 #0000"}),shadowColor:Y("--un-shadow-color"),insetShadow:Y("--un-inset-shadow",{initialValue:"0 0 #0000"}),insetShadowColor:Y("--un-inset-shadow-color"),ringColor:Y("--un-ring-color"),ringShadow:Y("--un-ring-shadow",{initialValue:"0 0 #0000"}),insetRingColor:Y("--un-inset-ring-color"),insetRingShadow:Y("--un-inset-ring-shadow",{initialValue:"0 0 #0000"}),ringInset:Y("--un-ring-inset"),ringOffsetWidth:Y("--un-ring-offset-width",{syntax:"<length>",initialValue:"0px"}),ringOffsetColor:Y("--un-ring-offset-color"),ringOffsetShadow:Y("--un-ring-offset-shadow",{initialValue:"0 0 #0000"})},Xw=[[/^shadow(?:-(.+))?$/,fu("shadow"),{autocomplete:["shadow-$colors","shadow-$shadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],[/^inset-shadow(?:-(.+))?$/,fu("insetShadow"),{autocomplete:["inset-shadow-$colors","inset-shadow-$insetShadow"]}],[/^inset-shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-inset-shadow-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}]];function fu(e){return(t,r)=>{const[,n]=t,{theme:o}=r,s=o[e]?.[n||"DEFAULT"],i=n?I.bracket.cssvar(n):void 0,a=Gs(e);return(s!=null||i!=null)&&!mr(i,o)?[{[`--un-${a}`]:ki(s||i,`--un-${a}-color`).join(","),"box-shadow":"var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"},...Object.values(Qs)]:_e(`--un-${a}-color`,a)(t,r)}}const Yw=[[/^ring(?:-(.+))?$/,([,e])=>{const t=I.bracket.px(e||"1");if(t!=null)return[{"--un-ring-shadow":`var(--un-ring-inset,) 0 0 0 calc(${t} + var(--un-ring-offset-width)) var(--un-ring-color, currentColor)`,"box-shadow":"var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"},...Object.values(Qs)]}],[/^ring-(.+)$/,_e("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^inset-ring(?:-(.+))?$/,([,e])=>{const t=I.bracket.px(e||"1");if(t!=null)return[{"--un-inset-ring-shadow":`inset 0 0 0 ${t} var(--un-inset-ring-color, currentColor)`,"box-shadow":"var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"},...Object.values(Qs)]}],[/^inset-ring-(.+)$/,_e("--un-inset-ring-color","inset-ring"),{autocomplete:"inset-ring-$colors"}],[/^inset-ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-inset-ring-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"inset-ring-(op|opacity)-<percent>"}],[/^ring-offset(?:-(?:width-|size-)?(.+))?$/,([,e])=>{const t=I.bracket.cssvar.px(e||"1");if(t!=null)return{"--un-ring-offset-width":t,"--un-ring-offset-shadow":"var(--un-ring-inset,) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)"}},{autocomplete:"ring-offset-$colors"}],[/^ring-offset-(.+)$/,_e("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]],Qw=[...["x","y","both"].map(e=>[`snap-${e}`,[{"scroll-snap-type":`${e} var(--un-scroll-snap-strictness)`},Y("--un-scroll-snap-strictness",{initialValue:"proximity"})]]),...["mandatory","proximity"].map(e=>[`snap-${e}`,[{"--un-scroll-snap-strictness":e},Y("--un-scroll-snap-strictness",{initialValue:"proximity"})]]),["snap-none",{"scroll-snap-type":"none"}],["snap-start",{"scroll-snap-align":"start"}],["snap-end",{"scroll-snap-align":"end"}],["snap-center",{"scroll-snap-align":"center"}],["snap-align-none",{"scroll-snap-align":"none"}],["snap-normal",{"scroll-snap-stop":"normal"}],["snap-always",{"scroll-snap-stop":"always"}],[/^scroll-ma?()-?(.+)$/,be("scroll-margin"),{autocomplete:["scroll-(m|p|ma|pa|block|inline)","scroll-(m|p|ma|pa|block|inline)-$spacing","scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)","scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)-$spacing"]}],[/^scroll-m-?([xy])-?(.+)$/,be("scroll-margin")],[/^scroll-m-?([rltb])-?(.+)$/,be("scroll-margin")],[/^scroll-m-(block|inline)-(.+)$/,be("scroll-margin")],[/^scroll-m-?([bi][se])-?(.+)$/,be("scroll-margin")],[/^scroll-pa?()-?(.+)$/,be("scroll-padding")],[/^scroll-p-?([xy])-?(.+)$/,be("scroll-padding")],[/^scroll-p-?([rltb])-?(.+)$/,be("scroll-padding")],[/^scroll-p-(block|inline)-(.+)$/,be("scroll-padding")],[/^scroll-p-?([bi][se])-?(.+)$/,be("scroll-padding")]],Zw={h:"height",w:"width",inline:"inline-size",block:"block-size"};function It(e,t){return`${e||""}${Zw[t]}`}function Zn(e,t,r){let n;const o=["container","spacing"];for(const s of o)if(e[s]?.[r]){ne(s,r),n=$e(s,r);break}if(!n)switch(r){case"fit":case"max":case"min":n=`${r}-content`;break;case"screen":n=t==="w"?"100vw":"100vh";break}return!n&&I.number(r)!=null&&(ne("spacing"),n=`calc(var(--spacing) * ${I.number(r)})`),n??I.bracket.cssvar.global.auto.none.fraction.rem(r)}const e1=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:r})=>({[It(e,"w")]:Zn(r,"w",t),[It(e,"h")]:Zn(r,"h",t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[It(e,t)]:Zn(n,t,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[It(e,t)]:Zn(n,t,r)}),{autocomplete:["(w|h)-<num>","(w|h)-(full|screen|fit|max|min)","(max|min)-(w|h)-<num>","(max|min)-(w|h)-(full|screen|fit|max|min)","(block|inline)-<num>","(block|inline)-(full|screen|fit|max|min)","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-<num>","(max|min)-(w|h|block|inline)-(full|screen|fit|max|min)"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>({[It(e,t)]:du(n,r,"verticalBreakpoint")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>({[It(e,t)]:du(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$breakpoint","(min|max)-h-screen-$breakpoint","w-screen-$breakpoint","(min|max)-w-screen-$breakpoint"]}]];function du(e,t,r="breakpoint"){const n=Ho(e,r);if(n)return n.find(o=>o.point===t)?.size}function t1(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return I.bracket.cssvar.global.auto.number(e)}const r1=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":t1(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]],n1=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","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"],js=["size","layout","paint","style"],o1=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:I.bracket.cssvar.global(e)})]],s1=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["collapse",{visibility:"collapse"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...se("backface","backface-visibility")],i1=[[/^cursor-(.+)$/,([,e])=>({cursor:I.bracket.cssvar.global(e)})],...n1.map(e=>[`cursor-${e}`,{cursor:e}])],a1=[[/^contain-(.*)$/,([,e])=>I.bracket(e)!=null?{contain:I.bracket(e).split(" ").map(t=>I.cssvar.fraction(t)??t).join(" ")}:js.includes(e)?[{"--un-contain-size":e,contain:js.map(t=>`var(--un-contain-${t})`).join(" ")},...js.map(t=>Y(`--un-contain-${t}`))]:void 0],["contain-strict",{contain:"strict"}],["contain-content",{contain:"content"}],["contain-none",{contain:"none"}]],c1=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...se("pointer-events")],l1=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...se("resize")],u1=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...se("select","user-select")],f1=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...we].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],d1=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":I.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...se("content-visibility")],p1=[[/^content-(.+)$/,([,e])=>{if(I.bracket.cssvar(e)!=null)return[{"--un-content":I.bracket.cssvar(e),content:"var(--un-content)"},Y("--un-content",{initialValue:'""'})]}],["content-empty",{content:'""'}],["content-none",{content:"none"}]],h1=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}],["wrap-break-word",{"overflow-wrap":"break-word"}],["wrap-anywhere",{"overflow-wrap":"anywhere"}],["wrap-normal",{"overflow-wrap":"normal"}]],m1=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],g1=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],y1=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],["uppercase",{"text-transform":"uppercase"}],["lowercase",{"text-transform":"lowercase"}],["capitalize",{"text-transform":"capitalize"}],["normal-case",{"text-transform":"none"}],...se("case","text-transform")],b1=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],v1=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],$1=[...["manual","auto","none",...we].map(e=>[`hyphens-${e}`,{"-webkit-hyphens":e,"-ms-hyphens":e,hyphens:e}])],w1=[["write-vertical-right",{"writing-mode":"vertical-rl"}],["write-vertical-left",{"writing-mode":"vertical-lr"}],["write-normal",{"writing-mode":"horizontal-tb"}],...se("write","writing-mode")],_1=[["write-orient-mixed",{"text-orientation":"mixed"}],["write-orient-sideways",{"text-orientation":"sideways"}],["write-orient-upright",{"text-orientation":"upright"}],...se("write-orient","text-orientation")],k1=[["sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":0}],["not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto","white-space":"normal"}]],S1=[["isolate",{isolation:"isolate"}],["isolate-auto",{isolation:"auto"}],["isolation-auto",{isolation:"auto"}]],E1=[["object-cover",{"object-fit":"cover"}],["object-contain",{"object-fit":"contain"}],["object-fill",{"object-fit":"fill"}],["object-scale-down",{"object-fit":"scale-down"}],["object-none",{"object-fit":"none"}],[/^object-(.+)$/,([,e])=>{if(Re[e])return{"object-position":Re[e]};if(I.bracketOfPosition(e)!=null)return{"object-position":I.bracketOfPosition(e).split(" ").map(t=>I.position.fraction.auto.px.cssvar(t)??t).join(" ")}},{autocomplete:`object-(${Object.keys(Re).join("|")})`}]],x1=[["bg-blend-multiply",{"background-blend-mode":"multiply"}],["bg-blend-screen",{"background-blend-mode":"screen"}],["bg-blend-overlay",{"background-blend-mode":"overlay"}],["bg-blend-darken",{"background-blend-mode":"darken"}],["bg-blend-lighten",{"background-blend-mode":"lighten"}],["bg-blend-color-dodge",{"background-blend-mode":"color-dodge"}],["bg-blend-color-burn",{"background-blend-mode":"color-burn"}],["bg-blend-hard-light",{"background-blend-mode":"hard-light"}],["bg-blend-soft-light",{"background-blend-mode":"soft-light"}],["bg-blend-difference",{"background-blend-mode":"difference"}],["bg-blend-exclusion",{"background-blend-mode":"exclusion"}],["bg-blend-hue",{"background-blend-mode":"hue"}],["bg-blend-saturation",{"background-blend-mode":"saturation"}],["bg-blend-color",{"background-blend-mode":"color"}],["bg-blend-luminosity",{"background-blend-mode":"luminosity"}],["bg-blend-normal",{"background-blend-mode":"normal"}],...se("bg-blend","background-blend")],P1=[["mix-blend-multiply",{"mix-blend-mode":"multiply"}],["mix-blend-screen",{"mix-blend-mode":"screen"}],["mix-blend-overlay",{"mix-blend-mode":"overlay"}],["mix-blend-darken",{"mix-blend-mode":"darken"}],["mix-blend-lighten",{"mix-blend-mode":"lighten"}],["mix-blend-color-dodge",{"mix-blend-mode":"color-dodge"}],["mix-blend-color-burn",{"mix-blend-mode":"color-burn"}],["mix-blend-hard-light",{"mix-blend-mode":"hard-light"}],["mix-blend-soft-light",{"mix-blend-mode":"soft-light"}],["mix-blend-difference",{"mix-blend-mode":"difference"}],["mix-blend-exclusion",{"mix-blend-mode":"exclusion"}],["mix-blend-hue",{"mix-blend-mode":"hue"}],["mix-blend-saturation",{"mix-blend-mode":"saturation"}],["mix-blend-color",{"mix-blend-mode":"color"}],["mix-blend-luminosity",{"mix-blend-mode":"luminosity"}],["mix-blend-plus-lighter",{"mix-blend-mode":"plus-lighter"}],["mix-blend-normal",{"mix-blend-mode":"normal"}],...se("mix-blend")],C1=[["min-h-dvh",{"min-height":"100dvh"}],["min-h-svh",{"min-height":"100svh"}],["min-h-lvh",{"min-height":"100lvh"}],["h-dvh",{height:"100dvh"}],["h-svh",{height:"100svh"}],["h-lvh",{height:"100lvh"}],["max-h-dvh",{"max-height":"100dvh"}],["max-h-svh",{"max-height":"100svh"}],["max-h-lvh",{"max-height":"100lvh"}]],j1=[["forced-color-adjust-auto",{"forced-color-adjust":"auto"}],["forced-color-adjust-none",{"forced-color-adjust":"none"}]],R1=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]],O1=[[/^fill-(.+)$/,_e("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,gd],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":I.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e])=>({"stroke-dashoffset":I.bracket.cssvar.px.numberWithUnit(e)})],[/^stroke-(.+)$/,T1,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];function gd([,e]){return{"stroke-width":I.bracket.cssvar.fraction.px.number(e)}}function T1(e,t){return wr(I.bracket(e[1]))?gd(e):_e("stroke","stroke")(e,t)}const N1=[["inline-table",{display:"inline-table"}],["table",{display:"table"}],["table-caption",{display:"table-caption"}],["table-cell",{display:"table-cell"}],["table-column",{display:"table-column"}],["table-column-group",{display:"table-column-group"}],["table-footer-group",{display:"table-footer-group"}],["table-header-group",{display:"table-header-group"}],["table-row",{display:"table-row"}],["table-row-group",{display:"table-row-group"}],["border-collapse",{"border-collapse":"collapse"}],["border-separate",{"border-collapse":"separate"}],[/^border-spacing-(.+)$/,function*([,e],{theme:t}){const r=pu(e,t);if(r!=null){yield{"--un-border-spacing-x":r,"--un-border-spacing-y":r,"border-spacing":"var(--un-border-spacing-x) var(--un-border-spacing-y)"};for(const n of["x","y"])yield Y(`--un-border-spacing-${n}`,{syntax:"<length>",initialValue:"0"})}},{autocomplete:["border-spacing","border-spacing-$spacing"]}],[/^border-spacing-([xy])-(.+)$/,function*([,e,t],{theme:r}){const n=pu(t,r);if(n!=null){yield{[`--un-border-spacing-${e}`]:n,"border-spacing":"var(--un-border-spacing-x) var(--un-border-spacing-y)"};for(const o of["x","y"])yield Y(`--un-border-spacing-${o}`,{syntax:"<length>",initialValue:"0"})}},{autocomplete:["border-spacing-(x|y)","border-spacing-(x|y)-$spacing"]}],["caption-top",{"caption-side":"top"}],["caption-bottom",{"caption-side":"bottom"}],["table-auto",{"table-layout":"auto"}],["table-fixed",{"table-layout":"fixed"}],["table-empty-cells-visible",{"empty-cells":"show"}],["table-empty-cells-hidden",{"empty-cells":"hide"}]];function pu(e,t){let r=t.spacing?.[e];if(!r){const n=Me(e);n!=null?(ne("spacing"),r=`calc(var(--spacing) * ${n})`):r=I.bracket.cssvar.global.auto.fraction.rem(e)}return r}const Rs="var(--un-pan-x) var(--un-pan-y) var(--un-pinch-zoom)",Os=["pan-x","pan-y","pinch-zoom"].map(e=>Y(`--un-${e}`)),A1=[[/^touch-pan-(x|left|right)$/,function*([,e]){yield{"--un-pan-x":`pan-${e}`,"touch-action":Rs};for(const t of Os)yield t},{autocomplete:["touch-pan","touch-pan-(x|left|right|y|up|down)"]}],[/^touch-pan-(y|up|down)$/,function*([,e]){yield{"--un-pan-y":`pan-${e}`,"touch-action":Rs};for(const t of Os)yield t}],[/^touch-pinch-zoom$/,function*(){yield{"--un-pinch-zoom":"pinch-zoom","touch-action":Rs};for(const e of Os)yield e}],["touch-auto",{"touch-action":"auto"}],["touch-manipulation",{"touch-action":"manipulation"}],["touch-none",{"touch-action":"none"}],...se("touch","touch-action")],eo=["translate","rotate","scale"],Si=["var(--un-rotate-x)","var(--un-rotate-y)","var(--un-rotate-z)","var(--un-skew-x)","var(--un-skew-y)"].join(" "),Ei=Si,I1=["translateZ(0)",Si].join(" "),M1=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":Re[e]??I.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(Re).join("|")})`,`origin-(${Object.keys(Re).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e],{theme:t})=>{let r;if(t.perspective?.[e]?(ne("perspective",e),r=$e("perspective",e)):r=I.bracket.cssvar.px.numberWithUnit(e),r!=null)return{perspective:r}},{autocomplete:["transform-perspective-<num>","perspective-<num>","perspective-$perspective"]}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{const t=I.bracket.cssvar(e)??(e.length>=3?Re[e]:void 0);if(t!=null)return{"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,hu],[/^(?:transform-)?translate-([xyz])-(.+)$/,hu],[/^(?:transform-)?rotate-()(.+)$/,gu],[/^(?:transform-)?rotate-([xyz])-(.+)$/,gu],[/^(?:transform-)?skew-()(.+)$/,yu],[/^(?:transform-)?skew-([xy])-(.+)$/,yu,{autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,mu],[/^(?:transform-)?scale-([xyz])-(.+)$/,mu,{autocomplete:[`transform-(${eo.join("|")})-<percent>`,`transform-(${eo.join("|")})-(x|y|z)-<percent>`,`(${eo.join("|")})-<percent>`,`(${eo.join("|")})-(x|y|z)-<percent>`]}],["transform-3d",{"transform-style":"preserve-3d"}],["transform-flat",{"transform-style":"flat"}],[/^transform-(border|content|fill|stroke|view)$/,([,e])=>({"transform-box":`${e}-box`})],["transform",{transform:Ei}],["transform-cpu",{transform:Si}],["transform-gpu",{transform:I1}],["transform-none",{transform:"none"}],...se("transform")];function hu([,e,t]){const r=Me(t)??I.bracket.cssvar.none.fraction.rem(t);if(r!=null)return r==="none"?{translate:"none"}:(ne("spacing"),[[...xi(e,typeof r=="number"?`calc(var(--spacing) * ${r})`:r,"translate"),["translate",`var(--un-translate-x) var(--un-translate-y)${e==="z"?" var(--un-translate-z)":""}`,Bs]],...["x","y","z"].map(n=>Y(`--un-translate-${n}`,{initialValue:0}))])}function mu([,e,t]){const r=I.bracket.cssvar.none.fraction.percent(t);if(r!=null)return r==="none"?{scale:"none"}:[[...xi(e,r,"scale"),["scale",`var(--un-scale-x) var(--un-scale-y)${e==="z"?" var(--un-scale-z)":""}`]],...["x","y","z"].map(n=>Y(`--un-scale-${n}`,{initialValue:1}))]}function gu([,e="",t]){const r=I.bracket.cssvar.none.degree(t);if(r!=null)return r==="none"?{rotate:"none"}:e?[[...xi(e,r.endsWith("deg")?`rotate${e.toUpperCase()}(${r})`:r,"rotate"),["transform",Ei]],...["x","y","z"].map(n=>Y(`--un-rotate-${n}`,{initialValue:`rotate${n.toUpperCase()}(0)`})),...["x","y"].map(n=>Y(`--un-skew-${n}`,{initialValue:`skew${n.toUpperCase()}(0)`}))]:{rotate:I.bracket.cssvar.degree(t)}}function yu([,e,t]){const r=I.bracket.cssvar.degree(t),n=Yf[e];if(r!=null&&n)return[[...n.map(o=>[`--un-skew${o}`,r.endsWith("deg")?`skew${o.slice(1).toUpperCase()}(${r})`:r]),["transform",Ei]],...["x","y","z"].map(o=>Y(`--un-rotate-${o}`,{initialValue:`rotate${o.toUpperCase()}(0)`})),...["x","y"].map(o=>Y(`--un-skew-${o}`,{initialValue:`skew${o.toUpperCase()}(0)`}))]}function xi(e,t,r){const n=t.split(nv);return e||!e&&n.length===1?Yf[e].map(o=>[`--un-${r}${o}`,t]):n.map((o,s)=>[`--un-${r}-${tv[s]}`,o])}function bu(e,t){let r;if(I.cssvar(e)!=null)r=I.cssvar(e);else{e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1));const n=e.split(",").map(o=>t.property?.[o]??I.properties(o));n.every(Boolean)&&(r=n.join(","))}return r}const z1=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{ne("default",["transition","timingFunction"]),ne("default",["transition","duration"]);const n={"transition-property":r.property?.DEFAULT,"transition-timing-function":`var(--un-ease, ${$e("default",["transition","timingFunction"])})`,"transition-duration":`var(--un-duration, ${$e("default",["transition","duration"])})`};if(!e&&!t)return{...n};if(e!=null){const o=bu(e,r);if(o)return{"--un-duration":t&&I.time(t),...n,"transition-property":o}}else if(t!=null)return{"--un-duration":I.time(t),...n}}],[/^(?:transition-)?duration-(.+)$/,([,e])=>({"--un-duration":I.bracket.cssvar.time(e),"transition-duration":I.bracket.cssvar.time(e)})],[/^(?:transition-)?delay-(.+)$/,([,e])=>({"transition-delay":I.bracket.cssvar.time(e)})],[/^(?:transition-)?ease(?:-(.+))?$/,([,e="DEFAULT"],{theme:t})=>{let r;return t.ease?.[e]?(ne("ease",e),r=$e("ease",e)):r=I.bracket.cssvar(e),[{"--un-ease":r,"transition-timing-function":r},Y("--un-ease")]},{autocomplete:["transition-ease-(linear|in|out|in-out)","ease-(linear|in|out|in-out)"]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{const r=I.global(e)||bu(e,t);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...we].join("|")})`]}],["transition-none",{transition:"none"}],...se("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]],q1=[[/^text-(.+)$/,H1,{autocomplete:"text-$text"}],[/^(?:text|font)-size-(.+)$/,yd,{autocomplete:"text-size-$text"}],[/^text-(?:color-)?(.+)$/,K1,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,_e("color","text")],[/^(?:text|color|c)-(.+)$/,([,e])=>we.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${we.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^fw-?([^-]+)$/,([,e],{theme:t})=>{let r;return t.fontWeight?.[e]?(ne("fontWeight",e),r=$e("fontWeight",e)):r=I.bracket.cssvar.global.number(e),{"--un-font-weight":r,"font-weight":r}},{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>{let r;if(t.leading?.[e]?(ne("leading",e),r=$e("leading",e)):Me(e)?(ne("spacing"),r=`calc(var(--spacing) * ${Me(e)})`):r=I.bracket.cssvar.global.rem(e),r!=null)return[{"--un-leading":r,"line-height":r},Y("--un-leading")]},{autocomplete:"(leading|lh|line-height)-$leading"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":I.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{let r;return t.tracking?.[e]?(ne("tracking",e),r=$e("tracking",e)):r=I.bracket.cssvar.global.rem(e),{"--un-tracking":r,"letter-spacing":r}},{autocomplete:"tracking-$tracking"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{const r=t.tracking?.[e]?$e("tracking",e):I.bracket.cssvar.global.rem(e);return{"--un-word-spacing":r,"word-spacing":r}},{autocomplete:"word-spacing-$spacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,e])=>({"font-stretch":I.bracket.cssvar.fraction.global(e)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,e],{theme:t})=>{let r;if(t.font?.[e])return ne("font",e),r=$e("font",e),{"font-family":r};if(t.fontWeight?.[e])return ne("fontWeight",e),r=$e("fontWeight",e),{"--un-font-weight":r,"font-weight":r};if(r=I.number(e),r!=null)return{"--un-font-weight":r,"font-weight":r};if(r=I.bracketOfFamily(e),r!=null&&I.number(r)==null)return r=I.cssvar(r)??r,{"font-family":r};if(r=I.bracketOfNumber(e),r!=null)return r=I.cssvar.number(r),{"--un-font-weight":r,"font-weight":r};if(r=I.bracket(e),r!=null&&I.number(r)!=null){const n=I.number(r);return{"--un-font-weight":n,"font-weight":n}}if(r=I.bracket.cssvar.global(e),r!=null)return{"font-family":r}},{autocomplete:["font-$font","font-$fontWeight"]}]],F1=[[/^tab(?:-(.+))?$/,([,e])=>{const t=I.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],D1=[[/^indent-(.+)$/,([,e])=>{let t=Me(e);if(t!=null)return ne("spacing"),{"text-indent":`calc(var(--spacing) * ${t})`};if(t=I.bracket.cssvar.auto.global.rem(e),t!=null)return{"text-indent":t}}]],L1=[[/^text-stroke(?:-(.+))?$/,([,e="DEFAULT"],{theme:t})=>(t.textStrokeWidth?.[e]&&ne("textStrokeWidth",e),{"-webkit-text-stroke-width":t.textStrokeWidth?.[e]?$e("textStrokeWidth",e):I.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,_e("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],vu=/op(?:acity)?-/,V1=[[/^text-shadow(?:-(.+))?$/,(e,t)=>{const[r,n="DEFAULT"]=e,o=t.theme.textShadow?.[n];return o!=null?{"--un-text-shadow":ki(o,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:vu.test(n)?{"--un-text-shadow-opacity":I.bracket.percent.cssvar(n.replace(vu,""))}:_e("--un-text-shadow-color","text-shadow")(e,t)??{"text-shadow":I.bracket.cssvar.global(n)}},{autocomplete:["text-shadow-$textShadow","text-shadow(-color)?-$colors","text-shadow(-color)?-(op|opacity)-<percent>"]}],[/^text-shadow-color-(.+)$/,_e("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":I.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]],it=[Y("--un-ordinal"),Y("--un-slashed-zero"),Y("--un-numeric-figure"),Y("--un-numeric-spacing"),Y("--un-numeric-fraction")],at={"font-variant-numeric":"var(--un-ordinal,) var(--un-slashed-zero,) var(--un-numeric-figure,) var(--un-numeric-spacing,) var(--un-numeric-fraction,)"},U1=[["ordinal",[{"--un-ordinal":"ordinal",...at},...it]],["slashed-zero",[{"--un-slashed-zero":"slashed-zero",...at},...it]],["lining-nums",[{"--un-numeric-figure":"lining-nums",...at},...it]],["oldstyle-nums",[{"--un-numeric-figure":"oldstyle-nums",...at},...it]],["proportional-nums",[{"--un-numeric-spacing":"proportional-nums",...at},...it]],["tabular-nums",[{"--un-numeric-spacing":"tabular-nums",...at},...it]],["diagonal-fractions",[{"--un-numeric-fraction":"diagonal-fractions",...at},...it]],["stacked-fractions",[{"--un-numeric-fraction":"stacked-fractions",...at},...it]],["normal-nums",[{"font-variant-numeric":"normal"}]]];function H1([,e="base"],{theme:t}){const r=W1(e,"length");if(!r)return;const[n,o]=r,s=t.text?.[n];let i;if(o&&(t.leading?.[o]?(ne("leading",o),i=$e("leading",o)):i=I.bracket.cssvar.global.rem(o)),s)return ne("text",[n,"fontSize"]),ne("text",[n,"lineHeight"]),s.letterSpacing&&ne("text",[n,"letterSpacing"]),{"font-size":$e("text",[n,"fontSize"]),"line-height":i??`var(--un-leading, ${$e("text",[n,"lineHeight"])})`,"letter-spacing":s.letterSpacing?$e("text",[n,"letterSpacing"]):void 0};const a=I.bracketOfLength.rem(n);return i&&a?{"font-size":a,"line-height":i}:{"font-size":I.bracketOfLength.rem(e)}}function yd([,e],{theme:t}){if(t.text?.[e]!=null)return ne("text",[e,"fontSize"]),ne("text",[e,"lineHeight"]),{"font-size":$e("text",[e,"fontSize"]),"line-height":`var(--un-leading, ${$e("text",[e,"lineHeight"])})`};{const r=I.bracket.cssvar.global.rem(e);if(r)return{"font-size":r}}}function K1(e,t){return wr(I.bracket(e[1]))?yd(e,t):_e("color","text")(e,t)}function W1(e,t){const[r,n]=Lo(e,"[","]",["/",":"])??[];if(r!=null){const o=(r.match(_i)??[])[1];if(o==null||o===t)return[r,n]}}const B1={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space","bg-blend":"background-blend-mode","bg-clip":"-webkit-background-clip","bg-image":"background-image","bg-origin":"background-origin","bg-position":"background-position","bg-repeat":"background-repeat","bg-size":"background-size","mix-blend":"mix-blend-mode",object:"object-fit","object-position":"object-position",write:"writing-mode","write-orient":"text-orientation"},G1=[[/^(.+?)-(\$.+)$/,([,e,t])=>{const r=B1[e];if(r)return{[r]:I.cssvar(t)}}]],J1=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;const[r,...n]=t.split(":"),o=n.join(":");if(!Y1(t)&&/^[\w-]+$/.test(r)&&X1(o)){const s=I.bracket(`[${o}]`);if(s)return{[r]:s}}}]];function X1(e){let t=0;function r(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){const n=e[t];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function Y1(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}const Q1=[[/^view-transition-([\w-]+)$/,([,e])=>({"view-transition-name":e})]],Z1=[q1,F1,D1,L1,V1,Ew,Sw,Y$,X$,nw,ou,su,sw,iw,aw,cw,lw,ou,uw,su,fw,vw,pw,$w,B$,K$,_w,Tw,Nw,Iw,e1,r1,o1,s1,i1,a1,c1,l1,u1,f1,d1,p1,h1,m1,g1,y1,b1,v1,Yw,Xw,M1,z1,G1,J1,hd,Gw,Hw,Ww,Kw,pd,Uw,md,Vw,Bw,Mw,O1,Q$,tw,$1,w1,_1,j1,k1,S1,E1,x1,P1,C1,Dw,ww,Ow,zw,Lw,Qw,N1,A1,U1,Q1,xw,Cw,R1,Jw].flat();function e_(){return{getCSS:()=>{if(Dt.size>0){const e="@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",t="*, ::before, ::after, ::backdrop",r=Array.from(Dt.entries()).map(([n,o])=>`${n}:${o};`).join("");return`${e}{${t}{${r}}}`}},layer:"properties"}}const t_=`
33
- /*
34
- 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
35
- 2. Remove default margins and padding
36
- 3. Reset all borders.
37
- */
38
-
39
- *,
40
- ::after,
41
- ::before,
42
- ::backdrop,
43
- ::file-selector-button {
44
- box-sizing: border-box; /* 1 */
45
- margin: 0; /* 2 */
46
- padding: 0; /* 2 */
47
- border: 0 solid; /* 3 */
48
- }
49
-
50
- /*
51
- 1. Use a consistent sensible line-height in all browsers.
52
- 2. Prevent adjustments of font size after orientation changes in iOS.
53
- 3. Use a more readable tab size.
54
- 4. Use the user's configured \`sans\` font-family by default.
55
- 5. Use the user's configured \`sans\` font-feature-settings by default.
56
- 6. Use the user's configured \`sans\` font-variation-settings by default.
57
- 7. Disable tap highlights on iOS.
58
- */
59
-
60
- html,
61
- :host {
62
- line-height: 1.5; /* 1 */
63
- -webkit-text-size-adjust: 100%; /* 2 */
64
- tab-size: 4; /* 3 */
65
- font-family: var(
66
- --default-font-family,
67
- ui-sans-serif,
68
- system-ui,
69
- sans-serif,
70
- 'Apple Color Emoji',
71
- 'Segoe UI Emoji',
72
- 'Segoe UI Symbol',
73
- 'Noto Color Emoji'
74
- ); /* 4 */
75
- font-feature-settings: var(--default-font-featureSettings, normal); /* 5 */
76
- font-variation-settings: var(--default-font-variationSettings, normal); /* 6 */
77
- -webkit-tap-highlight-color: transparent; /* 7 */
78
- }
79
-
80
- /*
81
- 1. Add the correct height in Firefox.
82
- 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
83
- 3. Reset the default border style to a 1px solid border.
84
- */
85
-
86
- hr {
87
- height: 0; /* 1 */
88
- color: inherit; /* 2 */
89
- border-top-width: 1px; /* 3 */
90
- }
91
-
92
- /*
93
- Add the correct text decoration in Chrome, Edge, and Safari.
94
- */
95
-
96
- abbr:where([title]) {
97
- -webkit-text-decoration: underline dotted;
98
- text-decoration: underline dotted;
99
- }
100
-
101
- /*
102
- Remove the default font size and weight for headings.
103
- */
104
-
105
- h1,
106
- h2,
107
- h3,
108
- h4,
109
- h5,
110
- h6 {
111
- font-size: inherit;
112
- font-weight: inherit;
113
- }
114
-
115
- /*
116
- Reset links to optimize for opt-in styling instead of opt-out.
117
- */
118
-
119
- a {
120
- color: inherit;
121
- -webkit-text-decoration: inherit;
122
- text-decoration: inherit;
123
- }
124
-
125
- /*
126
- Add the correct font weight in Edge and Safari.
127
- */
128
-
129
- b,
130
- strong {
131
- font-weight: bolder;
132
- }
133
-
134
- /*
135
- 1. Use the user's configured \`mono\` font-family by default.
136
- 2. Use the user's configured \`mono\` font-feature-settings by default.
137
- 3. Use the user's configured \`mono\` font-variation-settings by default.
138
- 4. Correct the odd \`em\` font sizing in all browsers.
139
- */
140
-
141
- code,
142
- kbd,
143
- samp,
144
- pre {
145
- font-family: var(
146
- --default-monoFont-family,
147
- ui-monospace,
148
- SFMono-Regular,
149
- Menlo,
150
- Monaco,
151
- Consolas,
152
- 'Liberation Mono',
153
- 'Courier New',
154
- monospace
155
- ); /* 1 */
156
- font-feature-settings: var(--default-monoFont-featureSettings, normal); /* 2 */
157
- font-variation-settings: var(--default-monoFont-variationSettings, normal); /* 3 */
158
- font-size: 1em; /* 4 */
159
- }
160
-
161
- /*
162
- Add the correct font size in all browsers.
163
- */
164
-
165
- small {
166
- font-size: 80%;
167
- }
168
-
169
- /*
170
- Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
171
- */
172
-
173
- sub,
174
- sup {
175
- font-size: 75%;
176
- line-height: 0;
177
- position: relative;
178
- vertical-align: baseline;
179
- }
180
-
181
- sub {
182
- bottom: -0.25em;
183
- }
184
-
185
- sup {
186
- top: -0.5em;
187
- }
188
-
189
- /*
190
- 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
191
- 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
192
- 3. Remove gaps between table borders by default.
193
- */
194
-
195
- table {
196
- text-indent: 0; /* 1 */
197
- border-color: inherit; /* 2 */
198
- border-collapse: collapse; /* 3 */
199
- }
200
-
201
- /*
202
- Use the modern Firefox focus style for all focusable elements.
203
- */
204
-
205
- :-moz-focusring {
206
- outline: auto;
207
- }
208
-
209
- /*
210
- Add the correct vertical alignment in Chrome and Firefox.
211
- */
212
-
213
- progress {
214
- vertical-align: baseline;
215
- }
216
-
217
- /*
218
- Add the correct display in Chrome and Safari.
219
- */
220
-
221
- summary {
222
- display: list-item;
223
- }
224
-
225
- /*
226
- Make lists unstyled by default.
227
- */
228
-
229
- ol,
230
- ul,
231
- menu {
232
- list-style: none;
233
- }
234
-
235
- /*
236
- 1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
237
- 2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
238
- This can trigger a poorly considered lint error in some tools but is included by design.
239
- */
240
-
241
- img,
242
- svg,
243
- video,
244
- canvas,
245
- audio,
246
- iframe,
247
- embed,
248
- object {
249
- display: block; /* 1 */
250
- vertical-align: middle; /* 2 */
251
- }
252
-
253
- /*
254
- Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
255
- */
256
-
257
- img,
258
- video {
259
- max-width: 100%;
260
- height: auto;
261
- }
262
-
263
- /*
264
- 1. Inherit font styles in all browsers.
265
- 2. Remove border radius in all browsers.
266
- 3. Remove background color in all browsers.
267
- 4. Ensure consistent opacity for disabled states in all browsers.
268
- */
269
-
270
- button,
271
- input,
272
- select,
273
- optgroup,
274
- textarea,
275
- ::file-selector-button {
276
- font: inherit; /* 1 */
277
- font-feature-settings: inherit; /* 1 */
278
- font-variation-settings: inherit; /* 1 */
279
- letter-spacing: inherit; /* 1 */
280
- color: inherit; /* 1 */
281
- border-radius: 0; /* 2 */
282
- background-color: transparent; /* 3 */
283
- opacity: 1; /* 4 */
284
- }
285
-
286
- /*
287
- Restore default font weight.
288
- */
289
-
290
- :where(select:is([multiple], [size])) optgroup {
291
- font-weight: bolder;
292
- }
293
-
294
- /*
295
- Restore indentation.
296
- */
297
-
298
- :where(select:is([multiple], [size])) optgroup option {
299
- padding-inline-start: 20px;
300
- }
301
-
302
- /*
303
- Restore space after button.
304
- */
305
-
306
- ::file-selector-button {
307
- margin-inline-end: 4px;
308
- }
309
-
310
- /*
311
- Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
312
- */
313
-
314
- ::placeholder {
315
- opacity: 1;
316
- }
317
-
318
- /*
319
- Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
320
- crash when using \`color-mix(…)\` with \`currentcolor\`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
321
- */
322
-
323
- @supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
324
- (contain-intrinsic-size: 1px) /* Safari 17+ */ {
325
- ::placeholder {
326
- color: color-mix(in oklab, currentcolor 50%, transparent);
327
- }
328
- }
329
-
330
- /*
331
- Prevent resizing textareas horizontally by default.
332
- */
333
-
334
- textarea {
335
- resize: vertical;
336
- }
337
-
338
- /*
339
- Remove the inner padding in Chrome and Safari on macOS.
340
- */
341
-
342
- ::-webkit-search-decoration {
343
- -webkit-appearance: none;
344
- }
345
-
346
- /*
347
- 1. Ensure date/time inputs have the same height when empty in iOS Safari.
348
- 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
349
- */
350
-
351
- ::-webkit-date-and-time-value {
352
- min-height: 1lh; /* 1 */
353
- text-align: inherit; /* 2 */
354
- }
355
-
356
- /*
357
- Prevent height from changing on date/time inputs in macOS Safari when the input is set to \`display: block\`.
358
- */
359
-
360
- ::-webkit-datetime-edit {
361
- display: inline-flex;
362
- }
363
-
364
- /*
365
- Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
366
- */
367
-
368
- ::-webkit-datetime-edit-fields-wrapper {
369
- padding: 0;
370
- }
371
-
372
- ::-webkit-datetime-edit,
373
- ::-webkit-datetime-edit-year-field,
374
- ::-webkit-datetime-edit-month-field,
375
- ::-webkit-datetime-edit-day-field,
376
- ::-webkit-datetime-edit-hour-field,
377
- ::-webkit-datetime-edit-minute-field,
378
- ::-webkit-datetime-edit-second-field,
379
- ::-webkit-datetime-edit-millisecond-field,
380
- ::-webkit-datetime-edit-meridiem-field {
381
- padding-block: 0;
382
- }
383
-
384
- /*
385
- Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
386
- */
387
-
388
- :-moz-ui-invalid {
389
- box-shadow: none;
390
- }
391
-
392
- /*
393
- Correct the inability to style the border radius in iOS Safari.
394
- */
395
-
396
- button,
397
- input:where([type='button'], [type='reset'], [type='submit']),
398
- ::file-selector-button {
399
- appearance: button;
400
- }
401
-
402
- /*
403
- Correct the cursor style of increment and decrement buttons in Safari.
404
- */
405
-
406
- ::-webkit-inner-spin-button,
407
- ::-webkit-outer-spin-button {
408
- height: auto;
409
- }
410
-
411
- /*
412
- Make elements with the HTML hidden attribute stay hidden by default.
413
- */
414
-
415
- [hidden]:where(:not([hidden='until-found'])) {
416
- display: none !important;
417
- }
418
- `;function r_(e){if(e.preflights?.reset!==!1)return{getCSS:({generator:t})=>(ne("font","sans"),ne("font","mono"),ne("default",["font","family"]),ne("default",["monoFont","family"]),nd(t_,t.config.envMode==="dev")),layer:"base"}}const n_=["spacing","breakpoint","verticalBreakpoint","shadow","insetShadow","dropShadow","textShadow","animation","property","aria","media","supports"];function o_(e,t){const r=new Map([["--spacing",e.spacing.DEFAULT]]),n=s=>s.replace(Kf,"1");function o(s,i){for(const a in s)Array.isArray(s[a])?r.set(`--${i}-${a}`,n(s[a].join(","))):typeof s[a]=="object"?o(s[a],`${i}-${a}`):r.set(`--${i}-${a}`,n(s[a]))}for(const s in e)t.includes(s)&&o(e[s],s);return r}function s_(e){return{layer:"theme",getCSS(t){const{theme:r,generator:n}=t,o=Be(n.config.safelist.flatMap(f=>typeof f=="function"?f(t):f)),{mode:s,process:i}=e.preflights.theme;if(s===!1)return;if(o.length>0)for(const f of o){const[l,...p]=f.trim().split(":");if(l in r&&p.length<=1){const b=p.length===0?["DEFAULT"]:p[0].split("-"),y=ko(r,l,b);typeof y=="string"&&(ne(l,b),Ko(y,r))}}let a;const c=f=>{if(i)for(const b of f)for(const y of ge(i))y(b,t);const l=f.map(([b,y])=>b&&y?`${b}: ${y};`:void 0).filter(Boolean);if(l.length===0)return;const p=l.join(`
419
- `);return nd(`
420
- :root, :host {
421
- ${p}
422
- }`,n.config.envMode==="dev")};if(s==="on-demand"){if(Ft.size===0)return;a=Array.from(Ft).map(f=>{const[l,p]=f.split(":"),b=ko(r,l,p.split("-"));if(typeof b=="string")return[`--${l}${`${l==="spacing"&&p==="DEFAULT"?"":`-${p}`}`}`,b]}).filter(Boolean)}else{const f=Object.keys(r).filter(l=>!n_.includes(l));a=Array.from(o_(r,f))}return c(a)}}}const i_=e=>[r_(e),s_(e),e_()].filter(Boolean),a_={position:["relative","absolute","fixed","sticky","static"],globalKeyword:we},c_=(e={})=>{e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.variablePrefix=e.variablePrefix??"un-",e.important=e.important??!1;const t=typeof e.preflights?.theme=="boolean"||typeof e.preflights?.theme=="string"?{mode:e.preflights.theme??"on-demand"}:{mode:e.preflights?.theme?.mode??"on-demand",...e.preflights?.theme};return e.preflights={reset:e.preflights?.reset??!0,theme:t},{name:ev,rules:Z1,shortcuts:J$,theme:H$,layers:{properties:-200,theme:-150,base:-100},preflights:i_(e),variants:$$(e),prefix:e.prefix,postprocess:Rv(e),extractorDefault:e.arbitraryVariants===!1?void 0:Zb(),autocomplete:{shorthands:a_},options:e,configResolved(){Ft.clear(),Dt.clear()},meta:{themeDeps:Ft,propertyDeps:Dt}}},$u={presets:[c_({preflights:{reset:!0}}),Ub(),nb({cdn:"https://cdn.jsdelivr.net/npm/"}),ab(),Dg()]},bd=/^[a-z0-9]+(-[a-z0-9]+)*$/,_r=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),f={provider:o.length>0?o[0]:n,prefix:c,name:a};return t&&!so(f)?null:f}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:n,prefix:i.shift(),name:i.join("-")};return t&&!so(a)?null:a}if(r&&n===""){const a={provider:n,prefix:"",name:s};return t&&!so(a,r)?null:a}return null},so=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,vd=Object.freeze({left:0,top:0,width:16,height:16}),xo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ht=Object.freeze({...vd,...xo}),Zs=Object.freeze({...Ht,body:"",hidden:!1});function l_(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function wu(e,t){const r=l_(e,t);for(const n in Zs)n in xo?n in e&&!(n in r)&&(r[n]=xo[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function u_(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(r[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=n[i]&&n[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return Object.keys(r).concat(Object.keys(n)).forEach(s),o}function f_(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=wu(n[a]||o[a],s)}return i(t),r.forEach(i),wu(e,s)}function $d(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=u_(e);for(const o in n){const s=n[o];s&&(t(o,f_(e,o,s)),r.push(o))}return r}const d_={provider:"",aliases:{},not_found:{},...vd};function Ts(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function wd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ts(e,d_))return null;const r=t.icons;for(const o in r){const s=r[o];if(!o||typeof s.body!="string"||!Ts(s,Zs))return null}const n=t.aliases||Object.create(null);for(const o in n){const s=n[o],i=s.parent;if(!o||typeof i!="string"||!r[i]&&!n[i]||!Ts(s,Zs))return null}return t}const _u=Object.create(null);function p_(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Lt(e,t){const r=_u[e]||(_u[e]=Object.create(null));return r[t]||(r[t]=p_(e,t))}function _d(e,t){return wd(t)?$d(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function h_(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let gr=!1;function kd(e){return typeof e=="boolean"&&(gr=e),gr}function Wo(e){const t=typeof e=="string"?_r(e,!0,gr):e;if(t){const r=Lt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function m_(e,t){const r=_r(e,!0,gr);if(!r)return!1;const n=Lt(r.provider,r.prefix);return t?h_(n,r.name,t):(n.missing.add(r.name),!0)}function g_(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),gr&&!t&&!e.prefix){let o=!1;return wd(e)&&(e.prefix="",$d(e,(s,i)=>{m_(s,i)&&(o=!0)})),o}const r=e.prefix;if(!so({prefix:r,name:"a"}))return!1;const n=Lt(t,r);return!!_d(n,e)}function y_(e){return!!Wo(e)}function b_(e){const t=Wo(e);return t&&{...Ht,...t}}const Sd=Object.freeze({width:null,height:null}),Ed=Object.freeze({...Sd,...xo}),v_=/(-?[0-9.]*[0-9]+[0-9.]*)/g,$_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ku(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(v_);if(n===null||!n.length)return e;const o=[];let s=n.shift(),i=$_.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*r)/r)}else o.push(s);if(s=n.shift(),s===void 0)return o.join("");i=!i}}function w_(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const o=e.indexOf(">",n),s=e.indexOf("</"+t);if(o===-1||s===-1)break;const i=e.indexOf(">",s);if(i===-1)break;r+=e.slice(o+1,s).trim(),e=e.slice(0,n).trim()+e.slice(i+1)}return{defs:r,content:e}}function __(e,t){return e?"<defs>"+e+"</defs>"+t:t}function k_(e,t,r){const n=w_(e);return __(n.defs,t+n.content+r)}const S_=e=>e==="unset"||e==="undefined"||e==="none";function E_(e,t){const r={...Ht,...e},n={...Ed,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,n].forEach(g=>{const d=[],m=g.hFlip,u=g.vFlip;let h=g.rotate;m?u?h+=2:(d.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),d.push("scale(-1 1)"),o.top=o.left=0):u&&(d.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),d.push("scale(1 -1)"),o.top=o.left=0);let _;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){case 1:_=o.height/2+o.top,d.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:d.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:_=o.width/2+o.left,d.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}h%2===1&&(o.left!==o.top&&(_=o.left,o.left=o.top,o.top=_),o.width!==o.height&&(_=o.width,o.width=o.height,o.height=_)),d.length&&(s=k_(s,'<g transform="'+d.join(" ")+'">',"</g>"))});const i=n.width,a=n.height,c=o.width,f=o.height;let l,p;i===null?(p=a===null?"1em":a==="auto"?f:a,l=ku(p,c/f)):(l=i==="auto"?c:i,p=a===null?ku(l,f/c):a==="auto"?f:a);const b={},y=(g,d)=>{S_(d)||(b[g]=d.toString())};y("width",l),y("height",p);const v=[o.left,o.top,c,f];return b.viewBox=v.join(" "),{attributes:b,viewBox:v,body:s}}const x_=/\sid="(\S+)"/g,P_="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let C_=0;function j_(e,t=P_){const r=[];let n;for(;n=x_.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{const i=typeof t=="function"?t(s):t+(C_++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const ei=Object.create(null);function R_(e,t){ei[e]=t}function ti(e){return ei[e]||ei[""]}function Pi(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ci=Object.create(null),ir=["https://api.simplesvg.com","https://api.unisvg.com"],io=[];for(;ir.length>0;)ir.length===1||Math.random()>.5?io.push(ir.shift()):io.push(ir.pop());Ci[""]=Pi({resources:["https://api.iconify.design"].concat(io)});function O_(e,t){const r=Pi(t);return r===null?!1:(Ci[e]=r,!0)}function ji(e){return Ci[e]}const T_=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Su=T_();function N_(e,t){const r=ji(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";n=r.maxURL-o-r.path.length-s.length}return n}function A_(e){return e===404}const I_=(e,t,r)=>{const n=[],o=N_(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return r.forEach((c,f)=>{a+=c.length+1,a>=o&&f>0&&(n.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),n.push(i),n};function M_(e){if(typeof e=="string"){const t=ji(e);if(t)return t.path}return"/"}const z_=(e,t,r)=>{if(!Su){r("abort",424);return}let n=M_(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});n+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:r("abort",400);return}let o=503;Su(e+n).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{r(A_(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?r("abort",s):r("next",o)});return}setTimeout(()=>{r("success",s)})}).catch(()=>{r("next",o)})},q_={prepare:I_,send:z_};function F_(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const s=o.provider,i=o.prefix,a=o.name,c=r[s]||(r[s]=Object.create(null)),f=c[i]||(c[i]=Lt(s,i));let l;a in f.icons?l=t.loaded:i===""||f.missing.has(a)?l=t.missing:l=t.pending;const p={provider:s,prefix:i,name:a};l.push(p)}),t}function xd(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function D_(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const f=c.name;if(e.icons[f])i.loaded.push({provider:n,prefix:o,name:f});else if(e.missing.has(f))i.missing.push({provider:n,prefix:o,name:f});else return r=!0,!0;return!1}),i.pending.length!==a&&(r||xd([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let L_=0;function V_(e,t,r){const n=L_++,o=xd.bind(null,r,n);if(!t.pending.length)return o;const s={id:n,icons:t,callback:e,abort:o};return r.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function U_(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const s=typeof o=="string"?_r(o,t,r):o;s&&n.push(s)}),n}var H_={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function K_(e,t,r,n){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let k=e.resources.slice(0);for(i=[];k.length>1;){const S=Math.floor(Math.random()*k.length);i.push(k[S]),k=k.slice(0,S).concat(k.slice(S+1))}i=i.concat(k)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",f=0,l,p=null,b=[],y=[];typeof n=="function"&&y.push(n);function v(){p&&(clearTimeout(p),p=null)}function g(){c==="pending"&&(c="aborted"),v(),b.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),b=[]}function d(k,S){S&&(y=[]),typeof k=="function"&&y.push(k)}function m(){return{startTime:a,payload:t,status:c,queriesSent:f,queriesPending:b.length,subscribe:d,abort:g}}function u(){c="failed",y.forEach(k=>{k(void 0,l)})}function h(){b.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),b=[]}function _(k,S,P){const O=S!=="success";switch(b=b.filter(q=>q!==k),c){case"pending":break;case"failed":if(O||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){l=P,u();return}if(O){l=P,b.length||(i.length?$():u());return}if(v(),h(),!e.random){const q=e.resources.indexOf(k.resource);q!==-1&&q!==e.index&&(e.index=q)}c="completed",y.forEach(q=>{q(P)})}function $(){if(c!=="pending")return;v();const k=i.shift();if(k===void 0){if(b.length){p=setTimeout(()=>{v(),c==="pending"&&(h(),u())},e.timeout);return}u();return}const S={status:"pending",resource:k,callback:(P,O)=>{_(S,P,O)}};b.push(S),f++,p=setTimeout($,e.rotate),r(k,t,S.callback)}return setTimeout($),m}function Pd(e){const t={...H_,...e};let r=[];function n(){r=r.filter(a=>a().status==="pending")}function o(a,c,f){const l=K_(t,a,c,(p,b)=>{n(),f&&f(p,b)});return r.push(l),l}function s(a){return r.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Eu(){}const Ns=Object.create(null);function W_(e){if(!Ns[e]){const t=ji(e);if(!t)return;const r=Pd(t),n={config:t,redundancy:r};Ns[e]=n}return Ns[e]}function B_(e,t,r){let n,o;if(typeof e=="string"){const s=ti(e);if(!s)return r(void 0,424),Eu;o=s.send;const i=W_(e);i&&(n=i.redundancy)}else{const s=Pi(e);if(s){n=Pd(s);const i=e.resources?e.resources[0]:"",a=ti(i);a&&(o=a.send)}}return!n||!o?(r(void 0,424),Eu):n.query(t,o,r)().abort}function xu(){}function G_(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,D_(e)}))}function J_(e){const t=[],r=[];return e.forEach(n=>{(n.match(bd)?t:r).push(n)}),{valid:t,invalid:r}}function ar(e,t,r){function n(){const o=e.pendingIcons;t.forEach(s=>{o&&o.delete(s),e.icons[s]||e.missing.add(s)})}if(r&&typeof r=="object")try{if(!_d(e,r).length){n();return}}catch(o){console.error(o)}n(),G_(e)}function Pu(e,t){e instanceof Promise?e.then(r=>{t(r)}).catch(()=>{t(null)}):t(e)}function X_(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;if(delete e.iconsToLoad,!o||!o.length)return;const s=e.loadIcon;if(e.loadIcons&&(o.length>1||!s)){Pu(e.loadIcons(o,n,r),l=>{ar(e,o,l)});return}if(s){o.forEach(l=>{const p=s(l,n,r);Pu(p,b=>{const y=b?{prefix:n,icons:{[l]:b}}:null;ar(e,[l],y)})});return}const{valid:i,invalid:a}=J_(o);if(a.length&&ar(e,a,null),!i.length)return;const c=n.match(bd)?ti(r):null;if(!c){ar(e,i,null);return}c.prepare(r,n,i).forEach(l=>{B_(r,l,p=>{ar(e,l.icons,p)})})}))}const Cd=(e,t)=>{const r=U_(e,!0,kd()),n=F_(r);if(!n.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(n.loaded,n.missing,n.pending,xu)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return n.pending.forEach(c=>{const{provider:f,prefix:l}=c;if(l===a&&f===i)return;i=f,a=l,s.push(Lt(f,l));const p=o[f]||(o[f]=Object.create(null));p[l]||(p[l]=[])}),n.pending.forEach(c=>{const{provider:f,prefix:l,name:p}=c,b=Lt(f,l),y=b.pendingIcons||(b.pendingIcons=new Set);y.has(p)||(y.add(p),o[f][l].push(p))}),s.forEach(c=>{const f=o[c.provider][c.prefix];f.length&&X_(c,f)}),t?V_(t,n,s):xu},Y_=e=>new Promise((t,r)=>{const n=typeof e=="string"?_r(e,!0):e;if(!n){r(e);return}Cd([n||e],o=>{if(o.length&&n){const s=Wo(n);if(s){t({...Ht,...s});return}}r(e)})});function Q_(e,t){const r={...e};for(const n in t){const o=t[n],s=typeof o;n in Sd?(o===null||o&&(s==="string"||s==="number"))&&(r[n]=o):s===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const Z_=/[\s,]+/;function ek(e,t){t.split(Z_).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function tk(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-r.length));return isNaN(s)?0:(s=s/o,s%1===0?n(s):0)}}return t}function rk(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function nk(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ok(e){return"data:image/svg+xml,"+nk(e)}function sk(e){return'url("'+ok(e)+'")'}const Cu={...Ed,inline:!1},ik={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ak={display:"inline-block"},ri={backgroundColor:"currentColor"},jd={backgroundColor:"transparent"},ju={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ru={webkitMask:ri,mask:ri,background:jd};for(const e in Ru){const t=Ru[e];for(const r in ju)t[e+r]=ju[r]}const ao={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";ao[e+"-flip"]=t,ao[e.slice(0,1)+"-flip"]=t,ao[e+"Flip"]=t});function Ou(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Tu=(e,t)=>{const r=Q_(Cu,t),n={...ik},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let g in t){const d=t[g];if(d!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":r[g]=d===!0||d==="true"||d===1;break;case"flip":typeof d=="string"&&ek(r,d);break;case"color":s.color=d;break;case"rotate":typeof d=="string"?r[g]=tk(d):typeof d=="number"&&(r[g]=d);break;case"ariaHidden":case"aria-hidden":d!==!0&&d!=="true"&&delete n["aria-hidden"];break;default:{const m=ao[g];m?(d===!0||d==="true"||d===1)&&(r[m]=!0):Cu[g]===void 0&&(n[g]=d)}}}const c=E_(e,r),f=c.attributes;if(r.inline&&(s.verticalAlign="-0.125em"),o==="svg"){n.style={...s,...a},Object.assign(n,f);let g=0,d=t.id;return typeof d=="string"&&(d=d.replace(/-/g,"_")),n.innerHTML=j_(c.body,d?()=>d+"ID"+g++:"iconifyVue"),Ri("svg",n)}const{body:l,width:p,height:b}=e,y=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),v=rk(l,{...f,width:p+"",height:b+""});return n.style={...s,"--svg":sk(v),width:Ou(f.width),height:Ou(f.height),...ak,...y?ri:jd,...a},Ri("span",n)};kd(!0);R_("",q_);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!g_(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;O_(r,o)||console.error(n)}catch{console.error(n)}}}}const ck={...Ht,body:""};Fu((e,{emit:t})=>{const r=ct(null);function n(){r.value&&(r.value.abort?.(),r.value=null)}const o=ct(!!e.ssr),s=ct(""),i=lt(null);function a(){const f=e.icon;if(typeof f=="object"&&f!==null&&typeof f.body=="string")return s.value="",{data:f};let l;if(typeof f!="string"||(l=_r(f,!1,!0))===null)return null;let p=Wo(l);if(!p){const v=r.value;return(!v||v.name!==f)&&(p===null?r.value={name:f}:r.value={name:f,abort:Cd([l],c)}),null}n(),s.value!==f&&(s.value=f,ii(()=>{t("load",f)}));const b=e.customise;if(b){p=Object.assign({},p);const v=b(p.body,l.name,l.prefix,l.provider);typeof v=="string"&&(p.body=v)}const y=["iconify"];return l.prefix!==""&&y.push("iconify--"+l.prefix),l.provider!==""&&y.push("iconify--"+l.provider),{data:p,classes:y}}function c(){const f=a();f?f.data!==i.value?.data&&(i.value=f):i.value=null}return o.value?c():si(()=>{o.value=!0,c()}),Ge(()=>e.icon,c),Dd(n),()=>{const f=i.value;if(!f)return Tu(ck,e);let l=e;return f.classes&&(l={...e,class:f.classes.join(" ")}),Tu({...Ht,...f.data},l)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const lk=Fu({__name:"App",setup(e,{expose:t}){t();const r=Bd(),n=ke(()=>bo.value.find(({id:c})=>c===r.name)),o=ct(""),s=ct(""),i=ke(()=>n.value?.to&&`${window.location.origin}${n.value.to==="/"?"":n.value.to}`);Ge(n,async c=>{let f="/favicon.ico";if(c?.icon){const l=y_(c.icon)?b_(c.icon):await Y_(c.icon);if(l){const{body:p,height:b,left:y,top:v,width:g}=l;f=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="${y.toString()} ${v.toString()} ${g.toString()} ${b.toString()}">${p}</svg>`}}o.value=f}),Xu({link:[[o,"icon","icon"],[i,"canonical"]].map(([c,f,l])=>({href:c,key:l,rel:f})),script:[{id:"application/ld+json",innerHTML:s,type:"application/ld+json"}]}),Tp({description:ke(()=>n.value?.description),keywords:ke(()=>n.value?.keywords.join()),ogDescription:ke(()=>n.value?.description),ogImage:ke(()=>n.value?.images.filter(({url:c})=>c).map(({alt:c="",url:f})=>({alt:c,url:`${window.location.origin}/${f}`}))??[]),ogTitle:ke(()=>n.value?.title),ogType:ke(()=>n.value?.type),ogUrl:i,title:ke(()=>n.value?.title)}),Ge(()=>n.value?.jsonld,async c=>{s.value=JSON.stringify(await c)||'{"@context":"https://schema.org"}'});const a={route:r,a:n,favicon:o,jsonld:s,ogUrl:i,get pages(){return bo}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}}),uk=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};function fk(e,t,r,n,o,s){const i=Ld("router-view");return Ti(),Oi(i,null,{default:Vd(({Component:a})=>[(Ti(),Oi(Ud(a),{id:n.pages[0]?.id},null,8,["id"]))]),_:1})}const dk=uk(lk,[["render",fk],["__file","App.vue"]]);var As,Nu;function pk(){if(Nu)return As;Nu=1;function e(i,a){for(;i.length<a;)i="0"+i;return i}function t(i,a){var c,f,l;if(a.length===0)return i;for(c=0,l=a.length;c<l;c++)f=a.charCodeAt(c),i=(i<<5)-i+f,i|=0;return i<0?i*-2:i}function r(i,a,c){return Object.keys(a).sort().reduce(f,i);function f(l,p){return n(l,a[p],p,c)}}function n(i,a,c,f){var l=t(t(t(i,c),o(a)),typeof a);if(a===null)return t(l,"null");if(a===void 0)return t(l,"undefined");if(typeof a=="object"||typeof a=="function"){if(f.indexOf(a)!==-1)return t(l,"[Circular]"+c);f.push(a);var p=r(l,a,f);if(!("valueOf"in a)||typeof a.valueOf!="function")return p;try{return t(p,String(a.valueOf()))}catch(b){return t(p,"[valueOf exception]"+(b.stack||b.message))}}return t(l,a.toString())}function o(i){return Object.prototype.toString.call(i)}function s(i){return e(n(0,i,"",[]).toString(16),8)}return As=s,As}var hk=pk();const mk=yr(hk),co=async e=>{try{const t=await fetch(e);return t.ok?t:new Response("")}catch{return new Response("")}},cr=e=>{e.forEach(t=>{console.log(t)})},gk=async(e,{filename:t},{content:r,module:n,scoped:o=!1,src:s})=>{const{code:i,errors:a}=await Zd({filename:t,id:e,modules:!!n,scoped:o,source:s?await(await co(s)).text():r});cr(a),Kh(i,o?{id:e}:void 0)},Au=e=>Et(()=>import(`data:text/javascript;base64,${btoa(Array.from(new TextEncoder().encode(e),t=>String.fromCodePoint(t)).join(""))}`),[],import.meta.url),yk=async e=>{const{descriptor:t,errors:r}=Xd(await(await co(e)).text(),{filename:e}),n={expressionPlugins:[]},o=["script","scriptSetup"],s=await Promise.all(o.map(async p=>{const{lang:b="js",src:y}=t[p]??{};return/[jt]sx$/.test(b)&&n.expressionPlugins?.push("jsx"),/tsx?$/.test(b)&&n.expressionPlugins?.push("typescript"),y&&await(await co(y)).text()})),i=`data-v-${mk(e)}`,a="preserve",c={},f=t.styles.some(({scoped:p})=>p),{expressionPlugins:l}=n;if(cr(r),f&&(c.__scopeId=i),t.script||t.scriptSetup){o.forEach((v,g)=>{const d=t[v];d&&s[g]!==void 0&&(d.content=s[g])});const{bindings:p,content:b,warnings:y=[]}=Yd(t,{id:i});cr(y),p&&(n.bindingMetadata=p),Object.assign(c,(await Au(l.length?Ni(b,{jsxRuntime:a,transforms:l}).code:b)).default)}if(t.template){const{code:p,errors:b,tips:y}=Qd({ast:t.template.ast,compilerOptions:n,filename:t.filename,id:i,scoped:f,slotted:t.slotted,source:t.template.src?await(await co(t.template.src)).text():t.template.content,vapor:t.vapor});cr(b),cr(y),Object.assign(c,await Au(l.length?Ni(p,{jsxRuntime:a,transforms:l}).code:p))}return t.styles.forEach(p=>{gk(i,t,p)}),c};let ni;const{pathname:bk}=new URL(document.baseURI),Iu=ct(!0),Po=new Map,vk=()=>{let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),reject:t,resolve:e}},xt=Gd({history:Jd(bk),routes:[],scrollBehavior:(e,t,r)=>ni&&ni(e,t,r)}),Mu=ct(!0),zu=ke(()=>xt.currentRoute.value.path==="/"?Ds[xt.currentRoute.value.name]?.$children[0]:Ds[xt.currentRoute.value.name]),jk=({id:e=kf()})=>(Po.set(e,vk()),Hd(async()=>yk(`./pages/${e}.vue`))),Rk=({id:e}={})=>{e&&Po.get(e)?.resolve(void 0)},$k=({extractAll:e,toggleObserver:t})=>{ni=async({hash:r,name:n})=>{if(n){Iu.value=!0,t(!1);const[{promise:o}={}]=Po.values();await o,await Promise.all([...Po.values()].map(({promise:i})=>i)),await e(),t(!0);const s=Mu.value&&{behavior:"smooth",...r||zu.value?.parent?.flat&&zu.value.index?{el:r||`#${String(n)}`}:{left:0,top:0}};return Iu.value=!1,Mu.value=!0,s}else return!1}};xt.beforeEach(({path:e})=>e!==decodeURI(e)?decodeURI(e):void 0);const Co=Kd(dk),wk={async get(){if(this.id)try{const e=await fetch(`./pages/${this.id}.jsonld`);return e.ok?await e.json():void 0}catch{return}}};Co.use(Np());const _k=(async()=>{const e=await fetch("index.json"),[t={}]=await(e.ok?e:new Response("[]")).json();yo.push(t),await ii(),bo.value.forEach(({id:r,loc:n,path:o},s,i)=>{if(Object.defineProperties(i[s],{jsonld:wk}),o!==void 0){const a=n?.replaceAll(" ","_").replace(/^\/?/,"/").replace(/\/?$/,"/");xt.addRoute({...a&&n?{alias:a}:{undefined:void 0},children:[{component:()=>Et(()=>import("./PageView-9Jti-a9O.js"),__vite__mapDeps([0,1,2]),import.meta.url),name:r,path:""}],component:()=>Et(()=>import("./RootView-BlcOarGZ.js"),__vite__mapDeps([3,1,2]),import.meta.url),path:o.replace(/^\/?/,"/").replace(/\/?$/,"/")})}}),Co.provide("pages",Ds),xt.addRoute({component:()=>Et(()=>import("./NotFoundView-CJkxnZFz.js"),__vite__mapDeps([4,1,2]),import.meta.url),name:"404",path:"/:pathMatch(.*)*"})})();(async()=>{const e=await fetch("fonts.json"),t=Sg(await(e.ok?e:new Response("[]")).json());$u.presets.push(Ph({customFetch:_g,fonts:t})),await Oh({defaults:$u,ready:async r=>{const{toggleObserver:n}=r;return $k(r),await _k,Co.use(xt),Co.mount("#app"),n(!0),!1},rootElement:()=>document.getElementById("app")??void 0})})().catch(wg);console.info("👊 VueBro","/","runtime ver.:","1.1.7","/","https://github.com/vuebro");export{uk as _,Pk as a,Ck as b,Iu as c,bo as d,wg as e,Xu as f,jk as m,Po as p,Rk as r,Mu as s,zu as t,kf as u};