markstream-vue 0.0.2 → 0.0.3-beta.0

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.
@@ -0,0 +1,246 @@
1
+ "use strict";var yo=Object.create;var fn=Object.defineProperty,xo=Object.defineProperties,bo=Object.getOwnPropertyDescriptor,Bo=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertyNames,Dn=Object.getOwnPropertySymbols,Co=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable;var zn=(t,o,n)=>o in t?fn(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,G=(t,o)=>{for(var n in o||(o={}))Rn.call(o,n)&&zn(t,n,o[n]);if(Dn)for(var n of Dn(o))Eo.call(o,n)&&zn(t,n,o[n]);return t},et=(t,o)=>xo(t,Bo(o));var No=(t,o,n,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of Mo(o))!Rn.call(t,a)&&a!==n&&fn(t,a,{get:()=>o[a],enumerable:!(l=bo(o,a))||l.enumerable});return t};var gt=(t,o,n)=>(n=t!=null?yo(Co(t)):{},No(o||!t||!t.__esModule?fn(n,"default",{value:t,enumerable:!0}):n,t));var T=(t,o,n)=>new Promise((l,a)=>{var u=f=>{try{m(n.next(f))}catch(d){a(d)}},s=f=>{try{m(n.throw(f))}catch(d){a(d)}},m=f=>f.done?l(f.value):Promise.resolve(f.value).then(u,s);m((n=n.apply(t,o)).next())});const vn=require("stream-markdown-parser"),e=require("vue"),wt=require("@floating-ui/dom");var hn=typeof document!="undefined"?document.currentScript:null;const To=["cite"],_o=e.defineComponent({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t){const o=t;return(n,l)=>(e.openBlock(),e.createElementBlock("blockquote",{class:"blockquote",dir:"auto",cite:t.node.cite},[e.withMemo([o.node.children],()=>e.createVNode(e.unref($e),{"index-key":`blockquote-${o.indexKey}`,nodes:o.node.children||[],"custom-id":o.customId,typewriter:o.typewriter,onCopy:l[0]||(l[0]=a=>n.$emit("copy",a))},null,8,["index-key","nodes","custom-id","typewriter"]),l,1)],8,To))}}),j=(t,o)=>{const n=t.__vccOpts||t;for(const[l,a]of o)n[l]=a;return n},yt=j(_o,[["__scopeId","data-v-eeadc8a3"]]);yt.install=t=>{t.component(yt.__name,yt)};const $o={class:"checkbox-node"},Io=["checked"],So=e.defineComponent({__name:"CheckboxNode",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("span",$o,[e.createElementVNode("input",{type:"checkbox",checked:t.node.checked,disabled:"",class:"checkbox-input"},null,8,Io)]))}}),je=j(So,[["__scopeId","data-v-8dc6c46f"]]);je.install=t=>{t.component(je.__name,je)};const Vo={class:"definition-list"},Lo={class:"definition-term"},Do={class:"definition-desc"},zo=e.defineComponent({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t){const o=t;return(n,l)=>(e.openBlock(),e.createElementBlock("dl",Vo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.items,(a,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[e.createElementVNode("dt",Lo,[e.createVNode(e.unref($e),{"index-key":`definition-term-${o.indexKey}-${u}`,nodes:a.term,"custom-id":o.customId,typewriter:o.typewriter,onCopy:l[0]||(l[0]=s=>n.$emit("copy",s))},null,8,["index-key","nodes","custom-id","typewriter"])]),e.createElementVNode("dd",Do,[e.createVNode(e.unref($e),{"index-key":`definition-desc-${o.indexKey}-${u}`,nodes:a.definition,"custom-id":o.customId,typewriter:o.typewriter,onCopy:l[1]||(l[1]=s=>n.$emit("copy",s))},null,8,["index-key","nodes","custom-id","typewriter"])])],64))),128))]))}}),xt=j(zo,[["__scopeId","data-v-f88691d6"]]);xt.install=t=>{t.component(xt.__name,xt)};const Ro={class:"emoji-node"},jo=e.defineComponent({__name:"EmojiNode",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("span",Ro,e.toDisplayString(t.node.name),1))}}),ie=j(jo,[["__scopeId","data-v-de55dc97"]]);ie.install=t=>{t.component(ie.__name,ie)};const Ft="__global__",it={};function Ho(t,o){typeof t=="string"?it[t]=o||{}:it[Ft]=t||{}}function He(t){return t?it[t]||it[Ft]||{}:it[Ft]||{}}function Ao(t){if(t===Ft)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete it[t]}function Po(){delete it[Ft]}const Ko=["id"],Wo=["title"],Fo=e.defineComponent({__name:"FootnoteReferenceNode",props:{node:{}},setup(t){const n=`#footnote-${t.node.id}`;function l(){if(typeof document=="undefined")return;const a=document.querySelector(n);a?a.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${n} not found`)}return(a,u)=>(e.openBlock(),e.createElementBlock("sup",{id:`fnref-${t.node.id}`,class:"footnote-reference",onClick:l},[e.createElementVNode("span",{href:n,title:`查看脚注 ${t.node.id}`,class:"footnote-link cursor-pointer"},"["+e.toDisplayString(t.node.id)+"]",9,Wo)],8,Ko))}}),se=j(Fo,[["__scopeId","data-v-01af0fee"]]);se.install=t=>{t.component(se.__name,se)};const Oo={class:"inline text-[85%] px-1 py-0.5 rounded font-mono bg-secondary whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},ce=e.defineComponent({__name:"InlineCodeNode",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("code",Oo,e.toDisplayString(t.node.code),1))}});ce.install=t=>{t.component(ce.__name,ce)};const Xo=["id"],Uo=e.defineComponent({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(t){const o=t,n=e.computed(()=>{if(o.isDark!==void 0&&o.isDark!==null)return!!o.isDark;if(typeof document!="undefined")try{if(document.documentElement.classList.contains("dark")||window!=null&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}catch(f){}return!1}),l=e.ref(null),a=e.ref({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),u=e.ref(!1);let s=null;function m(){return T(this,null,function*(){var p,B;if(!o.anchorEl||!l.value)return;const f=[wt.offset((p=o.offset)!=null?p:8),wt.flip(),wt.shift({padding:8})],{x:d,y:k}=yield wt.computePosition(o.anchorEl,l.value,{placement:(B=o.placement)!=null?B:"top",middleware:f,strategy:"fixed"});a.value.transform=`translate3d(${Math.round(d)}px, ${Math.round(k)}px, 0)`,a.value.left="0px",a.value.top="0px"})}return e.watch(()=>o.visible,f=>T(null,null,function*(){if(f)if(u.value=!1,yield e.nextTick(),o.anchorEl&&l.value)try{const d=o.anchorEl.getBoundingClientRect();yield m();const k=a.value.transform;if(o.originX!=null&&o.originY!=null){const p=Math.abs(Number(o.originX)-d.left),B=Math.abs(Number(o.originY)-d.top);Math.hypot(p,B)>120?(a.value.transform=`translate3d(${Math.round(o.originX)}px, ${Math.round(o.originY)}px, 0)`,yield e.nextTick(),u.value=!0,yield e.nextTick(),a.value.transform=k):u.value=!0}else u.value=!0;s=wt.autoUpdate(o.anchorEl,l.value,m)}catch(d){yield m(),u.value=!0,s=wt.autoUpdate(o.anchorEl,l.value,m)}else u.value=!0;else u.value=!1,s&&(s(),s=null)})),e.watch([()=>o.anchorEl,()=>o.placement,()=>o.content],()=>T(null,null,function*(){o.visible&&o.anchorEl&&l.value&&(yield e.nextTick(),yield m())})),e.onBeforeUnmount(()=>{s&&s()}),(f,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"tooltip",appear:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:o.id,ref_key:"tooltip",ref:l,style:e.normalizeStyle({position:"fixed",left:a.value.left,top:a.value.top,transform:a.value.transform}),class:e.normalizeClass(["z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border",[n.value?"bg-gray-900 text-white border-gray-700 border is-dark":"bg-white text-gray-900 border-gray-200 border"]]),role:"tooltip"},e.toDisplayString(t.content),15,Xo),[[e.vShow,t.visible&&u.value]])]),_:1})]))}}),Yo=j(Uo,[["__scopeId","data-v-993f63aa"]]),xn=e.ref(!1),Un=e.ref(""),Yn=e.ref("top"),Kt=e.ref(null),Ot=e.ref(null),bn=e.ref(null),Bn=e.ref(null),qn=e.ref(null);let en=null,tn=null;function Zn(){en&&(clearTimeout(en),en=null),tn&&(clearTimeout(tn),tn=null)}let jn=!1;function qo(){if(jn||typeof document=="undefined")return;jn=!0;const t=document.createElement("div");t.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(t);const o={setup(){return()=>{var n;return e.h(Yo,{visible:xn.value,"anchor-el":Kt.value,content:Un.value,placement:Yn.value,id:Ot.value,originX:bn.value,originY:Bn.value,isDark:(n=qn.value)!=null?n:void 0})}}};e.createApp(o).mount(t)}function _t(t,o,n="top",l=!1,a,u){if(!t)return;qo(),Zn();const s=()=>{var m,f;Ot.value=`tooltip-${Date.now()}-${Math.floor(Math.random()*1e3)}`,Kt.value=t,Un.value=o,Yn.value=n,bn.value=(m=a==null?void 0:a.x)!=null?m:null,Bn.value=(f=a==null?void 0:a.y)!=null?f:null,qn.value=typeof u=="boolean"?u:null,xn.value=!0;try{t.setAttribute("aria-describedby",Ot.value)}catch(d){}};l?s():en=setTimeout(s,80)}function rn(t=!1){Zn();const o=()=>{if(Kt.value&&Ot.value)try{Kt.value.removeAttribute("aria-describedby")}catch(n){}xn.value=!1,Kt.value=null,Ot.value=null,bn.value=null,Bn.value=null};t?o():tn=setTimeout(o,120)}function Zo(t){return(t.split(".").pop()||t).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,n=>n.toUpperCase()).trim()}const Gn={"common.copy":"Copy","common.copySuccess":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."};function Go(t){Object.assign(Gn,t)}function an(){try{const o=globalThis.$vueI18nUse||null;if(o&&typeof o=="function")try{const n=o();if(n&&typeof n.t=="function")return{t:n.t.bind(n)}}catch(n){}}catch(o){}const t=o=>{var n;return(n=Gn[o])!=null?n:Zo(o)};return T(null,null,function*(){try{const o=yield import("vue-i18n"),n=o.useI18n||o.default&&o.default.useI18n;if(n&&typeof n=="function")try{const l=n();if(l&&typeof l.t=="function")try{globalThis.$vueI18nUse=()=>l}catch(a){}}catch(l){}}catch(o){}}),{t}}const Jn=Symbol("ViewportPriority");function Jo(t,o){const n=typeof window!="undefined"&&typeof document!="undefined",l=typeof o=="boolean"?e.ref(o):o;let a=null;const u=new WeakMap;function s(){var d;if(a||!n)return a;if(typeof IntersectionObserver=="undefined")return null;const f=(d=t())!=null?d:null;return a=new IntersectionObserver(k=>{for(const p of k){const B=u.get(p.target);if(!B)continue;if(p.isIntersecting||p.intersectionRatio>0){if(!B.visible.value){B.visible.value=!0;try{B.resolve()}catch(L){}}a==null||a.unobserve(p.target),u.delete(p.target)}}},{root:f,rootMargin:"300px",threshold:0}),a}const m=(f,d)=>{const k=e.ref(!1);let p=!1,B;const E=new Promise(K=>{B=()=>{p||(p=!0,K())}}),L=()=>{try{a==null||a.unobserve(f)}catch(K){}u.delete(f)};if(!n||!l.value)return k.value=!0,B(),{isVisible:k,whenVisible:E,destroy:L};const D=s();return D?(u.set(f,{resolve:B,visible:k}),D.observe(f),{isVisible:k,whenVisible:E,destroy:L}):(k.value=!0,B(),{isVisible:k,whenVisible:E,destroy:L})};return e.provide(Jn,m),m}function ln(){const t=e.inject(Jn,void 0);if(t)return t;const o=new WeakMap;let n=null;const l=()=>n||(typeof window=="undefined"||typeof IntersectionObserver=="undefined"?null:(n=new IntersectionObserver(u=>{for(const s of u){const m=o.get(s.target);if(!m)continue;if(s.isIntersecting||s.intersectionRatio>0){if(!m.visible.value){m.visible.value=!0;try{m.resolve()}catch(d){}}n==null||n.unobserve(s.target),o.delete(s.target)}}},{root:null,rootMargin:"300px",threshold:0}),n));return u=>{const s=e.ref(!1);let m=!1,f;const d=new Promise(B=>{f=()=>{m||(m=!0,B())}}),k=()=>{try{n==null||n.unobserve(u)}catch(B){}o.delete(u)},p=l();return p?(o.set(u,{resolve:f,visible:s}),p.observe(u),{isVisible:s,whenVisible:d,destroy:k}):(s.value=!0,f(),{isVisible:s,whenVisible:d,destroy:k})}}const Qo={class:"relative inline-block"},er=["src","alt","title","loading","tabindex","aria-label"],tr={class:"text-sm whitespace-nowrap"},nr={key:1,class:"text-sm text-gray-500"},or={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},rr={class:"text-sm whitespace-nowrap"},ar={key:0,class:"mt-2 text-sm text-gray-500 italic"},lr=e.defineComponent({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},showCaption:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},svgMinHeight:{default:"12rem"},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(t,{emit:o}){const n=t,l=o,a=e.ref(!1),u=e.ref(!1),s=e.ref(!1),m=e.ref(null),f=ln(),d=e.ref(null),k=e.ref(typeof window=="undefined");typeof window!="undefined"&&e.watch(()=>m.value,N=>{var $;if(($=d.value)==null||$.destroy(),d.value=null,!N){k.value=!1;return}const re=f(N,{rootMargin:"400px"});d.value=re,k.value=re.isVisible.value,re.whenVisible.then(()=>{k.value=!0})},{immediate:!0}),e.onBeforeUnmount(()=>{var N;(N=d.value)==null||N.destroy(),d.value=null});const p=e.computed(()=>u.value&&n.fallbackSrc?n.fallbackSrc:n.node.src),B=e.computed(()=>!n.lazy||k.value),E=e.computed(()=>/\.svg(?:\?|$)/i.test(p.value));function L(){n.fallbackSrc&&!s.value?(s.value=!0,u.value=!0):(u.value=!0,l("error",n.node.src))}function D(){a.value=!0,u.value=!1,l("load",p.value)}function K(N){N.preventDefault(),!(!a.value||u.value)&&l("click",[N,p.value])}const{t:H}=an();return e.watch(p,()=>{a.value=!1,u.value=!1}),(N,re)=>(e.openBlock(),e.createElementBlock("figure",{ref_key:"figureRef",ref:m,class:"text-center my-8"},[e.createElementVNode("div",Qo,[e.createVNode(e.Transition,{name:"img-switch",mode:"out-in"},{default:e.withCtx(()=>{var $,P,C,te,Y;return[!t.node.loading&&!u.value&&B.value?(e.openBlock(),e.createElementBlock("img",{key:"image",src:p.value,alt:String((P=($=n.node.alt)!=null?$:n.node.title)!=null?P:""),title:String((te=(C=n.node.title)!=null?C:n.node.alt)!=null?te:""),class:e.normalizeClass(["max-w-96 h-auto rounded-lg transition-opacity duration-200 ease-in-out",{"opacity-0":!a.value,"opacity-100":a.value,"cursor-pointer":a.value}]),style:e.normalizeStyle(E.value?{minHeight:n.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:n.lazy?"lazy":"eager",decoding:"async",tabindex:a.value?0:-1,"aria-label":(Y=n.node.alt)!=null?Y:e.unref(H)("image.preview"),onError:L,onLoad:D,onClick:K},null,46,er)):u.value?!t.node.loading&&!n.fallbackSrc?(e.openBlock(),e.createElementBlock("div",or,[e.renderSlot(N.$slots,"error",{node:n.node,displaySrc:p.value,imageLoaded:a.value,hasError:u.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:E.value},()=>[re[1]||(re[1]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[e.createElementVNode("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),e.createElementVNode("span",rr,e.toDisplayString(e.unref(H)("image.loadError")),1)],!0)])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:e.normalizeStyle(E.value?{minHeight:n.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[n.usePlaceholder?e.renderSlot(N.$slots,"placeholder",{key:0,node:n.node,displaySrc:p.value,imageLoaded:a.value,hasError:u.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:E.value},()=>[re[0]||(re[0]=e.createElementVNode("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),e.createElementVNode("span",tr,e.toDisplayString(e.unref(H)("image.loading")),1)],!0):(e.openBlock(),e.createElementBlock("span",nr,e.toDisplayString(t.node.raw),1))],4))]}),_:3})]),n.showCaption&&n.node.alt?(e.openBlock(),e.createElementBlock("figcaption",ar,e.toDisplayString(n.node.alt),1)):e.createCommentVNode("",!0)],512))}}),Ge=j(lr,[["__scopeId","data-v-7ca79b66"]]);Ge.install=t=>{t.component(Ge.__name,Ge)};let Pt=null,nn=!1,Mn=Qn;function Qn(){return T(null,null,function*(){const t=yield import("katex");return yield import("katex/contrib/mhchem"),t})}function ir(){Pt=null,nn=!1}function Cn(t){Mn=t,ir()}function sr(t){Cn(t!=null?t:Qn)}function cr(){Cn(null)}function En(){return typeof Mn=="function"}function sn(){return T(this,null,function*(){if(Pt)return Pt;if(nn)return null;const t=Mn;if(!t)return nn=!0,null;try{const o=yield t();if(o)return Pt=o,Pt}catch(o){}return nn=!0,null})}const pn=e.shallowRef(!1);let Hn=null;function eo(){return Hn||(Hn=sn().then(t=>{pn.value=!!t}).catch(()=>{pn.value=!1})),e.readonly(pn)}const dr=e.defineComponent({__name:"TextNode",props:{node:{}},emits:["copy"],setup(t){const o=eo();return(n,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([[e.unref(o)&&t.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},e.toDisplayString(t.node.content),3))}}),ee=j(dr,[["__scopeId","data-v-56f30838"]]);ee.install=t=>{t.component(ee.__name,ee)};const Fe=e.defineAsyncComponent(()=>T(null,null,function*(){var o,n;if(typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((n=(o=globalThis.process)==null?void 0:o.env)==null?void 0:n.NODE_ENV)==="test")return l=>{var a,u;return e.h(ee,et(G({},l),{node:et(G({},l.node),{content:(u=l.node.raw)!=null?u:`$${(a=l.node.content)!=null?a:""}$`})}))};try{if(yield sn())return(yield Promise.resolve().then(()=>require("./index-Cn5LHgOE.cjs"))).default}catch(l){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',l)}return l=>{var a,u;return e.h(ee,et(G({},l),{node:et(G({},l.node),{content:(u=l.node.raw)!=null?u:`$${(a=l.node.content)!=null?a:""}$`})}))}})),ur=e.defineAsyncComponent(()=>T(null,null,function*(){try{if(yield sn())return(yield Promise.resolve().then(()=>require("./index-ClFlwUOZ.cjs"))).default}catch(t){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',t)}return t=>{var o,n;return e.h(ee,et(G({},t),{node:et(G({},t.node),{content:(n=t.node.raw)!=null?n:`$$${(o=t.node.content)!=null?o:""}$$`})}))}})),de=e.defineComponent({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("span",{class:"reference-node cursor-pointer bg-accent text-xs rounded-md px-1.5 mx-0.5 hover:bg-secondary",role:"button",tabindex:"0",onClick:n[0]||(n[0]=l=>o.$emit("click",l,t.node.id,t.messageId,t.threadId)),onMouseenter:n[1]||(n[1]=l=>o.$emit("mouseEnter",l,t.node.id,t.messageId,t.threadId)),onMouseleave:n[2]||(n[2]=l=>o.$emit("mouseLeave",l,t.node.id,t.messageId,t.threadId))},e.toDisplayString(t.node.id),33))}});de.install=t=>{t.component(de.__name,de)};const mr={class:"superscript-node"},fr={key:1},hr=e.defineComponent({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({text:ee,inline_code:ce,link:fe,strong:ue,emphasis:Ie,footnote_reference:se,strikethrough:me,highlight:be,insert:xe,subscript:ye,emoji:ie,math_inline:Fe,reference:de},n);return(a,u)=>(e.openBlock(),e.createElementBlock("sup",mr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(s,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${t.indexKey||"superscript"}-${m}`},[l[s.type]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:0,node:s,"custom-id":o.customId,"index-key":`${t.indexKey||"superscript"}-${m}`},null,8,["node","custom-id","index-key"])):(e.openBlock(),e.createElementBlock("span",fr,e.toDisplayString(s.content||s.raw),1))],64))),128))]))}}),ke=j(hr,[["__scopeId","data-v-9ae5549f"]]);ke.install=t=>{t.component(ke.__name,ke)};const pr={class:"subscript-node"},vr={key:1},gr=e.defineComponent({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({text:ee,inline_code:ce,link:fe,strong:ue,emphasis:Ie,footnote_reference:se,strikethrough:me,highlight:be,insert:xe,superscript:ke,emoji:ie,math_inline:Fe,reference:de},n);return(a,u)=>(e.openBlock(),e.createElementBlock("sub",pr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(s,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${t.indexKey||"subscript"}-${m}`},[l[s.type]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:0,node:s,"custom-id":o.customId,"index-key":`${t.indexKey||"subscript"}-${m}`},null,8,["node","custom-id","index-key"])):(e.openBlock(),e.createElementBlock("span",vr,e.toDisplayString(s.content||s.raw),1))],64))),128))]))}}),ye=j(gr,[["__scopeId","data-v-37438707"]]);ye.install=t=>{t.component(ye.__name,ye)};const wr={class:"strong-node"},kr=e.defineComponent({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({text:ee,inline_code:ce,link:fe,emphasis:Ie,strikethrough:me,highlight:be,insert:xe,subscript:ye,superscript:ke,emoji:ie,footnote_reference:se,math_inline:Fe,reference:de},n);return(a,u)=>(e.openBlock(),e.createElementBlock("strong",wr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${t.indexKey||"strong"}-${m}`,"index-key":`${t.indexKey||"strong"}-${m}`,node:s,"custom-id":o.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),ue=j(kr,[["__scopeId","data-v-3f61dca6"]]);ue.install=t=>{t.component(ue.__name,ue)};const yr={class:"strikethrough-node"},xr=e.defineComponent({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({text:ee,inline_code:ce,link:fe,strong:ue,emphasis:Ie,highlight:be,insert:xe,subscript:ye,superscript:ke,emoji:ie,footnote_reference:se,math_inline:Fe,reference:de},n);return(a,u)=>(e.openBlock(),e.createElementBlock("del",yr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${t.indexKey||"strikethrough"}-${m}`,node:s,"custom-id":o.customId,"index-key":`${t.indexKey||"strikethrough"}-${m}`},null,8,["node","custom-id","index-key"]))),128))]))}}),me=j(xr,[["__scopeId","data-v-8236f64d"]]);me.install=t=>{t.component(me.__name,me)};const br=["href","title","aria-label","aria-hidden"],Br=["aria-hidden"],Mr={class:"link-text-wrapper relative inline-flex"},Cr={class:"leading-[normal] link-text"},Er={class:"leading-[normal] link-text"},Nr=e.defineComponent({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(t){const o=t,n=e.computed(()=>{var d,k,p,B,E,L;const f=o.underlineBottom!==void 0?typeof o.underlineBottom=="number"?`${o.underlineBottom}px`:String(o.underlineBottom):"-3px";return{"--link-color":(d=o.color)!=null?d:"#0366d6","--underline-height":`${(k=o.underlineHeight)!=null?k:2}px`,"--underline-bottom":f,"--underline-opacity":String((p=o.animationOpacity)!=null?p:.9),"--underline-duration":`${(B=o.animationDuration)!=null?B:.8}s`,"--underline-timing":(E=o.animationTiming)!=null?E:"linear","--underline-iteration":typeof o.animationIteration=="number"?String(o.animationIteration):(L=o.animationIteration)!=null?L:"infinite"}}),l={text:ee,strong:ue,strikethrough:me,emphasis:Ie,image:Ge},a=e.useAttrs();function u(f){var B,E,L;if(!o.showTooltip)return;const d=f,k=(d==null?void 0:d.clientX)!=null&&(d==null?void 0:d.clientY)!=null?{x:d.clientX,y:d.clientY}:void 0,p=((B=o.node)==null?void 0:B.title)||((E=o.node)==null?void 0:E.href)||((L=o.node)==null?void 0:L.text)||"";_t(f.currentTarget,p,"top",!1,k)}function s(){o.showTooltip&&rn()}const m=e.computed(()=>{var f,d;return String((d=(f=o.node.title)!=null?f:o.node.href)!=null?d:"")});return(f,d)=>t.node.loading?(e.openBlock(),e.createElementBlock("span",e.mergeProps({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":t.node.loading?"false":"true"},e.unref(a),{style:n.value}),[e.createElementVNode("span",Mr,[e.createElementVNode("span",Cr,[e.createElementVNode("span",Er,e.toDisplayString(t.node.text),1)]),d[1]||(d[1]=e.createElementVNode("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,Br)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"link-node",href:t.node.href,title:t.showTooltip?"":m.value,"aria-label":`Link: ${m.value}`,"aria-hidden":t.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},e.unref(a),{style:n.value,onMouseenter:d[0]||(d[0]=k=>u(k)),onMouseleave:s}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(k,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[k.type]),{key:`${t.indexKey||"emphasis"}-${p}`,node:k,"custom-id":o.customId,"index-key":`${t.indexKey||"link-text"}-${p}`},null,8,["node","custom-id","index-key"]))),128))],16,br))}}),fe=j(Nr,[["__scopeId","data-v-80b69735"]]);fe.install=t=>{t.component(fe.__name,fe)};const Tr={class:"insert-node"},_r=e.defineComponent({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({text:ee,inline_code:ce,link:fe,strong:ue,emphasis:Ie,strikethrough:me,highlight:be,subscript:ye,superscript:ke,emoji:ie,footnote_reference:se,math_inline:Fe,reference:de},n);return(a,u)=>(e.openBlock(),e.createElementBlock("ins",Tr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${t.indexKey||"insert"}-${m}`,node:s,"custom-id":o.customId,"index-key":`${t.indexKey||"insert"}-${m}`},null,8,["node","custom-id","index-key"]))),128))]))}}),xe=j(_r,[["__scopeId","data-v-0b4b6459"]]);xe.install=t=>{t.component(xe.__name,xe)};const $r={class:"highlight-node"},Ir=e.defineComponent({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({text:ee,inline_code:ce,link:fe,strong:ue,emphasis:Ie,strikethrough:me,insert:xe,subscript:ye,superscript:ke,emoji:ie,footnote_reference:se,math_inline:Fe,reference:de},n);return(a,u)=>(e.openBlock(),e.createElementBlock("mark",$r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${t.indexKey||"highlight"}-${m}`,node:s,"custom-id":o.customId,"index-key":`${t.indexKey||"highlight"}-${m}`},null,8,["node","custom-id","index-key"]))),128))]))}}),be=j(Ir,[["__scopeId","data-v-fbe5e4f2"]]);be.install=t=>{t.component(be.__name,be)};const Sr={class:"emphasis-node"},Vr=e.defineComponent({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({text:ee,inline_code:ce,link:fe,strong:ue,strikethrough:me,highlight:be,insert:xe,subscript:ye,superscript:ke,emoji:ie,footnote_reference:se,math_inline:Fe,reference:de},n);return(a,u)=>(e.openBlock(),e.createElementBlock("em",Sr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${t.indexKey||"emphasis"}-${m}`,node:s,"custom-id":o.customId,"index-key":`${t.indexKey||"emphasis"}-${m}`},null,8,["node","custom-id","index-key"]))),128))]))}}),Ie=j(Vr,[["__scopeId","data-v-8723e015"]]);Ie.install=t=>{t.component(Ie.__name,Ie)};const Lr=["href","title"],Dr=e.defineComponent({__name:"FootnoteAnchorNode",props:{node:{}},setup(t){const o=t;function n(l){var s;if(l.preventDefault(),typeof document=="undefined")return;const a=`fnref-${String((s=o.node.id)!=null?s:"")}`,u=document.getElementById(a);u&&u.scrollIntoView({behavior:"smooth"})}return(l,a)=>(e.openBlock(),e.createElementBlock("a",{class:"footnote-anchor text-sm text-[#0366d6] hover:underline cursor-pointer",href:`#fnref-${t.node.id}`,title:`返回引用 ${t.node.id}`,onClick:n}," ↩︎ ",8,Lr))}}),st=j(Dr,[["__scopeId","data-v-4756ce0d"]]);st.install=t=>{t.component(st.__name,st)};const zr=["id"],Rr={class:"flex-1"},bt=e.defineComponent({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t){const o=t;return(n,l)=>(e.openBlock(),e.createElementBlock("div",{id:`fnref--${t.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[e.createElementVNode("div",Rr,[e.withMemo([o.node.children],()=>e.createVNode(e.unref($e),{"index-key":`footnote-${o.indexKey}`,nodes:o.node.children,"custom-id":o.customId,typewriter:o.typewriter,onCopy:l[0]||(l[0]=a=>n.$emit("copy",a))},null,8,["index-key","nodes","custom-id","typewriter"]),l,1)])],8,zr))}});bt.install=t=>{t.component(bt.__name,bt)};const jr={class:"hard-break"},Hr=e.defineComponent({__name:"HardBreakNode",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("br",jr))}}),tt=j(Hr,[["__scopeId","data-v-50c58f70"]]);tt.install=t=>{t.component(tt.__name,tt)};const Ar=e.defineComponent({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({text:ee,inline_code:ce,link:fe,image:Ge,strong:ue,emphasis:Ie,strikethrough:me,highlight:be,insert:xe,subscript:ye,superscript:ke,emoji:ie,checkbox:je,checkbox_input:je,footnote_reference:se,hardbreak:tt,math_inline:Fe,reference:de},n);return(a,u)=>e.withMemo([t.node.children],()=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(`h${t.node.level}`),{class:e.normalizeClass(["heading-node",[`heading-${t.node.level}`]]),dir:"auto"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(s,m,f,d)=>{const k=[s];if(d&&d.key===`${t.indexKey||"heading"}-${m}`&&e.isMemoSame(d,k))return d;const p=(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${t.indexKey||"heading"}-${m}`,"custom-id":o.customId,node:s,"index-key":`${t.indexKey||"heading"}-${m}`},null,8,["custom-id","node","index-key"]));return p.memo=k,p},u,0),128))]),_:1},8,["class"])),u,2)}}),gn=j(Ar,[["__scopeId","data-v-e3e7e2ce"]]),cn=gn;cn.install=t=>{t.component(gn.__name,gn)};const Pr=e.defineComponent({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},customId:{},typewriter:{type:Boolean}},emits:["copy"],setup(t){const o=t,n=e.computed(()=>o.value==null?{}:{value:o.value});return(l,a)=>(e.openBlock(),e.createElementBlock("li",e.mergeProps({class:"list-item pl-1.5 my-2",dir:"auto"},n.value),[e.withMemo([o.item.children],()=>e.createVNode(e.unref($e),{"index-key":`list-item-${o.indexKey}`,nodes:o.item.children,"custom-id":o.customId,typewriter:o.typewriter,"batch-rendering":!1,onCopy:a[0]||(a[0]=u=>l.$emit("copy",u))},null,8,["index-key","nodes","custom-id","typewriter"]),a,1)],16))}}),Bt=j(Pr,[["__scopeId","data-v-7a618746"]]);Bt.install=t=>{t.component(Bt.__name,Bt)};const Kr=e.defineComponent({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.node.ordered?"ol":"ul"),{class:e.normalizeClass(["list-node",{"list-decimal":t.node.ordered,"list-disc":!t.node.ordered}])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.items,(l,a,u,s)=>{var d;const m=[l];if(s&&s.key===`${t.indexKey||"list"}-${a}`&&e.isMemoSame(s,m))return s;const f=(e.openBlock(),e.createBlock(e.unref(Bt),{key:`${t.indexKey||"list"}-${a}`,item:l,"custom-id":t.customId,"index-key":`${t.indexKey||"list"}-${a}`,typewriter:t.typewriter,value:t.node.ordered?((d=t.node.start)!=null?d:1)+a:void 0,onCopy:n[0]||(n[0]=k=>o.$emit("copy",k))},null,8,["item","custom-id","index-key","typewriter","value"]));return f.memo=m,f},n,1),128))]),_:1},8,["class"]))}}),Mt=j(Kr,[["__scopeId","data-v-79057d57"]]);Mt.install=t=>{t.component(Mt.__name,Mt)};const Wr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e";function to(t){try{if(typeof globalThis!="undefined"&&typeof globalThis.requestAnimationFrame=="function")return globalThis.requestAnimationFrame(t)}catch(o){}return globalThis.setTimeout(t,0)}const Nn=()=>import("mermaid");let kt=null,Tn=Nn;function Fr(){kt=null}function _n(t){Tn=t,Fr()}function Or(t){_n(t!=null?t:Nn)}function Xr(){_n(null)}function no(){return typeof Tn=="function"}function Ur(t){if(!t)return t;const o=t&&t.default?t.default:t;if(o&&(typeof o.render=="function"||typeof o.parse=="function"||typeof o.initialize=="function"))return o;if(o&&o.mermaidAPI&&(typeof o.mermaidAPI.render=="function"||typeof o.mermaidAPI.parse=="function")){const n=o.mermaidAPI;return et(G({},o),{render:n.render.bind(n),parse:n.parse?n.parse.bind(n):void 0,initialize:l=>typeof o.initialize=="function"?o.initialize(l):n.initialize?n.initialize(l):void 0})}return t.mermaid&&typeof t.mermaid.render=="function"?t.mermaid:o}function Yr(t){if(t)try{const o=t==null?void 0:t.initialize;t.initialize=n=>{const l=G({suppressErrorRendering:!0},n||{});if(typeof o=="function")return o.call(t,l);if(t!=null&&t.mermaidAPI&&typeof t.mermaidAPI.initialize=="function")return t.mermaidAPI.initialize(l)}}catch(o){}}function qr(){return T(this,null,function*(){if(kt)return kt;const t=Tn;if(!t)return null;let o;try{o=yield t()}catch(n){throw t===Nn?new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.'):n}return o?(kt=Ur(o),Yr(kt),kt):null})}let oe=null,nt=null;const Q=new Map,Zr=5;let on=Zr,wn=!1;function Gr(t){wn=!!t}function Jr(t){Number.isFinite(t)&&t>0&&(on=Math.floor(t))}function Qr(){return{inFlight:Q.size,max:on}}const oo="WORKER_BUSY",ro="MERMAID_DISABLED";function ea(t){oe=t,nt=null;const o=t;oe.onmessage=n=>{if(oe!==o)return;const{id:l,ok:a,result:u,error:s}=n.data,m=Q.get(l);m&&(a===!1||s?m.reject(new Error(s||"Unknown error")):m.resolve(u))},oe.onerror=n=>{var l,a;if(oe===o){if(Q.size===0){(l=console.debug)==null||l.call(console,"[mermaidWorkerClient] Worker error (no pending):",(n==null?void 0:n.message)||n);return}try{wn?console.error("[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n):(a=console.debug)==null||a.call(console,"[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n)}catch(u){}for(const[u,s]of Q.entries())s.reject(new Error(`Worker error: ${n.message}`));Q.clear()}},oe.onmessageerror=n=>{var l,a;if(oe===o){if(Q.size===0){(l=console.debug)==null||l.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n);return}try{wn?console.error("[mermaidWorkerClient] Worker messageerror:",n):(a=console.debug)==null||a.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch(u){}for(const[u,s]of Q.entries())s.reject(new Error("Worker messageerror"));Q.clear()}}}function ta(){var t;if(oe)try{for(const[o,n]of Q.entries())n.reject(new Error("Worker cleared"));Q.clear(),(t=oe.terminate)==null||t.call(oe)}catch(o){}oe=null,nt=null}function na(){return oe||(nt=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),nt.name="WorkerInitError",nt.code="WORKER_INIT_ERROR",null)}function ao(t,o,n=1400){if(!no()){const a=new Error("Mermaid rendering disabled");return a.name="MermaidDisabled",a.code=ro,Promise.reject(a)}if(nt)return Promise.reject(nt);const l=na();if(!l)return Promise.reject(nt);if(Q.size>=on){const a=new Error("Worker busy");return a.name="WorkerBusy",a.code=oo,a.inFlight=Q.size,a.max=on,Promise.reject(a)}return new Promise((a,u)=>{const s=Math.random().toString(36).slice(2);let m=!1,f;const d=()=>{m||(m=!0,f!=null&&globalThis.clearTimeout(f),Q.delete(s))},k={resolve:p=>{d(),a(p)},reject:p=>{d(),u(p)}};Q.set(s,k);try{l.postMessage({id:s,action:t,payload:o})}catch(p){Q.delete(s),u(p);return}f=globalThis.setTimeout(()=>{const p=new Error("Worker call timed out");p.name="WorkerTimeout",p.code="WORKER_TIMEOUT";const B=Q.get(s);B&&B.reject(p)},n)})}function lo(t,o,n=1400){return T(this,null,function*(){try{return yield ao("canParse",{code:t,theme:o},n)}catch(l){return Promise.reject(l)}})}function io(t,o,n=1400){return T(this,null,function*(){try{return yield ao("findPrefix",{code:t,theme:o},n)}catch(l){return Promise.reject(l)}})}function kn(){if(oe)try{for(const[t,o]of Q.entries())o.reject(new Error("Worker terminated"));Q.clear(),oe.terminate()}finally{oe=null}}const oa={key:0},ra={key:1,class:"flex items-center space-x-2 overflow-hidden"},aa=["src"],la={key:2},ia={class:"flex items-center space-x-1"},sa={class:"flex items-center space-x-1"},ca={key:4},da={key:5,class:"flex items-center space-x-1"},ua=["aria-pressed"],ma={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},fa={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},ha=["disabled"],pa=["disabled"],va={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},ga={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},wa={key:1,class:"relative"},ka={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},ya={class:"flex items-center gap-2 backdrop-blur rounded-lg"},xa={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},ba=300,Ba=500,Ma=e.defineComponent({__name:"MermaidBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},workerTimeoutMs:{default:1400},parseTimeoutMs:{default:1800},renderTimeoutMs:{default:2500},fullRenderTimeoutMs:{default:4e3},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal","toggleMode"],setup(t,{emit:o}){var Vn,Ln;const n=t,l=o,{t:a}=an(),u=e.ref(!1);function s(){return T(this,null,function*(){try{const i=yield qr();return u.value=!!i,i}catch(i){throw u.value=!1,i}})}typeof window!="undefined"&&T(null,null,function*(){var i;try{const r=yield s();if(!r)return;(i=r==null?void 0:r.initialize)==null||i.call(r,{startOnLoad:!1,securityLevel:"loose"})}catch(r){u.value=!1,console.warn("[markstream-vue] Failed to initialize mermaid renderer. Call enableMermaid() to configure a loader.",r)}});const m=e.ref(!1),f=e.ref(!1),d=e.ref(),k=e.ref(),p=e.ref(),B=e.ref(),E=e.ref(null),L=ln(),D=e.ref(null),K=e.ref(typeof window=="undefined"),H=e.ref(),N=e.computed(()=>n.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode"));function re(i){const r=N.value,y=`%%{init: {"theme": "${i==="dark"?"dark":"default"}"}}%%
2
+ `;return r.trim().startsWith("%%{")?r:y+r}const $=e.ref(1),P=e.ref(0),C=e.ref(0),te=e.ref(!1),Y=e.ref({x:0,y:0}),I=e.ref(!1),q=e.ref(!1),Be=e.ref(!1),Oe=e.ref(null),Le=e.ref(0),Xe=e.ref(!1);let Me=null;const Z=e.ref("360px");let he=null;const F=e.ref(!1),pe=e.ref(!1),Ce=e.ref({}),Ue=e.ref(null),ae=e.ref(""),J=e.ref(0);let R=null;const le=e.ref(!1),De=e.ref({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),Ee=e.computed(()=>{var i,r,c,y;return{worker:(i=n.workerTimeoutMs)!=null?i:1400,parse:(r=n.parseTimeoutMs)!=null?r:1800,render:(c=n.renderTimeoutMs)!=null?c:2500,fullRender:(y=n.fullRenderTimeoutMs)!=null?y:4e3}}),$t=(Vn=globalThis.cancelIdleCallback)!=null?Vn:(i=>clearTimeout(i));let Ne=null,Se=null,Ae=!1,Te=800,v=null,g=0,b=!0;typeof window!="undefined"&&e.watch(()=>d.value,i=>{var c;if((c=D.value)==null||c.destroy(),D.value=null,!i){K.value=!1;return}const r=L(i,{rootMargin:"400px"});D.value=r,K.value=r.isVisible.value,r.whenVisible.then(()=>{K.value=!0})},{immediate:!0}),e.onBeforeUnmount(()=>{var i;(i=D.value)==null||i.destroy(),D.value=null});function z(i,r){const c=r==null?void 0:r.timeoutMs,y=r==null?void 0:r.signal;if(y!=null&&y.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let _=null,M=!1,W=null;return new Promise((V,ne)=>{const O=()=>{_!=null&&clearTimeout(_),W&&y&&y.removeEventListener("abort",W)};c&&c>0&&(_=globalThis.setTimeout(()=>{M||(M=!0,O(),ne(new Error("Operation timed out")))},c)),y&&(W=()=>{M||(M=!0,O(),ne(new DOMException("Aborted","AbortError")))},y.addEventListener("abort",W)),i().then(vt=>{M||(M=!0,O(),V(vt))}).catch(vt=>{M||(M=!0,O(),ne(vt))})})}function ve(i){if(typeof document=="undefined"||!p.value)return;const r=document.createElement("div");r.className="text-red-500 p-4",r.textContent="Failed to render diagram: ";const c=document.createElement("span");c.textContent=i instanceof Error?i.message:"Unknown error",r.appendChild(c),p.value.innerHTML="",p.value.appendChild(r),Z.value="360px",le.value=!0,at()}function Pe(i){const r=i;return!r||r.disabled}function X(i,r,c="top"){if(Pe(i.currentTarget))return;const y=i,_=(y==null?void 0:y.clientX)!=null&&(y==null?void 0:y.clientY)!=null?{x:y.clientX,y:y.clientY}:void 0;_t(i.currentTarget,r,c,!1,_,n.isDark)}function U(){rn()}function It(i){if(Pe(i.currentTarget))return;const r=m.value?a("common.copied")||"Copied":a("common.copy")||"Copy",c=i,y=(c==null?void 0:c.clientX)!=null&&(c==null?void 0:c.clientY)!=null?{x:c.clientX,y:c.clientY}:void 0;_t(i.currentTarget,r,"top",!1,y,n.isDark)}function St(i,r){const y=`%%{init: {"theme": "${r==="dark"?"dark":"default"}"}}%%
3
+ `;return i.trimStart().startsWith("%%{")?i:y+i}function Ut(){return b&&!I.value&&!F.value&&!le.value}function Vt(i){const r=i.split(/\r?\n/);for(;r.length>0;){const y=r[r.length-1].trimEnd();if(y===""){r.pop();continue}if(/^[-=~>|<\s]+$/.test(y.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(y)||/[-|><]$/.test(y)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(y)){r.pop();continue}break}return r.join(`
4
+ `)}function dn(i,r,c){return T(this,null,function*(){var V,ne;const y=yield s();if(!y)return;const _=y,M=St(i,r);if(typeof _.parse=="function")return yield z(()=>_.parse(M),{timeoutMs:(V=c==null?void 0:c.timeoutMs)!=null?V:Ee.value.parse,signal:c==null?void 0:c.signal}),!0;const W=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield z(()=>y.render(W,M),{timeoutMs:(ne=c==null?void 0:c.timeoutMs)!=null?ne:Ee.value.render,signal:c==null?void 0:c.signal}),!0})}function mt(i,r,c){return T(this,null,function*(){var y;try{return yield lo(i,r,(y=c==null?void 0:c.timeoutMs)!=null?y:Ee.value.worker)}catch(_){return yield dn(i,r,c)}})}function Yt(i,r,c){return T(this,null,function*(){var _;try{if(yield mt(i,r,c))return{fullOk:!0,prefixOk:!1}}catch(M){if((M==null?void 0:M.name)==="AbortError")throw M}let y=Vt(i);if(y&&y.trim()&&y!==i)try{try{const W=yield io(i,r,(_=c==null?void 0:c.timeoutMs)!=null?_:Ee.value.worker);W&&W.trim()&&(y=W)}catch(W){}if(yield mt(y,r,c))return{fullOk:!1,prefixOk:!0,prefix:y}}catch(M){if((M==null?void 0:M.name)==="AbortError")throw M}return{fullOk:!1,prefixOk:!1}})}const rt=e.computed(()=>I.value||Be.value||f.value);function Lt(i){if(!d.value||!p.value)return;const r=p.value.querySelector("svg");if(!r)return;let c=0,y=0;const _=r.getAttribute("viewBox"),M=r.getAttribute("width"),W=r.getAttribute("height");if(_){const V=_.split(" ");V.length===4&&(c=Number.parseFloat(V[2]),y=Number.parseFloat(V[3]))}if((!c||!y)&&M&&W&&(c=Number.parseFloat(M),y=Number.parseFloat(W)),Number.isNaN(c)||Number.isNaN(y)||c<=0||y<=0)try{const V=r.getBBox();V&&V.width>0&&V.height>0&&(c=V.width,y=V.height)}catch(V){console.error("Failed to get SVG BBox:",V);return}if(c>0&&y>0){const V=y/c;let O=(i!=null?i:d.value.clientWidth)*V;O>y&&(O=y),Z.value=`${O}px`}}const Ke=e.ref(!1),Dt=e.computed(()=>({transform:`translate(${P.value}px, ${C.value}px) scale(${$.value})`}));function zt(i){i.key==="Escape"&&Ke.value&&ft()}function qt(){if(Ke.value=!0,typeof document!="undefined")try{document.body.style.overflow="hidden"}catch(i){}if(typeof window!="undefined")try{window.addEventListener("keydown",zt)}catch(i){}e.nextTick(()=>{if(d.value&&B.value){const i=d.value.cloneNode(!0);i.classList.add("fullscreen");const r=i.querySelector("[data-mermaid-wrapper]");r&&(E.value=r,r.style.transform=Dt.value.transform),B.value.innerHTML="",B.value.appendChild(i)}})}function ft(){if(Ke.value=!1,B.value&&(B.value.innerHTML=""),E.value=null,typeof document!="undefined")try{document.body.style.overflow=""}catch(i){}if(typeof window!="undefined")try{window.removeEventListener("keydown",zt)}catch(i){}}function h(i,r){let c=null;return(...y)=>{c&&clearTimeout(c),c=setTimeout(()=>i(...y),r)}}function w(){if(!I.value||!u.value)return;const i=N.value.length;i!==Le.value&&(Xe.value=!0,Le.value=i,Me&&clearTimeout(Me),Me=setTimeout(()=>{Xe.value&&I.value&&N.value.trim()&&(Xe.value=!1,Rt("preview"))},Ba))}e.watch(Dt,i=>{Ke.value&&E.value&&(E.value.style.transform=i.transform)},{immediate:!0});function x(){$.value<3&&($.value+=.1)}function A(){$.value>.5&&($.value-=.1)}function S(){$.value=1,P.value=0,C.value=0}function _e(i){te.value=!0,i instanceof MouseEvent?Y.value={x:i.clientX-P.value,y:i.clientY-C.value}:Y.value={x:i.touches[0].clientX-P.value,y:i.touches[0].clientY-C.value}}function ze(i){if(!te.value)return;let r,c;i instanceof MouseEvent?(r=i.clientX,c=i.clientY):(r=i.touches[0].clientX,c=i.touches[0].clientY),P.value=r-Y.value.x,C.value=c-Y.value.y}function ge(){te.value=!1}function Re(i){if(i.ctrlKey||i.metaKey){if(i.preventDefault(),!d.value)return;const r=d.value.getBoundingClientRect(),c=i.clientX-r.left,y=i.clientY-r.top,_=r.width/2,M=r.height/2,W=c-_,V=y-M,ne=(W-P.value)/$.value,O=(V-C.value)/$.value,ko=-i.deltaY*.01,Qt=Math.min(Math.max($.value+ko,.5),3);Qt!==$.value&&(P.value=W-ne*Qt,C.value=V-O*Qt,$.value=Qt)}}function Ye(){return T(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(N.value)),m.value=!0,l("copy",N.value),setTimeout(()=>{m.value=!1},1e3)}catch(i){console.error("Failed to copy:",i)}})}function Je(i,r=null){return T(this,null,function*(){try{const c=r!=null?r:new XMLSerializer().serializeToString(i),y=new Blob([c],{type:"image/svg+xml;charset=utf-8"}),_=URL.createObjectURL(y);if(typeof document!="undefined"){const M=document.createElement("a");M.href=_,M.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(M),M.click(),document.body.removeChild(M)}catch(W){}URL.revokeObjectURL(_)}}catch(c){console.error("Failed to export SVG:",c)}})}function Zt(){var y;const i=(y=p.value)==null?void 0:y.querySelector("svg");if(!i){console.error("SVG element not found");return}const r=new XMLSerializer().serializeToString(i),c={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:i,svgString:r};l("export",c),c.defaultPrevented||Je(i,r)}function ht(){var y,_;const i=(_=(y=p.value)==null?void 0:y.querySelector("svg"))!=null?_:null,r=i?new XMLSerializer().serializeToString(i):null,c={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:i,svgString:r};l("openModal",c),c.defaultPrevented||qt()}function Qe(i){const r={payload:{type:"toggle-mode",target:i},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};l("toggleMode",i,r),r.defaultPrevented||Rt(i)}function Rt(i){return T(this,null,function*(){const r=H.value;if(!r){q.value=!0,I.value=i==="source";return}const c=r.getBoundingClientRect().height;r.style.height=`${c}px`,r.style.overflow="hidden",q.value=!0,I.value=i==="source",yield e.nextTick();const y=r.scrollHeight;r.style.transition="height 180ms ease",r.offsetHeight,r.style.height=`${y}px`;const _=()=>{r.style.transition="",r.style.height="",r.style.overflow="",r.removeEventListener("transitionend",M)};function M(){_()}r.addEventListener("transitionend",M),setTimeout(()=>_(),220)})}function pt(){return T(this,null,function*(){if(Be.value)return Oe.value;if(!p.value&&(yield e.nextTick(),!p.value)){console.warn("Mermaid container not ready");return}return Be.value=!0,Oe.value=T(null,null,function*(){var i;p.value&&(p.value.style.opacity="0");try{const r=yield s();if(!r)return;const c=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;!F.value&&!pe.value&&((i=r.initialize)==null||i.call(r,{securityLevel:"loose",startOnLoad:!1}));const y=n.isDark?"dark":"light",_=re(y),M=yield z(()=>r.render(c,_),{timeoutMs:Ee.value.fullRender}),W=M==null?void 0:M.svg,V=M==null?void 0:M.bindFunctions;if(p.value){p.value.innerHTML=W,V==null||V(p.value),!F.value&&!pe.value&&(Lt(),F.value=!0,De.value={zoom:$.value,translateX:P.value,translateY:C.value,containerHeight:Z.value});const ne=n.isDark?"dark":"light";Ce.value[ne]=W,pe.value&&(pe.value=!1),le.value=!1}}catch(r){console.error("Failed to render mermaid diagram:",r),n.loading===!1&&ve(r)}finally{yield e.nextTick(),p.value&&(p.value.style.opacity="1"),Be.value=!1,Oe.value=null}}),Oe.value})}function In(i){return T(this,null,function*(){if(Ut()&&!(!p.value&&(yield e.nextTick(),!p.value))&&!Be.value){Be.value=!0;try{const r=yield s();if(!r)return;const c=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,y=n.isDark?"dark":"light",_=Vt(i),M=_&&_.trim()?_:i,W=St(M,y);p.value&&(p.value.style.opacity="0");const V=yield z(()=>r.render(c,W),{timeoutMs:Ee.value.render}),ne=V==null?void 0:V.svg,O=V==null?void 0:V.bindFunctions;p.value&&ne&&(p.value.innerHTML=ne,O==null||O(p.value),Lt())}catch(r){}finally{yield e.nextTick(),p.value&&(p.value.style.opacity="1"),Be.value=!1}}})}const jt=(Ln=globalThis.requestIdleCallback)!=null?Ln:((i,r)=>setTimeout(()=>i({didTimeout:!0}),16));function Sn(){return T(this,null,function*(){var V,ne;const i=Date.now(),r=++J.value;R&&R.abort(),R=new AbortController;const c=R.signal,y=n.isDark?"dark":"light",_=N.value,M=_.replace(/\s+/g,"");if(!_.trim()){p.value&&(p.value.innerHTML=""),Ue.value=null,ae.value="",le.value=!1;return}if(M===ae.value)return;try{const O=yield Yt(_,y,{signal:c,timeoutMs:Ee.value.worker});if(O.fullOk){yield pt(),J.value===r&&(Ue.value=(ne=(V=p.value)==null?void 0:V.innerHTML)!=null?ne:null,ae.value=M,le.value=!1);return}const vt=g&&i<=g;if(O.prefixOk&&O.prefix&&Ut()&&!vt){yield In(O.prefix);return}}catch(O){if((O==null?void 0:O.name)==="AbortError")return}if(J.value!==r||le.value)return;const W=Ce.value[y];W&&p.value&&(p.value.innerHTML=W)})}const Ht=h(()=>{jt(()=>{Sn()},{timeout:500})},ba);function at(){Ae&&(Ae=!1,Te=800,b=!1,v&&(v.abort(),v=null),Ne&&(globalThis.clearTimeout(Ne),Ne=null),Se&&($t(Se),Se=null),g=Date.now())}function Gt(){if(at(),R){try{R.abort()}catch(i){}R=null}if(v){try{v.abort()}catch(i){}v=null}kn()}function un(i=800){Ae&&(Ne&&globalThis.clearTimeout(Ne),Ne=globalThis.setTimeout(()=>{Se=jt(()=>T(null,null,function*(){if(!Ae)return;if(I.value||F.value){at();return}const r=n.isDark?"dark":"light",c=N.value;if(!c.trim()){un(Te);return}v&&v.abort(),v=new AbortController;try{if((yield mt(c,r,{signal:v.signal,timeoutMs:Ee.value.worker}))&&(yield pt(),F.value)){at();return}}catch(y){}Te=Math.min(Math.floor(Te*1.5),4e3),un(Te)}),{timeout:500})},i))}function mn(){Ae||I.value||F.value||(Ae=!0,g=0,b=!0,un(500))}e.watch(()=>N.value,()=>{F.value=!1,Ce.value={},Ht(),!I.value&&u.value&&mn(),w()}),e.watch(()=>n.isDark,()=>T(null,null,function*(){if(!F.value||le.value)return;const i=n.isDark?"dark":"light";if(Ce.value[i]){p.value&&(p.value.innerHTML=Ce.value[i]);return}const r={zoom:$.value,translateX:P.value,translateY:C.value,containerHeight:Z.value},c=$.value!==1||P.value!==0||C.value!==0;pe.value=!0,c&&($.value=1,P.value=0,C.value=0,yield e.nextTick()),yield pt(),c&&(yield e.nextTick(),$.value=r.zoom,P.value=r.translateX,C.value=r.translateY,Z.value=r.containerHeight,De.value=r)})),e.watch(()=>I.value,i=>T(null,null,function*(){if(i)at(),F.value&&(De.value={zoom:$.value,translateX:P.value,translateY:C.value,containerHeight:Z.value});else{if(le.value)return;const r=n.isDark?"dark":"light";if(F.value&&Ce.value[r]){yield e.nextTick(),p.value&&(p.value.innerHTML=Ce.value[r]),$.value=De.value.zoom,P.value=De.value.translateX,C.value=De.value.translateY,Z.value=De.value.containerHeight;return}if(yield e.nextTick(),!u.value)return;yield Sn(),mn()}})),e.watch(()=>n.loading,(i,r)=>T(null,null,function*(){if(r===!0&&i===!1){const c=N.value.trim();if(!c)return Gt();const y=n.isDark?"dark":"light",_=c.replace(/\s+/g,"");if(F.value&&_===ae.value){yield e.nextTick(),p.value&&!p.value.querySelector("svg")&&Ce.value[y]&&(p.value.innerHTML=Ce.value[y]),Gt();return}try{yield mt(c,y,{timeoutMs:Ee.value.worker}),yield pt(),ae.value=_,le.value=!1,Gt()}catch(M){Gt(),ve(M)}}})),e.watch(d,i=>{he&&he.disconnect(),i&&!F.value&&!pe.value&&(he=new ResizeObserver(r=>{r&&r.length>0&&!F.value&&!pe.value&&to(()=>{const c=r[0].contentRect.width;Lt(c)})}),he.observe(i))},{immediate:!0}),e.onMounted(()=>T(null,null,function*(){yield e.nextTick(),q.value||(I.value=!u.value),K.value&&(Ht(),Le.value=N.value.length)})),e.watch(()=>u.value,i=>{q.value||(I.value=!i)}),e.watch(()=>K.value,i=>{i&&(F.value||(Ht(),Le.value=N.value.length),!n.loading&&!F.value&&Ht())},{immediate:!1}),e.onUnmounted(()=>{Me&&clearTimeout(Me),he&&he.disconnect(),R&&(R.abort(),R=null),kn(),at()}),e.watch(()=>f.value,i=>T(null,null,function*(){i?(at(),R&&R.abort()):F.value||(yield e.nextTick(),Ht(),I.value||mn())}),{immediate:!1});const Jt=e.computed(()=>n.isDark?"mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700");return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":n.loading}]])},[n.showHeader?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",n.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[i.$slots["header-left"]?(e.openBlock(),e.createElementBlock("div",oa,[e.renderSlot(i.$slots,"header-left",{},void 0,!0)])):(e.openBlock(),e.createElementBlock("div",ra,[e.createElementVNode("img",{src:e.unref(Wr),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,aa),e.createElementVNode("span",{class:e.normalizeClass(["text-sm font-medium font-mono truncate",n.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),i.$slots["header-center"]?(e.openBlock(),e.createElementBlock("div",la,[e.renderSlot(i.$slots,"header-center",{},void 0,!0)])):n.showModeToggle&&u.value?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["flex items-center space-x-1 rounded-md p-0.5",n.isDark?"bg-gray-700":"bg-gray-100"])},[e.createElementVNode("button",{class:e.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[I.value?n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:r[0]||(r[0]=()=>Qe("preview")),onMouseenter:r[1]||(r[1]=c=>X(c,e.unref(a)("common.preview")||"Preview")),onFocus:r[2]||(r[2]=c=>X(c,e.unref(a)("common.preview")||"Preview")),onMouseleave:U,onBlur:U},[e.createElementVNode("div",ia,[r[21]||(r[21]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("common.preview")||"Preview"),1)])],34),e.createElementVNode("button",{class:e.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[I.value?n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:r[3]||(r[3]=()=>Qe("source")),onMouseenter:r[4]||(r[4]=c=>X(c,e.unref(a)("common.source")||"Source")),onFocus:r[5]||(r[5]=c=>X(c,e.unref(a)("common.source")||"Source")),onMouseleave:U,onBlur:U},[e.createElementVNode("div",sa,[r[22]||(r[22]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(a)("common.source")||"Source"),1)])],34)],2)):e.createCommentVNode("",!0),i.$slots["header-right"]?(e.openBlock(),e.createElementBlock("div",ca,[e.renderSlot(i.$slots,"header-right",{},void 0,!0)])):(e.openBlock(),e.createElementBlock("div",da,[n.showCollapseButton?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(Jt.value),"aria-pressed":f.value,onClick:r[6]||(r[6]=c=>f.value=!f.value),onMouseenter:r[7]||(r[7]=c=>X(c,f.value?e.unref(a)("common.expand")||"Expand":e.unref(a)("common.collapse")||"Collapse")),onFocus:r[8]||(r[8]=c=>X(c,f.value?e.unref(a)("common.expand")||"Expand":e.unref(a)("common.collapse")||"Collapse")),onMouseleave:U,onBlur:U},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({rotate:f.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...r[23]||(r[23]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,ua)):e.createCommentVNode("",!0),n.showCopyButton?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(Jt.value),onClick:Ye,onMouseenter:r[9]||(r[9]=c=>It(c)),onFocus:r[10]||(r[10]=c=>It(c)),onMouseleave:U,onBlur:U},[m.value?(e.openBlock(),e.createElementBlock("svg",fa,[...r[25]||(r[25]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",ma,[...r[24]||(r[24]=[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),e.createElementVNode("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):e.createCommentVNode("",!0),n.showExportButton&&u.value?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(`${Jt.value} ${rt.value?"opacity-50 cursor-not-allowed":""}`),disabled:rt.value,onClick:Zt,onMouseenter:r[11]||(r[11]=c=>X(c,e.unref(a)("common.export")||"Export")),onFocus:r[12]||(r[12]=c=>X(c,e.unref(a)("common.export")||"Export")),onMouseleave:U,onBlur:U},[...r[26]||(r[26]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.createElementVNode("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,ha)):e.createCommentVNode("",!0),n.showFullscreenButton&&u.value?(e.openBlock(),e.createElementBlock("button",{key:3,class:e.normalizeClass(`${Jt.value} ${rt.value?"opacity-50 cursor-not-allowed":""}`),disabled:rt.value,onClick:ht,onMouseenter:r[13]||(r[13]=c=>X(c,Ke.value?e.unref(a)("common.minimize")||"Minimize":e.unref(a)("common.open")||"Open")),onFocus:r[14]||(r[14]=c=>X(c,Ke.value?e.unref(a)("common.minimize")||"Minimize":e.unref(a)("common.open")||"Open")),onMouseleave:U,onBlur:U},[Ke.value?(e.openBlock(),e.createElementBlock("svg",ga,[...r[28]||(r[28]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",va,[...r[27]||(r[27]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,pa)):e.createCommentVNode("",!0)]))],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"modeContainerRef",ref:H},[I.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["p-4",n.isDark?"bg-gray-900":"bg-gray-50"])},[e.createElementVNode("pre",{class:e.normalizeClass(["text-sm font-mono whitespace-pre-wrap",n.isDark?"text-gray-300":"text-gray-700"])},e.toDisplayString(N.value),3)],2)):(e.openBlock(),e.createElementBlock("div",wa,[n.showZoomControls?(e.openBlock(),e.createElementBlock("div",ka,[e.createElementVNode("div",ya,[e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:x,onMouseenter:r[15]||(r[15]=c=>X(c,e.unref(a)("common.zoomIn")||"Zoom in")),onFocus:r[16]||(r[16]=c=>X(c,e.unref(a)("common.zoomIn")||"Zoom in")),onMouseleave:U,onBlur:U},[...r[29]||(r[29]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:A,onMouseenter:r[17]||(r[17]=c=>X(c,e.unref(a)("common.zoomOut")||"Zoom out")),onFocus:r[18]||(r[18]=c=>X(c,e.unref(a)("common.zoomOut")||"Zoom out")),onMouseleave:U,onBlur:U},[...r[30]||(r[30]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:S,onMouseenter:r[19]||(r[19]=c=>X(c,e.unref(a)("common.resetZoom")||"Reset zoom")),onFocus:r[20]||(r[20]=c=>X(c,e.unref(a)("common.resetZoom")||"Reset zoom")),onMouseleave:U,onBlur:U},e.toDisplayString(Math.round($.value*100))+"% ",35)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"mermaidContainer",ref:d,class:e.normalizeClass(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",n.isDark?"bg-gray-900":"bg-gray-50"]),style:e.normalizeStyle({height:Z.value}),onWheel:Re,onMousedown:_e,onMousemove:ze,onMouseup:ge,onMouseleave:ge,onTouchstartPassive:_e,onTouchmovePassive:ze,onTouchendPassive:ge},[e.createElementVNode("div",{ref_key:"mermaidWrapper",ref:k,"data-mermaid-wrapper":"",class:e.normalizeClass(["absolute inset-0 cursor-grab",{"cursor-grabbing":te.value}]),style:e.normalizeStyle(Dt.value)},[e.createElementVNode("div",{ref_key:"mermaidContent",ref:p,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"mermaid-dialog",appear:""},{default:e.withCtx(()=>[Ke.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:e.withModifiers(ft,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",n.isDark?"bg-gray-900":"bg-white"])},[e.createElementVNode("div",xa,[e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:x},[...r[31]||(r[31]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:A},[...r[32]||(r[32]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:S},e.toDisplayString(Math.round($.value*100))+"% ",3),e.createElementVNode("button",{class:e.normalizeClass(["inline-flex items-center justify-center p-2 rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:ft},[...r[33]||(r[33]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),e.createElementVNode("div",{ref_key:"modalContent",ref:B,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden",onWheel:Re,onMousedown:_e,onMousemove:ze,onMouseup:ge,onMouseleave:ge,onTouchstart:_e,onTouchmove:ze,onTouchend:ge},null,544)],2)])):e.createCommentVNode("",!0)]),_:1})]))]))],512),[[e.vShow,!f.value]])],2))}}),ct=j(Ma,[["__scopeId","data-v-32888c9e"]]);ct.install=t=>{t.component(ct.__name,ct)};const Ca={dir:"auto",class:"paragraph-node"},Ea=e.defineComponent({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=He(o.customId),l=G({inline_code:ce,image:Ge,link:fe,hardbreak:tt,emphasis:Ie,strong:ue,strikethrough:me,highlight:be,insert:xe,subscript:ye,superscript:ke,emoji:ie,checkbox:je,math_inline:Fe,checkbox_input:je,reference:de,footnote_anchor:st,footnote_reference:se},n),a=eo();return(u,s)=>(e.openBlock(),e.createElementBlock("p",Ca,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(m,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${t.indexKey||"paragraph"}-${f}`},[m.type!=="text"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[m.type]),{key:0,node:m,"index-key":`${t.indexKey}-${f}`,"custom-id":o.customId},null,8,["node","index-key","custom-id"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([[e.unref(a)&&m.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},e.toDisplayString(m.content),3))],64))),128))]))}}),Ct=j(Ea,[["__scopeId","data-v-0828c7fc"]]);Ct.install=t=>{t.component(Ct.__name,Ct)};const Na=["aria-busy","aria-label","data-language"],Ta=["textContent"],dt=e.defineComponent({__name:"PreCodeNode",props:{node:{}},setup(t){const o=t,n=e.computed(()=>{var f,d,k;const u=String((d=(f=o.node)==null?void 0:f.language)!=null?d:"");return String((k=String(u).split(/\s+/g)[0])!=null?k:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),l=e.computed(()=>`language-${n.value}`),a=e.computed(()=>{const u=n.value;return u?`Code block: ${u}`:"Code block"});return(u,s)=>(e.openBlock(),e.createElementBlock("pre",{class:e.normalizeClass([l.value]),"aria-busy":t.node.loading===!0,"aria-label":a.value,"data-language":n.value,tabindex:"0"},[e.createElementVNode("code",{translate:"no",textContent:e.toDisplayString(t.node.code)},null,8,Ta)],10,Na))}});dt.install=t=>{t.component(dt.__name,dt)};const _a={class:"table-node-wrapper"},$a=["aria-busy"],Ia={class:"border-[var(--table-border,#cbd5e1)]"},Sa={class:"border-b"},Va={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},La=e.defineComponent({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t){const o=t,n=e.computed(()=>{var s,m,f,d;return(d=(f=(m=(s=o.node)==null?void 0:s.header)==null?void 0:m.cells)==null?void 0:f.length)!=null?d:0}),l=e.computed(()=>{const s=n.value||1,m=Math.floor(100/s);return Array.from({length:s}).map((f,d)=>d===s-1?`${100-m*(s-1)}%`:`${m}%`)}),a=e.computed(()=>{var s;return(s=o.node.loading)!=null?s:!1}),u=e.computed(()=>{var s;return(s=o.node.rows)!=null?s:[]});return(s,m)=>(e.openBlock(),e.createElementBlock("div",_a,[e.createElementVNode("table",{class:e.normalizeClass(["w-full my-8 text-sm table-fixed table-node",{"table-node--loading":a.value}]),"aria-busy":a.value},[e.createElementVNode("colgroup",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(f,d)=>(e.openBlock(),e.createElementBlock("col",{key:`col-${d}`,style:e.normalizeStyle({width:f})},null,4))),128))]),e.createElementVNode("thead",Ia,[e.createElementVNode("tr",Sa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.header.cells,(f,d)=>(e.openBlock(),e.createElementBlock("th",{key:`header-${d}`,dir:"auto",class:e.normalizeClass(["font-semibold p-[calc(4/7*1em)] overflow-x-auto",[f.align==="right"?"text-right":f.align==="center"?"text-center":"text-left"]])},[e.createVNode(e.unref($e),{nodes:f.children,"index-key":`table-th-${o.indexKey}`,"custom-id":o.customId,typewriter:o.typewriter,onCopy:m[0]||(m[0]=k=>s.$emit("copy",k))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(f,d)=>(e.openBlock(),e.createElementBlock("tr",{key:`row-${d}`,class:e.normalizeClass(["border-[var(--table-border,#cbd5e1)]",[d<u.value.length-1?"border-b":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.cells,(k,p)=>(e.openBlock(),e.createElementBlock("td",{key:`cell-${d}-${p}`,class:e.normalizeClass(["p-[calc(4/7*1em)] overflow-x-auto",[k.align==="right"?"text-right":k.align==="center"?"text-center":"text-left"]]),dir:"auto"},[e.createVNode(e.unref($e),{nodes:k.children,"index-key":`table-td-${o.indexKey}`,"custom-id":o.customId,typewriter:o.typewriter,onCopy:m[1]||(m[1]=B=>s.$emit("copy",B))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))],2))),128))])],10,$a),e.createVNode(e.Transition,{name:"table-node-fade"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("div",Va,[e.renderSlot(s.$slots,"loading",{isLoading:a.value},()=>[m[2]||(m[2]=e.createElementVNode("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),m[3]||(m[3]=e.createElementVNode("span",{class:"sr-only"},"Loading",-1))],!0)])):e.createCommentVNode("",!0)]),_:3})]))}}),Et=j(La,[["__scopeId","data-v-a874491c"]]);Et.install=t=>{t.component(Et.__name,Et)};const Da={},za={class:"hr-node"};function Ra(t,o){return e.openBlock(),e.createElementBlock("hr",za)}const Nt=j(Da,[["render",Ra],["__scopeId","data-v-639cbad9"]]);Nt.install=t=>{t.component(Nt.__name,Nt)};const ja={key:1,class:"html-block-node__placeholder"},Ha=e.defineComponent({__name:"HtmlBlockNode",props:{node:{}},setup(t){const o=t,n=e.computed(()=>{const d=o.node.attrs;if(d){if(Array.isArray(d)){const k={};for(const p of d){if(!p||p.length<2)continue;const[B,E]=p;B!=null&&(k[String(B)]=E==null?"":String(E))}return k}return d}}),l=e.ref(null),a=e.ref(typeof window=="undefined"),u=e.ref(o.node.content),s=ln(),m=e.ref(null),f=!!o.node.loading;return typeof window!="undefined"?(e.watch(l,d=>{var p,B;if((B=(p=m.value)==null?void 0:p.destroy)==null||B.call(p),m.value=null,!f){a.value=!0,u.value=o.node.content;return}if(!d){a.value=!1;return}const k=s(d,{rootMargin:"400px"});m.value=k,a.value=k.isVisible.value,k.whenVisible.then(()=>{a.value=!0})},{immediate:!0}),e.watch(()=>o.node.content,d=>{(!f||a.value)&&(u.value=d)})):a.value=!0,e.onBeforeUnmount(()=>{var d,k;(k=(d=m.value)==null?void 0:d.destroy)==null||k.call(d),m.value=null}),(d,k)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"htmlRef",ref:l,class:"html-block-node"},n.value),[a.value?e.withMemo([u.value],()=>(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:u.value},null,8,["innerHTML"])),k,0):(e.openBlock(),e.createElementBlock("div",ja,[e.renderSlot(d.$slots,"placeholder",{node:t.node},()=>[k[1]||(k[1]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar"},null,-1)),k[2]||(k[2]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),k[3]||(k[3]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),Aa=j(Ha,[["__scopeId","data-v-ed22b926"]]),Pa={class:"unknown-node"},An=e.defineComponent({__name:"FallbackComponent",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",Pa,e.toDisplayString(t.node.raw),1))}}),Ka=["data-node-index","data-node-type"],Wa=e.defineComponent({__name:"NodeRenderer",props:{content:{},nodes:{},parseOptions:{},customMarkdownIt:{},viewportPriority:{type:Boolean},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},renderCodeBlocksAsPre:{type:Boolean},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},themes:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:Boolean,default:!0},batchRendering:{type:Boolean,default:!0},initialRenderBatchSize:{default:40},renderBatchSize:{default:80},renderBatchDelay:{default:16},renderBatchBudgetMs:{default:6},renderBatchIdleTimeoutMs:{default:120},deferNodesUntilVisible:{type:Boolean,default:!0},maxLiveNodes:{default:320},liveNodeBuffer:{default:60}},emits:["copy","handleArtifactClick","click","mouseover","mouseout"],setup(t,{emit:o}){var zt,qt,ft;const n=t,l=o,a=e.ref(),u=e.ref(n.viewportPriority!==!1),s=Jo(()=>a.value,u),m=vn.getMarkdown(),f=e.computed(()=>n.customMarkdownIt?n.customMarkdownIt(m):m),d=e.computed(()=>{var h;if((h=n.nodes)!=null&&h.length)return e.markRaw(n.nodes.slice());if(n.content){const w=vn.parseMarkdownToStructure(n.content,f.value,n.parseOptions);return e.markRaw(w)}return[]}),k=typeof window!="undefined",p=k&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,B=k&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,E=typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((qt=(zt=globalThis.process)==null?void 0:zt.env)==null?void 0:qt.NODE_ENV)==="test",L=k&&typeof window.requestIdleCallback=="function",D=e.computed(()=>{var w;const h=Math.trunc((w=n.renderBatchSize)!=null?w:80);return Number.isFinite(h)?Math.max(0,h):0}),K=e.computed(()=>{var w;const h=Math.trunc((w=n.initialRenderBatchSize)!=null?w:D.value);return Number.isFinite(h)?Math.max(0,h):D.value}),H=e.computed(()=>n.batchRendering!==!1&&D.value>0&&k&&!E),N=e.ref(0),re=e.ref({key:n.indexKey,total:0}),$=e.ref(Math.max(1,D.value||1)),P=e.reactive({}),C=new Map,te=new Map,Y=e.computed(()=>n.deferNodesUntilVisible!==!1&&u.value!==!1),I=e.computed(()=>{var h;return((h=n.maxLiveNodes)!=null?h:0)>0}),q=e.computed(()=>H.value&&!I.value),Be=e.ref({batchSize:D.value,initial:K.value,delay:(ft=n.renderBatchDelay)!=null?ft:16,enabled:q.value}),Oe=e.computed(()=>!!s&&(Y.value||I.value)),Le=e.computed(()=>{var h;return Math.max(1,(h=n.maxLiveNodes)!=null?h:320)}),Xe=e.computed(()=>{var h;return Math.max(0,(h=n.liveNodeBuffer)!=null?h:60)}),Me=e.ref(0),Z=e.reactive({start:0,end:0}),he=new Map,F=e.computed(()=>{if(!I.value)return d.value.length;const h=Xe.value,w=Math.max(Z.end+h,K.value),x=Math.min(d.value.length,w);return Math.max(N.value,x)});function pe(h,w,x){return Math.min(Math.max(h,w),x)}function Ce(){const h=d.value.length;if(!I.value||h===0){Z.start=0,Z.end=h;return}const w=Math.min(Le.value,h),x=Xe.value,A=pe(Me.value-x,0,Math.max(0,h-w));Z.start=A,Z.end=Math.min(h,A+w)}const Ue=e.reactive({}),ae=e.reactive({total:0,count:0});function J(h,w){if(!Number.isFinite(w)||w<=0)return;const x=Ue[h];Ue[h]=w,x?ae.total+=w-x:(ae.total+=w,ae.count++)}const R=e.computed(()=>ae.count>0?Math.max(12,ae.total/ae.count):32);function le(h,w){var A;if(h>=w)return 0;let x=0;for(let S=h;S<w;S++)x+=(A=Ue[S])!=null?A:R.value;return x}const De=e.computed(()=>{if(!I.value)return d.value.map((A,S)=>({node:A,index:S}));const h=d.value.length,w=pe(Z.start,0,h),x=pe(Z.end,w,h);return d.value.slice(w,x).map((A,S)=>({node:A,index:w+S}))}),Ee=e.computed(()=>I.value?le(0,Math.min(Z.start,d.value.length)):0),$t=e.computed(()=>{if(!I.value)return 0;const h=d.value.length,w=Math.min(Z.end,h);return le(w,h)});function Ne(h){if(C.size&&I.value)for(const[w,x]of C)w>=h&&(x.destroy(),C.delete(w),Y.value&&delete P[w],te.delete(w))}function Se(h,w){Y.value&&(P[h]=w),w&&(Me.value=pe(h,0,Math.max(0,d.value.length-1)))}function Ae(h){return q.value&&h>=N.value?!1:!Y.value||h<K.value?!0:P[h]===!0}function Te(h){const w=C.get(h);w&&(w.destroy(),C.delete(h))}function v(h,w){if(w?te.set(h,w):te.delete(h),!Oe.value||!s){Te(h),w?Se(h,!0):Y.value&&delete P[h];return}if(h<K.value&&!I.value){Te(h),Se(h,!0);return}if(!w){Te(h),Y.value&&delete P[h];return}Te(h);const x=s(w,{rootMargin:"400px"});x&&(C.set(h,x),Se(h,x.isVisible.value),x.whenVisible.then(()=>{Se(h,!0)}).catch(()=>{}).finally(()=>{C.get(h)===x&&C.delete(h);try{x.destroy()}catch(A){}}))}function g(h,w){if(!w){he.delete(h);return}he.set(h,w),queueMicrotask(()=>{J(h,w.offsetHeight)})}let b=null,z=null,ve=!1,Pe=null,X=null;function U(){k&&(b!=null&&(B==null||B(b),b=null),z!=null&&(window.clearTimeout(z),z=null),X!=null&&typeof window.cancelIdleCallback=="function"&&(window.cancelIdleCallback(X),X=null),ve=!1,Pe=null)}function It(h,w={}){var ze,ge;if(!q.value)return;const x=F.value;if(N.value>=x)return;const A=Math.max(1,h),S=Re=>{var Qe;b=null,z=null,X=null,ve=!1;const Ye=Pe!=null?Pe:A;Pe=null;const Je=Math.max(2,(Qe=n.renderBatchBudgetMs)!=null?Qe:6),Zt=Rt=>{const pt=typeof performance!="undefined"?performance.now():Date.now();N.value=Math.min(x,N.value+Math.max(1,Rt)),Ne(N.value);const jt=(typeof performance!="undefined"?performance.now():Date.now())-pt;return Ut(jt),jt};let ht=Ye;for(;Zt(ht),!(N.value>=x||!Re||(typeof Re.timeRemaining=="function"?Re.timeRemaining():0)<=Je*.5);)ht=Math.max(1,Math.round($.value));N.value<x&&St()};if(!k||w.immediate){S();return}const _e=Math.max(0,(ze=n.renderBatchDelay)!=null?ze:16);if(Pe=Pe!=null?Math.max(Pe,A):A,!ve){if(ve=!0,!E&&L&&window.requestIdleCallback){const Re=Math.max(0,(ge=n.renderBatchIdleTimeoutMs)!=null?ge:120);X=window.requestIdleCallback(Ye=>{S(Ye)},{timeout:Re});return}if(!p||E){z=window.setTimeout(()=>S(),_e);return}b=p(()=>{if(_e===0){S();return}z=window.setTimeout(()=>S(),_e)})}}function St(){if(!q.value)return;const h=H.value?Math.max(1,Math.round($.value)):Math.max(1,D.value);It(h)}function Ut(h){var S;if(!q.value)return;const w=Math.max(2,(S=n.renderBatchBudgetMs)!=null?S:6),x=Math.max(1,D.value||1),A=Math.max(1,Math.floor(x/4));h>w*1.2?$.value=Math.max(A,Math.floor($.value*.7)):h<w*.5&&$.value<x&&($.value=Math.min(x,Math.ceil($.value*1.2)))}e.watch([()=>d.value,()=>d.value.length,()=>q.value,()=>D.value,()=>K.value,()=>n.renderBatchDelay,()=>n.indexKey],()=>{var Qe;const w=d.value.length,x=re.value,A=n.indexKey,S=A!==void 0&&A!==x.key,_e=w!==x.total,ze=S||_e;re.value={key:A,total:w};const ge=Be.value,Re=(Qe=n.renderBatchDelay)!=null?Qe:16,Ye=ge.batchSize!==D.value||ge.initial!==K.value||ge.delay!==Re||ge.enabled!==q.value;Be.value={batchSize:D.value,initial:K.value,delay:Re,enabled:q.value},(ze||Ye||!q.value)&&U(),(ze||Ye)&&($.value=Math.max(1,D.value||1));const Je=F.value;if(!w){N.value=0,Ne(0);return}if(!q.value){N.value=Je,Ne(N.value);return}S||x.total===0||Ye?N.value=Math.min(Je,K.value):N.value=Math.min(N.value,Je);const ht=Math.max(1,K.value||D.value||w);N.value<Je?It(ht,{immediate:!k}):Ne(N.value)},{immediate:!0}),e.watch(()=>Y.value,h=>{if(!h){for(const w of C.values())w.destroy();C.clear();for(const w of Object.keys(P))delete P[w];for(const[w,x]of te)x&&Se(w,!0);return}for(const[w,x]of te)v(w,x)},{immediate:!1}),e.watch(()=>N.value,(h,w)=>{I.value&&(typeof w=="number"&&h<=w||h>0&&(Me.value=h-1))}),e.watch(()=>n.viewportPriority,h=>{u.value=h!==!1}),e.watch([Me,Le,Xe,()=>d.value.length,I],()=>{Ce()},{immediate:!0}),e.watch(()=>F.value,(h,w)=>{q.value&&(typeof w=="number"&&h<=w||h>N.value&&St())}),e.onBeforeUnmount(()=>{U();for(const h of C.values())h.destroy();C.clear()});const Vt=e.defineAsyncComponent(()=>T(null,null,function*(){try{return(yield Promise.resolve().then(()=>require("./index-CapyHsmU.cjs"))).default}catch(h){return console.warn('[markstream-vue] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".',h),dt}})),dn=e.computed(()=>n.renderCodeBlocksAsPre?dt:Vt),mt={text:ee,paragraph:Ct,heading:cn,code_block:Vt,list:Mt,blockquote:yt,table:Et,definition_list:xt,footnote:bt,footnote_reference:se,footnote_anchor:st,admonition:Tt,hardbreak:tt,link:fe,image:Ge,thematic_break:Nt,math_inline:Fe,math_block:ur,strong:ue,emphasis:Ie,strikethrough:me,highlight:be,insert:xe,subscript:ye,superscript:ke,emoji:ie,checkbox:je,checkbox_input:je,inline_code:ce,reference:de,html_block:Aa};function Yt(h){var A;if(!h)return An;const w=He(n.customId),x=w[String(h.type)];if(h.type==="code_block"){if(String((A=h.language)!=null?A:"").trim().toLowerCase()==="mermaid")return w.mermaid||ct;if(x)return x;const _e=w.code_block;return _e||dn.value}return x||mt[String(h.type)]||An}function rt(h){var w;return(h==null?void 0:h.type)==="code_block"&&String((w=h.language)!=null?w:"").trim().toLowerCase()==="mermaid"?{}:h.type==="code_block"?G({stream:n.codeBlockStream,darkTheme:n.codeBlockDarkTheme,lightTheme:n.codeBlockLightTheme,monacoOptions:n.codeBlockMonacoOptions,themes:n.themes,minWidth:n.codeBlockMinWidth,maxWidth:n.codeBlockMaxWidth},n.codeBlockProps||{}):{typewriter:n.typewriter}}function Lt(h){l("click",h)}function Ke(h){var x;(x=h.target)!=null&&x.closest("[data-node-index]")&&l("mouseover",h)}function Dt(h){var x;(x=h.target)!=null&&x.closest("[data-node-index]")&&l("mouseout",h)}return(h,w)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"markdown-renderer",onClick:Lt,onMouseover:Ke,onMouseout:Dt},[I.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"node-spacer",style:e.normalizeStyle({height:`${Ee.value}px`}),"aria-hidden":"true"},null,4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(De.value,x=>{var A;return e.openBlock(),e.createElementBlock("div",{key:x.index,ref_for:!0,ref:S=>v(x.index,S),class:"node-slot","data-node-index":x.index,"data-node-type":x.node.type},[Ae(x.index)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_for:!0,ref:S=>g(x.index,S),class:"node-content"},[x.node.type!=="code_block"&&n.typewriter!==!1?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"typewriter",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Yt(x.node)),e.mergeProps({node:x.node,loading:x.node.loading,"index-key":`${t.indexKey||"markdown-renderer"}-${x.index}`},{ref_for:!0},rt(x.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:w[0]||(w[0]=S=>l("copy",S)),onHandleArtifactClick:w[1]||(w[1]=S=>l("handleArtifactClick",S))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Yt(x.node)),e.mergeProps({key:1,node:x.node,loading:x.node.loading,"index-key":`${t.indexKey||"markdown-renderer"}-${x.index}`},{ref_for:!0},rt(x.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:w[2]||(w[2]=S=>l("copy",S)),onHandleArtifactClick:w[3]||(w[3]=S=>l("handleArtifactClick",S))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],512)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"node-placeholder",style:e.normalizeStyle({height:`${(A=Ue[x.index])!=null?A:R.value}px`})},null,4))],8,Ka)}),128)),I.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"node-spacer",style:e.normalizeStyle({height:`${$t.value}px`}),"aria-hidden":"true"},null,4)):e.createCommentVNode("",!0)],544))}}),$e=j(Wa,[["__scopeId","data-v-2ed78136"]]);$e.install=t=>{var n,l;const o=(l=(n=$e.__name)!=null?n:$e.name)!=null?l:"NodeRenderer";t.component(o,$e)};const Fa={key:0,class:"admonition-icon"},Oa={class:"admonition-title"},Xa=["aria-expanded","aria-controls","title"],Ua={key:0},Ya={key:1},qa=["id"],Za=e.defineComponent({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t,{emit:o}){var d;const n=t,l=o,a={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},u=e.computed(()=>{if(n.node.title&&n.node.title.trim().length)return n.node.title;const k=n.node.kind||"note";return k.charAt(0).toUpperCase()+k.slice(1)}),s=e.ref(n.node.collapsible?!((d=n.node.open)==null||d):!1);function m(){n.node.collapsible&&(s.value=!s.value)}const f=`admonition-${Math.random().toString(36).slice(2,9)}`;return(k,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["admonition",[`admonition-${n.node.kind}`,n.isDark?"is-dark":""]])},[e.createElementVNode("div",{id:f,class:"admonition-header"},[a[n.node.kind]?(e.openBlock(),e.createElementBlock("span",Fa,e.toDisplayString(a[n.node.kind]),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Oa,e.toDisplayString(u.value),1),n.node.collapsible?(e.openBlock(),e.createElementBlock("button",{key:1,class:"admonition-toggle","aria-expanded":!s.value,"aria-controls":`${f}-content`,title:s.value?"Expand":"Collapse",onClick:m},[s.value?(e.openBlock(),e.createElementBlock("span",Ua,"▶")):(e.openBlock(),e.createElementBlock("span",Ya,"▼"))],8,Xa)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",{id:`${f}-content`,class:"admonition-content","aria-labelledby":f},[e.withMemo([n.node.children],()=>e.createVNode(e.unref($e),{"index-key":`admonition-${t.indexKey}`,nodes:n.node.children,"custom-id":n.customId,typewriter:n.typewriter,onCopy:p[0]||(p[0]=B=>l("copy",B))},null,8,["index-key","nodes","custom-id","typewriter"]),p,1)],8,qa),[[e.vShow,!s.value]])],2))}}),Tt=j(Za,[["__scopeId","data-v-5e95c2b7"]]);Tt.install=t=>{t.component(Tt.__name,Tt)};let Pn=!1;function Ga(t){return T(this,null,function*(){if(!Pn)return Pn=!0,t.preloadMonacoWorkers()})}let At=null,Kn=!1;function Ja(){return T(this,null,function*(){if(At)return At;if(Kn)return null;try{return At=yield import("stream-monaco"),yield Ga(At),At}catch(t){return Kn=!0,null}})}const Qa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#0f23c3" d="M24.554 20.075c.209.27 1.356.961 1.37 1.246a7 7 0 0 0-1.4-.324a17 17 0 0 1-1.412-.48a9.2 9.2 0 0 1-2.375-1.3A3.15 3.15 0 0 1 19.3 16.75a1.72 1.72 0 0 1 1.767-1.822a3.6 3.6 0 0 1 1.593.321c.146.066 1.31.606 1.256.809a5.5 5.5 0 0 0-1.41-.112c-.649.244-.4.828-.168 1.311a8 8 0 0 0 1.078 1.554c.164.194.884 1.271 1.138 1.264"/><path fill="#1a1978" d="M24.141 16.276c.128-.59.819-1.384 1.344-.773a4.2 4.2 0 0 1 .578 1.918c.12.656.2 1.327.261 1.982c.038.379.34 1.794.123 2.075a23 23 0 0 1-2.922-2.838a3.76 3.76 0 0 1-.925-1.7c-.1-1.073.879-.73 1.541-.664"/><path fill="#0f23c3" d="M26.3 17.781c.141-.732-.406-2.592-1.067-2.949a.06.06 0 0 0 .044-.007c-.156-.444-1.359 1.116-1.228 1.174c-.316-.138.774-1.984.988-2.16c.7-.578 1.372-.086 1.845.543a6.04 6.04 0 0 1 .733 4.434a4.5 4.5 0 0 1-.421 1.312c-.1.22-.45 1.1-.682 1.174a14.8 14.8 0 0 0-.212-3.521"/><path fill="#d2d2d2" d="M3.687 8.4c.179-.188-.041-1.527.324-1.548c.262-.015.553 1.741.627 1.968a9.2 9.2 0 0 0 1.127 2.329a7.53 7.53 0 0 0 4.016 2.978a4.55 4.55 0 0 0 2.366.2c.931-.208 1.82-.577 2.757-.765c1.35-.27 3.342-.352 4.438.647c.7.641.376.76.043 1.421a2.44 2.44 0 0 0 .178 2.562c.235.342 1.033.827.675 1.094c-.567.424-1.277-.452-1.636-.776c-1.4-1.264-2.711-1.313-4.492-1.074a9 9 0 0 1-4.883-.708A9.47 9.47 0 0 1 3.687 8.4M19.941 30a3.6 3.6 0 0 1-2.325-.817c.469-.092 1.021.025 1.508-.044a9.7 9.7 0 0 0 1.754-.43a10.5 10.5 0 0 0 3.022-1.554a6.55 6.55 0 0 0 2.757-5.214c.149-.088.316 1.034.319 1.091a5.8 5.8 0 0 1-.19 1.727a6.9 6.9 0 0 1-1.423 2.774A7.3 7.3 0 0 1 19.941 30"/><path fill="#d2d2d2" d="M18.962 19.109a5.8 5.8 0 0 1-2.05.859a13.4 13.4 0 0 1-2.224.549a8.86 8.86 0 0 1-4.435-.51a9.94 9.94 0 0 1-3.849-2.4c-.352-.367-2.104-2.417-1.548-3.05c.248-.282.875.846 1 .992a5 5 0 0 0 1.357 1.11a10.9 10.9 0 0 0 4.035 1.456a6.7 6.7 0 0 0 2.34-.094a13 13 0 0 1 1.694-.485a4 4 0 0 1 2.113.457c.344.17 1.523.743 1.567 1.116m9.351-4.031a19.3 19.3 0 0 1-.453 3.774c-.176-.242.016-1.47 0-1.792a6 6 0 0 0-.384-2.087a4.9 4.9 0 0 0-1.376-1.661a15 15 0 0 1-1.27-1.536c-1.837-2.382-3.245-5.211-2.9-8.3c.034-.308.069-1.448.411-1.445c.152 0 .266 1.561.29 1.718a12.5 12.5 0 0 0 1.224 4.116c.67 1.222 1.947 2.023 2.825 3.1a6.58 6.58 0 0 1 1.633 4.113M15.7 26.935a10.85 10.85 0 0 0 6.436-.687a6.94 6.94 0 0 0 4.278-4.418c.319.2-.048 1.529-.128 1.781a5.7 5.7 0 0 1-1.01 1.813a8.9 8.9 0 0 1-3.257 2.514c-1.703.772-5.662 1.652-6.319-1.003"/><path fill="#d2d2d2" d="M19.151 19.376c.367 2.107-2.957 3.124-4.478 3.213c-1.859.11-4.929-.292-6.06-2.031c-.673-1.035.781-.09 1.188.058a8.7 8.7 0 0 0 3.06.5a11.6 11.6 0 0 0 3.305-.5a14 14 0 0 0 1.533-.576c.301-.132 1.124-.691 1.452-.664m4.991 4.084c.4-.945-1.883-1.578-2.445-1.858a4.9 4.9 0 0 1-1.315-.867c-.181-.181-.872-.92-.807-1.219a5 5 0 0 1 1.087-.175a6 6 0 0 1 .855.588a10 10 0 0 0 .964.5a16 16 0 0 0 2.119.771c.308.09 1.549.208 1.727.428c-.04.296-1.97 2.021-2.185 1.832"/><path fill="#d2d2d2" d="M26.1 22.172c.265.43-1.08 1.831-1.363 2.105a9.3 9.3 0 0 1-2.566 1.728a7.8 7.8 0 0 1-2.56.753c-.679.058-1.966-.124-2.141-.979a7 7 0 0 1 1.177-.086c.462-.059.921-.149 1.376-.246a13 13 0 0 0 2.184-.645a11.5 11.5 0 0 0 2.084-1.11a11 11 0 0 0 1.078-.822c.105-.089.617-.702.731-.698m-7.342-10.207c-.1-1.308 2.612-1.3 3.271-1.092a5.98 5.98 0 0 1 2.982 2.475c-1.082.8-2.449.094-3.3-.654a4.3 4.3 0 0 0-1.481-1.029c-.809-.265-.818.094-1.472.3"/><path fill="#d2d2d2" d="M25.783 13.341c-.444-.029-.316.071-.647-.212c-.358-.307-.614-.795-.945-1.141c-.534-.558-1.242-.895-1.723-1.485a7.27 7.27 0 0 1-1.624-4.848c.018-1.489.407.187.551.675a12.3 12.3 0 0 0 1.126 2.708a46 46 0 0 0 3.4 4.321c-.039.002-.097-.021-.138-.018m-5.715 1.415c.033-.625-.911-.792-1.211-1.42c-.164-.343-.211-.569.029-.7c.082-.045.383.012.5-.02c.271-.076.335-.273.581-.4a1.193 1.193 0 0 1 1.633 1.021a1.82 1.82 0 0 1-1.532 1.519"/><path fill="#d2d2d2" d="M20.5 14.745a1.93 1.93 0 0 0 1.323-1.7c.524.139.928.658 1.521.771a2.6 2.6 0 0 0 1.029-.017c.207-.045.54-.274.721-.259c-.033.163-.464.546-.565.717a4.2 4.2 0 0 0-.388.9c-.229.741-.061.739-.709.311a4.3 4.3 0 0 0-1.957-.72c-.266-.026-.881.019-.975-.003m-.595 5.989a2.01 2.01 0 0 1-1.4 1.712c-.205.091-2.018.733-2.032.348c-.007-.2 1.624-.954 1.809-1.11a3.4 3.4 0 0 0 .867-1.071c.055-.112.232-.925.271-.943c.224-.106.488.93.485 1.064m-8.532-8.202a10.6 10.6 0 0 1 3.71-.914a10.3 10.3 0 0 1 1.865.024c.366.039 1.469.054 1.74.343a.255.255 0 0 1-.273.173c-.037.077.251.371.3.425c-.034.034-1.445-.4-1.572-.424a10.6 10.6 0 0 0-2.282-.134a16 16 0 0 0-1.841.194a6.2 6.2 0 0 1-1.647.313m11.139-1.801a1.89 1.89 0 0 1-1.517-.6c-.247-.349-.737-1.692-.385-2.021c.209-.2.384.662.484.846a11 11 0 0 0 1.418 1.775m5.276 8.469a19 19 0 0 1-.749 3.313c-.173-.077-.275-.778-.562-.95a4.1 4.1 0 0 0 .76-1.154c.152-.302.303-1.046.551-1.209m-7.807-7.357c-.132.268-.932 1.1-1.118.481c-.107-.356.876-.841 1.118-.481m-.747.45c.228.006.012-.248.012-.266c-.001-.043-.368.266-.012.266"/></svg>',el=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
5
+ <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M14.4561802 11.3673353C13.0276218 14.1261537 11.8858593 15.5 10.8437759 15.5 10.3588459 15.5 9.88231005 15.3491298 9.41749082 15.0543006 8.74000639 14.6241577 7.8668418 14.6059458 7.17068967 15.0074382 6.60881451 15.3319356 6.07177167 15.5 5.56305868 15.5 4.02887542 15.5 1.5 10.9491129 1.5 8.45090396 1.5 5.78581061 2.95006811 3.551507 5.15647301 3.551507 6.19383481 3.551507 7.09007204 4.20001691 7.84308619 4.497206 8.16210316 4.62512517 8.52255587 4.61592787 8.83410596 4.47192 9.44477141 4.18872223 10.2497236 3.551507 11.2503615 3.551507 12.4715175 3.551507 13.5338865 4.33779342 14.4184071 5.47479877 14.5532906 5.64778615 14.5172013 5.89341518 14.3377895 6.02349446 13.3500923 6.736546 12.8746057 7.53893969 12.8746057 8.45090396 12.8746057 9.36404821 13.3502672 10.1652619 14.3377895 10.8793249 14.4946576 10.992887 14.5445377 11.1984946 14.4561802 11.3673353ZM8.5 3C8.5 3 8.3468635 1.3936039 10 1" />
6
+ </svg>
7
+ `,tl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
8
+ <rect width="8" height="13.001" x="4" y="1.499" fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" rx="2.286" ry="2.286" />
9
+ <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 4,4.500025 H 1.5 M 4,7.9999993 H 1.5 M 4,11.499973 H 1.5 m 13,-6.999948 H 12 m 2.5,3.4999743 H 12 m 2.5,3.4999737 H 12" />
10
+ </svg>
11
+ `,nl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
12
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 4.0559072,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441188,0 l -1.789955,-1.782586 c -1.75742,1.750224 -4.6067879,1.750224 -6.3642294,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642294,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.746003,-2.73472867 -7.1981359,-2.73472867 -9.944119,0 -2.7459858,2.7347089 -2.7459858,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />
13
+ </svg>
14
+ `,ol=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
15
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
16
+ <path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />
17
+ <path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />
18
+ <path stroke="#a6d189" d="M6.36 4.9a3.5 3.5 0 103.41 6.12" />
19
+ <path stroke="#8caaee" d="M9.77 11.02a3.5 3.5 0 00-3.03-6.29" />
20
+ <path stroke="#c6d0f5" d="M8 7.5s-1.66 2.48-1.5 3.65" />
21
+ <path stroke="#c6d0f5" d="M1.81 6.02C2.47 5 3.83 4.49 5 4.46c4.06 0 3 5.56 5.03 6.86 1.21.52 3.5-.21 4.15-1.32" />
22
+ </g>
23
+ </svg>
24
+ `,rl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
25
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M6.74 2.24c.32-1.32 2.2-1.32 2.52 0a1.3 1.3 0 001.93.8c1.15-.7 2.48.62 1.77 1.77a1.3 1.3 0 00.8 1.93c1.32.32 1.32 2.2 0 2.52a1.3 1.3 0 00-.8 1.93c.7 1.15-.62 2.48-1.77 1.77a1.3 1.3 0 00-1.93.8c-.32 1.32-2.2 1.32-2.52 0a1.3 1.3 0 00-1.93-.8c-1.15.7-2.48-.62-1.77-1.77a1.3 1.3 0 00-.8-1.93c-1.32-.32-1.32-2.2 0-2.52a1.3 1.3 0 00.8-1.93c-.7-1.15.62-2.48 1.77-1.77a1.3 1.3 0 001.93-.8M10 6.5a2.5 2.5 0 100 3" />
26
+ </svg>
27
+ `,al=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
28
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 2.5559121,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441189,0 l -1.789955,-1.782586 c -1.7574201,1.750224 -4.606788,1.750224 -6.3642295,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642295,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.7460031,-2.73472867 -7.198136,-2.73472867 -9.9441191,0 -2.74598585,2.7347089 -2.74598585,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />
29
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M7.5 6v4M5.513524 7.9999996H9.51304M13.486476 5.9999996v4M11.5 7.9999992h3.999516" />
30
+ </svg>
31
+ `,ll=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
32
+ <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="m 15.4712,10.050637 -5.433601,5.433968 c -0.015,0.01505 -0.04554,0.01505 -0.09055,0.01505 L 2.536327,13.517264 c -0.015,0 -0.04501,-0.01505 -0.06055,-0.06072 L 0.50026325,6.0396501 a 0.21432208,0.21495127 0 0 1 0.015,-0.090817 L 5.9483283,0.5154023 c 0.015,-0.0150465 0.04501,-0.0150465 0.09055,-0.0150465 l 7.4101857,1.997972 c 0.015,0 0.04501,0.015046 0.06055,0.060724 l 1.977121,7.4158186 c 0.03001,0.03063 0.01608,0.060724 -0.01554,0.07577 M 8.2121063,4.1480782 0.93801425,6.1154197 q -0.0225,0 0,0.04514 L 6.2655263,11.50371 c 0.015,0.01505 0.015,0 0.04501,0 l 1.962119,-7.2803988 c -0.03054,-0.075233 -0.06055,-0.075233 -0.06055,-0.075233" />
33
+ </svg>
34
+ `,il=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
35
+ <path fill="none" stroke="#8caaee" d="m 6.665625,1.0107144 c 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 7.18125,3.9983098 h 2.971875 L 10.5125,1.8326156 c 0.09063,-0.5437673 0.60625,-0.9125291 1.15,-0.8219012 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 12.18125,3.9983098 H 14 c 0.553125,0 1,0.4468892 1,1.0000319 0,0.5531426 -0.446875,1.0000319 -1,1.0000319 H 11.846875 L 11.18125,9.9985013 H 13 c 0.553125,0 1,0.4468897 1,1.0000317 0,0.553143 -0.446875,1.000032 -1,1.000032 H 10.846875 L 10.4875,14.164259 c -0.09063,0.543768 -0.60625,0.912529 -1.15,0.821902 -0.54375,-0.09063 -0.9125,-0.60627 -0.821875,-1.150037 l 0.30625,-1.834434 h -2.975 L 5.4875,14.167384 c -0.090625,0.543768 -0.60625,0.91253 -1.15,0.821902 C 3.79375,14.898658 3.425,14.383016 3.515625,13.839249 L 3.81875,11.998565 H 2 c -0.553125,0 -1,-0.446889 -1,-1.000032 C 1,10.445391 1.446875,9.9985013 2,9.9985013 H 4.153125 L 4.81875,5.9983736 H 3 c -0.553125,0 -1,-0.4468893 -1,-1.0000319 C 2,4.445199 2.446875,3.9983098 3,3.9983098 H 5.153125 L 5.5125,1.8326156 C 5.603125,1.2888483 6.11875,0.9200865 6.6625,1.0107144 Z M 6.846875,5.9983736 6.18125,9.9985013 H 9.153125 L 9.81875,5.9983736 Z" />
36
+ </svg>
37
+ `,sl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
38
+ <g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">
39
+ <path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />
40
+ <path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />
41
+ </g>
42
+ </svg>
43
+ `,cl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
44
+ <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
45
+ <path d="M7 14.5h4.5v-3h3V7L9.17 1.64c-.28-.29-.8-.47-1.17-.29L3.5 3.5 1.35 8c-.18.37 0 .88.3 1.17z" />
46
+ <path d="M3.5 11V3.5H11m-7.5 0 8 8" />
47
+ </g>
48
+ </svg>
49
+ `,dl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><defs><linearGradient id="SVGMV3iTbAN" x1="185.455" x2="181.955" y1="1601.641" y2="1630.224" gradientTransform="translate(-62.523 -666.646)scale(.427)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="SVGniw2Mvsa" x1="176.136" x2="172.636" y1="1600.5" y2="1629.083" href="#SVGMV3iTbAN"/></defs><path fill="#b03931" d="m3.978 15.462l-.009-6.953a.59.59 0 0 1 .531-.562h.076l6.074-.009a15.7 15.7 0 0 1 6.067.95a8.9 8.9 0 0 1 2.244 1.359a4.47 4.47 0 0 1 2.946-1.083a4.11 4.11 0 0 1 4.276 3.92A4.11 4.11 0 0 1 21.907 17c-.089 0-.177-.008-.265-.012a7 7 0 0 1-.232.953a85 85 0 0 1 8.59 2.6V2H2v13.4q.992.02 1.978.062m22.8-7.944a1.32 1.32 0 0 1 1.374 1.259a1.379 1.379 0 0 1-2.747 0a1.32 1.32 0 0 1 1.375-1.26Z"/><path fill="#b03931" d="M17.861 15.787a4.11 4.11 0 0 0-1.748-3.458a5.8 5.8 0 0 0-1.508-.822a7.4 7.4 0 0 0-1.629-.438a22 22 0 0 0-2.588-.1H7.769l.006 4.737a89 89 0 0 1 9.91 1.408a5 5 0 0 0 .176-1.327m3.132 3.192a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035"/><path fill="url(#SVGMV3iTbAN)" d="M20.993 18.979a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035" opacity=".3"/><path fill="#b03931" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z"/><path fill="url(#SVGniw2Mvsa)" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z" opacity=".3"/><path fill="#fff" d="M20.383 11.746a7 7 0 0 1 1.36 4.148a6.6 6.6 0 0 1-.1 1.1c.088 0 .176.012.265.012a4.11 4.11 0 0 0 4.276-3.92a4.11 4.11 0 0 0-4.276-3.92a4.47 4.47 0 0 0-2.946 1.083a8 8 0 0 1 1.421 1.497"/><ellipse cx="26.78" cy="8.777" fill="#fff" rx="1.374" ry="1.259"/><path fill="#fff" d="m4.673 23.877l5.625-.022a32 32 0 0 0 3.326-.111h.015a11.5 11.5 0 0 0 1.971-.472a9.7 9.7 0 0 0 3.256-1.71a7.9 7.9 0 0 0 2.128-2.582a7 7 0 0 0 .417-1.034a7 7 0 0 0 .332-2.051a7 7 0 0 0-1.36-4.148a8 8 0 0 0-1.421-1.5a8.9 8.9 0 0 0-2.244-1.359a15.7 15.7 0 0 0-6.067-.95l-6.074.009h-.076a.59.59 0 0 0-.532.562l.009 6.952l.01 7.734a.616.616 0 0 0 .685.682m3.1-12.908h2.619a22 22 0 0 1 2.588.1a7.4 7.4 0 0 1 1.629.438a5.8 5.8 0 0 1 1.508.822a4.12 4.12 0 0 1 1.748 3.458a5 5 0 0 1-.175 1.327a4.46 4.46 0 0 1-1.518 2.271a5.6 5.6 0 0 1-1.187.748a7.7 7.7 0 0 1-1.628.5a16 16 0 0 1-2.877.2H7.786L7.78 15.7Z"/></svg>',ul=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
50
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M.5 8.5H11l.75-.5a5.35 5.35 0 010-3.5c1 .6 1 1.88 1.74 2 .77-.09 1.23.01 2 .52 0 0-.97 1.77-2.5 1.98-1.93 3.65-4.5 5.5-6.98 5.5C0 14.5.5 8.5.5 8.5m1 0v-2m0 0h8m-6 2v-4m0 0h4m-2-2h2m-2 6v-6m2 6v-6m2 6v-2" />
51
+ </svg>
52
+ `,ml=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
53
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M8.03 14.5C5 14.5 3.5 12.49 3.5 10.01c0-2.82 2.25-7.02 4.62-8.48a.24.24 0 01.24 0c.08.04.12.12.11.2-.13 1.25.22 2.5.98 3.54.3.43.63.8 1.02 1.27.54.66.94 1.03 1.52 2.08l.01.02c.33.56.5 1.2.5 1.84 0 2.03-1.69 4.02-4.47 4.02" />
54
+ </svg>
55
+ `,fl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
56
+ <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
57
+ <path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />
58
+ <path d="M13.5 13c.47-.57 1.12-1.24 1.5-2l-2.25-1.25c-.74 1.36-1.76 2.75-3.25 2.75-2.1 0-3-2.3-3-5h8c.05-1.61-.31-3.45-1-4.5M3 13c-1.08-1.3-1.5-3-1.5-5S2.1 4.24 3 3" />
59
+ </g>
60
+ </svg>
61
+ `,hl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
62
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M7.5 14.5v-1l-1-1v-3h2l1 2h1v-6h-1l-1 2h-2v-4h5l1 3h1v-5h-11v1l1 1v9l-1 1.25v.75z" />
63
+ </svg>
64
+ `,pl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
65
+ <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m15.48 8.06-4.85.48m4.85-.48a4.98 4.98 0 01-4.54 5.42 5 5 0 112.95-8.66l-1.7 1.84a2.5 2.5 0 00-4.18 2.06c.05.57.3 1.1.69 1.51.25.27 1 .83 1.78.82.8-.02 1.58-.25 2.07-.81 0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99 2-.02" />
66
+ </svg>
67
+ `,vl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
68
+ <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
69
+ <path d="M11.68 5.38c.4.19.54.68 1.53 3.25 1 2.57-.92 4.07-.92 4.07s-6.73 2.47-6.73 1.63c-.18-.92-1.92-2.08-1.92-2.08s-.52-.63.06-.75c5.89-1.27 6.96-.61 7.3-2" />
70
+ <path d="M7.38 10.63C2.62 10.88 2.48 8.08 2.5 8 3.6 4.6 9.24.91 10.8 1.58 14.07 3.04 9.2 8.96 7 8.5c-4.02-.83 1.5-4 1.5-4" />
71
+ </g>
72
+ </svg>
73
+ `,gl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
74
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M12.5 4.5h3m-1.5 3h1.5m-10 6 2.5-5-2.5-5H8l5.6 10h-2.53l-1.52-2.92L8 13.5zm-5 0 2.5-5-2.5-5H3l2.5 5-2.5 5z" />
75
+ </svg>
76
+ `,wl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
77
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
78
+ <path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />
79
+ <path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />
80
+ </g>
81
+ </svg>
82
+ `,kl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
83
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
84
+ <path stroke="#c6d0f5" d="M10.73 8.41c.57 3 1.59 5.83 2.77 7.09-6.63-3.45-9.76-1.75-10.5 0-.66-3.4-.54-5.74.09-7.78" />
85
+ <path stroke="#e78284" d="M8.5 7c.63.34 1.82 1.07 2.24 1.41-.54-2.9-.64-5.96-.74-7.91-2.13.58-5.73 1.98-6.9 7.22.52-.69 1.72-1.05 2.4-1.22" />
86
+ <path stroke="#e78284" d="M5.5 7A1.5 1.5 0 007 8.5 1.5 1.5 0 008.5 7 1.5 1.5 0 007 5.5 1.5 1.5 0 005.5 7" />
87
+ </g>
88
+ </svg>
89
+ `,yl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
90
+ <g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">
91
+ <path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />
92
+ <path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />
93
+ <path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />
94
+ <path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />
95
+ </g>
96
+ </svg>
97
+ `,xl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
98
+ <g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">
99
+ <path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />
100
+ <path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />
101
+ </g>
102
+ </svg>
103
+ `,bl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
104
+ <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />
105
+ </svg>
106
+ `,Bl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
107
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
108
+ <path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
109
+ <path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
110
+ <path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
111
+ </g>
112
+ </svg>
113
+ `,Ml=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
114
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
115
+ <path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />
116
+ <path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />
117
+ <path stroke="#e78284" d="M2.5 13.5V8" />
118
+ <path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />
119
+ </g>
120
+ </svg>
121
+ `,Cl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
122
+ <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
123
+ <path d="M.5 5.06v6.07C.5 12.41.82 13 2.27 13h5.6c1.04 0 1.63-.51 1.63-1.62 0-.85-.2-1.88-1.5-1.88h-.36C6.4 9.5 6 8.77 6 7.75 6 6.81 6.8 6 7.49 6h2.68" />
124
+ <path d="M3.5 10.5V4.99C3.5 3.89 3.62 3 5 3h9c.97 0 1.5.99 1.5 1.63.12 1.55-.98 1.62-2.1 2.16-.58.26-1.4.52-1.4.98V11" />
125
+ </g>
126
+ </svg>
127
+ `,El=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
128
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
129
+ <path stroke="#c6d0f5" d="M10.5 7A1.5 1.5 0 019 8.5 1.5 1.5 0 017.5 7 1.5 1.5 0 019 5.5 1.5 1.5 0 0110.5 7" />
130
+ <path stroke="#8caaee" d="M7 2.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13m7-2a1.5 1.5 0 100 3 1.5 1.5 0 000-3" />
131
+ </g>
132
+ </svg>
133
+ `,Nl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
134
+ <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />
135
+ </svg>
136
+ `,Tl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
137
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
138
+ <path stroke="#85c1dc" d="M4 11 .5 8.5 5 7q.78-1.77 1.89-1.89c.74-.07 1.94-1.28 3.61-3.61M5 7l1.5 1.5" />
139
+ <path stroke="#ef9f76" d="m15.5 12.5-5-11C8.5 6.83 6.33 10 4 11c1.67-.33 2.67.83 3 3.5 3.5-1.5 3.5-3.5 5-4s1.5 1.5 3.5 2" />
140
+ </g>
141
+ </svg>
142
+ `,_l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
143
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />
144
+ </svg>
145
+ `,$l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
146
+ <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M1 7 .5 4.5l1.01.67c.28-.27.47-.48 1.18-.85l.56-1.82L4.5 3.84c.77-.18 1.53-.36 2.4-.33L8 1.5l1.1 2.01c.87-.03 1.63.15 2.4.33l1.25-1.34.56 1.82c.7.37.9.58 1.18.85l1.01-.67L15 7m-1.5 1C13 6.5 11 5.5 8 5.5S3 6.5 2.5 8m11.5.75L13.5 8l-1 1.5-1.5.5-3-1.5L5 10l-1.5-.5-1-1.5-.5.75L1 7l1.25 3.75C3 12.75 6 13.5 8 13.5s5-.75 5.75-2.75L15 7z" />
147
+ </svg>
148
+ `,Il='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#c2c2c2" d="M11.29 15.976a8.9 8.9 0 0 0 1.039 4.557a4.82 4.82 0 0 0 5.579 2.13a3.79 3.79 0 0 0 2.734-3.181c.095-.535.1-.54.1-.54c1.537.222 4.014.582 5.55.8l-.1.389A9.96 9.96 0 0 1 23.8 24.9a8.35 8.35 0 0 1-4.747 2.378a12.93 12.93 0 0 1-7.322-.725a8.98 8.98 0 0 1-5.106-5.524A14.35 14.35 0 0 1 6.642 10.9a9.32 9.32 0 0 1 7.929-6.24a11.8 11.8 0 0 1 5.9.491a8.47 8.47 0 0 1 5.456 6.1c.083.311.1.369.1.369c-1.709.311-3.821.705-5.518 1.075c-.323-1.695-1.122-3.029-2.831-3.445a4.656 4.656 0 0 0-5.853 3.158a9 9 0 0 0-.341 1.273a11 11 0 0 0-.194 2.295"/><path fill="#c2c2c2" d="M2.033 30V2h5.934v2.227H4.723v23.546h3.244V30zm27.934-.001h-5.934v-2.228h3.244V4.226h-3.244V1.999h5.934z"/></svg>',Sl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#c2c2c2" d="M19.5 24.833a11.24 11.24 0 0 1-5.13 1.009a8.37 8.37 0 0 1-6.492-2.576A9.75 9.75 0 0 1 5.512 16.4a10.4 10.4 0 0 1 2.659-7.406a9.02 9.02 0 0 1 6.9-2.841a12.2 12.2 0 0 1 4.43.7v4.129a7.5 7.5 0 0 0-4.108-1.142a5.28 5.28 0 0 0-4.075 1.685A6.48 6.48 0 0 0 9.766 16.1a6.37 6.37 0 0 0 1.464 4.4a5.02 5.02 0 0 0 3.941 1.639a8.03 8.03 0 0 0 4.329-1.223Z"/><path fill="#c2c2c2" d="M16.572 15.081V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zm6.44 0V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zM2.035 30V2.001h5.933v2.227H4.725v23.545h3.243V30z"/><path fill="#c2c2c2" d="M29.965 29.999h-5.933v-2.228h3.243V4.227h-3.243V2h5.933z"/></svg>',Vl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
149
+ <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
150
+ <path d="M1.5 8V3c0-.83.67-1.5 1.5-1.5h10c.83 0 1.5.67 1.5 1.5v10c0 .83-.67 1.5-1.5 1.5H9" />
151
+ <path d="m1.5 8 1.14-2.3q.09-.21.36-.24a.8.8 0 01.44.13c.18.12.23.53.28.64.06.1.64 1.23.85 1.23.2 0 .71-1.47.71-1.47s.37-.49.72-.49.55.32.67.49c.12.16.24 1.76.46 2.01s1.32.87 1.67.73c.34-.13.53-.4.63-.73.1-.34-.14-.75 0-1a1.1 1.1 0 011.02-.55c.56.03 2.05.56 2.05 1.05q0 .75-1.5.75c-.48 1.33.28 2.22-3 2.25l1 4" />
152
+ <path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />
153
+ </g>
154
+ </svg>
155
+ `,Ll=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
156
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M12.5 14.5v-3.34c-1-.66-1-1.35-1-2.66m-3 1 .02 2.53.98 2.47m-4-5v5m9 0V9.23s.17-1.73-1-1.73c0-1.5-.5-6-2.5-6S8.75 4.25 8.75 4.25A3.67 3.67 0 006.5 7.12v-3.5c0-.63-.85-1.32-1.5-1.32-.92 0-1.33.59-1.5 1.2H2.25c-.42.11-.75.59-.75 1 0 .5.28 1 .75 1h1.22l.02 3c.01.75.51 1 1.51 1h4.5" />
157
+ </svg>
158
+ `,Dl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
159
+ <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M0.5,12.5 L0.5,13.24 C0.5,14 1.27360724,14.5 2,14.5 C2.9375516,14.5 3.5,14 3.5,13.2445661 L3.5,6.00089968 C3.5,4.28551107 4.99401107,2.52263547 7.14960413,2.5 C9.49387886,2.5 11,4.0579782 11,5.5 C11.1657296,8.48962302 9.57820404,9.63684469 7.49621582,10.5 L7.49621582,14.5 L15.4979764,14.5 L15.4979764,9 C15.5394484,8.36478228 14.9387379,7.15595371 14.1308258,6.5 C13.1942239,5.80827275 12.0584852,5.50253264 11,5.5 M11.5,14.5 L11.5,11.5 M6,6.5 C6.27614237,6.5 6.5,6.27614237 6.5,6 C6.5,5.72385763 6.27614237,5.5 6,5.5 C5.72385763,5.5 5.5,5.72385763 5.5,6 C5.5,6.27614237 5.72385763,6.5 6,6.5 Z" />
160
+ </svg>
161
+ `,zl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
162
+ <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 13.5c-.33.33-.5.67-.5 1s.17.67.5 1c.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.83.5-1.5h2c0 .67.17 1.17.5 1.5.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.67.5-1s-.17-.67-.5-1l1-1 1.25 1.25c0-2.75 1-2.75 1-5.75a7.1 7.1 0 00-2-5.25A3.64 3.64 0 0113 .5c-1.17 0-2 .42-2.5 1.25A3.08 3.08 0 008 .5c-1 0-1.83.42-2.5 1.25C5 .92 4.17.5 3 .5c.5.83.58 1.58.25 2.25a7.1 7.1 0 00-2 5.25c0 3 1 3 1 5.75L3.5 12.5zm6-5a2 2 0 100-4 2 2 0 000 4m-5 0a2 2 0 100-4 2 2 0 000 4M7 8l1 2.5L9 8m1.5-1.5" />
163
+ </svg>
164
+ `,Rl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
165
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
166
+ <path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />
167
+ <path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />
168
+ <path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />
169
+ <path stroke="#e5c890" d="m 8.5,12.5 v 0" />
170
+ </g>
171
+ </svg>
172
+ `,jl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
173
+ <g fill="none" stroke-linecap="round" stroke-linejoin="round">
174
+ <path stroke="#838ba7" d="M13.5 9.5c.63-.7 1-1.54 1-2.43 0-2.52-2.91-4.57-6.5-4.57S1.5 4.55 1.5 7.07c0 1.9 1.65 3.53 4 4.22" />
175
+ <path stroke="#8caaee" d="M10.5 9.5c.4 0 .86.34 1 .7l1 3.3m-5 0v-8h3.05c.95 0 1.95 1 1.95 2s-1 2-1.95 2H7.5Z" />
176
+ </g>
177
+ </svg>
178
+ `,Hl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
179
+ <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M1.5 9.06v2.5c.02.86.36 1.61.9 2.15 1.76 1.76 5.71.65 8.84-2.47 3.12-3.13 4.23-7.08 2.47-8.84a3.1 3.1 0 00-2.15-.9h-2.5M14.5 4l-.25 10.25L4 14.5m4.39-6.11c2.34-2.35 3.29-5.2 2.12-6.37S6.49 1.8 4.14 4.14C1.8 6.5.85 9.34 2.02 10.51s4.02.22 6.37-2.12M5.5 14.5l.25-3.75L11 11l-.25-5.25 3.75-.25" />
180
+ </svg>
181
+ `,Al=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
182
+ <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
183
+ <path d="M15.5 9.5Q8 13.505.5 9.5l1-1-1-2 2-.5V4.5h2l.5-2 1.5 1 1.5-2 1.5 2 1.5-1 .5 2h2V6l2 .5-1 2z" />
184
+ <path d="M6.5 7.5a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1m5 0a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1M4 11.02c-.67.37-1.5.98-1.5 2.23s1.22 1.22 2 1.25v-2M12 11c.67.37 1.5 1 1.5 2.25s-1.22 1.22-2 1.25v-2" />
185
+ </g>
186
+ </svg>
187
+ `,Pl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
188
+ <path fill="none" stroke="#f4b8e4" stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.38c1.85 1.07 3.35.74 4.83-.2 1.5-.95 2.7-2.78 1.3-4.15-.7-.68-3.25-.8-5.62.19-2.36.99-4.59 3.02-4.74 4.11-.31 2.19 3.15 2.88 3.64 4.23s.28 1.98-.2 2.83c-.5.85-1.96 1.62-2.8.68-.83-.95 1.67-2.75 2.98-3.25 1.3-.5 3.1-.4 3.69.25.58.64-.07 1.79-.03 1.79" />
189
+ </svg>
190
+ `,Kl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
191
+ <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="m2.5 2.48 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1z" />
192
+ </svg>
193
+ `,Wl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
194
+ <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
195
+ <path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />
196
+ <path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />
197
+ </g>
198
+ </svg>
199
+ `,Fl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
200
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m3 11.5 2.5 4 2.5-4 2.5 4 2.5-4-2.5-4-2.5 4m2.5 4h-5m7.5-4H3m10-7-2.5-4-2.5 4-2.5-4-2.5 4 2.5 4 2.5-4M5.5.5h5M3 4.5h10" />
201
+ </svg>
202
+ `,Ol=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
203
+ <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M8 6.5c3.59 0 6.5-1.4 6.5-2.68S11.59 1.5 8 1.5 1.5 2.54 1.5 3.82 4.41 6.5 8 6.5M14.5 8c0 .83-1.24 1.79-3.25 2.2s-4.49.41-6.5 0S1.5 8.83 1.5 8m13 4.18c0 .83-1.24 1.6-3.25 2-2.01.42-4.49.42-6.5 0-2.01-.4-3.25-1.17-3.25-2m0-8.3v8.3m13-8.3v8.3" />
204
+ </svg>
205
+ `,Xl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>',Ul=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
206
+ <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="m4.54 10 6.92-4m-6.92 4a1.5 1.5 0 10-2.6 1.5 1.5 1.5 0 002.6-1.5M8 4v8m0-8a1.5 1.5 0 100-3 1.5 1.5 0 000 3M4.54 6l6.92 4M4.54 6a1.5 1.5 0 10-2.6-1.5A1.5 1.5 0 004.54 6M8 12a1.5 1.5 0 100 3 1.5 1.5 0 000-3m3.46-2a1.5 1.5 0 102.6 1.5 1.5 1.5 0 00-2.6-1.5m0-4a1.5 1.5 0 102.6-1.5 1.5 1.5 0 00-2.6 1.5" />
207
+ </svg>
208
+ `,Yl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
209
+ <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M14.34 10.2c.34-1.08 1.1-5.07-4.45-8.62a.48.48 0 00-.6.07.44.44 0 00-.02.6c.03.02 2.07 2.5 1.34 5.34-1.26-.86-6.24-4.81-6.24-4.81L7.25 7.5 1.9 4.05S5.68 8.7 8 10.45c-1.12.4-3.56.82-6.78-1.18a.48.48 0 00-.58.06.44.44 0 00-.08.56c.11.18 2.7 4.36 8.14 4.36 1.5 0 2.37-.42 3.08-.77.43-.2.77-.37 1.14-.37.93 0 1.54.92 1.54.93.1.14.27.22.44.21a.46.46 0 00.4-.28c.67-1.55-.49-3.2-.96-3.78h0Z" />
210
+ </svg>
211
+ `,ql=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
212
+ <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m1.5 6 8 4.25 4-2.25m-12-2V1.5l8 4.25 4-2.25V8m-4-2.25v8.75M5.53 3.82 5.5 12.5l4 2" />
213
+ </svg>
214
+ `,Zl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
215
+ <g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">
216
+ <path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />
217
+ <path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />
218
+ </g>
219
+ </svg>
220
+ `,Gl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
221
+ <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
222
+ <path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />
223
+ <path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />
224
+ <path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />
225
+ <path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />
226
+ </g>
227
+ </svg>
228
+ `,Jl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
229
+ <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
230
+ <path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />
231
+ <path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />
232
+ </g>
233
+ </svg>
234
+ `,Ql='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><path fill="#00519a" d="M6.67 7.836L9 18.915l2.336-11.079H16l-4.664 16.328H6.672L2 7.836Zm11.661 0h7.6a4.08 4.08 0 0 1 2.9 1.749a3.8 3.8 0 0 1 .571 2.04a4 4 0 0 1-.571 2.034a4.1 4.1 0 0 1-2.341 1.763a4.1 4.1 0 0 1 2.929 1.756a3.8 3.8 0 0 1 .58 2.1a4.66 4.66 0 0 1-.579 2.546a5.05 5.05 0 0 1-3.5 2.338h-7.589ZM23 14.252h1.166a1.754 1.754 0 0 0 0-3.5H23Zm0 7h1.39a2.047 2.047 0 0 0 0-4.089H23Z"/></svg>',ei=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
235
+ <g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">
236
+ <path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />
237
+ <path d="M12.05 1.73 8 9.28 3.95 1.73" />
238
+ </g>
239
+ </svg>
240
+ `,ti=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
241
+ <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 4.5 1 8 4.5 11.5M11.5 4.5 15 8 11.5 11.5M9.5 2 6.5 14" />
242
+ </svg>
243
+ `,ni=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
244
+ <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />
245
+ </svg>
246
+ `;let yn=null;function so(t){yn=t!=null?t:null}const oi={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain","c++":"cpp","c#":"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function ri(t){if(!t)return"";const o=t.trim();if(!o)return"";const[n]=o.split(/\s+/),[l]=n.split(":");return l.toLowerCase()}function $n(t){var n;const o=ri(t);return(n=oi[o])!=null?n:o}function ai(t){const o=$n(t);if(!o)return"plaintext";switch(o){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";default:return o}}function co(t){if(yn){const n=yn(t);if(n!=null&&n!=="")return n}switch($n(t)){case"javascript":case"js":return xl;case"typescript":case"ts":return Jl;case"jsx":return yl;case"tsx":return Gl;case"html":return wl;case"css":return sl;case"scss":return Pl;case"json":return bl;case"python":case"py":return Rl;case"ruby":case"rb":return Hl;case"go":case"golang":return pl;case"r":return jl;case"java":return kl;case"kotlin":case"kt":return Ml;case"c":return nl;case"cpp":case"c++":return al;case"cs":case"csharp":return il;case"php":return Dl;case"scala":return Kl;case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return Wl;case"sql":return Ol;case"yaml":case"yml":return ni;case"markdown":case"md":return Nl;case"xml":return ti;case"rust":case"rs":return Al;case"swift":return Yl;case"perl":return Ll;case"lua":return El;case"haskell":return gl;case"erlang":return fl;case"clojure":return ol;case"vue":return ei;case"svg":return Ul;case"mermaid":return _l;case"dart":return cl;case"assembly":return tl;case"dockerfile":return ul;case"fortran":return hl;case"lisp":return Cl;case"ocaml":return Vl;case"prolog":return zl;case"groovy":return vl;case"matlab":return Tl;case"cobol":return rl;case"ada":return Qa;case"julia":return Bl;case"elixir":return ml;case"vb.net":return Ql;case"nim":return $l;case"crystal":return ll;case"d":return dl;case"applescript":return el;case"solidity":return Fl;case"objectivec":return Il;case"objectivecpp":return Sl;case"terraform":return ql;case"plain":case"text":case"":return Zl;default:return Xl}}const uo={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown","":"Plain Text",plain:"Plain Text"},li={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},ii={class:"flex items-center space-x-2"},si=["innerHTML"],ci={class:"text-sm font-medium font-mono"},di={class:"flex items-center space-x-2"},ui=["aria-pressed"],mi=["disabled"],fi=["disabled"],hi=["disabled"],pi=["aria-label"],vi={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},gi={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},wi=["aria-pressed"],ki={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},yi={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},xi=["aria-label"],bi={class:"code-loading-placeholder"},Wn=10,Fn=36,On=1,Bi=e.defineComponent({__name:"MarkdownCodeBlockNode",props:{node:{},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:"vitesse-dark"},lightTheme:{default:"vitesse-light"},isDark:{type:Boolean,default:!1},isShowPreview:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0}},emits:["previewCode","copy"],setup(t,{emit:o}){var Te;const n=t,l=o,{t:a}=an(),u=e.ref(String((Te=n.node.language)!=null?Te:"")),s=e.ref(!1),m=e.ref(!1),f=e.ref(!1),d=e.ref(null),k=e.ref(!0),p=e.ref(0),B=e.ref(14),E=e.ref(B.value),L=e.computed(()=>{const v=B.value,g=E.value;return typeof v=="number"&&Number.isFinite(v)&&v>0&&typeof g=="number"&&Number.isFinite(g)&&g>0}),D=e.computed(()=>{const v=u.value.trim().toLowerCase();return uo[v]||v.charAt(0).toUpperCase()+v.slice(1)}),K=e.computed(()=>u.value.trim().toLowerCase()==="mermaid"),H=e.computed(()=>{const v=u.value.trim().toLowerCase();return co(v.split(":")[0])}),N=e.computed(()=>{const v=u.value.trim().toLowerCase();return n.isShowPreview&&(v==="html"||v==="svg")}),re=e.computed(()=>{const v={},g=ve=>{if(ve!=null)return typeof ve=="number"?`${ve}px`:String(ve)},b=g(n.minWidth),z=g(n.maxWidth);return b&&(v.minWidth=b),z&&(v.maxWidth=z),v}),$=e.computed(()=>({fontSize:`${E.value}px`}));function P(){return n.isDark?n.darkTheme:n.lightTheme}let C,te,Y,I=()=>{},q;const Be=new Set,Oe=new Set,Le=typeof{url:typeof document=="undefined"?require("url").pathToFileURL(__filename).href:hn&&hn.tagName.toUpperCase()==="SCRIPT"&&hn.src||new URL("exports-ByrWvfQh.cjs",document.baseURI).href}!="undefined"&&!1;function Xe(v){var z;const[g]=String(v!=null?v:"").split(":"),b=(z=g==null?void 0:g.trim().toLowerCase())!=null?z:"";return b?!q||q.has(b)?b:(Le&&!Be.has(b)&&(Be.add(b),console.warn(`[MarkdownCodeBlockNode] Language "${b}" not preloaded in stream-markdown; falling back to plaintext.`)),"plaintext"):"plaintext"}function Me(v,g){return T(this,null,function*(){if(!C)return;const b=Xe(g);try{yield C.updateCode(v,b)}catch(z){b!=="plaintext"?(Le&&!Oe.has(b)&&(Oe.add(b),console.warn(`[MarkdownCodeBlockNode] Failed to render language "${b}", retrying as plaintext.`,z)),yield C.updateCode(v,"plaintext")):Le&&console.warn("[MarkdownCodeBlockNode] Failed to render code block even as plaintext.",z)}})}function Z(){return T(this,null,function*(){if(!te)try{const v=yield import("stream-markdown");te=v.createShikiStreamRenderer,Y=v.registerHighlight,I=v.disposeHighlighter;const g=Array.isArray(v.defaultLanguages)?v.defaultLanguages:void 0;q=g?new Set(g.map(b=>b.toLowerCase())):void 0,Y({themes:n.themes}),C=te(d.value,{theme:P()}),n.loading||(yield Me(n.node.code,u.value))}catch(v){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",v)}})}function he(){return T(this,null,function*(){if(K.value){I(),C==null||C.dispose();return}Z()})}he(),e.onMounted(()=>{he()}),e.watch(()=>n.themes,()=>T(null,null,function*(){Y&&Y({themes:n.themes})})),e.watch(()=>[n.node.code,n.node.language],b=>T(null,[b],function*([v,g]){if(g!==u.value&&(u.value=g.trim()),!!d.value){if(K.value){I(),C==null||C.dispose();return}C||(yield he()),!(!C||!v)&&(n.stream===!1&&n.loading||(yield Me(v,g)))}}));const F=e.watch(()=>[n.darkTheme,n.lightTheme],()=>T(null,null,function*(){if(d.value){if(K.value)return I(),C==null||C.dispose(),F();C||(yield he()),C==null||C.setTheme(P())}}));e.watch(()=>n.node.code,()=>T(null,null,function*(){if(m.value||!k.value)return;yield e.nextTick();const v=d.value;v&&v.scrollHeight>v.clientHeight&&(v.scrollTop=v.scrollHeight)}));function pe(v,g=50){return v.scrollHeight-v.scrollTop-v.clientHeight<=g}function Ce(){const v=d.value;if(!v||m.value)return;const g=v.scrollTop;g<p.value?k.value=!1:pe(v)&&(k.value=!0),p.value=g}function Ue(){return T(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),s.value=!0,l("copy",n.node.code),setTimeout(()=>{s.value=!1},1e3)}catch(v){console.error("Copy failed:",v)}})}function ae(v){const g=v;return!g||g.disabled}function J(v,g,b="top"){if(ae(v.currentTarget))return;const z=v,ve=(z==null?void 0:z.clientX)!=null&&(z==null?void 0:z.clientY)!=null?{x:z.clientX,y:z.clientY}:void 0;_t(v.currentTarget,g,b,!1,ve,n.isDark)}function R(){rn()}function le(v){if(ae(v.currentTarget))return;const g=s.value?a("common.copied")||"Copied":a("common.copy")||"Copy",b=v,z=(b==null?void 0:b.clientX)!=null&&(b==null?void 0:b.clientY)!=null?{x:b.clientX,y:b.clientY}:void 0;_t(v.currentTarget,g,"top",!1,z,n.isDark)}function De(){m.value=!m.value;const v=d.value;v&&(m.value?(v.style.maxHeight="none",v.style.overflow="visible"):(v.style.maxHeight="500px",v.style.overflow="auto",k.value=!0,e.nextTick(()=>{v.scrollHeight>v.clientHeight&&(v.scrollTop=v.scrollHeight)})))}function Ee(){f.value=!f.value}function $t(){const v=Math.min(Fn,E.value+On);E.value=v}function Ne(){const v=Math.max(Wn,E.value-On);E.value=v}function Se(){E.value=B.value}function Ae(){if(!N.value)return;const v=(u.value||n.node.language).toLowerCase(),g=v==="html"?"text/html":"image/svg+xml",b=v==="html"?"HTML Preview":"SVG Preview";l("previewCode",{type:g,content:n.node.code,title:b})}return(v,g)=>K.value?(e.openBlock(),e.createBlock(e.unref(ct),{key:0,node:t.node,"is-dark":n.isDark,loading:n.loading},null,8,["node","is-dark","loading"])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(re.value),class:e.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",n.isDark?"is-dark":""]])},[n.showHeader?(e.openBlock(),e.createElementBlock("div",li,[e.renderSlot(v.$slots,"header-left",{},()=>[e.createElementVNode("div",ii,[e.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:H.value},null,8,si),e.createElementVNode("span",ci,e.toDisplayString(D.value),1)])],!0),e.renderSlot(v.$slots,"header-right",{},()=>[e.createElementVNode("div",di,[e.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":f.value,onClick:Ee,onMouseenter:g[0]||(g[0]=b=>J(b,f.value?e.unref(a)("common.expand")||"Expand":e.unref(a)("common.collapse")||"Collapse")),onFocus:g[1]||(g[1]=b=>J(b,f.value?e.unref(a)("common.expand")||"Expand":e.unref(a)("common.collapse")||"Collapse")),onMouseleave:R,onBlur:R},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({rotate:f.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...g[17]||(g[17]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,ui),n.showFontSizeButtons&&n.enableFontSizeControl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(E.value)?E.value<=Wn:!1,onClick:g[2]||(g[2]=b=>Ne()),onMouseenter:g[3]||(g[3]=b=>J(b,e.unref(a)("common.decrease")||"Decrease")),onFocus:g[4]||(g[4]=b=>J(b,e.unref(a)("common.decrease")||"Decrease")),onMouseleave:R,onBlur:R},[...g[18]||(g[18]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,mi),e.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!L.value||E.value===B.value,onClick:g[5]||(g[5]=b=>Se()),onMouseenter:g[6]||(g[6]=b=>J(b,e.unref(a)("common.reset")||"Reset")),onFocus:g[7]||(g[7]=b=>J(b,e.unref(a)("common.reset")||"Reset")),onMouseleave:R,onBlur:R},[...g[19]||(g[19]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),e.createElementVNode("path",{d:"M3 3v5h5"})])],-1)])],40,fi),e.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(E.value)?E.value>=Fn:!1,onClick:g[8]||(g[8]=b=>$t()),onMouseenter:g[9]||(g[9]=b=>J(b,e.unref(a)("common.increase")||"Increase")),onFocus:g[10]||(g[10]=b=>J(b,e.unref(a)("common.increase")||"Increase")),onMouseleave:R,onBlur:R},[...g[20]||(g[20]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,hi)],64)):e.createCommentVNode("",!0),n.showCopyButton?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":s.value?e.unref(a)("common.copied")||"Copied":e.unref(a)("common.copy")||"Copy",onClick:Ue,onMouseenter:g[11]||(g[11]=b=>le(b)),onFocus:g[12]||(g[12]=b=>le(b)),onMouseleave:R,onBlur:R},[s.value?(e.openBlock(),e.createElementBlock("svg",gi,[...g[22]||(g[22]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",vi,[...g[21]||(g[21]=[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),e.createElementVNode("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,pi)):e.createCommentVNode("",!0),n.showExpandButton?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":m.value,onClick:De,onMouseenter:g[13]||(g[13]=b=>J(b,m.value?e.unref(a)("common.collapse")||"Collapse":e.unref(a)("common.expand")||"Expand")),onFocus:g[14]||(g[14]=b=>J(b,m.value?e.unref(a)("common.collapse")||"Collapse":e.unref(a)("common.expand")||"Expand")),onMouseleave:R,onBlur:R},[m.value?(e.openBlock(),e.createElementBlock("svg",ki,[...g[23]||(g[23]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",yi,[...g[24]||(g[24]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,wi)):e.createCommentVNode("",!0),N.value&&n.showPreviewButton?(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":e.unref(a)("common.preview")||"Preview",onClick:Ae,onMouseenter:g[15]||(g[15]=b=>J(b,e.unref(a)("common.preview")||"Preview")),onFocus:g[16]||(g[16]=b=>J(b,e.unref(a)("common.preview")||"Preview")),onMouseleave:R,onBlur:R},[...g[25]||(g[25]=[e.createElementVNode("svg",{"data-v-3d59cc65":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,xi)):e.createCommentVNode("",!0)])],!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"codeBlockContent",ref:d,class:"code-block-content",style:e.normalizeStyle($.value),onScroll:Ce},null,36),[[e.vShow,!f.value&&(t.stream?!0:!t.loading)]]),e.withDirectives(e.createElementVNode("div",bi,[e.renderSlot(v.$slots,"loading",{loading:t.loading,stream:t.stream},()=>[g[26]||(g[26]=e.createElementVNode("div",{class:"loading-skeleton"},[e.createElementVNode("div",{class:"skeleton-line"}),e.createElementVNode("div",{class:"skeleton-line"}),e.createElementVNode("div",{class:"skeleton-line short"})],-1))],!0)],512),[[e.vShow,!t.stream&&t.loading]])],6))}}),Wt=j(Bi,[["__scopeId","data-v-6fdde045"]]);Wt.install=t=>{t.component(Wt.__name,Wt)};let Ve=null,ot=null,Xn=!1;const we=new Map,qe=new Map,mo=200;let ut=5;const lt=new Set;function Xt(){if(we.size<ut&&lt.size){const t=Array.from(lt);lt.clear();for(const o of t)try{o()}catch(n){}}}let We=null;function Mi(t){Ve=t,ot=null,Ve.onmessage=o=>{const{id:n,html:l,error:a}=o.data,u=we.get(n);if(u)if(we.delete(n),clearTimeout(u.timeoutId),Xt(),a)u.reject(new Error(a));else{const{content:s,displayMode:m}=o.data;if(s){const f=`${m?"d":"i"}:${s}`;if(qe.set(f,l),qe.size>mo){const d=qe.keys().next().value;qe.delete(d)}}u.resolve(l)}},Ve.onerror=o=>{console.error("[katexWorkerClient] Worker error:",o);for(const[n,l]of we.entries())clearTimeout(l.timeoutId),l.reject(new Error(`Worker error: ${o.message}`));we.clear(),Xt()}}function Ci(){var t;Ve&&((t=Ve.terminate)==null||t.call(Ve)),Ve=null,ot=null}function Ei(){return Ve||(ot=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),ot.name="WorkerInitError",ot.code="WORKER_INIT_ERROR",null)}function Ni(t){Xn=!!t,Ve&&Ve.postMessage({type:"init",debug:Xn})}function fo(t,o=!0,n=2e3,l){return T(this,null,function*(){const a=performance.now();if(!En()){const f=new Error("KaTeX rendering disabled");return f.name="KaTeXDisabled",f.code="KATEX_DISABLED",Promise.reject(f)}if(ot)return Promise.reject(ot);const u=`${o?"d":"i"}:${t}`,s=qe.get(u);if(s)return We&&We.recordRender({type:"cache-hit",duration:performance.now()-a,formulaLength:t.length,timestamp:Date.now(),success:!0}),Promise.resolve(s);const m=Ei();if(!m)return Promise.reject(ot);if(we.size>=ut){const f=new Error("Worker busy");return f.name="WorkerBusy",f.code="WORKER_BUSY",f.busy=!0,f.inFlight=we.size,f.max=ut,We&&We.recordRender({type:"worker",duration:performance.now()-a,formulaLength:t.length,timestamp:Date.now(),success:!1,error:"busy"}),Promise.reject(f)}return new Promise((f,d)=>{if(l!=null&&l.aborted){const H=new Error("Aborted");H.name="AbortError",d(H);return}const k=Math.random().toString(36).slice(2),p=globalThis.setTimeout(()=>{we.delete(k);const H=new Error("Worker render timed out");H.name="WorkerTimeout",H.code="WORKER_TIMEOUT",We&&We.recordRender({type:"worker",duration:performance.now()-a,formulaLength:t.length,timestamp:Date.now(),success:!1,error:"timeout"}),d(H),Xt()},n),B=()=>{globalThis.clearTimeout(p),we.has(k)&&we.delete(k);const H=new Error("Aborted");H.name="AbortError",d(H),Xt()};l&&l.addEventListener("abort",B,{once:!0});const E=f,L=d,D=H=>{We&&We.recordRender({type:"worker",duration:performance.now()-a,formulaLength:t.length,timestamp:Date.now(),success:!0}),E(H)},K=H=>{We&&We.recordRender({type:"worker",duration:performance.now()-a,formulaLength:t.length,timestamp:Date.now(),success:!1,error:(H==null?void 0:H.message)||String(H)}),L(H)};we.set(k,{resolve:D,reject:K,timeoutId:p}),m.postMessage({id:k,content:t,displayMode:o})})})}function Ti(t,o=!0,n){const l=`${o?"d":"i"}:${t}`;if(qe.set(l,n),qe.size>mo){const a=qe.keys().next().value;qe.delete(a)}}function _i(){return{inFlight:we.size,max:ut}}function $i(t){Number.isFinite(t)&&t>0&&(ut=Math.floor(t))}const ho="WORKER_BUSY";function Ii(){return we.size>=ut}function po(t=2e3,o){return we.size<ut?Promise.resolve():new Promise((n,l)=>{let a=!1,u;const s=()=>{a||(a=!0,u&&globalThis.clearTimeout(u),lt.delete(s),n())};if(lt.add(s),u=globalThis.setTimeout(()=>{if(a)return;a=!0,lt.delete(s);const m=new Error("Wait for worker slot timed out");m.name="WorkerBusyTimeout",m.code="WORKER_BUSY_TIMEOUT",l(m)},t),queueMicrotask(()=>Xt()),o){const m=()=>{if(a)return;a=!0,u&&globalThis.clearTimeout(u),lt.delete(s);const f=new Error("Aborted");f.name="AbortError",l(f)};o.aborted?m():o.addEventListener("abort",m,{once:!0})}})}const Ze={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function Si(t){t.timeout!=null&&(Ze.timeout=Math.max(0,Math.floor(t.timeout))),t.waitTimeout!=null&&(Ze.waitTimeout=Math.max(0,Math.floor(t.waitTimeout))),t.backoffMs!=null&&(Ze.backoffMs=Math.max(0,Math.floor(t.backoffMs))),t.maxRetries!=null&&(Ze.maxRetries=Math.max(0,Math.floor(t.maxRetries)))}function Vi(){return G({},Ze)}function Li(l){return T(this,arguments,function*(t,o=!0,n={}){var k,p,B,E;if(!En()){const L=new Error("KaTeX rendering disabled");throw L.name="KaTeXDisabled",L.code="KATEX_DISABLED",L}const a=(k=n.timeout)!=null?k:Ze.timeout,u=(p=n.waitTimeout)!=null?p:Ze.waitTimeout,s=(B=n.backoffMs)!=null?B:Ze.backoffMs,m=(E=n.maxRetries)!=null?E:Ze.maxRetries,f=n.signal;let d=0;for(;;){if(f!=null&&f.aborted){const L=new Error("Aborted");throw L.name="AbortError",L}try{return yield fo(t,o,a,f)}catch(L){if((L==null?void 0:L.code)!==ho||d>=m)throw L;if(d++,yield po(u,f).catch(()=>{}),f!=null&&f.aborted){const D=new Error("Aborted");throw D.name="AbortError",D}s>0&&(yield new Promise(D=>globalThis.setTimeout(D,s*d)))}}})}const vo=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CapyHsmU.cjs"))),go=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-ClFlwUOZ.cjs"))),wo=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Cn5LHgOE.cjs"))),Di={AdmonitionNode:Tt,BlockquoteNode:yt,CheckboxNode:je,CodeBlockNode:vo,DefinitionListNode:xt,EmojiNode:ie,FootnoteNode:bt,FootnoteReferenceNode:se,FootnoteAnchorNode:st,HardBreakNode:tt,HeadingNode:cn,HighlightNode:be,ImageNode:Ge,InlineCodeNode:ce,PreCodeNode:dt,InsertNode:xe,LinkNode:fe,ListItemNode:Bt,ListNode:Mt,MathBlockNode:go,MathInlineNode:wo,MermaidBlockNode:ct,ParagraphNode:Ct,StrikethroughNode:me,StrongNode:ue,SubscriptNode:ye,SuperscriptNode:ke,TableNode:Et,TextNode:ee,ThematicBreakNode:Nt,ReferenceNode:de,MarkdownCodeBlockNode:Wt},zi={install(t,o){Object.entries(Di).forEach(([n,l])=>{t.component(n,l)}),o!=null&&o.getLanguageIcon&&so(o.getLanguageIcon),o!=null&&o.mathOptions&&vn.setDefaultMathOptions(o.mathOptions)}};exports.AdmonitionNode=Tt;exports.BlockquoteNode=yt;exports.CheckboxNode=je;exports.CodeBlockNode=vo;exports.DefinitionListNode=xt;exports.EmojiNode=ie;exports.FootnoteAnchorNode=st;exports.FootnoteReferenceNode=se;exports.HardBreakNode=tt;exports.HighlightNode=be;exports.ImageNode=Ge;exports.InsertNode=xe;exports.LinkNode=fe;exports.ListItemNode=Bt;exports.ListNode=Mt;exports.MERMAID_DISABLED_CODE=ro;exports.MERMAID_WORKER_BUSY_CODE=oo;exports.MarkdownCodeBlockNode=Wt;exports.MathBlockNode=go;exports.MathInlineNode=wo;exports.MermaidBlockNode=ct;exports.NodeRenderer=$e;exports.ParagraphNode=Ct;exports.StrikethroughNode=me;exports.StrongNode=ue;exports.SubscriptNode=ye;exports.SuperscriptNode=ke;exports.TableNode=Et;exports.TextNode=ee;exports.ThematicBreakNode=Nt;exports.VueRendererMarkdown=zi;exports.WORKER_BUSY_CODE=ho;exports._HeadingNode=cn;exports._export_sfc=j;exports._sfc_main=dt;exports._sfc_main$1=bt;exports._sfc_main$2=ce;exports._sfc_main$3=de;exports.canParseOffthread=lo;exports.clearGlobalCustomComponents=Po;exports.clearKaTeXWorker=Ci;exports.clearMermaidWorker=ta;exports.disableKatex=cr;exports.disableMermaid=Xr;exports.enableKatex=sr;exports.enableMermaid=Or;exports.findPrefixOffthread=io;exports.getCustomNodeComponents=He;exports.getKaTeXBackpressureDefaults=Vi;exports.getKaTeXWorkerLoad=_i;exports.getKatex=sn;exports.getLanguageIcon=co;exports.getMermaidWorkerLoad=Qr;exports.getUseMonaco=Ja;exports.hideTooltip=rn;exports.isKaTeXWorkerBusy=Ii;exports.isKatexEnabled=En;exports.isMermaidEnabled=no;exports.languageMap=uo;exports.normalizeLanguageIdentifier=$n;exports.removeCustomComponents=Ao;exports.renderKaTeXInWorker=fo;exports.renderKaTeXWithBackpressure=Li;exports.resolveMonacoLanguageId=ai;exports.safeRaf=to;exports.setCustomComponents=Ho;exports.setDefaultI18nMap=Go;exports.setKaTeXBackpressureDefaults=Si;exports.setKaTeXCache=Ti;exports.setKaTeXWorker=Mi;exports.setKaTeXWorkerDebug=Ni;exports.setKaTeXWorkerMaxConcurrency=$i;exports.setKatexLoader=Cn;exports.setLanguageIconResolver=so;exports.setMermaidLoader=_n;exports.setMermaidWorker=ea;exports.setMermaidWorkerClientDebug=Gr;exports.setMermaidWorkerMaxConcurrency=Jr;exports.showTooltipForAnchor=_t;exports.terminateWorker=kn;exports.useSafeI18n=an;exports.useViewportPriority=ln;exports.waitForKaTeXWorkerSlot=po;