@vuebro/runtime 2.1.0 → 2.1.2
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.
- package/dist/.vite/manifest.json +1 -1
- package/dist/assets/index-D85K1Rsf.js +15 -0
- package/dist/assets/{markdown-DmXmAkEm.js → markdown-B67DBJhd.js} +3 -3
- package/dist/assets/unocss-BU3iCL2-.js +427 -0
- package/dist/index.html +5 -5
- package/package.json +10 -11
- package/dist/assets/index-Cnxttila.js +0 -15
- package/dist/assets/unocss-D_MpvJOK.js +0 -427
- /package/dist/assets/{loader-sfc.esm-browser.prod-2.4.6.js → loader-sfc.esm-browser.prod-2.4.8.js} +0 -0
package/dist/.vite/manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"_ajv-6LTVMkJm.js":{"file":"assets/ajv-6LTVMkJm.js","name":"ajv"},"_katex-UTpUfKgT.js":{"file":"assets/katex-UTpUfKgT.js","name":"katex"},"_markdown-
|
|
1
|
+
{"_ajv-6LTVMkJm.js":{"file":"assets/ajv-6LTVMkJm.js","name":"ajv"},"_katex-UTpUfKgT.js":{"file":"assets/katex-UTpUfKgT.js","name":"katex"},"_markdown-B67DBJhd.js":{"file":"assets/markdown-B67DBJhd.js","name":"markdown","imports":["_ajv-6LTVMkJm.js","_katex-UTpUfKgT.js"]},"_unocss-BU3iCL2-.js":{"file":"assets/unocss-BU3iCL2-.js","name":"unocss","imports":["_ajv-6LTVMkJm.js"],"dynamicImports":["index.html"]},"index.html":{"file":"assets/index-D85K1Rsf.js","name":"index","src":"index.html","isEntry":true,"isDynamicEntry":true,"imports":["_unocss-BU3iCL2-.js","_ajv-6LTVMkJm.js","_markdown-B67DBJhd.js","_katex-UTpUfKgT.js"],"css":["assets/index-vGiKZPT9.css"]},"node_modules/vue/dist/vue.esm-browser.prod.js":{"file":"assets/vue.esm-browser.prod-3.5.26.js","isStaticEntry":true,"name":"vue"},"node_modules/vue-router/dist/vue-router.esm-browser.prod.js":{"file":"assets/vue-router.esm-browser.prod-4.6.4.js","isStaticEntry":true,"name":"vue-router"},"node_modules/@vuebro/loader-sfc/dist/loader-sfc.esm-browser.prod.js":{"file":"assets/loader-sfc.esm-browser.prod-2.4.8.js","isStaticEntry":true,"name":"@vuebro/loader-sfc"}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{toValue as S,isRef as Y,hasInjectionContext as ao,inject as co,ref as de,watchEffect as Ae,getCurrentInstance as Me,onBeforeUnmount as kt,onDeactivated as lo,onActivated as uo,computed as j,toRef as P,toRefs as ue,reactive as V,watch as H,unref as U,onMounted as St,nextTick as po,getCurrentScope as go,onScopeDispose as fo,readonly as ho,customRef as wo,shallowRef as F,defineComponent as te,resolveComponent as mo,createBlock as ee,openBlock as N,withCtx as xe,resolveDynamicComponent as Re,defineAsyncComponent as yo,createElementBlock as ie,Fragment as Tt,createVNode as vo,createElementVNode as W,onUnmounted as bo,renderList as _o,withDirectives as ko,mergeProps as So,Suspense as To,createCommentVNode as Po,normalizeProps as Eo,guardReactiveProps as Co,createApp as jo}from"vue";import{d as Oo,w as Lo,_ as $o,p as Ao,a as Mo,b as xo,c as Ro,e as Ho,t as zo,M as No,i as Do}from"./unocss-BU3iCL2-.js";import{r as Fo,a as Pt,c as Io}from"./ajv-6LTVMkJm.js";import{useRoute as qo,createRouter as Wo,createWebHistory as Uo}from"vue-router";import{M as Vo,E as Bo,j as Go,i as Jo,U as Ko,z as Qo,w as Xo,k as Yo,L as Zo,b as er,d as tr,g as or,y as rr,a as sr,$ as ir,m as nr,c as ar,e as cr,f as lr,h as dr,l as ur,n as pr,o as gr,t as fr,p as hr,s as wr}from"./markdown-B67DBJhd.js";import mr from"@vuebro/loader-sfc";import"./katex-UTpUfKgT.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();const yr=new Set(["link","style","script","noscript"]),vr=new Set(["title","titleTemplate","script","style","noscript"]),Be=new Set(["base","meta","link","style","script","noscript"]),br=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),_r=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),kr=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Sr=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Tr=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const ke=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Ge={base:-10,title:10},Pr={critical:-8,high:-1,low:2},Je={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}},Er=/@import/,Q=e=>e===""||e===!0;function Cr(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let o=100;const s=Pr[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Je;if(t.tag in Ge)o=Ge[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(o=Je.meta[i])}else if(t.tag==="link"&&t.props.rel)o=r.link[t.props.rel];else if(t.tag==="script"){const i=String(t.props.type);Q(t.props.async)?o=r.script.async:t.props.src&&!Q(t.props.defer)&&!Q(t.props.async)&&i!=="module"&&!i.endsWith("json")||t.innerHTML&&!i.endsWith("json")?o=r.script.sync:(Q(t.props.defer)&&t.props.src&&!Q(t.props.async)||i==="module")&&(o=r.script.defer)}else t.tag==="style"&&(o=t.innerHTML&&Er.test(t.innerHTML)?r.style.imported:r.style.sync);return(o||100)+s}const pe="%separator";function jr(e,t,o=!1){let s;if(t==="s"||t==="pageTitle")s=e.pageTitle;else if(t.includes(".")){const r=t.indexOf(".");s=e[t.substring(0,r)]?.[t.substring(r+1)]}else s=e[t];if(s!==void 0)return o?(s||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):s||""}function re(e,t,o,s=!1){if(typeof e!="string"||!e.includes("%"))return e;let r=e;try{r=decodeURI(e)}catch{}const i=r.match(/%\w+(?:\.\w+)?/g);if(!i)return e;const a=e.includes(pe);return e=e.replace(/%\w+(?:\.\w+)?/g,n=>{if(n===pe||!i.includes(n))return n;const l=jr(t,n.slice(1),s);return l!==void 0?l:n}).trim(),a&&(e=e.split(pe).map(n=>n.trim()).filter(n=>n!=="").join(o?` ${o} `:" ")),e}const Ke=e=>e.includes(":key")?e:e.split(":").join(":key:"),Or={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const o of e.tags){const s=o.tagPriority;if(!s)continue;const r=String(s);if(r.startsWith("before:")){const i=Ke(r.slice(7)),a=e.tagMap.get(i);a&&(typeof a.tagPriority=="number"&&(o.tagPriority=a.tagPriority),o._p=a._p-1,t=!0)}else if(r.startsWith("after:")){const i=Ke(r.slice(6)),a=e.tagMap.get(i);a&&(typeof a.tagPriority=="number"&&(o.tagPriority=a.tagPriority),o._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(ke))}}},Lr={meta:"content",link:"href",htmlAttrs:"lang"},$r=["innerHTML","textContent"],Ar=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const o=t.tags.filter(s=>s.tag==="templateParams"&&s.mode==="server")?.[0]?.props||{};Object.keys(o).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...o}})},"tags:resolve":({tagMap:t,tags:o})=>{const s=t.get("templateParams")?.props||{},r=s.separator||"|";delete s.separator,s.pageTitle=re(s.pageTitle||e._title||"",s,r);for(const i of o){if(i.processTemplateParams===!1)continue;const a=Lr[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=re(i.props[a],s,r);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const n of $r)typeof i[n]=="string"&&(i[n]=re(i[n],s,r,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=s,e._separator=r},"tags:afterResolve":({tagMap:t})=>{const o=t.get("title");o?.textContent&&o.processTemplateParams!==!1&&(o.textContent=re(o.textContent,e._templateParams,e._separator))}}}),Qe=["og:url","og:image","og:image:secure_url","twitter:image","twitter:image:src","og:video","og:video:secure_url","og:see_also"];function Mr(e){return t=>{let o=e.canonicalHost||(t.ssr?"":window.location.origin);!o.startsWith("http")&&!o.startsWith("//")&&(o=`https://${o}`),o=new URL(o).origin;function s(r){if(e?.customResolver)return e.customResolver(r);if(r.startsWith("http")||r.startsWith("//"))return r;try{return new URL(r,o).toString()}catch{return r}}return{key:"canonical",hooks:{"tags:resolve":r=>{for(const i of r.tags)i.tag==="meta"&&(Qe.includes(i.props?.property)||Qe.includes(i.props?.name))?i.props.content=s(i.props.content):i.tag==="link"&&i.props.rel==="canonical"&&(i.props.href=s(i.props.href))}}}}}function xr(e={}){return t=>(t.push({meta:[{name:"twitter:card",content:e.twitterCard||"summary_large_image",tagPriority:"low"},{property:"og:title",tagPriority:"low","data-infer":""},{property:"og:description",tagPriority:"low","data-infer":""}]}),{key:"infer-seo-meta",hooks:{"tags:beforeResolve":({tagMap:o})=>{let s=t._titleTemplate||t._title;const r=o.get("meta:og:title");typeof r?.props["data-infer"]<"u"&&(typeof s=="function"&&(s=s(t._title)),r.props.content=e.ogTitle?e.ogTitle(s):s||"",r.processTemplateParams=!0);const i=o.get("meta:description")?.props?.content,a=o.get("meta:og:description");typeof a?.props["data-infer"]<"u"&&(a.props.content=e.ogDescription?e.ogDescription(i):i||"",a.processTemplateParams=!0)}}})}function Se(e,t={},o){for(const s in e){const r=e[s],i=o?`${o}:${s}`:s;typeof r=="object"&&r!==null?Se(r,t,i):typeof r=="function"&&(t[i]=r)}return t}const Rr={run:e=>e()},Hr=()=>Rr,Et=typeof console.createTask<"u"?console.createTask:Hr;function zr(e,t){const o=t.shift(),s=Et(o);return e.reduce((r,i)=>r.then(()=>s.run(()=>i(...t))),Promise.resolve())}function Nr(e,t){const o=t.shift(),s=Et(o);return Promise.all(e.map(r=>s.run(()=>r(...t))))}function ge(e,t){for(const o of[...e])o(t)}class Dr{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,o,s={}){if(!t||typeof o!="function")return()=>{};const r=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!s.allowDeprecated){let a=i.message;a||(a=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!o.name)try{Object.defineProperty(o,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(o),()=>{o&&(this.removeHook(t,o),o=void 0)}}hookOnce(t,o){let s,r=(...i)=>(typeof s=="function"&&s(),s=void 0,r=void 0,o(...i));return s=this.hook(t,r),s}removeHook(t,o){if(this._hooks[t]){const s=this._hooks[t].indexOf(o);s!==-1&&this._hooks[t].splice(s,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,o){this._deprecatedHooks[t]=typeof o=="string"?{to:o}:o;const s=this._hooks[t]||[];delete this._hooks[t];for(const r of s)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const o in t)this.deprecateHook(o,t[o])}addHooks(t){const o=Se(t),s=Object.keys(o).map(r=>this.hook(r,o[r]));return()=>{for(const r of s.splice(0,s.length))r()}}removeHooks(t){const o=Se(t);for(const s in o)this.removeHook(s,o[s])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...o){return o.unshift(t),this.callHookWith(zr,t,...o)}callHookParallel(t,...o){return o.unshift(t),this.callHookWith(Nr,t,...o)}callHookWith(t,o,...s){const r=this._before||this._after?{name:o,args:s,context:{}}:void 0;this._before&&ge(this._before,r);const i=t(o in this._hooks?[...this._hooks[o]]:[],s);return i instanceof Promise?i.finally(()=>{this._after&&r&&ge(this._after,r)}):(this._after&&r&&ge(this._after,r),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const o=this._before.indexOf(t);o!==-1&&this._before.splice(o,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const o=this._after.indexOf(t);o!==-1&&this._after.splice(o,1)}}}}function Fr(){return new Dr}const Ir=["name","property","http-equiv"],qr=new Set(["viewport","description","keywords","robots"]);function Ct(e){const t=e.split(":");return t.length?Tr.has(t[1]):!1}function Te(e){const{props:t,tag:o}=e;if(_r.has(o))return o;if(o==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const s of Ir)if(t[s]!==void 0){const r=t[s],i=r&&typeof r=="string"&&r.includes(":"),a=r&&qr.has(r),l=!(i||a)&&e.key?`:key:${e.key}`:"";return`${o}:${r}${l}`}}if(e.key)return`${o}:key:${e.key}`;if(t.id)return`${o}:id:${t.id}`;if(vr.has(o)){const s=e.textContent||e.innerHTML;if(s)return`${o}:content:${s}`}}function Xe(e){const t=e._h||e._d;if(t)return t;const o=e.textContent||e.innerHTML;return o||`${e.tag}:${Object.entries(e.props).map(([s,r])=>`${s}:${String(r)}`).join(",")}`}function ne(e,t,o){typeof e==="function"&&(!o||o!=="titleTemplate"&&!(o[0]==="o"&&o[1]==="n"))&&(e=e());const r=t?t(o,e):e;if(Array.isArray(r))return r.map(i=>ne(i,t));if(r?.constructor===Object){const i={};for(const a of Object.keys(r))i[a]=ne(r[a],t,a);return i}return r}function Wr(e,t){const o=e==="style"?new Map:new Set;function s(r){if(r==null||r===void 0)return;const i=String(r).trim();if(i)if(e==="style"){const[a,...n]=i.split(":").map(l=>l?l.trim():"");a&&n.length&&o.set(a,n.join(":"))}else i.split(" ").filter(Boolean).forEach(a=>o.add(a))}return typeof t=="string"?e==="style"?t.split(";").forEach(s):s(t):Array.isArray(t)?t.forEach(r=>s(r)):t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{i&&i!=="false"&&(e==="style"?o.set(String(r).trim(),String(i)):s(r))}),o}function jt(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([o,s])=>{if(s===null){e.props[o]=null;return}if(o==="class"||o==="style"){e.props[o]=Wr(o,s);return}if(kr.has(o)){if(["textContent","innerHTML"].includes(o)&&typeof s=="object"){let n=t.type;if(t.type||(n="application/json"),!n?.endsWith("json")&&n!=="speculationrules")return;t.type=n,e.props.type=n,e[o]=JSON.stringify(s)}else e[o]=s;return}const r=String(s),i=o.startsWith("data-"),a=e.tag==="meta"&&o==="content";r==="true"||r===""?e.props[o]=i||a?r:!0:!s&&i&&r==="false"?e.props[o]="false":s!==void 0&&(e.props[o]=s)}),e):e}function Ur(e,t){const o=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},s=jt({tag:e,props:{}},o);return s.key&&yr.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(r=>({...s,props:{...s.props,content:r}})):s}function Vr(e,t){if(!e)return[];typeof e=="function"&&(e=e());const o=(r,i)=>{for(let a=0;a<t.length;a++)i=t[a](r,i);return i};e=o(void 0,e);const s=[];return e=ne(e,o),Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)for(const a of Array.isArray(i)?i:[i])s.push(Ur(r,a))}),s.flat()}function Ye(e,t){const o=typeof t=="function"?t(e):t,s=o.key||String(e.plugins.size+1);e.plugins.get(s)||(e.plugins.set(s,o),e.hooks.addHooks(o.hooks||{}))}function Br(e={}){const t=Fr();t.addHooks(e.hooks||{});const o=!e.document,s=new Map,r=new Map,i=new Set,a={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:o,entries:s,headEntries(){return[...s.values()]},use:n=>Ye(a,n),push(n,l){const u={...l||{}};delete u.head;const c=u._index??a._entryCount++,h={_i:c,input:n,options:u},f={_poll(d=!1){a.dirty=!0,!d&&i.add(c),t.callHook("entries:updated",a)},dispose(){s.delete(c)&&a.invalidate()},patch(d){(!u.mode||u.mode==="server"&&o||u.mode==="client"&&!o)&&(h.input=d,s.set(c,h),f._poll())}};return f.patch(n),f},async resolveTags(){const n={tagMap:new Map,tags:[],entries:[...a.entries.values()]};for(await t.callHook("entries:resolve",n);i.size;){const f=i.values().next().value;i.delete(f);const d=s.get(f);if(d){const p={tags:Vr(d.input,e.propResolvers||[]).map(g=>Object.assign(g,d.options)),entry:d};await t.callHook("entries:normalize",p),d._tags=p.tags.map((g,w)=>(g._w=Cr(a,g),g._p=(d._i<<10)+w,g._d=Te(g),g))}}let l=!1;n.entries.flatMap(f=>(f._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(ke).reduce((f,d)=>{const p=String(d._d||d._p);if(!f.has(p))return f.set(p,d);const g=f.get(p);if((d?.tagDuplicateStrategy||(Sr.has(d.tag)?"merge":null)||(d.key&&d.key===g.key?"merge":null))==="merge"){const y={...g.props};Object.entries(d.props).forEach(([m,_])=>y[m]=m==="style"?new Map([...g.props.style||new Map,..._]):m==="class"?new Set([...g.props.class||new Set,..._]):_),f.set(p,{...d,props:y})}else d._p>>10===g._p>>10&&d.tag==="meta"&&Ct(p)?(f.set(p,Object.assign([...Array.isArray(g)?g:[g],d],d)),l=!0):(d._w===g._w?d._p>g._p:d?._w<g?._w)&&f.set(p,d);return f},n.tagMap);const u=n.tagMap.get("title"),c=n.tagMap.get("titleTemplate");if(a._title=u?.textContent,c){const f=c?.textContent;if(a._titleTemplate=f,f){let d=typeof f=="function"?f(u?.textContent):f;typeof d=="string"&&!a.plugins.has("template-params")&&(d=d.replace("%s",u?.textContent||"")),u?d===null?n.tagMap.delete("title"):n.tagMap.set("title",{...u,textContent:d}):(c.tag="title",c.textContent=d)}}n.tags=Array.from(n.tagMap.values()),l&&(n.tags=n.tags.flat().sort(ke)),await t.callHook("tags:beforeResolve",n),await t.callHook("tags:resolve",n),await t.callHook("tags:afterResolve",n);const h=[];for(const f of n.tags){const{innerHTML:d,tag:p,props:g}=f;if(br.has(p)&&!(Object.keys(g).length===0&&!f.innerHTML&&!f.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&d){if(String(g.type).endsWith("json")){const w=typeof d=="string"?d:JSON.stringify(d);f.innerHTML=w.replace(/</g,"\\u003C")}else typeof d=="string"&&(f.innerHTML=d.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));f._d=Te(f)}h.push(f)}}return h},invalidate(){for(const n of s.values())i.add(n._i);a.dirty=!0,t.callHook("entries:updated",a)}};return(e?.plugins||[]).forEach(n=>Ye(a,n)),a.hooks.callHook("init",a),e.init?.forEach(n=>n&&a.push(n)),a}async function Ot(e,t={}){const o=t.document||e.resolvedOptions.document;if(!o||!e.dirty)return;const s={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async r=>{const i=new Map,a=new Promise(d=>{e.resolveTags().then(p=>{d(p.map(g=>{const w=i.get(g._d)||0,y={tag:g,id:(w?`${g._d}:${w}`:g._d)||Xe(g),shouldRender:!0};return g._d&&Ct(g._d)&&i.set(g._d,w+1),y}))})});let n=e._dom;if(!n){n={title:o.title,elMap:new Map().set("htmlAttrs",o.documentElement).set("bodyAttrs",o.body)};for(const d of["body","head"]){const p=o[d]?.children;for(const g of p){const w=g.tagName.toLowerCase();if(!Be.has(w))continue;const y=jt({tag:w,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((m,_)=>(m[_]=g.getAttribute(_),m),{})||{}});if(y.key=g.getAttribute("data-hid")||void 0,y._d=Te(y)||Xe(y),n.elMap.has(y._d)){let m=1,_=y._d;for(;n.elMap.has(_);)_=`${y._d}:${m++}`;n.elMap.set(_,g)}else n.elMap.set(y._d,g)}}}n.pendingSideEffects={...n.sideEffects},n.sideEffects={};function l(d,p,g){const w=`${d}:${p}`;n.sideEffects[w]=g,delete n.pendingSideEffects[w]}function u({id:d,$el:p,tag:g}){const w=g.tag.endsWith("Attrs");n.elMap.set(d,p),w||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(d,"el",()=>{p?.remove(),n.elMap.delete(d)}));for(const y in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,y))continue;const m=g.props[y];if(y.startsWith("on")&&typeof m=="function"){const b=p?.dataset;if(b&&b[`${y}fired`]){const T=y.slice(0,-5);m.call(p,new Event(T.substring(2)))}p.getAttribute(`data-${y}`)!==""&&((g.tag==="bodyAttrs"?o.defaultView:p).addEventListener(y.substring(2),m.bind(p)),p.setAttribute(`data-${y}`,""));continue}const _=`attr:${y}`;if(y==="class"){if(!m)continue;for(const b of m)w&&l(d,`${_}:${b}`,()=>p.classList.remove(b)),!p.classList.contains(b)&&p.classList.add(b)}else if(y==="style"){if(!m)continue;for(const[b,T]of m)l(d,`${_}:${b}`,()=>{p.style.removeProperty(b)}),p.style.setProperty(b,T)}else m!==!1&&m!==null&&(p.getAttribute(y)!==m&&p.setAttribute(y,m===!0?"":String(m)),w&&l(d,_,()=>p.removeAttribute(y)))}}const c=[],h={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await a;for(const d of f){const{tag:p,shouldRender:g,id:w}=d;if(g){if(p.tag==="title"){o.title=p.textContent,l("title","",()=>o.title=n.title);continue}d.$el=d.$el||n.elMap.get(w),d.$el?u(d):Be.has(p.tag)&&c.push(d)}}for(const d of c){const p=d.tag.tagPosition||"head";d.$el=o.createElement(d.tag.tag),u(d),h[p]=h[p]||o.createDocumentFragment(),h[p].appendChild(d.$el)}for(const d of f)await e.hooks.callHook("dom:renderTag",d,o,l);h.head&&o.head.appendChild(h.head),h.bodyOpen&&o.body.insertBefore(h.bodyOpen,o.body.firstChild),h.bodyClose&&o.body.appendChild(h.bodyClose);for(const d in n.pendingSideEffects)n.pendingSideEffects[d]();e._dom=n,await e.hooks.callHook("dom:rendered",{renders:f}),r()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Gr(e={}){const t=e.domOptions?.render||Ot;e.document=e.document||(typeof window<"u"?document:void 0);const o=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Br({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[o?JSON.parse(o):!1,...e.init||[]]})}function Jr(e,t){let o=0;return()=>{const s=++o;t(()=>{o===s&&e()})}}const Kr=(e,t)=>Y(t)?S(t):t,Lt="usehead";function Qr(e){return{install(o){o.config.globalProperties.$unhead=e,o.config.globalProperties.$head=e,o.provide(Lt,e)}}.install}function Xr(){if(ao()){const e=co(Lt);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 $t(e,t={}){const o=t.head||Xr();return o.ssr?o.push(e||{},t):Yr(o,e,t)}function Yr(e,t,o={}){const s=de(!1);let r;return Ae(()=>{const a=s.value?{}:ne(t,Kr);r?r.patch(a):r=e.push(a,o)}),Me()&&(kt(()=>{r.dispose()}),lo(()=>{s.value=!0}),uo(()=>{s.value=!1})),r}function Zr(e={}){const t=Gr({domOptions:{render:Jr(()=>Ot(t),o=>setTimeout(o,0))},...e});return t.install=Qr(t),t}function es(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 ts=/(-?[0-9.]*[0-9]+[0-9.]*)/g,os=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ae(e,t,o){if(t===1)return e;if(o=o||100,typeof e=="number")return Math.ceil(e*t*o)/o;if(typeof e!="string")return e;const s=e.split(ts);if(s===null||!s.length)return e;const r=[];let i=s.shift(),a=os.test(i);for(;;){if(a){const n=parseFloat(i);isNaN(n)?r.push(i):r.push(Math.ceil(n*t*o)/o)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");a=!a}}const rs=Object.freeze({left:0,top:0,width:16,height:16}),ce=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),At=Object.freeze({...rs,...ce}),ss=Object.freeze({...At,body:"",hidden:!1}),is=Object.freeze({width:null,height:null}),Mt=Object.freeze({...is,...ce});function ns(e,t="defs"){let o="";const s=e.indexOf("<"+t);for(;s>=0;){const r=e.indexOf(">",s),i=e.indexOf("</"+t);if(r===-1||i===-1)break;const a=e.indexOf(">",i);if(a===-1)break;o+=e.slice(r+1,i).trim(),e=e.slice(0,s).trim()+e.slice(a+1)}return{defs:o,content:e}}function as(e,t){return e?"<defs>"+e+"</defs>"+t:t}function cs(e,t,o){const s=ns(e);return as(s.defs,t+s.content+o)}const He=e=>e==="unset"||e==="undefined"||e==="none";function ls(e,t){const o={...At,...e},s={...Mt,...t},r={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,s].forEach(g=>{const w=[],y=g.hFlip,m=g.vFlip;let _=g.rotate;y?m?_+=2:(w.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),w.push("scale(-1 1)"),r.top=r.left=0):m&&(w.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),w.push("scale(1 -1)"),r.top=r.left=0);let b;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:b=r.height/2+r.top,w.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:w.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:b=r.width/2+r.left,w.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}_%2===1&&(r.left!==r.top&&(b=r.left,r.left=r.top,r.top=b),r.width!==r.height&&(b=r.width,r.width=r.height,r.height=b)),w.length&&(i=cs(i,'<g transform="'+w.join(" ")+'">',"</g>"))});const a=s.width,n=s.height,l=r.width,u=r.height;let c,h;a===null?(h=n===null?"1em":n==="auto"?u:n,c=ae(h,l/u)):(c=a==="auto"?l:a,h=n===null?ae(c,u/l):n==="auto"?u:n);const f={},d=(g,w)=>{He(w)||(f[g]=w.toString())};d("width",c),d("height",h);const p=[r.left,r.top,l,u];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:i}}const ds=/\swidth\s*=\s*["']([\w.]+)["']/,us=/\sheight\s*=\s*["']([\w.]+)["']/,fe=/<svg\s+/;function ps(e,t,o){const s=e.slice(0,e.indexOf(">")),r=(i,a)=>{const n=a.exec(s),l=n!=null,u=t[i];return!u&&!He(u)&&(typeof o=="number"?o>0&&(t[i]=ae(n?.[1]??"1em",o)):n&&(t[i]=n[1])),l};return[r("width",ds),r("height",us)]}async function xt(e,t,o,s,r,i){const{scale:a,addXmlNs:n=!1}=s??{},{additionalProps:l={},iconCustomizer:u}=s?.customizations??{},c=await r?.()??{};await u?.(t,o,c),Object.keys(l).forEach(g=>{const w=l[g];w!=null&&(c[g]=w)}),i?.(c);const[h,f]=ps(e,c,a);n&&(!e.includes("xmlns=")&&!c.xmlns&&(c.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!c["xmlns:xlink"]&&(c["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const d=Object.keys(c).map(g=>g==="width"&&h||g==="height"&&f?null:`${g}="${c[g]}"`).filter(g=>g!=null);if(d.length&&(e=e.replace(fe,`<svg ${d.join(" ")} `)),s){const{defaultStyle:g,defaultClass:w}=s;w&&!e.includes("class=")&&(e=e.replace(fe,`<svg class="${w}" `)),g&&!e.includes("style=")&&(e=e.replace(fe,`<svg style="${g}" `))}const p=s?.usedProps;return p&&(Object.keys(l).forEach(g=>{const w=c[g];w!=null&&(p[g]=w)}),typeof c.width<"u"&&c.width!==null&&(p.width=c.width),typeof c.height<"u"&&c.height!==null&&(p.height=c.height)),e}async function Ze(e,t,o,s){let r;try{if(typeof e=="function")r=await e(o);else{const i=e[o];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${o}" in "${t}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:a}=s?.customizations??{};return r=typeof a=="function"?await a(r,t,o):r,r.startsWith("<svg")?await xt(s?.customizations?.trimCustomSvg===!0?es(r):r,t,o,s,void 0):(console.warn(`Custom icon "${o}" in "${t}" is not a valid SVG`),r)}}function gs(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(o.rotate=s),o}function et(e,t){const o=gs(e,t);for(const s in ss)s in ce?s in e&&!(s in o)&&(o[s]=ce[s]):s in t?o[s]=t[s]:s in e&&(o[s]=e[s]);return o}function fs(e,t){const o=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function i(a){if(o[a])return r[a]=[];if(!(a in r)){r[a]=null;const n=s[a]&&s[a].parent,l=n&&i(n);l&&(r[a]=[n].concat(l))}return r[a]}return(t||Object.keys(o).concat(Object.keys(s))).forEach(i),r}function tt(e,t,o){const s=e.icons,r=e.aliases||Object.create(null);let i={};function a(n){i=et(s[n]||r[n],i)}return a(t),o.forEach(a),et(e,i)}function hs(e,t){if(e.icons[t])return tt(e,t,[]);const o=fs(e,[t])[t];return o?tt(e,t,o):null}async function Rt(e,t,o,s){let r;const{customize:i}=s?.customizations??{};for(const a of o)if(r=hs(e,a),r){let n={...Mt};typeof i=="function"&&(r=Object.assign({},r),n=i(n,r,`${t}:${a}`)??n);const{attributes:{width:l,height:u,...c},body:h}=ls(r,n),f=s?.scale;return await xt(`<svg >${h}</svg>`,t,a,s,()=>({...c}),d=>{const p=(g,w)=>{const y=d[g];let m;if(!He(y)){if(y)return;typeof f=="number"?f&&(m=ae(w??"1em",f)):m=w}m?d[g]=m:delete d[g]};p("width",l),p("height",u)})}}const Ht=async(e,t,o)=>{const s=o?.customCollections?.[e];if(s)if(typeof s=="function"){let r;try{r=await s(t)}catch(i){console.warn(`Failed to load custom icon "${t}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await Ze(()=>r,e,t,o);if("icons"in r){const i=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Rt(r,e,i,o)}}}else return await Ze(s,e,t,o)};function ws(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ot(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" ')),ws(t)}var rt={};function ms(){const e=typeof process<"u"&&process.stdout;return{isNode:e,isVSCode:e&&!!rt.VSCODE_CWD,isESLint:e&&!!rt.ESLINT}}var zt=["academicons","akar-icons","ant-design","arcticons","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","fa7-brands","fa7-regular","fa7-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","roentgen","si-glyph","si","sidekickicons","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","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];const ys=3;function vs(e){return Oo((t={})=>{const{scale:o=1,mode:s="auto",prefix:r="i-",warn:i=!1,iconifyCollectionsNames:a,collections:n,extraProperties:l={},customizations:u={},autoInstall:c=!1,collectionsNodeResolvePath:h,layer:f="icons",unit:d,processor:p}=t,g=ms(),w={addXmlNs:!0,scale:o,customCollections:n,autoInstall:c,cwd:h,warn:void 0,customizations:{...u,additionalProps:{...l},trimCustomSvg:!0,async iconCustomizer(m,_,b){await u.iconCustomizer?.(m,_,b),d&&(b.width||(b.width=`${o}${d}`),b.height||(b.height=`${o}${d}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:ot,parseIconWithLoader:st},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async m=>{let[_,b,T=s]=m;y=y||await e(t);const A={},O=await st(b,y,{...w,usedProps:A},a);if(!O){i&&!g.isESLint&&Lo(`failed to load icon "${_}"`);return}let k;const v=`url("data:image/svg+xml;utf8,${ot(O.svg)}")`;return T==="auto"&&(T=O.svg.includes("currentColor")?"mask":"bg"),T==="mask"?k={"--un-icon":v,"-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",...A}:k={background:`${v} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...A},p?.(k,{...O,icon:O.name,mode:T}),k},{layer:f,prefix:r}]]}})}function Nt(e,t,o=new Map){function s(r){if(zt.includes(r))return o.has(r)||o.set(r,e(`${t}@iconify-json/${r}/icons.json`)),o.get(r)}return async(r,i,a)=>{let n=await Ht(r,i,a);if(n)return n;const l=await s(r);return l&&(n=await Rt(l,r,[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")],a)),n}}async function st(e,t,o={},s=[]){let r="",i="",a;const n=new Set([...zt,...s,...Object.keys(o.customCollections||{})]);if(e.includes(":")){if([r,i]=e.split(":"),!n.has(r))return;a=await t(r,i,o)}else{const l=e.split(/-/g);for(let u=ys;u>=1&&(r=l.slice(0,u).join("-"),!(!!n.has(r)&&(i=l.slice(u).join("-"),a=await t(r,i,o),a)));u--);}if(a)return{collection:r,name:i,svg:a}}async function bs(e){const{$fetch:t}=await $o(async()=>{const{$fetch:o}=await Promise.resolve().then(()=>Ei);return{$fetch:o}},void 0,import.meta.url);return Nt(t,e)}const _s=vs(async e=>{const t=e?.customFetch,o=e?.cdn;return t&&o?Nt(t,o):o?await bs(o):Ht}),ks=({attributifyOptions:e,iconsOptions:t={cdn:"https://cdn.jsdelivr.net/npm/"},tagifyOptions:o,typographyOptions:s,webFontsOptions:r,wind4Options:i={preflights:{reset:!0}}}={})=>[Ao(e),_s(t),Mo(o),xo(s),Ro(r),Ho(i)];var z={},X={},it;function Ss(){return it||(it=1,(function(e){var t=X&&X.__values||function(s){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&s[r],a=0;if(i)return i.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&a>=s.length&&(s=void 0),{value:s&&s[a++],done:!s}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.getWordsByCategory=e.wordList=void 0,e.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function o(s,r){var i,a;r===void 0&&(r=[]);var n=new Set(r),l=[];try{for(var u=t(e.wordList[s]),c=u.next();!c.done;c=u.next()){var h=c.value;(r.length===0||h.categories.some(function(f){return n.has(f)}))&&l.push(h.word)}}catch(f){i={error:f}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return l}e.getWordsByCategory=o})(X)),X}var nt;function Ts(){if(nt)return z;nt=1;var e=z&&z.__assign||function(){return e=Object.assign||function(n){for(var l,u=1,c=arguments.length;u<c;u++){l=arguments[u];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(n[h]=l[h])}return n},e.apply(this,arguments)};Object.defineProperty(z,"__esModule",{value:!0}),z.totalUniqueSlugs=z.generateSlug=void 0;var t=Ss(),o=3;function s(n,l){for(var u=n||o,c={partsOfSpeech:r(u),categories:{},format:"kebab"},h=e(e({},c),l),f=[],d=0;d<u;d++){var p=h.partsOfSpeech[d],g=t.getWordsByCategory(h.partsOfSpeech[d],h.categories[p]),w=g[Math.floor(Math.random()*g.length)];f.push(w)}return i(f,h.format)}z.generateSlug=s;function r(n){for(var l=[],u=0;u<n-1;u++)l.push("adjective");return l.push("noun"),l}function i(n,l){return l==="kebab"?n.join("-").toLowerCase():l==="camel"?n.map(function(u,c){return c===0?u.toLowerCase():u[0].toUpperCase()+u.slice(1).toLowerCase()}).join(""):l==="lower"?n.join(" ").toLowerCase():l==="sentence"?n.map(function(u,c){return c===0?u[0].toUpperCase()+u.slice(1).toLowerCase():u}).join(" "):n.map(function(u){return u[0].toUpperCase()+u.slice(1).toLowerCase()}).join(" ")}function a(n,l){for(var u,c,h=t.getWordsByCategory("adjective",(u=l?.categories)===null||u===void 0?void 0:u.adjective).length,f=t.getWordsByCategory("noun",(c=l?.categories)===null||c===void 0?void 0:c.noun).length,d={adjective:h,noun:f},p=n||o,g=l?.partsOfSpeech||r(p),w=1,y=0;y<p;y++)w*=d[g[y]];return w}return z.totalUniqueSlugs=a,z}var Pe=Ts();const at=!0,ct=(e,t)=>[...e].reverse().map(o=>({node:o,parent:t,siblings:e})),Ps=(e,{branch:t="branch",children:o="children",id:s="id",index:r="index",next:i="next",parent:a="parent",prev:n="prev",siblings:l="siblings"}={})=>{const u={[t]:{get(){const p=[this];for(;p[0]?.[a];)p.unshift(p[0][a]);return p}},[r]:{get(){return this[l].findIndex(p=>this[s]===p[s])}},[i]:{get(){return this[l][this[r]+1]}},[n]:{get(){return this[l][this[r]-1]}}},c=function*(p){const g=ct(p.value);for(;g.length;){const{node:w,parent:y,siblings:m}=g.pop()??{};w&&(w[a]!==y&&Object.defineProperty(w,a,{configurable:at,value:y}),w[l]!==m&&Object.defineProperty(w,l,{configurable:at,value:m}),Object.keys(u).some(_=>!(_ in w))&&Object.defineProperties(w,u),yield w,g.push(...ct(w[o]??[],w)))}},h=j(()=>[...c(P(e))]),f=j(()=>Object.fromEntries(h.value.map(p=>[p[s],p]))),d=(p,g)=>{const w=f.value[p];if(w){const[y]=h.value,m=w[r],_=w[i],b=m+1,T=w[a],A=w[n],O=m-1,k=w[l];switch(g){case"add":{const v=Pe.generateSlug();return k.splice(b,0,{[s]:v}),v}case"addChild":{const v=Pe.generateSlug();return Array.isArray(w[o])||(w[o]=[]),w[o].unshift({[s]:v}),v}case"down":m<k.length-1&&k[m]&&k[b]&&([k[m],k[b]]=[k[b],k[m]]);break;case"left":if(T?.[a])return T[l].splice(T[r]+1,0,...k.splice(m,1)),T[s];break;case"remove":{const v=_?.[s]??A?.[s]??T?.[s]??y?.[s];return k.splice(m,1),v}case"right":if(A){const v=A[o]??[],M=A[s];return A[o]=[...v,...k.splice(m,1)],M}break;case"up":m&&k[m]&&k[O]&&([k[O],k[m]]=[k[m],k[O]]);break}}};return{add:p=>d(p,"add"),addChild:p=>d(p,"addChild"),down:p=>d(p,"down"),kvNodes:f,left:p=>d(p,"left"),nodes:h,remove:p=>d(p,"remove"),right:p=>d(p,"right"),up:p=>d(p,"up")}};var Es=Fo();const Cs=Pt(Es);var js=Io();const Dt=Pt(js),$={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},lt={silent:{level:-1},fatal:{level:$.fatal},error:{level:$.error},warn:{level:$.warn},log:{level:$.log},info:{level:$.info},success:{level:$.success},fail:{level:$.fail},ready:{level:$.info},start:{level:$.info},box:{level:$.info},debug:{level:$.debug},trace:{level:$.trace},verbose:{level:$.verbose}};function he(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ee(e,t,o=".",s){if(!he(t))return Ee(e,{},o);const r=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(Array.isArray(a)&&Array.isArray(r[i])?r[i]=[...a,...r[i]]:he(a)&&he(r[i])?r[i]=Ee(a,r[i],(o?`${o}.`:"")+i.toString()):r[i]=a)}return r}function Os(e){return(...t)=>t.reduce((o,s)=>Ee(o,s,""),{})}const Ls=Os();function $s(e){return Object.prototype.toString.call(e)==="[object Object]"}function As(e){return!(!$s(e)||!e.message&&!e.args||e.stack)}let we=!1;const dt=[];class E{options;_lastLog;_mockFn;constructor(t={}){const o=t.types||lt;this.options=Ls({...t,defaults:{...t.defaults},level:me(t.level,o),reporters:[...t.reporters||[]]},{types:lt,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const s in o){const r={type:s,...this.options.defaults,...o[s]};this[s]=this._wrapLogFn(r),this[s].raw=this._wrapLogFn(r,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=me(t,this.options.types,this.options.level)}prompt(t,o){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,o)}create(t){const o=new E({...this.options,...t});return this._mockFn&&o.mockTypes(this._mockFn),o}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const o=this.options.reporters.indexOf(t);if(o!==-1)return this.options.reporters.splice(o,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,o){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[o].raw(String(s).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){we=!0}resumeLogs(){we=!1;const t=dt.splice(0);for(const o of t)o[0]._logFn(o[1],o[2])}mockTypes(t){const o=t||this.options.mockFn;if(this._mockFn=o,typeof o=="function")for(const s in this.options.types)this[s]=o(s,this.options.types[s])||this[s],this[s].raw=this[s]}_wrapLogFn(t,o){return(...s)=>{if(we){dt.push([this,t,s,o]);return}return this._logFn(t,s,o)}}_logFn(t,o,s){if((t.level||0)>this.level)return!1;const r={date:new Date,args:[],...t,level:me(t.level,this.options.types)};!s&&o.length===1&&As(o[0])?Object.assign(r,o[0]):r.args=[...o],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split(`
|
|
2
|
+
`)),r.args.push(`
|
|
3
|
+
`+r.additional.join(`
|
|
4
|
+
`)),delete r.additional),r.type=typeof r.type=="string"?r.type.toLowerCase():"log",r.tag=typeof r.tag=="string"?r.tag:"";const i=(n=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const u=[...this._lastLog.object.args];l>1&&u.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:u}),this._lastLog.count=1}n&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const a=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,a<this.options.throttle)try{const n=JSON.stringify([r.type,r.tag,r.args]),l=this._lastLog.serialized===n;if(this._lastLog.serialized=n,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(i,this.options.throttle);return}}catch{}i(!0)}_log(t){for(const o of this.options.reporters)o.log(t,{options:this.options})}}function me(e,t={},o=3){return e===void 0?o:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:o}E.prototype.add=E.prototype.addReporter;E.prototype.remove=E.prototype.removeReporter;E.prototype.clear=E.prototype.removeReporter;E.prototype.withScope=E.prototype.withTag;E.prototype.mock=E.prototype.mockTypes;E.prototype.pause=E.prototype.pauseLogs;E.prototype.resume=E.prototype.resumeLogs;function Ms(e={}){return new E(e)}class xs{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const o=this._getLogFn(t.level),s=t.type==="log"?"":t.type,r=t.tag||"",a=`
|
|
5
|
+
background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};
|
|
6
|
+
border-radius: 0.5em;
|
|
7
|
+
color: white;
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
padding: 2px 0.5em;
|
|
10
|
+
`,n=`%c${[r,s].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?o(`${n}%c ${t.args[0]}`,a,"",...t.args.slice(1)):o(n,a,...t.args)}}function Rs(e={}){return Ms({reporters:e.reporters||[new xs({})],prompt(o,s={}){return s.type==="confirm"?Promise.resolve(confirm(o)):Promise.resolve(prompt(o))},...e})}const ze=Rs(),Hs=/"(?:_|\\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*:/,zs=/"(?: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*:/,Ns=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Ds(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Fs(e);return}return t}function Fs(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Is(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const o=e.trim();if(o.length<=9)switch(o.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(!Ns.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Hs.test(e)||zs.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Ds)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const qs=/#/g,Ws=/&/g,Us=/\//g,Vs=/=/g,Ne=/\+/g,Bs=/%5e/gi,Gs=/%60/gi,Js=/%7c/gi,Ks=/%20/gi;function Qs(e){return encodeURI(""+e).replace(Js,"|")}function Ce(e){return Qs(typeof e=="string"?e:JSON.stringify(e)).replace(Ne,"%2B").replace(Ks,"+").replace(qs,"%23").replace(Ws,"%26").replace(Gs,"`").replace(Bs,"^").replace(Us,"%2F")}function ye(e){return Ce(e).replace(Vs,"%3D")}function Ft(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Xs(e){return Ft(e.replace(Ne," "))}function Ys(e){return Ft(e.replace(Ne," "))}function Zs(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const o of e.split("&")){const s=o.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const r=Xs(s[1]);if(r==="__proto__"||r==="constructor")continue;const i=Ys(s[2]||"");t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function ei(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(o=>`${ye(e)}=${Ce(o)}`).join("&"):`${ye(e)}=${Ce(t)}`:ye(e)}function ti(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>ei(t,e[t])).filter(Boolean).join("&")}const oi=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,ri=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,si=/^([/\\]\s*){2,}[^/\\]/,ii=/^\.?\//;function It(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?oi.test(e):ri.test(e)||(t.acceptRelative?si.test(e):!1)}function ni(e="",t){return e.endsWith("/")}function ai(e="",t){return(ni(e)?e.slice(0,-1):e)||"/"}function ci(e="",t){return e.endsWith("/")?e:e+"/"}function li(e,t){if(ui(t)||It(e))return e;const o=ai(t);return e.startsWith(o)?e:gi(o,e)}function di(e,t){const o=fi(e),s={...Zs(o.search),...t};return o.search=ti(s),hi(o)}function ui(e){return!e||e==="/"}function pi(e){return e&&e!=="/"}function gi(e,...t){let o=e||"";for(const s of t.filter(r=>pi(r)))if(o){const r=s.replace(ii,"");o=ci(o)+r}else o=s;return o}const qt=Symbol.for("ufo:protocolRelative");function fi(e="",t){const o=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(o){const[,h,f=""]=o;return{protocol:h.toLowerCase(),pathname:f,href:h+f,auth:"",host:"",search:"",hash:""}}if(!It(e,{acceptRelative:!0}))return ut(e);const[,s="",r,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,a="",n=""]=i.match(/([^#/?]*)(.*)?/)||[];s==="file:"&&(n=n.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=ut(n);return{protocol:s.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:a,pathname:l,search:u,hash:c,[qt]:!s}}function ut(e=""){const[t="",o="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:o,hash:s}}function hi(e){const t=e.pathname||"",o=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",r=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[qt]?(e.protocol||"")+"//":"")+r+i+t+o+s}class Wt extends Error{constructor(t,o){super(t,o),this.name="FetchError",o?.cause&&!this.cause&&(this.cause=o.cause)}}function Ut(e){const t=e.error?.message||e.error?.toString()||"",o=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",r=`[${o}] ${JSON.stringify(s)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",a=`${r}: ${i}${t?` ${t}`:""}`,n=new Wt(a,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(n,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(n,l,{get(){return e.response&&e.response[u]}});return n}const wi=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function pt(e="GET"){return wi.has(e.toUpperCase())}function mi(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||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const yi=new Set(["image/svg","application/xml","application/xhtml","application/html"]),vi=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function bi(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return vi.test(t)?"json":t==="text/event-stream"?"stream":yi.has(t)||t.startsWith("text/")?"text":"blob"}function _i(e,t,o,s){const r=ki(t?.headers??e?.headers,o?.headers,s);let i;return(o?.query||o?.params||t?.params||t?.query)&&(i={...o?.params,...o?.query,...t?.params,...t?.query}),{...o,...t,query:i,params:i,headers:r}}function ki(e,t,o){if(!t)return new o(e);const s=new o(t);if(e)for(const[r,i]of Symbol.iterator in e||Array.isArray(e)?e:new o(e))s.set(r,i);return s}async function se(e,t){if(t)if(Array.isArray(t))for(const o of t)await o(e);else await t(e)}const Si=new Set([408,409,425,429,500,502,503,504]),Ti=new Set([101,204,205,304]);function De(e={}){const{fetch:t=globalThis.fetch,Headers:o=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function r(n){const l=n.error&&n.error.name==="AbortError"&&!n.options.timeout||!1;if(n.options.retry!==!1&&!l){let c;typeof n.options.retry=="number"?c=n.options.retry:c=pt(n.options.method)?0:1;const h=n.response&&n.response.status||500;if(c>0&&(Array.isArray(n.options.retryStatusCodes)?n.options.retryStatusCodes.includes(h):Si.has(h))){const f=typeof n.options.retryDelay=="function"?n.options.retryDelay(n):n.options.retryDelay||0;return f>0&&await new Promise(d=>setTimeout(d,f)),i(n.request,{...n.options,retry:c-1})}}const u=Ut(n);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const c={request:l,options:_i(l,u,e.defaults,o),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await se(c,c.options.onRequest),c.options.headers instanceof o||(c.options.headers=new o(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=li(c.request,c.options.baseURL)),c.options.query&&(c.request=di(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&pt(c.options.method))if(mi(c.options.body)){const d=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=d==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),d||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let h;if(!c.options.signal&&c.options.timeout){const d=new s;h=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,d.abort(p)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await se(c,c.options.onRequestError),await r(c)}finally{h&&clearTimeout(h)}if((c.response.body||c.response._bodyInit)&&!Ti.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||bi(c.response.headers.get("content-type")||"");switch(d){case"json":{const p=await c.response.text(),g=c.options.parseResponse||Is;c.response._data=g(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[d]()}}return c.options.onResponse&&await se(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await se(c,c.options.onResponseError),await r(c)):c.response},a=async function(l,u){return(await i(l,u))._data};return a.raw=i,a.native=(...n)=>t(...n),a.create=(n={},l={})=>De({...e,...l,defaults:{...e.defaults,...l.defaults,...n}}),a}const le=(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")})(),Vt=le.fetch?(...e)=>le.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Bt=le.Headers,Gt=le.AbortController,Fe=De({fetch:Vt,Headers:Bt,AbortController:Gt}),Pi=Fe,Ei=Object.freeze(Object.defineProperty({__proto__:null,$fetch:Pi,AbortController:Gt,FetchError:Wt,Headers:Bt,createFetch:De,createFetchError:Ut,fetch:Vt,ofetch:Fe},Symbol.toStringTag,{value:"Module"})),Ci={$id:"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"},ji={$id:"log",additionalProperties:!1,properties:{messages:{default:[],items:{additionalProperties:!1,properties:{content:{default:[],items:{additionalProperties:!1,properties:{text:{default:"",type:"string"},type:{default:"text",type:"string"}},type:"object"},type:"array"},role:{default:"user",enum:["user","assistant","system"],type:"string"}},type:"object"},type:"array"},system:{default:"",type:"string"}},type:"object"},Oi={$id:"nodes",items:{$ref:"page"},type:"array"},Li={$id:"page",additionalProperties:!1,dynamicDefaults:{id:"uuid"},properties:{children:{default:[],items:{type:"object"},type:"array"},frontmatter:{default:{},type:"object"},id:{type:"string"},name:{default:null,nullable:!0,type:"string"}},type:"object"};Dt.DEFAULTS.uuid=()=>Pe.generateSlug;const Jt=[Ci,Oi,Li,ji],$i=new Cs({code:{esm:!0},coerceTypes:!0,keywords:[Dt()],removeAdditional:!0,schemas:Jt,useDefaults:!0}),je=ue(V({credentials:{},log:{}})),Kt=!0,gt="nodes",ft={$children:{get(){return this.children.filter(({frontmatter:{hidden:e}})=>!e)}},$index:{get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},$next:{get(){return this.$siblings[this.$index+1]}},$prev:{get(){return this.$siblings[this.$index-1]}},$siblings:{get(){return this.siblings.filter(({frontmatter:{hidden:e}})=>!e)}},path:{get(){const e=this.branch.slice(1);return e.some(({name:t})=>!t)?void 0:e.map(({name:t})=>t).join("/").replace(/ /g,"_")}},to:{get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}}},Oe=de([]),Le=Object.fromEntries(Jt.map(({$id:e})=>[e,$i.getSchema(e)])),Qt=async e=>{try{return await Fe(e)}catch(t){ze.error(t)}},I=V({...je,tree:Oe,...Ps(Oe)});Object.keys(je).forEach(e=>{Le[e]&&H(je[e],Le[e],{immediate:Kt})});H(P(I,gt),async e=>{await Le[gt]?.(e)?e.forEach(t=>{Object.keys(ft).some(o=>!(o in t))&&Object.defineProperties(t,ft)}):Oe.value=[{}]},{immediate:Kt});function Ie(e,t){return go()?(fo(e,t),!0):!1}const Xt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Yt=e=>e!=null,Ai=Object.prototype.toString,Mi=e=>Ai.call(e)==="[object Object]",R=()=>{},ht=xi();function xi(){var e,t,o;return Xt&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((o=window)===null||o===void 0?void 0:o.navigator.userAgent))}function Ri(...e){if(e.length!==1)return P(...e);const t=e[0];return typeof t=="function"?ho(wo(()=>({get:t,set:R}))):de(t)}function Zt(e,t){function o(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return o}function Hi(e,t={}){let o,s,r=R;const i=l=>{clearTimeout(l),r(),r=R};let a;return l=>{const u=S(e),c=S(t.maxWait);return o&&i(o),u<=0||c!==void 0&&c<=0?(s&&(i(s),s=void 0),Promise.resolve(l())):new Promise((h,f)=>{r=t.rejectOnCancel?f:h,a=l,c&&!s&&(s=setTimeout(()=>{o&&i(o),s=void 0,h(a())},c)),o=setTimeout(()=>{s&&i(s),s=void 0,h(l())},u)})}}function zi(...e){let t=0,o,s=!0,r=R,i,a,n,l,u;!Y(e[0])&&typeof e[0]=="object"?{delay:a,trailing:n=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[a,n=!0,l=!0,u=!1]=e;const c=()=>{o&&(clearTimeout(o),o=void 0,r(),r=R)};return f=>{const d=S(a),p=Date.now()-t,g=()=>i=f();return c(),d<=0?(t=Date.now(),g()):(p>d?(t=Date.now(),(l||!s)&&g()):n&&(i=new Promise((w,y)=>{r=u?y:w,o=setTimeout(()=>{t=Date.now(),s=!0,w(g()),c()},Math.max(0,d-p))})),!l&&!o&&(o=setTimeout(()=>s=!0,d)),s=!1,i)}}function Z(e){return Array.isArray(e)?e:[e]}function Ni(e){return Me()}function Di(e){return Y(e)?V(new Proxy({},{get(t,o,s){return U(Reflect.get(e.value,o,s))},set(t,o,s){return Y(e.value[o])&&!Y(s)?e.value[o].value=s:e.value[o]=s,!0},deleteProperty(t,o){return Reflect.deleteProperty(e.value,o)},has(t,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):V(e)}function Fi(e,t=200,o={}){return Zt(Hi(t,o),e)}function Ii(e,t=200,o=!1,s=!0,r=!1){return Zt(zi(t,o,s,r),e)}function qi(e,t=!0,o){Ni()?St(e,o):t?e():po(e)}function Wi(e,t,o){return H(e,t,{...o,immediate:!0})}function Ui(e,t,o){return H(e,t,{...o,once:!0})}const oe=Xt?window:void 0;function J(e){var t;const o=S(e);return(t=o?.$el)!==null&&t!==void 0?t:o}function $e(...e){const t=(s,r,i,a)=>(s.addEventListener(r,i,a),()=>s.removeEventListener(r,i,a)),o=j(()=>{const s=Z(S(e[0])).filter(r=>r!=null);return s.every(r=>typeof r!="string")?s:void 0});return Wi(()=>{var s,r;return[(s=(r=o.value)===null||r===void 0?void 0:r.map(i=>J(i)))!==null&&s!==void 0?s:[oe].filter(i=>i!=null),Z(S(o.value?e[1]:e[0])),Z(U(o.value?e[2]:e[1])),S(o.value?e[3]:e[2])]},([s,r,i,a],n,l)=>{if(!s?.length||!r?.length||!i?.length)return;const u=Mi(a)?{...a}:a,c=s.flatMap(h=>r.flatMap(f=>i.map(d=>t(h,f,d,u))));l(()=>{c.forEach(h=>h())})},{flush:"post"})}function Vi(){const e=F(!1),t=Me();return t&&St(()=>{e.value=!0},t),e}function eo(e){const t=Vi();return j(()=>(t.value,!!e()))}function Bi(e,t,o={}){const{window:s=oe,...r}=o;let i;const a=eo(()=>s&&"MutationObserver"in s),n=()=>{i&&(i.disconnect(),i=void 0)},l=H(j(()=>{const h=Z(S(e)).map(J).filter(Yt);return new Set(h)}),h=>{n(),a.value&&h.size&&(i=new MutationObserver(t),h.forEach(f=>i.observe(f,r)))},{immediate:!0,flush:"post"}),u=()=>i?.takeRecords(),c=()=>{l(),n()};return Ie(c),{isSupported:a,stop:c,takeRecords:u}}function Gi(e,t,o={}){const{root:s,rootMargin:r="0px",threshold:i=0,window:a=oe,immediate:n=!0}=o,l=eo(()=>a&&"IntersectionObserver"in a),u=j(()=>Z(S(e)).map(J).filter(Yt));let c=R;const h=F(n),f=l.value?H(()=>[u.value,J(s),h.value],([p,g])=>{if(c(),!h.value||!p.length)return;const w=new IntersectionObserver(t,{root:J(g),rootMargin:r,threshold:i});p.forEach(y=>y&&w.observe(y)),c=()=>{w.disconnect(),c=R}},{immediate:n,flush:"post"}):R,d=()=>{c(),f(),h.value=!1};return Ie(d),{isSupported:l,isActive:h,pause(){c(),h.value=!1},resume(){h.value=!0},stop:d}}function wt(e,t={}){const{window:o=oe,scrollTarget:s,threshold:r=0,rootMargin:i,once:a=!1,initialValue:n=!1}=t,l=F(n),{stop:u}=Gi(e,c=>{let h=l.value,f=0;for(const d of c)d.time>=f&&(f=d.time,h=d.isIntersecting);l.value=h,a&&Ui(l,()=>{u()})},{root:s,window:o,threshold:r,rootMargin:S(i)});return l}function ve(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const mt=1;function Ji(e,t={}){const{throttle:o=0,idle:s=200,onStop:r=R,onScroll:i=R,offset:a={left:0,right:0,top:0,bottom:0},observe:n={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:c=oe,onError:h=v=>{console.error(v)}}=t,f=typeof n=="boolean"?{mutation:n}:n,d=F(0),p=F(0),g=j({get(){return d.value},set(v){y(v,void 0)}}),w=j({get(){return p.value},set(v){y(void 0,v)}});function y(v,M){var x,B,G,K;if(!c)return;const L=S(e);if(!L)return;(x=L instanceof Document?c.document.body:L)===null||x===void 0||x.scrollTo({top:(B=S(M))!==null&&B!==void 0?B:w.value,left:(G=S(v))!==null&&G!==void 0?G:g.value,behavior:S(u)});const D=(L==null||(K=L.document)===null||K===void 0?void 0:K.documentElement)||L?.documentElement||L;g!=null&&(d.value=D.scrollLeft),w!=null&&(p.value=D.scrollTop)}const m=F(!1),_=V({left:!0,right:!1,top:!0,bottom:!1}),b=V({left:!1,right:!1,top:!1,bottom:!1}),T=v=>{m.value&&(m.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,r(v))},A=Fi(T,o+s),O=v=>{var M;if(!c)return;const x=(v==null||(M=v.document)===null||M===void 0?void 0:M.documentElement)||v?.documentElement||J(v),{display:B,flexDirection:G,direction:K}=c.getComputedStyle(x),L=K==="rtl"?-1:1,D=x.scrollLeft;b.left=D<d.value,b.right=D>d.value;const qe=Math.abs(D*L)<=(a.left||0),We=Math.abs(D*L)+x.clientWidth>=x.scrollWidth-(a.right||0)-mt;B==="flex"&&G==="row-reverse"?(_.left=We,_.right=qe):(_.left=qe,_.right=We),d.value=D;let q=x.scrollTop;v===c.document&&!q&&(q=c.document.body.scrollTop),b.top=q<p.value,b.bottom=q>p.value;const Ue=Math.abs(q)<=(a.top||0),Ve=Math.abs(q)+x.clientHeight>=x.scrollHeight-(a.bottom||0)-mt;B==="flex"&&G==="column-reverse"?(_.top=Ve,_.bottom=Ue):(_.top=Ue,_.bottom=Ve),p.value=q},k=v=>{var M;c&&(O((M=v.target.documentElement)!==null&&M!==void 0?M:v.target),m.value=!0,A(v),i(v))};return $e(e,"scroll",o?Ii(k,o,!0,!1):k,l),qi(()=>{try{const v=S(e);if(!v)return;O(v)}catch(v){h(v)}}),f?.mutation&&e!=null&&e!==c&&e!==document&&Bi(e,()=>{const v=S(e);v&&O(v)},{attributes:!0,childList:!0,subtree:!0}),$e(e,"scrollend",T,l),{x:g,y:w,isScrolling:m,arrivedState:_,directions:b,measure(){const v=S(e);c&&v&&O(v)}}}function to(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const o=e.parentNode;return!o||o.tagName==="BODY"?!1:to(o)}}function Ki(e){const t=e||window.event,o=t.target;return to(o)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const be=new WeakMap;function Qi(e,t=!1){const o=F(t);let s=null,r="";H(Ri(e),n=>{const l=ve(S(n));if(l){const u=l;if(be.get(u)||be.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(r=u.style.overflow),u.style.overflow==="hidden")return o.value=!0;if(o.value)return u.style.overflow="hidden"}},{immediate:!0});const i=()=>{const n=ve(S(e));!n||o.value||(ht&&(s=$e(n,"touchmove",l=>{Ki(l)},{passive:!1})),n.style.overflow="hidden",o.value=!0)},a=()=>{const n=ve(S(e));!n||!o.value||(ht&&s?.(),n.style.overflow=r,be.delete(n),o.value=!1)};return Ie(a),j({get(){return o.value},set(n){n?i():a()}})}const Xi=te({__name:"App",setup(e){const t=P(I,"kvNodes"),o=P(I,"nodes"),s=qo(),r=j(()=>t.value[s.name]?.frontmatter);return $t(r,{mode:"client"}),(i,a)=>{const n=mo("router-view");return N(),ee(n,null,{default:xe(({Component:l})=>[(N(),ee(Re(l),{id:o.value[0]?.id},null,8,["id"]))]),_:1})}}});let _e=!1;const oo=ue(I),Yi=P(oo,"kvNodes"),yt=P(oo,"nodes"),Zi=Vo({html:!0,linkify:!0,typographer:!0}).use(Bo,{transform(e){switch(e.type){case"link_close":_e&&(e.tag="RouterLink",_e=!1);break;case"link_open":{const t=e.attrGet("href")??"/";URL.canParse(t)||(e.tag="RouterLink",e.attrSet("to",t),e.attrs?.splice(e.attrIndex("href"),1),_e=!0);break}}}}).use(Go).use(Jo).use(Ko).use(Qo).use(Xo).use(Yo).use(Zo).use(er).use(tr).use(or).use(rr).use(sr).use(ir).use(nr).use(ar).use(cr).use(lr).use(dr).use(ur).use(pr).use(gr).use(fr).use(hr).use(wr),{transform:en}=zo(),ro=()=>{let e,t;return{promise:new Promise((s,r)=>{e=s,t=r}),reject:t,resolve:e}},C=V({$these:j(()=>C.these.filter(({frontmatter:{hidden:e}})=>!e)),intersecting:new Map,module:e=>yo(async()=>{const t={},{uno:o}=C;Zi.render(await Qt(`./docs/${e}.md`)??"",t);const s=t.sfcBlocks?.styles.map(({contentStripped:r,tagClose:i,tagOpen:a})=>({contentStripped:new No(r),tagClose:i,tagOpen:a}))??[];return await Promise.all(s.map(async({contentStripped:r})=>await en(r,e,{uno:o}))),mr(`${t.sfcBlocks?.template?.content??""}
|
|
11
|
+
${t.sfcBlocks?.script?.content??""}
|
|
12
|
+
${t.sfcBlocks?.scriptSetup?.content??""}
|
|
13
|
+
${s.map(({contentStripped:r,tagClose:i,tagOpen:a})=>`${a}${r.toString()}${i}}`).join(`
|
|
14
|
+
`)}
|
|
15
|
+
`,{scriptOptions:{inlineTemplate:!0}})}),promises:new Map,root:ro(),routeName:void 0,scrollLock:!1,that:j(()=>C.routeName===yt.value[0]?.id?yt.value[0]?.$children[0]:Yi.value[C.routeName]),these:j(()=>C.that===void 0||C.that.parent?.frontmatter.merge?C.that?.siblings??[]:[C.that]),uno:{}});function vt(e,t){const o=e.type,s=o==="html"?"htmlAttrs":o==="body"?"bodyAttrs":o;if(typeof s!="string"||!(s in t))return;const r=e.props||{};if(e.children){const i="children";r.children=Array.isArray(e.children)?e.children[0][i]:e[i]}Array.isArray(t[s])?t[s].push(r):s==="title"?t.title=r.children:t[s]=r}function tn(e){const t={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const o of e)if(typeof o.type=="symbol"&&Array.isArray(o.children))for(const s of o.children)vt(s,t);else vt(o,t);return t}const on=te({name:"Head",setup(e,{slots:t}){const o=de({}),s=$t(o);return kt(()=>{s.dispose()}),()=>(Ae(()=>{t.default&&s.patch(tn(t.default()))}),null)}}),rn=te({__name:"NotFoundView",setup(e){return(t,o)=>(N(),ie(Tt,null,[vo(U(on),null,{default:xe(()=>[...o[0]||(o[0]=[W("title",null,"Page Not Found",-1)])]),_:1}),o[1]||(o[1]=W("div",{class:"absolute inset-0 grid place-items-center"},[W("div",{class:"text-center"},[W("div",{class:"text-9xl"},"404"),W("p",null,"Oops. Nothing here...")])],-1))],64))}}),sn={mounted(e,t){if(typeof t.value=="function"){const o=t.value;H(wt(e),s=>o(s),{immediate:!0})}else{const[o,s]=t.value;H(wt(e,s),r=>o(r),{immediate:!0})}}};function nn(){let e=!1;const t=F(!1);return(o,s)=>{if(t.value=s.value,e)return;e=!0;const r=Qi(o,s.value);H(t,i=>r.value=i)}}nn();const an=["id"],cn=te({__name:"PageView",setup(e){const t=P(C,"$these"),o=P(I,"kvNodes"),{intersecting:s,module:r,promises:i}=C,a=()=>{[s,i].forEach(l=>{l.clear()})},n=j(()=>new Map(t.value.map(({id:l})=>[l,r(l)])));return Ae(()=>{a(),t.value.forEach(({id:l})=>{s.set(l,!1),i.set(l,ro())})}),bo(()=>{a()}),(l,u)=>(N(!0),ie(Tt,null,_o(n.value,([c,h])=>ko((N(),ie("div",{id:c,key:c,"un-cloak":""},[W("div",So({ref_for:!0},o.value[c]?.frontmatter.attrs??{}),[(N(),ee(Re(h),{id:c,onVnodeMounted:f=>U(i).get(c)?.resolve(void 0)},null,8,["id","onVnodeMounted"]))],16)],8,an)),[[U(sn),[f=>{U(s).set(c,f)},{threshold:.1}]]])),128))}}),ln=["id"],dn=te({__name:"RootView",setup(e){const t=P(I,"nodes"),{module:o,root:s}=C,r=j(()=>t.value[0]&&o(t.value[0].id));return(i,a)=>(N(),ee(To,null,{default:xe(()=>[t.value[0]?.frontmatter.hidden?Po("",!0):(N(),ie("div",{key:0,id:t.value[0]?.id,"un-cloak":""},[W("div",Eo(Co(t.value[0]?.frontmatter.attrs??{})),[(N(),ee(Re(r.value),{id:t.value[0]?.id,onVnodeMounted:a[0]||(a[0]=n=>U(s).resolve(void 0))},null,8,["id"]))],16)],8,ln))]),_:1}))}});let bt=P(C,"routeName");const so=ue(C),un=P(so,"$these"),pn=P(so,"that"),io=ue(I),gn=P(io,"kvNodes"),_t=P(io,"nodes"),no=jo(Xi),fn=await Qt("index.json")??[],{intersecting:hn,promises:wn,root:mn}=C,{pathname:yn}=new URL(document.baseURI);ze.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","2.1.2");I.tree=fn;await Do({defaults:{presets:ks()},ready:({extractAll:e,toggleObserver:t,uno:o})=>{C.uno=o;let s=!1;const r=Wo({history:Uo(yn),routes:[..._t.value.filter(({path:l})=>l!==void 0).map(({id:l,to:u="/"})=>({children:[{component:cn,name:l,path:""}],component:dn,path:u})),{component:rn,name:"404",path:"/:pathMatch(.*)*"}],scrollBehavior:async({hash:l,name:u})=>{if(u)if(bt.value=u,s)s=!1;else{const{index:c,parent:{frontmatter:{merge:h}={}}={}}=pn.value??{};return t(!0),await mn.promise,await Promise.all([...wn.values()].map(({promise:f})=>f)),await e(),t(!1),"requestIdleCallback"in window?await new Promise(f=>requestIdleCallback(f)):(await new Promise(f=>requestAnimationFrame(f)),await new Promise(f=>setTimeout(f))),{behavior:"smooth",...l||h&&c?{el:l||`#${String(u)}`}:{left:0,top:0}}}return!1}}),i=Ji(window,{onStop:()=>{const[l]=un.value,[u]=_t.value;if(u&&l){const{$children:[{id:c}={}]}=u,h=!Math.floor(a.value)&&!Math.floor(n.value)&&l.id===c?u.id:[...hn.entries()].find(([,f])=>f)?.[0]??l.id;h!==bt.value&&(s=!0,r.push({name:h}).catch(ze.error))}}}),a=P(i,"x"),n=P(i,"y");return r.beforeEach(({path:l})=>l!==decodeURI(l)?decodeURI(l):void 0),no.use(r),!1},rootElement:()=>document.getElementById("app")??void 0});no.use(Zr({plugins:[Ar,Or,Mr({}),xr()]})).provide("pages",Di(gn.value)).mount("#app");export{Ei as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as getAugmentedNamespace,b as bufferExports,a as getDefaultExportFromCjs}from"./ajv-6LTVMkJm.js";import{r as renderToString,P as ParseError}from"./katex-UTpUfKgT.js";
|
|
1
|
+
import{g as getAugmentedNamespace,b as bufferExports,a as getDefaultExportFromCjs}from"./ajv-6LTVMkJm.js";import{r as renderToString,P as ParseError}from"./katex-UTpUfKgT.js";const attr_name$1="[a-zA-Z_:@][a-zA-Z0-9:._-]*",attribute$1="(?:\\s+"+attr_name$1+`(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)`,open_tag$1="<[A-Za-z][A-Za-z0-9\\-]*"+attribute$1+"*\\s*\\/?>",HTML_TAG_RE$1=new RegExp("^(?:"+open_tag$1+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),HTML_OPEN_CLOSE_TAG_RE$1=new RegExp("^(?:"+open_tag$1+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),HTML_SELF_CLOSING_TAG_RE=new RegExp("^<[A-Za-z][A-Za-z0-9\\-]*"+attribute$1+"*\\s*\\/>"),HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE=new RegExp("^<([A-Za-z][A-Za-z0-9\\-]*)"+attribute$1+"*\\s*>.*<\\/\\1\\s*>"),TAGS_BLOCK=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TAGS_INLINE=["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],TAGS_VUE_RESERVED=["template","component","transition","transition-group","keep-alive","slot","teleport"],createHtmlSequences=({blockTags:e,inlineTags:t})=>{const n=[...e,...TAGS_BLOCK],r=[...t,...TAGS_INLINE.filter(c=>!TAGS_VUE_RESERVED.includes(c))];return[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+n.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp("^</?(?!("+r.join("|")+")(?![\\w-]))[A-Za-z][A-Za-z0-9\\-]*(?=(\\s|/?>|$))"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE$1.source+"\\s*$"),/^$/,!1]]},createHtmlBlockRule=e=>{const t=createHtmlSequences(e);return(n,r,o,c)=>{let h,F,Y,V=n.bMarks[r]+n.tShift[r],X=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||!n.md.options.html||n.src.charCodeAt(V)!==60)return!1;for(Y=n.src.slice(V,X),h=0;h<t.length&&!t[h][0].test(Y);h++);if(h===t.length)return!1;if(c)return t[h][2];if(h===6){const te=Y.match(HTML_SELF_CLOSING_TAG_RE)??Y.match(HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE);if(te){n.line=r+1;let ne=n.push("html_inline","",0);return ne.content=te[0],ne.map=[r,n.line],ne=n.push("inline","",0),ne.content=Y.slice(te[0].length),ne.map=[r,n.line],ne.children=[],!0}}if(F=r+1,!t[h][1].test(Y)){for(;F<o&&!(n.sCount[F]<n.blkIndent);F++)if(V=n.bMarks[F]+n.tShift[F],X=n.eMarks[F],Y=n.src.slice(V,X),t[h][1].test(Y)){Y.length!==0&&F++;break}}n.line=F;const ee=n.push("html_block","",0);return ee.map=[r,F],ee.content=n.getLines(r,F,n.blkIndent,!0),!0}},isLetter$1=e=>{const t=e|32;return t>=97&&t<=122},htmlInlineRule=(e,t)=>{const{pos:n}=e;if(!e.md.options.html)return!1;const r=e.posMax;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const o=e.src.charCodeAt(n+1);if(o!==33&&o!==63&&o!==47&&!isLetter$1(o))return!1;const c=e.src.slice(n).match(HTML_TAG_RE$1);if(!c)return!1;if(!t){const h=e.push("html_inline","",0);h.content=e.src.slice(n,n+c[0].length)}return e.pos+=c[0].length,!0},componentPlugin=(e,{blockTags:t=[],inlineTags:n=[]}={})=>{const r=createHtmlBlockRule({blockTags:t,inlineTags:n});e.block.ruler.at("html_block",r,{alt:["paragraph","reference","blockquote"]}),e.inline.ruler.at("html_inline",htmlInlineRule)},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var kindOf,hasRequiredKindOf;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var e=Object.prototype.toString;kindOf=function(ee){if(ee===void 0)return"undefined";if(ee===null)return"null";var te=typeof ee;if(te==="boolean")return"boolean";if(te==="string")return"string";if(te==="number")return"number";if(te==="symbol")return"symbol";if(te==="function")return h(ee)?"generatorfunction":"function";if(n(ee))return"array";if(V(ee))return"buffer";if(Y(ee))return"arguments";if(o(ee))return"date";if(r(ee))return"error";if(c(ee))return"regexp";switch(t(ee)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(F(ee))return"generator";switch(te=e.call(ee),te){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return te.slice(8,-1).toLowerCase().replace(/\s/g,"")};function t(X){return typeof X.constructor=="function"?X.constructor.name:null}function n(X){return Array.isArray?Array.isArray(X):X instanceof Array}function r(X){return X instanceof Error||typeof X.message=="string"&&X.constructor&&typeof X.constructor.stackTraceLimit=="number"}function o(X){return X instanceof Date?!0:typeof X.toDateString=="function"&&typeof X.getDate=="function"&&typeof X.setDate=="function"}function c(X){return X instanceof RegExp?!0:typeof X.flags=="string"&&typeof X.ignoreCase=="boolean"&&typeof X.multiline=="boolean"&&typeof X.global=="boolean"}function h(X,ee){return t(X)==="GeneratorFunction"}function F(X){return typeof X.throw=="function"&&typeof X.return=="function"&&typeof X.next=="function"}function Y(X){try{if(typeof X.length=="number"&&typeof X.callee=="function")return!0}catch(ee){if(ee.message.indexOf("callee")!==-1)return!0}return!1}function V(X){return X.constructor&&typeof X.constructor.isBuffer=="function"?X.constructor.isBuffer(X):!1}return kindOf}var isExtendable,hasRequiredIsExtendable;function requireIsExtendable(){return hasRequiredIsExtendable||(hasRequiredIsExtendable=1,isExtendable=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")}),isExtendable}var extendShallow,hasRequiredExtendShallow;function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var e=requireIsExtendable();extendShallow=function(o){e(o)||(o={});for(var c=arguments.length,h=1;h<c;h++){var F=arguments[h];e(F)&&t(o,F)}return o};function t(r,o){for(var c in o)n(o,c)&&(r[c]=o[c])}function n(r,o){return Object.prototype.hasOwnProperty.call(r,o)}return extendShallow}var sectionMatter,hasRequiredSectionMatter;function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var e=requireKindOf(),t=requireExtendShallow();sectionMatter=function(Y,V){typeof V=="function"&&(V={parse:V});var X=r(Y),ee={section_delimiter:"---",parse:h},te=t({},ee,V),ne=te.section_delimiter,re=X.content.split(/\r?\n/),ie=null,se=c(),oe=[],ae=[];function le(Te){X.content=Te,ie=[],oe=[]}function de(Te){ae.length&&(se.key=o(ae[0],ne),se.content=Te,te.parse(se,ie),ie.push(se),se=c(),oe=[],ae=[])}for(var he=0;he<re.length;he++){var me=re[he],Se=ae.length,xe=me.trim();if(n(xe,ne)){if(xe.length===3&&he!==0){if(Se===0||Se===2){oe.push(me);continue}ae.push(xe),se.data=oe.join(`
|
|
2
2
|
`),oe=[];continue}ie===null&&le(oe.join(`
|
|
3
3
|
`)),Se===2&&de(oe.join(`
|
|
4
4
|
`)),ae.push(xe);continue}oe.push(me)}return ie===null?le(oe.join(`
|
|
@@ -7,7 +7,7 @@ import{g as getAugmentedNamespace,b as bufferExports,a as getDefaultExportFromCj
|
|
|
7
7
|
\u2028\u2029`.indexOf(this.buffer.charAt(h-1))===-1;)if(h-=1,this.position-h>o/2-1){c=" ... ",h+=5;break}for(F="",Y=this.position;Y<this.buffer.length&&`\0\r
|
|
8
8
|
\u2028\u2029`.indexOf(this.buffer.charAt(Y))===-1;)if(Y+=1,Y-this.position>o/2-1){F=" ... ",Y-=5;break}return V=this.buffer.slice(h,Y),e.repeat(" ",r)+c+V+F+`
|
|
9
9
|
`+e.repeat(" ",r+this.position-h+c.length)+"^"},t.prototype.toString=function(r){var o,c="";return this.name&&(c+='in "'+this.name+'" '),c+="at line "+(this.line+1)+", column "+(this.column+1),r||(o=this.getSnippet(),o&&(c+=`:
|
|
10
|
-
`+o)),c},mark=t,mark}var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var e=requireException(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function r(c){var h={};return c!==null&&Object.keys(c).forEach(function(F){c[F].forEach(function(Y){h[String(Y)]=F})}),h}function o(c,h){if(h=h||{},Object.keys(h).forEach(function(F){if(t.indexOf(F)===-1)throw new e('Unknown option "'+F+'" is met in definition of "'+c+'" YAML type.')}),this.tag=c,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(F){return F},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.defaultStyle=h.defaultStyle||null,this.styleAliases=r(h.styleAliases||null),n.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+c+'" YAML type.')}return type=o,type}var schema$3,hasRequiredSchema;function requireSchema(){if(hasRequiredSchema)return schema$3;hasRequiredSchema=1;var e=requireCommon(),t=requireException(),n=requireType();function r(h,F,Y){var V=[];return h.include.forEach(function(X){Y=r(X,F,Y)}),h[F].forEach(function(X){Y.forEach(function(ee,te){ee.tag===X.tag&&ee.kind===X.kind&&V.push(te)}),Y.push(X)}),Y.filter(function(X,ee){return V.indexOf(ee)===-1})}function o(){var h={scalar:{},sequence:{},mapping:{},fallback:{}},F,Y;function V(X){h[X.kind][X.tag]=h.fallback[X.tag]=X}for(F=0,Y=arguments.length;F<Y;F+=1)arguments[F].forEach(V);return h}function c(h){this.include=h.include||[],this.implicit=h.implicit||[],this.explicit=h.explicit||[],this.implicit.forEach(function(F){if(F.loadKind&&F.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=r(this,"implicit",[]),this.compiledExplicit=r(this,"explicit",[]),this.compiledTypeMap=o(this.compiledImplicit,this.compiledExplicit)}return c.DEFAULT=null,c.create=function(){var F,Y;switch(arguments.length){case 1:F=c.DEFAULT,Y=arguments[0];break;case 2:F=arguments[0],Y=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(F=e.toArray(F),Y=e.toArray(Y),!F.every(function(V){return V instanceof c}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!Y.every(function(V){return V instanceof n}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new c({include:F,explicit:Y})},schema$3=c,schema$3}var str,hasRequiredStr;function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var e=requireType();return str=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),str}var seq$1,hasRequiredSeq;function requireSeq(){if(hasRequiredSeq)return seq$1;hasRequiredSeq=1;var e=requireType();return seq$1=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),seq$1}var map$2,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map$2;hasRequiredMap=1;var e=requireType();return map$2=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),map$2}var failsafe,hasRequiredFailsafe;function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var e=requireSchema();return failsafe=new e({explicit:[requireStr(),requireSeq(),requireMap()]}),failsafe}var _null,hasRequired_null;function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var e=requireType();function t(o){if(o===null)return!0;var c=o.length;return c===1&&o==="~"||c===4&&(o==="null"||o==="Null"||o==="NULL")}function n(){return null}function r(o){return o===null}return _null=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),_null}var bool,hasRequiredBool;function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var e=requireType();function t(o){if(o===null)return!1;var c=o.length;return c===4&&(o==="true"||o==="True"||o==="TRUE")||c===5&&(o==="false"||o==="False"||o==="FALSE")}function n(o){return o==="true"||o==="True"||o==="TRUE"}function r(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return bool=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{lowercase:function(o){return o?"true":"false"},uppercase:function(o){return o?"TRUE":"FALSE"},camelcase:function(o){return o?"True":"False"}},defaultStyle:"lowercase"}),bool}var int$2,hasRequiredInt;function requireInt(){if(hasRequiredInt)return int$2;hasRequiredInt=1;var e=requireCommon(),t=requireType();function n(Y){return 48<=Y&&Y<=57||65<=Y&&Y<=70||97<=Y&&Y<=102}function r(Y){return 48<=Y&&Y<=55}function o(Y){return 48<=Y&&Y<=57}function c(Y){if(Y===null)return!1;var V=Y.length,X=0,ee=!1,te;if(!V)return!1;if(te=Y[X],(te==="-"||te==="+")&&(te=Y[++X]),te==="0"){if(X+1===V)return!0;if(te=Y[++X],te==="b"){for(X++;X<V;X++)if(te=Y[X],te!=="_"){if(te!=="0"&&te!=="1")return!1;ee=!0}return ee&&te!=="_"}if(te==="x"){for(X++;X<V;X++)if(te=Y[X],te!=="_"){if(!n(Y.charCodeAt(X)))return!1;ee=!0}return ee&&te!=="_"}for(;X<V;X++)if(te=Y[X],te!=="_"){if(!r(Y.charCodeAt(X)))return!1;ee=!0}return ee&&te!=="_"}if(te==="_")return!1;for(;X<V;X++)if(te=Y[X],te!=="_"){if(te===":")break;if(!o(Y.charCodeAt(X)))return!1;ee=!0}return!ee||te==="_"?!1:te!==":"?!0:/^(:[0-5]?[0-9])+$/.test(Y.slice(X))}function h(Y){var V=Y,X=1,ee,te,ne=[];return V.indexOf("_")!==-1&&(V=V.replace(/_/g,"")),ee=V[0],(ee==="-"||ee==="+")&&(ee==="-"&&(X=-1),V=V.slice(1),ee=V[0]),V==="0"?0:ee==="0"?V[1]==="b"?X*parseInt(V.slice(2),2):V[1]==="x"?X*parseInt(V,16):X*parseInt(V,8):V.indexOf(":")!==-1?(V.split(":").forEach(function(re){ne.unshift(parseInt(re,10))}),V=0,te=1,ne.forEach(function(re){V+=re*te,te*=60}),X*V):X*parseInt(V,10)}function F(Y){return Object.prototype.toString.call(Y)==="[object Number]"&&Y%1===0&&!e.isNegativeZero(Y)}return int$2=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:c,construct:h,predicate:F,represent:{binary:function(Y){return Y>=0?"0b"+Y.toString(2):"-0b"+Y.toString(2).slice(1)},octal:function(Y){return Y>=0?"0"+Y.toString(8):"-0"+Y.toString(8).slice(1)},decimal:function(Y){return Y.toString(10)},hexadecimal:function(Y){return Y>=0?"0x"+Y.toString(16).toUpperCase():"-0x"+Y.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),int$2}var float$2,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float$2;hasRequiredFloat=1;var e=requireCommon(),t=requireType(),n=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function r(Y){return!(Y===null||!n.test(Y)||Y[Y.length-1]==="_")}function o(Y){var V,X,ee,te;return V=Y.replace(/_/g,"").toLowerCase(),X=V[0]==="-"?-1:1,te=[],"+-".indexOf(V[0])>=0&&(V=V.slice(1)),V===".inf"?X===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:V===".nan"?NaN:V.indexOf(":")>=0?(V.split(":").forEach(function(ne){te.unshift(parseFloat(ne,10))}),V=0,ee=1,te.forEach(function(ne){V+=ne*ee,ee*=60}),X*V):X*parseFloat(V,10)}var c=/^[-+]?[0-9]+e/;function h(Y,V){var X;if(isNaN(Y))switch(V){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Y)switch(V){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Y)switch(V){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(Y))return"-0.0";return X=Y.toString(10),c.test(X)?X.replace("e",".e"):X}function F(Y){return Object.prototype.toString.call(Y)==="[object Number]"&&(Y%1!==0||e.isNegativeZero(Y))}return float$2=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:r,construct:o,predicate:F,represent:h,defaultStyle:"lowercase"}),float$2}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var e=requireSchema();return json=new e({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]}),json}var core,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var e=requireSchema();return core=new e({include:[requireJson()]}),core}var timestamp$1,hasRequiredTimestamp;function requireTimestamp(){if(hasRequiredTimestamp)return timestamp$1;hasRequiredTimestamp=1;var e=requireType(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function r(h){return h===null?!1:t.exec(h)!==null||n.exec(h)!==null}function o(h){var F,Y,V,X,ee,te,ne,re=0,ie=null,se,oe,ae;if(F=t.exec(h),F===null&&(F=n.exec(h)),F===null)throw new Error("Date resolve error");if(Y=+F[1],V=+F[2]-1,X=+F[3],!F[4])return new Date(Date.UTC(Y,V,X));if(ee=+F[4],te=+F[5],ne=+F[6],F[7]){for(re=F[7].slice(0,3);re.length<3;)re+="0";re=+re}return F[9]&&(se=+F[10],oe=+(F[11]||0),ie=(se*60+oe)*6e4,F[9]==="-"&&(ie=-ie)),ae=new Date(Date.UTC(Y,V,X,ee,te,ne,re)),ie&&ae.setTime(ae.getTime()-ie),ae}function c(h){return h.toISOString()}return timestamp$1=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:o,instanceOf:Date,represent:c}),timestamp$1}var merge$1,hasRequiredMerge;function requireMerge(){if(hasRequiredMerge)return merge$1;hasRequiredMerge=1;var e=requireType();function t(n){return n==="<<"||n===null}return merge$1=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),merge$1}var binary$1,hasRequiredBinary;function requireBinary(){if(hasRequiredBinary)return binary$1;hasRequiredBinary=1;var e;try{var t=commonjsRequire;e=t("buffer").Buffer}catch{}var n=requireType(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10
|
+
`+o)),c},mark=t,mark}var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var e=requireException(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],n=["scalar","sequence","mapping"];function r(c){var h={};return c!==null&&Object.keys(c).forEach(function(F){c[F].forEach(function(Y){h[String(Y)]=F})}),h}function o(c,h){if(h=h||{},Object.keys(h).forEach(function(F){if(t.indexOf(F)===-1)throw new e('Unknown option "'+F+'" is met in definition of "'+c+'" YAML type.')}),this.tag=c,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(F){return F},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.defaultStyle=h.defaultStyle||null,this.styleAliases=r(h.styleAliases||null),n.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+c+'" YAML type.')}return type=o,type}var schema$3,hasRequiredSchema;function requireSchema(){if(hasRequiredSchema)return schema$3;hasRequiredSchema=1;var e=requireCommon(),t=requireException(),n=requireType();function r(h,F,Y){var V=[];return h.include.forEach(function(X){Y=r(X,F,Y)}),h[F].forEach(function(X){Y.forEach(function(ee,te){ee.tag===X.tag&&ee.kind===X.kind&&V.push(te)}),Y.push(X)}),Y.filter(function(X,ee){return V.indexOf(ee)===-1})}function o(){var h={scalar:{},sequence:{},mapping:{},fallback:{}},F,Y;function V(X){h[X.kind][X.tag]=h.fallback[X.tag]=X}for(F=0,Y=arguments.length;F<Y;F+=1)arguments[F].forEach(V);return h}function c(h){this.include=h.include||[],this.implicit=h.implicit||[],this.explicit=h.explicit||[],this.implicit.forEach(function(F){if(F.loadKind&&F.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=r(this,"implicit",[]),this.compiledExplicit=r(this,"explicit",[]),this.compiledTypeMap=o(this.compiledImplicit,this.compiledExplicit)}return c.DEFAULT=null,c.create=function(){var F,Y;switch(arguments.length){case 1:F=c.DEFAULT,Y=arguments[0];break;case 2:F=arguments[0],Y=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(F=e.toArray(F),Y=e.toArray(Y),!F.every(function(V){return V instanceof c}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!Y.every(function(V){return V instanceof n}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new c({include:F,explicit:Y})},schema$3=c,schema$3}var str,hasRequiredStr;function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var e=requireType();return str=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),str}var seq$1,hasRequiredSeq;function requireSeq(){if(hasRequiredSeq)return seq$1;hasRequiredSeq=1;var e=requireType();return seq$1=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),seq$1}var map$2,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map$2;hasRequiredMap=1;var e=requireType();return map$2=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),map$2}var failsafe,hasRequiredFailsafe;function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var e=requireSchema();return failsafe=new e({explicit:[requireStr(),requireSeq(),requireMap()]}),failsafe}var _null,hasRequired_null;function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var e=requireType();function t(o){if(o===null)return!0;var c=o.length;return c===1&&o==="~"||c===4&&(o==="null"||o==="Null"||o==="NULL")}function n(){return null}function r(o){return o===null}return _null=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),_null}var bool,hasRequiredBool;function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var e=requireType();function t(o){if(o===null)return!1;var c=o.length;return c===4&&(o==="true"||o==="True"||o==="TRUE")||c===5&&(o==="false"||o==="False"||o==="FALSE")}function n(o){return o==="true"||o==="True"||o==="TRUE"}function r(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return bool=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:n,predicate:r,represent:{lowercase:function(o){return o?"true":"false"},uppercase:function(o){return o?"TRUE":"FALSE"},camelcase:function(o){return o?"True":"False"}},defaultStyle:"lowercase"}),bool}var int$2,hasRequiredInt;function requireInt(){if(hasRequiredInt)return int$2;hasRequiredInt=1;var e=requireCommon(),t=requireType();function n(Y){return 48<=Y&&Y<=57||65<=Y&&Y<=70||97<=Y&&Y<=102}function r(Y){return 48<=Y&&Y<=55}function o(Y){return 48<=Y&&Y<=57}function c(Y){if(Y===null)return!1;var V=Y.length,X=0,ee=!1,te;if(!V)return!1;if(te=Y[X],(te==="-"||te==="+")&&(te=Y[++X]),te==="0"){if(X+1===V)return!0;if(te=Y[++X],te==="b"){for(X++;X<V;X++)if(te=Y[X],te!=="_"){if(te!=="0"&&te!=="1")return!1;ee=!0}return ee&&te!=="_"}if(te==="x"){for(X++;X<V;X++)if(te=Y[X],te!=="_"){if(!n(Y.charCodeAt(X)))return!1;ee=!0}return ee&&te!=="_"}for(;X<V;X++)if(te=Y[X],te!=="_"){if(!r(Y.charCodeAt(X)))return!1;ee=!0}return ee&&te!=="_"}if(te==="_")return!1;for(;X<V;X++)if(te=Y[X],te!=="_"){if(te===":")break;if(!o(Y.charCodeAt(X)))return!1;ee=!0}return!ee||te==="_"?!1:te!==":"?!0:/^(:[0-5]?[0-9])+$/.test(Y.slice(X))}function h(Y){var V=Y,X=1,ee,te,ne=[];return V.indexOf("_")!==-1&&(V=V.replace(/_/g,"")),ee=V[0],(ee==="-"||ee==="+")&&(ee==="-"&&(X=-1),V=V.slice(1),ee=V[0]),V==="0"?0:ee==="0"?V[1]==="b"?X*parseInt(V.slice(2),2):V[1]==="x"?X*parseInt(V,16):X*parseInt(V,8):V.indexOf(":")!==-1?(V.split(":").forEach(function(re){ne.unshift(parseInt(re,10))}),V=0,te=1,ne.forEach(function(re){V+=re*te,te*=60}),X*V):X*parseInt(V,10)}function F(Y){return Object.prototype.toString.call(Y)==="[object Number]"&&Y%1===0&&!e.isNegativeZero(Y)}return int$2=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:c,construct:h,predicate:F,represent:{binary:function(Y){return Y>=0?"0b"+Y.toString(2):"-0b"+Y.toString(2).slice(1)},octal:function(Y){return Y>=0?"0"+Y.toString(8):"-0"+Y.toString(8).slice(1)},decimal:function(Y){return Y.toString(10)},hexadecimal:function(Y){return Y>=0?"0x"+Y.toString(16).toUpperCase():"-0x"+Y.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),int$2}var float$2,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float$2;hasRequiredFloat=1;var e=requireCommon(),t=requireType(),n=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function r(Y){return!(Y===null||!n.test(Y)||Y[Y.length-1]==="_")}function o(Y){var V,X,ee,te;return V=Y.replace(/_/g,"").toLowerCase(),X=V[0]==="-"?-1:1,te=[],"+-".indexOf(V[0])>=0&&(V=V.slice(1)),V===".inf"?X===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:V===".nan"?NaN:V.indexOf(":")>=0?(V.split(":").forEach(function(ne){te.unshift(parseFloat(ne,10))}),V=0,ee=1,te.forEach(function(ne){V+=ne*ee,ee*=60}),X*V):X*parseFloat(V,10)}var c=/^[-+]?[0-9]+e/;function h(Y,V){var X;if(isNaN(Y))switch(V){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Y)switch(V){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Y)switch(V){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(Y))return"-0.0";return X=Y.toString(10),c.test(X)?X.replace("e",".e"):X}function F(Y){return Object.prototype.toString.call(Y)==="[object Number]"&&(Y%1!==0||e.isNegativeZero(Y))}return float$2=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:r,construct:o,predicate:F,represent:h,defaultStyle:"lowercase"}),float$2}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var e=requireSchema();return json=new e({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]}),json}var core,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var e=requireSchema();return core=new e({include:[requireJson()]}),core}var timestamp$1,hasRequiredTimestamp;function requireTimestamp(){if(hasRequiredTimestamp)return timestamp$1;hasRequiredTimestamp=1;var e=requireType(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function r(h){return h===null?!1:t.exec(h)!==null||n.exec(h)!==null}function o(h){var F,Y,V,X,ee,te,ne,re=0,ie=null,se,oe,ae;if(F=t.exec(h),F===null&&(F=n.exec(h)),F===null)throw new Error("Date resolve error");if(Y=+F[1],V=+F[2]-1,X=+F[3],!F[4])return new Date(Date.UTC(Y,V,X));if(ee=+F[4],te=+F[5],ne=+F[6],F[7]){for(re=F[7].slice(0,3);re.length<3;)re+="0";re=+re}return F[9]&&(se=+F[10],oe=+(F[11]||0),ie=(se*60+oe)*6e4,F[9]==="-"&&(ie=-ie)),ae=new Date(Date.UTC(Y,V,X,ee,te,ne,re)),ie&&ae.setTime(ae.getTime()-ie),ae}function c(h){return h.toISOString()}return timestamp$1=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:o,instanceOf:Date,represent:c}),timestamp$1}var merge$1,hasRequiredMerge;function requireMerge(){if(hasRequiredMerge)return merge$1;hasRequiredMerge=1;var e=requireType();function t(n){return n==="<<"||n===null}return merge$1=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),merge$1}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var binary$1,hasRequiredBinary;function requireBinary(){if(hasRequiredBinary)return binary$1;hasRequiredBinary=1;var e;try{var t=commonjsRequire;e=t("buffer").Buffer}catch{}var n=requireType(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
11
11
|
\r`;function o(Y){if(Y===null)return!1;var V,X,ee=0,te=Y.length,ne=r;for(X=0;X<te;X++)if(V=ne.indexOf(Y.charAt(X)),!(V>64)){if(V<0)return!1;ee+=6}return ee%8===0}function c(Y){var V,X,ee=Y.replace(/[\r\n=]/g,""),te=ee.length,ne=r,re=0,ie=[];for(V=0;V<te;V++)V%4===0&&V&&(ie.push(re>>16&255),ie.push(re>>8&255),ie.push(re&255)),re=re<<6|ne.indexOf(ee.charAt(V));return X=te%4*6,X===0?(ie.push(re>>16&255),ie.push(re>>8&255),ie.push(re&255)):X===18?(ie.push(re>>10&255),ie.push(re>>2&255)):X===12&&ie.push(re>>4&255),e?e.from?e.from(ie):new e(ie):ie}function h(Y){var V="",X=0,ee,te,ne=Y.length,re=r;for(ee=0;ee<ne;ee++)ee%3===0&&ee&&(V+=re[X>>18&63],V+=re[X>>12&63],V+=re[X>>6&63],V+=re[X&63]),X=(X<<8)+Y[ee];return te=ne%3,te===0?(V+=re[X>>18&63],V+=re[X>>12&63],V+=re[X>>6&63],V+=re[X&63]):te===2?(V+=re[X>>10&63],V+=re[X>>4&63],V+=re[X<<2&63],V+=re[64]):te===1&&(V+=re[X>>2&63],V+=re[X<<4&63],V+=re[64],V+=re[64]),V}function F(Y){return e&&e.isBuffer(Y)}return binary$1=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:o,construct:c,predicate:F,represent:h}),binary$1}var omap$1,hasRequiredOmap;function requireOmap(){if(hasRequiredOmap)return omap$1;hasRequiredOmap=1;var e=requireType(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(c){if(c===null)return!0;var h=[],F,Y,V,X,ee,te=c;for(F=0,Y=te.length;F<Y;F+=1){if(V=te[F],ee=!1,n.call(V)!=="[object Object]")return!1;for(X in V)if(t.call(V,X))if(!ee)ee=!0;else return!1;if(!ee)return!1;if(h.indexOf(X)===-1)h.push(X);else return!1}return!0}function o(c){return c!==null?c:[]}return omap$1=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:r,construct:o}),omap$1}var pairs$1,hasRequiredPairs;function requirePairs(){if(hasRequiredPairs)return pairs$1;hasRequiredPairs=1;var e=requireType(),t=Object.prototype.toString;function n(o){if(o===null)return!0;var c,h,F,Y,V,X=o;for(V=new Array(X.length),c=0,h=X.length;c<h;c+=1){if(F=X[c],t.call(F)!=="[object Object]"||(Y=Object.keys(F),Y.length!==1))return!1;V[c]=[Y[0],F[Y[0]]]}return!0}function r(o){if(o===null)return[];var c,h,F,Y,V,X=o;for(V=new Array(X.length),c=0,h=X.length;c<h;c+=1)F=X[c],Y=Object.keys(F),V[c]=[Y[0],F[Y[0]]];return V}return pairs$1=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:r}),pairs$1}var set$1,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set$1;hasRequiredSet=1;var e=requireType(),t=Object.prototype.hasOwnProperty;function n(o){if(o===null)return!0;var c,h=o;for(c in h)if(t.call(h,c)&&h[c]!==null)return!1;return!0}function r(o){return o!==null?o:{}}return set$1=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:n,construct:r}),set$1}var default_safe,hasRequiredDefault_safe;function requireDefault_safe(){if(hasRequiredDefault_safe)return default_safe;hasRequiredDefault_safe=1;var e=requireSchema();return default_safe=new e({include:[requireCore()],implicit:[requireTimestamp(),requireMerge()],explicit:[requireBinary(),requireOmap(),requirePairs(),requireSet()]}),default_safe}var _undefined,hasRequired_undefined;function require_undefined(){if(hasRequired_undefined)return _undefined;hasRequired_undefined=1;var e=requireType();function t(){return!0}function n(){}function r(){return""}function o(c){return typeof c>"u"}return _undefined=new e("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:n,predicate:o,represent:r}),_undefined}var regexp,hasRequiredRegexp;function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var e=requireType();function t(c){if(c===null||c.length===0)return!1;var h=c,F=/\/([gim]*)$/.exec(c),Y="";return!(h[0]==="/"&&(F&&(Y=F[1]),Y.length>3||h[h.length-Y.length-1]!=="/"))}function n(c){var h=c,F=/\/([gim]*)$/.exec(c),Y="";return h[0]==="/"&&(F&&(Y=F[1]),h=h.slice(1,h.length-Y.length-1)),new RegExp(h,Y)}function r(c){var h="/"+c.source+"/";return c.global&&(h+="g"),c.multiline&&(h+="m"),c.ignoreCase&&(h+="i"),h}function o(c){return Object.prototype.toString.call(c)==="[object RegExp]"}return regexp=new e("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:n,predicate:o,represent:r}),regexp}var _function,hasRequired_function;function require_function(){if(hasRequired_function)return _function;hasRequired_function=1;var e;try{var t=commonjsRequire;e=t("esprima")}catch{typeof window<"u"&&(e=window.esprima)}var n=requireType();function r(F){if(F===null)return!1;try{var Y="("+F+")",V=e.parse(Y,{range:!0});return!(V.type!=="Program"||V.body.length!==1||V.body[0].type!=="ExpressionStatement"||V.body[0].expression.type!=="ArrowFunctionExpression"&&V.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function o(F){var Y="("+F+")",V=e.parse(Y,{range:!0}),X=[],ee;if(V.type!=="Program"||V.body.length!==1||V.body[0].type!=="ExpressionStatement"||V.body[0].expression.type!=="ArrowFunctionExpression"&&V.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return V.body[0].expression.params.forEach(function(te){X.push(te.name)}),ee=V.body[0].expression.body.range,V.body[0].expression.body.type==="BlockStatement"?new Function(X,Y.slice(ee[0]+1,ee[1]-1)):new Function(X,"return "+Y.slice(ee[0],ee[1]))}function c(F){return F.toString()}function h(F){return Object.prototype.toString.call(F)==="[object Function]"}return _function=new n("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:r,construct:o,predicate:h,represent:c}),_function}var default_full,hasRequiredDefault_full;function requireDefault_full(){if(hasRequiredDefault_full)return default_full;hasRequiredDefault_full=1;var e=requireSchema();return default_full=e.DEFAULT=new e({include:[requireDefault_safe()],explicit:[require_undefined(),requireRegexp(),require_function()]}),default_full}var hasRequiredLoader;function requireLoader(){if(hasRequiredLoader)return loader;hasRequiredLoader=1;var e=requireCommon(),t=requireException(),n=requireMark(),r=requireDefault_safe(),o=requireDefault_full(),c=Object.prototype.hasOwnProperty,h=1,F=2,Y=3,V=4,X=1,ee=2,te=3,ne=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,re=/[\x85\u2028\u2029]/,ie=/[,\[\]\{\}]/,se=/^(?:!|!!|![a-z\-]+!)$/i,oe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ae(Q){return Object.prototype.toString.call(Q)}function le(Q){return Q===10||Q===13}function de(Q){return Q===9||Q===32}function he(Q){return Q===9||Q===32||Q===10||Q===13}function me(Q){return Q===44||Q===91||Q===93||Q===123||Q===125}function Se(Q){var fe;return 48<=Q&&Q<=57?Q-48:(fe=Q|32,97<=fe&&fe<=102?fe-97+10:-1)}function xe(Q){return Q===120?2:Q===117?4:Q===85?8:0}function Te(Q){return 48<=Q&&Q<=57?Q-48:-1}function $e(Q){return Q===48?"\0":Q===97?"\x07":Q===98?"\b":Q===116||Q===9?" ":Q===110?`
|
|
12
12
|
`:Q===118?"\v":Q===102?"\f":Q===114?"\r":Q===101?"\x1B":Q===32?" ":Q===34?'"':Q===47?"/":Q===92?"\\":Q===78?"
":Q===95?" ":Q===76?"\u2028":Q===80?"\u2029":""}function Oe(Q){return Q<=65535?String.fromCharCode(Q):String.fromCharCode((Q-65536>>10)+55296,(Q-65536&1023)+56320)}function Fe(Q,fe,ge){fe==="__proto__"?Object.defineProperty(Q,fe,{configurable:!0,enumerable:!0,writable:!0,value:ge}):Q[fe]=ge}for(var Re=new Array(256),Ne=new Array(256),qe=0;qe<256;qe++)Re[qe]=$e(qe)?1:0,Ne[qe]=$e(qe);function He(Q,fe){this.input=Q,this.filename=fe.filename||null,this.schema=fe.schema||o,this.onWarning=fe.onWarning||null,this.legacy=fe.legacy||!1,this.json=fe.json||!1,this.listener=fe.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Q.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Ke(Q,fe){return new t(fe,new n(Q.filename,Q.input,Q.position,Q.line,Q.position-Q.lineStart))}function De(Q,fe){throw Ke(Q,fe)}function Be(Q,fe){Q.onWarning&&Q.onWarning.call(null,Ke(Q,fe))}var Ue={YAML:function(fe,ge,Ce){var ke,ue,ce;fe.version!==null&&De(fe,"duplication of %YAML directive"),Ce.length!==1&&De(fe,"YAML directive accepts exactly one argument"),ke=/^([0-9]+)\.([0-9]+)$/.exec(Ce[0]),ke===null&&De(fe,"ill-formed argument of the YAML directive"),ue=parseInt(ke[1],10),ce=parseInt(ke[2],10),ue!==1&&De(fe,"unacceptable YAML version of the document"),fe.version=Ce[0],fe.checkLineBreaks=ce<2,ce!==1&&ce!==2&&Be(fe,"unsupported YAML version of the document")},TAG:function(fe,ge,Ce){var ke,ue;Ce.length!==2&&De(fe,"TAG directive accepts exactly two arguments"),ke=Ce[0],ue=Ce[1],se.test(ke)||De(fe,"ill-formed tag handle (first argument) of the TAG directive"),c.call(fe.tagMap,ke)&&De(fe,'there is a previously declared suffix for "'+ke+'" tag handle'),oe.test(ue)||De(fe,"ill-formed tag prefix (second argument) of the TAG directive"),fe.tagMap[ke]=ue}};function ze(Q,fe,ge,Ce){var ke,ue,ce,pe;if(fe<ge){if(pe=Q.input.slice(fe,ge),Ce)for(ke=0,ue=pe.length;ke<ue;ke+=1)ce=pe.charCodeAt(ke),ce===9||32<=ce&&ce<=1114111||De(Q,"expected valid JSON character");else ne.test(pe)&&De(Q,"the stream contains non-printable characters");Q.result+=pe}}function Ge(Q,fe,ge,Ce){var ke,ue,ce,pe;for(e.isObject(ge)||De(Q,"cannot merge mappings; the provided source object is unacceptable"),ke=Object.keys(ge),ce=0,pe=ke.length;ce<pe;ce+=1)ue=ke[ce],c.call(fe,ue)||(Fe(fe,ue,ge[ue]),Ce[ue]=!0)}function je(Q,fe,ge,Ce,ke,ue,ce,pe){var be,_e;if(Array.isArray(ke))for(ke=Array.prototype.slice.call(ke),be=0,_e=ke.length;be<_e;be+=1)Array.isArray(ke[be])&&De(Q,"nested arrays are not supported inside keys"),typeof ke=="object"&&ae(ke[be])==="[object Object]"&&(ke[be]="[object Object]");if(typeof ke=="object"&&ae(ke)==="[object Object]"&&(ke="[object Object]"),ke=String(ke),fe===null&&(fe={}),Ce==="tag:yaml.org,2002:merge")if(Array.isArray(ue))for(be=0,_e=ue.length;be<_e;be+=1)Ge(Q,fe,ue[be],ge);else Ge(Q,fe,ue,ge);else!Q.json&&!c.call(ge,ke)&&c.call(fe,ke)&&(Q.line=ce||Q.line,Q.position=pe||Q.position,De(Q,"duplicated mapping key")),Fe(fe,ke,ue),delete ge[ke];return fe}function Ze(Q){var fe;fe=Q.input.charCodeAt(Q.position),fe===10?Q.position++:fe===13?(Q.position++,Q.input.charCodeAt(Q.position)===10&&Q.position++):De(Q,"a line break is expected"),Q.line+=1,Q.lineStart=Q.position}function Le(Q,fe,ge){for(var Ce=0,ke=Q.input.charCodeAt(Q.position);ke!==0;){for(;de(ke);)ke=Q.input.charCodeAt(++Q.position);if(fe&&ke===35)do ke=Q.input.charCodeAt(++Q.position);while(ke!==10&&ke!==13&&ke!==0);if(le(ke))for(Ze(Q),ke=Q.input.charCodeAt(Q.position),Ce++,Q.lineIndent=0;ke===32;)Q.lineIndent++,ke=Q.input.charCodeAt(++Q.position);else break}return ge!==-1&&Ce!==0&&Q.lineIndent<ge&&Be(Q,"deficient indentation"),Ce}function Ve(Q){var fe=Q.position,ge;return ge=Q.input.charCodeAt(fe),!!((ge===45||ge===46)&&ge===Q.input.charCodeAt(fe+1)&&ge===Q.input.charCodeAt(fe+2)&&(fe+=3,ge=Q.input.charCodeAt(fe),ge===0||he(ge)))}function Je(Q,fe){fe===1?Q.result+=" ":fe>1&&(Q.result+=e.repeat(`
|
|
13
13
|
`,fe-1))}function Qe(Q,fe,ge){var Ce,ke,ue,ce,pe,be,_e,Ee,ye=Q.kind,we=Q.result,Ae;if(Ae=Q.input.charCodeAt(Q.position),he(Ae)||me(Ae)||Ae===35||Ae===38||Ae===42||Ae===33||Ae===124||Ae===62||Ae===39||Ae===34||Ae===37||Ae===64||Ae===96||(Ae===63||Ae===45)&&(ke=Q.input.charCodeAt(Q.position+1),he(ke)||ge&&me(ke)))return!1;for(Q.kind="scalar",Q.result="",ue=ce=Q.position,pe=!1;Ae!==0;){if(Ae===58){if(ke=Q.input.charCodeAt(Q.position+1),he(ke)||ge&&me(ke))break}else if(Ae===35){if(Ce=Q.input.charCodeAt(Q.position-1),he(Ce))break}else{if(Q.position===Q.lineStart&&Ve(Q)||ge&&me(Ae))break;if(le(Ae))if(be=Q.line,_e=Q.lineStart,Ee=Q.lineIndent,Le(Q,!1,-1),Q.lineIndent>=fe){pe=!0,Ae=Q.input.charCodeAt(Q.position);continue}else{Q.position=ce,Q.line=be,Q.lineStart=_e,Q.lineIndent=Ee;break}}pe&&(ze(Q,ue,ce,!1),Je(Q,Q.line-be),ue=ce=Q.position,pe=!1),de(Ae)||(ce=Q.position+1),Ae=Q.input.charCodeAt(++Q.position)}return ze(Q,ue,ce,!1),Q.result?!0:(Q.kind=ye,Q.result=we,!1)}function Xe(Q,fe){var ge,Ce,ke;if(ge=Q.input.charCodeAt(Q.position),ge!==39)return!1;for(Q.kind="scalar",Q.result="",Q.position++,Ce=ke=Q.position;(ge=Q.input.charCodeAt(Q.position))!==0;)if(ge===39)if(ze(Q,Ce,Q.position,!0),ge=Q.input.charCodeAt(++Q.position),ge===39)Ce=Q.position,Q.position++,ke=Q.position;else return!0;else le(ge)?(ze(Q,Ce,ke,!0),Je(Q,Le(Q,!1,fe)),Ce=ke=Q.position):Q.position===Q.lineStart&&Ve(Q)?De(Q,"unexpected end of the document within a single quoted scalar"):(Q.position++,ke=Q.position);De(Q,"unexpected end of the stream within a single quoted scalar")}function et(Q,fe){var ge,Ce,ke,ue,ce,pe;if(pe=Q.input.charCodeAt(Q.position),pe!==34)return!1;for(Q.kind="scalar",Q.result="",Q.position++,ge=Ce=Q.position;(pe=Q.input.charCodeAt(Q.position))!==0;){if(pe===34)return ze(Q,ge,Q.position,!0),Q.position++,!0;if(pe===92){if(ze(Q,ge,Q.position,!0),pe=Q.input.charCodeAt(++Q.position),le(pe))Le(Q,!1,fe);else if(pe<256&&Re[pe])Q.result+=Ne[pe],Q.position++;else if((ce=xe(pe))>0){for(ke=ce,ue=0;ke>0;ke--)pe=Q.input.charCodeAt(++Q.position),(ce=Se(pe))>=0?ue=(ue<<4)+ce:De(Q,"expected hexadecimal character");Q.result+=Oe(ue),Q.position++}else De(Q,"unknown escape sequence");ge=Ce=Q.position}else le(pe)?(ze(Q,ge,Ce,!0),Je(Q,Le(Q,!1,fe)),ge=Ce=Q.position):Q.position===Q.lineStart&&Ve(Q)?De(Q,"unexpected end of the document within a double quoted scalar"):(Q.position++,Ce=Q.position)}De(Q,"unexpected end of the stream within a double quoted scalar")}function tt(Q,fe){var ge=!0,Ce,ke=Q.tag,ue,ce=Q.anchor,pe,be,_e,Ee,ye,we={},Ae,ve,Ie,Me;if(Me=Q.input.charCodeAt(Q.position),Me===91)be=93,ye=!1,ue=[];else if(Me===123)be=125,ye=!0,ue={};else return!1;for(Q.anchor!==null&&(Q.anchorMap[Q.anchor]=ue),Me=Q.input.charCodeAt(++Q.position);Me!==0;){if(Le(Q,!0,fe),Me=Q.input.charCodeAt(Q.position),Me===be)return Q.position++,Q.tag=ke,Q.anchor=ce,Q.kind=ye?"mapping":"sequence",Q.result=ue,!0;ge||De(Q,"missed comma between flow collection entries"),ve=Ae=Ie=null,_e=Ee=!1,Me===63&&(pe=Q.input.charCodeAt(Q.position+1),he(pe)&&(_e=Ee=!0,Q.position++,Le(Q,!0,fe))),Ce=Q.line,Ye(Q,fe,h,!1,!0),ve=Q.tag,Ae=Q.result,Le(Q,!0,fe),Me=Q.input.charCodeAt(Q.position),(Ee||Q.line===Ce)&&Me===58&&(_e=!0,Me=Q.input.charCodeAt(++Q.position),Le(Q,!0,fe),Ye(Q,fe,h,!1,!0),Ie=Q.result),ye?je(Q,ue,we,ve,Ae,Ie):_e?ue.push(je(Q,null,we,ve,Ae,Ie)):ue.push(Ae),Le(Q,!0,fe),Me=Q.input.charCodeAt(Q.position),Me===44?(ge=!0,Me=Q.input.charCodeAt(++Q.position)):ge=!1}De(Q,"unexpected end of the stream within a flow collection")}function We(Q,fe){var ge,Ce,ke=X,ue=!1,ce=!1,pe=fe,be=0,_e=!1,Ee,ye;if(ye=Q.input.charCodeAt(Q.position),ye===124)Ce=!1;else if(ye===62)Ce=!0;else return!1;for(Q.kind="scalar",Q.result="";ye!==0;)if(ye=Q.input.charCodeAt(++Q.position),ye===43||ye===45)X===ke?ke=ye===43?te:ee:De(Q,"repeat of a chomping mode identifier");else if((Ee=Te(ye))>=0)Ee===0?De(Q,"bad explicit indentation width of a block scalar; it cannot be less than one"):ce?De(Q,"repeat of an indentation width identifier"):(pe=fe+Ee-1,ce=!0);else break;if(de(ye)){do ye=Q.input.charCodeAt(++Q.position);while(de(ye));if(ye===35)do ye=Q.input.charCodeAt(++Q.position);while(!le(ye)&&ye!==0)}for(;ye!==0;){for(Ze(Q),Q.lineIndent=0,ye=Q.input.charCodeAt(Q.position);(!ce||Q.lineIndent<pe)&&ye===32;)Q.lineIndent++,ye=Q.input.charCodeAt(++Q.position);if(!ce&&Q.lineIndent>pe&&(pe=Q.lineIndent),le(ye)){be++;continue}if(Q.lineIndent<pe){ke===te?Q.result+=e.repeat(`
|
|
@@ -201,4 +201,4 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
201
201
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
202
202
|
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,o=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let c=[];if(o&&n.sep&&!n.value){const h=[];for(let F=0;F<n.sep.length;++F){const Y=n.sep[F];switch(Y.type){case"newline":h.push(F);break;case"space":break;case"comment":Y.indent>t.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(c=n.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(c.push(this.sourceToken),t.items.push({start:c}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(c.push(this.sourceToken),t.items.push({start:c,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(includesToken(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:null,sep:[this.sourceToken]}]});else if(isFlowToken(n.key)&&!includesToken(n.sep,"newline")){const h=getFirstKeyStartProps(n.start),F=n.key,Y=n.sep;Y.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:F,sep:Y}]})}else c.length>0?n.sep=n.sep.concat(c,this.sourceToken):n.sep.push(this.sourceToken);else if(includesToken(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const h=getFirstKeyStartProps(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:c,key:null,sep:[this.sourceToken]}):includesToken(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const h=this.flowScalar(this.type);o||n.value?(t.items.push({start:c,key:h,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(h):(Object.assign(n,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{const h=this.startBlockValue(t);if(h){if(h.type==="block-seq"){if(!n.explicitKey&&n.sep&&!includesToken(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&t.items.push({start:c});this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||includesToken(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=getPrevProps(r),c=getFirstKeyStartProps(o);fixFlowSeqItems(t);const h=t.end.splice(1,t.end.length);h.push(this.sourceToken);const F={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:c,key:t,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=F}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
203
203
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
204
|
-
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=getPrevProps(t),r=getFirstKeyStartProps(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=getPrevProps(t),r=getFirstKeyStartProps(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function parseOptions(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new LineCounter||null,prettyErrors:t}}function parseDocument(e,t={}){const{lineCounter:n,prettyErrors:r}=parseOptions(t),o=new Parser(n?.addNewLine),c=new Composer(t);let h=null;for(const F of c.compose(o.parse(e),!0,e.length))if(!h)h=F;else if(h.options.logLevel!=="silent"){h.errors.push(new YAMLParseError(F.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(h.errors.forEach(prettifyError(e,n)),h.warnings.forEach(prettifyError(e,n))),h}function parse(e,t,n){let r;const o=parseDocument(e,n);if(!o)return null;if(o.warnings.forEach(c=>warn(o.options.logLevel,c)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}const bracketPairs={"[":"]","{":"}","(":")"},quotePairs={"'":"'",'"':'"',"`":"`"};function parseProps(e){if(e=e.trim(),!e)return;const t=searchProps(e);if(!t)throw new Error(`Invalid props: \`${e}\``);if(t.index!==e.length)throw new Error(`Invalid props: \`${e}\`, expected end \`}\` but got \`${e.slice(t.index)}\``);return t.props}function searchProps(e,t=0){if(e[t]!=="{")throw new Error(`Invalid props, expected \`{\` but got '${e[t]}'`);const n=[];if(e[t+1]==="{")return;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else if(e[t]==="}"){t+=1;break}else if(e[t]===" ")t+=1;else if(e[t]===".")t+=1,n.push(["class",r(" #.}")]);else if(e[t]==="#")t+=1,n.push(["id",r(" #.}")]);else{const F=t;for(;t<e.length&&(t+=1,!" }=".includes(e[t])););const Y=e[t];if(F!==t){const V=e.slice(F,t).trim();Y==="="?(t+=1,n.push([V,o()])):n.push([V,"true"])}}function r(F){const Y=t;for(;t<e.length&&(t+=1,e[t]==="\\"&&(t+=2),!F.includes(e[t])););return e.slice(Y,t)}function o(){const F=t;return e[t]in bracketPairs?(c(bracketPairs[e[t]]),t+=1,e.slice(F,t)):e[t]in quotePairs?(h(quotePairs[e[t]]),t+=1,e.slice(F,t)):r(" }")}function c(F){for(;t<e.length;)if(t++,e[t]in quotePairs)h(quotePairs[e[t]]);else if(e[t]in bracketPairs)c(bracketPairs[e[t]]);else if(e[t]===F)return}function h(F){return r(F)}return n.forEach(F=>{F[1].match(/^(['"`]).*\1$/)&&(F[1]=F[1].slice(1,-1))}),{props:n,index:t}}const RE_BLOCK_NAME=/^[a-z$][$\w.-]*/;function parseBlockParams(e){if(e=e.trim(),!e)return{name:""};const t=e.match(RE_BLOCK_NAME)?.[0];if(!t)throw new Error(`Invalid block params: ${e}`);const n=e.slice(t.length).trim();return{name:t,props:parseProps(n)}}const MarkdownItMdcBlock=e=>{e.block.ruler.before("fence","mdc_block_shorthand",function(c,h,F,Y){const V=c.src.slice(c.bMarks[h]+c.tShift[h],c.eMarks[h]);if(!V.match(/^:\w/))return!1;const{name:X,props:ee}=parseBlockParams(V.slice(1));if(c.lineMax=h+1,!Y){const te=c.push("mdc_block_shorthand",X,0);ee?.forEach(([ne,re])=>{ne==="class"?te.attrJoin(ne,re):te.attrSet(ne,re)})}return c.line=h+1,!0}),e.block.ruler.before("fence","mdc_block",function(c,h,F,Y){let V,X,ee=!1,te=c.bMarks[h]+c.tShift[h],ne=c.eMarks[h];const re=c.sCount[h];if(c.src[te]!==":")return!1;for(V=te+1;V<=ne&&c.src[V]===":";V++);const ie=Math.floor(V-te);if(ie<2)return!1;const se=c.src.slice(te,V),oe=parseBlockParams(c.src.slice(V,ne));if(!oe.name)return!1;if(Y)return!0;for(X=h;X++,!(X>=F||(te=c.bMarks[X]+c.tShift[X],ne=c.eMarks[X],te<ne&&c.sCount[X]<c.blkIndent));)if(c.src.charCodeAt(te)===58){for(V=te+1;V<=ne&&c.src[V]===":";V++);if(V-te===ie&&(V=c.skipSpaces(V),!(V<ne))){ee=!0;break}}const ae=c.parentType,le=c.lineMax;c.parentType="mdc_block",c.lineMax=X;const de=c.push("mdc_block_open",oe.name,1);de.markup=se,de.block=!0,de.info=oe.name,de.map=[h,X],oe.props&&oe.props?.forEach(([Se,xe])=>{Se==="class"?de.attrJoin(Se,xe):de.attrSet(Se,xe)});const he=c.blkIndent;c.blkIndent=re,c.env.mdcBlockTokens||=[],c.env.mdcBlockTokens.unshift(de),c.md.block.tokenize(c,h+1,X),c.blkIndent=he,c.env.mdcBlockTokens.shift(de);const me=c.push("mdc_block_close",oe.name,-1);return me.markup=c.src.slice(te,V),me.block=!0,c.tokens.slice(c.tokens.indexOf(de)+1,c.tokens.indexOf(me)).filter(Se=>Se.level===de.level+1).forEach((Se,xe,Te)=>{Te.length<=2&&Se.tag==="p"&&(Se.hidden=!0)}),c.parentType=ae,c.lineMax=le,c.line=X+(ee?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.block.ruler.after("code","mdc_block_yaml",function(c,h,F,Y){if(!c.env.mdcBlockTokens?.length)return!1;const V=c.bMarks[h]+c.tShift[h],X=c.eMarks[h];if(c.src.slice(V,X)!=="---")return!1;let ee=h+1,te=!1;for(;ee<F;){if(c.src.slice(c.bMarks[ee]+c.tShift[h],c.eMarks[ee])==="---"){te=!0;break}ee+=1}if(!te)return!1;if(!Y){const ne=c.src.slice(c.bMarks[h+1],c.eMarks[ee-1]),re=parse(ne),ie=c.env.mdcBlockTokens[0];Object.entries(re).forEach(([se,oe])=>{se==="class"?ie.attrJoin(se,oe):ie.attrSet(se,typeof oe=="string"?oe:JSON.stringify(oe))})}return c.line=ee+1,c.lineMax=ee+1,!0}),e.block.ruler.after("code","mdc_block_slots",function(c,h,F,Y){if(!c.env.mdcBlockTokens?.length)return!1;const V=c.bMarks[h]+c.tShift[h];if(!(c.src[V]==="#"&&c.src[V+1]!==" "))return!1;const X=c.src.slice(V,c.eMarks[h]),{name:ee,props:te}=parseBlockParams(X.slice(1));let ne=h+1;for(;ne<F;){const ie=c.src.slice(c.bMarks[ne]+c.tShift[h],c.eMarks[ne]);if(ie.match(/^#(\w)+/)||ie.startsWith("::"))break;ne+=1}if(Y)return c.line=ne,c.lineMax=ne,!0;c.lineMax=h+1;const re=c.push("mdc_block_slot","template",1);return re.attrSet(`#${ee}`,""),te?.forEach(([ie,se])=>{ie==="class"?re.attrJoin(ie,se):re.attrSet(ie,se)}),c.line=h+1,c.lineMax=ne,c.md.block.tokenize(c,h+1,ne),c.push("mdc_block_slot","template",-1),c.line=ne,c.lineMax=ne,!0})},MarkdownItInlineComponent=e=>{e.inline.ruler.after("entity","mdc_inline_component",(t,n)=>{const r=t.pos;if(!(t.src[r]===":"&&t.src[r-1]===" "))return!1;let c=r+1,h=-1,F=-1;for(;c<t.src.length;){const Y=t.src[c];if(Y==="["){for(h=c+1;c<t.src.length;)if(c+=1,t.src[c]==="\\"&&(c+=2),t.src[c]==="]"){F=c,c+=1;break}break}if(!/[\w$\-]/.test(Y))break;c+=1}if(c<=r+1)return!1;if(n)return!0;if(F!==h){const Y=t.src.slice(r+1,h-1),V=t.src.slice(h,F);t.push("mdc_inline_component",Y,1);const X=t.push("text","",0);X.content=V,t.push("mdc_inline_component",Y,-1)}else{const Y=t.src.slice(r+1,c);t.push("mdc_inline_component",Y,0)}return t.pos=c,!0})},MarkdownItInlineProps=e=>{e.inline.ruler.after("entity","mdc_inline_props",(r,o)=>{const c=r.pos;if(r.src[c]!=="{"||r.src[c+1]==="{"||r.src[c-1]==="{"||r.src[c-1]==="$")return!1;const F=searchProps(r.src,c);if(!F)return!1;const{props:Y,index:V}=F;if(V===c)return!1;if(o)return!0;const X=r.push("mdc_inline_props","span",0);return X.attrs=Y,X.hidden=!0,r.pos=V,!0}),e.renderer.rules.mdc_inline_props=()=>"";const t=e.parse;e.parse=function(r,o){const c=t.call(this,r,o);return c.forEach((h,F)=>{const Y=c[F-1],V=c[F+1];if(!(!["heading_open","paragraph_open","list_item_open"].includes(Y?.type)||Y.hidden)&&(h.hidden&&V.type==="inline"&&(h=V),h.type==="inline"&&h.children?.length===2&&h.children[0].type==="text"&&h.children[1].type==="mdc_inline_props")){const X=h.children[1].attrs;h.children.splice(1,1),X?.forEach(([ee,te])=>{ee==="class"?Y.attrJoin("class",te):Y.attrSet(ee,te)})}}),c.forEach((h,F)=>{if(h.type!=="bullet_list_open")return;const Y=c[F-1];if(!Y||Y.type!=="mdc_block_open"||Y.tag!=="ul")return;let V=F+1;for(;V<c.length;){const te=c[V];if(te.type==="bullet_list_close"&&te.level===h.level)break;V+=1}const X=c[V];if(X.type!=="bullet_list_close")return;const ee=c[V+1];ee.type==="mdc_block_close"&&ee.tag==="ul"&&(h.hidden=!0,X.hidden=!0)}),c};const n=e.renderer.renderInline;e.renderer.renderInline=function(r,o,c){return r=[...r],r.forEach((h,F)=>{if(h.type==="mdc_inline_props"){let Y=F-1,V=r[Y];for(;Y>=0&&(V.type==="text"&&!V.content.trim());)Y--,V=r[Y];if(!V.tag&&V.type==="text"){V=new Token("mdc_inline_span","span",1),r.splice(F-1,0,V);const X=new Token("mdc_inline_span","span",-1);r.splice(F+2,0,X)}else if(V.nesting===-1){let X=F-1;for(;X>=0;){const ee=r[X];if(ee.nesting===1&&ee.tag===V.tag&&ee.level===V.level){V=ee;break}X--}}if(V.nesting===-1)throw new Error(`No matching opening tag found for ${JSON.stringify(V)}`);h.attrs?.forEach(([X,ee])=>{X==="class"?V.attrJoin("class",ee):V.attrSet(X,ee)})}}),n.call(this,r,o,c)}},MarkdownItInlineSpan=e=>{e.inline.ruler.after("mdc_inline_props","mdc_inline_span",(t,n)=>{const r=t.pos;if(t.src[r]!=="[")return!1;let c=r+1;for(;c<t.src.length&&(t.src[c]==="\\"&&(c+=2),t.src[c]!=="]");)c+=1;if(c===r)return!1;if(n)return!0;t.push("mdc_inline_span","span",1);const h=t.push("text","",0);return h.content=t.src.slice(r+1,c),t.push("mdc_inline_span","span",-1),t.pos=c+1,!0})},MarkdownItMdc=(e,t={})=>{const{blockComponent:n=!0,inlineProps:r=!0,inlineSpan:o=!0,inlineComponent:c=!0}=t.syntax||{};n&&e.use(MarkdownItMdcBlock),r&&e.use(MarkdownItInlineProps),o&&e.use(MarkdownItInlineSpan),c&&e.use(MarkdownItInlineComponent)};export{$,ElementTransform as E,L$1 as L,MarkdownIt as M,U,a,b$2 as b,commonjsRequire as c,d$2 as d,k$1 as e,g as f,g$1 as g,f$2 as h,i$4 as i,j,k$4 as k,f$1 as l,m$1 as m,y as n,MarkdownItMdc as o,frontmatterPlugin as p,componentPlugin as q,require$$0 as r,sfcPlugin as s,tocPlugin as t,w$1 as w,y$2 as y,z};
|
|
204
|
+
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=getPrevProps(t),r=getFirstKeyStartProps(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=getPrevProps(t),r=getFirstKeyStartProps(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function parseOptions(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new LineCounter||null,prettyErrors:t}}function parseDocument(e,t={}){const{lineCounter:n,prettyErrors:r}=parseOptions(t),o=new Parser(n?.addNewLine),c=new Composer(t);let h=null;for(const F of c.compose(o.parse(e),!0,e.length))if(!h)h=F;else if(h.options.logLevel!=="silent"){h.errors.push(new YAMLParseError(F.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(h.errors.forEach(prettifyError(e,n)),h.warnings.forEach(prettifyError(e,n))),h}function parse(e,t,n){let r;const o=parseDocument(e,n);if(!o)return null;if(o.warnings.forEach(c=>warn(o.options.logLevel,c)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}const bracketPairs={"[":"]","{":"}","(":")"},quotePairs={"'":"'",'"':'"',"`":"`"};function parseProps(e){if(e=e.trim(),!e)return;const t=searchProps(e);if(!t)throw new Error(`Invalid props: \`${e}\``);if(t.index!==e.length)throw new Error(`Invalid props: \`${e}\`, expected end \`}\` but got \`${e.slice(t.index)}\``);return t.props}function searchProps(e,t=0){if(e[t]!=="{")throw new Error(`Invalid props, expected \`{\` but got '${e[t]}'`);const n=[];if(e[t+1]==="{")return;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else if(e[t]==="}"){t+=1;break}else if(e[t]===" ")t+=1;else if(e[t]===".")t+=1,n.push(["class",r(" #.}")]);else if(e[t]==="#")t+=1,n.push(["id",r(" #.}")]);else{const F=t;for(;t<e.length&&(t+=1,!" }=".includes(e[t])););const Y=e[t];if(F!==t){const V=e.slice(F,t).trim();Y==="="?(t+=1,n.push([V,o()])):n.push([V,"true"])}}function r(F){const Y=t;for(;t<e.length&&(t+=1,e[t]==="\\"&&(t+=2),!F.includes(e[t])););return e.slice(Y,t)}function o(){const F=t;return e[t]in bracketPairs?(c(bracketPairs[e[t]]),t+=1,e.slice(F,t)):e[t]in quotePairs?(h(quotePairs[e[t]]),t+=1,e.slice(F,t)):r(" }")}function c(F){for(;t<e.length;)if(t++,e[t]in quotePairs)h(quotePairs[e[t]]);else if(e[t]in bracketPairs)c(bracketPairs[e[t]]);else if(e[t]===F)return}function h(F){return r(F)}return n.forEach(F=>{F[1].match(/^(['"`]).*\1$/)&&(F[1]=F[1].slice(1,-1))}),{props:n,index:t}}const RE_BLOCK_NAME=/^[a-z$][$\w.-]*/;function parseBlockParams(e){if(e=e.trim(),!e)return{name:""};const t=e.match(RE_BLOCK_NAME)?.[0];if(!t)throw new Error(`Invalid block params: ${e}`);const n=e.slice(t.length).trim();return{name:t,props:parseProps(n)}}const MarkdownItMdcBlock=e=>{e.block.ruler.before("fence","mdc_block_shorthand",function(c,h,F,Y){const V=c.src.slice(c.bMarks[h]+c.tShift[h],c.eMarks[h]);if(!V.match(/^:\w/))return!1;const{name:X,props:ee}=parseBlockParams(V.slice(1));if(c.lineMax=h+1,!Y){const te=c.push("mdc_block_shorthand",X,0);ee?.forEach(([ne,re])=>{ne==="class"?te.attrJoin(ne,re):te.attrSet(ne,re)})}return c.line=h+1,!0}),e.block.ruler.before("fence","mdc_block",function(c,h,F,Y){let V,X,ee=!1,te=c.bMarks[h]+c.tShift[h],ne=c.eMarks[h];const re=c.sCount[h];if(c.src[te]!==":")return!1;for(V=te+1;V<=ne&&c.src[V]===":";V++);const ie=Math.floor(V-te);if(ie<2)return!1;const se=c.src.slice(te,V),oe=parseBlockParams(c.src.slice(V,ne));if(!oe.name)return!1;if(Y)return!0;for(X=h;X++,!(X>=F||(te=c.bMarks[X]+c.tShift[X],ne=c.eMarks[X],te<ne&&c.sCount[X]<c.blkIndent));)if(c.src.charCodeAt(te)===58){for(V=te+1;V<=ne&&c.src[V]===":";V++);if(V-te===ie&&(V=c.skipSpaces(V),!(V<ne))){ee=!0;break}}const ae=c.parentType,le=c.lineMax;c.parentType="mdc_block",c.lineMax=X;const de=c.push("mdc_block_open",oe.name,1);de.markup=se,de.block=!0,de.info=oe.name,de.map=[h,X],oe.props&&oe.props?.forEach(([Se,xe])=>{Se==="class"?de.attrJoin(Se,xe):de.attrSet(Se,xe)});const he=c.blkIndent;c.blkIndent=re,c.env.mdcBlockTokens||=[],c.env.mdcBlockTokens.unshift(de),c.md.block.tokenize(c,h+1,X),c.blkIndent=he,c.env.mdcBlockTokens.shift(de);const me=c.push("mdc_block_close",oe.name,-1);return me.markup=c.src.slice(te,V),me.block=!0,c.tokens.slice(c.tokens.indexOf(de)+1,c.tokens.indexOf(me)).filter(Se=>Se.level===de.level+1).forEach((Se,xe,Te)=>{Te.length<=2&&Se.tag==="p"&&(Se.hidden=!0)}),c.parentType=ae,c.lineMax=le,c.line=X+(ee?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.block.ruler.after("code","mdc_block_yaml",function(c,h,F,Y){if(!c.env.mdcBlockTokens?.length)return!1;const V=c.bMarks[h]+c.tShift[h],X=c.eMarks[h];if(c.src.slice(V,X)!=="---")return!1;let ee=h+1,te=!1;for(;ee<F;){if(c.src.slice(c.bMarks[ee]+c.tShift[h],c.eMarks[ee])==="---"){te=!0;break}ee+=1}if(!te)return!1;if(!Y){const ne=c.src.slice(c.bMarks[h+1],c.eMarks[ee-1]),re=parse(ne),ie=c.env.mdcBlockTokens[0];Object.entries(re).forEach(([se,oe])=>{se==="class"?ie.attrJoin(se,oe):ie.attrSet(se,typeof oe=="string"?oe:JSON.stringify(oe))})}return c.line=ee+1,c.lineMax=ee+1,!0}),e.block.ruler.after("code","mdc_block_slots",function(c,h,F,Y){if(!c.env.mdcBlockTokens?.length)return!1;const V=c.bMarks[h]+c.tShift[h];if(!(c.src[V]==="#"&&c.src[V+1]!==" "))return!1;const X=c.src.slice(V,c.eMarks[h]),{name:ee,props:te}=parseBlockParams(X.slice(1));let ne=h+1;for(;ne<F;){const ie=c.src.slice(c.bMarks[ne]+c.tShift[h],c.eMarks[ne]);if(ie.match(/^#(\w)+/)||ie.startsWith("::"))break;ne+=1}if(Y)return c.line=ne,c.lineMax=ne,!0;c.lineMax=h+1;const re=c.push("mdc_block_slot","template",1);return re.attrSet(`#${ee}`,""),te?.forEach(([ie,se])=>{ie==="class"?re.attrJoin(ie,se):re.attrSet(ie,se)}),c.line=h+1,c.lineMax=ne,c.md.block.tokenize(c,h+1,ne),c.push("mdc_block_slot","template",-1),c.line=ne,c.lineMax=ne,!0})},MarkdownItInlineComponent=e=>{e.inline.ruler.after("entity","mdc_inline_component",(t,n)=>{const r=t.pos;if(!(t.src[r]===":"&&t.src[r-1]===" "))return!1;let c=r+1,h=-1,F=-1;for(;c<t.src.length;){const Y=t.src[c];if(Y==="["){for(h=c+1;c<t.src.length;)if(c+=1,t.src[c]==="\\"&&(c+=2),t.src[c]==="]"){F=c,c+=1;break}break}if(!/[\w$\-]/.test(Y))break;c+=1}if(c<=r+1)return!1;if(n)return!0;if(F!==h){const Y=t.src.slice(r+1,h-1),V=t.src.slice(h,F);t.push("mdc_inline_component",Y,1);const X=t.push("text","",0);X.content=V,t.push("mdc_inline_component",Y,-1)}else{const Y=t.src.slice(r+1,c);t.push("mdc_inline_component",Y,0)}return t.pos=c,!0})},MarkdownItInlineProps=e=>{e.inline.ruler.after("entity","mdc_inline_props",(r,o)=>{const c=r.pos;if(r.src[c]!=="{"||r.src[c+1]==="{"||r.src[c-1]==="{"||r.src[c-1]==="$")return!1;const F=searchProps(r.src,c);if(!F)return!1;const{props:Y,index:V}=F;if(V===c)return!1;if(o)return!0;const X=r.push("mdc_inline_props","span",0);return X.attrs=Y,X.hidden=!0,r.pos=V,!0}),e.renderer.rules.mdc_inline_props=()=>"";const t=e.parse;e.parse=function(r,o){const c=t.call(this,r,o);return c.forEach((h,F)=>{const Y=c[F-1],V=c[F+1];if(!(!["heading_open","paragraph_open","list_item_open"].includes(Y?.type)||Y.hidden)&&(h.hidden&&V.type==="inline"&&(h=V),h.type==="inline"&&h.children?.length===2&&h.children[0].type==="text"&&h.children[1].type==="mdc_inline_props")){const X=h.children[1].attrs;h.children.splice(1,1),X?.forEach(([ee,te])=>{ee==="class"?Y.attrJoin("class",te):Y.attrSet(ee,te)})}}),c.forEach((h,F)=>{if(h.type!=="bullet_list_open")return;const Y=c[F-1];if(!Y||Y.type!=="mdc_block_open"||Y.tag!=="ul")return;let V=F+1;for(;V<c.length;){const te=c[V];if(te.type==="bullet_list_close"&&te.level===h.level)break;V+=1}const X=c[V];if(X.type!=="bullet_list_close")return;const ee=c[V+1];ee.type==="mdc_block_close"&&ee.tag==="ul"&&(h.hidden=!0,X.hidden=!0)}),c};const n=e.renderer.renderInline;e.renderer.renderInline=function(r,o,c){return r=[...r],r.forEach((h,F)=>{if(h.type==="mdc_inline_props"){let Y=F-1,V=r[Y];for(;Y>=0&&(V.type==="text"&&!V.content.trim());)Y--,V=r[Y];if(!V.tag&&V.type==="text"){V=new Token("mdc_inline_span","span",1),r.splice(F-1,0,V);const X=new Token("mdc_inline_span","span",-1);r.splice(F+2,0,X)}else if(V.nesting===-1){let X=F-1;for(;X>=0;){const ee=r[X];if(ee.nesting===1&&ee.tag===V.tag&&ee.level===V.level){V=ee;break}X--}}if(V.nesting===-1)throw new Error(`No matching opening tag found for ${JSON.stringify(V)}`);h.attrs?.forEach(([X,ee])=>{X==="class"?V.attrJoin("class",ee):V.attrSet(X,ee)})}}),n.call(this,r,o,c)}},MarkdownItInlineSpan=e=>{e.inline.ruler.after("mdc_inline_props","mdc_inline_span",(t,n)=>{const r=t.pos;if(t.src[r]!=="[")return!1;let c=r+1;for(;c<t.src.length&&(t.src[c]==="\\"&&(c+=2),t.src[c]!=="]");)c+=1;if(c===r)return!1;if(n)return!0;t.push("mdc_inline_span","span",1);const h=t.push("text","",0);return h.content=t.src.slice(r+1,c),t.push("mdc_inline_span","span",-1),t.pos=c+1,!0})},MarkdownItMdc=(e,t={})=>{const{blockComponent:n=!0,inlineProps:r=!0,inlineSpan:o=!0,inlineComponent:c=!0}=t.syntax||{};n&&e.use(MarkdownItMdcBlock),r&&e.use(MarkdownItInlineProps),o&&e.use(MarkdownItInlineSpan),c&&e.use(MarkdownItInlineComponent)};export{$,ElementTransform as E,L$1 as L,MarkdownIt as M,U,a,b$2 as b,k$1 as c,d$2 as d,g as e,f$2 as f,g$1 as g,f$1 as h,i$4 as i,j,k$4 as k,y as l,m$1 as m,MarkdownItMdc as n,frontmatterPlugin as o,componentPlugin as p,sfcPlugin as s,tocPlugin as t,w$1 as w,y$2 as y,z};
|