import{d as H,j as v,D as R,F as M,U as V,E as w,m as h,l as L,z as U,M as Oe,q as x,K as $e,r as ue,S as P,_ as Te,G as ht,N as Rn,H as pt,I as Ln,J as On,k as we,ad as $n,ae as le,V as Cn,c as Jt,t as In}from"./chunk-449c23a2.js";import{_ as en}from"./chunk-cf010ec4.js";import{_ as Dn}from"./chunk-d8b8b4f8.js";import{_ as Mn}from"./chunk-3db18d93.js";import{a as Nn,b as zn,_ as Pn}from"./chunk-a740628f.js";import{_ as Un}from"./chunk-323c539f.js";import{_ as qn}from"./chunk-e0e1a528.js";import{_ as Fn}from"./chunk-6deddc2e.js";import{u as Bn}from"./chunk-340feaf0.js";import{b as Hn}from"./chunk-893bf84a.js";import{a as jn,_ as Wn}from"./chunk-153e0e77.js";import{_ as Gn}from"./chunk-606d31d4.js";import{_ as Zn}from"./chunk-baf8ab22.js";import{_ as Yn}from"./chunk-a66a4022.js";const Vn=w("h2",null,"Basic",-1),Xn=w("h2",null,"With title",-1),Qn=H({__name:"c-alert.demo",setup(r){const e=["warning","error"];return(n,t)=>{const i=Dn;return v(),R(M,null,[Vn,(v(),R(M,null,V(e,o=>h(i,{key:o,type:o,"mb-4":""},{default:L(()=>[U(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni reprehenderit itaque enim? Suscipit magni optio velit quia, eveniet repellat pariatur quaerat laudantium dignissimos natus, beatae deleniti adipisci, atque necessitatibus odio! ")]),_:2},1032,["type"])),64)),Xn,(v(),R(M,null,V(e,o=>h(i,{key:o,type:o,title:"This is the title","mb-4":""},{default:L(()=>[U(" Lorem ipsum dolor sit amet consectetur adipisicing elit. Magni reprehenderit itaque enim? Suscipit magni optio velit quia, eveniet repellat pariatur quaerat laudantium dignissimos natus, beatae deleniti adipisci, atque necessitatibus odio! ")]),_:2},1032,["type"])),64))],64)}}}),Kn=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),Jn=H({__name:"c-button.demo",setup(r){const e=["basic","text"],n=["default","primary","warning","error"],t=["small","medium","large"];return(i,o)=>{const l=$e,a=Mn;return v(),R(M,null,V(e,c=>w("div",{key:c},[w("h2",null,Oe(x(Nn).capitalize(c)),1),(v(),R(M,null,V(t,m=>w("div",{key:m,"mb-2":""},[(v(),R(M,null,V(n,f=>h(l,{key:f,variant:c,type:f,size:m,"mx-1":""},{default:L(()=>[U(" Button ")]),_:2},1032,["variant","type","size"])),64)),(v(),R(M,null,V(n,f=>h(l,{key:f,variant:c,type:f,size:m,circle:"","mx-1":""},{default:L(()=>[U(" A ")]),_:2},1032,["variant","type","size"])),64)),(v(),R(M,null,V(n,f=>h(l,{key:f,variant:c,type:f,size:m,circle:"","mx-1":""},{default:L(()=>[h(a)]),_:2},1032,["variant","type","size"])),64))])),64))])),64)}}}),ei=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),ti=H({__name:"c-buttons-select.demo",setup(r){const e=[{label:"Option A",value:"a"},{label:"Option B",value:"b",tooltip:"This is a tooltip"},{label:"Option C",value:"c"}],n={"Option A":"a","Option B":"b","Option C":"c"},t=ue("a");return(i,o)=>{const l=Un;return v(),R(M,null,[h(l,{value:x(t),"onUpdate:value":o[0]||(o[0]=a=>P(t)?t.value=a:null),options:e,label:"Label: "},null,8,["value"]),h(l,{value:x(t),"onUpdate:value":o[1]||(o[1]=a=>P(t)?t.value=a:null),options:e,label:"Label: ","label-position":"left","mt-2":""},null,8,["value"]),h(l,{value:x(t),"onUpdate:value":o[2]||(o[2]=a=>P(t)?t.value=a:null),options:n,label:"Options object: "},null,8,["value"])],64)}}}),ni=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),ii={},li=w("h2",null,"Default",-1);function oi(r,e){const n=zn;return v(),R("div",null,[li,h(n,{title:"Title"},{default:L(()=>[U(" Lorem ipsum, dolor sit amet consectetur adipisicing elit. Repudiandae ipsa reiciendis facilis officia nulla. Laboriosam cumque molestias excepturi doloribus nulla nemo quod ratione rerum possimus. Excepturi nihil possimus error itaque. ")]),_:1})])}const si=Te(ii,[["render",oi]]),ai=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),ri={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ci=w("path",{fill:"currentColor",d:"M1 3h22L12 22"},null,-1),ui=[ci];function pi(r,e){return v(),R("svg",ri,ui)}const fi={name:"mdi-triangle-down",render:pi},mi={class:"ml-2","font-bold":""},hi={"mt-2":""},di=H({__name:"c-collapse",props:{title:{default:""}},setup(r){const e=r,{title:n}=ht(e),t=ue(!0);return(i,o)=>{const l=fi;return v(),R("div",null,[w("div",{flex:"","cursor-pointer":"","items-center":"",onClick:o[0]||(o[0]=a=>t.value=!x(t))},[h(l,{class:Rn({"transform-rotate--90":x(t)}),"op-50":"",transition:""},null,8,["class"]),pt(i.$slots,"title",{},()=>[w("span",mi,Oe(x(n)),1)])]),Ln(w("div",hi,[pt(i.$slots,"default")],512),[[On,!x(t)]])])}}}),_i={};function gi(r,e){const n=di;return v(),we(n,{title:"Collapse title"},{default:L(()=>[U(" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquet iaculis class cubilia metus per nullam gravida ad venenatis. Id elementum elementum enim orci elementum justo facilisi habitant consequat. Justo eget ligula purus laoreet penatibus eros quisque fusce sociis. In eget amet sagittis dignissim eleifend proin lacinia potenti tellus. Interdum vulputate condimentum molestie pulvinar praesent accumsan quisque venenatis imperdiet. ")]),_:1})}const bi=Te(_i,[["render",gi]]),ki=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),xi={};function Ti(r,e){const n=qn;return v(),we(n)}const wi=Te(xi,[["render",Ti]]),yi=Object.freeze(Object.defineProperty({__proto__:null,default:wi},Symbol.toStringTag,{value:"Module"})),vi=w("h2",null,"Default",-1),Ai=w("h2",null,"With placeholder",-1),Ei=w("h2",null,"With label",-1),Si=w("h2",null,"Readonly",-1),Ri=w("h2",null,"Disabled",-1),Li=w("h2",null,"Validation",-1),Oi=w("h2",null,"Clearable",-1),$i=w("h2",null,"Type password",-1),Ci=w("h2",null,"Multiline",-1),Ii=w("h2",null,"Autosize",-1),Di=H({__name:"c-input-text.demo",setup(r){const e=ue("value"),n=ue("Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, est modi iusto repellendus fuga accusantium atque at magnam aliquam eum explicabo vero quia, nobis quasi quis! Earum amet quam a?"),t=[{message:"Length must be > 10",validator:o=>o.length>10}],i=Bn({source:e,rules:t});return(o,l)=>{const a=Fn;return v(),R(M,null,[vi,h(a,{value:"qsd"}),h(a,{value:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, est modi iusto repellendus fuga accusantium atque at magnam aliquam eum explicabo vero quia, nobis quasi quis! Earum amet quam a?"}),Ai,h(a,{placeholder:"Placeholder"}),Ei,h(a,{label:"Label","mb-2":""}),h(a,{label:"Label","mb-2":"","label-position":"left"}),h(a,{label:"Label","mb-2":"","label-position":"left","label-width":"100px"}),h(a,{label:"Label","mb-2":"","label-position":"left","label-width":"100px","label-align":"right"}),Si,h(a,{value:"value",readonly:""}),Ri,h(a,{value:"value",disabled:""}),Li,h(a,{value:x(e),"onUpdate:value":l[0]||(l[0]=c=>P(e)?e.value=c:null),"validation-rules":t,"mb-2":""},null,8,["value"]),h(a,{value:x(e),"onUpdate:value":l[1]||(l[1]=c=>P(e)?e.value=c:null),"validation-rules":t,"mb-2":"","label-position":"left",label:"Yo "},null,8,["value"]),h(a,{value:x(e),"onUpdate:value":l[2]||(l[2]=c=>P(e)?e.value=c:null),validation:x(i)},null,8,["value","validation"]),h(a,{value:x(e),"onUpdate:value":l[3]||(l[3]=c=>P(e)?e.value=c:null),validation:x(i),multiline:"",rows:"3"},null,8,["value","validation"]),Oi,h(a,{value:x(e),"onUpdate:value":l[4]||(l[4]=c=>P(e)?e.value=c:null),clearable:""},null,8,["value"]),$i,h(a,{value:"value",type:"password"}),Ci,h(a,{value:"value",multiline:"",label:"Label","mb-2":"",rows:"1"}),h(a,{value:"value",multiline:"",label:"Label","mb-2":""}),h(a,{value:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, est modi iusto repellendus fuga accusantium atque at magnam aliquam eum explicabo vero quia, nobis quasi quis! Earum amet quam a?",multiline:"","mb-2":""}),h(a,{value:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, est modi iusto repellendus fuga accusantium atque at magnam aliquam eum explicabo vero quia, nobis quasi quis! Earum amet quam a?",multiline:"",clearable:""}),Ii,h(a,{value:x(e),"onUpdate:value":l[5]||(l[5]=c=>P(e)?e.value=c:null),label:"Autosize",rows:"1",multiline:"",autosize:"","mb-2":""},null,8,["value"]),h(a,{value:x(n),"onUpdate:value":l[6]||(l[6]=c=>P(n)?n.value=c:null),label:"Autosize monospace",rows:"1",multiline:"",autosize:"",monospace:"","mb-2":""},null,8,["value"])],64)}}}),Mi=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),{useTheme:Ni}=$n({dark:{default:{textColor:le.dark.primary.color,hover:{textColor:le.dark.primary.colorHover},pressed:{textColor:le.dark.primary.colorPressed},outline:{color:le.dark.primary.color}}},light:{default:{textColor:le.light.primary.color,hover:{textColor:le.light.primary.colorHover},pressed:{textColor:le.light.primary.colorPressed},outline:{color:le.light.primary.color}}}}),zi=H({__name:"c-link",props:{href:{},to:{}},setup(r){const e=r;Cn(l=>({"1eb0d378":x(i).default.textColor,"7db8d4dc":x(i).default.hover.textColor,"1fc91bc5":x(i).default.outline.color}));const{href:n,to:t}=ht(e),i=Ni(),o=Jt(()=>n?.value?"a":t?.value?Hn:"span");return(l,a)=>(v(),we(In(x(o)),{href:x(n)??x(t),class:"c-link",to:x(t)},{default:L(()=>[pt(l.$slots,"default",{},void 0,!0)]),_:3},8,["href","to"]))}});const Pi=Te(zi,[["__scopeId","data-v-affd0f5f"]]),Ui=w("h2",null,"Default",-1),qi=H({__name:"c-link.demo",setup(r){return(e,n)=>(v(),R("div",null,[Ui,h(Pi,{"mx-1":""},{default:L(()=>[U(" Link ")]),_:1})]))}}),Fi=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"}));function dt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let fe=dt();function tn(r){fe=r}const nn=/[&<>"']/,Bi=new RegExp(nn.source,"g"),ln=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Hi=new RegExp(ln.source,"g"),ji={"&":"&","<":"<",">":">",'"':""","'":"'"},Bt=r=>ji[r];function Z(r,e){if(e){if(nn.test(r))return r.replace(Bi,Bt)}else if(ln.test(r))return r.replace(Hi,Bt);return r}const Wi=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Gi(r){return r.replace(Wi,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Zi=/(^|[^\[])\^/g;function E(r,e){r=typeof r=="string"?r:r.source,e=e||"";const n={replace:(t,i)=>(i=typeof i=="object"&&"source"in i?i.source:i,i=i.replace(Zi,"$1"),r=r.replace(t,i),n),getRegex:()=>new RegExp(r,e)};return n}function Ht(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const He={exec:()=>null};function jt(r,e){const n=r.replace(/\|/g,(o,l,a)=>{let c=!1,m=l;for(;--m>=0&&a[m]==="\\";)c=!c;return c?"|":" |"}),t=n.split(/ \|/);let i=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),e)if(t.length>e)t.splice(e);else for(;t.length{const o=i.match(/^\s+/);if(o===null)return i;const[l]=o;return l.length>=t.length?i.slice(t.length):i}).join(` `)}class je{options;rules;lexer;constructor(e){this.options=e||fe}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const t=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?t:ze(t,` `)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const t=n[0],i=Vi(t,n[3]||"");return{type:"code",raw:t,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:i}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let t=n[2].trim();if(/#$/.test(t)){const i=ze(t,"#");(this.options.pedantic||!i||/ $/.test(i))&&(t=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const t=ze(n[0].replace(/^ *>[ \t]?/gm,""),` `),i=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(t);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:o,text:t}}}list(e){let n=this.rules.block.list.exec(e);if(n){let t=n[1].trim();const i=t.length>1,o={type:"list",raw:"",ordered:i,start:i?+t.slice(0,-1):"",loose:!1,items:[]};t=i?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=i?t:"[*+-]");const l=new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",c="",m=!1;for(;e;){let f=!1;if(!(n=l.exec(e))||this.rules.block.hr.test(e))break;a=n[0],e=e.substring(a.length);let T=n[2].split(` `,1)[0].replace(/^\t+/,ye=>" ".repeat(3*ye.length)),b=e.split(` `,1)[0],y=0;this.options.pedantic?(y=2,c=T.trimStart()):(y=n[2].search(/[^ ]/),y=y>4?1:y,c=T.slice(y),y+=n[1].length);let j=!1;if(!T&&/^ *$/.test(b)&&(a+=b+` `,e=e.substring(b.length+1),f=!0),!f){const ye=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),me=new RegExp(`^ {0,${Math.min(3,y-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),$=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:\`\`\`|~~~)`),ie=new RegExp(`^ {0,${Math.min(3,y-1)}}#`);for(;e;){const oe=e.split(` `,1)[0];if(b=oe,this.options.pedantic&&(b=b.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),$.test(b)||ie.test(b)||ye.test(b)||me.test(e))break;if(b.search(/[^ ]/)>=y||!b.trim())c+=` `+b.slice(y);else{if(j||T.search(/[^ ]/)>=4||$.test(T)||ie.test(T)||me.test(T))break;c+=` `+b}!j&&!b.trim()&&(j=!0),a+=oe+` `,e=e.substring(oe.length+1),T=b.slice(y)}}o.loose||(m?o.loose=!0:/\n *\n *$/.test(a)&&(m=!0));let W=null,ee;this.options.gfm&&(W=/^\[[ xX]\] /.exec(c),W&&(ee=W[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:a,task:!!W,checked:ee,loose:!1,text:c,tokens:[]}),o.raw+=a}o.items[o.items.length-1].raw=a.trimEnd(),o.items[o.items.length-1].text=c.trimEnd(),o.raw=o.raw.trimEnd();for(let f=0;fy.type==="space"),b=T.length>0&&T.some(y=>/\n.*\n/.test(y.raw));o.loose=b}if(o.loose)for(let f=0;f$/,"$1").replace(this.rules.inline._escapes,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:t,raw:n[0],href:i,title:o}}}table(e){const n=this.rules.block.table.exec(e);if(n){if(!/[:|]/.test(n[2]))return;const t={type:"table",raw:n[0],header:jt(n[1]).map(i=>({text:i,tokens:[]})),align:n[2].replace(/^\||\| *$/g,"").split("|"),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` `):[]};if(t.header.length===t.align.length){let i=t.align.length,o,l,a,c;for(o=0;o({text:m,tokens:[]}));for(i=t.header.length,l=0;l/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const t=n[2].trim();if(!this.options.pedantic&&/^$/.test(t))return;const l=ze(t.slice(0,-1),"\\");if((t.length-l.length)%2===0)return}else{const l=Yi(n[2],"()");if(l>-1){const c=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,c).trim(),n[3]=""}}let i=n[2],o="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);l&&(i=l[1],o=l[3])}else o=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^$/.test(t)?i=i.slice(1):i=i.slice(1,-1)),Wt(n,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(e,n){let t;if((t=this.rules.inline.reflink.exec(e))||(t=this.rules.inline.nolink.exec(e))){let i=(t[2]||t[1]).replace(/\s+/g," ");if(i=n[i.toLowerCase()],!i){const o=t[0].charAt(0);return{type:"text",raw:o,text:o}}return Wt(t,i,t[0],this.lexer)}}emStrong(e,n,t=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&t.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!t||this.rules.inline.punctuation.exec(t)){const l=[...i[0]].length-1;let a,c,m=l,f=0;const T=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(T.lastIndex=0,n=n.slice(-1*e.length+l);(i=T.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(c=[...a].length,i[3]||i[4]){m+=c;continue}else if((i[5]||i[6])&&l%3&&!((l+c)%3)){f+=c;continue}if(m-=c,m>0)continue;c=Math.min(c,c+m+f);const b=[...i[0]][0].length,y=e.slice(0,l+i.index+b+c);if(Math.min(l,c)%2){const W=y.slice(1,-1);return{type:"em",raw:y,text:W,tokens:this.lexer.inlineTokens(W)}}const j=y.slice(2,-2);return{type:"strong",raw:y,text:j,tokens:this.lexer.inlineTokens(j)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let t=n[2].replace(/\n/g," ");const i=/[^ ]/.test(t),o=/^ /.test(t)&&/ $/.test(t);return i&&o&&(t=t.substring(1,t.length-1)),t=Z(t,!0),{type:"codespan",raw:n[0],text:t}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e){const n=this.rules.inline.autolink.exec(e);if(n){let t,i;return n[2]==="@"?(t=Z(n[1]),i="mailto:"+t):(t=Z(n[1]),i=t),{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}url(e){let n;if(n=this.rules.inline.url.exec(e)){let t,i;if(n[2]==="@")t=Z(n[0]),i="mailto:"+t;else{let o;do o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(o!==n[0]);t=Z(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(e){const n=this.rules.inline.text.exec(e);if(n){let t;return this.lexer.state.inRawBlock?t=n[0]:t=Z(n[0]),{type:"text",raw:n[0],text:t}}}}const g={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:He,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};g._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;g._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;g.def=E(g.def).replace("label",g._label).replace("title",g._title).getRegex();g.bullet=/(?:[*+-]|\d{1,9}[.)])/;g.listItemStart=E(/^( *)(bull) */).replace("bull",g.bullet).getRegex();g.list=E(g.list).replace(/bull/g,g.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+g.def.source+")").getRegex();g._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";g._comment=/|$)/;g.html=E(g.html,"i").replace("comment",g._comment).replace("tag",g._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();g.lheading=E(g.lheading).replace(/bull/g,g.bullet).getRegex();g.paragraph=E(g._paragraph).replace("hr",g.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",g._tag).getRegex();g.blockquote=E(g.blockquote).replace("paragraph",g.paragraph).getRegex();g.normal={...g};g.gfm={...g.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};g.gfm.table=E(g.gfm.table).replace("hr",g.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",g._tag).getRegex();g.gfm.paragraph=E(g._paragraph).replace("hr",g.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",g.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",g._tag).getRegex();g.pedantic={...g.normal,html:E(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",g._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:He,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:E(g.normal._paragraph).replace("hr",g.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",g.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const p={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:He,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:He,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";p.punctuation=E(p.punctuation,"u").replace(/punctuation/g,p._punctuation).getRegex();p.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;p.anyPunctuation=/\\[punct]/g;p._escapes=/\\([punct])/g;p._comment=E(g._comment).replace("(?:-->|$)","-->").getRegex();p.emStrong.lDelim=E(p.emStrong.lDelim,"u").replace(/punct/g,p._punctuation).getRegex();p.emStrong.rDelimAst=E(p.emStrong.rDelimAst,"gu").replace(/punct/g,p._punctuation).getRegex();p.emStrong.rDelimUnd=E(p.emStrong.rDelimUnd,"gu").replace(/punct/g,p._punctuation).getRegex();p.anyPunctuation=E(p.anyPunctuation,"gu").replace(/punct/g,p._punctuation).getRegex();p._escapes=E(p._escapes,"gu").replace(/punct/g,p._punctuation).getRegex();p._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;p._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;p.autolink=E(p.autolink).replace("scheme",p._scheme).replace("email",p._email).getRegex();p._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;p.tag=E(p.tag).replace("comment",p._comment).replace("attribute",p._attribute).getRegex();p._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;p._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;p._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;p.link=E(p.link).replace("label",p._label).replace("href",p._href).replace("title",p._title).getRegex();p.reflink=E(p.reflink).replace("label",p._label).replace("ref",g._label).getRegex();p.nolink=E(p.nolink).replace("ref",g._label).getRegex();p.reflinkSearch=E(p.reflinkSearch,"g").replace("reflink",p.reflink).replace("nolink",p.nolink).getRegex();p.normal={...p};p.pedantic={...p.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:E(/^!?\[(label)\]\((.*?)\)/).replace("label",p._label).getRegex(),reflink:E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",p._label).getRegex()};p.gfm={...p.normal,escape:E(p.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\c+" ".repeat(m.length));let t,i,o,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(t=a.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))){if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length),t.raw.length===1&&n.length>0?n[n.length-1].raw+=` `:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` `+t.raw,i.text+=` `+t.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` `+t.raw,i.text+=` `+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title});continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=e.slice(1);let m;this.options.extensions.startBlock.forEach(f=>{m=f.call({lexer:this},c),typeof m=="number"&&m>=0&&(a=Math.min(a,m))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(t=this.tokenizer.paragraph(o))){i=n[n.length-1],l&&i.type==="paragraph"?(i.raw+=` `+t.raw,i.text+=` `+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(t),l=o.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=` `+t.raw,i.text+=` `+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(t);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let t,i,o,l=e,a,c,m;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(c||(m=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(t=f.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))){if(t=this.tokenizer.escape(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.tag(e)){e=e.substring(t.raw.length),i=n[n.length-1],i&&t.type==="text"&&i.type==="text"?(i.raw+=t.raw,i.text+=t.text):n.push(t);continue}if(t=this.tokenizer.link(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length),i=n[n.length-1],i&&t.type==="text"&&i.type==="text"?(i.raw+=t.raw,i.text+=t.text):n.push(t);continue}if(t=this.tokenizer.emStrong(e,l,m)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.codespan(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.br(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.del(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.autolink(e)){e=e.substring(t.raw.length),n.push(t);continue}if(!this.state.inLink&&(t=this.tokenizer.url(e))){e=e.substring(t.raw.length),n.push(t);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const T=e.slice(1);let b;this.options.extensions.startInline.forEach(y=>{b=y.call({lexer:this},T),typeof b=="number"&&b>=0&&(f=Math.min(f,b))}),f<1/0&&f>=0&&(o=e.substring(0,f+1))}if(t=this.tokenizer.inlineText(o)){e=e.substring(t.raw.length),t.raw.slice(-1)!=="_"&&(m=t.raw.slice(-1)),c=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=t.raw,i.text+=t.text):n.push(t);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}}class We{options;constructor(e){this.options=e||fe}code(e,n,t){const i=(n||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+` `,i?'
'+(t?e:Z(e,!0))+`
`:"
"+(t?e:Z(e,!0))+`
`}blockquote(e){return`
${e}
`}html(e,n){return e}heading(e,n,t){return`${e} `}hr(){return`
`}list(e,n,t){const i=n?"ol":"ul",o=n&&t!==1?' start="'+t+'"':"";return"<"+i+o+`> `+e+" `}listitem(e,n,t){return`
  • ${e}
  • `}checkbox(e){return"'}paragraph(e){return`

    ${e}

    `}table(e,n){return n&&(n=`${n}`),` `+e+` `+n+`
    `}tablerow(e){return` ${e} `}tablecell(e,n){const t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+` `}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,n,t){const i=Ht(e);if(i===null)return t;e=i;let o='",o}image(e,n,t){const i=Ht(e);if(i===null)return t;e=i;let o=`${t}0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=ee+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=ee+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:ee+" "}):W+=ee+" "}W+=this.parse(b.tokens,m),f+=this.renderer.listitem(W,j,!!y)}t+=this.renderer.list(f,a,c);continue}case"html":{const l=o;t+=this.renderer.html(l.text,l.block);continue}case"paragraph":{const l=o;t+=this.renderer.paragraph(this.parseInline(l.tokens));continue}case"text":{let l=o,a=l.tokens?this.parseInline(l.tokens):l.text;for(;i+1{t=t.concat(this.walkTokens(o[l],n))}):o.tokens&&(t=t.concat(this.walkTokens(o.tokens,n)))}}return t}use(...e){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(t=>{const i={...t};if(i.async=this.defaults.async||i.async||!1,t.extensions&&(t.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const l=n.renderers[o.name];l?n.renderers[o.name]=function(...a){let c=o.renderer.apply(this,a);return c===!1&&(c=l.apply(this,a)),c}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[o.level];l?l.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),i.extensions=n),t.renderer){const o=this.defaults.renderer||new We(this.defaults);for(const l in t.renderer){const a=t.renderer[l],c=l,m=o[c];o[c]=(...f)=>{let T=a.apply(o,f);return T===!1&&(T=m.apply(o,f)),T||""}}i.renderer=o}if(t.tokenizer){const o=this.defaults.tokenizer||new je(this.defaults);for(const l in t.tokenizer){const a=t.tokenizer[l],c=l,m=o[c];o[c]=(...f)=>{let T=a.apply(o,f);return T===!1&&(T=m.apply(o,f)),T}}i.tokenizer=o}if(t.hooks){const o=this.defaults.hooks||new Fe;for(const l in t.hooks){const a=t.hooks[l],c=l,m=o[c];Fe.passThroughHooks.has(l)?o[c]=f=>{if(this.defaults.async)return Promise.resolve(a.call(o,f)).then(b=>m.call(o,b));const T=a.call(o,f);return m.call(o,T)}:o[c]=(...f)=>{let T=a.apply(o,f);return T===!1&&(T=m.apply(o,f)),T}}i.hooks=o}if(t.walkTokens){const o=this.defaults.walkTokens,l=t.walkTokens;i.walkTokens=function(a){let c=[];return c.push(l.call(this,a)),o&&(c=c.concat(o.call(this,a))),c}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return K.lex(e,n??this.defaults)}parser(e,n){return J.parse(e,n??this.defaults)}#e(e,n){return(t,i)=>{const o={...i},l={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);const a=this.#t(!!l.silent,!!l.async);if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(t):t).then(c=>e(c,l)).then(c=>l.walkTokens?Promise.all(this.walkTokens(c,l.walkTokens)).then(()=>c):c).then(c=>n(c,l)).then(c=>l.hooks?l.hooks.postprocess(c):c).catch(a);try{l.hooks&&(t=l.hooks.preprocess(t));const c=e(t,l);l.walkTokens&&this.walkTokens(c,l.walkTokens);let m=n(c,l);return l.hooks&&(m=l.hooks.postprocess(m)),m}catch(c){return a(c)}}}#t(e,n){return t=>{if(t.message+=` Please report this to https://github.com/markedjs/marked.`,e){const i="

    An error occurred:

    "+Z(t.message+"",!0)+"
    ";return n?Promise.resolve(i):i}if(n)return Promise.reject(t);throw t}}}const pe=new Xi;function A(r,e){return pe.parse(r,e)}A.options=A.setOptions=function(r){return pe.setOptions(r),A.defaults=pe.defaults,tn(A.defaults),A};A.getDefaults=dt;A.defaults=fe;A.use=function(...r){return pe.use(...r),A.defaults=pe.defaults,tn(A.defaults),A};A.walkTokens=function(r,e){return pe.walkTokens(r,e)};A.parseInline=pe.parseInline;A.Parser=J;A.parser=J.parse;A.Renderer=We;A.TextRenderer=_t;A.Lexer=K;A.lexer=K.lex;A.Tokenizer=je;A.Hooks=Fe;A.parse=A;A.options;A.setOptions;A.use;A.walkTokens;A.parseInline;J.parse;K.lex;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:on,setPrototypeOf:Gt,isFrozen:Qi,getPrototypeOf:Ki,getOwnPropertyDescriptor:sn}=Object;let{freeze:q,seal:X,create:an}=Object,{apply:ft,construct:mt}=typeof Reflect<"u"&&Reflect;q||(q=function(e){return e});X||(X=function(e){return e});ft||(ft=function(e,n,t){return e.apply(n,t)});mt||(mt=function(e,n){return new e(...n)});const Pe=Y(Array.prototype.forEach),Zt=Y(Array.prototype.pop),Se=Y(Array.prototype.push),Be=Y(String.prototype.toLowerCase),st=Y(String.prototype.toString),Ji=Y(String.prototype.match),Re=Y(String.prototype.replace),el=Y(String.prototype.indexOf),tl=Y(String.prototype.trim),G=Y(RegExp.prototype.test),Le=nl(TypeError);function Y(r){return function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:Be;Gt&&Gt(r,null);let t=e.length;for(;t--;){let i=e[t];if(typeof i=="string"){const o=n(i);o!==i&&(Qi(e)||(e[t]=o),i=o)}r[i]=!0}return r}function xe(r){const e=an(null);for(const[n,t]of on(r))sn(r,n)!==void 0&&(e[n]=t);return e}function Ue(r,e){for(;r!==null;){const t=sn(r,e);if(t){if(t.get)return Y(t.get);if(typeof t.value=="function")return Y(t.value)}r=Ki(r)}function n(t){return console.warn("fallback value for",t),null}return n}const Yt=q(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),at=q(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),rt=q(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),il=q(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ct=q(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ll=q(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vt=q(["#text"]),Xt=q(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),ut=q(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Qt=q(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qe=q(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ol=X(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sl=X(/<%[\w\W]*|[\w\W]*%>/gm),al=X(/\${[\w\W]*}/gm),rl=X(/^data-[\-\w.\u00B7-\uFFFF]/),cl=X(/^aria-[\-\w]+$/),rn=X(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ul=X(/^(?:\w+script|data):/i),pl=X(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cn=X(/^html$/i);var Kt=Object.freeze({__proto__:null,MUSTACHE_EXPR:ol,ERB_EXPR:sl,TMPLIT_EXPR:al,DATA_ATTR:rl,ARIA_ATTR:cl,IS_ALLOWED_URI:rn,IS_SCRIPT_OR_DATA:ul,ATTR_WHITESPACE:pl,DOCTYPE_NAME:cn});const fl=function(){return typeof window>"u"?null:window},ml=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let t=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(t=n.getAttribute(i));const o="dompurify"+(t?"#"+t:"");try{return e.createPolicy(o,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function un(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fl();const e=_=>un(_);if(e.version="3.0.6",e.removed=[],!r||!r.document||r.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=r;const t=n,i=t.currentScript,{DocumentFragment:o,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:m,NamedNodeMap:f=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:T,DOMParser:b,trustedTypes:y}=r,j=c.prototype,W=Ue(j,"cloneNode"),ee=Ue(j,"nextSibling"),ye=Ue(j,"childNodes"),me=Ue(j,"parentNode");if(typeof l=="function"){const _=n.createElement("template");_.content&&_.content.ownerDocument&&(n=_.content.ownerDocument)}let $,ie="";const{implementation:oe,createNodeIterator:fn,createDocumentFragment:mn,getElementsByTagName:hn}=n,{importNode:dn}=t;let Q={};e.isSupported=typeof on=="function"&&typeof me=="function"&&oe&&oe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ge,ERB_EXPR:Ze,TMPLIT_EXPR:Ye,DATA_ATTR:_n,ARIA_ATTR:gn,IS_SCRIPT_OR_DATA:bn,ATTR_WHITESPACE:gt}=Kt;let{IS_ALLOWED_URI:bt}=Kt,C=null;const kt=k({},[...Yt,...at,...rt,...ct,...Vt]);let I=null;const xt=k({},[...Xt,...ut,...Qt,...qe]);let O=Object.seal(an(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,Ve=null,Tt=!0,Xe=!0,wt=!1,yt=!0,he=!1,se=!1,Qe=!1,Ke=!1,de=!1,Ce=!1,Ie=!1,vt=!0,At=!1;const kn="user-content-";let Je=!0,Ae=!1,_e={},ge=null;const Et=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let St=null;const Rt=k({},["audio","video","img","source","image","track"]);let et=null;const Lt=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Me="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml";let be=te,tt=!1,nt=null;const xn=k({},[De,Me,te],st);let ae=null;const Tn=["application/xhtml+xml","text/html"],wn="text/html";let D=null,ke=null;const yn=n.createElement("form"),Ot=function(s){return s instanceof RegExp||s instanceof Function},it=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ke&&ke===s)){if((!s||typeof s!="object")&&(s={}),s=xe(s),ae=Tn.indexOf(s.PARSER_MEDIA_TYPE)===-1?ae=wn:ae=s.PARSER_MEDIA_TYPE,D=ae==="application/xhtml+xml"?st:Be,C="ALLOWED_TAGS"in s?k({},s.ALLOWED_TAGS,D):kt,I="ALLOWED_ATTR"in s?k({},s.ALLOWED_ATTR,D):xt,nt="ALLOWED_NAMESPACES"in s?k({},s.ALLOWED_NAMESPACES,st):xn,et="ADD_URI_SAFE_ATTR"in s?k(xe(Lt),s.ADD_URI_SAFE_ATTR,D):Lt,St="ADD_DATA_URI_TAGS"in s?k(xe(Rt),s.ADD_DATA_URI_TAGS,D):Rt,ge="FORBID_CONTENTS"in s?k({},s.FORBID_CONTENTS,D):Et,ve="FORBID_TAGS"in s?k({},s.FORBID_TAGS,D):{},Ve="FORBID_ATTR"in s?k({},s.FORBID_ATTR,D):{},_e="USE_PROFILES"in s?s.USE_PROFILES:!1,Tt=s.ALLOW_ARIA_ATTR!==!1,Xe=s.ALLOW_DATA_ATTR!==!1,wt=s.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=s.SAFE_FOR_TEMPLATES||!1,se=s.WHOLE_DOCUMENT||!1,de=s.RETURN_DOM||!1,Ce=s.RETURN_DOM_FRAGMENT||!1,Ie=s.RETURN_TRUSTED_TYPE||!1,Ke=s.FORCE_BODY||!1,vt=s.SANITIZE_DOM!==!1,At=s.SANITIZE_NAMED_PROPS||!1,Je=s.KEEP_CONTENT!==!1,Ae=s.IN_PLACE||!1,bt=s.ALLOWED_URI_REGEXP||rn,be=s.NAMESPACE||te,O=s.CUSTOM_ELEMENT_HANDLING||{},s.CUSTOM_ELEMENT_HANDLING&&Ot(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&Ot(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(Xe=!1),Ce&&(de=!0),_e&&(C=k({},[...Vt]),I=[],_e.html===!0&&(k(C,Yt),k(I,Xt)),_e.svg===!0&&(k(C,at),k(I,ut),k(I,qe)),_e.svgFilters===!0&&(k(C,rt),k(I,ut),k(I,qe)),_e.mathMl===!0&&(k(C,ct),k(I,Qt),k(I,qe))),s.ADD_TAGS&&(C===kt&&(C=xe(C)),k(C,s.ADD_TAGS,D)),s.ADD_ATTR&&(I===xt&&(I=xe(I)),k(I,s.ADD_ATTR,D)),s.ADD_URI_SAFE_ATTR&&k(et,s.ADD_URI_SAFE_ATTR,D),s.FORBID_CONTENTS&&(ge===Et&&(ge=xe(ge)),k(ge,s.FORBID_CONTENTS,D)),Je&&(C["#text"]=!0),se&&k(C,["html","head","body"]),C.table&&(k(C,["tbody"]),delete ve.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw Le('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Le('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=s.TRUSTED_TYPES_POLICY,ie=$.createHTML("")}else $===void 0&&($=ml(y,i)),$!==null&&typeof ie=="string"&&(ie=$.createHTML(""));q&&q(s),ke=s}},$t=k({},["mi","mo","mn","ms","mtext"]),Ct=k({},["foreignobject","desc","title","annotation-xml"]),vn=k({},["title","style","font","a","script"]),Ne=k({},at);k(Ne,rt),k(Ne,il);const lt=k({},ct);k(lt,ll);const An=function(s){let u=me(s);(!u||!u.tagName)&&(u={namespaceURI:be,tagName:"template"});const d=Be(s.tagName),S=Be(u.tagName);return nt[s.namespaceURI]?s.namespaceURI===Me?u.namespaceURI===te?d==="svg":u.namespaceURI===De?d==="svg"&&(S==="annotation-xml"||$t[S]):!!Ne[d]:s.namespaceURI===De?u.namespaceURI===te?d==="math":u.namespaceURI===Me?d==="math"&&Ct[S]:!!lt[d]:s.namespaceURI===te?u.namespaceURI===Me&&!Ct[S]||u.namespaceURI===De&&!$t[S]?!1:!lt[d]&&(vn[d]||!Ne[d]):!!(ae==="application/xhtml+xml"&&nt[s.namespaceURI]):!1},re=function(s){Se(e.removed,{element:s});try{s.parentNode.removeChild(s)}catch{s.remove()}},ot=function(s,u){try{Se(e.removed,{attribute:u.getAttributeNode(s),from:u})}catch{Se(e.removed,{attribute:null,from:u})}if(u.removeAttribute(s),s==="is"&&!I[s])if(de||Ce)try{re(u)}catch{}else try{u.setAttribute(s,"")}catch{}},It=function(s){let u=null,d=null;if(Ke)s=""+s;else{const z=Ji(s,/^[\r\n\t ]+/);d=z&&z[0]}ae==="application/xhtml+xml"&&be===te&&(s=''+s+"");const S=$?$.createHTML(s):s;if(be===te)try{u=new b().parseFromString(S,ae)}catch{}if(!u||!u.documentElement){u=oe.createDocument(be,"template",null);try{u.documentElement.innerHTML=tt?ie:S}catch{}}const N=u.body||u.documentElement;return s&&d&&N.insertBefore(n.createTextNode(d),N.childNodes[0]||null),be===te?hn.call(u,se?"html":"body")[0]:se?u.documentElement:N},Dt=function(s){return fn.call(s.ownerDocument||s,s,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null)},En=function(s){return s instanceof T&&(typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||!(s.attributes instanceof f)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function")},Mt=function(s){return typeof a=="function"&&s instanceof a},ne=function(s,u,d){Q[s]&&Pe(Q[s],S=>{S.call(e,u,d,ke)})},Nt=function(s){let u=null;if(ne("beforeSanitizeElements",s,null),En(s))return re(s),!0;const d=D(s.nodeName);if(ne("uponSanitizeElement",s,{tagName:d,allowedTags:C}),s.hasChildNodes()&&!Mt(s.firstElementChild)&&G(/<[/\w]/g,s.innerHTML)&&G(/<[/\w]/g,s.textContent))return re(s),!0;if(!C[d]||ve[d]){if(!ve[d]&&Pt(d)&&(O.tagNameCheck instanceof RegExp&&G(O.tagNameCheck,d)||O.tagNameCheck instanceof Function&&O.tagNameCheck(d)))return!1;if(Je&&!ge[d]){const S=me(s)||s.parentNode,N=ye(s)||s.childNodes;if(N&&S){const z=N.length;for(let F=z-1;F>=0;--F)S.insertBefore(W(N[F],!0),ee(s))}}return re(s),!0}return s instanceof c&&!An(s)||(d==="noscript"||d==="noembed"||d==="noframes")&&G(/<\/no(script|embed|frames)/i,s.innerHTML)?(re(s),!0):(he&&s.nodeType===3&&(u=s.textContent,Pe([Ge,Ze,Ye],S=>{u=Re(u,S," ")}),s.textContent!==u&&(Se(e.removed,{element:s.cloneNode()}),s.textContent=u)),ne("afterSanitizeElements",s,null),!1)},zt=function(s,u,d){if(vt&&(u==="id"||u==="name")&&(d in n||d in yn))return!1;if(!(Xe&&!Ve[u]&&G(_n,u))){if(!(Tt&&G(gn,u))){if(!I[u]||Ve[u]){if(!(Pt(s)&&(O.tagNameCheck instanceof RegExp&&G(O.tagNameCheck,s)||O.tagNameCheck instanceof Function&&O.tagNameCheck(s))&&(O.attributeNameCheck instanceof RegExp&&G(O.attributeNameCheck,u)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(u))||u==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&G(O.tagNameCheck,d)||O.tagNameCheck instanceof Function&&O.tagNameCheck(d))))return!1}else if(!et[u]){if(!G(bt,Re(d,gt,""))){if(!((u==="src"||u==="xlink:href"||u==="href")&&s!=="script"&&el(d,"data:")===0&&St[s])){if(!(wt&&!G(bn,Re(d,gt,"")))){if(d)return!1}}}}}}return!0},Pt=function(s){return s.indexOf("-")>0},Ut=function(s){ne("beforeSanitizeAttributes",s,null);const{attributes:u}=s;if(!u)return;const d={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:I};let S=u.length;for(;S--;){const N=u[S],{name:z,namespaceURI:F,value:ce}=N,Ee=D(z);let B=z==="value"?ce:tl(ce);if(d.attrName=Ee,d.attrValue=B,d.keepAttr=!0,d.forceKeepAttr=void 0,ne("uponSanitizeAttribute",s,d),B=d.attrValue,d.forceKeepAttr||(ot(z,s),!d.keepAttr))continue;if(!yt&&G(/\/>/i,B)){ot(z,s);continue}he&&Pe([Ge,Ze,Ye],Ft=>{B=Re(B,Ft," ")});const qt=D(s.nodeName);if(zt(qt,Ee,B)){if(At&&(Ee==="id"||Ee==="name")&&(ot(z,s),B=kn+B),$&&typeof y=="object"&&typeof y.getAttributeType=="function"&&!F)switch(y.getAttributeType(qt,Ee)){case"TrustedHTML":{B=$.createHTML(B);break}case"TrustedScriptURL":{B=$.createScriptURL(B);break}}try{F?s.setAttributeNS(F,z,B):s.setAttribute(z,B),Zt(e.removed)}catch{}}}ne("afterSanitizeAttributes",s,null)},Sn=function _(s){let u=null;const d=Dt(s);for(ne("beforeSanitizeShadowDOM",s,null);u=d.nextNode();)ne("uponSanitizeShadowNode",u,null),!Nt(u)&&(u.content instanceof o&&_(u.content),Ut(u));ne("afterSanitizeShadowDOM",s,null)};return e.sanitize=function(_){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=null,d=null,S=null,N=null;if(tt=!_,tt&&(_=""),typeof _!="string"&&!Mt(_))if(typeof _.toString=="function"){if(_=_.toString(),typeof _!="string")throw Le("dirty is not a string, aborting")}else throw Le("toString is not a function");if(!e.isSupported)return _;if(Qe||it(s),e.removed=[],typeof _=="string"&&(Ae=!1),Ae){if(_.nodeName){const ce=D(_.nodeName);if(!C[ce]||ve[ce])throw Le("root node is forbidden and cannot be sanitized in-place")}}else if(_ instanceof a)u=It(""),d=u.ownerDocument.importNode(_,!0),d.nodeType===1&&d.nodeName==="BODY"||d.nodeName==="HTML"?u=d:u.appendChild(d);else{if(!de&&!he&&!se&&_.indexOf("<")===-1)return $&&Ie?$.createHTML(_):_;if(u=It(_),!u)return de?null:Ie?ie:""}u&&Ke&&re(u.firstChild);const z=Dt(Ae?_:u);for(;S=z.nextNode();)Nt(S)||(S.content instanceof o&&Sn(S.content),Ut(S));if(Ae)return _;if(de){if(Ce)for(N=mn.call(u.ownerDocument);u.firstChild;)N.appendChild(u.firstChild);else N=u;return(I.shadowroot||I.shadowrootmode)&&(N=dn.call(t,N,!0)),N}let F=se?u.outerHTML:u.innerHTML;return se&&C["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&G(cn,u.ownerDocument.doctype.name)&&(F=" `+F),he&&Pe([Ge,Ze,Ye],ce=>{F=Re(F,ce," ")}),$&&Ie?$.createHTML(F):F},e.setConfig=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};it(_),Qe=!0},e.clearConfig=function(){ke=null,Qe=!1},e.isValidAttribute=function(_,s,u){ke||it({});const d=D(_),S=D(s);return zt(d,S,u)},e.addHook=function(_,s){typeof s=="function"&&(Q[_]=Q[_]||[],Se(Q[_],s))},e.removeHook=function(_){if(Q[_])return Zt(Q[_])},e.removeHooks=function(_){Q[_]&&(Q[_]=[])},e.removeAllHooks=function(){Q={}},e}var hl=un();const dl=["innerHTML"],_l=H({__name:"c-markdown",props:{markdown:{default:""}},setup(r){const e=r,{markdown:n}=ht(e);A.use({renderer:{link(i,o,l){return`
    ${l}`}}});const t=Jt(()=>hl.sanitize(A(n.value),{ADD_ATTR:["target"]}));return(i,o)=>(v(),R("div",{innerHTML:x(t)},null,8,dl))}}),gl=` # Zeeklog Online Tools ## About Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, nisl quis mollis blandit, nunc nisl aliquam nunc, vitae aliquam nisl nunc vitae nisl. - Lorem ipsum dolor sit amet, consectetur adipiscing elit. - Sed euismod, nisl quis mollis blandit, nunc nisl aliquam nunc, vitae aliquam nisl nunc vitae nisl. [it-tools](https://it-tools.tech) `,bl=H({__name:"c-markdown.demo",setup(r){return(e,n)=>{const t=_l;return v(),we(t,{markdown:gl})}}}),kl=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),xl={},Tl={flex:"","gap-2":""},wl=w("pre",null,` Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias, quisquam vitae saepe dolores quas debitis ab r ecusandae suscipit ex dignissimos minus quam repellat sunt. Molestiae culpa blanditiis totam sapiente dignissimos. `,-1);function yl(r,e){const n=jn,t=$e;return v(),R("div",Tl,[h(n,{value:"lorem ipsum",label:"test"}),h(n,null,{label:L(({toggleModal:i})=>[h(t,{class:"text-left",size:"small",onClick:i},{default:L(()=>[U(" Bonjour ")]),_:2},1032,["onClick"])]),value:L(()=>[wl]),_:1})])}const vl=Te(xl,[["render",yl]]),Al=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),El=H({__name:"c-modal.demo",setup(r){const e=ue();return(n,t)=>{const i=$e,o=Wn;return v(),R("div",null,[h(i,{onClick:t[0]||(t[0]=()=>x(e)?.open())},{default:L(()=>[U(" Open Modal ")]),_:1}),h(o,{ref_key:"modal1",ref:e},{default:L(()=>[U(" Content ")]),_:1},512)])}}}),Sl=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"})),Rl={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ll=w("path",{fill:"currentColor",d:"m12.87 15.07l-2.54-2.51l.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35C8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5l3.11 3.11l.76-2.04M18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12m-2.62 7l1.62-4.33L19.12 17h-3.24Z"},null,-1),Ol=[Ll];function $l(r,e){return v(),R("svg",Rl,Ol)}const Cl={name:"mdi-translate",render:$l},Il=w("h2",null,"Sizes",-1),Dl=w("h2",null,"Searchable",-1),Ml=w("h2",null,"Big list",-1),Nl=w("h2",null,"Empty",-1),zl=w("h2",null,"String array as options",-1),Pl=w("h2",null,"Labels",-1),Ul=w("h2",null,"Custom displayed value",-1),ql=w("span",{class:"font-bold lh-normal"},"Hello",-1),Fl={"lh-normal":""},Bl=H({__name:"c-select.demo",setup(r){const e=[{label:"Option A",value:"a"},{label:"Option B",value:"b"},{label:"Option C",value:"c"}],n=Array.from({length:1e3},(o,l)=>({label:`Option ${l}`,value:l})),t=["small","medium","large"],i=ue("");return(o,l)=>{const a=Gn,c=Cl;return v(),R(M,null,[Il,(v(),R(M,null,V(t,m=>h(a,{key:m,value:x(i),"onUpdate:value":l[0]||(l[0]=f=>P(i)?i.value=f:null),options:e,size:m,"mb-2":""},null,8,["value","size"])),64)),Dl,(v(),R(M,null,V(t,m=>h(a,{key:m,value:x(i),"onUpdate:value":l[1]||(l[1]=f=>P(i)?i.value=f:null),options:e,size:m,searchable:"","mb-2":""},null,8,["value","size"])),64)),Ml,h(a,{value:x(i),"onUpdate:value":l[2]||(l[2]=m=>P(i)?i.value=m:null),options:x(n),searchable:""},null,8,["value","options"]),Nl,h(a,{options:[]}),zl,h(a,{value:x(i),"onUpdate:value":l[3]||(l[3]=m=>P(i)?i.value=m:null),options:["a","Option B","Option C"]},null,8,["value"]),Pl,h(a,{label:"Label","mb-2":""}),h(a,{label:"Label","label-position":"left","mb-2":""}),h(a,{label:"Label","label-position":"left","label-align":"left","mb-2":"","label-width":"200px"}),h(a,{label:"Label","label-position":"left","label-align":"center","mb-2":"","label-width":"200px"}),h(a,{label:"Label","label-position":"left","label-align":"right","mb-2":"","label-width":"200px"}),Ul,h(a,{value:x(i),"onUpdate:value":l[4]||(l[4]=m=>P(i)?i.value=m:null),options:e,"mb-2":""},{"displayed-value":L(()=>[ql]),_:1},8,["value"]),h(a,{value:x(i),"onUpdate:value":l[5]||(l[5]=m=>P(i)?i.value=m:null),options:e},{"displayed-value":L(()=>[w("span",Fl,[h(c)])]),_:1},8,["value"])],64)}}}),Hl=Object.freeze(Object.defineProperty({__proto__:null,default:Bl},Symbol.toStringTag,{value:"Module"})),jl=H({__name:"c-table.demo",setup(r){const e=ue([{name:"John",age:20},{name:"Jane",age:24},{name:"Joe",age:30}]);return(n,t)=>{const i=Zn;return v(),R(M,null,[h(i,{data:x(e),"mb-2":""},null,8,["data"]),h(i,{data:x(e),"hide-headers":"","mb-2":""},null,8,["data"]),h(i,{data:x(e),headers:["age","name"],"mb-2":""},null,8,["data"]),h(i,{data:x(e),headers:["age",{key:"name",label:"Full name"}],"mb-2":""},null,8,["data"]),h(i,{data:x(e),headers:{name:"full name"},"mb-2":""},null,8,["data"]),h(i,{data:x(e),headers:["age","name"]},{age:L(({value:o})=>[U(Oe(o)+"yo ",1)]),_:1},8,["data"])],64)}}}),Wl=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),Gl={};function Zl(r,e){const n=Yn;return v(),we(n,{value:"value","displayed-value":"displayedValue"})}const Yl=Te(Gl,[["render",Zl]]),Vl=Object.freeze(Object.defineProperty({__proto__:null,default:Yl},Symbol.toStringTag,{value:"Module"})),Xl={"mt-5":""},Ql={"mt-5":""},Kl=w("h2",null,"Tooltip positions",-1),Jl={class:"flex flex-wrap gap-4"},eo=H({__name:"c-tooltip.demo",setup(r){const e=["top","bottom","left","right"];return(n,t)=>{const i=Pn,o=$e;return v(),R(M,null,[w("div",null,[h(i,null,{tooltip:L(()=>[U(" Tooltip content ")]),default:L(()=>[U(" Hover me ")]),_:1})]),w("div",Xl,[h(i,{tooltip:"Tooltip content"},{default:L(()=>[U(" Hover me ")]),_:1})]),w("div",Ql,[Kl,w("div",Jl,[(v(),R(M,null,V(e,l=>w("div",{key:l},[h(i,{position:l,tooltip:`Tooltip ${l}`},{default:L(()=>[h(o,null,{default:L(()=>[U(Oe(l),1)]),_:2},1024)]),_:2},1032,["position","tooltip"])])),64))])])],64)}}}),to=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),no=Object.assign({"../c-alert/c-alert.demo.vue":Kn,"../c-button/c-button.demo.vue":ei,"../c-buttons-select/c-buttons-select.demo.vue":ni,"../c-card/c-card.demo.vue":ai,"../c-collapse/c-collapse.demo.vue":ki,"../c-file-upload/c-file-upload.demo.vue":yi,"../c-input-text/c-input-text.demo.vue":Mi,"../c-link/c-link.demo.vue":Fi,"../c-markdown/c-markdown.demo.vue":kl,"../c-modal-value/c-modal-value.demo.vue":Al,"../c-modal/c-modal.demo.vue":Sl,"../c-select/c-select.demo.vue":Hl,"../c-table/c-table.demo.vue":Wl,"../c-text-copyable/c-text-copyable.demo.vue":Vl,"../c-tooltip/c-tooltip.demo.vue":to}),pn=Object.keys(no).map(r=>{const[,,e]=r.split("/"),n=e.split(".").shift();return{path:n,name:n,component:()=>en(()=>import(r),[])}}),xo=[{path:"/c-lib",name:"c-lib",children:[{path:"",name:"c-lib-index",component:lo},...pn],component:()=>en(()=>import("./chunk-edadb762.js"),["assets/chunks/chunk-edadb762.js","assets/chunks/chunk-449c23a2.js","assets/static/c-button.1b70e3dc.css","assets/chunks/chunk-a740628f.js","assets/static/lodash.af515ca7.css","assets/chunks/chunk-893bf84a.js","assets/chunks/chunk-cf010ec4.js","assets/chunks/chunk-d8b8b4f8.js","assets/static/c-alert.926bd053.css","assets/chunks/chunk-3db18d93.js","assets/chunks/chunk-323c539f.js","assets/chunks/chunk-a3974c29.js","assets/chunks/chunk-e0e1a528.js","assets/chunks/chunk-6deddc2e.js","assets/chunks/chunk-9a43cce8.js","assets/chunks/chunk-340feaf0.js","assets/static/c-input-text.556101b4.css","assets/chunks/chunk-153e0e77.js","assets/chunks/chunk-767079b6.js","assets/static/c-modal-value.6b78fab4.css","assets/chunks/chunk-606d31d4.js","assets/chunks/chunk-27eb844d.js","assets/static/c-select.8dd6cbf5.css","assets/chunks/chunk-baf8ab22.js","assets/chunks/chunk-a66a4022.js"])}],io={grid:"","grid-cols-5":"","gap-2":""},lo=H({__name:"demo-home.page",setup(r){return(e,n)=>{const t=$e;return v(),R("div",io,[(v(!0),R(M,null,V(x(pn),({name:i})=>(v(),we(t,{key:i,to:{name:i}},{default:L(()=>[U(Oe(i),1)]),_:2},1032,["to"]))),128))])}}});export{Pi as C,lo as _,_l as a,pn as d,xo as r};