import{r as z}from"./index-NdkWRN8K.js";function A(){return A=Object.assign?Object.assign.bind():function(r){for(var l=1;l<arguments.length;l++){var a=arguments[l];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])}return r},A.apply(this,arguments)}const xe=["children","options"];var W,Z;(function(r){r.blockQuote="0",r.breakLine="1",r.breakThematic="2",r.codeBlock="3",r.codeFenced="4",r.codeInline="5",r.footnote="6",r.footnoteReference="7",r.gfmTask="8",r.heading="9",r.headingSetext="10",r.htmlBlock="11",r.htmlComment="12",r.htmlSelfClosing="13",r.image="14",r.link="15",r.linkAngleBraceStyleDetector="16",r.linkBareUrlDetector="17",r.linkMailtoDetector="18",r.newlineCoalescer="19",r.orderedList="20",r.paragraph="21",r.ref="22",r.refImage="23",r.refLink="24",r.table="25",r.tableSeparator="26",r.text="27",r.textBolded="28",r.textEmphasized="29",r.textEscaped="30",r.textMarked="31",r.textStrikethroughed="32",r.unorderedList="33"})(W||(W={})),function(r){r[r.MAX=0]="MAX",r[r.HIGH=1]="HIGH",r[r.MED=2]="MED",r[r.LOW=3]="LOW",r[r.MIN=4]="MIN"}(Z||(Z={}));const G=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((r,l)=>(r[l.toLowerCase()]=l,r),{for:"htmlFor"}),q={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},ve=["style","script"],be=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,$e=/mailto:/i,we=/\n{2,}$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Fe=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,We=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Ze=/(\[|\])/g,Ge=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,qe=/\t/g,Ve=/^ *\| */,Xe=/(^ *\||\| *$)/g,Qe=/ *$/,Je=/^ *:-+: *$/,Ke=/^ *:-+ *$/,Ye=/^ *-+: *$/,en=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,nn=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,rn=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,tn=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,ln=/^\\([^0-9A-Za-z\s])/,an=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,on=/^\n+/,cn=/^([ \t]*)/,sn=/\\([^\\])/g,V=/ *\n+$/,un=/(?:^|\n)( *)$/,P="(?:\\d+\\.)",_="(?:[*+-])";function oe(r){return"( *)("+(r===1?P:_)+") +"}const ce=oe(1),se=oe(2);function ue(r){return new RegExp("^"+(r===1?ce:se))}const dn=ue(1),pn=ue(2);function de(r){return new RegExp("^"+(r===1?ce:se)+"[^\\n]*(?:\\n(?!\\1"+(r===1?P:_)+" )[^\\n]*)*(\\n|$)","gm")}const pe=de(1),fe=de(2);function he(r){const l=r===1?P:_;return new RegExp("^( *)("+l+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+l+" (?!"+l+" ))\\n*|\\s*\\n*$)")}const me=he(1),ge=he(2);function X(r,l){const a=l===1,i=a?me:ge,p=a?pe:fe,m=a?dn:pn;return{match(s,f,g){const v=un.exec(g);return v&&(f.list||!f.inline&&!f.simple)?i.exec(s=v[1]+s):null},order:1,parse(s,f,g){const v=a?+s[2]:void 0,C=s[0].replace(we,`
`).match(p);let T=!1;return{items:C.map(function(L,e){const t=m.exec(L)[0].length,n=new RegExp("^ {1,"+t+"}","gm"),c=L.replace(n,"").replace(m,""),o=e===C.length-1,u=c.indexOf(`

`)!==-1||o&&T;T=u;const d=g.inline,x=g.list;let k;g.list=!0,u?(g.inline=!1,k=c.replace(V,`

`)):(g.inline=!0,k=c.replace(V,""));const b=f(k,g);return g.inline=d,g.list=x,b}),ordered:a,start:v}},render:(s,f,g)=>r(s.ordered?"ol":"ul",{key:g.key,start:s.type==="20"?s.start:void 0},s.items.map(function(v,C){return r("li",{key:C},f(v,g))}))}}const fn=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,hn=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ye=[Y,ee,ne,re,le,te,ie,ae,pe,me,fe,ge],mn=[...ye,/^[^\n]+(?:  \n|\n{2,})/,H,D];function gn(r){return r.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function yn(r){return Ye.test(r)?"right":Je.test(r)?"center":Ke.test(r)?"left":null}function Q(r,l,a){const i=a.inTable;a.inTable=!0;const p=l(r.trim(),a);a.inTable=i;let m=[[]];return p.forEach(function(s,f){s.type==="26"?f!==0&&f!==p.length-1&&m.push([]):(s.type!=="27"||p[f+1]!=null&&p[f+1].type!=="26"||(s.text=s.text.replace(Qe,"")),m[m.length-1].push(s))}),m}function kn(r,l,a){a.inline=!0;const i=Q(r[1],l,a),p=r[2].replace(Xe,"").split("|").map(yn),m=function(s,f,g){return s.trim().split(`
`).map(function(v){return Q(v,f,g)})}(r[3],l,a);return a.inline=!1,{align:p,cells:m,header:i,type:"25"}}function J(r,l){return r.align[l]==null?{}:{textAlign:r.align[l]}}function E(r){return function(l,a){return a.inline?r.exec(l):null}}function S(r){return function(l,a){return a.inline||a.simple?r.exec(l):null}}function $(r){return function(l,a){return a.inline||a.simple?null:r.exec(l)}}function M(r){return function(l){return r.exec(l)}}function xn(r,l,a){if(l.inline||l.simple||a&&!a.endsWith(`
`))return null;let i="";r.split(`
`).every(m=>!ye.some(s=>s.test(m))&&(i+=m+`
`,m.trim()));const p=i.trimEnd();return p==""?null:[i,p]}function O(r){try{if(decodeURIComponent(r).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return r}function K(r){return r.replace(sn,"$1")}function I(r,l,a){const i=a.inline||!1,p=a.simple||!1;a.inline=!0,a.simple=!0;const m=r(l,a);return a.inline=i,a.simple=p,m}function vn(r,l,a){const i=a.inline||!1,p=a.simple||!1;a.inline=!1,a.simple=!0;const m=r(l,a);return a.inline=i,a.simple=p,m}function bn(r,l,a){return a.inline=!1,r(l,a)}const U=(r,l,a)=>({children:I(l,r[1],a)});function j(){return{}}function B(){return null}function $n(...r){return r.filter(Boolean).join(" ")}function N(r,l,a){let i=r;const p=l.split(".");for(;p.length&&(i=i[p[0]],i!==void 0);)p.shift();return i||a}function wn(r,l={}){l.overrides=l.overrides||{},l.slugify=l.slugify||gn,l.namedCodesToUnicode=l.namedCodesToUnicode?A({},q,l.namedCodesToUnicode):q;const a=l.createElement||z.createElement;function i(e,t,...n){const c=N(l.overrides,`${e}.props`,{});return a(function(o,u){const d=N(u,o);return d?typeof d=="function"||typeof d=="object"&&"render"in d?d:N(u,`${o}.component`,o):o}(e,l.overrides),A({},t,c,{className:$n(t==null?void 0:t.className,c.className)||void 0}),...n)}function p(e){e=e.replace(Ie,"");let t=!1;l.forceInline?t=!0:l.forceBlock||(t=Ge.test(e)===!1);const n=C(v(t?e:`${e.trimEnd().replace(on,"")}

`,{inline:t}));for(;typeof n[n.length-1]=="string"&&!n[n.length-1].trim();)n.pop();if(l.wrapper===null)return n;const c=l.wrapper||(t?"span":"div");let o;if(n.length>1||l.forceWrapper)o=n;else{if(n.length===1)return o=n[0],typeof o=="string"?i("span",{key:"outer"},o):o;o=null}return z.createElement(c,{key:"outer"},o)}function m(e){const t=e.match(be);return t?t.reduce(function(n,c,o){const u=c.indexOf("=");if(u!==-1){const d=function(h){return h.indexOf("-")!==-1&&h.match(je)===null&&(h=h.replace(Pe,function(y,w){return w.toUpperCase()})),h}(c.slice(0,u)).trim(),x=function(h){const y=h[0];return(y==='"'||y==="'")&&h.length>=2&&h[h.length-1]===y?h.slice(1,-1):h}(c.slice(u+1).trim()),k=G[d]||d,b=n[k]=function(h,y){return h==="style"?y.split(/;\s?/).reduce(function(w,R){const F=R.slice(0,R.indexOf(":"));return w[F.replace(/(-[a-z])/g,ke=>ke[1].toUpperCase())]=R.slice(F.length+1).trim(),w},{}):h==="href"||h==="src"?O(y):(y.match(Be)&&(y=y.slice(1,y.length-1)),y==="true"||y!=="false"&&y)}(d,x);typeof b=="string"&&(H.test(b)||D.test(b))&&(n[k]=z.cloneElement(p(b.trim()),{key:o}))}else c!=="style"&&(n[G[c]||c]=!0);return n},{}):null}const s=[],f={},g={0:{match:$(Y),order:1,parse:(e,t,n)=>({children:t(e[0].replace(Ee,""),n)}),render:(e,t,n)=>i("blockquote",{key:n.key},t(e.children,n))},1:{match:M(Se),order:1,parse:j,render:(e,t,n)=>i("br",{key:n.key})},2:{match:$(Ce),order:1,parse:j,render:(e,t,n)=>i("hr",{key:n.key})},3:{match:$(ne),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,n)=>i("pre",{key:n.key},i("code",A({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:$(ee),order:0,parse:e=>({attrs:m(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:S(Ae),order:3,parse:e=>({text:e[2]}),render:(e,t,n)=>i("code",{key:n.key},e.text)},6:{match:$(Le),order:0,parse:e=>(s.push({footnote:e[2],identifier:e[1]}),{}),render:B},7:{match:E(Me),order:1,parse:e=>({target:`#${l.slugify(e[1])}`,text:e[1]}),render:(e,t,n)=>i("a",{key:n.key,href:O(e.target)},i("sup",{key:n.key},e.text))},8:{match:E(Re),order:1,parse:e=>({completed:e[1].toLowerCase()==="x"}),render:(e,t,n)=>i("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})},9:{match:$(l.enforceAtxHeadings?te:re),order:1,parse:(e,t,n)=>({children:I(t,e[2],n),id:l.slugify(e[2]),level:e[1].length}),render:(e,t,n)=>i(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n))},10:{match:$(le),order:0,parse:(e,t,n)=>({children:I(t,e[1],n),level:e[2]==="="?1:2,type:"9"})},11:{match:M(H),order:1,parse(e,t,n){const[,c]=e[3].match(cn),o=new RegExp(`^${c}`,"gm"),u=e[3].replace(o,""),d=(x=u,mn.some(y=>y.test(x))?bn:I);var x;const k=e[1].toLowerCase(),b=ve.indexOf(k)!==-1,h={attrs:m(e[2]),noInnerParse:b,tag:b?k:e[1]};return n.inAnchor=n.inAnchor||k==="a",b?h.text=e[3]:h.children=d(t,u,n),n.inAnchor=!1,h},render:(e,t,n)=>i(e.tag,A({key:n.key},e.attrs),e.text||t(e.children,n))},13:{match:M(D),order:1,parse:e=>({attrs:m(e[2]||""),tag:e[1]}),render:(e,t,n)=>i(e.tag,A({},e.attrs,{key:n.key}))},12:{match:M(ie),order:1,parse:()=>({}),render:B},14:{match:S(hn),order:1,parse:e=>({alt:e[1],target:K(e[2]),title:e[3]}),render:(e,t,n)=>i("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:O(e.target)})},15:{match:E(fn),order:3,parse:(e,t,n)=>({children:vn(t,e[1],n),target:K(e[2]),title:e[3]}),render:(e,t,n)=>i("a",{key:n.key,href:O(e.target),title:e.title},t(e.children,n))},16:{match:E(De),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,t)=>t.inAnchor?null:E(Ne)(e,t),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:E(He),order:0,parse(e){let t=e[1],n=e[1];return $e.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:"27"}],target:n,type:"15"}}},20:X(i,1),33:X(i,2),19:{match:$(Oe),order:3,parse:j,render:()=>`
`},21:{match:xn,order:3,parse:U,render:(e,t,n)=>i("p",{key:n.key},t(e.children,n))},22:{match:E(_e),order:0,parse:e=>(f[e[1]]={target:e[2],title:e[4]},{}),render:B},23:{match:S(Fe),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,n)=>i("img",{key:n.key,alt:e.alt,src:O(f[e.ref].target),title:f[e.ref].title})},24:{match:E(We),order:0,parse:(e,t,n)=>({children:t(e[1],n),fallbackChildren:t(e[0].replace(Ze,"\\$1"),n),ref:e[2]}),render:(e,t,n)=>f[e.ref]?i("a",{key:n.key,href:O(f[e.ref].target),title:f[e.ref].title},t(e.children,n)):i("span",{key:n.key},t(e.fallbackChildren,n))},25:{match:$(ae),order:1,parse:kn,render:(e,t,n)=>i("table",{key:n.key},i("thead",null,i("tr",null,e.header.map(function(c,o){return i("th",{key:o,style:J(e,o)},t(c,n))}))),i("tbody",null,e.cells.map(function(c,o){return i("tr",{key:o},c.map(function(u,d){return i("td",{key:d,style:J(e,d)},t(u,n))}))})))},26:{match:function(e,t){return t.inTable?(t.inline=!0,Ve.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:M(an),order:4,parse:e=>({text:e[0].replace(Ue,(t,n)=>l.namedCodesToUnicode[n]?l.namedCodesToUnicode[n]:t)}),render:e=>e.text},28:{match:S(en),order:2,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,n)=>i("strong",{key:n.key},t(e.children,n))},29:{match:S(nn),order:3,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,n)=>i("em",{key:n.key},t(e.children,n))},30:{match:S(ln),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:S(rn),order:3,parse:U,render:(e,t,n)=>i("mark",{key:n.key},t(e.children,n))},32:{match:S(tn),order:3,parse:U,render:(e,t,n)=>i("del",{key:n.key},t(e.children,n))}};l.disableParsingRawHTML===!0&&(delete g[11],delete g[13]);const v=function(e){let t=Object.keys(e);function n(c,o){let u=[],d="";for(;c;){let x=0;for(;x<t.length;){const k=t[x],b=e[k],h=b.match(c,o,d);if(h){const y=h[0];c=c.substring(y.length);const w=b.parse(h,n,o);w.type==null&&(w.type=k),u.push(w),d=y;break}x++}}return u}return t.sort(function(c,o){let u=e[c].order,d=e[o].order;return u!==d?u-d:1}),function(c,o){return n(function(u){return u.replace(Te,`
`).replace(ze,"").replace(qe,"    ")}(c),o)}}(g),C=(T=function(e,t){return function(n,c,o){const u=e[n.type].render;return t?t(()=>u(n,c,o),n,c,o):u(n,c,o)}}(g,l.renderRule),function e(t,n={}){if(Array.isArray(t)){const c=n.key,o=[];let u=!1;for(let d=0;d<t.length;d++){n.key=d;const x=e(t[d],n),k=typeof x=="string";k&&u?o[o.length-1]+=x:x!==null&&o.push(x),u=k}return n.key=c,o}return T(t,e,n)});var T;const L=p(r);return s.length?i("div",null,L,i("footer",{key:"footer"},s.map(function(e){return i("div",{id:l.slugify(e.identifier),key:e.identifier},e.identifier,C(v(e.footnote,{inline:!0})))}))):L}const Sn=r=>{let{children:l,options:a}=r,i=function(p,m){if(p==null)return{};var s,f,g={},v=Object.keys(p);for(f=0;f<v.length;f++)m.indexOf(s=v[f])>=0||(g[s]=p[s]);return g}(r,xe);return z.cloneElement(wn(l,a),i)};export{Sn as M};
