@av-pi-studio/web-client 0.0.8
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/.tsbuildinfo +1 -0
- package/dist/web/assets/BinaryFallbackViewer-BVnOJSh_.js +2 -0
- package/dist/web/assets/BinaryFallbackViewer-BVnOJSh_.js.map +1 -0
- package/dist/web/assets/BinaryFallbackViewer-CLiNWU_S.css +1 -0
- package/dist/web/assets/ChatPanel-BOR3MYdN.js +3 -0
- package/dist/web/assets/ChatPanel-BOR3MYdN.js.map +1 -0
- package/dist/web/assets/ChatPanel-DW5U4HRf.css +1 -0
- package/dist/web/assets/CodeView-BJb8T6q4.js +2 -0
- package/dist/web/assets/CodeView-BJb8T6q4.js.map +1 -0
- package/dist/web/assets/CodeView-CLRODhB8.css +1 -0
- package/dist/web/assets/DiffView-B4H-yHuX.js +3 -0
- package/dist/web/assets/DiffView-B4H-yHuX.js.map +1 -0
- package/dist/web/assets/DiffView-CRbeRztO.css +1 -0
- package/dist/web/assets/FilePanel-DIInFr3h.css +1 -0
- package/dist/web/assets/FilePanel-lERDJldp.js +3 -0
- package/dist/web/assets/FilePanel-lERDJldp.js.map +1 -0
- package/dist/web/assets/ImageViewer-Cnr0mhRu.js +2 -0
- package/dist/web/assets/ImageViewer-Cnr0mhRu.js.map +1 -0
- package/dist/web/assets/ImageViewer-ijzMsq8H.css +1 -0
- package/dist/web/assets/MarkdownFileViewer-BD5Ri_Fb.css +1 -0
- package/dist/web/assets/MarkdownFileViewer-CDHJBxdH.js +2 -0
- package/dist/web/assets/MarkdownFileViewer-CDHJBxdH.js.map +1 -0
- package/dist/web/assets/TerminalPanel-BQj62G6N.css +1 -0
- package/dist/web/assets/TerminalPanel-cnkK_YF5.js +2 -0
- package/dist/web/assets/TerminalPanel-cnkK_YF5.js.map +1 -0
- package/dist/web/assets/TextViewer-DWYO-J8z.js +2 -0
- package/dist/web/assets/TextViewer-DWYO-J8z.js.map +1 -0
- package/dist/web/assets/VideoViewer-BBuZ4wou.css +1 -0
- package/dist/web/assets/VideoViewer-D2ZnEQoA.js +2 -0
- package/dist/web/assets/VideoViewer-D2ZnEQoA.js.map +1 -0
- package/dist/web/assets/index-DnTTpAX5.js +3 -0
- package/dist/web/assets/index-DnTTpAX5.js.map +1 -0
- package/dist/web/assets/index-DrGTLQo0.css +1 -0
- package/dist/web/assets/markdown-BQwXm0MF.css +1 -0
- package/dist/web/assets/markdown-Biwdm3dP.js +2 -0
- package/dist/web/assets/markdown-Biwdm3dP.js.map +1 -0
- package/dist/web/assets/use-file-download-BpyWNVxA.js +2 -0
- package/dist/web/assets/use-file-download-BpyWNVxA.js.map +1 -0
- package/dist/web/assets/vendor-BFXtRv5b.js +83 -0
- package/dist/web/assets/vendor-BFXtRv5b.js.map +1 -0
- package/dist/web/assets/vendor-dnd-D9kA7FgH.js +6 -0
- package/dist/web/assets/vendor-dnd-D9kA7FgH.js.map +1 -0
- package/dist/web/assets/vendor-highlight-DaTzDdJW.js +5 -0
- package/dist/web/assets/vendor-highlight-DaTzDdJW.js.map +1 -0
- package/dist/web/assets/vendor-icons-DUloQbkI.js +182 -0
- package/dist/web/assets/vendor-icons-DUloQbkI.js.map +1 -0
- package/dist/web/assets/vendor-markdown-CpaoCv-a.js +36 -0
- package/dist/web/assets/vendor-markdown-CpaoCv-a.js.map +1 -0
- package/dist/web/assets/vendor-overlays-Bo99M0pM.js +2 -0
- package/dist/web/assets/vendor-overlays-Bo99M0pM.js.map +1 -0
- package/dist/web/assets/vendor-query-CAh-Aqig.js +2 -0
- package/dist/web/assets/vendor-query-CAh-Aqig.js.map +1 -0
- package/dist/web/assets/vendor-react-BoIQBqDW.js +50 -0
- package/dist/web/assets/vendor-react-BoIQBqDW.js.map +1 -0
- package/dist/web/assets/vendor-terminal-BhzX2_ts.js +10 -0
- package/dist/web/assets/vendor-terminal-BhzX2_ts.js.map +1 -0
- package/dist/web/assets/vendor-terminal-DYP7pi_n.css +32 -0
- package/dist/web/index.html +21 -0
- package/package.json +56 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{s as De,a as sn,o as re,n as _t,V as cn,f as fn,b as hn,c as pn,d as wr,e as dt,t as Cr,g as qe,i as Sr,j as Ke,k as Ot,l as st,m as mn,u as Ir,p as Ze,q as Er,r as He,v as Ar,w as Tr,x as Ce,z as zr,y as Fr}from"./vendor-BFXtRv5b.js";import{j as Ge}from"./vendor-react-BoIQBqDW.js";const Nr=/[ \t\n\f\r]/g;function Ue(e){return typeof e=="object"?e.type==="text"?Bt(e.value):!1:Bt(e)}function Bt(e){return e.replace(Nr,"")===""}const Pr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},gn=dn("end"),kt=dn("start");function dn(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Dr(e){const n=kt(e),t=gn(e);if(n&&t)return{start:n,end:t}}function Me(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Rt(e.position):"start"in e||"end"in e?Rt(e):"line"in e||"column"in e?ct(e):""}function ct(e){return vt(e&&e.line)+":"+vt(e&&e.column)}function Rt(e){return ct(e&&e.start)+"-"+ct(e&&e.end)}function vt(e){return e&&typeof e=="number"?e:1}const xt={}.hasOwnProperty,Lr=new Map,_r=/[A-Z]/g,Or=new Set(["table","tbody","thead","tfoot","tr"]),Br=new Set(["td","th"]),kn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rr(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ur(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Vr(t,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?De:sn,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=xn(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function xn(e,n,t){if(n.type==="element")return vr(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Mr(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return qr(e,n,t);if(n.type==="mdxjsEsm")return jr(e,n);if(n.type==="root")return Hr(e,n,t);if(n.type==="text")return $r(e,n)}function vr(e,n,t){const r=e.schema;let l=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=De,e.schema=l),e.ancestors.push(n);const a=bn(e,n.tagName,!1),i=Wr(e,n);let u=bt(e,n);return Or.has(n.tagName)&&(u=u.filter(function(o){return typeof o=="string"?!Ue(o):!0})),yn(e,i,a,n),yt(i,u),e.ancestors.pop(),e.schema=r,e.create(n,a,i,t)}function Mr(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return re(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Ne(e,n.position)}function jr(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ne(e,n.position)}function qr(e,n,t){const r=e.schema;let l=r;n.name==="svg"&&r.space==="html"&&(l=De,e.schema=l),e.ancestors.push(n);const a=n.name===null?e.Fragment:bn(e,n.name,!0),i=Qr(e,n),u=bt(e,n);return yn(e,i,a,n),yt(i,u),e.ancestors.pop(),e.schema=r,e.create(n,a,i,t)}function Hr(e,n,t){const r={};return yt(r,bt(e,n)),e.create(n,e.Fragment,r,t)}function $r(e,n){return n.value}function yn(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function yt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Vr(e,n,t){return r;function r(l,a,i,u){const s=Array.isArray(i.children)?t:n;return u?s(a,i,u):s(a,i)}}function Ur(e,n){return t;function t(r,l,a,i){const u=Array.isArray(a.children),o=kt(r);return n(l,a,i,u,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function Wr(e,n){const t={};let r,l;for(l in n.properties)if(l!=="children"&&xt.call(n.properties,l)){const a=Yr(e,l,n.properties[l]);if(a){const[i,u]=a;e.tableCellAlignToStyle&&i==="align"&&typeof u=="string"&&Br.has(n.tagName)?r=u:t[i]=u}}if(r){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Qr(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];re(a.type==="ExpressionStatement");const i=a.expression;re(i.type==="ObjectExpression");const u=i.properties[0];re(u.type==="SpreadElement"),Object.assign(t,e.evaluater.evaluateExpression(u.argument))}else Ne(e,n.position);else{const l=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];re(u.type==="ExpressionStatement"),a=e.evaluater.evaluateExpression(u.expression)}else Ne(e,n.position);else a=r.value===null?!0:r.value;t[l]=a}return t}function bt(e,n){const t=[];let r=-1;const l=e.passKeys?new Map:Lr;for(;++r<n.children.length;){const a=n.children[r];let i;if(e.passKeys){const o=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(o){const s=l.get(o)||0;i=o+"-"+s,l.set(o,s+1)}}const u=xn(e,a,i);u!==void 0&&t.push(u)}return t}function Yr(e,n,t){const r=fn(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?hn(t):pn(t)),r.property==="style"){let l=typeof t=="object"?t:Jr(e,String(t));return e.stylePropertyNameCase==="css"&&(l=Kr(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?Pr[r.property]||r.property:r.attribute,t]}}function Jr(e,n){try{return wr(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,l=new cn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=kn+"#cannot-parse-style-attribute",l}}function bn(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let a=-1,i;for(;++a<l.length;){const u=_t(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};i=i?{type:"MemberExpression",object:i,property:u,computed:!!(a&&u.type==="Literal"),optional:!1}:u}r=i}else r=_t(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const l=r.value;return xt.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ne(e)}function Ne(e,n){const t=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=kn+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Kr(e){const n={};let t;for(t in e)xt.call(e,t)&&(n[Zr(t)]=e[t]);return n}function Zr(e){let n=e.replace(_r,Gr);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Gr(e){return"-"+e.toLowerCase()}const Xr={};function wt(e,n){const t=Xr,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,l=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return wn(e,r,l)}function wn(e,n,t){if(ei(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Mt(e.children,n,t)}return Array.isArray(e)?Mt(e,n,t):""}function Mt(e,n,t){const r=[];let l=-1;for(;++l<e.length;)r[l]=wn(e[l],n,t);return r.join("")}function ei(e){return!!(e&&typeof e=="object")}function Z(e,n,t,r){const l=e.length;let a=0,i;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);a<r.length;)i=r.slice(a,a+1e4),i.unshift(n,0),e.splice(...i),a+=1e4,n+=1e4}function G(e,n){return e.length>0?(Z(e,e.length,0,n),e):n}const jt={}.hasOwnProperty;function Cn(e){const n={};let t=-1;for(;++t<e.length;)ti(n,e[t]);return n}function ti(e,n){let t;for(t in n){const l=(jt.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t];let i;if(a)for(i in a){jt.call(l,i)||(l[i]=[]);const u=a[i];ni(l[i],Array.isArray(u)?u:u?[u]:[])}}}function ni(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Z(e,0,0,r)}function Sn(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ie(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Y=pe(/[A-Za-z]/),Q=pe(/[\dA-Za-z]/),ri=pe(/[#-'*+\--9=?A-Z^-~]/);function $e(e){return e!==null&&(e<32||e===127)}const ft=pe(/\d/),ii=pe(/[\dA-Fa-f]/),li=pe(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function j(e){return e!==null&&(e<0||e===32)}function N(e){return e===-2||e===-1||e===32}const We=pe(new RegExp("\\p{P}|\\p{S}","u")),ke=pe(/\s/);function pe(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ie(e){const n=[];let t=-1,r=0,l=0;for(;++t<e.length;){const a=e.charCodeAt(t);let i="";if(a===37&&Q(e.charCodeAt(t+1))&&Q(e.charCodeAt(t+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const u=e.charCodeAt(t+1);a<56320&&u>56319&&u<57344?(i=String.fromCharCode(a,u),l=1):i="�"}else i=String.fromCharCode(a);i&&(n.push(e.slice(r,t),encodeURIComponent(i)),r=t+l+1,i=""),l&&(t+=l,l=0)}return n.join("")+e.slice(r)}function D(e,n,t,r){const l=r?r-1:Number.POSITIVE_INFINITY;let a=0;return i;function i(o){return N(o)?(e.enter(t),u(o)):n(o)}function u(o){return N(o)&&a++<l?(e.consume(o),u):(e.exit(t),n(o))}}const ai={tokenize:ui};function ui(e){const n=e.attempt(this.parser.constructs.contentInitial,r,l);let t;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),D(e,n,"linePrefix")}function l(u){return e.enter("paragraph"),a(u)}function a(u){const o=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=o),t=o,i(u)}function i(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return z(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),i)}}const oi={tokenize:si},qt={tokenize:ci};function si(e){const n=this,t=[];let r=0,l,a,i;return u;function u(S){if(r<t.length){const L=t[r];return n.containerState=L[1],e.attempt(L[0].continuation,o,s)(S)}return s(S)}function o(S){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&E();const L=n.events.length;let B=L,y;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){y=n.events[B][1].end;break}b(r);let _=L;for(;_<n.events.length;)n.events[_][1].end={...y},_++;return Z(n.events,B+1,0,n.events.slice(L)),n.events.length=_,s(S)}return u(S)}function s(S){if(r===t.length){if(!l)return p(S);if(l.currentConstruct&&l.currentConstruct.concrete)return d(S);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(qt,f,c)(S)}function f(S){return l&&E(),b(r),p(S)}function c(S){return n.parser.lazy[n.now().line]=r!==t.length,i=n.now().offset,d(S)}function p(S){return n.containerState={},e.attempt(qt,h,d)(S)}function h(S){return r++,t.push([n.currentConstruct,n.containerState]),p(S)}function d(S){if(S===null){l&&E(),b(0),e.consume(S);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:a}),C(S)}function C(S){if(S===null){I(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return z(S)?(e.consume(S),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(S),C)}function I(S,L){const B=n.sliceStream(S);if(L&&B.push(null),S.previous=a,a&&(a.next=S),a=S,l.defineSkip(S.start),l.write(B),n.parser.lazy[S.start.line]){let y=l.events.length;for(;y--;)if(l.events[y][1].start.offset<i&&(!l.events[y][1].end||l.events[y][1].end.offset>i))return;const _=n.events.length;let q=_,R,k;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(R){k=n.events[q][1].end;break}R=!0}for(b(r),y=_;y<n.events.length;)n.events[y][1].end={...k},y++;Z(n.events,q+1,0,n.events.slice(_)),n.events.length=y}}function b(S){let L=t.length;for(;L-- >S;){const B=t[L];n.containerState=B[1],B[0].exit.call(n,e)}t.length=S}function E(){l.write([null]),a=void 0,l=void 0,n.containerState._closeFlow=void 0}}function ci(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Se(e){if(e===null||j(e)||ke(e))return 1;if(We(e))return 2}function Qe(e,n,t){const r=[];let l=-1;for(;++l<e.length;){const a=e[l].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}const ht={name:"attention",resolveAll:fi,tokenize:hi};function fi(e,n){let t=-1,r,l,a,i,u,o,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Ht(c,-o),Ht(p,o),i={type:o>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:o>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},a={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},l={type:o>1?"strong":"emphasis",start:{...i.start},end:{...u.end}},e[r][1].end={...i.start},e[t][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=G(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=G(s,[["enter",l,n],["enter",i,n],["exit",i,n],["enter",a,n]]),s=G(s,Qe(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=G(s,[["exit",a,n],["enter",u,n],["exit",u,n],["exit",l,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=G(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Z(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function hi(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,l=Se(r);let a;return i;function i(o){return a=o,e.enter("attentionSequence"),u(o)}function u(o){if(o===a)return e.consume(o),u;const s=e.exit("attentionSequence"),f=Se(o),c=!f||f===2&&l||t.includes(o),p=!l||l===2&&f||t.includes(r);return s._open=!!(a===42?c:c&&(l||!p)),s._close=!!(a===42?p:p&&(f||!c)),n(o)}}function Ht(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const pi={name:"autolink",tokenize:mi};function mi(e,n,t){let r=0;return l;function l(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return Y(h)?(e.consume(h),i):h===64?t(h):s(h)}function i(h){return h===43||h===45||h===46||Q(h)?(r=1,u(h)):s(h)}function u(h){return h===58?(e.consume(h),r=0,o):(h===43||h===45||h===46||Q(h))&&r++<32?(e.consume(h),u):(r=0,s(h))}function o(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||$e(h)?t(h):(e.consume(h),o)}function s(h){return h===64?(e.consume(h),f):ri(h)?(e.consume(h),s):t(h)}function f(h){return Q(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||Q(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return t(h)}}const Le={partial:!0,tokenize:gi};function gi(e,n,t){return r;function r(a){return N(a)?D(e,l,"linePrefix")(a):l(a)}function l(a){return a===null||z(a)?n(a):t(a)}}const In={continuation:{tokenize:ki},exit:xi,name:"blockQuote",tokenize:di};function di(e,n,t){const r=this;return l;function l(i){if(i===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return t(i)}function a(i){return N(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(i))}}function ki(e,n,t){const r=this;return l;function l(i){return N(i)?D(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):a(i)}function a(i){return e.attempt(In,n,t)(i)}}function xi(e){e.exit("blockQuote")}const En={name:"characterEscape",tokenize:yi};function yi(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),l}function l(a){return li(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const An={name:"characterReference",tokenize:bi};function bi(e,n,t){const r=this;let l=0,a,i;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),o}function o(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),a=31,i=Q,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=ii,f):(e.enter("characterReferenceValue"),a=7,i=ft,f(c))}function f(c){if(c===59&&l){const p=e.exit("characterReferenceValue");return i===Q&&!dt(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return i(c)&&l++<a?(e.consume(c),f):t(c)}}const $t={partial:!0,tokenize:Ci},Vt={concrete:!0,name:"codeFenced",tokenize:wi};function wi(e,n,t){const r=this,l={partial:!0,tokenize:B};let a=0,i=0,u;return o;function o(y){return s(y)}function s(y){const _=r.events[r.events.length-1];return a=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,u=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(y)}function f(y){return y===u?(i++,e.consume(y),f):i<3?t(y):(e.exit("codeFencedFenceSequence"),N(y)?D(e,c,"whitespace")(y):c(y))}function c(y){return y===null||z(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check($t,C,L)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(y)):N(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,h,"whitespace")(y)):y===96&&y===u?t(y):(e.consume(y),p)}function h(y){return y===null||z(y)?c(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(y)):y===96&&y===u?t(y):(e.consume(y),d)}function C(y){return e.attempt(l,L,I)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return a>0&&N(y)?D(e,E,"linePrefix",a+1)(y):E(y)}function E(y){return y===null||z(y)?e.check($t,C,L)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||z(y)?(e.exit("codeFlowValue"),E(y)):(e.consume(y),S)}function L(y){return e.exit("codeFenced"),n(y)}function B(y,_,q){let R=0;return k;function k(O){return y.enter("lineEnding"),y.consume(O),y.exit("lineEnding"),A}function A(O){return y.enter("codeFencedFence"),N(O)?D(y,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):T(O)}function T(O){return O===u?(y.enter("codeFencedFenceSequence"),v(O)):q(O)}function v(O){return O===u?(R++,y.consume(O),v):R>=i?(y.exit("codeFencedFenceSequence"),N(O)?D(y,H,"whitespace")(O):H(O)):q(O)}function H(O){return O===null||z(O)?(y.exit("codeFencedFence"),_(O)):q(O)}}}function Ci(e,n,t){const r=this;return l;function l(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a)}function a(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}const Xe={name:"codeIndented",tokenize:Ii},Si={partial:!0,tokenize:Ei};function Ii(e,n,t){const r=this;return l;function l(s){return e.enter("codeIndented"),D(e,a,"linePrefix",5)(s)}function a(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?i(s):t(s)}function i(s){return s===null?o(s):z(s)?e.attempt(Si,i,o)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||z(s)?(e.exit("codeFlowValue"),i(s)):(e.consume(s),u)}function o(s){return e.exit("codeIndented"),n(s)}}function Ei(e,n,t){const r=this;return l;function l(i){return r.parser.lazy[r.now().line]?t(i):z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l):D(e,a,"linePrefix",5)(i)}function a(i){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(i):z(i)?l(i):t(i)}}const Ai={name:"codeText",previous:zi,resolve:Ti,tokenize:Fi};function Ti(e){let n=e.length-4,t=3,r,l;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)l===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(l=r):(r===n||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),n-=r-l-2,r=l+2),l=void 0);return e}function zi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Fi(e,n,t){let r=0,l,a;return i;function i(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),o(c))}function o(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),o):c===96?(a=e.enter("codeTextSequence"),l=0,f(c)):z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||z(c)?(e.exit("codeTextData"),o(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),l++,f):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(a.type="codeTextData",s(c))}}class Ni{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const l=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&ze(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),ze(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ze(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);ze(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ze(this.left,t.reverse())}}}function ze(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Tn(e){const n={};let t=-1,r,l,a,i,u,o,s;const f=new Ni(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,a=0,a<o.length&&o[a][1].type==="lineEndingBlank"&&(a+=2),a<o.length&&o[a][1].type==="content"))for(;++a<o.length&&o[a][1].type!=="content";)o[a][1].type==="chunkText"&&(o[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Pi(f,t)),t=n[t],s=!0);else if(r[1]._container){for(a=t,l=void 0;a--;)if(i=f.get(a),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(l&&(f.get(l)[1].type="lineEndingBlank"),i[1].type="lineEnding",l=a);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;l&&(r[1].end={...f.get(l)[1].start},u=f.slice(l,t),u.unshift(r),f.splice(l,t-l+1,u))}}return Z(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Pi(e,n){const t=e.get(n)[1],r=e.get(n)[2];let l=n-1;const a=[];let i=t._tokenizer;i||(i=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const u=i.events,o=[],s={};let f,c,p=-1,h=t,d=0,C=0;const I=[C];for(;h;){for(;e.get(++l)[1]!==h;);a.push(l),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&i.defineSkip(h.start),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(f),h._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(C=p+1,I.push(C),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(i.events=[],h?(h._tokenizer=void 0,h.previous=void 0):I.pop(),p=I.length;p--;){const b=u.slice(I[p],I[p+1]),E=a.pop();o.push([E,E+b.length-1]),e.splice(E,2,b)}for(o.reverse(),p=-1;++p<o.length;)s[d+o[p][0]]=d+o[p][1],d+=o[p][1]-o[p][0]-1;return s}const Di={resolve:_i,tokenize:Oi},Li={partial:!0,tokenize:Bi};function _i(e){return Tn(e),e}function Oi(e,n){let t;return r;function r(u){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),l(u)}function l(u){return u===null?a(u):z(u)?e.check(Li,i,a)(u):(e.consume(u),l)}function a(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function i(u){return e.consume(u),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,l}}function Bi(e,n,t){const r=this;return l;function l(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),D(e,a,"linePrefix")}function a(i){if(i===null||z(i))return t(i);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(i):e.interrupt(r.parser.constructs.flow,t,n)(i)}}function zn(e,n,t,r,l,a,i,u,o){const s=o||Number.POSITIVE_INFINITY;let f=0;return c;function c(b){return b===60?(e.enter(r),e.enter(l),e.enter(a),e.consume(b),e.exit(a),p):b===null||b===32||b===41||$e(b)?t(b):(e.enter(r),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),C(b))}function p(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(l),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(u),p(b)):b===null||b===60||z(b)?t(b):(e.consume(b),b===92?d:h)}function d(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function C(b){return!f&&(b===null||b===41||j(b))?(e.exit("chunkString"),e.exit(u),e.exit(i),e.exit(r),n(b)):f<s&&b===40?(e.consume(b),f++,C):b===41?(e.consume(b),f--,C):b===null||b===32||b===40||$e(b)?t(b):(e.consume(b),b===92?I:C)}function I(b){return b===40||b===41||b===92?(e.consume(b),C):C(b)}}function Fn(e,n,t,r,l,a){const i=this;let u=0,o;return s;function s(h){return e.enter(r),e.enter(l),e.consume(h),e.exit(l),e.enter(a),f}function f(h){return u>999||h===null||h===91||h===93&&!o||h===94&&!u&&"_hiddenFootnoteSupport"in i.parser.constructs?t(h):h===93?(e.exit(a),e.enter(l),e.consume(h),e.exit(l),e.exit(r),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||z(h)||u++>999?(e.exit("chunkString"),f(h)):(e.consume(h),o||(o=!N(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),u++,c):c(h)}}function Nn(e,n,t,r,l,a){let i;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(l),e.consume(p),e.exit(l),i=p===40?41:p,o):t(p)}function o(p){return p===i?(e.enter(l),e.consume(p),e.exit(l),e.exit(r),n):(e.enter(a),s(p))}function s(p){return p===i?(e.exit(a),o(i)):p===null?t(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),D(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===i||p===null||z(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===i||p===92?(e.consume(p),f):f(p)}}function Fe(e,n){let t;return r;function r(l){return z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t=!0,r):N(l)?D(e,r,t?"linePrefix":"lineSuffix")(l):n(l)}}const Ri={name:"definition",tokenize:Mi},vi={partial:!0,tokenize:ji};function Mi(e,n,t){const r=this;let l;return a;function a(h){return e.enter("definition"),i(h)}function i(h){return Fn.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function u(h){return l=ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),o):t(h)}function o(h){return j(h)?Fe(e,s)(h):s(h)}function s(h){return zn(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(vi,c,c)(h)}function c(h){return N(h)?D(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),r.parser.defined.push(l),n(h)):t(h)}}function ji(e,n,t){return r;function r(u){return j(u)?Fe(e,l)(u):t(u)}function l(u){return Nn(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return N(u)?D(e,i,"whitespace")(u):i(u)}function i(u){return u===null||z(u)?n(u):t(u)}}const qi={name:"hardBreakEscape",tokenize:Hi};function Hi(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),l}function l(a){return z(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const $i={name:"headingAtx",resolve:Vi,tokenize:Ui};function Vi(e,n){let t=e.length-2,r=3,l,a;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Z(e,r,t-r+1,[["enter",l,n],["enter",a,n],["exit",a,n],["exit",l,n]])),e}function Ui(e,n,t){let r=0;return l;function l(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),i(f)}function i(f){return f===35&&r++<6?(e.consume(f),i):f===null||j(f)?(e.exit("atxHeadingSequence"),u(f)):t(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),o(f)):f===null||z(f)?(e.exit("atxHeading"),n(f)):N(f)?D(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function o(f){return f===35?(e.consume(f),o):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||j(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const Wi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ut=["pre","script","style","textarea"],Qi={concrete:!0,name:"htmlFlow",resolveTo:Ki,tokenize:Zi},Yi={partial:!0,tokenize:Xi},Ji={partial:!0,tokenize:Gi};function Ki(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Zi(e,n,t){const r=this;let l,a,i,u,o;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),a=!0,C):g===63?(e.consume(g),l=3,r.interrupt?n:m):Y(g)?(e.consume(g),i=String.fromCharCode(g),I):t(g)}function p(g){return g===45?(e.consume(g),l=2,h):g===91?(e.consume(g),l=5,u=0,d):Y(g)?(e.consume(g),l=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function d(g){const te="CDATA[";return g===te.charCodeAt(u++)?(e.consume(g),u===te.length?r.interrupt?n:T:d):t(g)}function C(g){return Y(g)?(e.consume(g),i=String.fromCharCode(g),I):t(g)}function I(g){if(g===null||g===47||g===62||j(g)){const te=g===47,me=i.toLowerCase();return!te&&!a&&Ut.includes(me)?(l=1,r.interrupt?n(g):T(g)):Wi.includes(i.toLowerCase())?(l=6,te?(e.consume(g),b):r.interrupt?n(g):T(g)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):a?E(g):S(g))}return g===45||Q(g)?(e.consume(g),i+=String.fromCharCode(g),I):t(g)}function b(g){return g===62?(e.consume(g),r.interrupt?n:T):t(g)}function E(g){return N(g)?(e.consume(g),E):k(g)}function S(g){return g===47?(e.consume(g),k):g===58||g===95||Y(g)?(e.consume(g),L):N(g)?(e.consume(g),S):k(g)}function L(g){return g===45||g===46||g===58||g===95||Q(g)?(e.consume(g),L):B(g)}function B(g){return g===61?(e.consume(g),y):N(g)?(e.consume(g),B):S(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),o=g,_):N(g)?(e.consume(g),y):q(g)}function _(g){return g===o?(e.consume(g),o=null,R):g===null||z(g)?t(g):(e.consume(g),_)}function q(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||j(g)?B(g):(e.consume(g),q)}function R(g){return g===47||g===62||N(g)?S(g):t(g)}function k(g){return g===62?(e.consume(g),A):t(g)}function A(g){return g===null||z(g)?T(g):N(g)?(e.consume(g),A):t(g)}function T(g){return g===45&&l===2?(e.consume(g),W):g===60&&l===1?(e.consume(g),V):g===62&&l===4?(e.consume(g),ee):g===63&&l===3?(e.consume(g),m):g===93&&l===5?(e.consume(g),ae):z(g)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(Yi,ue,v)(g)):g===null||z(g)?(e.exit("htmlFlowData"),v(g)):(e.consume(g),T)}function v(g){return e.check(Ji,H,ue)(g)}function H(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),O}function O(g){return g===null||z(g)?v(g):(e.enter("htmlFlowData"),T(g))}function W(g){return g===45?(e.consume(g),m):T(g)}function V(g){return g===47?(e.consume(g),i="",X):T(g)}function X(g){if(g===62){const te=i.toLowerCase();return Ut.includes(te)?(e.consume(g),ee):T(g)}return Y(g)&&i.length<8?(e.consume(g),i+=String.fromCharCode(g),X):T(g)}function ae(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),ee):g===45&&l===2?(e.consume(g),m):T(g)}function ee(g){return g===null||z(g)?(e.exit("htmlFlowData"),ue(g)):(e.consume(g),ee)}function ue(g){return e.exit("htmlFlow"),n(g)}}function Gi(e,n,t){const r=this;return l;function l(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),a):t(i)}function a(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}function Xi(e,n,t){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Le,n,t)}}const el={name:"htmlText",tokenize:tl};function tl(e,n,t){const r=this;let l,a,i;return u;function u(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),o}function o(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),B):m===63?(e.consume(m),S):Y(m)?(e.consume(m),q):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),a=0,d):Y(m)?(e.consume(m),E):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):z(m)?(i=c,V(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?W(m):m===45?p(m):c(m)}function d(m){const ee="CDATA[";return m===ee.charCodeAt(a++)?(e.consume(m),a===ee.length?C:d):t(m)}function C(m){return m===null?t(m):m===93?(e.consume(m),I):z(m)?(i=C,V(m)):(e.consume(m),C)}function I(m){return m===93?(e.consume(m),b):C(m)}function b(m){return m===62?W(m):m===93?(e.consume(m),b):C(m)}function E(m){return m===null||m===62?W(m):z(m)?(i=E,V(m)):(e.consume(m),E)}function S(m){return m===null?t(m):m===63?(e.consume(m),L):z(m)?(i=S,V(m)):(e.consume(m),S)}function L(m){return m===62?W(m):S(m)}function B(m){return Y(m)?(e.consume(m),y):t(m)}function y(m){return m===45||Q(m)?(e.consume(m),y):_(m)}function _(m){return z(m)?(i=_,V(m)):N(m)?(e.consume(m),_):W(m)}function q(m){return m===45||Q(m)?(e.consume(m),q):m===47||m===62||j(m)?R(m):t(m)}function R(m){return m===47?(e.consume(m),W):m===58||m===95||Y(m)?(e.consume(m),k):z(m)?(i=R,V(m)):N(m)?(e.consume(m),R):W(m)}function k(m){return m===45||m===46||m===58||m===95||Q(m)?(e.consume(m),k):A(m)}function A(m){return m===61?(e.consume(m),T):z(m)?(i=A,V(m)):N(m)?(e.consume(m),A):R(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),l=m,v):z(m)?(i=T,V(m)):N(m)?(e.consume(m),T):(e.consume(m),H)}function v(m){return m===l?(e.consume(m),l=void 0,O):m===null?t(m):z(m)?(i=v,V(m)):(e.consume(m),v)}function H(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||j(m)?R(m):(e.consume(m),H)}function O(m){return m===47||m===62||j(m)?R(m):t(m)}function W(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function V(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),X}function X(m){return N(m)?D(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ae(m)}function ae(m){return e.enter("htmlTextData"),i(m)}}const Ct={name:"labelEnd",resolveAll:ll,resolveTo:al,tokenize:ul},nl={tokenize:ol},rl={tokenize:sl},il={tokenize:cl};function ll(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const l=r.type==="labelImage"?4:2;r.type="data",n+=l}}return e.length!==t.length&&Z(e,0,e.length,t),e}function al(e,n){let t=e.length,r=0,l,a,i,u;for(;t--;)if(l=e[t][1],a){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[t][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(i){if(e[t][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(a=t,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(i=t);const o={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[a][1].start},end:{...e[i][1].end}},f={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[i-2][1].start}};return u=[["enter",o,n],["enter",s,n]],u=G(u,e.slice(a+1,a+r+3)),u=G(u,[["enter",f,n]]),u=G(u,Qe(n.parser.constructs.insideSpan.null,e.slice(a+r+4,i-3),n)),u=G(u,[["exit",f,n],e[i-2],e[i-1],["exit",s,n]]),u=G(u,e.slice(i+1)),u=G(u,[["exit",o,n]]),Z(e,a,e.length,u),e}function ul(e,n,t){const r=this;let l=r.events.length,a,i;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){a=r.events[l][1];break}return u;function u(p){return a?a._inactive?c(p):(i=r.parser.defined.includes(ie(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),o):t(p)}function o(p){return p===40?e.attempt(nl,f,i?f:c)(p):p===91?e.attempt(rl,f,i?s:c)(p):i?f(p):c(p)}function s(p){return e.attempt(il,f,c)(p)}function f(p){return n(p)}function c(p){return a._balanced=!0,t(p)}}function ol(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),l}function l(c){return j(c)?Fe(e,a)(c):a(c)}function a(c){return c===41?f(c):zn(e,i,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return j(c)?Fe(e,o)(c):f(c)}function u(c){return t(c)}function o(c){return c===34||c===39||c===40?Nn(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return j(c)?Fe(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function sl(e,n,t){const r=this;return l;function l(u){return Fn.call(r,e,a,i,"reference","referenceMarker","referenceString")(u)}function a(u){return r.parser.defined.includes(ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):t(u)}function i(u){return t(u)}}function cl(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),l}function l(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}const fl={name:"labelStartImage",resolveAll:Ct.resolveAll,tokenize:hl};function hl(e,n,t){const r=this;return l;function l(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),i):t(u)}function i(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(u):n(u)}}const pl={name:"labelStartLink",resolveAll:Ct.resolveAll,tokenize:ml};function ml(e,n,t){const r=this;return l;function l(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(i):n(i)}}const et={name:"lineEnding",tokenize:gl};function gl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),D(e,n,"linePrefix")}}const je={name:"thematicBreak",tokenize:dl};function dl(e,n,t){let r=0,l;return a;function a(s){return e.enter("thematicBreak"),i(s)}function i(s){return l=s,u(s)}function u(s){return s===l?(e.enter("thematicBreakSequence"),o(s)):r>=3&&(s===null||z(s))?(e.exit("thematicBreak"),n(s)):t(s)}function o(s){return s===l?(e.consume(s),r++,o):(e.exit("thematicBreakSequence"),N(s)?D(e,u,"whitespace")(s):u(s))}}const J={continuation:{tokenize:bl},exit:Cl,name:"list",tokenize:yl},kl={partial:!0,tokenize:Sl},xl={partial:!0,tokenize:wl};function yl(e,n,t){const r=this,l=r.events[r.events.length-1];let a=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,i=0;return u;function u(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:ft(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(je,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(h)}return t(h)}function o(h){return ft(h)&&++i<10?(e.consume(h),o):(!r.interrupt||i<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Le,r.interrupt?t:f,e.attempt(kl,p,c))}function f(h){return r.containerState.initialBlankLine=!0,a++,p(h)}function c(h){return N(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function bl(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Le,l,a);function l(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,D(e,n,"listItemIndent",r.containerState.size+1)(u)}function a(u){return r.containerState.furtherBlankLines||!N(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(xl,n,i)(u))}function i(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,D(e,e.attempt(J,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function wl(e,n,t){const r=this;return D(e,l,"listItemIndent",r.containerState.size+1);function l(a){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?n(a):t(a)}}function Cl(e){e.exit(this.containerState.type)}function Sl(e,n,t){const r=this;return D(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(a){const i=r.events[r.events.length-1];return!N(a)&&i&&i[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const Wt={name:"setextUnderline",resolveTo:Il,tokenize:El};function Il(e,n){let t=e.length,r,l,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(l=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const i={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",a?(e.splice(l,0,["enter",i,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end={...e[a][1].end}):e[r][1]=i,e.push(["exit",i,n]),e}function El(e,n,t){const r=this;let l;return a;function a(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),l=s,i(s)):t(s)}function i(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===l?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),N(s)?D(e,o,"lineSuffix")(s):o(s))}function o(s){return s===null||z(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const Al={tokenize:Tl};function Tl(e){const n=this,t=e.attempt(Le,r,e.attempt(this.parser.constructs.flowInitial,l,D(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Di,l)),"linePrefix")));return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function l(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const zl={resolveAll:Dn()},Fl=Pn("string"),Nl=Pn("text");function Pn(e){return{resolveAll:Dn(e==="text"?Pl:void 0),tokenize:n};function n(t){const r=this,l=this.parser.constructs[e],a=t.attempt(l,i,u);return i;function i(f){return s(f)?a(f):u(f)}function u(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),o}function o(f){return s(f)?(t.exit("data"),a(f)):(t.consume(f),o)}function s(f){if(f===null)return!0;const c=l[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Dn(e){return n;function n(t,r){let l=-1,a;for(;++l<=t.length;)a===void 0?t[l]&&t[l][1].type==="data"&&(a=l,l++):(!t[l]||t[l][1].type!=="data")&&(l!==a+2&&(t[a][1].end=t[l-1][1].end,t.splice(a+2,l-a-2),l=a+2),a=void 0);return e?e(t,r):t}}function Pl(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],l=n.sliceStream(r);let a=l.length,i=-1,u=0,o;for(;a--;){const s=l[a];if(typeof s=="string"){for(i=s.length;s.charCodeAt(i-1)===32;)u++,i--;if(i)break;i=-1}else if(s===-2)o=!0,u++;else if(s!==-1){a++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(u=0),u){const s={type:t===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?i:r.start._bufferIndex+i,_index:r.start._index+a,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const Dl={42:J,43:J,45:J,48:J,49:J,50:J,51:J,52:J,53:J,54:J,55:J,56:J,57:J,62:In},Ll={91:Ri},_l={[-2]:Xe,[-1]:Xe,32:Xe},Ol={35:$i,42:je,45:[Wt,je],60:Qi,61:Wt,95:je,96:Vt,126:Vt},Bl={38:An,92:En},Rl={[-5]:et,[-4]:et,[-3]:et,33:fl,38:An,42:ht,60:[pi,el],91:pl,92:[qi,En],93:Ct,95:ht,96:Ai},vl={null:[ht,zl]},Ml={null:[42,95]},jl={null:[]},ql=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ml,contentInitial:Ll,disable:jl,document:Dl,flow:Ol,flowInitial:_l,insideSpan:vl,string:Bl,text:Rl},Symbol.toStringTag,{value:"Module"}));function Hl(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const l={},a=[];let i=[],u=[];const o={attempt:_(B),check:_(y),consume:E,enter:S,exit:L,interrupt:_(y,{interrupt:!0})},s={code:null,containerState:{},defineSkip:C,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,o);return n.resolveAll&&a.push(n),s;function c(A){return i=G(i,A),I(),i[i.length-1]!==null?[]:(q(n,0),s.events=Qe(a,s.events,s),s.events)}function p(A,T){return Vl(h(A),T)}function h(A){return $l(i,A)}function d(){const{_bufferIndex:A,_index:T,line:v,column:H,offset:O}=r;return{_bufferIndex:A,_index:T,line:v,column:H,offset:O}}function C(A){l[A.line]=A.column,k()}function I(){let A;for(;r._index<i.length;){const T=i[r._index];if(typeof T=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<T.length;)b(T.charCodeAt(r._bufferIndex));else b(T)}}function b(A){f=f(A)}function E(A){z(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,k()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=A}function S(A,T){const v=T||{};return v.type=A,v.start=d(),s.events.push(["enter",v,s]),u.push(v),v}function L(A){const T=u.pop();return T.end=d(),s.events.push(["exit",T,s]),T}function B(A,T){q(A,T.from)}function y(A,T){T.restore()}function _(A,T){return v;function v(H,O,W){let V,X,ae,m;return Array.isArray(H)?ue(H):"tokenize"in H?ue([H]):ee(H);function ee(U){return Ee;function Ee(fe){const xe=fe!==null&&U[fe],ye=fe!==null&&U.null,_e=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return ue(_e)(fe)}}function ue(U){return V=U,X=0,U.length===0?W:g(U[X])}function g(U){return Ee;function Ee(fe){return m=R(),ae=U,U.partial||(s.currentConstruct=U),U.name&&s.parser.constructs.disable.null.includes(U.name)?me():U.tokenize.call(T?Object.assign(Object.create(s),T):s,o,te,me)(fe)}}function te(U){return A(ae,m),O}function me(U){return m.restore(),++X<V.length?g(V[X]):W}}}function q(A,T){A.resolveAll&&!a.includes(A)&&a.push(A),A.resolve&&Z(s.events,T,s.events.length-T,A.resolve(s.events.slice(T),s)),A.resolveTo&&(s.events=A.resolveTo(s.events,s))}function R(){const A=d(),T=s.previous,v=s.currentConstruct,H=s.events.length,O=Array.from(u);return{from:H,restore:W};function W(){r=A,s.previous=T,s.currentConstruct=v,s.events.length=H,u=O,k()}}function k(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function $l(e,n){const t=n.start._index,r=n.start._bufferIndex,l=n.end._index,a=n.end._bufferIndex;let i;if(t===l)i=[e[t].slice(r,a)];else{if(i=e.slice(t,l),r>-1){const u=i[0];typeof u=="string"?i[0]=u.slice(r):i.shift()}a>0&&i.push(e[l].slice(0,a))}return i}function Vl(e,n){let t=-1;const r=[];let l;for(;++t<e.length;){const a=e[t];let i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
|
|
2
|
+
`;break}case-3:{i=`\r
|
|
3
|
+
`;break}case-2:{i=n?" ":" ";break}case-1:{if(!n&&l)continue;i=" ";break}default:i=String.fromCharCode(a)}l=a===-2,r.push(i)}return r.join("")}function Ul(e){const r={constructs:Cn([ql,...(e||{}).extensions||[]]),content:l(ai),defined:[],document:l(oi),flow:l(Al),lazy:{},string:l(Fl),text:l(Nl)};return r;function l(a){return i;function i(u){return Hl(r,a,u)}}}function Wl(e){for(;!Tn(e););return e}const Qt=/[\0\t\n\r]/g;function Ql(){let e=1,n="",t=!0,r;return l;function l(a,i,u){const o=[];let s,f,c,p,h;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(i||void 0).decode(a)),c=0,n="",t&&(a.charCodeAt(0)===65279&&c++,t=void 0);c<a.length;){if(Qt.lastIndex=c,s=Qt.exec(a),p=s&&s.index!==void 0?s.index:a.length,h=a.charCodeAt(p),!s){n=a.slice(c);break}if(h===10&&c===p&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),c<p&&(o.push(a.slice(c,p)),e+=p-c),h){case 0:{o.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,o.push(-2);e++<f;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return u&&(r&&o.push(-5),n&&o.push(n),o.push(null)),o}}const Yl=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Jl(e){return e.replace(Yl,Kl)}function Kl(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const l=t.charCodeAt(1),a=l===120||l===88;return Sn(t.slice(a?2:1),a?16:10)}return dt(t)||e}const Ln={}.hasOwnProperty;function Zl(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Gl(t)(Wl(Ul(t).document().write(Ql()(e,n,!0))))}function Gl(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Dt),autolinkProtocol:R,autolinkEmail:R,atxHeading:a(Ft),blockQuote:a(ye),characterEscape:R,characterReference:R,codeFenced:a(_e),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:a(_e,i),codeText:a(hr,i),codeTextData:R,data:R,codeFlowValue:R,definition:a(pr),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:a(mr),hardBreakEscape:a(Nt),hardBreakTrailing:a(Nt),htmlFlow:a(Pt,i),htmlFlowData:R,htmlText:a(Pt,i),htmlTextData:R,image:a(gr),label:i,link:a(Dt),listItem:a(dr),listItemValue:p,listOrdered:a(Lt,c),listUnordered:a(Lt),paragraph:a(kr),reference:g,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:a(Ft),strong:a(xr),thematicBreak:a(br)},exit:{atxHeading:o(),atxHeadingSequence:B,autolink:o(),autolinkEmail:xe,autolinkProtocol:fe,blockQuote:o(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:U,characterReference:Ee,codeFenced:o(I),codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:o(b),codeText:o(O),codeTextData:k,data:k,definition:o(),definitionDestinationString:L,definitionLabelString:E,definitionTitleString:S,emphasis:o(),hardBreakEscape:o(T),hardBreakTrailing:o(T),htmlFlow:o(v),htmlFlowData:k,htmlText:o(H),htmlTextData:k,image:o(V),label:ae,labelText:X,lineEnding:A,link:o(W),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:te,resourceDestinationString:m,resourceTitleString:ee,resource:ue,setextHeading:o(q),setextHeadingLineSequence:_,setextHeadingText:y,strong:o(),thematicBreak:o()}};_n(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(x){let w={type:"root",children:[]};const F={stack:[w],tokenStack:[],config:n,enter:u,exit:s,buffer:i,resume:f,data:t},P=[];let M=-1;for(;++M<x.length;)if(x[M][1].type==="listOrdered"||x[M][1].type==="listUnordered")if(x[M][0]==="enter")P.push(M);else{const ne=P.pop();M=l(x,ne,M)}for(M=-1;++M<x.length;){const ne=n[x[M][0]];Ln.call(ne,x[M][1].type)&&ne[x[M][1].type].call(Object.assign({sliceSerialize:x[M][2].sliceSerialize},F),x[M][1])}if(F.tokenStack.length>0){const ne=F.tokenStack[F.tokenStack.length-1];(ne[1]||Yt).call(F,void 0,ne[0])}for(w.position={start:he(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:he(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},M=-1;++M<n.transforms.length;)w=n.transforms[M](w)||w;return w}function l(x,w,F){let P=w-1,M=-1,ne=!1,ge,oe,Ae,Te;for(;++P<=F;){const K=x[P];switch(K[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{K[0]==="enter"?M++:M--,Te=void 0;break}case"lineEndingBlank":{K[0]==="enter"&&(ge&&!Te&&!M&&!Ae&&(Ae=P),Te=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Te=void 0}if(!M&&K[0]==="enter"&&K[1].type==="listItemPrefix"||M===-1&&K[0]==="exit"&&(K[1].type==="listUnordered"||K[1].type==="listOrdered")){if(ge){let be=P;for(oe=void 0;be--;){const se=x[be];if(se[1].type==="lineEnding"||se[1].type==="lineEndingBlank"){if(se[0]==="exit")continue;oe&&(x[oe][1].type="lineEndingBlank",ne=!0),se[1].type="lineEnding",oe=be}else if(!(se[1].type==="linePrefix"||se[1].type==="blockQuotePrefix"||se[1].type==="blockQuotePrefixWhitespace"||se[1].type==="blockQuoteMarker"||se[1].type==="listItemIndent"))break}Ae&&(!oe||Ae<oe)&&(ge._spread=!0),ge.end=Object.assign({},oe?x[oe][1].start:K[1].end),x.splice(oe||P,0,["exit",ge,K[2]]),P++,F++}if(K[1].type==="listItemPrefix"){const be={type:"listItem",_spread:!1,start:Object.assign({},K[1].start),end:void 0};ge=be,x.splice(P,0,["enter",be,K[2]]),P++,F++,Ae=void 0,Te=!0}}}return x[w][1]._spread=ne,F}function a(x,w){return F;function F(P){u.call(this,x(P),P),w&&w.call(this,P)}}function i(){this.stack.push({type:"fragment",children:[]})}function u(x,w,F){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([w,F||void 0]),x.position={start:he(w.start),end:void 0}}function o(x){return w;function w(F){x&&x.call(this,F),s.call(this,F)}}function s(x,w){const F=this.stack.pop(),P=this.tokenStack.pop();if(P)P[0].type!==x.type&&(w?w.call(this,x,P[0]):(P[1]||Yt).call(this,x,P[0]));else throw new Error("Cannot close `"+x.type+"` ("+Me({start:x.start,end:x.end})+"): it’s not open");F.position.end=he(x.end)}function f(){return wt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(x){if(this.data.expectingFirstListItemValue){const w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function h(){const x=this.resume(),w=this.stack[this.stack.length-1];w.lang=x}function d(){const x=this.resume(),w=this.stack[this.stack.length-1];w.meta=x}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const x=this.resume(),w=this.stack[this.stack.length-1];w.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const x=this.resume(),w=this.stack[this.stack.length-1];w.value=x.replace(/(\r?\n|\r)$/g,"")}function E(x){const w=this.resume(),F=this.stack[this.stack.length-1];F.label=w,F.identifier=ie(this.sliceSerialize(x)).toLowerCase()}function S(){const x=this.resume(),w=this.stack[this.stack.length-1];w.title=x}function L(){const x=this.resume(),w=this.stack[this.stack.length-1];w.url=x}function B(x){const w=this.stack[this.stack.length-1];if(!w.depth){const F=this.sliceSerialize(x).length;w.depth=F}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function _(x){const w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function R(x){const F=this.stack[this.stack.length-1].children;let P=F[F.length-1];(!P||P.type!=="text")&&(P=yr(),P.position={start:he(x.start),end:void 0},F.push(P)),this.stack.push(P)}function k(x){const w=this.stack.pop();w.value+=this.sliceSerialize(x),w.position.end=he(x.end)}function A(x){const w=this.stack[this.stack.length-1];if(this.data.atHardBreak){const F=w.children[w.children.length-1];F.position.end=he(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(R.call(this,x),k.call(this,x))}function T(){this.data.atHardBreak=!0}function v(){const x=this.resume(),w=this.stack[this.stack.length-1];w.value=x}function H(){const x=this.resume(),w=this.stack[this.stack.length-1];w.value=x}function O(){const x=this.resume(),w=this.stack[this.stack.length-1];w.value=x}function W(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=w,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function V(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const w=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=w,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function X(x){const w=this.sliceSerialize(x),F=this.stack[this.stack.length-2];F.label=Jl(w),F.identifier=ie(w).toLowerCase()}function ae(){const x=this.stack[this.stack.length-1],w=this.resume(),F=this.stack[this.stack.length-1];if(this.data.inReference=!0,F.type==="link"){const P=x.children;F.children=P}else F.alt=w}function m(){const x=this.resume(),w=this.stack[this.stack.length-1];w.url=x}function ee(){const x=this.resume(),w=this.stack[this.stack.length-1];w.title=x}function ue(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function te(x){const w=this.resume(),F=this.stack[this.stack.length-1];F.label=w,F.identifier=ie(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function me(x){this.data.characterReferenceType=x.type}function U(x){const w=this.sliceSerialize(x),F=this.data.characterReferenceType;let P;F?(P=Sn(w,F==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):P=dt(w);const M=this.stack[this.stack.length-1];M.value+=P}function Ee(x){const w=this.stack.pop();w.position.end=he(x.end)}function fe(x){k.call(this,x);const w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(x)}function xe(x){k.call(this,x);const w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(x)}function ye(){return{type:"blockquote",children:[]}}function _e(){return{type:"code",lang:null,meta:null,value:""}}function hr(){return{type:"inlineCode",value:""}}function pr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function mr(){return{type:"emphasis",children:[]}}function Ft(){return{type:"heading",depth:0,children:[]}}function Nt(){return{type:"break"}}function Pt(){return{type:"html",value:""}}function gr(){return{type:"image",title:null,url:"",alt:null}}function Dt(){return{type:"link",title:null,url:"",children:[]}}function Lt(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function dr(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function kr(){return{type:"paragraph",children:[]}}function xr(){return{type:"strong",children:[]}}function yr(){return{type:"text",value:""}}function br(){return{type:"thematicBreak"}}}function he(e){return{line:e.line,column:e.column,offset:e.offset}}function _n(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?_n(e,r):Xl(e,r)}}function Xl(e,n){let t;for(t in n)if(Ln.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Yt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Me({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Me({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Me({start:n.start,end:n.end})+") is still open")}function ea(e){const n=this;n.parser=t;function t(r){return Zl(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function ta(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function na(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
4
|
+
`}]}function ra(e,n){const t=n.value?n.value+`
|
|
5
|
+
`:"",r={},l=n.lang?n.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function ia(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function la(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function aa(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),l=Ie(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+1,u+=1,e.footnoteCounts.set(r,u);const o={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+l,id:t+"fnref-"+l+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(n,o);const s={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(n,s),e.applyData(n,s)}function ua(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function oa(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function On(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const l=e.all(n),a=l[0];a&&a.type==="text"?a.value="["+a.value:l.unshift({type:"text",value:"["});const i=l[l.length-1];return i&&i.type==="text"?i.value+=r:l.push({type:"text",value:r}),l}function sa(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return On(e,n);const l={src:Ie(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,a),e.applyData(n,a)}function ca(e,n){const t={src:Ie(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function fa(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function ha(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return On(e,n);const l={href:Ie(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function pa(e,n){const t={href:Ie(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function ma(e,n,t){const r=e.all(n),l=t?ga(t):Bn(n),a={},i=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(l||u!==0||f.type!=="element"||f.tagName!=="p")&&i.push({type:"text",value:`
|
|
6
|
+
`}),f.type==="element"&&f.tagName==="p"&&!l?i.push(...f.children):i.push(f)}const o=r[r.length-1];o&&(l||o.type!=="element"||o.tagName!=="p")&&i.push({type:"text",value:`
|
|
7
|
+
`});const s={type:"element",tagName:"li",properties:a,children:i};return e.patch(n,s),e.applyData(n,s)}function ga(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Bn(t[r])}return n}function Bn(e){const n=e.spread;return n??e.children.length>1}function da(e,n){const t={},r=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++l<r.length;){const i=r[l];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function ka(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function xa(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function ya(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ba(e,n){const t=e.all(n),r=t.shift(),l=[];if(r){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],i),l.push(i)}if(t.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=kt(n.children[1]),o=gn(n.children[n.children.length-1]);u&&o&&(i.position={start:u,end:o}),l.push(i)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(n,a),e.applyData(n,a)}function wa(e,n,t){const r=t?t.children:void 0,a=(r?r.indexOf(n):1)===0?"th":"td",i=t&&t.type==="table"?t.align:void 0,u=i?i.length:n.children.length;let o=-1;const s=[];for(;++o<u;){const c=n.children[o],p={},h=i?i[o]:void 0;h&&(p.align=h);let d={type:"element",tagName:a,properties:p,children:[]};c&&(d.children=e.all(c),e.patch(c,d),d=e.applyData(c,d)),s.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function Ca(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Sa(e,n){const t={type:"text",value:Cr(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Ia(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Ea={blockquote:ta,break:na,code:ra,delete:ia,emphasis:la,footnoteReference:aa,heading:ua,html:oa,imageReference:sa,image:ca,inlineCode:fa,linkReference:ha,link:pa,listItem:ma,list:da,paragraph:ka,root:xa,strong:ya,table:ba,tableCell:Ca,tableRow:wa,text:Sa,thematicBreak:Ia,toml:Oe,yaml:Oe,definition:Oe,footnoteDefinition:Oe};function Oe(){}function Aa(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Ta(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function za(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Aa,r=e.options.footnoteBackLabel||Ta,l=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let o=-1;for(;++o<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[o]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=Ie(c.toLowerCase());let h=0;const d=[],C=e.footnoteCounts.get(c);for(;C!==void 0&&++h<=C;){d.length>0&&d.push({type:"text",value:" "});let E=typeof t=="string"?t:t(o,h);typeof E=="string"&&(E={type:"text",value:E}),d.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,h),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const I=f[f.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const E=I.children[I.children.length-1];E&&E.type==="text"?E.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...d)}else f.push(...d);const b={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,b),u.push(b)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...qe(i),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
8
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
9
|
+
`}]}}const Ye=(function(e){if(e==null)return Da;if(typeof e=="function")return Je(e);if(typeof e=="object")return Array.isArray(e)?Fa(e):Na(e);if(typeof e=="string")return Pa(e);throw new Error("Expected function, string, or object as test")});function Fa(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Ye(e[t]);return Je(r);function r(...l){let a=-1;for(;++a<n.length;)if(n[a].apply(this,l))return!0;return!1}}function Na(e){const n=e;return Je(t);function t(r){const l=r;let a;for(a in e)if(l[a]!==n[a])return!1;return!0}}function Pa(e){return Je(n);function n(t){return t&&t.type===e}}function Je(e){return n;function n(t,r,l){return!!(La(t)&&e.call(this,t,typeof r=="number"?r:void 0,l||void 0))}}function Da(){return!0}function La(e){return e!==null&&typeof e=="object"&&"type"in e}const Rn=[],_a=!0,pt=!1,Oa="skip";function vn(e,n,t,r){let l;typeof n=="function"&&typeof t!="function"?(r=t,t=n):l=n;const a=Ye(l),i=r?-1:1;u(e,void 0,[])();function u(o,s,f){const c=o&&typeof o=="object"?o:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(o.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Rn,d,C,I;if((!n||a(o,s,f[f.length-1]||void 0))&&(h=Ba(t(o,f)),h[0]===pt))return h;if("children"in o&&o.children){const b=o;if(b.children&&h[0]!==Oa)for(C=(r?b.children.length:-1)+i,I=f.concat(b);C>-1&&C<b.children.length;){const E=b.children[C];if(d=u(E,C,I)(),d[0]===pt)return d;C=typeof d[1]=="number"?d[1]:C+i}}return h}}}function Ba(e){return Array.isArray(e)?e:typeof e=="number"?[_a,e]:e==null?Rn:[e]}function St(e,n,t,r){let l,a,i;typeof n=="function"&&typeof t!="function"?(a=void 0,i=n,l=t):(a=n,i=t,l=r),vn(e,a,u,l);function u(o,s){const f=s[s.length-1],c=f?f.children.indexOf(o):void 0;return i(o,c,f)}}const mt={}.hasOwnProperty,Ra={};function va(e,n){const t=n||Ra,r=new Map,l=new Map,a=new Map,i={...Ea,...t.handlers},u={all:s,applyData:ja,definitionById:r,footnoteById:l,footnoteCounts:a,footnoteOrder:[],handlers:i,one:o,options:t,patch:Ma,wrap:Ha};return St(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:l,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),u;function o(f,c){const p=f.type,h=u.handlers[p];if(mt.call(u.handlers,p)&&h)return h(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in f){const{children:C,...I}=f,b=qe(I);return b.children=u.all(f),b}return qe(f)}return(u.options.unknownHandler||qa)(u,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=u.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=Jt(d.value)),!Array.isArray(d)&&d.type==="element")){const C=d.children[0];C&&C.type==="text"&&(C.value=Jt(C.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function Ma(e,n){e.position&&(n.position=Dr(e))}function ja(e,n){let t=n;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const i="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:i}}t.type==="element"&&a&&Object.assign(t.properties,qe(a)),"children"in t&&t.children&&l!==null&&l!==void 0&&(t.children=l)}return t}function qa(e,n){const t=n.data||{},r="value"in n&&!(mt.call(t,"hProperties")||mt.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ha(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
10
|
+
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
11
|
+
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
12
|
+
`}),t}function Jt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Kt(e,n){const t=va(e,n),r=t.one(e,void 0),l=za(t),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&a.children.push({type:"text",value:`
|
|
13
|
+
`},l),a}function $a(e,n){return e&&"run"in e?async function(t,r){const l=Kt(t,{file:r,...n});await e.run(l,r)}:function(t,r){return Kt(t,{file:r,...e||n})}}const Va=(function(e){const r=this.constructor.prototype,l=r[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Ua={}.hasOwnProperty;class It extends Va{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Sr()}copy(){const n=new It;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Ke(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(rt("data",this.frozen),this.namespace[n]=t,this):Ua.call(this.namespace,n)&&this.namespace[n]||void 0:n?(rt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=t.call(n,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Be(n),r=this.parser||this.Parser;return tt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),tt("process",this.parser||this.Parser),nt("process",this.compiler||this.Compiler),t?l(void 0,t):new Promise(l);function l(a,i){const u=Be(n),o=r.parse(u);r.run(o,u,function(f,c,p){if(f||!c||!p)return s(f);const h=c,d=r.stringify(h,p);Ya(d)?p.value=d:p.result=d,s(f,p)});function s(f,c){f||!c?i(f):a?a(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),tt("processSync",this.parser||this.Parser),nt("processSync",this.compiler||this.Compiler),this.process(n,l),Gt("processSync","process",t),r;function l(a,i){t=!0,Ot(a),r=i}}run(n,t,r){Zt(n),this.freeze();const l=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(i,u){const o=Be(t);l.run(n,o,s);function s(f,c,p){const h=c||n;f?u(f):i?i(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,l;return this.run(n,t,a),Gt("runSync","run",r),l;function a(i,u){Ot(i),l=u,r=!0}}stringify(n,t){this.freeze();const r=Be(t),l=this.compiler||this.Compiler;return nt("stringify",l),Zt(n),l(n,r)}use(n,...t){const r=this.attachers,l=this.namespace;if(rt("use",this.frozen),n!=null)if(typeof n=="function")o(n,t);else if(typeof n=="object")Array.isArray(n)?u(n):i(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(s){if(typeof s=="function")o(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;o(f,c)}else i(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function i(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(s.plugins),s.settings&&(l.settings=Ke(!0,l.settings,s.settings))}function u(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];a(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function o(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...d]=f;const C=r[p][1];st(C)&&st(h)&&(h=Ke(!0,C,h)),r[p]=[s,h,...d]}}}}const Wa=new It().freeze();function tt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function nt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function rt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Zt(e){if(!st(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Gt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Be(e){return Qa(e)?e:new mn(e)}function Qa(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ya(e){return typeof e=="string"||Ja(e)}function Ja(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ka="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xt=[],en={allowDangerousHtml:!0},Za=/^(https?|ircs?|mailto|xmpp)$/i,Ga=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ys(e){const n=Xa(e),t=eu(e);return tu(n.runSync(n.parse(t),t),e)}function Xa(e){const n=e.rehypePlugins||Xt,t=e.remarkPlugins||Xt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...en}:en;return Wa().use(ea).use(t).use($a,r).use(n)}function eu(e){const n=e.children||"",t=new mn;return typeof n=="string"&&(t.value=n),t}function tu(e,n){const t=n.allowedElements,r=n.allowElement,l=n.components,a=n.disallowedElements,i=n.skipHtml,u=n.unwrapDisallowed,o=n.urlTransform||nu;for(const f of Ga)Object.hasOwn(n,f.from)&&Ir("Unexpected `"+f.from+"` prop, "+(f.to?"use `"+f.to+"` instead":"remove it")+" (see <"+Ka+"#"+f.id+"> for more info)");return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),St(e,s),Rr(e,{Fragment:Ge.Fragment,components:l,ignoreInvalidStyle:!0,jsx:Ge.jsx,jsxs:Ge.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return i?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Ze)if(Object.hasOwn(Ze,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],C=Ze[h];(C===null||C.includes(f.tagName))&&(f.properties[h]=o(String(d||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):a?a.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function nu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||t!==-1&&n>t||r!==-1&&n>r||Za.test(e.slice(0,n))?e:""}function ru(e,n,t){const l=Ye((t||{}).ignore||[]),a=iu(n);let i=-1;for(;++i<a.length;)vn(e,"text",u);function u(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],d=p?p.children:void 0;if(l(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return o(s,f)}function o(s,f){const c=f[f.length-1],p=a[i][0],h=a[i][1];let d=0;const I=c.children.indexOf(s);let b=!1,E=[];p.lastIndex=0;let S=p.exec(s.value);for(;S;){const L=S.index,B={index:S.index,input:S.input,stack:[...f,s]};let y=h(...S,B);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?p.lastIndex=L+1:(d!==L&&E.push({type:"text",value:s.value.slice(d,L)}),Array.isArray(y)?E.push(...y):y&&E.push(y),d=L+S[0].length,b=!0),!p.global)break;S=p.exec(s.value)}return b?(d<s.value.length&&E.push({type:"text",value:s.value.slice(d)}),c.children.splice(I,1,...E)):E=[s],I+E.length}}function iu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const l=t[r];n.push([lu(l[0]),au(l[1])])}return n}function lu(e){return typeof e=="string"?new RegExp(Er(e),"g"):e}function au(e){return typeof e=="function"?e:function(){return e}}const it="phrasing",lt=["autolink","link","image","label"];function uu(){return{transforms:[mu],enter:{literalAutolink:su,literalAutolinkEmail:at,literalAutolinkHttp:at,literalAutolinkWww:at},exit:{literalAutolink:pu,literalAutolinkEmail:hu,literalAutolinkHttp:cu,literalAutolinkWww:fu}}}function ou(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:it,notInConstruct:lt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:it,notInConstruct:lt},{character:":",before:"[ps]",after:"\\/",inConstruct:it,notInConstruct:lt}]}}function su(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function at(e){this.config.enter.autolinkProtocol.call(this,e)}function cu(e){this.config.exit.autolinkProtocol.call(this,e)}function fu(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];re(n.type==="link"),n.url="http://"+this.sliceSerialize(e)}function hu(e){this.config.exit.autolinkEmail.call(this,e)}function pu(e){this.exit(e)}function mu(e){ru(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gu],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),du]],{ignore:["link","linkReference"]})}function gu(e,n,t,r,l){let a="";if(!Mn(l)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!ku(t)))return!1;const i=xu(t+r);if(!i[0])return!1;const u={type:"link",title:null,url:a+n+i[0],children:[{type:"text",value:n+i[0]}]};return i[1]?[u,{type:"text",value:i[1]}]:u}function du(e,n,t,r){return!Mn(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function ku(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function xu(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const l=He(e,"(");let a=He(e,")");for(;r!==-1&&l>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function Mn(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||ke(t)||We(t))&&(!n||t!==47)}jn.peek=Tu;function yu(){this.buffer()}function bu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wu(){this.buffer()}function Cu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Su(e){const n=this.resume(),t=this.stack[this.stack.length-1];re(t.type==="footnoteReference"),t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Iu(e){this.exit(e)}function Eu(e){const n=this.resume(),t=this.stack[this.stack.length-1];re(t.type==="footnoteDefinition"),t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Au(e){this.exit(e)}function Tu(){return"["}function jn(e,n,t,r){const l=t.createTracker(r);let a=l.move("[^");const i=t.enter("footnoteReference"),u=t.enter("reference");return a+=l.move(t.safe(t.associationId(e),{after:"]",before:a})),u(),i(),a+=l.move("]"),a}function zu(){return{enter:{gfmFootnoteCallString:yu,gfmFootnoteCall:bu,gfmFootnoteDefinitionLabelString:wu,gfmFootnoteDefinition:Cu},exit:{gfmFootnoteCallString:Su,gfmFootnoteCall:Iu,gfmFootnoteDefinitionLabelString:Eu,gfmFootnoteDefinition:Au}}}function Fu(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:jn},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,l,a,i){const u=a.createTracker(i);let o=u.move("[^");const s=a.enter("footnoteDefinition"),f=a.enter("label");return o+=u.move(a.safe(a.associationId(r),{before:o,after:"]"})),f(),o+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),o+=u.move((n?`
|
|
14
|
+
`:" ")+a.indentLines(a.containerFlow(r,u.current()),n?qn:Nu))),s(),o}}function Nu(e,n,t){return n===0?e:qn(e,n,t)}function qn(e,n,t){return(t?"":" ")+e}const Pu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Hn.peek=Bu;function Du(){return{canContainEols:["delete"],enter:{strikethrough:_u},exit:{strikethrough:Ou}}}function Lu(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Pu}],handlers:{delete:Hn}}}function _u(e){this.enter({type:"delete",children:[]},e)}function Ou(e){this.exit(e)}function Hn(e,n,t,r){const l=t.createTracker(r),a=t.enter("strikethrough");let i=l.move("~~");return i+=t.containerPhrasing(e,{...l.current(),before:i,after:"~"}),i+=l.move("~~"),a(),i}function Bu(){return"~"}function Ru(e,n,t,r){const l=t.enter("blockquote"),a=t.createTracker(r);a.move("> "),a.shift(2);const i=t.indentLines(t.containerFlow(e,a.current()),vu);return l(),i}function vu(e,n,t){return">"+(t?"":" ")+e}function Mu(e,n){return tn(e,n.inConstruct,!0)&&!tn(e,n.notInConstruct,!1)}function tn(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function nn(e,n,t,r){let l=-1;for(;++l<t.unsafe.length;)if(t.unsafe[l].character===`
|
|
15
|
+
`&&Mu(t.stack,t.unsafe[l]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
16
|
+
`}function ju(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function qu(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Hu(e,n,t,r){const l=qu(t),a=e.value||"",i=l==="`"?"GraveAccent":"Tilde";if(ju(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(a,$u);return c(),p}const u=t.createTracker(r),o=l.repeat(Math.max(Ar(a,l)+1,3)),s=t.enter("codeFenced");let f=u.move(o);if(e.lang){const c=t.enter(`codeFencedLang${i}`);f+=u.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${i}`);f+=u.move(" "),f+=u.move(t.safe(e.meta,{before:f,after:`
|
|
17
|
+
`,encode:["`"],...u.current()})),c()}return f+=u.move(`
|
|
18
|
+
`),a&&(f+=u.move(a+`
|
|
19
|
+
`)),f+=u.move(o),s(),f}function $u(e,n,t){return(t?"":" ")+e}function Et(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Vu(e,n,t,r){const l=Et(t),a=l==='"'?"Quote":"Apostrophe",i=t.enter("definition");let u=t.enter("label");const o=t.createTracker(r);let s=o.move("[");return s+=o.move(t.safe(t.associationId(e),{before:s,after:"]",...o.current()})),s+=o.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(u=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":`
|
|
20
|
+
`,...o.current()}))),u(),e.title&&(u=t.enter(`title${a}`),s+=o.move(" "+l),s+=o.move(t.safe(e.title,{before:s,after:l,...o.current()})),s+=o.move(l),u()),i(),s}function Uu(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Pe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ve(e,n,t){const r=Se(e),l=Se(n);return r===void 0?l===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}$n.peek=Wu;function $n(e,n,t,r){const l=Uu(t),a=t.enter("emphasis"),i=t.createTracker(r),u=i.move(l);let o=i.move(t.containerPhrasing(e,{after:l,before:u,...i.current()}));const s=o.charCodeAt(0),f=Ve(r.before.charCodeAt(r.before.length-1),s,l);f.inside&&(o=Pe(s)+o.slice(1));const c=o.charCodeAt(o.length-1),p=Ve(r.after.charCodeAt(0),c,l);p.inside&&(o=o.slice(0,-1)+Pe(c));const h=i.move(l);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+o+h}function Wu(e,n,t){return t.options.emphasis||"*"}function Qu(e,n){let t=!1;return St(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,pt}),!!((!e.depth||e.depth<3)&&wt(e)&&(n.options.setext||t))}function Yu(e,n,t,r){const l=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(r);if(Qu(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...a.current(),before:`
|
|
21
|
+
`,after:`
|
|
22
|
+
`});return c(),f(),p+`
|
|
23
|
+
`+(l===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
24
|
+
`))+1))}const i="#".repeat(l),u=t.enter("headingAtx"),o=t.enter("phrasing");a.move(i+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
|
|
25
|
+
`,...a.current()});return/^[\t ]/.test(s)&&(s=Pe(s.charCodeAt(0))+s.slice(1)),s=s?i+" "+s:i,t.options.closeAtx&&(s+=" "+i),o(),u(),s}Vn.peek=Ju;function Vn(e){return e.value||""}function Ju(){return"<"}Un.peek=Ku;function Un(e,n,t,r){const l=Et(t),a=l==='"'?"Quote":"Apostrophe",i=t.enter("image");let u=t.enter("label");const o=t.createTracker(r);let s=o.move("![");return s+=o.move(t.safe(e.alt,{before:s,after:"]",...o.current()})),s+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(u=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=t.enter(`title${a}`),s+=o.move(" "+l),s+=o.move(t.safe(e.title,{before:s,after:l,...o.current()})),s+=o.move(l),u()),s+=o.move(")"),i(),s}function Ku(){return"!"}Wn.peek=Zu;function Wn(e,n,t,r){const l=e.referenceType,a=t.enter("imageReference");let i=t.enter("label");const u=t.createTracker(r);let o=u.move("![");const s=t.safe(e.alt,{before:o,after:"]",...u.current()});o+=u.move(s+"]["),i();const f=t.stack;t.stack=[],i=t.enter("reference");const c=t.safe(t.associationId(e),{before:o,after:"]",...u.current()});return i(),t.stack=f,a(),l==="full"||!s||s!==c?o+=u.move(c+"]"):l==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function Zu(){return"!"}Qn.peek=Gu;function Qn(e,n,t){let r=e.value||"",l="`",a=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(r);)l+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<t.unsafe.length;){const i=t.unsafe[a],u=t.compilePattern(i);let o;if(i.atBreak)for(;o=u.exec(r);){let s=o.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(o.index+1)}}return l+r+l}function Gu(){return"`"}function Yn(e,n){const t=wt(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Jn.peek=Xu;function Jn(e,n,t,r){const l=Et(t),a=l==='"'?"Quote":"Apostrophe",i=t.createTracker(r);let u,o;if(Yn(e,t)){const f=t.stack;t.stack=[],u=t.enter("autolink");let c=i.move("<");return c+=i.move(t.containerPhrasing(e,{before:c,after:">",...i.current()})),c+=i.move(">"),u(),t.stack=f,c}u=t.enter("link"),o=t.enter("label");let s=i.move("[");return s+=i.move(t.containerPhrasing(e,{before:s,after:"](",...i.current()})),s+=i.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),s+=i.move("<"),s+=i.move(t.safe(e.url,{before:s,after:">",...i.current()})),s+=i.move(">")):(o=t.enter("destinationRaw"),s+=i.move(t.safe(e.url,{before:s,after:e.title?" ":")",...i.current()}))),o(),e.title&&(o=t.enter(`title${a}`),s+=i.move(" "+l),s+=i.move(t.safe(e.title,{before:s,after:l,...i.current()})),s+=i.move(l),o()),s+=i.move(")"),u(),s}function Xu(e,n,t){return Yn(e,t)?"<":"["}Kn.peek=eo;function Kn(e,n,t,r){const l=e.referenceType,a=t.enter("linkReference");let i=t.enter("label");const u=t.createTracker(r);let o=u.move("[");const s=t.containerPhrasing(e,{before:o,after:"]",...u.current()});o+=u.move(s+"]["),i();const f=t.stack;t.stack=[],i=t.enter("reference");const c=t.safe(t.associationId(e),{before:o,after:"]",...u.current()});return i(),t.stack=f,a(),l==="full"||!s||s!==c?o+=u.move(c+"]"):l==="shortcut"?o=o.slice(0,-1):o+=u.move("]"),o}function eo(){return"["}function At(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function to(e){const n=At(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function no(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Zn(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function ro(e,n,t,r){const l=t.enter("list"),a=t.bulletCurrent;let i=e.ordered?no(t):At(t);const u=e.ordered?i==="."?")":".":to(t);let o=n&&t.bulletLastUsed?i===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(o=!0),Zn(t)===i&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(i=u),t.bulletCurrent=i;const s=t.containerFlow(e,r);return t.bulletLastUsed=i,t.bulletCurrent=a,l(),s}function io(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function lo(e,n,t,r){const l=io(t);let a=t.bulletCurrent||At(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let i=a.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(i=Math.ceil(i/4)*4);const u=t.createTracker(r);u.move(a+" ".repeat(i-a.length)),u.shift(i);const o=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,u.current()),f);return o(),s;function f(c,p,h){return p?(h?"":" ".repeat(i))+c:(h?a:a+" ".repeat(i-a.length))+c}}function ao(e,n,t,r){const l=t.enter("paragraph"),a=t.enter("phrasing"),i=t.containerPhrasing(e,r);return a(),l(),i}const uo=Ye(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function oo(e,n,t,r){return(e.children.some(function(i){return uo(i)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function so(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Gn.peek=co;function Gn(e,n,t,r){const l=so(t),a=t.enter("strong"),i=t.createTracker(r),u=i.move(l+l);let o=i.move(t.containerPhrasing(e,{after:l,before:u,...i.current()}));const s=o.charCodeAt(0),f=Ve(r.before.charCodeAt(r.before.length-1),s,l);f.inside&&(o=Pe(s)+o.slice(1));const c=o.charCodeAt(o.length-1),p=Ve(r.after.charCodeAt(0),c,l);p.inside&&(o=o.slice(0,-1)+Pe(c));const h=i.move(l+l);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+o+h}function co(e,n,t){return t.options.strong||"*"}function fo(e,n,t,r){return t.safe(e.value,r)}function ho(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function po(e,n,t){const r=(Zn(t)+(t.options.ruleSpaces?" ":"")).repeat(ho(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Xn={blockquote:Ru,break:nn,code:Hu,definition:Vu,emphasis:$n,hardBreak:nn,heading:Yu,html:Vn,image:Un,imageReference:Wn,inlineCode:Qn,link:Jn,linkReference:Kn,list:ro,listItem:lo,paragraph:ao,root:oo,strong:Gn,text:fo,thematicBreak:po};function mo(){return{enter:{table:go,tableData:rn,tableHeader:rn,tableRow:xo},exit:{codeText:yo,table:ko,tableData:ut,tableHeader:ut,tableRow:ut}}}function go(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function ko(e){this.exit(e),this.data.inTable=void 0}function xo(e){this.enter({type:"tableRow",children:[]},e)}function ut(e){this.exit(e)}function rn(e){this.enter({type:"tableCell",children:[]},e)}function yo(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,bo));const t=this.stack[this.stack.length-1];re(t.type==="inlineCode"),t.value=n,this.exit(e)}function bo(e,n){return n==="|"?n:e}function wo(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,l=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
26
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:i,tableCell:o,tableRow:u}};function i(h,d,C,I){return s(f(h,C,I),h.align)}function u(h,d,C,I){const b=c(h,C,I),E=s([b]);return E.slice(0,E.indexOf(`
|
|
27
|
+
`))}function o(h,d,C,I){const b=C.enter("tableCell"),E=C.enter("phrasing"),S=C.containerPhrasing(h,{...I,before:a,after:a});return E(),b(),S}function s(h,d){return Tr(h,{align:d,alignDelimiters:r,padding:t,stringLength:l})}function f(h,d,C){const I=h.children;let b=-1;const E=[],S=d.enter("table");for(;++b<I.length;)E[b]=c(I[b],d,C);return S(),E}function c(h,d,C){const I=h.children;let b=-1;const E=[],S=d.enter("tableRow");for(;++b<I.length;)E[b]=o(I[b],h,d,C);return S(),E}function p(h,d,C){let I=Xn.inlineCode(h,d,C);return C.stack.includes("tableCell")&&(I=I.replace(/\|/g,"\\$&")),I}}function Co(){return{exit:{taskListCheckValueChecked:ln,taskListCheckValueUnchecked:ln,paragraph:Io}}}function So(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Eo}}}function ln(e){const n=this.stack[this.stack.length-2];re(n.type==="listItem"),n.checked=e.type==="taskListCheckValueChecked"}function Io(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];re(t.type==="paragraph");const r=t.children[0];if(r&&r.type==="text"){const l=n.children;let a=-1,i;for(;++a<l.length;){const u=l[a];if(u.type==="paragraph"){i=u;break}}i===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Eo(e,n,t,r){const l=e.children[0],a=typeof e.checked=="boolean"&&l&&l.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",u=t.createTracker(r);a&&u.move(i);let o=Xn.listItem(e,n,t,{...r,...u.current()});return a&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),o;function s(f){return f+i}}function Ao(){return[uu(),zu(),Du(),mo(),Co()]}function To(e){return{extensions:[ou(),Fu(e),Lu(),wo(e),So()]}}const zo={tokenize:_o,partial:!0},er={tokenize:Oo,partial:!0},tr={tokenize:Bo,partial:!0},nr={tokenize:Ro,partial:!0},Fo={tokenize:vo,partial:!0},rr={name:"wwwAutolink",tokenize:Do,previous:lr},ir={name:"protocolAutolink",tokenize:Lo,previous:ar},ce={name:"emailAutolink",tokenize:Po,previous:ur},le={};function No(){return{text:le}}let de=48;for(;de<123;)le[de]=ce,de++,de===58?de=65:de===91&&(de=97);le[43]=ce;le[45]=ce;le[46]=ce;le[95]=ce;le[72]=[ce,ir];le[104]=[ce,ir];le[87]=[ce,rr];le[119]=[ce,rr];function Po(e,n,t){const r=this;let l,a;return i;function i(c){return!gt(c)||!ur.call(r,r.previous)||Tt(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return gt(c)?(e.consume(c),u):c===64?(e.consume(c),o):t(c)}function o(c){return c===46?e.check(Fo,f,s)(c):c===45||c===95||Q(c)?(a=!0,e.consume(c),o):f(c)}function s(c){return e.consume(c),l=!0,o}function f(c){return a&&l&&Y(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Do(e,n,t){const r=this;return l;function l(i){return i!==87&&i!==119||!lr.call(r,r.previous)||Tt(r.events)?t(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zo,e.attempt(er,e.attempt(tr,a),t),t)(i))}function a(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(i)}}function Lo(e,n,t){const r=this;let l="",a=!1;return i;function i(c){return(c===72||c===104)&&ar.call(r,r.previous)&&!Tt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(c),e.consume(c),u):t(c)}function u(c){if(Y(c)&&l.length<5)return l+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const p=l.toLowerCase();if(p==="http"||p==="https")return e.consume(c),o}return t(c)}function o(c){return c===47?(e.consume(c),a?s:(a=!0,o)):t(c)}function s(c){return c===null||$e(c)||j(c)||ke(c)||We(c)?t(c):e.attempt(er,e.attempt(tr,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function _o(e,n,t){let r=0;return l;function l(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),l):i===46&&r===3?(e.consume(i),a):t(i)}function a(i){return i===null?t(i):n(i)}}function Oo(e,n,t){let r,l,a;return i;function i(s){return s===46||s===95?e.check(nr,o,u)(s):s===null||j(s)||ke(s)||s!==45&&We(s)?o(s):(a=!0,e.consume(s),i)}function u(s){return s===95?r=!0:(l=r,r=void 0),e.consume(s),i}function o(s){return l||r||!a?t(s):n(s)}}function Bo(e,n){let t=0,r=0;return l;function l(i){return i===40?(t++,e.consume(i),l):i===41&&r<t?a(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(nr,n,a)(i):i===null||j(i)||ke(i)?n(i):(e.consume(i),l)}function a(i){return i===41&&r++,e.consume(i),l}}function Ro(e,n,t){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),a):u===93?(e.consume(u),l):u===60||u===null||j(u)||ke(u)?n(u):t(u)}function l(u){return u===null||u===40||u===91||j(u)||ke(u)?n(u):r(u)}function a(u){return Y(u)?i(u):t(u)}function i(u){return u===59?(e.consume(u),r):Y(u)?(e.consume(u),i):t(u)}}function vo(e,n,t){return r;function r(a){return e.consume(a),l}function l(a){return Q(a)?t(a):n(a)}}function lr(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||j(e)}function ar(e){return!Y(e)}function ur(e){return!(e===47||gt(e))}function gt(e){return e===43||e===45||e===46||e===95||Q(e)}function Tt(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Mo={tokenize:Qo,partial:!0};function jo(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Vo,continuation:{tokenize:Uo},exit:Wo}},text:{91:{name:"gfmFootnoteCall",tokenize:$o},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:qo,resolveTo:Ho}}}}function qo(e,n,t){const r=this;let l=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;l--;){const o=r.events[l][1];if(o.type==="labelImage"){i=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return u;function u(o){if(!i||!i._balanced)return t(o);const s=ie(r.sliceSerialize({start:i.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?t(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),n(o))}}function Ho(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",l,n],["exit",l,n],["enter",a,n],["enter",i,n],["exit",i,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function $o(e,n,t){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,i;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),o}function o(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(a>999||c===93&&!i||c===null||c===91||j(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return l.includes(ie(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return j(c)||(i=!0),a++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),a++,s):s(c)}}function Vo(e,n,t){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=0,u;return o;function o(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(d)}function f(d){if(i>999||d===93&&!u||d===null||d===91||j(d))return t(d);if(d===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return a=ie(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return j(d)||(u=!0),i++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),i++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l.includes(a)||l.push(a),D(e,h,"gfmFootnoteDefinitionWhitespace")):t(d)}function h(d){return n(d)}}function Uo(e,n,t){return e.check(Le,n,e.attempt(Mo,n,t))}function Wo(e){e.exit("gfmFootnoteDefinition")}function Qo(e,n,t){const r=this;return D(e,l,"gfmFootnoteDefinitionIndent",5);function l(a){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?n(a):t(a)}}function Yo(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:l};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function l(i,u){let o=-1;for(;++o<i.length;)if(i[o][0]==="enter"&&i[o][1].type==="strikethroughSequenceTemporary"&&i[o][1]._close){let s=o;for(;s--;)if(i[s][0]==="exit"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._open&&i[o][1].end.offset-i[o][1].start.offset===i[s][1].end.offset-i[s][1].start.offset){i[o][1].type="strikethroughSequence",i[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},i[s][1].start),end:Object.assign({},i[o][1].end)},c={type:"strikethroughText",start:Object.assign({},i[s][1].end),end:Object.assign({},i[o][1].start)},p=[["enter",f,u],["enter",i[s][1],u],["exit",i[s][1],u],["enter",c,u]],h=u.parser.constructs.insideSpan.null;h&&Z(p,p.length,0,Qe(h,i.slice(s+1,o),u)),Z(p,p.length,0,[["exit",c,u],["enter",i[o][1],u],["exit",i[o][1],u],["exit",f,u]]),Z(i,s-1,o-s+3,p),o=s+p.length-2;break}}for(o=-1;++o<i.length;)i[o][1].type==="strikethroughSequenceTemporary"&&(i[o][1].type="data");return i}function a(i,u,o){const s=this.previous,f=this.events;let c=0;return p;function p(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?o(d):(i.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const C=Se(s);if(d===126)return c>1?o(d):(i.consume(d),c++,h);if(c<2&&!t)return o(d);const I=i.exit("strikethroughSequenceTemporary"),b=Se(d);return I._open=!b||b===2&&!!C,I._close=!C||C===2&&!!b,u(d)}}}class Jo{constructor(){this.map=[]}add(n,t,r){Ko(this,n,t,r)}consume(n){if(this.map.sort(function(a,i){return a[0]-i[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let l=r.pop();for(;l;){for(const a of l)n.push(a);l=r.pop()}this.map.length=0}}function Ko(e,n,t,r){let l=0;if(!(t===0&&r.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=t,e.map[l][2].push(...r);return}l+=1}e.map.push([n,t,r])}}function Zo(e,n){let t=!1;const r=[];for(;n<e.length;){const l=e[n];if(t){if(l[0]==="enter")l[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Go(){return{flow:{null:{name:"table",tokenize:Xo,resolveAll:es}}}}function Xo(e,n,t){const r=this;let l=0,a=0,i;return u;function u(k){let A=r.events.length-1;for(;A>-1;){const H=r.events[A][1].type;if(H==="lineEnding"||H==="linePrefix")A--;else break}const T=A>-1?r.events[A][1].type:null,v=T==="tableHead"||T==="tableRow"?y:o;return v===y&&r.parser.lazy[r.now().line]?t(k):v(k)}function o(k){return e.enter("tableHead"),e.enter("tableRow"),s(k)}function s(k){return k===124||(i=!0,a+=1),f(k)}function f(k){return k===null?t(k):z(k)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):t(k):N(k)?D(e,f,"whitespace")(k):(a+=1,i&&(i=!1,l+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),i=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||j(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),i=!1,N(k)?D(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):d(k))}function d(k){return k===45||k===58?I(k):k===124?(i=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),C):B(k)}function C(k){return N(k)?D(e,I,"whitespace")(k):I(k)}function I(k){return k===58?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),b):k===45?(a+=1,b(k)):k===null||z(k)?L(k):B(k)}function b(k){return k===45?(e.enter("tableDelimiterFiller"),E(k)):B(k)}function E(k){return k===45?(e.consume(k),E):k===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return N(k)?D(e,L,"whitespace")(k):L(k)}function L(k){return k===124?d(k):k===null||z(k)?!i||l!==a?B(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):B(k)}function B(k){return t(k)}function y(k){return e.enter("tableRow"),_(k)}function _(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),_):k===null||z(k)?(e.exit("tableRow"),n(k)):N(k)?D(e,_,"whitespace")(k):(e.enter("data"),q(k))}function q(k){return k===null||k===124||j(k)?(e.exit("data"),_(k)):(e.consume(k),k===92?R:q)}function R(k){return k===92||k===124?(e.consume(k),q):q(k)}}function es(e,n){let t=-1,r=!0,l=0,a=[0,0,0,0],i=[0,0,0,0],u=!1,o=0,s,f,c;const p=new Jo;for(;++t<e.length;){const h=e[t],d=h[1];h[0]==="enter"?d.type==="tableHead"?(u=!1,o!==0&&(an(p,n,o,s,f),f=void 0,o=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",s,n]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,a=[0,0,0,0],i=[0,t+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",f,n]])),l=d.type==="tableDelimiterRow"?2:f?3:1):l&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,i[2]===0&&(a[1]!==0&&(i[0]=i[1],c=Re(p,n,a,l,void 0,c),a=[0,0,0,0]),i[2]=t)):d.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(i[0]=i[1],c=Re(p,n,a,l,void 0,c)),a=i,i=[a[1],t,0,0])):d.type==="tableHead"?(u=!0,o=t):d.type==="tableRow"||d.type==="tableDelimiterRow"?(o=t,a[1]!==0?(i[0]=i[1],c=Re(p,n,a,l,t,c)):i[1]!==0&&(c=Re(p,n,i,l,t,c)),l=0):l&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(i[3]=t)}for(o!==0&&an(p,n,o,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Zo(n.events,t))}return e}function Re(e,n,t,r,l,a){const i=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";t[0]!==0&&(a.end=Object.assign({},we(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const o=we(n.events,t[1]);if(a={type:i,start:Object.assign({},o),end:Object.assign({},o)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const s=we(n.events,t[2]),f=we(n.events,t[3]),c={type:u,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const d=t[2]+1,C=t[3]-t[2]-1;e.add(d,C,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return l!==void 0&&(a.end=Object.assign({},we(n.events,l)),e.add(l,0,[["exit",a,n]]),a=void 0),a}function an(e,n,t,r,l){const a=[],i=we(n.events,t);l&&(l.end=Object.assign({},i),a.push(["exit",l,n])),r.end=Object.assign({},i),a.push(["exit",r,n]),e.add(t+1,0,a)}function we(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const ts={name:"tasklistCheck",tokenize:rs};function ns(){return{text:{91:ts}}}function rs(e,n,t){const r=this;return l;function l(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),a)}function a(o){return j(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),i):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),i):t(o)}function i(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(o)}function u(o){return z(o)?n(o):N(o)?e.check({tokenize:is},n,t)(o):t(o)}}function is(e,n,t){return D(e,r,"whitespace");function r(l){return l===null?t(l):n(l)}}function ls(e){return Cn([No(),jo(),Yo(e),Go(),ns()])}const as={};function Js(e){const n=this,t=e||as,r=n.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(ls(t)),a.push(Ao()),i.push(To(t))}const us=/^>|^->|<!--|-->|--!>|<!-$/g,os=[">"],ss=["<",">"];function cs(e,n,t,r){return r.settings.bogusComments?"<?"+Ce(e.value,Object.assign({},r.settings.characterReferences,{subset:os}))+">":"<!--"+e.value.replace(us,l)+"-->";function l(a){return Ce(a,Object.assign({},r.settings.characterReferences,{subset:ss}))}}function fs(e,n,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const $=sr(1),or=sr(-1),hs=[];function sr(e){return n;function n(t,r,l){const a=t?t.children:hs;let i=(r||0)+e,u=a[i];if(!l)for(;u&&Ue(u);)i+=e,u=a[i];return u}}const ps={}.hasOwnProperty;function cr(e){return n;function n(t,r,l){return ps.call(e,t.tagName)&&e[t.tagName](t,r,l)}}const zt=cr({body:gs,caption:ot,colgroup:ot,dd:ys,dt:xs,head:ot,html:ms,li:ks,optgroup:bs,option:ws,p:ds,rp:un,rt:un,tbody:Ss,td:on,tfoot:Is,th:on,thead:Cs,tr:Es});function ot(e,n,t){const r=$(t,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ue(r.value.charAt(0)))}function ms(e,n,t){const r=$(t,n);return!r||r.type!=="comment"}function gs(e,n,t){const r=$(t,n);return!r||r.type!=="comment"}function ds(e,n,t){const r=$(t,n);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function ks(e,n,t){const r=$(t,n);return!r||r.type==="element"&&r.tagName==="li"}function xs(e,n,t){const r=$(t,n);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function ys(e,n,t){const r=$(t,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function un(e,n,t){const r=$(t,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function bs(e,n,t){const r=$(t,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function ws(e,n,t){const r=$(t,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Cs(e,n,t){const r=$(t,n);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ss(e,n,t){const r=$(t,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Is(e,n,t){return!$(t,n)}function Es(e,n,t){const r=$(t,n);return!r||r.type==="element"&&r.tagName==="tr"}function on(e,n,t){const r=$(t,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const As=cr({body:Fs,colgroup:Ns,head:zs,html:Ts,tbody:Ps});function Ts(e){const n=$(e,-1);return!n||n.type!=="comment"}function zs(e){const n=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(n.has(r.tagName))return!1;n.add(r.tagName)}const t=e.children[0];return!t||t.type==="element"}function Fs(e){const n=$(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Ue(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function Ns(e,n,t){const r=or(t,n),l=$(e,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&zt(r,t.children.indexOf(r),t)?!1:!!(l&&l.type==="element"&&l.tagName==="col")}function Ps(e,n,t){const r=or(t,n),l=$(e,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&zt(r,t.children.indexOf(r),t)?!1:!!(l&&l.type==="element"&&l.tagName==="tr")}const ve={name:[[`
|
|
28
|
+
\f\r &/=>`.split(""),`
|
|
29
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
30
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
31
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
32
|
+
\f\r &>`.split(""),`\0
|
|
33
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
34
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
35
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Ds(e,n,t,r){const l=r.schema,a=l.space==="svg"?!1:r.settings.omitOptionalTags;let i=l.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let o;l.space==="html"&&e.tagName==="svg"&&(r.schema=De);const s=Ls(r,e.properties),f=r.all(l.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=l,f&&(i=!1),(s||!a||!As(e,n,t))&&(u.push("<",e.tagName,s?" "+s:""),i&&(l.space==="svg"||r.settings.closeSelfClosing)&&(o=s.charAt(s.length-1),(!r.settings.tightSelfClosing||o==="/"||o&&o!=='"'&&o!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(f),!i&&(!a||!zt(e,n,t))&&u.push("</"+e.tagName+">"),u.join("")}function Ls(e,n){const t=[];let r=-1,l;if(n){for(l in n)if(n[l]!==null&&n[l]!==void 0){const a=_s(e,l,n[l]);a&&t.push(a)}}for(;++r<t.length;){const a=e.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&a!=='"'&&a!=="'"&&(t[r]+=" ")}return t.join("")}function _s(e,n,t){const r=fn(e.schema,n),l=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let i=e.quote,u;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const o=Ce(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ve.name[l][a]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?hn:pn)(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t)?o:(e.settings.preferUnquoted&&(u=Ce(t,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ve.unquoted[l][a]}))),u!==t&&(e.settings.quoteSmart&&He(t,i)>He(t,e.alternative)&&(i=e.alternative),u=i+Ce(t,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ve.single:ve.double)[l][a],attribute:!0}))+i),o+(u&&"="+u))}const Os=["<","&"];function fr(e,n,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?e.value:Ce(e.value,Object.assign({},r.settings.characterReferences,{subset:Os}))}function Bs(e,n,t,r){return r.settings.allowDangerousHtml?e.value:fr(e,n,t,r)}function Rs(e,n,t,r){return r.all(e)}const vs=zr("type",{invalid:Ms,unknown:js,handlers:{comment:cs,doctype:fs,element:Ds,raw:Bs,root:Rs,text:fr}});function Ms(e){throw new Error("Expected node, not `"+e+"`")}function js(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const qs={},Hs={},$s=[];function Ks(e,n){const t=qs,r=t.quote||'"',l=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Vs,all:Us,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Fr,characterReferences:t.characterReferences||Hs,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?De:sn,quote:r,alternative:l}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Vs(e,n,t){return vs(e,n,t,this)}function Us(e){const n=[],t=e&&e.children||$s;let r=-1;for(;++r<t.length;)n[r]=this.one(t[r],r,e);return n.join("")}export{Ys as M,Js as r,Me as s,Ks as t};
|
|
36
|
+
//# sourceMappingURL=vendor-markdown-CpaoCv-a.js.map
|