markstream-vue 0.0.2-beta.9 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{exports-CyoL-8XF.js → exports-CnH6kN6F.js} +1602 -1521
- package/dist/exports-DsdRlFsA.cjs +246 -0
- package/dist/exports.js +1 -1
- package/dist/{index-DdtMPiwH.js → index-BVEX3mF2.js} +12 -12
- package/dist/{index-CDRkq20z.js → index-Bie7KQwi.js} +323 -331
- package/dist/index-D4WvXLjB.cjs +22 -0
- package/dist/{index-Br7IvHNe.cjs → index-DObBCK_f.cjs} +1 -1
- package/dist/{index-DoRl8S3_.js → index-DRwD-ixu.js} +1 -1
- package/dist/{index-OTPe0l-Z.cjs → index-Dp_yMiDW.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +42 -40
- package/dist/index.tailwind.css +1 -1
- package/dist/index2.js +1 -1
- package/dist/index3.js +1 -1
- package/dist/index4.js +1 -1
- package/dist/tailwind.ts +0 -0
- package/package.json +4 -4
- package/dist/exports-DADWwNRQ.cjs +0 -246
- package/dist/index-CcqRGphH.cjs +0 -22
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
"use strict";var ko=Object.create;var pn=Object.defineProperty,wo=Object.defineProperties,yo=Object.getOwnPropertyDescriptor,xo=Object.getOwnPropertyDescriptors,bo=Object.getOwnPropertyNames,Vn=Object.getOwnPropertySymbols,Bo=Object.getPrototypeOf,Dn=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable;var Ln=(n,o,t)=>o in n?pn(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,Ie=(n,o)=>{for(var t in o||(o={}))Dn.call(o,t)&&Ln(n,t,o[t]);if(Vn)for(var t of Vn(o))Mo.call(o,t)&&Ln(n,t,o[t]);return n},Ye=(n,o)=>wo(n,xo(o));var Co=(n,o,t,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of bo(o))!Dn.call(n,a)&&a!==t&&pn(n,a,{get:()=>o[a],enumerable:!(l=yo(o,a))||l.enumerable});return n};var vt=(n,o,t)=>(t=n!=null?ko(Bo(n)):{},Co(o||!n||!n.__esModule?pn(t,"default",{value:n,enumerable:!0}):t,n));var _=(n,o,t)=>new Promise((l,a)=>{var u=f=>{try{m(t.next(f))}catch(c){a(c)}},s=f=>{try{m(t.throw(f))}catch(c){a(c)}},m=f=>f.done?l(f.value):Promise.resolve(f.value).then(u,s);m((t=t.apply(n,o)).next())});const gn=require("stream-markdown-parser"),e=require("vue"),gt=require("@floating-ui/dom"),Eo=["cite"],No=e.defineComponent({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createElementBlock("blockquote",{class:"blockquote",dir:"auto",cite:n.node.cite},[e.withMemo([o.node.children],()=>e.createVNode(e.unref(Ce),{"index-key":`blockquote-${o.indexKey}`,nodes:o.node.children||[],"custom-id":o.customId,typewriter:o.typewriter,onCopy:l[0]||(l[0]=a=>t.$emit("copy",a))},null,8,["index-key","nodes","custom-id","typewriter"]),l,1)],8,Eo))}}),R=(n,o)=>{const t=n.__vccOpts||n;for(const[l,a]of o)t[l]=a;return t},wt=R(No,[["__scopeId","data-v-eeadc8a3"]]);wt.install=n=>{n.component(wt.__name,wt)};const _o={class:"checkbox-node"},To=["checked"],$o=e.defineComponent({__name:"CheckboxNode",props:{node:{}},setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("span",_o,[e.createElementVNode("input",{type:"checkbox",checked:n.node.checked,disabled:"",class:"checkbox-input"},null,8,To)]))}}),Se=R($o,[["__scopeId","data-v-8dc6c46f"]]);Se.install=n=>{n.component(Se.__name,Se)};const Io={class:"definition-list"},So={class:"definition-term"},Vo={class:"definition-desc"},Lo=e.defineComponent({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createElementBlock("dl",Io,[(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",So,[e.createVNode(e.unref(Ce),{"index-key":`definition-term-${o.indexKey}-${u}`,nodes:a.term,"custom-id":o.customId,typewriter:o.typewriter,onCopy:l[0]||(l[0]=s=>t.$emit("copy",s))},null,8,["index-key","nodes","custom-id","typewriter"])]),e.createElementVNode("dd",Vo,[e.createVNode(e.unref(Ce),{"index-key":`definition-desc-${o.indexKey}-${u}`,nodes:a.definition,"custom-id":o.customId,typewriter:o.typewriter,onCopy:l[1]||(l[1]=s=>t.$emit("copy",s))},null,8,["index-key","nodes","custom-id","typewriter"])])],64))),128))]))}}),yt=R(Lo,[["__scopeId","data-v-f88691d6"]]);yt.install=n=>{n.component(yt.__name,yt)};const Do={class:"emoji-node"},zo=e.defineComponent({__name:"EmojiNode",props:{node:{}},setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("span",Do,e.toDisplayString(n.node.name),1))}}),se=R(zo,[["__scopeId","data-v-de55dc97"]]);se.install=n=>{n.component(se.__name,se)};const Kt="__global__",lt={};function Ro(n,o){typeof n=="string"?lt[n]=o||{}:lt[Kt]=n||{}}function Ve(n){return n?lt[n]||lt[Kt]||{}:lt[Kt]||{}}function jo(n){if(n===Kt)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete lt[n]}function Ho(){delete lt[Kt]}const Ao=["id"],Po=["title"],Ko=e.defineComponent({__name:"FootnoteReferenceNode",props:{node:{}},setup(n){const t=`#footnote-${n.node.id}`;function l(){if(typeof document=="undefined")return;const a=document.querySelector(t);a?a.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(a,u)=>(e.openBlock(),e.createElementBlock("sup",{id:`fnref-${n.node.id}`,class:"footnote-reference",onClick:l},[e.createElementVNode("span",{href:t,title:`查看脚注 ${n.node.id}`,class:"footnote-link cursor-pointer"},"["+e.toDisplayString(n.node.id)+"]",9,Po)],8,Ao))}}),ce=R(Ko,[["__scopeId","data-v-01af0fee"]]);ce.install=n=>{n.component(ce.__name,ce)};const Wo={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-['']"},de=e.defineComponent({__name:"InlineCodeNode",props:{node:{}},setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("code",Wo,e.toDisplayString(n.node.code),1))}});de.install=n=>{n.component(de.__name,de)};const Fo=["id"],Oo=e.defineComponent({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(n){const o=n,t=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 _(this,null,function*(){var p,b;if(!o.anchorEl||!l.value)return;const f=[gt.offset((p=o.offset)!=null?p:8),gt.flip(),gt.shift({padding:8})],{x:c,y:g}=yield gt.computePosition(o.anchorEl,l.value,{placement:(b=o.placement)!=null?b:"top",middleware:f,strategy:"fixed"});a.value.transform=`translate3d(${Math.round(c)}px, ${Math.round(g)}px, 0)`,a.value.left="0px",a.value.top="0px"})}return e.watch(()=>o.visible,f=>_(null,null,function*(){if(f)if(u.value=!1,yield e.nextTick(),o.anchorEl&&l.value)try{const c=o.anchorEl.getBoundingClientRect();yield m();const g=a.value.transform;if(o.originX!=null&&o.originY!=null){const p=Math.abs(Number(o.originX)-c.left),b=Math.abs(Number(o.originY)-c.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=g):u.value=!0}else u.value=!0;s=gt.autoUpdate(o.anchorEl,l.value,m)}catch(c){yield m(),u.value=!0,s=gt.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],()=>_(null,null,function*(){o.visible&&o.anchorEl&&l.value&&(yield e.nextTick(),yield m())})),e.onBeforeUnmount(()=>{s&&s()}),(f,c)=>(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",[t.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(n.content),15,Fo),[[e.vShow,n.visible&&u.value]])]),_:1})]))}}),Xo=R(Oo,[["__scopeId","data-v-993f63aa"]]),bn=e.ref(!1),On=e.ref(""),Xn=e.ref("top"),At=e.ref(null),Wt=e.ref(null),Bn=e.ref(null),Mn=e.ref(null),Yn=e.ref(null);let Qt=null,en=null;function qn(){Qt&&(clearTimeout(Qt),Qt=null),en&&(clearTimeout(en),en=null)}let zn=!1;function Yo(){if(zn||typeof document=="undefined")return;zn=!0;const n=document.createElement("div");n.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(n);const o={setup(){return()=>{var t;return e.h(Xo,{visible:bn.value,"anchor-el":At.value,content:On.value,placement:Xn.value,id:Wt.value,originX:Bn.value,originY:Mn.value,isDark:(t=Yn.value)!=null?t:void 0})}}};e.createApp(o).mount(n)}function _t(n,o,t="top",l=!1,a,u){if(!n)return;Yo(),qn();const s=()=>{var m,f;Wt.value=`tooltip-${Date.now()}-${Math.floor(Math.random()*1e3)}`,At.value=n,On.value=o,Xn.value=t,Bn.value=(m=a==null?void 0:a.x)!=null?m:null,Mn.value=(f=a==null?void 0:a.y)!=null?f:null,Yn.value=typeof u=="boolean"?u:null,bn.value=!0;try{n.setAttribute("aria-describedby",Wt.value)}catch(c){}};l?s():Qt=setTimeout(s,80)}function on(n=!1){qn();const o=()=>{if(At.value&&Wt.value)try{At.value.removeAttribute("aria-describedby")}catch(t){}bn.value=!1,At.value=null,Wt.value=null,Bn.value=null,Mn.value=null};n?o():en=setTimeout(o,120)}function qo(n){return(n.split(".").pop()||n).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,t=>t.toUpperCase()).trim()}const Un={"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 Uo(n){Object.assign(Un,n)}function rn(){try{const o=globalThis.$vueI18nUse||null;if(o&&typeof o=="function")try{const t=o();if(t&&typeof t.t=="function")return{t:t.t.bind(t)}}catch(t){}}catch(o){}const n=o=>{var t;return(t=Un[o])!=null?t:qo(o)};return _(null,null,function*(){try{const o=yield import("vue-i18n"),t=o.useI18n||o.default&&o.default.useI18n;if(t&&typeof t=="function")try{const l=t();if(l&&typeof l.t=="function")try{globalThis.$vueI18nUse=()=>l}catch(a){}}catch(l){}}catch(o){}}),{t:n}}const Zn=Symbol("ViewportPriority");function Zo(n,o){const t=typeof window!="undefined"&&typeof document!="undefined",l=typeof o=="boolean"?e.ref(o):o;let a=null;const u=new WeakMap;function s(){var c;if(a||!t)return a;if(typeof IntersectionObserver=="undefined")return null;const f=(c=n())!=null?c:null;return a=new IntersectionObserver(g=>{for(const p of g){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,c)=>{const g=e.ref(!1);let p=!1,b;const C=new Promise(H=>{b=()=>{p||(p=!0,H())}}),L=()=>{try{a==null||a.unobserve(f)}catch(H){}u.delete(f)};if(!t||!l.value)return g.value=!0,b(),{isVisible:g,whenVisible:C,destroy:L};const D=s();return D?(u.set(f,{resolve:b,visible:g}),D.observe(f),{isVisible:g,whenVisible:C,destroy:L}):(g.value=!0,b(),{isVisible:g,whenVisible:C,destroy:L})};return e.provide(Zn,m),m}function an(){const n=e.inject(Zn,void 0);if(n)return n;const o=new WeakMap;let t=null;const l=()=>t||(typeof window=="undefined"||typeof IntersectionObserver=="undefined"?null:(t=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(c){}}t==null||t.unobserve(s.target),o.delete(s.target)}}},{root:null,rootMargin:"300px",threshold:0}),t));return u=>{const s=e.ref(!1);let m=!1,f;const c=new Promise(b=>{f=()=>{m||(m=!0,b())}}),g=()=>{try{t==null||t.unobserve(u)}catch(b){}o.delete(u)},p=l();return p?(o.set(u,{resolve:f,visible:s}),p.observe(u),{isVisible:s,whenVisible:c,destroy:g}):(s.value=!0,f(),{isVisible:s,whenVisible:c,destroy:g})}}const Go={class:"relative inline-block"},Jo=["src","alt","title","loading","tabindex","aria-label"],Qo={class:"text-sm whitespace-nowrap"},er={key:1,class:"text-sm text-gray-500"},tr={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},nr={class:"text-sm whitespace-nowrap"},or={key:0,class:"mt-2 text-sm text-gray-500 italic"},rr=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(n,{emit:o}){const t=n,l=o,a=e.ref(!1),u=e.ref(!1),s=e.ref(!1),m=e.ref(null),f=an(),c=e.ref(null),g=e.ref(typeof window=="undefined");typeof window!="undefined"&&e.watch(()=>m.value,N=>{var z;if((z=c.value)==null||z.destroy(),c.value=null,!N){g.value=!1;return}const ae=f(N,{rootMargin:"400px"});c.value=ae,g.value=ae.isVisible.value,ae.whenVisible.then(()=>{g.value=!0})},{immediate:!0}),e.onBeforeUnmount(()=>{var N;(N=c.value)==null||N.destroy(),c.value=null});const p=e.computed(()=>u.value&&t.fallbackSrc?t.fallbackSrc:t.node.src),b=e.computed(()=>!t.lazy||g.value),C=e.computed(()=>/\.svg(?:\?|$)/i.test(p.value));function L(){t.fallbackSrc&&!s.value?(s.value=!0,u.value=!0):(u.value=!0,l("error",t.node.src))}function D(){a.value=!0,u.value=!1,l("load",p.value)}function H(N){N.preventDefault(),!(!a.value||u.value)&&l("click",[N,p.value])}const{t:I}=rn();return e.watch(p,()=>{a.value=!1,u.value=!1}),(N,ae)=>(e.openBlock(),e.createElementBlock("figure",{ref_key:"figureRef",ref:m,class:"text-center my-8"},[e.createElementVNode("div",Go,[e.createVNode(e.Transition,{name:"img-switch",mode:"out-in"},{default:e.withCtx(()=>{var z,K,E,G,X;return[!n.node.loading&&!u.value&&b.value?(e.openBlock(),e.createElementBlock("img",{key:"image",src:p.value,alt:String((K=(z=t.node.alt)!=null?z:t.node.title)!=null?K:""),title:String((G=(E=t.node.title)!=null?E:t.node.alt)!=null?G:""),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(C.value?{minHeight:t.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:t.lazy?"lazy":"eager",decoding:"async",tabindex:a.value?0:-1,"aria-label":(X=t.node.alt)!=null?X:e.unref(I)("image.preview"),onError:L,onLoad:D,onClick:H},null,46,Jo)):u.value?!n.node.loading&&!t.fallbackSrc?(e.openBlock(),e.createElementBlock("div",tr,[e.renderSlot(N.$slots,"error",{node:t.node,displaySrc:p.value,imageLoaded:a.value,hasError:u.value,fallbackSrc:t.fallbackSrc,lazy:t.lazy,isSvg:C.value},()=>[ae[1]||(ae[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",nr,e.toDisplayString(e.unref(I)("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(C.value?{minHeight:t.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[t.usePlaceholder?e.renderSlot(N.$slots,"placeholder",{key:0,node:t.node,displaySrc:p.value,imageLoaded:a.value,hasError:u.value,fallbackSrc:t.fallbackSrc,lazy:t.lazy,isSvg:C.value},()=>[ae[0]||(ae[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",Qo,e.toDisplayString(e.unref(I)("image.loading")),1)],!0):(e.openBlock(),e.createElementBlock("span",er,e.toDisplayString(n.node.raw),1))],4))]}),_:3})]),t.showCaption&&t.node.alt?(e.openBlock(),e.createElementBlock("figcaption",or,e.toDisplayString(t.node.alt),1)):e.createCommentVNode("",!0)],512))}}),Oe=R(rr,[["__scopeId","data-v-7ca79b66"]]);Oe.install=n=>{n.component(Oe.__name,Oe)};let Ht=null,tn=!1,Cn=Gn;function Gn(){return _(null,null,function*(){const n=yield import("katex");return yield import("katex/contrib/mhchem"),n})}function ar(){Ht=null,tn=!1}function En(n){Cn=n,ar()}function lr(n){En(n!=null?n:Gn)}function ir(){En(null)}function Nn(){return typeof Cn=="function"}function ln(){return _(this,null,function*(){if(Ht)return Ht;if(tn)return null;const n=Cn;if(!n)return tn=!0,null;try{const o=yield n();if(o)return Ht=o,Ht}catch(o){}return tn=!0,null})}const vn=e.shallowRef(!1);let Rn=null;function Jn(){return Rn||(Rn=ln().then(n=>{vn.value=!!n}).catch(()=>{vn.value=!1})),e.readonly(vn)}const sr=e.defineComponent({__name:"TextNode",props:{node:{}},emits:["copy"],setup(n){const o=Jn();return(t,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([[e.unref(o)&&n.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},e.toDisplayString(n.node.content),3))}}),ee=R(sr,[["__scopeId","data-v-56f30838"]]);ee.install=n=>{n.component(ee.__name,ee)};const Re=e.defineAsyncComponent(()=>_(null,null,function*(){var o,t;if(typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((t=(o=globalThis.process)==null?void 0:o.env)==null?void 0:t.NODE_ENV)==="test")return l=>{var a,u;return e.h(ee,Ye(Ie({},l),{node:Ye(Ie({},l.node),{content:(u=l.node.raw)!=null?u:`$${(a=l.node.content)!=null?a:""}$`})}))};try{if(yield ln())return(yield Promise.resolve().then(()=>require("./index-Br7IvHNe.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,Ye(Ie({},l),{node:Ye(Ie({},l.node),{content:(u=l.node.raw)!=null?u:`$${(a=l.node.content)!=null?a:""}$`})}))}})),cr=e.defineAsyncComponent(()=>_(null,null,function*(){try{if(yield ln())return(yield Promise.resolve().then(()=>require("./index-OTPe0l-Z.cjs"))).default}catch(n){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".',n)}return n=>{var o,t;return e.h(ee,Ye(Ie({},n),{node:Ye(Ie({},n.node),{content:(t=n.node.raw)!=null?t:`$$${(o=n.node.content)!=null?o:""}$$`})}))}})),ue=e.defineComponent({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup(n){return(o,t)=>(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:t[0]||(t[0]=l=>o.$emit("click",l,n.node.id,n.messageId,n.threadId)),onMouseenter:t[1]||(t[1]=l=>o.$emit("mouseEnter",l,n.node.id,n.messageId,n.threadId)),onMouseleave:t[2]||(t[2]=l=>o.$emit("mouseLeave",l,n.node.id,n.messageId,n.threadId))},e.toDisplayString(n.node.id),33))}});ue.install=n=>{n.component(ue.__name,ue)};const dr={class:"superscript-node"},ur={key:1},mr=e.defineComponent({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={text:t.text||ee,inline_code:t.inline_code||de,link:t.link||he,strong:t.strong||me,emphasis:t.emphasis||Ee,footnote_reference:t.footnote_reference||ce,strikethrough:t.strikethrough||fe,highlight:t.highlight||be,insert:t.insert||xe,subscript:t.subscript||ye,emoji:t.emoji||se,math_inline:t.math_inline||Re,reference:t.reference||ue};return(a,u)=>(e.openBlock(),e.createElementBlock("sup",dr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(s,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${n.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":`${n.indexKey||"superscript"}-${m}`},null,8,["node","custom-id","index-key"])):(e.openBlock(),e.createElementBlock("span",ur,e.toDisplayString(s.content||s.raw),1))],64))),128))]))}}),we=R(mr,[["__scopeId","data-v-61b3fc8c"]]);we.install=n=>{n.component(we.__name,we)};const fr={class:"subscript-node"},hr={key:1},pr=e.defineComponent({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={text:t.text||ee,inline_code:t.inline_code||de,link:t.link||he,strong:t.strong||me,emphasis:t.emphasis||Ee,footnote_reference:t.footnote_reference||ce,strikethrough:t.strikethrough||fe,highlight:t.highlight||be,insert:t.insert||xe,superscript:t.superscript||we,emoji:t.emoji||se,math_inline:t.math_inline||Re,reference:t.reference||ue};return(a,u)=>(e.openBlock(),e.createElementBlock("sub",fr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(s,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${n.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":`${n.indexKey||"subscript"}-${m}`},null,8,["node","custom-id","index-key"])):(e.openBlock(),e.createElementBlock("span",hr,e.toDisplayString(s.content||s.raw),1))],64))),128))]))}}),ye=R(pr,[["__scopeId","data-v-7ab6b46a"]]);ye.install=n=>{n.component(ye.__name,ye)};const vr={class:"strong-node"},gr=e.defineComponent({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={text:t.text||ee,inline_code:t.inline_code||de,link:t.link||he,emphasis:t.emphasis||Ee,strikethrough:t.strikethrough||fe,highlight:t.highlight||be,insert:t.insert||xe,subscript:t.subscript||ye,superscript:t.superscript||we,emoji:t.emoji||se,footnote_reference:t.footnote_reference||ce,math_inline:t.math_inline||Re,reference:t.reference||ue};return(a,u)=>(e.openBlock(),e.createElementBlock("strong",vr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${n.indexKey||"strong"}-${m}`,"index-key":`${n.indexKey||"strong"}-${m}`,node:s,"custom-id":o.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),me=R(gr,[["__scopeId","data-v-fa84457b"]]);me.install=n=>{n.component(me.__name,me)};const kr={class:"strikethrough-node"},wr=e.defineComponent({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={text:t.text||ee,inline_code:t.inline_code||de,link:t.link||he,strong:t.strong||me,emphasis:t.emphasis||Ee,highlight:t.highlight||be,insert:t.insert||xe,subscript:t.subscript||ye,superscript:t.superscript||we,emoji:t.emoji||se,footnote_reference:t.footnote_reference||ce,math_inline:t.math_inline||Re,reference:t.reference||ue};return(a,u)=>(e.openBlock(),e.createElementBlock("del",kr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${n.indexKey||"strikethrough"}-${m}`,node:s,"custom-id":o.customId,"index-key":`${n.indexKey||"strikethrough"}-${m}`},null,8,["node","custom-id","index-key"]))),128))]))}}),fe=R(wr,[["__scopeId","data-v-b5c4d542"]]);fe.install=n=>{n.component(fe.__name,fe)};const yr=["href","title","aria-label","aria-hidden"],xr=["aria-hidden"],br={class:"link-text-wrapper relative inline-flex"},Br={class:"leading-[normal] link-text"},Mr={class:"leading-[normal] link-text"},Cr=e.defineComponent({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(n){const o=n,t=e.computed(()=>{var c,g,p,b,C,L;const f=o.underlineBottom!==void 0?typeof o.underlineBottom=="number"?`${o.underlineBottom}px`:String(o.underlineBottom):"-3px";return{"--link-color":(c=o.color)!=null?c:"#0366d6","--underline-height":`${(g=o.underlineHeight)!=null?g: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":(C=o.animationTiming)!=null?C:"linear","--underline-iteration":typeof o.animationIteration=="number"?String(o.animationIteration):(L=o.animationIteration)!=null?L:"infinite"}}),l={text:ee,strong:me,strikethrough:fe,emphasis:Ee,image:Oe},a=e.useAttrs();function u(f){var b,C,L;if(!o.showTooltip)return;const c=f,g=(c==null?void 0:c.clientX)!=null&&(c==null?void 0:c.clientY)!=null?{x:c.clientX,y:c.clientY}:void 0,p=((b=o.node)==null?void 0:b.title)||((C=o.node)==null?void 0:C.href)||((L=o.node)==null?void 0:L.text)||"";_t(f.currentTarget,p,"top",!1,g)}function s(){o.showTooltip&&on()}const m=e.computed(()=>{var f,c;return String((c=(f=o.node.title)!=null?f:o.node.href)!=null?c:"")});return(f,c)=>n.node.loading?(e.openBlock(),e.createElementBlock("span",e.mergeProps({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":n.node.loading?"false":"true"},e.unref(a),{style:t.value}),[e.createElementVNode("span",br,[e.createElementVNode("span",Br,[e.createElementVNode("span",Mr,e.toDisplayString(n.node.text),1)]),c[1]||(c[1]=e.createElementVNode("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,xr)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"link-node",href:n.node.href,title:n.showTooltip?"":m.value,"aria-label":`Link: ${m.value}`,"aria-hidden":n.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},e.unref(a),{style:t.value,onMouseenter:c[0]||(c[0]=g=>u(g)),onMouseleave:s}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(g,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[g.type]),{key:`${n.indexKey||"emphasis"}-${p}`,node:g,"custom-id":o.customId,"index-key":`${n.indexKey||"link-text"}-${p}`},null,8,["node","custom-id","index-key"]))),128))],16,yr))}}),he=R(Cr,[["__scopeId","data-v-80b69735"]]);he.install=n=>{n.component(he.__name,he)};const Er={class:"insert-node"},Nr=e.defineComponent({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={text:t.text||ee,inline_code:t.inline_code||de,link:t.link||he,strong:t.strong||me,emphasis:t.emphasis||Ee,strikethrough:t.strikethrough||fe,highlight:t.highlight||be,subscript:t.subscript||ye,superscript:t.superscript||we,emoji:t.emoji||se,footnote_reference:t.footnote_reference||ce,math_inline:t.math_inline||Re,reference:t.reference||ue};return(a,u)=>(e.openBlock(),e.createElementBlock("ins",Er,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${n.indexKey||"insert"}-${m}`,node:s,"custom-id":o.customId,"index-key":`${n.indexKey||"insert"}-${m}`},null,8,["node","custom-id","index-key"]))),128))]))}}),xe=R(Nr,[["__scopeId","data-v-f8fcda3c"]]);xe.install=n=>{n.component(xe.__name,xe)};const _r={class:"highlight-node"},Tr=e.defineComponent({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={text:t.text||ee,inline_code:t.inline_code||de,link:t.link||he,strong:t.strong||me,emphasis:t.emphasis||Ee,strikethrough:t.strikethrough||fe,insert:t.insert||xe,subscript:t.subscript||ye,superscript:t.superscript||we,emoji:t.emoji||se,footnote_reference:t.footnote_reference||ce,math_inline:t.math_inline||Re,reference:t.reference||ue};return(a,u)=>(e.openBlock(),e.createElementBlock("mark",_r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${n.indexKey||"highlight"}-${m}`,node:s,"custom-id":o.customId,"index-key":`${n.indexKey||"highlight"}-${m}`},null,8,["node","custom-id","index-key"]))),128))]))}}),be=R(Tr,[["__scopeId","data-v-d99ab14d"]]);be.install=n=>{n.component(be.__name,be)};const $r={class:"emphasis-node"},Ir=e.defineComponent({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={text:t.text||ee,inline_code:t.inline_code||de,link:t.link||he,strong:t.strong||me,strikethrough:t.strikethrough||fe,highlight:t.highlight||be,insert:t.insert||xe,subscript:t.subscript||ye,superscript:t.superscript||we,emoji:t.emoji||se,footnote_reference:t.footnote_reference||ce,math_inline:t.math_inline||Re,reference:t.reference||ue};return(a,u)=>(e.openBlock(),e.createElementBlock("em",$r,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${n.indexKey||"emphasis"}-${m}`,node:s,"custom-id":o.customId,"index-key":`${n.indexKey||"emphasis"}-${m}`},null,8,["node","custom-id","index-key"]))),128))]))}}),Ee=R(Ir,[["__scopeId","data-v-836b7830"]]);Ee.install=n=>{n.component(Ee.__name,Ee)};const Sr=["href","title"],Vr=e.defineComponent({__name:"FootnoteAnchorNode",props:{node:{}},setup(n){const o=n;function t(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-${n.node.id}`,title:`返回引用 ${n.node.id}`,onClick:t}," ↩︎ ",8,Sr))}}),it=R(Vr,[["__scopeId","data-v-4756ce0d"]]);it.install=n=>{n.component(it.__name,it)};const Lr=["id"],Dr={class:"flex-1"},xt=e.defineComponent({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(n){const o=n;return(t,l)=>(e.openBlock(),e.createElementBlock("div",{id:`fnref--${n.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[e.createElementVNode("div",Dr,[e.withMemo([o.node.children],()=>e.createVNode(e.unref(Ce),{"index-key":`footnote-${o.indexKey}`,nodes:o.node.children,"custom-id":o.customId,typewriter:o.typewriter,onCopy:l[0]||(l[0]=a=>t.$emit("copy",a))},null,8,["index-key","nodes","custom-id","typewriter"]),l,1)])],8,Lr))}});xt.install=n=>{n.component(xt.__name,xt)};const zr={class:"hard-break"},Rr=e.defineComponent({__name:"HardBreakNode",props:{node:{}},setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("br",zr))}}),qe=R(Rr,[["__scopeId","data-v-50c58f70"]]);qe.install=n=>{n.component(qe.__name,qe)};const jr=e.defineComponent({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={text:t.text||ee,inline_code:t.inline_code||de,link:t.link||he,image:t.image||Oe,strong:t.strong||me,emphasis:t.emphasis||Ee,strikethrough:t.strikethrough||fe,highlight:t.highlight||be,insert:t.insert||xe,subscript:t.subscript||ye,superscript:t.superscript||we,emoji:t.emoji||se,checkbox:t.checkbox||Se,checkbox_input:t.checkbox_input||Se,footnote_reference:t.footnote_reference||ce,hardbreak:t.hardbreak||qe,math_inline:t.math_inline||Re,reference:t.reference||ue};return(a,u)=>e.withMemo([n.node.children],()=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(`h${n.node.level}`),{class:e.normalizeClass(["heading-node",[`heading-${n.node.level}`]]),dir:"auto"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(s,m,f,c)=>{const g=[s];if(c&&c.key===`${n.indexKey||"heading"}-${m}`&&e.isMemoSame(c,g))return c;const p=(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[s.type]),{key:`${n.indexKey||"heading"}-${m}`,"custom-id":o.customId,node:s,"index-key":`${n.indexKey||"heading"}-${m}`},null,8,["custom-id","node","index-key"]));return p.memo=g,p},u,0),128))]),_:1},8,["class"])),u,2)}}),kn=R(jr,[["__scopeId","data-v-8712d23e"]]),sn=kn;sn.install=n=>{n.component(kn.__name,kn)};const Hr=e.defineComponent({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},customId:{},typewriter:{type:Boolean}},emits:["copy"],setup(n){const o=n,t=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"},t.value),[e.withMemo([o.item.children],()=>e.createVNode(e.unref(Ce),{"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=R(Hr,[["__scopeId","data-v-7a618746"]]);bt.install=n=>{n.component(bt.__name,bt)};const Ar=e.defineComponent({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(n){return(o,t)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.node.ordered?"ol":"ul"),{class:e.normalizeClass(["list-node",{"list-decimal":n.node.ordered,"list-disc":!n.node.ordered}])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.items,(l,a,u,s)=>{var c;const m=[l];if(s&&s.key===`${n.indexKey||"list"}-${a}`&&e.isMemoSame(s,m))return s;const f=(e.openBlock(),e.createBlock(e.unref(bt),{key:`${n.indexKey||"list"}-${a}`,item:l,"custom-id":n.customId,"index-key":`${n.indexKey||"list"}-${a}`,typewriter:n.typewriter,value:n.node.ordered?((c=n.node.start)!=null?c:1)+a:void 0,onCopy:t[0]||(t[0]=g=>o.$emit("copy",g))},null,8,["item","custom-id","index-key","typewriter","value"]));return f.memo=m,f},t,1),128))]),_:1},8,["class"]))}}),Bt=R(Ar,[["__scopeId","data-v-79057d57"]]);Bt.install=n=>{n.component(Bt.__name,Bt)};const Pr="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 Qn(n){try{if(typeof globalThis!="undefined"&&typeof globalThis.requestAnimationFrame=="function")return globalThis.requestAnimationFrame(n)}catch(o){}return globalThis.setTimeout(n,0)}const _n=()=>import("mermaid");let kt=null,Tn=_n;function Kr(){kt=null}function $n(n){Tn=n,Kr()}function Wr(n){$n(n!=null?n:_n)}function Fr(){$n(null)}function eo(){return typeof Tn=="function"}function Or(n){if(!n)return n;const o=n&&n.default?n.default:n;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 t=o.mermaidAPI;return Ye(Ie({},o),{render:t.render.bind(t),parse:t.parse?t.parse.bind(t):void 0,initialize:l=>typeof o.initialize=="function"?o.initialize(l):t.initialize?t.initialize(l):void 0})}return n.mermaid&&typeof n.mermaid.render=="function"?n.mermaid:o}function Xr(n){if(n)try{const o=n==null?void 0:n.initialize;n.initialize=t=>{const l=Ie({suppressErrorRendering:!0},t||{});if(typeof o=="function")return o.call(n,l);if(n!=null&&n.mermaidAPI&&typeof n.mermaidAPI.initialize=="function")return n.mermaidAPI.initialize(l)}}catch(o){}}function Yr(){return _(this,null,function*(){if(kt)return kt;const n=Tn;if(!n)return null;let o;try{o=yield n()}catch(t){throw n===_n?new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.'):t}return o?(kt=Or(o),Xr(kt),kt):null})}let oe=null,Ue=null;const Q=new Map,qr=5;let nn=qr,wn=!1;function Ur(n){wn=!!n}function Zr(n){Number.isFinite(n)&&n>0&&(nn=Math.floor(n))}function Gr(){return{inFlight:Q.size,max:nn}}const to="WORKER_BUSY",no="MERMAID_DISABLED";function Jr(n){oe=n,Ue=null;const o=n;oe.onmessage=t=>{if(oe!==o)return;const{id:l,ok:a,result:u,error:s}=t.data,m=Q.get(l);m&&(a===!1||s?m.reject(new Error(s||"Unknown error")):m.resolve(u))},oe.onerror=t=>{var l,a;if(oe===o){if(Q.size===0){(l=console.debug)==null||l.call(console,"[mermaidWorkerClient] Worker error (no pending):",(t==null?void 0:t.message)||t);return}try{wn?console.error("[mermaidWorkerClient] Worker error:",(t==null?void 0:t.message)||t):(a=console.debug)==null||a.call(console,"[mermaidWorkerClient] Worker error:",(t==null?void 0:t.message)||t)}catch(u){}for(const[u,s]of Q.entries())s.reject(new Error(`Worker error: ${t.message}`));Q.clear()}},oe.onmessageerror=t=>{var l,a;if(oe===o){if(Q.size===0){(l=console.debug)==null||l.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",t);return}try{wn?console.error("[mermaidWorkerClient] Worker messageerror:",t):(a=console.debug)==null||a.call(console,"[mermaidWorkerClient] Worker messageerror:",t)}catch(u){}for(const[u,s]of Q.entries())s.reject(new Error("Worker messageerror"));Q.clear()}}}function Qr(){var n;if(oe)try{for(const[o,t]of Q.entries())t.reject(new Error("Worker cleared"));Q.clear(),(n=oe.terminate)==null||n.call(oe)}catch(o){}oe=null,Ue=null}function ea(){return oe||(Ue=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),Ue.name="WorkerInitError",Ue.code="WORKER_INIT_ERROR",null)}function oo(n,o,t=1400){if(!eo()){const a=new Error("Mermaid rendering disabled");return a.name="MermaidDisabled",a.code=no,Promise.reject(a)}if(Ue)return Promise.reject(Ue);const l=ea();if(!l)return Promise.reject(Ue);if(Q.size>=nn){const a=new Error("Worker busy");return a.name="WorkerBusy",a.code=to,a.inFlight=Q.size,a.max=nn,Promise.reject(a)}return new Promise((a,u)=>{const s=Math.random().toString(36).slice(2);let m=!1,f;const c=()=>{m||(m=!0,f!=null&&globalThis.clearTimeout(f),Q.delete(s))},g={resolve:p=>{c(),a(p)},reject:p=>{c(),u(p)}};Q.set(s,g);try{l.postMessage({id:s,action:n,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)},t)})}function ro(n,o,t=1400){return _(this,null,function*(){try{return yield oo("canParse",{code:n,theme:o},t)}catch(l){return Promise.reject(l)}})}function ao(n,o,t=1400){return _(this,null,function*(){try{return yield oo("findPrefix",{code:n,theme:o},t)}catch(l){return Promise.reject(l)}})}function yn(){if(oe)try{for(const[n,o]of Q.entries())o.reject(new Error("Worker terminated"));Q.clear(),oe.terminate()}finally{oe=null}}const ta={key:0},na={key:1,class:"flex items-center space-x-2 overflow-hidden"},oa=["src"],ra={key:2},aa={class:"flex items-center space-x-1"},la={class:"flex items-center space-x-1"},ia={key:4},sa={key:5,class:"flex items-center space-x-1"},ca=["aria-pressed"],da={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"},ua={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"},ma=["disabled"],fa=["disabled"],ha={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"},pa={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"},va={key:1,class:"relative"},ga={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},ka={class:"flex items-center gap-2 backdrop-blur rounded-lg"},wa={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},ya=300,xa=500,ba=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(n,{emit:o}){var In,Sn;const t=n,l=o,{t:a}=rn(),u=e.ref(!1);function s(){return _(this,null,function*(){try{const i=yield Yr();return u.value=!!i,i}catch(i){throw u.value=!1,i}})}typeof window!="undefined"&&_(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),c=e.ref(),g=e.ref(),p=e.ref(),b=e.ref(),C=e.ref(null),L=an(),D=e.ref(null),H=e.ref(typeof window=="undefined"),I=e.ref(),N=e.computed(()=>t.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode"));function ae(i){const r=N.value,y=`%%{init: {"theme": "${i==="dark"?"dark":"default"}"}}%%
|
|
2
|
-
`;return r.trim().startsWith("%%{")?r:y+r}const z=e.ref(1),K=e.ref(0),E=e.ref(0),G=e.ref(!1),X=e.ref({x:0,y:0}),A=e.ref(!1),pe=e.ref(!1),W=e.ref(!1),Xe=e.ref(null),je=e.ref(0),He=e.ref(!1);let Ne=null;const Z=e.ref("360px");let q=null;const S=e.ref(!1),le=e.ref(!1),Be=e.ref({}),Ae=e.ref(null),ve=e.ref(""),Ge=e.ref(0);let te=null;const ge=e.ref(!1),_e=e.ref({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),w=e.computed(()=>{var i,r,d,y;return{worker:(i=t.workerTimeoutMs)!=null?i:1400,parse:(r=t.parseTimeoutMs)!=null?r:1800,render:(d=t.renderTimeoutMs)!=null?d:2500,fullRender:(y=t.fullRenderTimeoutMs)!=null?y:4e3}}),k=(In=globalThis.cancelIdleCallback)!=null?In:(i=>clearTimeout(i));let B=null,U=null,J=!1,Je=800,ie=null,Qe=0,Tt=!0;typeof window!="undefined"&&e.watch(()=>c.value,i=>{var d;if((d=D.value)==null||d.destroy(),D.value=null,!i){H.value=!1;return}const r=L(i,{rootMargin:"400px"});D.value=r,H.value=r.isVisible.value,r.whenVisible.then(()=>{H.value=!0})},{immediate:!0}),e.onBeforeUnmount(()=>{var i;(i=D.value)==null||i.destroy(),D.value=null});function Le(i,r){const d=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 T=null,M=!1,P=null;return new Promise((V,ne)=>{const Y=()=>{T!=null&&clearTimeout(T),P&&y&&y.removeEventListener("abort",P)};d&&d>0&&(T=globalThis.setTimeout(()=>{M||(M=!0,Y(),ne(new Error("Operation timed out")))},d)),y&&(P=()=>{M||(M=!0,Y(),ne(new DOMException("Aborted","AbortError")))},y.addEventListener("abort",P)),i().then(pt=>{M||(M=!0,Y(),V(pt))}).catch(pt=>{M||(M=!0,Y(),ne(pt))})})}function Pe(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 d=document.createElement("span");d.textContent=i instanceof Error?i.message:"Unknown error",r.appendChild(d),p.value.innerHTML="",p.value.appendChild(r),Z.value="360px",ge.value=!0,rt()}function et(i){const r=i;return!r||r.disabled}function F(i,r,d="top"){if(et(i.currentTarget))return;const y=i,T=(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,d,!1,T,t.isDark)}function O(){on()}function $t(i){if(et(i.currentTarget))return;const r=m.value?a("common.copied")||"Copied":a("common.copy")||"Copy",d=i,y=(d==null?void 0:d.clientX)!=null&&(d==null?void 0:d.clientY)!=null?{x:d.clientX,y:d.clientY}:void 0;_t(i.currentTarget,r,"top",!1,y,t.isDark)}function It(i,r){const y=`%%{init: {"theme": "${r==="dark"?"dark":"default"}"}}%%
|
|
3
|
-
`;return i.trimStart().startsWith("%%{")?i:y+i}function St(){return Tt&&!A.value&&!S.value&&!ge.value}function Ot(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 Xt(i,r,d){return _(this,null,function*(){var V,ne;const y=yield s();if(!y)return;const T=y,M=It(i,r);if(typeof T.parse=="function")return yield Le(()=>T.parse(M),{timeoutMs:(V=d==null?void 0:d.timeoutMs)!=null?V:w.value.parse,signal:d==null?void 0:d.signal}),!0;const P=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield Le(()=>y.render(P,M),{timeoutMs:(ne=d==null?void 0:d.timeoutMs)!=null?ne:w.value.render,signal:d==null?void 0:d.signal}),!0})}function ut(i,r,d){return _(this,null,function*(){var y;try{return yield ro(i,r,(y=d==null?void 0:d.timeoutMs)!=null?y:w.value.worker)}catch(T){return yield Xt(i,r,d)}})}function cn(i,r,d){return _(this,null,function*(){var T;try{if(yield ut(i,r,d))return{fullOk:!0,prefixOk:!1}}catch(M){if((M==null?void 0:M.name)==="AbortError")throw M}let y=Ot(i);if(y&&y.trim()&&y!==i)try{try{const P=yield ao(i,r,(T=d==null?void 0:d.timeoutMs)!=null?T:w.value.worker);P&&P.trim()&&(y=P)}catch(P){}if(yield ut(y,r,d))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 tt=e.computed(()=>A.value||W.value||f.value);function mt(i){if(!c.value||!p.value)return;const r=p.value.querySelector("svg");if(!r)return;let d=0,y=0;const T=r.getAttribute("viewBox"),M=r.getAttribute("width"),P=r.getAttribute("height");if(T){const V=T.split(" ");V.length===4&&(d=Number.parseFloat(V[2]),y=Number.parseFloat(V[3]))}if((!d||!y)&&M&&P&&(d=Number.parseFloat(M),y=Number.parseFloat(P)),Number.isNaN(d)||Number.isNaN(y)||d<=0||y<=0)try{const V=r.getBBox();V&&V.width>0&&V.height>0&&(d=V.width,y=V.height)}catch(V){console.error("Failed to get SVG BBox:",V);return}if(d>0&&y>0){const V=y/d;let Y=(i!=null?i:c.value.clientWidth)*V;Y>y&&(Y=y),Z.value=`${Y}px`}}const De=e.ref(!1),Vt=e.computed(()=>({transform:`translate(${K.value}px, ${E.value}px) scale(${z.value})`}));function Yt(i){i.key==="Escape"&&De.value&&ft()}function qt(){if(De.value=!0,typeof document!="undefined")try{document.body.style.overflow="hidden"}catch(i){}if(typeof window!="undefined")try{window.addEventListener("keydown",Yt)}catch(i){}e.nextTick(()=>{if(c.value&&b.value){const i=c.value.cloneNode(!0);i.classList.add("fullscreen");const r=i.querySelector("[data-mermaid-wrapper]");r&&(C.value=r,r.style.transform=Vt.value.transform),b.value.innerHTML="",b.value.appendChild(i)}})}function ft(){if(De.value=!1,b.value&&(b.value.innerHTML=""),C.value=null,typeof document!="undefined")try{document.body.style.overflow=""}catch(i){}if(typeof window!="undefined")try{window.removeEventListener("keydown",Yt)}catch(i){}}function Ut(i,r){let d=null;return(...y)=>{d&&clearTimeout(d),d=setTimeout(()=>i(...y),r)}}function h(){if(!A.value||!u.value)return;const i=N.value.length;i!==je.value&&(He.value=!0,je.value=i,Ne&&clearTimeout(Ne),Ne=setTimeout(()=>{He.value&&A.value&&N.value.trim()&&(He.value=!1,Dt("preview"))},xa))}e.watch(Vt,i=>{De.value&&C.value&&(C.value.style.transform=i.transform)},{immediate:!0});function v(){z.value<3&&(z.value+=.1)}function x(){z.value>.5&&(z.value-=.1)}function j(){z.value=1,K.value=0,E.value=0}function $(i){G.value=!0,i instanceof MouseEvent?X.value={x:i.clientX-K.value,y:i.clientY-E.value}:X.value={x:i.touches[0].clientX-K.value,y:i.touches[0].clientY-E.value}}function re(i){if(!G.value)return;let r,d;i instanceof MouseEvent?(r=i.clientX,d=i.clientY):(r=i.touches[0].clientX,d=i.touches[0].clientY),K.value=r-X.value.x,E.value=d-X.value.y}function Me(){G.value=!1}function Ke(i){if(i.ctrlKey||i.metaKey){if(i.preventDefault(),!c.value)return;const r=c.value.getBoundingClientRect(),d=i.clientX-r.left,y=i.clientY-r.top,T=r.width/2,M=r.height/2,P=d-T,V=y-M,ne=(P-K.value)/z.value,Y=(V-E.value)/z.value,go=-i.deltaY*.01,Jt=Math.min(Math.max(z.value+go,.5),3);Jt!==z.value&&(K.value=P-ne*Jt,E.value=V-Y*Jt,z.value=Jt)}}function Te(){return _(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 nt(i,r=null){return _(this,null,function*(){try{const d=r!=null?r:new XMLSerializer().serializeToString(i),y=new Blob([d],{type:"image/svg+xml;charset=utf-8"}),T=URL.createObjectURL(y);if(typeof document!="undefined"){const M=document.createElement("a");M.href=T,M.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(M),M.click(),document.body.removeChild(M)}catch(P){}URL.revokeObjectURL(T)}}catch(d){console.error("Failed to export SVG:",d)}})}function ht(){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),d={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:i,svgString:r};l("export",d),d.defaultPrevented||nt(i,r)}function dn(){var y,T;const i=(T=(y=p.value)==null?void 0:y.querySelector("svg"))!=null?T:null,r=i?new XMLSerializer().serializeToString(i):null,d={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:i,svgString:r};l("openModal",d),d.defaultPrevented||qt()}function Lt(i){const r={payload:{type:"toggle-mode",target:i},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};l("toggleMode",i,r),r.defaultPrevented||Dt(i)}function Dt(i){return _(this,null,function*(){const r=I.value;if(!r){pe.value=!0,A.value=i==="source";return}const d=r.getBoundingClientRect().height;r.style.height=`${d}px`,r.style.overflow="hidden",pe.value=!0,A.value=i==="source",yield e.nextTick();const y=r.scrollHeight;r.style.transition="height 180ms ease",r.offsetHeight,r.style.height=`${y}px`;const T=()=>{r.style.transition="",r.style.height="",r.style.overflow="",r.removeEventListener("transitionend",M)};function M(){T()}r.addEventListener("transitionend",M),setTimeout(()=>T(),220)})}function ot(){return _(this,null,function*(){if(W.value)return Xe.value;if(!p.value&&(yield e.nextTick(),!p.value)){console.warn("Mermaid container not ready");return}return W.value=!0,Xe.value=_(null,null,function*(){var i;p.value&&(p.value.style.opacity="0");try{const r=yield s();if(!r)return;const d=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;!S.value&&!le.value&&((i=r.initialize)==null||i.call(r,{securityLevel:"loose",startOnLoad:!1}));const y=t.isDark?"dark":"light",T=ae(y),M=yield Le(()=>r.render(d,T),{timeoutMs:w.value.fullRender}),P=M==null?void 0:M.svg,V=M==null?void 0:M.bindFunctions;if(p.value){p.value.innerHTML=P,V==null||V(p.value),!S.value&&!le.value&&(mt(),S.value=!0,_e.value={zoom:z.value,translateX:K.value,translateY:E.value,containerHeight:Z.value});const ne=t.isDark?"dark":"light";Be.value[ne]=P,le.value&&(le.value=!1),ge.value=!1}}catch(r){console.error("Failed to render mermaid diagram:",r),t.loading===!1&&Pe(r)}finally{yield e.nextTick(),p.value&&(p.value.style.opacity="1"),W.value=!1,Xe.value=null}}),Xe.value})}function un(i){return _(this,null,function*(){if(St()&&!(!p.value&&(yield e.nextTick(),!p.value))&&!W.value){W.value=!0;try{const r=yield s();if(!r)return;const d=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,y=t.isDark?"dark":"light",T=Ot(i),M=T&&T.trim()?T:i,P=It(M,y);p.value&&(p.value.style.opacity="0");const V=yield Le(()=>r.render(d,P),{timeoutMs:w.value.render}),ne=V==null?void 0:V.svg,Y=V==null?void 0:V.bindFunctions;p.value&&ne&&(p.value.innerHTML=ne,Y==null||Y(p.value),mt())}catch(r){}finally{yield e.nextTick(),p.value&&(p.value.style.opacity="1"),W.value=!1}}})}const mn=(Sn=globalThis.requestIdleCallback)!=null?Sn:((i,r)=>setTimeout(()=>i({didTimeout:!0}),16));function zt(){return _(this,null,function*(){var V,ne;const i=Date.now(),r=++Ge.value;te&&te.abort(),te=new AbortController;const d=te.signal,y=t.isDark?"dark":"light",T=N.value,M=T.replace(/\s+/g,"");if(!T.trim()){p.value&&(p.value.innerHTML=""),Ae.value=null,ve.value="",ge.value=!1;return}if(M===ve.value)return;try{const Y=yield cn(T,y,{signal:d,timeoutMs:w.value.worker});if(Y.fullOk){yield ot(),Ge.value===r&&(Ae.value=(ne=(V=p.value)==null?void 0:V.innerHTML)!=null?ne:null,ve.value=M,ge.value=!1);return}const pt=Qe&&i<=Qe;if(Y.prefixOk&&Y.prefix&&St()&&!pt){yield un(Y.prefix);return}}catch(Y){if((Y==null?void 0:Y.name)==="AbortError")return}if(Ge.value!==r||ge.value)return;const P=Be.value[y];P&&p.value&&(p.value.innerHTML=P)})}const Rt=Ut(()=>{mn(()=>{zt()},{timeout:500})},ya);function rt(){J&&(J=!1,Je=800,Tt=!1,ie&&(ie.abort(),ie=null),B&&(globalThis.clearTimeout(B),B=null),U&&(k(U),U=null),Qe=Date.now())}function Zt(){if(rt(),te){try{te.abort()}catch(i){}te=null}if(ie){try{ie.abort()}catch(i){}ie=null}yn()}function fn(i=800){J&&(B&&globalThis.clearTimeout(B),B=globalThis.setTimeout(()=>{U=mn(()=>_(null,null,function*(){if(!J)return;if(A.value||S.value){rt();return}const r=t.isDark?"dark":"light",d=N.value;if(!d.trim()){fn(Je);return}ie&&ie.abort(),ie=new AbortController;try{if((yield ut(d,r,{signal:ie.signal,timeoutMs:w.value.worker}))&&(yield ot(),S.value)){rt();return}}catch(y){}Je=Math.min(Math.floor(Je*1.5),4e3),fn(Je)}),{timeout:500})},i))}function hn(){J||A.value||S.value||(J=!0,Qe=0,Tt=!0,fn(500))}e.watch(()=>N.value,()=>{S.value=!1,Be.value={},Rt(),!A.value&&u.value&&hn(),h()}),e.watch(()=>t.isDark,()=>_(null,null,function*(){if(!S.value||ge.value)return;const i=t.isDark?"dark":"light";if(Be.value[i]){p.value&&(p.value.innerHTML=Be.value[i]);return}const r={zoom:z.value,translateX:K.value,translateY:E.value,containerHeight:Z.value},d=z.value!==1||K.value!==0||E.value!==0;le.value=!0,d&&(z.value=1,K.value=0,E.value=0,yield e.nextTick()),yield ot(),d&&(yield e.nextTick(),z.value=r.zoom,K.value=r.translateX,E.value=r.translateY,Z.value=r.containerHeight,_e.value=r)})),e.watch(()=>A.value,i=>_(null,null,function*(){if(i)rt(),S.value&&(_e.value={zoom:z.value,translateX:K.value,translateY:E.value,containerHeight:Z.value});else{if(ge.value)return;const r=t.isDark?"dark":"light";if(S.value&&Be.value[r]){yield e.nextTick(),p.value&&(p.value.innerHTML=Be.value[r]),z.value=_e.value.zoom,K.value=_e.value.translateX,E.value=_e.value.translateY,Z.value=_e.value.containerHeight;return}if(yield e.nextTick(),!u.value)return;yield zt(),hn()}})),e.watch(()=>t.loading,(i,r)=>_(null,null,function*(){if(r===!0&&i===!1){const d=N.value.trim();if(!d)return Zt();const y=t.isDark?"dark":"light",T=d.replace(/\s+/g,"");if(S.value&&T===ve.value){yield e.nextTick(),p.value&&!p.value.querySelector("svg")&&Be.value[y]&&(p.value.innerHTML=Be.value[y]),Zt();return}try{yield ut(d,y,{timeoutMs:w.value.worker}),yield ot(),ve.value=T,ge.value=!1,Zt()}catch(M){Zt(),Pe(M)}}})),e.watch(c,i=>{q&&q.disconnect(),i&&!S.value&&!le.value&&(q=new ResizeObserver(r=>{r&&r.length>0&&!S.value&&!le.value&&Qn(()=>{const d=r[0].contentRect.width;mt(d)})}),q.observe(i))},{immediate:!0}),e.onMounted(()=>_(null,null,function*(){yield e.nextTick(),pe.value||(A.value=!u.value),H.value&&(Rt(),je.value=N.value.length)})),e.watch(()=>u.value,i=>{pe.value||(A.value=!i)}),e.watch(()=>H.value,i=>{i&&(S.value||(Rt(),je.value=N.value.length),!t.loading&&!S.value&&Rt())},{immediate:!1}),e.onUnmounted(()=>{Ne&&clearTimeout(Ne),q&&q.disconnect(),te&&(te.abort(),te=null),yn(),rt()}),e.watch(()=>f.value,i=>_(null,null,function*(){i?(rt(),te&&te.abort()):S.value||(yield e.nextTick(),Rt(),A.value||hn())}),{immediate:!1});const Gt=e.computed(()=>t.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",[t.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":t.loading}]])},[t.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",t.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[i.$slots["header-left"]?(e.openBlock(),e.createElementBlock("div",ta,[e.renderSlot(i.$slots,"header-left",{},void 0,!0)])):(e.openBlock(),e.createElementBlock("div",na,[e.createElementVNode("img",{src:e.unref(Pr),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,oa),e.createElementVNode("span",{class:e.normalizeClass(["text-sm font-medium font-mono truncate",t.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),i.$slots["header-center"]?(e.openBlock(),e.createElementBlock("div",ra,[e.renderSlot(i.$slots,"header-center",{},void 0,!0)])):t.showModeToggle&&u.value?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["flex items-center space-x-1 rounded-md p-0.5",t.isDark?"bg-gray-700":"bg-gray-100"])},[e.createElementVNode("button",{class:e.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[A.value?t.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":t.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:r[0]||(r[0]=()=>Lt("preview")),onMouseenter:r[1]||(r[1]=d=>F(d,e.unref(a)("common.preview")||"Preview")),onFocus:r[2]||(r[2]=d=>F(d,e.unref(a)("common.preview")||"Preview")),onMouseleave:O,onBlur:O},[e.createElementVNode("div",aa,[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",[A.value?t.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":t.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:r[3]||(r[3]=()=>Lt("source")),onMouseenter:r[4]||(r[4]=d=>F(d,e.unref(a)("common.source")||"Source")),onFocus:r[5]||(r[5]=d=>F(d,e.unref(a)("common.source")||"Source")),onMouseleave:O,onBlur:O},[e.createElementVNode("div",la,[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",ia,[e.renderSlot(i.$slots,"header-right",{},void 0,!0)])):(e.openBlock(),e.createElementBlock("div",sa,[t.showCollapseButton?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(Gt.value),"aria-pressed":f.value,onClick:r[6]||(r[6]=d=>f.value=!f.value),onMouseenter:r[7]||(r[7]=d=>F(d,f.value?e.unref(a)("common.expand")||"Expand":e.unref(a)("common.collapse")||"Collapse")),onFocus:r[8]||(r[8]=d=>F(d,f.value?e.unref(a)("common.expand")||"Expand":e.unref(a)("common.collapse")||"Collapse")),onMouseleave:O,onBlur:O},[(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,ca)):e.createCommentVNode("",!0),t.showCopyButton?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(Gt.value),onClick:Te,onMouseenter:r[9]||(r[9]=d=>$t(d)),onFocus:r[10]||(r[10]=d=>$t(d)),onMouseleave:O,onBlur:O},[m.value?(e.openBlock(),e.createElementBlock("svg",ua,[...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",da,[...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),t.showExportButton&&u.value?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(`${Gt.value} ${tt.value?"opacity-50 cursor-not-allowed":""}`),disabled:tt.value,onClick:ht,onMouseenter:r[11]||(r[11]=d=>F(d,e.unref(a)("common.export")||"Export")),onFocus:r[12]||(r[12]=d=>F(d,e.unref(a)("common.export")||"Export")),onMouseleave:O,onBlur:O},[...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,ma)):e.createCommentVNode("",!0),t.showFullscreenButton&&u.value?(e.openBlock(),e.createElementBlock("button",{key:3,class:e.normalizeClass(`${Gt.value} ${tt.value?"opacity-50 cursor-not-allowed":""}`),disabled:tt.value,onClick:dn,onMouseenter:r[13]||(r[13]=d=>F(d,De.value?e.unref(a)("common.minimize")||"Minimize":e.unref(a)("common.open")||"Open")),onFocus:r[14]||(r[14]=d=>F(d,De.value?e.unref(a)("common.minimize")||"Minimize":e.unref(a)("common.open")||"Open")),onMouseleave:O,onBlur:O},[De.value?(e.openBlock(),e.createElementBlock("svg",pa,[...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",ha,[...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,fa)):e.createCommentVNode("",!0)]))],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"modeContainerRef",ref:I},[A.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["p-4",t.isDark?"bg-gray-900":"bg-gray-50"])},[e.createElementVNode("pre",{class:e.normalizeClass(["text-sm font-mono whitespace-pre-wrap",t.isDark?"text-gray-300":"text-gray-700"])},e.toDisplayString(N.value),3)],2)):(e.openBlock(),e.createElementBlock("div",va,[t.showZoomControls?(e.openBlock(),e.createElementBlock("div",ga,[e.createElementVNode("div",ka,[e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[t.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:v,onMouseenter:r[15]||(r[15]=d=>F(d,e.unref(a)("common.zoomIn")||"Zoom in")),onFocus:r[16]||(r[16]=d=>F(d,e.unref(a)("common.zoomIn")||"Zoom in")),onMouseleave:O,onBlur:O},[...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",[t.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:x,onMouseenter:r[17]||(r[17]=d=>F(d,e.unref(a)("common.zoomOut")||"Zoom out")),onFocus:r[18]||(r[18]=d=>F(d,e.unref(a)("common.zoomOut")||"Zoom out")),onMouseleave:O,onBlur:O},[...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",[t.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:j,onMouseenter:r[19]||(r[19]=d=>F(d,e.unref(a)("common.resetZoom")||"Reset zoom")),onFocus:r[20]||(r[20]=d=>F(d,e.unref(a)("common.resetZoom")||"Reset zoom")),onMouseleave:O,onBlur:O},e.toDisplayString(Math.round(z.value*100))+"% ",35)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"mermaidContainer",ref:c,class:e.normalizeClass(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",t.isDark?"bg-gray-900":"bg-gray-50"]),style:e.normalizeStyle({height:Z.value}),onWheel:Ke,onMousedown:$,onMousemove:re,onMouseup:Me,onMouseleave:Me,onTouchstartPassive:$,onTouchmovePassive:re,onTouchendPassive:Me},[e.createElementVNode("div",{ref_key:"mermaidWrapper",ref:g,"data-mermaid-wrapper":"",class:e.normalizeClass(["absolute inset-0 cursor-grab",{"cursor-grabbing":G.value}]),style:e.normalizeStyle(Vt.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(()=>[De.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",t.isDark?"bg-gray-900":"bg-white"])},[e.createElementVNode("div",wa,[e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[t.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:v},[...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",[t.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:x},[...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",[t.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:j},e.toDisplayString(Math.round(z.value*100))+"% ",3),e.createElementVNode("button",{class:e.normalizeClass(["inline-flex items-center justify-center p-2 rounded transition-colors",[t.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:Ke,onMousedown:$,onMousemove:re,onMouseup:Me,onMouseleave:Me,onTouchstart:$,onTouchmove:re,onTouchend:Me},null,544)],2)])):e.createCommentVNode("",!0)]),_:1})]))]))],512),[[e.vShow,!f.value]])],2))}}),st=R(ba,[["__scopeId","data-v-32888c9e"]]);st.install=n=>{n.component(st.__name,st)};const Ba={dir:"auto",class:"paragraph-node"},Ma=e.defineComponent({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(n){const o=n,t=Ve(o.customId),l={inline_code:t.inline_code||de,image:t.image||Oe,link:t.link||he,hardbreak:t.hardbreak||qe,emphasis:t.emphasis||Ee,strong:t.strong||me,strikethrough:t.strikethrough||fe,highlight:t.highlight||be,insert:t.insert||xe,subscript:t.subscript||ye,superscript:t.superscript||we,emoji:t.emoji||se,checkbox:t.checkbox||Se,math_inline:t.math_inline||Re,checkbox_input:t.checkbox_input||Se,reference:t.reference||ue,footnote_anchor:t.footnote_anchor||it,footnote_reference:t.footnote_reference||ce},a=Jn();return(u,s)=>(e.openBlock(),e.createElementBlock("p",Ba,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,(m,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${n.indexKey||"paragraph"}-${f}`},[m.type!=="text"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l[m.type]),{key:0,node:m,"index-key":`${n.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))]))}}),Mt=R(Ma,[["__scopeId","data-v-5edcac7a"]]);Mt.install=n=>{n.component(Mt.__name,Mt)};const Ca=["aria-busy","aria-label","data-language"],Ea=["textContent"],ct=e.defineComponent({__name:"PreCodeNode",props:{node:{}},setup(n){const o=n,t=e.computed(()=>{var f,c,g;const u=String((c=(f=o.node)==null?void 0:f.language)!=null?c:"");return String((g=String(u).split(/\s+/g)[0])!=null?g:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),l=e.computed(()=>`language-${t.value}`),a=e.computed(()=>{const u=t.value;return u?`Code block: ${u}`:"Code block"});return(u,s)=>(e.openBlock(),e.createElementBlock("pre",{class:e.normalizeClass([l.value]),"aria-busy":n.node.loading===!0,"aria-label":a.value,"data-language":t.value,tabindex:"0"},[e.createElementVNode("code",{translate:"no",textContent:e.toDisplayString(n.node.code)},null,8,Ea)],10,Ca))}});ct.install=n=>{n.component(ct.__name,ct)};const Na={class:"table-node-wrapper"},_a=["aria-busy"],Ta={class:"border-[var(--table-border,#cbd5e1)]"},$a={class:"border-b"},Ia={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},Sa=e.defineComponent({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(n){const o=n,t=e.computed(()=>{var s,m,f,c;return(c=(f=(m=(s=o.node)==null?void 0:s.header)==null?void 0:m.cells)==null?void 0:f.length)!=null?c:0}),l=e.computed(()=>{const s=t.value||1,m=Math.floor(100/s);return Array.from({length:s}).map((f,c)=>c===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",Na,[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,c)=>(e.openBlock(),e.createElementBlock("col",{key:`col-${c}`,style:e.normalizeStyle({width:f})},null,4))),128))]),e.createElementVNode("thead",Ta,[e.createElementVNode("tr",$a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.header.cells,(f,c)=>(e.openBlock(),e.createElementBlock("th",{key:`header-${c}`,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(Ce),{nodes:f.children,"index-key":`table-th-${o.indexKey}`,"custom-id":o.customId,typewriter:o.typewriter,onCopy:m[0]||(m[0]=g=>s.$emit("copy",g))},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,c)=>(e.openBlock(),e.createElementBlock("tr",{key:`row-${c}`,class:e.normalizeClass(["border-[var(--table-border,#cbd5e1)]",[c<u.value.length-1?"border-b":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.cells,(g,p)=>(e.openBlock(),e.createElementBlock("td",{key:`cell-${c}-${p}`,class:e.normalizeClass(["p-[calc(4/7*1em)] overflow-x-auto",[g.align==="right"?"text-right":g.align==="center"?"text-center":"text-left"]]),dir:"auto"},[e.createVNode(e.unref(Ce),{nodes:g.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",Ia,[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})]))}}),Ct=R(Sa,[["__scopeId","data-v-a874491c"]]);Ct.install=n=>{n.component(Ct.__name,Ct)};const Va={},La={class:"hr-node"};function Da(n,o){return e.openBlock(),e.createElementBlock("hr",La)}const Et=R(Va,[["render",Da],["__scopeId","data-v-639cbad9"]]);Et.install=n=>{n.component(Et.__name,Et)};const za={key:1,class:"html-block-node__placeholder"},Ra=e.defineComponent({__name:"HtmlBlockNode",props:{node:{}},setup(n){const o=n,t=e.computed(()=>{const c=o.node.attrs;if(c){if(Array.isArray(c)){const g={};for(const p of c){if(!p||p.length<2)continue;const[b,C]=p;b!=null&&(g[String(b)]=C==null?"":String(C))}return g}return c}}),l=e.ref(null),a=e.ref(typeof window=="undefined"),u=e.ref(o.node.content),s=an(),m=e.ref(null),f=!!o.node.loading;return typeof window!="undefined"?(e.watch(l,c=>{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(!c){a.value=!1;return}const g=s(c,{rootMargin:"400px"});m.value=g,a.value=g.isVisible.value,g.whenVisible.then(()=>{a.value=!0})},{immediate:!0}),e.watch(()=>o.node.content,c=>{(!f||a.value)&&(u.value=c)})):a.value=!0,e.onBeforeUnmount(()=>{var c,g;(g=(c=m.value)==null?void 0:c.destroy)==null||g.call(c),m.value=null}),(c,g)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"htmlRef",ref:l,class:"html-block-node"},t.value),[a.value?e.withMemo([u.value],()=>(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:u.value},null,8,["innerHTML"])),g,0):(e.openBlock(),e.createElementBlock("div",za,[e.renderSlot(c.$slots,"placeholder",{node:n.node},()=>[g[1]||(g[1]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar"},null,-1)),g[2]||(g[2]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),g[3]||(g[3]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),ja=R(Ra,[["__scopeId","data-v-ed22b926"]]),Ha={class:"unknown-node"},jn=e.defineComponent({__name:"FallbackComponent",props:{node:{}},setup(n){return(o,t)=>(e.openBlock(),e.createElementBlock("div",Ha,e.toDisplayString(n.node.raw),1))}}),Aa=["data-node-index","data-node-type"],Pa=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(n,{emit:o}){var qt,ft,Ut;const t=n,l=o,a=e.ref(),u=e.ref(t.viewportPriority!==!1),s=Zo(()=>a.value,u),m=gn.getMarkdown(),f=e.computed(()=>t.customMarkdownIt?t.customMarkdownIt(m):m),c=e.computed(()=>{var h;if((h=t.nodes)!=null&&h.length)return e.markRaw(t.nodes.slice());if(t.content){const v=gn.parseMarkdownToStructure(t.content,f.value,t.parseOptions);return e.markRaw(v)}return[]}),g=typeof window!="undefined",p=g&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,b=g&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,C=typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((ft=(qt=globalThis.process)==null?void 0:qt.env)==null?void 0:ft.NODE_ENV)==="test",L=g&&typeof window.requestIdleCallback=="function",D=e.computed(()=>{var v;const h=Math.trunc((v=t.renderBatchSize)!=null?v:80);return Number.isFinite(h)?Math.max(0,h):0}),H=e.computed(()=>{var v;const h=Math.trunc((v=t.initialRenderBatchSize)!=null?v:D.value);return Number.isFinite(h)?Math.max(0,h):D.value}),I=e.computed(()=>t.batchRendering!==!1&&D.value>0&&g&&!C),N=e.ref(0),ae=e.ref({key:t.indexKey,total:0}),z=e.ref({batchSize:D.value,initial:H.value,delay:(Ut=t.renderBatchDelay)!=null?Ut:16,enabled:I.value}),K=e.shallowRef([]),E=e.ref(Math.max(1,D.value||1)),G=e.reactive({}),X=new Map,A=new Map,pe=e.computed(()=>t.deferNodesUntilVisible!==!1&&u.value!==!1),W=e.computed(()=>{var h;return((h=t.maxLiveNodes)!=null?h:0)>0}),Xe=e.computed(()=>!!s&&(pe.value||W.value)),je=e.computed(()=>{var h;return Math.max(1,(h=t.maxLiveNodes)!=null?h:320)}),He=e.computed(()=>{var h;return Math.max(0,(h=t.liveNodeBuffer)!=null?h:60)}),Ne=e.ref(0),Z=e.reactive({start:0,end:0}),q=new Map,S=e.computed(()=>{if(!W.value)return c.value.length;const h=He.value,v=Math.max(Z.end+h,H.value),x=Math.min(c.value.length,v);return Math.max(N.value,x)});function le(h,v,x){return Math.min(Math.max(h,v),x)}function Be(){const h=c.value.length;if(!W.value||h===0){Z.start=0,Z.end=h;return}const v=Math.min(je.value,h),x=He.value,j=le(Ne.value-x,0,Math.max(0,h-v));Z.start=j,Z.end=Math.min(h,j+v)}const Ae=e.reactive({}),ve=e.reactive({total:0,count:0});function Ge(h,v){if(!Number.isFinite(v)||v<=0)return;const x=Ae[h];Ae[h]=v,x?ve.total+=v-x:(ve.total+=v,ve.count++)}const te=e.computed(()=>ve.count>0?Math.max(12,ve.total/ve.count):32);function ge(h,v){var j;if(h>=v)return 0;let x=0;for(let $=h;$<v;$++)x+=(j=Ae[$])!=null?j:te.value;return x}const _e=e.computed(()=>{if(!W.value)return c.value.map((j,$)=>({node:j,index:$}));const h=c.value.length,v=le(Z.start,0,h),x=le(Z.end,v,h);return c.value.slice(v,x).map((j,$)=>({node:j,index:v+$}))}),w=e.computed(()=>W.value?ge(0,Math.min(Z.start,c.value.length)):0),k=e.computed(()=>{if(!W.value)return 0;const h=c.value.length,v=Math.min(Z.end,h);return ge(v,h)});function B(){const h=c.value.length,v=Math.min(h,N.value);if(v<=0){K.value=[],U(0);return}if(v>=h){K.value=c.value,U(v);return}K.value=c.value.slice(0,v),U(v)}function U(h){if(X.size)for(const[v,x]of X)v>=h&&(x.destroy(),X.delete(v),pe.value&&delete G[v],A.delete(v))}function J(h,v){pe.value&&(G[h]=v),v&&(Ne.value=le(h,0,Math.max(0,c.value.length-1)))}function Je(h){return!pe.value||h<H.value?!0:G[h]===!0}function ie(h){const v=X.get(h);v&&(v.destroy(),X.delete(h))}function Qe(h,v){if(v?A.set(h,v):A.delete(h),!Xe.value||!s){ie(h),v?J(h,!0):pe.value&&delete G[h];return}if(h<H.value&&!W.value){ie(h),J(h,!0);return}if(!v){ie(h),pe.value&&delete G[h];return}ie(h);const x=s(v,{rootMargin:"400px"});x&&(X.set(h,x),J(h,x.isVisible.value),x.whenVisible.then(()=>{J(h,!0)}).catch(()=>{}))}function Tt(h,v){if(!v){q.delete(h);return}q.set(h,v),queueMicrotask(()=>{Ge(h,v.offsetHeight)})}let Le=null,Pe=null,et=!1,F=null,O=null;function $t(){g&&(Le!=null&&(b==null||b(Le),Le=null),Pe!=null&&(window.clearTimeout(Pe),Pe=null),O!=null&&typeof window.cancelIdleCallback=="function"&&(window.cancelIdleCallback(O),O=null),et=!1,F=null)}function It(h,v={}){var Me,Ke;if(!I.value)return;const x=S.value;if(N.value>=x)return;const j=Math.max(1,h),$=Te=>{var Dt;Le=null,Pe=null,O=null,et=!1;const nt=F!=null?F:j;F=null;const ht=Math.max(2,(Dt=t.renderBatchBudgetMs)!=null?Dt:6),dn=ot=>{const un=typeof performance!="undefined"?performance.now():Date.now();N.value=Math.min(x,N.value+Math.max(1,ot)),B();const zt=(typeof performance!="undefined"?performance.now():Date.now())-un;return Ot(zt),zt};let Lt=nt;for(;dn(Lt),!(N.value>=x||!Te||(typeof Te.timeRemaining=="function"?Te.timeRemaining():0)<=ht*.5);)Lt=Math.max(1,Math.round(E.value));N.value<x&&St()};if(!g||v.immediate){$();return}const re=Math.max(0,(Me=t.renderBatchDelay)!=null?Me:16);if(F=F!=null?Math.max(F,j):j,!et){if(et=!0,!C&&L&&window.requestIdleCallback){const Te=Math.max(0,(Ke=t.renderBatchIdleTimeoutMs)!=null?Ke:120);O=window.requestIdleCallback(nt=>{$(nt)},{timeout:Te});return}if(!p||C){Pe=window.setTimeout(()=>$(),re);return}Le=p(()=>{if(re===0){$();return}Pe=window.setTimeout(()=>$(),re)})}}function St(){const h=I.value?Math.max(1,Math.round(E.value)):Math.max(1,D.value);It(h)}function Ot(h){var $;if(!I.value)return;const v=Math.max(2,($=t.renderBatchBudgetMs)!=null?$:6),x=Math.max(1,D.value||1),j=Math.max(1,Math.floor(x/4));h>v*1.2?E.value=Math.max(j,Math.floor(E.value*.7)):h<v*.5&&E.value<x&&(E.value=Math.min(x,Math.ceil(E.value*1.2)))}e.watch([()=>c.value,()=>c.value.length,()=>I.value,()=>D.value,()=>H.value,()=>t.renderBatchDelay,()=>t.indexKey],()=>{var ht;const v=c.value.length,x=ae.value,j=t.indexKey,$=j!==void 0?j!==x.key:v!==x.total;ae.value={key:j,total:v};const re=z.value,Me=(ht=t.renderBatchDelay)!=null?ht:16,Ke=re.batchSize!==D.value||re.initial!==H.value||re.delay!==Me||re.enabled!==I.value;z.value={batchSize:D.value,initial:H.value,delay:Me,enabled:I.value},($||Ke||!I.value)&&$t(),($||Ke)&&(E.value=Math.max(1,D.value||1));const Te=S.value;if(!v){N.value=0,B();return}if(!I.value){N.value=Te,B();return}$||Ke?N.value=Math.min(Te,H.value):N.value=Math.min(N.value,Te);const nt=Math.max(1,H.value||D.value||v);N.value<Te?It(nt,{immediate:!g}):B()},{immediate:!0}),e.watch(()=>pe.value,h=>{if(!h){for(const v of X.values())v.destroy();X.clear();for(const v of Object.keys(G))delete G[v];for(const[v,x]of A)x&&J(v,!0);return}for(const[v,x]of A)Qe(v,x)},{immediate:!1}),e.watch(()=>N.value,(h,v)=>{W.value&&(typeof v=="number"&&h<=v||h>0&&(Ne.value=h-1))}),e.watch([Ne,je,He,()=>c.value.length,W],()=>{Be()},{immediate:!0}),e.watch(()=>S.value,(h,v)=>{I.value&&(typeof v=="number"&&h<=v||h>N.value&&St())}),e.onBeforeUnmount(()=>{$t();for(const h of X.values())h.destroy();X.clear()});const Xt=e.defineAsyncComponent(()=>_(null,null,function*(){try{return(yield Promise.resolve().then(()=>require("./index-CcqRGphH.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),ct}})),ut=e.computed(()=>t.renderCodeBlocksAsPre?ct:Xt),cn={text:ee,paragraph:Mt,heading:sn,code_block:Xt,list:Bt,blockquote:wt,table:Ct,definition_list:yt,footnote:xt,footnote_reference:ce,footnote_anchor:it,admonition:Nt,hardbreak:qe,link:he,image:Oe,thematic_break:Et,math_inline:Re,math_block:cr,strong:me,emphasis:Ee,strikethrough:fe,highlight:be,insert:xe,subscript:ye,superscript:we,emoji:se,checkbox:Se,checkbox_input:Se,inline_code:de,reference:ue,html_block:ja};function tt(h){var j;if(!h)return jn;const v=Ve(t.customId),x=v[String(h.type)];if(h.type==="code_block"){if(String((j=h.language)!=null?j:"").trim().toLowerCase()==="mermaid")return v.mermaid||st;if(x)return x;const re=v.code_block;return re||ut.value}return x||cn[String(h.type)]||jn}function mt(h){var v;return(h==null?void 0:h.type)==="code_block"&&String((v=h.language)!=null?v:"").trim().toLowerCase()==="mermaid"?{}:h.type==="code_block"?Ie({stream:t.codeBlockStream,darkTheme:t.codeBlockDarkTheme,lightTheme:t.codeBlockLightTheme,monacoOptions:t.codeBlockMonacoOptions,themes:t.themes,minWidth:t.codeBlockMinWidth,maxWidth:t.codeBlockMaxWidth},t.codeBlockProps||{}):{typewriter:t.typewriter}}function De(h){l("click",h)}function Vt(h){var x;(x=h.target)!=null&&x.closest("[data-node-index]")&&l("mouseover",h)}function Yt(h){var x;(x=h.target)!=null&&x.closest("[data-node-index]")&&l("mouseout",h)}return(h,v)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:a,class:"markdown-renderer",onClick:De,onMouseover:Vt,onMouseout:Yt},[W.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"node-spacer",style:e.normalizeStyle({height:`${w.value}px`}),"aria-hidden":"true"},null,4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_e.value,x=>{var j;return e.openBlock(),e.createElementBlock("div",{key:x.index,ref_for:!0,ref:$=>Qe(x.index,$),class:"node-slot","data-node-index":x.index,"data-node-type":x.node.type},[Je(x.index)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_for:!0,ref:$=>Tt(x.index,$),class:"node-content"},[x.node.type!=="code_block"&&t.typewriter!==!1?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"typewriter",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(tt(x.node)),e.mergeProps({node:x.node,loading:x.node.loading,"index-key":`${n.indexKey||"markdown-renderer"}-${x.index}`},{ref_for:!0},mt(x.node),{"custom-id":t.customId,"is-dark":t.isDark,onCopy:v[0]||(v[0]=$=>l("copy",$)),onHandleArtifactClick:v[1]||(v[1]=$=>l("handleArtifactClick",$))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(tt(x.node)),e.mergeProps({key:1,node:x.node,loading:x.node.loading,"index-key":`${n.indexKey||"markdown-renderer"}-${x.index}`},{ref_for:!0},mt(x.node),{"custom-id":t.customId,"is-dark":t.isDark,onCopy:v[2]||(v[2]=$=>l("copy",$)),onHandleArtifactClick:v[3]||(v[3]=$=>l("handleArtifactClick",$))}),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:`${(j=Ae[x.index])!=null?j:te.value}px`})},null,4))],8,Aa)}),128)),W.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"node-spacer",style:e.normalizeStyle({height:`${k.value}px`}),"aria-hidden":"true"},null,4)):e.createCommentVNode("",!0)],544))}}),Ce=R(Pa,[["__scopeId","data-v-c1cf4dae"]]);Ce.install=n=>{var t,l;const o=(l=(t=Ce.__name)!=null?t:Ce.name)!=null?l:"NodeRenderer";n.component(o,Ce)};const Ka={key:0,class:"admonition-icon"},Wa={class:"admonition-title"},Fa=["aria-expanded","aria-controls","title"],Oa={key:0},Xa={key:1},Ya=["id"],qa=e.defineComponent({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(n,{emit:o}){var c;const t=n,l=o,a={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},u=e.computed(()=>{if(t.node.title&&t.node.title.trim().length)return t.node.title;const g=t.node.kind||"note";return g.charAt(0).toUpperCase()+g.slice(1)}),s=e.ref(t.node.collapsible?!((c=t.node.open)==null||c):!1);function m(){t.node.collapsible&&(s.value=!s.value)}const f=`admonition-${Math.random().toString(36).slice(2,9)}`;return(g,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["admonition",[`admonition-${t.node.kind}`,t.isDark?"is-dark":""]])},[e.createElementVNode("div",{id:f,class:"admonition-header"},[a[t.node.kind]?(e.openBlock(),e.createElementBlock("span",Ka,e.toDisplayString(a[t.node.kind]),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Wa,e.toDisplayString(u.value),1),t.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",Oa,"▶")):(e.openBlock(),e.createElementBlock("span",Xa,"▼"))],8,Fa)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",{id:`${f}-content`,class:"admonition-content","aria-labelledby":f},[e.withMemo([t.node.children],()=>e.createVNode(e.unref(Ce),{"index-key":`admonition-${n.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,onCopy:p[0]||(p[0]=b=>l("copy",b))},null,8,["index-key","nodes","custom-id","typewriter"]),p,1)],8,Ya),[[e.vShow,!s.value]])],2))}}),Nt=R(qa,[["__scopeId","data-v-5e95c2b7"]]);Nt.install=n=>{n.component(Nt.__name,Nt)};let Hn=!1;function Ua(n){return _(this,null,function*(){if(!Hn)return Hn=!0,n.preloadMonacoWorkers()})}let jt=null,An=!1;function Za(){return _(this,null,function*(){if(jt)return jt;if(An)return null;try{return jt=yield import("stream-monaco"),yield Ua(jt),jt}catch(n){return An=!0,null}})}const Ga='<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>',Ja=`<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
|
-
`,Qa=`<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
|
-
`,el=`<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
|
-
`,tl=`<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
|
-
`,nl=`<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
|
-
`,ol=`<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
|
-
`,rl=`<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
|
-
`,al=`<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
|
-
`,ll=`<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
|
-
`,il=`<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
|
-
`,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 --><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>',cl=`<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
|
-
`,dl=`<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
|
-
`,ul=`<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
|
-
`,ml=`<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
|
-
`,fl=`<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
|
-
`,hl=`<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
|
-
`,pl=`<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
|
-
`,vl=`<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
|
-
`,gl=`<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
|
-
`,kl=`<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
|
-
`,wl=`<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
|
-
`,yl=`<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
|
-
`,xl=`<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
|
-
`,bl=`<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
|
-
`,Bl=`<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
|
-
`,Ml=`<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
|
-
`,Cl=`<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
|
-
`,El=`<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
|
-
`,Nl=`<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
|
-
`,Tl='<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>',$l='<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>',Il=`<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
|
-
`,Sl=`<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
|
-
`,Vl=`<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
|
-
`,Ll=`<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
|
-
`,Dl=`<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
|
-
`,zl=`<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
|
-
`,Rl=`<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
|
-
`,jl=`<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
|
-
`,Hl=`<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
|
-
`,Al=`<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
|
-
`,Pl=`<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
|
-
`,Kl=`<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
|
-
`,Wl=`<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
|
-
`,Fl='<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>',Ol=`<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
|
-
`,Xl=`<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
|
-
`,Yl=`<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
|
-
`,ql=`<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
|
-
`,Ul=`<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
|
-
`,Zl=`<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
|
-
`,Gl='<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>',Jl=`<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
|
-
`,Ql=`<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
|
-
`,ei=`<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 xn=null;function lo(n){xn=n!=null?n:null}function io(n){if(xn){const o=xn(n);if(o!=null&&o!=="")return o}switch(n){case"javascript":case"js":return wl;case"typescript":case"ts":return Zl;case"jsx":return kl;case"tsx":return Ul;case"html":return vl;case"css":return ll;case"scss":return Hl;case"json":return yl;case"python":case"py":return Dl;case"ruby":case"rb":return Rl;case"go":case"golang":return fl;case"r":return zl;case"java":return gl;case"kotlin":case"kt":return bl;case"c":return el;case"cpp":case"c++":return ol;case"cs":case"csharp":return al;case"php":return Vl;case"scala":return Al;case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return Pl;case"sql":return Wl;case"yaml":case"yml":return ei;case"markdown":case"md":return Cl;case"xml":return Ql;case"rust":case"rs":return jl;case"swift":return Xl;case"perl":return Sl;case"lua":return Ml;case"haskell":return pl;case"erlang":return ul;case"clojure":return tl;case"vue":return Jl;case"svg":return Ol;case"mermaid":return Nl;case"dart":return il;case"assembly":return Qa;case"dockerfile":return cl;case"fortran":return ml;case"lisp":return Bl;case"ocaml":return Il;case"prolog":return Ll;case"groovy":return hl;case"matlab":return El;case"cobol":return nl;case"ada":return Ga;case"julia":return xl;case"elixir":return dl;case"vb.net":return Gl;case"nim":return _l;case"crystal":return rl;case"d":return sl;case"applescript":return Ja;case"solidity":return Kl;case"objectivec":return Tl;case"objectivecpp":return $l;case"terraform":return Yl;case"plain":case"text":return ql;default:return Fl}}const so={js:"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"},ti={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)"}},ni={class:"flex items-center space-x-2"},oi=["innerHTML"],ri={class:"text-sm font-medium font-mono"},ai={class:"flex items-center space-x-2"},li=["aria-pressed"],ii=["disabled"],si=["disabled"],ci=["disabled"],di=["aria-label"],ui={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"},mi={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"},fi=["aria-pressed"],hi={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"},pi={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"},vi=["aria-label"],gi={class:"code-loading-placeholder"},Pn=10,Kn=36,Wn=1,ki=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(n,{emit:o}){var _e;const t=n,l=o,{t:a}=rn(),u=e.ref(String((_e=t.node.language)!=null?_e:"")),s=e.ref(!1),m=e.ref(!1),f=e.ref(!1),c=e.ref(null),g=e.ref(!0),p=e.ref(0),b=e.ref(14),C=e.ref(b.value),L=e.computed(()=>{const w=b.value,k=C.value;return typeof w=="number"&&Number.isFinite(w)&&w>0&&typeof k=="number"&&Number.isFinite(k)&&k>0}),D=e.computed(()=>{const w=u.value.trim().toLowerCase();return so[w]||w.charAt(0).toUpperCase()+w.slice(1)}),H=e.computed(()=>u.value.trim().toLowerCase()==="mermaid"),I=e.computed(()=>{const w=u.value.trim().toLowerCase();return io(w.split(":")[0])}),N=e.computed(()=>{const w=u.value.trim().toLowerCase();return t.isShowPreview&&(w==="html"||w==="svg")}),ae=e.computed(()=>{const w={},k=J=>{if(J!=null)return typeof J=="number"?`${J}px`:String(J)},B=k(t.minWidth),U=k(t.maxWidth);return B&&(w.minWidth=B),U&&(w.maxWidth=U),w}),z=e.computed(()=>({fontSize:`${C.value}px`}));function K(){return t.isDark?t.darkTheme:t.lightTheme}let E,G,X,A=()=>{};function pe(){return _(this,null,function*(){if(!G)try{const w=yield import("stream-markdown");if(G=w.createShikiStreamRenderer,X=w.registerHighlight,A=w.disposeHighlighter,X({themes:t.themes}),E=G(c.value,{theme:K()}),!t.loading){const k=u.value.split(":")[0].toLocaleLowerCase().trim();E.updateCode(t.node.code,k)}}catch(w){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",w)}})}function W(){return _(this,null,function*(){if(H.value){A(),E==null||E.dispose();return}pe()})}W(),e.onMounted(()=>{W()}),e.watch(()=>t.themes,()=>_(null,null,function*(){X&&X({themes:t.themes})})),e.watch(()=>[t.node.code,t.node.language],B=>_(null,[B],function*([w,k]){if(k!==u.value&&(u.value=k.trim()),!!c.value){if(H.value){A(),E==null||E.dispose();return}E||(yield W()),!(!E||!w)&&(t.stream===!1&&t.loading||(k=k.split(":")[0].toLocaleLowerCase().trim(),E.updateCode(w,k)))}}));const Xe=e.watch(()=>[t.darkTheme,t.lightTheme],()=>_(null,null,function*(){if(c.value){if(H.value)return A(),E==null||E.dispose(),Xe();E||(yield W()),E==null||E.setTheme(K())}}));e.watch(()=>t.node.code,()=>_(null,null,function*(){if(m.value||!g.value)return;yield e.nextTick();const w=c.value;w&&w.scrollHeight>w.clientHeight&&(w.scrollTop=w.scrollHeight)}));function je(w,k=50){return w.scrollHeight-w.scrollTop-w.clientHeight<=k}function He(){const w=c.value;if(!w||m.value)return;const k=w.scrollTop;k<p.value?g.value=!1:je(w)&&(g.value=!0),p.value=k}function Ne(){return _(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(t.node.code)),s.value=!0,l("copy",t.node.code),setTimeout(()=>{s.value=!1},1e3)}catch(w){console.error("Copy failed:",w)}})}function Z(w){const k=w;return!k||k.disabled}function q(w,k,B="top"){if(Z(w.currentTarget))return;const U=w,J=(U==null?void 0:U.clientX)!=null&&(U==null?void 0:U.clientY)!=null?{x:U.clientX,y:U.clientY}:void 0;_t(w.currentTarget,k,B,!1,J,t.isDark)}function S(){on()}function le(w){if(Z(w.currentTarget))return;const k=s.value?a("common.copied")||"Copied":a("common.copy")||"Copy",B=w,U=(B==null?void 0:B.clientX)!=null&&(B==null?void 0:B.clientY)!=null?{x:B.clientX,y:B.clientY}:void 0;_t(w.currentTarget,k,"top",!1,U,t.isDark)}function Be(){m.value=!m.value;const w=c.value;w&&(m.value?(w.style.maxHeight="none",w.style.overflow="visible"):(w.style.maxHeight="500px",w.style.overflow="auto",g.value=!0,e.nextTick(()=>{w.scrollHeight>w.clientHeight&&(w.scrollTop=w.scrollHeight)})))}function Ae(){f.value=!f.value}function ve(){const w=Math.min(Kn,C.value+Wn);C.value=w}function Ge(){const w=Math.max(Pn,C.value-Wn);C.value=w}function te(){C.value=b.value}function ge(){if(!N.value)return;const w=(u.value||t.node.language).toLowerCase(),k=w==="html"?"text/html":"image/svg+xml",B=w==="html"?"HTML Preview":"SVG Preview";l("previewCode",{type:k,content:t.node.code,title:B})}return(w,k)=>H.value?(e.openBlock(),e.createBlock(e.unref(st),{key:0,node:n.node,"is-dark":t.isDark,loading:t.loading},null,8,["node","is-dark","loading"])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(ae.value),class:e.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[t.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",t.isDark?"is-dark":""]])},[t.showHeader?(e.openBlock(),e.createElementBlock("div",ti,[e.renderSlot(w.$slots,"header-left",{},()=>[e.createElementVNode("div",ni,[e.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:I.value},null,8,oi),e.createElementVNode("span",ri,e.toDisplayString(D.value),1)])],!0),e.renderSlot(w.$slots,"header-right",{},()=>[e.createElementVNode("div",ai,[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:Ae,onMouseenter:k[0]||(k[0]=B=>q(B,f.value?e.unref(a)("common.expand")||"Expand":e.unref(a)("common.collapse")||"Collapse")),onFocus:k[1]||(k[1]=B=>q(B,f.value?e.unref(a)("common.expand")||"Expand":e.unref(a)("common.collapse")||"Collapse")),onMouseleave:S,onBlur:S},[(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"},[...k[17]||(k[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,li),t.showFontSizeButtons&&t.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(C.value)?C.value<=Pn:!1,onClick:k[2]||(k[2]=B=>Ge()),onMouseenter:k[3]||(k[3]=B=>q(B,e.unref(a)("common.decrease")||"Decrease")),onFocus:k[4]||(k[4]=B=>q(B,e.unref(a)("common.decrease")||"Decrease")),onMouseleave:S,onBlur:S},[...k[18]||(k[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,ii),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||C.value===b.value,onClick:k[5]||(k[5]=B=>te()),onMouseenter:k[6]||(k[6]=B=>q(B,e.unref(a)("common.reset")||"Reset")),onFocus:k[7]||(k[7]=B=>q(B,e.unref(a)("common.reset")||"Reset")),onMouseleave:S,onBlur:S},[...k[19]||(k[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,si),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(C.value)?C.value>=Kn:!1,onClick:k[8]||(k[8]=B=>ve()),onMouseenter:k[9]||(k[9]=B=>q(B,e.unref(a)("common.increase")||"Increase")),onFocus:k[10]||(k[10]=B=>q(B,e.unref(a)("common.increase")||"Increase")),onMouseleave:S,onBlur:S},[...k[20]||(k[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,ci)],64)):e.createCommentVNode("",!0),t.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:Ne,onMouseenter:k[11]||(k[11]=B=>le(B)),onFocus:k[12]||(k[12]=B=>le(B)),onMouseleave:S,onBlur:S},[s.value?(e.openBlock(),e.createElementBlock("svg",mi,[...k[22]||(k[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",ui,[...k[21]||(k[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,di)):e.createCommentVNode("",!0),t.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:Be,onMouseenter:k[13]||(k[13]=B=>q(B,m.value?e.unref(a)("common.collapse")||"Collapse":e.unref(a)("common.expand")||"Expand")),onFocus:k[14]||(k[14]=B=>q(B,m.value?e.unref(a)("common.collapse")||"Collapse":e.unref(a)("common.expand")||"Expand")),onMouseleave:S,onBlur:S},[m.value?(e.openBlock(),e.createElementBlock("svg",hi,[...k[23]||(k[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",pi,[...k[24]||(k[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,fi)):e.createCommentVNode("",!0),N.value&&t.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:ge,onMouseenter:k[15]||(k[15]=B=>q(B,e.unref(a)("common.preview")||"Preview")),onFocus:k[16]||(k[16]=B=>q(B,e.unref(a)("common.preview")||"Preview")),onMouseleave:S,onBlur:S},[...k[25]||(k[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,vi)):e.createCommentVNode("",!0)])],!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"codeBlockContent",ref:c,class:"code-block-content",style:e.normalizeStyle(z.value),onScroll:He},null,36),[[e.vShow,!f.value&&(n.stream?!0:!n.loading)]]),e.withDirectives(e.createElementVNode("div",gi,[e.renderSlot(w.$slots,"loading",{loading:n.loading,stream:n.stream},()=>[k[26]||(k[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,!n.stream&&n.loading]])],6))}}),Pt=R(ki,[["__scopeId","data-v-493dbba3"]]);Pt.install=n=>{n.component(Pt.__name,Pt)};let $e=null,Ze=null,Fn=!1;const ke=new Map,We=new Map,co=200;let dt=5;const at=new Set;function Ft(){if(ke.size<dt&&at.size){const n=Array.from(at);at.clear();for(const o of n)try{o()}catch(t){}}}let ze=null;function wi(n){$e=n,Ze=null,$e.onmessage=o=>{const{id:t,html:l,error:a}=o.data,u=ke.get(t);if(u)if(ke.delete(t),clearTimeout(u.timeoutId),Ft(),a)u.reject(new Error(a));else{const{content:s,displayMode:m}=o.data;if(s){const f=`${m?"d":"i"}:${s}`;if(We.set(f,l),We.size>co){const c=We.keys().next().value;We.delete(c)}}u.resolve(l)}},$e.onerror=o=>{console.error("[katexWorkerClient] Worker error:",o);for(const[t,l]of ke.entries())clearTimeout(l.timeoutId),l.reject(new Error(`Worker error: ${o.message}`));ke.clear(),Ft()}}function yi(){var n;$e&&((n=$e.terminate)==null||n.call($e)),$e=null,Ze=null}function xi(){return $e||(Ze=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),Ze.name="WorkerInitError",Ze.code="WORKER_INIT_ERROR",null)}function bi(n){Fn=!!n,$e&&$e.postMessage({type:"init",debug:Fn})}function uo(n,o=!0,t=2e3,l){return _(this,null,function*(){const a=performance.now();if(!Nn()){const f=new Error("KaTeX rendering disabled");return f.name="KaTeXDisabled",f.code="KATEX_DISABLED",Promise.reject(f)}if(Ze)return Promise.reject(Ze);const u=`${o?"d":"i"}:${n}`,s=We.get(u);if(s)return ze&&ze.recordRender({type:"cache-hit",duration:performance.now()-a,formulaLength:n.length,timestamp:Date.now(),success:!0}),Promise.resolve(s);const m=xi();if(!m)return Promise.reject(Ze);if(ke.size>=dt){const f=new Error("Worker busy");return f.name="WorkerBusy",f.code="WORKER_BUSY",f.busy=!0,f.inFlight=ke.size,f.max=dt,ze&&ze.recordRender({type:"worker",duration:performance.now()-a,formulaLength:n.length,timestamp:Date.now(),success:!1,error:"busy"}),Promise.reject(f)}return new Promise((f,c)=>{if(l!=null&&l.aborted){const I=new Error("Aborted");I.name="AbortError",c(I);return}const g=Math.random().toString(36).slice(2),p=globalThis.setTimeout(()=>{ke.delete(g);const I=new Error("Worker render timed out");I.name="WorkerTimeout",I.code="WORKER_TIMEOUT",ze&&ze.recordRender({type:"worker",duration:performance.now()-a,formulaLength:n.length,timestamp:Date.now(),success:!1,error:"timeout"}),c(I),Ft()},t),b=()=>{globalThis.clearTimeout(p),ke.has(g)&&ke.delete(g);const I=new Error("Aborted");I.name="AbortError",c(I),Ft()};l&&l.addEventListener("abort",b,{once:!0});const C=f,L=c,D=I=>{ze&&ze.recordRender({type:"worker",duration:performance.now()-a,formulaLength:n.length,timestamp:Date.now(),success:!0}),C(I)},H=I=>{ze&&ze.recordRender({type:"worker",duration:performance.now()-a,formulaLength:n.length,timestamp:Date.now(),success:!1,error:(I==null?void 0:I.message)||String(I)}),L(I)};ke.set(g,{resolve:D,reject:H,timeoutId:p}),m.postMessage({id:g,content:n,displayMode:o})})})}function Bi(n,o=!0,t){const l=`${o?"d":"i"}:${n}`;if(We.set(l,t),We.size>co){const a=We.keys().next().value;We.delete(a)}}function Mi(){return{inFlight:ke.size,max:dt}}function Ci(n){Number.isFinite(n)&&n>0&&(dt=Math.floor(n))}const mo="WORKER_BUSY";function Ei(){return ke.size>=dt}function fo(n=2e3,o){return ke.size<dt?Promise.resolve():new Promise((t,l)=>{let a=!1,u;const s=()=>{a||(a=!0,u&&globalThis.clearTimeout(u),at.delete(s),t())};if(at.add(s),u=globalThis.setTimeout(()=>{if(a)return;a=!0,at.delete(s);const m=new Error("Wait for worker slot timed out");m.name="WorkerBusyTimeout",m.code="WORKER_BUSY_TIMEOUT",l(m)},n),queueMicrotask(()=>Ft()),o){const m=()=>{if(a)return;a=!0,u&&globalThis.clearTimeout(u),at.delete(s);const f=new Error("Aborted");f.name="AbortError",l(f)};o.aborted?m():o.addEventListener("abort",m,{once:!0})}})}const Fe={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function Ni(n){n.timeout!=null&&(Fe.timeout=Math.max(0,Math.floor(n.timeout))),n.waitTimeout!=null&&(Fe.waitTimeout=Math.max(0,Math.floor(n.waitTimeout))),n.backoffMs!=null&&(Fe.backoffMs=Math.max(0,Math.floor(n.backoffMs))),n.maxRetries!=null&&(Fe.maxRetries=Math.max(0,Math.floor(n.maxRetries)))}function _i(){return Ie({},Fe)}function Ti(l){return _(this,arguments,function*(n,o=!0,t={}){var g,p,b,C;if(!Nn()){const L=new Error("KaTeX rendering disabled");throw L.name="KaTeXDisabled",L.code="KATEX_DISABLED",L}const a=(g=t.timeout)!=null?g:Fe.timeout,u=(p=t.waitTimeout)!=null?p:Fe.waitTimeout,s=(b=t.backoffMs)!=null?b:Fe.backoffMs,m=(C=t.maxRetries)!=null?C:Fe.maxRetries,f=t.signal;let c=0;for(;;){if(f!=null&&f.aborted){const L=new Error("Aborted");throw L.name="AbortError",L}try{return yield uo(n,o,a,f)}catch(L){if((L==null?void 0:L.code)!==mo||c>=m)throw L;if(c++,yield fo(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*c)))}}})}const ho=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CcqRGphH.cjs"))),po=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-OTPe0l-Z.cjs"))),vo=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Br7IvHNe.cjs"))),$i={AdmonitionNode:Nt,BlockquoteNode:wt,CheckboxNode:Se,CodeBlockNode:ho,DefinitionListNode:yt,EmojiNode:se,FootnoteNode:xt,FootnoteReferenceNode:ce,FootnoteAnchorNode:it,HardBreakNode:qe,HeadingNode:sn,HighlightNode:be,ImageNode:Oe,InlineCodeNode:de,PreCodeNode:ct,InsertNode:xe,LinkNode:he,ListItemNode:bt,ListNode:Bt,MathBlockNode:po,MathInlineNode:vo,MermaidBlockNode:st,ParagraphNode:Mt,StrikethroughNode:fe,StrongNode:me,SubscriptNode:ye,SuperscriptNode:we,TableNode:Ct,TextNode:ee,ThematicBreakNode:Et,ReferenceNode:ue,MarkdownCodeBlockNode:Pt},Ii={install(n,o){Object.entries($i).forEach(([t,l])=>{n.component(t,l)}),o!=null&&o.getLanguageIcon&&lo(o.getLanguageIcon),o!=null&&o.mathOptions&&gn.setDefaultMathOptions(o.mathOptions)}};exports.AdmonitionNode=Nt;exports.BlockquoteNode=wt;exports.CheckboxNode=Se;exports.CodeBlockNode=ho;exports.DefinitionListNode=yt;exports.EmojiNode=se;exports.FootnoteAnchorNode=it;exports.FootnoteReferenceNode=ce;exports.HardBreakNode=qe;exports.HighlightNode=be;exports.ImageNode=Oe;exports.InsertNode=xe;exports.LinkNode=he;exports.ListItemNode=bt;exports.ListNode=Bt;exports.MERMAID_DISABLED_CODE=no;exports.MERMAID_WORKER_BUSY_CODE=to;exports.MarkdownCodeBlockNode=Pt;exports.MathBlockNode=po;exports.MathInlineNode=vo;exports.MermaidBlockNode=st;exports.NodeRenderer=Ce;exports.ParagraphNode=Mt;exports.StrikethroughNode=fe;exports.StrongNode=me;exports.SubscriptNode=ye;exports.SuperscriptNode=we;exports.TableNode=Ct;exports.TextNode=ee;exports.ThematicBreakNode=Et;exports.VueRendererMarkdown=Ii;exports.WORKER_BUSY_CODE=mo;exports._HeadingNode=sn;exports._export_sfc=R;exports._sfc_main=ct;exports._sfc_main$1=xt;exports._sfc_main$2=de;exports._sfc_main$3=ue;exports.canParseOffthread=ro;exports.clearGlobalCustomComponents=Ho;exports.clearKaTeXWorker=yi;exports.clearMermaidWorker=Qr;exports.disableKatex=ir;exports.disableMermaid=Fr;exports.enableKatex=lr;exports.enableMermaid=Wr;exports.findPrefixOffthread=ao;exports.getCustomNodeComponents=Ve;exports.getKaTeXBackpressureDefaults=_i;exports.getKaTeXWorkerLoad=Mi;exports.getKatex=ln;exports.getLanguageIcon=io;exports.getMermaidWorkerLoad=Gr;exports.getUseMonaco=Za;exports.hideTooltip=on;exports.isKaTeXWorkerBusy=Ei;exports.isKatexEnabled=Nn;exports.isMermaidEnabled=eo;exports.languageMap=so;exports.removeCustomComponents=jo;exports.renderKaTeXInWorker=uo;exports.renderKaTeXWithBackpressure=Ti;exports.safeRaf=Qn;exports.setCustomComponents=Ro;exports.setDefaultI18nMap=Uo;exports.setKaTeXBackpressureDefaults=Ni;exports.setKaTeXCache=Bi;exports.setKaTeXWorker=wi;exports.setKaTeXWorkerDebug=bi;exports.setKaTeXWorkerMaxConcurrency=Ci;exports.setKatexLoader=En;exports.setLanguageIconResolver=lo;exports.setMermaidLoader=$n;exports.setMermaidWorker=Jr;exports.setMermaidWorkerClientDebug=Ur;exports.setMermaidWorkerMaxConcurrency=Zr;exports.showTooltipForAnchor=_t;exports.terminateWorker=yn;exports.useSafeI18n=rn;exports.useViewportPriority=an;exports.waitForKaTeXWorkerSlot=fo;
|