"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["5871"],{2345:function(e,n,t){t.r(n),t.d(n,{compile:()=>N,postprocess:()=>eB,micromark:()=>eQ,parse:()=>ej,preprocess:()=>eV});var r,i,u,o,c,l,s,f,a,d={};t.r(d),t.d(d,{attentionMarkers:()=>eR,contentInitial:()=>eP,disable:()=>eq,document:()=>ew,flow:()=>eL,flowInitial:()=>eM,insideSpan:()=>eN,string:()=>eO,text:()=>eD});let h=document.createElement("i");function p(e){let n="&"+e+";";h.innerHTML=n;let t=h.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===e)&&t!==n&&t}function g(e,n,t,r){let i;let u=e.length,o=0;if(n=n<0?-n>u?0:u+n:n>u?u:n,t=t>0?t:0,r.length<1e4)(i=Array.from(r)).unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);o0?(g(e,e.length,0,n),e):n}let x={}.hasOwnProperty,k={'"':"quot","&":"amp","<":"lt",">":"gt"};function v(e){return e.replace(/["&<>]/g,function(e){return"&"+k[e]+";"})}function b(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let y=(r=/[A-Za-z]/,function(e){return null!==e&&e>-1&&r.test(String.fromCharCode(e))}),S=(i=/[\dA-Za-z]/,function(e){return null!==e&&e>-1&&i.test(String.fromCharCode(e))}),I=(u=/[#-'*+\--9=?A-Z^-~]/,function(e){return null!==e&&e>-1&&u.test(String.fromCharCode(e))});function _(e){return null!==e&&(e<32||127===e)}let C=(o=/\d/,function(e){return null!==e&&e>-1&&o.test(String.fromCharCode(e))}),T=(c=/[\dA-Fa-f]/,function(e){return null!==e&&e>-1&&c.test(String.fromCharCode(e))}),z=(l=/[!-/:-@[-`{-~]/,function(e){return null!==e&&e>-1&&l.test(String.fromCharCode(e))});function E(e){return null!==e&&e<-2}function A(e){return null!==e&&(e<0||32===e)}function F(e){return -2===e||-1===e||32===e}let w=(s=/\p{P}|\p{S}/u,function(e){return null!==e&&e>-1&&s.test(String.fromCharCode(e))}),P=(f=/\s/,function(e){return null!==e&&e>-1&&f.test(String.fromCharCode(e))});function M(e,n){let t=v(function(e){let n=[],t=-1,r=0,i=0;for(;++t55295&&u<57344){let n=e.charCodeAt(t+1);u<56320&&n>56319&&n<57344?(o=String.fromCharCode(u,n),i=1):o="�"}else o=String.fromCharCode(u);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}(e||""));if(!n)return t;let r=t.indexOf(":"),i=t.indexOf("?"),u=t.indexOf("#"),o=t.indexOf("/");return r<0||o>-1&&r>o||i>-1&&r>i||u>-1&&r>u||n.test(t.slice(0,r))?t:""}let L={}.hasOwnProperty,O=/^(https?|ircs?|mailto|xmpp)$/i,D=/^https?$/i;function N(e){let n=e||{},t=!0,r={},i=[[]],u=[],o=[],c=function(e){let n={},t=-1;for(;++t")},codeFenced:function(){y(),h("")},codeText:function(){l.inCodeText=!0,h("")},content:function(){l.slurpAllLineEndings=!0},definition:function(){a(),u.push({})},definitionDestinationString:function(){a(),l.ignoreEncode=!0},definitionLabelString:a,definitionTitleString:a,emphasis:function(){h("")},htmlFlow:function(){y(),F()},htmlText:F,image:function(){u.push({image:!0}),t=void 0},label:a,link:function(){u.push({})},listItemMarker:function(){l.expectFirstItem?h(">"):_(),y(),h(""),l.expectFirstItem=void 0,l.lastWasTag=void 0},listItemValue:function(e){if(l.expectFirstItem){let n=Number.parseInt(this.sliceSerialize(e),10);1!==n&&h(' start="'+S(String(n))+'"')}},listOrdered:function(e){o.push(!e._loose),y(),h("")),l.slurpAllLineEndings=void 0},reference:a,resource:function(){a(),u[u.length-1].destination=""},resourceDestinationString:function(){a(),l.ignoreEncode=!0},resourceTitleString:a,setextHeading:function(){a(),l.slurpAllLineEndings=void 0},strong:function(){h("")}},exit:{atxHeading:function(){h(""),l.headingRank=void 0},atxHeadingSequence:function(e){if(!l.headingRank){var n;n=this.sliceSerialize(e).length,l.headingRank=n,y(),h("")}},autolinkEmail:function(e){let n=this.sliceSerialize(e);h(''),g(S(n)),h("")},autolinkProtocol:function(e){let t=this.sliceSerialize(e);h(''),g(S(t)),h("")},blockQuote:function(){o.pop(),y(),h(""),l.slurpAllLineEndings=void 0},characterEscapeValue:z,characterReferenceMarkerHexadecimal:w,characterReferenceMarkerNumeric:w,characterReferenceValue:function(e){let n=this.sliceSerialize(e);g(S(l.characterReferenceType?function(e,n){let t=Number.parseInt(e,n);return t<9||11===t||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(65535&t)==65535||(65535&t)==65534||t>1114111?"�":String.fromCodePoint(t)}(n,"characterReferenceMarkerNumeric"===l.characterReferenceType?10:16):p(n))),l.characterReferenceType=void 0},codeFenced:C,codeFencedFence:function(){var e;let n=l.fencesCount||0;!n&&(h(">"),l.slurpOneLineEnding=!0),e=n+1,l.fencesCount=e},codeFencedFenceInfo:function(){h(' class="language-'+d()+'"')},codeFencedFenceMeta:I,codeFlowValue:function(e){g(S(this.sliceSerialize(e))),l.flowCodeSeenData=!0},codeIndented:C,codeText:function(){l.inCodeText=void 0,h("
")},codeTextData:z,data:z,definition:function(){let e=b(u[u.length-1].labelId);d(),L.call(r,e)||(r[e]=u[u.length-1]),u.pop()},definitionDestinationString:function(){u[u.length-1].destination=d(),l.ignoreEncode=void 0},definitionLabelString:function(e){d(),u[u.length-1].labelId=this.sliceSerialize(e)},definitionTitleString:function(){u[u.length-1].title=d()},emphasis:function(){h("")},hardBreakEscape:E,hardBreakTrailing:E,htmlFlow:A,htmlFlowData:z,htmlText:A,htmlTextData:z,image:T,label:function(){u[u.length-1].label=d()},labelText:function(e){u[u.length-1].labelId=this.sliceSerialize(e)},lineEnding:function(e){if(!l.slurpAllLineEndings){if(l.slurpOneLineEnding){l.slurpOneLineEnding=void 0;return}if(l.inCodeText){g(" ");return}g(S(this.sliceSerialize(e)))}},link:T,listOrdered:function(){_(),o.pop(),k(),h("")},listUnordered:function(){_(),o.pop(),k(),h("")},paragraph:function(){if(o[o.length-1])l.slurpAllLineEndings=!0;else h("
")},reference:I,referenceString:function(e){u[u.length-1].referenceId=this.sliceSerialize(e)},resource:I,resourceDestinationString:function(){u[u.length-1].destination=d(),l.ignoreEncode=void 0},resourceTitleString:function(){u[u.length-1].title=d()},setextHeading:function(){let e=d();y(),h(""),g(e),h(""),l.slurpAllLineEndings=void 0,l.headingRank=void 0},setextHeadingLineSequence:function(e){var n;n=61===this.sliceSerialize(e).charCodeAt(0)?1:2,l.headingRank=n},setextHeadingText:function(){l.slurpAllLineEndings=!0},strong:function(){h("")},thematicBreak:function(){y(),h("
")}}},...n.htmlExtensions||[]]),l={definitions:r,tightStack:o},s={buffer:a,encode:S,getData:function(e){return l[e]},lineEndingIfNeeded:y,options:n,raw:g,resume:d,setData:function(e,n){l[e]=n},tag:h},f=n.defaultLineEnding;return function(e){let n=-1,t=0,r=[],u=[],o=[];for(;++n"),l.slurpAllLineEndings=void 0}function C(){let e=l.fencesCount;void 0!==e&&e<2&&l.tightStack.length>0&&!l.lastWasTag&&k(),l.flowCodeSeenData&&y(),h(""),void 0!==e&&e<2&&y(),l.flowCodeSeenData=void 0,l.fencesCount=void 0,l.slurpOneLineEnding=void 0}function T(){let e=u.length-1,i=u[e],o=i.referenceId||i.labelId,c=void 0===i.destination?r[b(o)]:i;for(t=!0;e--;)if(u[e].image){t=void 0;break}i.image?(h('
"):(h(">"),g(i.label),h("")),u.pop()}function z(e){g(S(this.sliceSerialize(e)))}function E(){h("
")}function A(){l.ignoreEncode=void 0}function F(){if(n.allowDangerousHtml)l.ignoreEncode=!0}function w(e){var n;n=e.type,l.characterReferenceType=n}}function R(e,n,t,r){let i=r?r-1:Number.POSITIVE_INFINITY,u=0;return function(r){return F(r)?(e.enter(t),function r(o){return F(o)&&u++r))return;let c=i.events.length,l=c;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){t=i.events[l][1].end;break}e=!0}for(x(o),u=c;un;){let n=u[t];i.containerState=n[1],n[0].exit.call(i,e)}u.length=n}function k(){n.write([null]),t=void 0,n=void 0,i.containerState._closeFlow=void 0}}},B={tokenize:function(e,n,t){return R(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},H={partial:!0,tokenize:function(e,n,t){return function(n){return F(n)?R(e,r,"linePrefix")(n):r(n)};function r(e){return null===e||E(e)?n(e):t(e)}}};class V{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(n||0),Number.POSITIVE_INFINITY);return t&&Q(this.left,t),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Q(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Q(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e=4?n(i):e.interrupt(r.parser.constructs.flow,t,n)(i)}}},Z={tokenize:function(e){let n=this,t=e.attempt(H,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t},e.attempt(this.parser.constructs.flowInitial,r,R(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Y,r)),"linePrefix")));return t;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t}}},$=J("string"),G=J("text");function J(e){var n;return{resolveAll:(n="text"===e?K:void 0,function(e,t){let r,i=-1;for(;++i<=e.length;)void 0===r?e[i]&&"data"===e[i][1].type&&(r=i,i++):e[i]&&"data"===e[i][1].type||(i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),i=r+2),r=void 0);return n?n(e,t):e}),tokenize:function(n){let t=this,r=this.parser.constructs[e],i=n.attempt(r,u,o);return u;function u(e){return l(e)?i(e):o(e)}function o(e){if(null===e){n.consume(e);return}return n.enter("data"),n.consume(e),c}function c(e){return l(e)?(n.exit("data"),i(e)):(n.consume(e),c)}function l(e){if(null===e)return!0;let n=r[e],i=-1;if(n)for(;++i=3&&(null===o||E(o))?(e.exit("thematicBreak"),n(o)):t(o)}(o)}}},ee={continuation:{tokenize:function(e,n,t){let r=this;return r.containerState._closeFlow=void 0,e.check(H,function(t){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,R(e,n,"listItemIndent",r.containerState.size+1)(t)},function(t){return r.containerState.furtherBlankLines||!F(t)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(t)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(et,n,i)(t))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,R(e,e.attempt(ee,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,n,t){let r=this,i=r.events[r.events.length-1],u=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(n){let i=r.containerState.type||(42===n||43===n||45===n?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||n===r.containerState.marker:C(n)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===n||45===n?e.check(X,t,c)(n):c(n);if(!r.interrupt||49===n)return e.enter("listItemPrefix"),e.enter("listItemValue"),function n(i){return C(i)&&++o<10?(e.consume(i),n):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),c(i)):t(i)}(n)}return t(n)};function c(n){return e.enter("listItemMarker"),e.consume(n),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||n,e.check(H,r.interrupt?t:l,e.attempt(en,f,s))}function l(e){return r.containerState.initialBlankLine=!0,u++,f(e)}function s(n){return F(n)?(e.enter("listItemPrefixWhitespace"),e.consume(n),e.exit("listItemPrefixWhitespace"),f):t(n)}function f(t){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(t)}}},en={partial:!0,tokenize:function(e,n,t){let r=this;return R(e,function(e){let i=r.events[r.events.length-1];return!F(e)&&i&&"listItemPrefixWhitespace"===i[1].type?n(e):t(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},et={partial:!0,tokenize:function(e,n,t){let r=this;return R(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?n(e):t(e)},"listItemIndent",r.containerState.size+1)}},er={continuation:{tokenize:function(e,n,t){let r=this;return function(n){return F(n)?R(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):i(n)};function i(r){return e.attempt(er,n,t)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,n,t){let r=this;return function(n){if(62===n){let t=r.containerState;return t.open||(e.enter("blockQuote",{_container:!0}),t.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(n),e.exit("blockQuoteMarker"),i}return t(n)};function i(t){return F(t)?(e.enter("blockQuotePrefixWhitespace"),e.consume(t),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(t))}}};function ei(e,n,t,r,i,u,o,c,l){let s=l||Number.POSITIVE_INFINITY,f=0;return function(n){return 60===n?(e.enter(r),e.enter(i),e.enter(u),e.consume(n),e.exit(u),a):null===n||32===n||41===n||_(n)?t(n):(e.enter(r),e.enter(o),e.enter(c),e.enter("chunkString",{contentType:"string"}),p(n))};function a(t){return 62===t?(e.enter(u),e.consume(t),e.exit(u),e.exit(i),e.exit(r),n):(e.enter(c),e.enter("chunkString",{contentType:"string"}),d(t))}function d(n){return 62===n?(e.exit("chunkString"),e.exit(c),a(n)):null===n||60===n||E(n)?t(n):(e.consume(n),92===n?h:d)}function h(n){return 60===n||62===n||92===n?(e.consume(n),d):d(n)}function p(i){return!f&&(null===i||41===i||A(i))?(e.exit("chunkString"),e.exit(c),e.exit(o),e.exit(r),n(i)):f999||null===a||91===a||93===a&&!o||94===a&&!l&&"_hiddenFootnoteSupport"in c.parser.constructs?t(a):93===a?(e.exit(u),e.enter(i),e.consume(a),e.exit(i),e.exit(r),n):E(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),f(a))}function f(n){return null===n||91===n||93===n||E(n)||l++>999?(e.exit("chunkString"),s(n)):(e.consume(n),o||(o=!F(n)),92===n?a:f)}function a(n){return 91===n||92===n||93===n?(e.consume(n),l++,f):f(n)}}function eo(e,n,t,r,i,u){let o;return function(n){return 34===n||39===n||40===n?(e.enter(r),e.enter(i),e.consume(n),e.exit(i),o=40===n?41:n,c):t(n)};function c(t){return t===o?(e.enter(i),e.consume(t),e.exit(i),e.exit(r),n):(e.enter(u),l(t))}function l(n){return n===o?(e.exit(u),c(o)):null===n?t(n):E(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),R(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===o||null===n||E(n)?(e.exit("chunkString"),l(n)):(e.consume(n),92===n?f:s)}function f(n){return n===o||92===n?(e.consume(n),s):s(n)}}function ec(e,n){let t;return function r(i){return E(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):F(i)?R(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}let el={partial:!0,tokenize:function(e,n,t){return function(n){return A(n)?ec(e,r)(n):t(n)};function r(n){return eo(e,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function i(n){return F(n)?R(e,u,"whitespace")(n):u(n)}function u(e){return null===e||E(e)?n(e):t(e)}}},es={name:"codeIndented",tokenize:function(e,n,t){let r=this;return function(n){return e.enter("codeIndented"),R(e,i,"linePrefix",5)(n)};function i(n){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function n(t){return null===t?u(t):E(t)?e.attempt(ef,n,u)(t):(e.enter("codeFlowValue"),function t(r){return null===r||E(r)?(e.exit("codeFlowValue"),n(r)):(e.consume(r),t)}(t))}(n):t(n)}function u(t){return e.exit("codeIndented"),n(t)}}},ef={partial:!0,tokenize:function(e,n,t){let r=this;return i;function i(n){return r.parser.lazy[r.now().line]?t(n):E(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i):R(e,u,"linePrefix",5)(n)}function u(e){let u=r.events[r.events.length-1];return u&&"linePrefix"===u[1].type&&u[2].sliceSerialize(u[1],!0).length>=4?n(e):E(e)?i(e):t(e)}}},ea={name:"setextUnderline",resolveTo:function(e,n){let t,r,i,u=e.length;for(;u--;)if("enter"===e[u][0]){if("content"===e[u][1].type){t=u;break}"paragraph"===e[u][1].type&&(r=u)}else"content"===e[u][1].type&&e.splice(u,1),i||"definition"!==e[u][1].type||(i=u);let o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,n]),e.splice(i+1,0,["exit",e[t][1],n]),e[t][1].end={...e[i][1].end}):e[t][1]=o,e.push(["exit",o,n]),e},tokenize:function(e,n,t){let r;let i=this;return function(n){var o;let c,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){c="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||c)?(e.enter("setextHeadingLine"),r=n,o=n,e.enter("setextHeadingLineSequence"),function n(t){return t===r?(e.consume(t),n):(e.exit("setextHeadingLineSequence"),F(t)?R(e,u,"lineSuffix")(t):u(t))}(o)):t(n)};function u(r){return null===r||E(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}}},ed=["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"],eh=["pre","script","style","textarea"],ep={partial:!0,tokenize:function(e,n,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(H,n,t)}}},eg={partial:!0,tokenize:function(e,n,t){let r=this;return function(n){return E(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i):t(n)};function i(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}},em={partial:!0,tokenize:function(e,n,t){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}},ex={concrete:!0,name:"codeFenced",tokenize:function(e,n,t){let r;let i=this,u={partial:!0,tokenize:function(e,n,t){let u=0;return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(n){return e.enter("codeFencedFence"),F(n)?R(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):l(n)}function l(n){return n===r?(e.enter("codeFencedFenceSequence"),function n(i){return i===r?(u++,e.consume(i),n):u>=c?(e.exit("codeFencedFenceSequence"),F(i)?R(e,s,"whitespace")(i):s(i)):t(i)}(n)):t(n)}function s(r){return null===r||E(r)?(e.exit("codeFencedFence"),n(r)):t(r)}}},o=0,c=0;return function(n){return function(n){let u=i.events[i.events.length-1];return o=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=n,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function n(i){return i===r?(c++,e.consume(i),n):c<3?t(i):(e.exit("codeFencedFenceSequence"),F(i)?R(e,l,"whitespace")(i):l(i))}(n)}(n)};function l(u){return null===u||E(u)?(e.exit("codeFencedFence"),i.interrupt?n(u):e.check(em,f,p)(u)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function n(i){return null===i||E(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):F(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),R(e,s,"whitespace")(i)):96===i&&i===r?t(i):(e.consume(i),n)}(u))}function s(n){return null===n||E(n)?l(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function n(i){return null===i||E(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?t(i):(e.consume(i),n)}(n))}function f(n){return e.attempt(u,p,a)(n)}function a(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),d}function d(n){return o>0&&F(n)?R(e,h,"linePrefix",o+1)(n):h(n)}function h(n){return null===n||E(n)?e.check(em,f,p)(n):(e.enter("codeFlowValue"),function n(t){return null===t||E(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),n)}(n))}function p(t){return e.exit("codeFenced"),n(t)}}},ek={name:"characterReference",tokenize:function(e,n,t){let r,i;let u=this,o=0;return function(n){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(n),e.exit("characterReferenceMarker"),c};function c(n){return 35===n?(e.enter("characterReferenceMarkerNumeric"),e.consume(n),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=S,s(n))}function l(n){return 88===n||120===n?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(n),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=T,s):(e.enter("characterReferenceValue"),r=7,i=C,s(n))}function s(c){if(59===c&&o){let r=e.exit("characterReferenceValue");return i!==S||p(u.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):t(c)}return i(c)&&o++1&&e[f][1].end.offset-e[f][1].start.offset>1?2:1;let a={...e[t][1].end},d={...e[f][1].start};eA(a,-c),eA(d,c),u={type:c>1?"strongSequence":"emphasisSequence",start:a,end:{...e[t][1].end}},o={type:c>1?"strongSequence":"emphasisSequence",start:{...e[f][1].start},end:d},i={type:c>1?"strongText":"emphasisText",start:{...e[t][1].end},end:{...e[f][1].start}},r={type:c>1?"strong":"emphasis",start:{...u.start},end:{...o.end}},e[t][1].end={...u.start},e[f][1].start={...o.end},l=[],e[t][1].end.offset-e[t][1].start.offset&&(l=m(l,[["enter",e[t][1],n],["exit",e[t][1],n]])),l=m(l,[["enter",r,n],["enter",u,n],["exit",u,n],["enter",i,n]]),l=m(l,ey(n.parser.constructs.insideSpan.null,e.slice(t+1,f),n)),l=m(l,[["exit",i,n],["enter",o,n],["exit",o,n],["exit",r,n]]),e[f][1].end.offset-e[f][1].start.offset?(s=2,l=m(l,[["enter",e[f][1],n],["exit",e[f][1],n]])):s=0,g(e,t-1,f-t+3,l),f=t+l.length-s-2;break}}for(f=-1;++fu&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(u===i-1||i-4>u&&"whitespace"===e[i-2][1].type)&&(i-=u+1===i?2:4),i>u&&(t={type:"atxHeadingText",start:e[u][1].start,end:e[i][1].end},r={type:"chunkText",start:e[u][1].start,end:e[i][1].end,contentType:"text"},g(e,u,i-u+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]])),e},tokenize:function(e,n,t){let r=0;return function(i){var u;return e.enter("atxHeading"),u=i,e.enter("atxHeadingSequence"),function i(u){return 35===u&&r++<6?(e.consume(u),i):null===u||A(u)?(e.exit("atxHeadingSequence"),function t(r){return 35===r?(e.enter("atxHeadingSequence"),function n(r){return 35===r?(e.consume(r),n):(e.exit("atxHeadingSequence"),t(r))}(r)):null===r||E(r)?(e.exit("atxHeading"),n(r)):F(r)?R(e,t,"whitespace")(r):(e.enter("atxHeadingText"),function n(r){return null===r||35===r||A(r)?(e.exit("atxHeadingText"),t(r)):(e.consume(r),n)}(r))}(u)):t(u)}(u)}}},42:X,45:[ea,X],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););return n>1&&"linePrefix"===e[n-2][1].type&&(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},tokenize:function(e,n,t){let r,i,u,o,c;let l=this;return function(n){var t;return t=n,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),s};function s(o){return 33===o?(e.consume(o),f):47===o?(e.consume(o),i=!0,h):63===o?(e.consume(o),r=3,l.interrupt?n:N):y(o)?(e.consume(o),u=String.fromCharCode(o),p):t(o)}function f(i){return 45===i?(e.consume(i),r=2,a):91===i?(e.consume(i),r=5,o=0,d):y(i)?(e.consume(i),r=4,l.interrupt?n:N):t(i)}function a(r){return 45===r?(e.consume(r),l.interrupt?n:N):t(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?n:T:d:t(r)}function h(n){return y(n)?(e.consume(n),u=String.fromCharCode(n),p):t(n)}function p(o){if(null===o||47===o||62===o||A(o)){let c=47===o,s=u.toLowerCase();return!c&&!i&&eh.includes(s)?(r=1,l.interrupt?n(o):T(o)):ed.includes(u.toLowerCase())?(r=6,c)?(e.consume(o),g):l.interrupt?n(o):T(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?t(o):i?function n(t){return F(t)?(e.consume(t),n):_(t)}(o):m(o))}return 45===o||S(o)?(e.consume(o),u+=String.fromCharCode(o),p):t(o)}function g(r){return 62===r?(e.consume(r),l.interrupt?n:T):t(r)}function m(n){return 47===n?(e.consume(n),_):58===n||95===n||y(n)?(e.consume(n),x):F(n)?(e.consume(n),m):_(n)}function x(n){return 45===n||46===n||58===n||95===n||S(n)?(e.consume(n),x):k(n)}function k(n){return 61===n?(e.consume(n),v):F(n)?(e.consume(n),k):m(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),c=n,b):F(n)?(e.consume(n),v):function n(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||A(t)?k(t):(e.consume(t),n)}(n)}function b(n){return n===c?(e.consume(n),c=null,I):null===n||E(n)?t(n):(e.consume(n),b)}function I(e){return 47===e||62===e||F(e)?m(e):t(e)}function _(n){return 62===n?(e.consume(n),C):t(n)}function C(n){return null===n||E(n)?T(n):F(n)?(e.consume(n),C):t(n)}function T(n){return 45===n&&2===r?(e.consume(n),M):60===n&&1===r?(e.consume(n),L):62===n&&4===r?(e.consume(n),R):63===n&&3===r?(e.consume(n),N):93===n&&5===r?(e.consume(n),D):E(n)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ep,q,z)(n)):null===n||E(n)?(e.exit("htmlFlowData"),z(n)):(e.consume(n),T)}function z(n){return e.check(eg,w,q)(n)}function w(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),P}function P(n){return null===n||E(n)?z(n):(e.enter("htmlFlowData"),T(n))}function M(n){return 45===n?(e.consume(n),N):T(n)}function L(n){return 47===n?(e.consume(n),u="",O):T(n)}function O(n){if(62===n){let t=u.toLowerCase();return eh.includes(t)?(e.consume(n),R):T(n)}return y(n)&&u.length<8?(e.consume(n),u+=String.fromCharCode(n),O):T(n)}function D(n){return 93===n?(e.consume(n),N):T(n)}function N(n){return 62===n?(e.consume(n),R):45===n&&2===r?(e.consume(n),N):T(n)}function R(n){return null===n||E(n)?(e.exit("htmlFlowData"),q(n)):(e.consume(n),R)}function q(t){return e.exit("htmlFlow"),n(t)}}},61:ea,95:X,96:ex,126:ex},eO={38:ek,92:ev},eD={[-5]:eb,[-4]:eb,[-3]:eb,33:eT,38:ek,42:eE,60:[{name:"autolink",tokenize:function(e,n,t){let r=0;return function(n){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(n){return y(n)?(e.consume(n),u):64===n?t(n):c(n)}function u(n){return 43===n||45===n||46===n||S(n)?(r=1,function n(t){return 58===t?(e.consume(t),r=0,o):(43===t||45===t||46===t||S(t))&&r++<32?(e.consume(t),n):(r=0,c(t))}(n)):c(n)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),n):null===r||32===r||60===r||_(r)?t(r):(e.consume(r),o)}function c(n){return 64===n?(e.consume(n),l):I(n)?(e.consume(n),c):t(n)}function l(i){return S(i)?function i(u){return 46===u?(e.consume(u),r=0,l):62===u?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(u),e.exit("autolinkMarker"),e.exit("autolink"),n):function n(u){if((45===u||S(u))&&r++<63){let t=45===u?n:i;return e.consume(u),t}return t(u)}(u)}(i):t(i)}}},{name:"htmlText",tokenize:function(e,n,t){let r,i,u;let o=this;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),c};function c(n){return 33===n?(e.consume(n),l):47===n?(e.consume(n),b):63===n?(e.consume(n),k):y(n)?(e.consume(n),_):t(n)}function l(n){return 45===n?(e.consume(n),s):91===n?(e.consume(n),i=0,h):y(n)?(e.consume(n),x):t(n)}function s(n){return 45===n?(e.consume(n),d):t(n)}function f(n){return null===n?t(n):45===n?(e.consume(n),a):E(n)?(u=f,O(n)):(e.consume(n),f)}function a(n){return 45===n?(e.consume(n),d):f(n)}function d(e){return 62===e?L(e):45===e?a(e):f(e)}function h(n){let r="CDATA[";return n===r.charCodeAt(i++)?(e.consume(n),i===r.length?p:h):t(n)}function p(n){return null===n?t(n):93===n?(e.consume(n),g):E(n)?(u=p,O(n)):(e.consume(n),p)}function g(n){return 93===n?(e.consume(n),m):p(n)}function m(n){return 62===n?L(n):93===n?(e.consume(n),m):p(n)}function x(n){return null===n||62===n?L(n):E(n)?(u=x,O(n)):(e.consume(n),x)}function k(n){return null===n?t(n):63===n?(e.consume(n),v):E(n)?(u=k,O(n)):(e.consume(n),k)}function v(e){return 62===e?L(e):k(e)}function b(n){return y(n)?(e.consume(n),I):t(n)}function I(n){return 45===n||S(n)?(e.consume(n),I):function n(t){return E(t)?(u=n,O(t)):F(t)?(e.consume(t),n):L(t)}(n)}function _(n){return 45===n||S(n)?(e.consume(n),_):47===n||62===n||A(n)?C(n):t(n)}function C(n){return 47===n?(e.consume(n),L):58===n||95===n||y(n)?(e.consume(n),T):E(n)?(u=C,O(n)):F(n)?(e.consume(n),C):L(n)}function T(n){return 45===n||46===n||58===n||95===n||S(n)?(e.consume(n),T):function n(t){return 61===t?(e.consume(t),z):E(t)?(u=n,O(t)):F(t)?(e.consume(t),n):C(t)}(n)}function z(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),r=n,w):E(n)?(u=z,O(n)):F(n)?(e.consume(n),z):(e.consume(n),P)}function w(n){return n===r?(e.consume(n),r=void 0,M):null===n?t(n):E(n)?(u=w,O(n)):(e.consume(n),w)}function P(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):47===n||62===n||A(n)?C(n):(e.consume(n),P)}function M(e){return 47===e||62===e||A(e)?C(e):t(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),n):t(r)}function O(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),D}function D(n){return F(n)?R(e,N,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n):N(n)}function N(n){return e.enter("htmlTextData"),u(n)}}}],91:eF,92:[{name:"hardBreakEscape",tokenize:function(e,n,t){return function(n){return e.enter("hardBreakEscape"),e.consume(n),r};function r(r){return E(r)?(e.exit("hardBreakEscape"),n(r)):t(r)}}},ev],93:eS,95:eE,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let n,t,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(n=i;++n-1){let e=t[0];"string"==typeof e?t[0]=e.slice(i):t.shift()}o>0&&t.push(e[u].slice(0,o))}return t}(o,e)}function d(){let{_bufferIndex:e,_index:n,line:t,column:i,offset:u}=r;return{_bufferIndex:e,_index:n,line:t,column:i,offset:u}}function h(e){f=f(e)}function p(e,n){n.restore()}function x(e,n){return function(t,r,i){var u;let o,c,f,a;return Array.isArray(t)?d(t):"tokenize"in t?d([t]):(u=t,function(e){let n=null!==e&&u[e],t=null!==e&&u.null;return d([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(t)?t:t?[t]:[]])(e)});function d(e){return(o=e,c=0,0===e.length)?i:function(e){return function(t){return(a=v(),f=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?p(t):e.tokenize.call(n?Object.assign(Object.create(s),n):s,l,h,p)(t)}}(e[c])}function h(n){return e(f,a),r}function p(e){if(a.restore(),++c-1){let e=t[0];"string"==typeof e?t[0]=e.slice(i):t.shift()}o>0&&t.push(e[u].slice(0,o))}return t}(o,e)}function d(){let{_bufferIndex:e,_index:n,line:t,column:i,offset:u}=r;return{_bufferIndex:e,_index:n,line:t,column:i,offset:u}}function h(e){f=f(e)}function p(e,n){n.restore()}function x(e,n){return function(t,r,i){var u;let o,c,f,a;return Array.isArray(t)?d(t):"tokenize"in t?d([t]):(u=t,function(e){let n=null!==e&&u[e],t=null!==e&&u.null;return d([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(t)?t:t?[t]:[]])(e)});function d(e){return(o=e,c=0,0===e.length)?i:function(e){return function(t){return(a=v(),f=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?p(t):e.tokenize.call(n?Object.assign(Object.create(s),n):s,l,h,p)(t)}}(e[c])}function h(n){return e(f,a),r}function p(e){if(a.restore(),++c-1){let e=t[0];"string"==typeof e?t[0]=e.slice(i):t.shift()}o>0&&t.push(e[u].slice(0,o))}return t}(o,e)}function d(){let{_bufferIndex:e,_index:n,line:t,column:i,offset:u}=r;return{_bufferIndex:e,_index:n,line:t,column:i,offset:u}}function h(e){f=f(e)}function p(e,n){n.restore()}function x(e,n){return function(t,r,i){var u;let o,c,f,a;return Array.isArray(t)?d(t):"tokenize"in t?d([t]):(u=t,function(e){let n=null!==e&&u[e],t=null!==e&&u.null;return d([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(t)?t:t?[t]:[]])(e)});function d(e){return(o=e,c=0,0===e.length)?i:function(e){return function(t){return(a=v(),f=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?p(t):e.tokenize.call(n?Object.assign(Object.create(s),n):s,l,h,p)(t)}}(e[c])}function h(n){return e(f,a),r}function p(e){if(a.restore(),++c-1){let e=t[0];"string"==typeof e?t[0]=e.slice(i):t.shift()}o>0&&t.push(e[u].slice(0,o))}return t}(o,e)}function d(){let{_bufferIndex:e,_index:n,line:t,column:i,offset:u}=r;return{_bufferIndex:e,_index:n,line:t,column:i,offset:u}}function h(e){f=f(e)}function p(e,n){n.restore()}function x(e,n){return function(t,r,i){var u;let o,c,f,a;return Array.isArray(t)?d(t):"tokenize"in t?d([t]):(u=t,function(e){let n=null!==e&&u[e],t=null!==e&&u.null;return d([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(t)?t:t?[t]:[]])(e)});function d(e){return(o=e,c=0,0===e.length)?i:function(e){return function(t){return(a=v(),f=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?p(t):e.tokenize.call(n?Object.assign(Object.create(s),n):s,l,h,p)(t)}}(e[c])}function h(n){return e(f,a),r}function p(e){if(a.restore(),++c-1){let e=t[0];"string"==typeof e?t[0]=e.slice(i):t.shift()}o>0&&t.push(e[u].slice(0,o))}return t}(o,e)}function d(){let{_bufferIndex:e,_index:n,line:t,column:i,offset:u}=r;return{_bufferIndex:e,_index:n,line:t,column:i,offset:u}}function h(e){f=f(e)}function p(e,n){n.restore()}function x(e,n){return function(t,r,i){var u;let o,c,f,a;return Array.isArray(t)?d(t):"tokenize"in t?d([t]):(u=t,function(e){let n=null!==e&&u[e],t=null!==e&&u.null;return d([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(t)?t:t?[t]:[]])(e)});function d(e){return(o=e,c=0,0===e.length)?i:function(e){return function(t){return(a=v(),f=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?p(t):e.tokenize.call(n?Object.assign(Object.create(s),n):s,l,h,p)(t)}}(e[c])}function h(n){return e(f,a),r}function p(e){if(a.restore(),++c