import{p as nr,j as H,_ as re,x as gi,m as di,L as ft}from"./index-Cy3rzI-d.js";import{g as xi,a as yi}from"./metadata-uYgMmUOT.js";import ki from"./NotFound-CrIbD0bM.js";import{A as bi}from"./arrow-left-YIuBscsc.js";import{C as wi}from"./chevron-right-C77pd8k_.js";import"./credit-card-DzAy0FTR.js";import"./download-_IsM0wTg.js";import"./message-circle-CH06EY2o.js";function Si(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ci=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ei=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ii={};function ht(e,t){return(Ii.jsx?Ei:Ci).test(e)}const Ai=/[ \t\n\f\r]/g;function Ti(e){return typeof e=="object"?e.type==="text"?pt(e.value):!1:pt(e)}function pt(e){return e.replace(Ai,"")===""}class Qe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function tr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Qe(n,r,t)}function Ln(e){return e.toLowerCase()}class ne{constructor(t,n){this.attribute=n,this.property=t}}ne.prototype.attribute="";ne.prototype.booleanish=!1;ne.prototype.boolean=!1;ne.prototype.commaOrSpaceSeparated=!1;ne.prototype.commaSeparated=!1;ne.prototype.defined=!1;ne.prototype.mustUseProperty=!1;ne.prototype.number=!1;ne.prototype.overloadedBoolean=!1;ne.prototype.property="";ne.prototype.spaceSeparated=!1;ne.prototype.space=void 0;let vi=0;const R=Ae(),X=Ae(),Dn=Ae(),E=Ae(),Y=Ae(),ze=Ae(),ie=Ae();function Ae(){return 2**++vi}const zn=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:X,commaOrSpaceSeparated:ie,commaSeparated:ze,number:E,overloadedBoolean:Dn,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),mn=Object.keys(zn);class Vn extends ne{constructor(t,n,r,i){let o=-1;if(super(t,n),mt(this,"space",i),typeof r=="number")for(;++o4&&n.slice(0,4)==="data"&&zi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(gt,Oi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!gt.test(o)){let l=o.replace(Di,Ri);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Vn}return new i(r,t)}function Ri(e){return"-"+e.toLowerCase()}function Oi(e){return e.charAt(1).toUpperCase()}const Mi=tr([rr,Pi,or,ar,ur],"html"),Un=tr([rr,_i,or,ar,ur],"svg");function Ni(e){return e.join(" ").trim()}var _e={},gn,dt;function Bi(){if(dt)return gn;dt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=` `,s="/",f="*",c="",p="comment",h="declaration";function d(S,x){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];x=x||{};var I=1,C=1;function z(L){var T=L.match(t);T&&(I+=T.length);var q=L.lastIndexOf(u);C=~q?L.length-q:C+L.length}function F(){var L={line:I,column:C};return function(T){return T.position=new b(L),j(),T}}function b(L){this.start=L,this.end={line:I,column:C},this.source=x.source}b.prototype.content=S;function M(L){var T=new Error(x.source+":"+I+":"+C+": "+L);if(T.reason=L,T.filename=x.source,T.line=I,T.column=C,T.source=S,!x.silent)throw T}function V(L){var T=L.exec(S);if(T){var q=T[0];return z(q),S=S.slice(q.length),T}}function j(){V(n)}function y(L){var T;for(L=L||[];T=v();)T!==!1&&L.push(T);return L}function v(){var L=F();if(!(s!=S.charAt(0)||f!=S.charAt(1))){for(var T=2;c!=S.charAt(T)&&(f!=S.charAt(T)||s!=S.charAt(T+1));)++T;if(T+=2,c===S.charAt(T-1))return M("End of comment missing");var q=S.slice(2,T-2);return C+=2,z(q),S=S.slice(T),C+=2,L({type:p,comment:q})}}function P(){var L=F(),T=V(r);if(T){if(v(),!V(i))return M("property missing ':'");var q=V(o),Q=L({type:h,property:w(T[0].replace(e,c)),value:q?w(q[0].replace(e,c)):c});return V(l),Q}}function U(){var L=[];y(L);for(var T;T=P();)T!==!1&&(L.push(T),y(L));return L}return j(),U()}function w(S){return S?S.replace(a,c):c}return gn=d,gn}var xt;function ji(){if(xt)return _e;xt=1;var e=_e&&_e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=n;const t=e(Bi());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),a=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(o=o||{},o[s]=f)}),o}return _e}var je={},yt;function Hi(){if(yt)return je;yt=1,Object.defineProperty(je,"__esModule",{value:!0}),je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||n.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(t,l))};return je.camelCase=u,je}var He,kt;function Vi(){if(kt)return He;kt=1;var e=He&&He.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ji()),n=Hi();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(a,u){a&&u&&(l[(0,n.camelCase)(a,o)]=u)}),l}return r.default=r,He=r,He}var Ui=Vi();const qi=nr(Ui),sr=cr("end"),qn=cr("start");function cr(e){return t;function t(n){const r=n&&n.position&&n.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 $i(e){const t=qn(e),n=sr(e);if(t&&n)return{start:t,end:n}}function qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?bt(e.position):"start"in e||"end"in e?bt(e):"line"in e||"column"in e?Fn(e):""}function Fn(e){return wt(e&&e.line)+":"+wt(e&&e.column)}function bt(e){return Fn(e&&e.start)+"-"+Fn(e&&e.end)}function wt(e){return e&&typeof e=="number"?e:1}class J extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=qe(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}J.prototype.file="";J.prototype.name="";J.prototype.reason="";J.prototype.message="";J.prototype.stack="";J.prototype.column=void 0;J.prototype.line=void 0;J.prototype.ancestors=void 0;J.prototype.cause=void 0;J.prototype.fatal=void 0;J.prototype.place=void 0;J.prototype.ruleId=void 0;J.prototype.source=void 0;const $n={}.hasOwnProperty,Wi=new Map,Yi=/[A-Z]/g,Xi=new Set(["table","tbody","thead","tfoot","tr"]),Qi=new Set(["td","th"]),fr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gi(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=il(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=rl(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Un:Mi,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=hr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function hr(e,t,n){if(t.type==="element")return Ki(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ji(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return el(e,t,n);if(t.type==="mdxjsEsm")return Zi(e,t);if(t.type==="root")return nl(e,t,n);if(t.type==="text")return tl(e,t)}function Ki(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Un,e.schema=i),e.ancestors.push(t);const o=mr(e,t.tagName,!1),l=ll(e,t);let a=Yn(e,t);return Xi.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Ti(u):!0})),pr(e,l,o,t),Wn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Ji(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ye(e,t.position)}function Zi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ye(e,t.position)}function el(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Un,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:mr(e,t.name,!0),l=ol(e,t),a=Yn(e,t);return pr(e,l,o,t),Wn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function nl(e,t,n){const r={};return Wn(r,Yn(e,t)),e.create(t,e.Fragment,r,n)}function tl(e,t){return t.value}function pr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Wn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function rl(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function il(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=qn(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function ll(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&$n.call(t.properties,i)){const o=al(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Qi.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ol(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Ye(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Ye(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Yn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Wi;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o0?(le(e,e.length,0,t),e):t}const Et={}.hasOwnProperty;function dr(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function fe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Z=we(/[A-Za-z]/),K=we(/[\dA-Za-z]/),dl=we(/[#-'*+\--9=?A-Z^-~]/);function ln(e){return e!==null&&(e<32||e===127)}const Rn=we(/\d/),xl=we(/[\dA-Fa-f]/),yl=we(/[!-/:-@[-`{-~]/);function _(e){return e!==null&&e<-2}function W(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}const sn=we(new RegExp("\\p{P}|\\p{S}","u")),Ie=we(/\s/);function we(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oe(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function B(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return O(u)?(e.enter(n),a(u)):t(u)}function a(u){return O(u)&&o++l))return;const M=t.events.length;let V=M,j,y;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(j){y=t.events[V][1].end;break}j=!0}for(x(r),b=M;bC;){const F=n[z];t.containerState=F[1],F[0].exit.call(t,e)}n.length=C}function I(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Cl(e,t,n){return B(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fe(e){if(e===null||W(e)||Ie(e))return 1;if(sn(e))return 2}function cn(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};At(c,-u),At(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=oe(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=oe(s,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),s=oe(s,cn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=oe(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=oe(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,le(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n0&&O(b)?B(e,I,"linePrefix",o+1)(b):I(b)}function I(b){return b===null||_(b)?e.check(Tt,w,z)(b):(e.enter("codeFlowValue"),C(b))}function C(b){return b===null||_(b)?(e.exit("codeFlowValue"),I(b)):(e.consume(b),C)}function z(b){return e.exit("codeFenced"),t(b)}function F(b,M,V){let j=0;return y;function y(T){return b.enter("lineEnding"),b.consume(T),b.exit("lineEnding"),v}function v(T){return b.enter("codeFencedFence"),O(T)?B(b,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):P(T)}function P(T){return T===a?(b.enter("codeFencedFenceSequence"),U(T)):V(T)}function U(T){return T===a?(j++,b.consume(T),U):j>=l?(b.exit("codeFencedFenceSequence"),O(T)?B(b,L,"whitespace")(T):L(T)):V(T)}function L(T){return T===null||_(T)?(b.exit("codeFencedFence"),M(T)):V(T)}}}function Rl(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const xn={name:"codeIndented",tokenize:Ml},Ol={partial:!0,tokenize:Nl};function Ml(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),B(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):n(s)}function l(s){return s===null?u(s):_(s)?e.attempt(Ol,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||_(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),t(s)}}function Nl(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):_(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):B(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):_(l)?i(l):n(l)}}const Bl={name:"codeText",previous:Hl,resolve:jl,tokenize:Vl};function jl(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ve(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ve(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ve(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Sr(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||ln(x)?n(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||_(x)?n(x):(e.consume(x),x===92?d:h)}function d(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function w(x){return!f&&(x===null||x===41||W(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(x)):f999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):_(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||_(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!O(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Er(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):n(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?n(p):_(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),B(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||_(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function $e(e,t){let n;return r;function r(i){return _(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):O(i)?B(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Gl={name:"definition",tokenize:Jl},Kl={partial:!0,tokenize:Zl};function Jl(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Cr.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return W(h)?$e(e,s)(h):s(h)}function s(h){return Sr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Kl,c,c)(h)}function c(h){return O(h)?B(e,p,"whitespace")(h):p(h)}function p(h){return h===null||_(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Zl(e,t,n){return r;function r(a){return W(a)?$e(e,i)(a):n(a)}function i(a){return Er(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return O(a)?B(e,l,"whitespace")(a):l(a)}function l(a){return a===null||_(a)?t(a):n(a)}}const eo={name:"hardBreakEscape",tokenize:no};function no(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return _(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const to={name:"headingAtx",resolve:ro,tokenize:io};function ro(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},le(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function io(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||W(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||_(f)?(e.exit("atxHeading"),t(f)):O(f)?B(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||W(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const lo=["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"],Pt=["pre","script","style","textarea"],oo={concrete:!0,name:"htmlFlow",resolveTo:so,tokenize:co},ao={partial:!0,tokenize:ho},uo={partial:!0,tokenize:fo};function so(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function co(e,t,n){const r=this;let i,o,l,a,u;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),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?t:m):Z(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):Z(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const se="CDATA[";return g===se.charCodeAt(a++)?(e.consume(g),a===se.length?r.interrupt?t:P:d):n(g)}function w(g){return Z(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function S(g){if(g===null||g===47||g===62||W(g)){const se=g===47,Se=l.toLowerCase();return!se&&!o&&Pt.includes(Se)?(i=1,r.interrupt?t(g):P(g)):lo.includes(l.toLowerCase())?(i=6,se?(e.consume(g),x):r.interrupt?t(g):P(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?I(g):C(g))}return g===45||K(g)?(e.consume(g),l+=String.fromCharCode(g),S):n(g)}function x(g){return g===62?(e.consume(g),r.interrupt?t:P):n(g)}function I(g){return O(g)?(e.consume(g),I):y(g)}function C(g){return g===47?(e.consume(g),y):g===58||g===95||Z(g)?(e.consume(g),z):O(g)?(e.consume(g),C):y(g)}function z(g){return g===45||g===46||g===58||g===95||K(g)?(e.consume(g),z):F(g)}function F(g){return g===61?(e.consume(g),b):O(g)?(e.consume(g),F):C(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),u=g,M):O(g)?(e.consume(g),b):V(g)}function M(g){return g===u?(e.consume(g),u=null,j):g===null||_(g)?n(g):(e.consume(g),M)}function V(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||W(g)?F(g):(e.consume(g),V)}function j(g){return g===47||g===62||O(g)?C(g):n(g)}function y(g){return g===62?(e.consume(g),v):n(g)}function v(g){return g===null||_(g)?P(g):O(g)?(e.consume(g),v):n(g)}function P(g){return g===45&&i===2?(e.consume(g),q):g===60&&i===1?(e.consume(g),Q):g===62&&i===4?(e.consume(g),ue):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),me):_(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ao,ge,U)(g)):g===null||_(g)?(e.exit("htmlFlowData"),U(g)):(e.consume(g),P)}function U(g){return e.check(uo,L,ge)(g)}function L(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),T}function T(g){return g===null||_(g)?U(g):(e.enter("htmlFlowData"),P(g))}function q(g){return g===45?(e.consume(g),m):P(g)}function Q(g){return g===47?(e.consume(g),l="",ae):P(g)}function ae(g){if(g===62){const se=l.toLowerCase();return Pt.includes(se)?(e.consume(g),ue):P(g)}return Z(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ae):P(g)}function me(g){return g===93?(e.consume(g),m):P(g)}function m(g){return g===62?(e.consume(g),ue):g===45&&i===2?(e.consume(g),m):P(g)}function ue(g){return g===null||_(g)?(e.exit("htmlFlowData"),ge(g)):(e.consume(g),ue)}function ge(g){return e.exit("htmlFlow"),t(g)}}function fo(e,t,n){const r=this;return i;function i(l){return _(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function ho(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ge,t,n)}}const po={name:"htmlText",tokenize:mo};function mo(e,t,n){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),F):m===63?(e.consume(m),C):Z(m)?(e.consume(m),V):n(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):Z(m)?(e.consume(m),I):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):_(m)?(l=c,Q(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?q(m):m===45?p(m):c(m)}function d(m){const ue="CDATA[";return m===ue.charCodeAt(o++)?(e.consume(m),o===ue.length?w:d):n(m)}function w(m){return m===null?n(m):m===93?(e.consume(m),S):_(m)?(l=w,Q(m)):(e.consume(m),w)}function S(m){return m===93?(e.consume(m),x):w(m)}function x(m){return m===62?q(m):m===93?(e.consume(m),x):w(m)}function I(m){return m===null||m===62?q(m):_(m)?(l=I,Q(m)):(e.consume(m),I)}function C(m){return m===null?n(m):m===63?(e.consume(m),z):_(m)?(l=C,Q(m)):(e.consume(m),C)}function z(m){return m===62?q(m):C(m)}function F(m){return Z(m)?(e.consume(m),b):n(m)}function b(m){return m===45||K(m)?(e.consume(m),b):M(m)}function M(m){return _(m)?(l=M,Q(m)):O(m)?(e.consume(m),M):q(m)}function V(m){return m===45||K(m)?(e.consume(m),V):m===47||m===62||W(m)?j(m):n(m)}function j(m){return m===47?(e.consume(m),q):m===58||m===95||Z(m)?(e.consume(m),y):_(m)?(l=j,Q(m)):O(m)?(e.consume(m),j):q(m)}function y(m){return m===45||m===46||m===58||m===95||K(m)?(e.consume(m),y):v(m)}function v(m){return m===61?(e.consume(m),P):_(m)?(l=v,Q(m)):O(m)?(e.consume(m),v):j(m)}function P(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,U):_(m)?(l=P,Q(m)):O(m)?(e.consume(m),P):(e.consume(m),L)}function U(m){return m===i?(e.consume(m),i=void 0,T):m===null?n(m):_(m)?(l=U,Q(m)):(e.consume(m),U)}function L(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||W(m)?j(m):(e.consume(m),L)}function T(m){return m===47||m===62||W(m)?j(m):n(m)}function q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function Q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ae}function ae(m){return O(m)?B(e,me,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):me(m)}function me(m){return e.enter("htmlTextData"),l(m)}}const Gn={name:"labelEnd",resolveAll:ko,resolveTo:bo,tokenize:wo},go={tokenize:So},xo={tokenize:Co},yo={tokenize:Eo};function ko(e){let t=-1;const n=[];for(;++t=3&&(s===null||_(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),O(s)?B(e,a,"whitespace")(s):a(s))}}const ee={continuation:{tokenize:Fo},exit:Oo,name:"list",tokenize:zo},Lo={partial:!0,tokenize:Mo},Do={partial:!0,tokenize:Ro};function zo(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Rn(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(rn,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return Rn(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ge,r.interrupt?n:f,e.attempt(Lo,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return O(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Fo(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ge,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!O(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Do,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(ee,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Ro(e,t,n){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function Oo(e){e.exit(this.containerState.type)}function Mo(e,t,n){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!O(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const _t={name:"setextUnderline",resolveTo:No,tokenize:Bo};function No(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Bo(e,t,n){const r=this;let i;return o;function o(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"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),O(s)?B(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||_(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const jo={tokenize:Ho};function Ho(e){const t=this,n=e.attempt(Ge,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt($l,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Vo={resolveAll:Ar()},Uo=Ir("string"),qo=Ir("text");function Ir(e){return{resolveAll:Ar(e==="text"?$o:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return s(f)?(n.exit("data"),o(f)):(n.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function ia(e,t){let n=-1;const r=[];let i;for(;++n0){const ce=D.tokenStack[D.tokenStack.length-1];(ce[1]||Dt).call(D,void 0,ce[0])}for(A.position={start:be(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:be(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function ya(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ka(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ba(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Oe(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function wa(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sa(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Pr(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Ca(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Pr(e,t);const i={src:Oe(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Ea(e,t){const n={src:Oe(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ia(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Aa(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Pr(e,t);const i={href:Oe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Ta(e,t){const n={href:Oe(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function va(e,t,n){const r=e.all(t),i=n?Pa(n):_r(t),o={},l=[];if(typeof t.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:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a1}function _a(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=qn(t.children[1]),u=sr(t.children[t.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Ra(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let u=-1;const s=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Rt(t.slice(i),i>0,!1)),o.join("")}function Rt(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===zt||o===Ft;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===zt||o===Ft;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Na(e,t){const n={type:"text",value:Ma(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ba(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ja={blockquote:ga,break:da,code:xa,delete:ya,emphasis:ka,footnoteReference:ba,heading:wa,html:Sa,imageReference:Ca,image:Ea,inlineCode:Ia,linkReference:Aa,link:Ta,listItem:va,list:_a,paragraph:La,root:Da,strong:za,table:Fa,tableCell:Oa,tableRow:Ra,text:Na,thematicBreak:Ba,toml:Ze,yaml:Ze,definition:Ze,footnoteDefinition:Ze};function Ze(){}const Lr=-1,fn=0,We=1,on=2,Kn=3,Jn=4,Zn=5,et=6,Dr=7,zr=8,Ha=typeof self=="object"?self:globalThis,Ot=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Ha[e](t)},Va=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case fn:case Lr:return n(l,i);case We:{const a=n([],i);for(const u of l)a.push(r(u));return a}case on:{const a=n({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case Kn:return n(new Date(l),i);case Jn:{const{source:a,flags:u}=l;return n(new RegExp(a,u),i)}case Zn:{const a=n(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case et:{const a=n(new Set,i);for(const u of l)a.add(r(u));return a}case Dr:{const{name:a,message:u}=l;return n(Ot(a,u),i)}case zr:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(Ot(o,l),i)};return r},Mt=e=>Va(new Map,e)(0),Le="",{toString:Ua}={},{keys:qa}=Object,Ue=e=>{const t=typeof e;if(t!=="object"||!e)return[fn,t];const n=Ua.call(e).slice(8,-1);switch(n){case"Array":return[We,Le];case"Object":return[on,Le];case"Date":return[Kn,Le];case"RegExp":return[Jn,Le];case"Map":return[Zn,Le];case"Set":return[et,Le];case"DataView":return[We,n]}return n.includes("Array")?[We,n]:n.includes("Error")?[Dr,n]:[on,n]},en=([e,t])=>e===fn&&(t==="function"||t==="symbol"),$a=(e,t,n,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return n.set(a,u),u},o=l=>{if(n.has(l))return n.get(l);let[a,u]=Ue(l);switch(a){case fn:{let f=l;switch(u){case"bigint":a=zr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([Lr],l)}return i([a,f],l)}case We:{if(u){let p=l;return u==="DataView"?p=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(l)),i([u,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case on:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of qa(l))(e||!en(Ue(l[p])))&&f.push([o(p),o(l[p])]);return c}case Kn:return i([a,l.toISOString()],l);case Jn:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case Zn:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(en(Ue(p))||en(Ue(h))))&&f.push([o(p),o(h)]);return c}case et:{const f=[],c=i([a,f],l);for(const p of l)(e||!en(Ue(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},Nt=(e,{json:t,lossy:n}={})=>{const r=[];return $a(!(t||n),!!t,new Map,r)(e),r},an=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Mt(Nt(e,t)):structuredClone(e):(e,t)=>Mt(Nt(e,t));function Wa(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ya(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Xa(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Wa,r=e.options.footnoteBackLabel||Ya,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u0&&d.push({type:"text",value:" "});let I=typeof n=="string"?n:n(u,h);typeof I=="string"&&(I={type:"text",value:I}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const S=f[f.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const I=S.children[S.children.length-1];I&&I.type==="text"?I.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...d)}else f.push(...d);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...an(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` `}]}}const hn=(function(e){if(e==null)return Ja;if(typeof e=="function")return pn(e);if(typeof e=="object")return Array.isArray(e)?Qa(e):Ga(e);if(typeof e=="string")return Ka(e);throw new Error("Expected function, string, or object as test")});function Qa(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=Fr,d,w,S;if((!t||o(u,s,f[f.length-1]||void 0))&&(h=tu(n(u,f)),h[0]===Mn))return h;if("children"in u&&u.children){const x=u;if(x.children&&h[0]!==nu)for(w=(r?x.children.length:-1)+l,S=f.concat(x);w>-1&&w0&&n.push({type:"text",value:` `}),n}function Bt(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function jt(e,t){const n=iu(e,t),r=n.one(e,void 0),i=Xa(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` `},i),o}function su(e,t){return e&&"run"in e?async function(n,r){const i=jt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return jt(n,{file:r,...e||t})}}function Ht(e){if(e)throw e}var kn,Vt;function cu(){if(Vt)return kn;Vt=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):t.call(s)==="[object Array]"},o=function(s){if(!s||t.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,f){n&&f.name==="__proto__"?n(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return kn=function u(){var s,f,c,p,h,d,w=arguments[0],S=1,x=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[1]||{},S=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});Sl.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&n)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const he={basename:mu,dirname:gu,extname:du,join:xu,sep:"/"};function mu(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ke(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function gu(e){if(Ke(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function du(e){Ke(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function xu(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ku(e,t){let n="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function Ke(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bu={cwd:wu};function wu(){return"/"}function jn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Su(e){if(typeof e=="string")e=new URL(e);else if(!jn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Cu(e)}function Cu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...d]=f;const w=r[p][1];Bn(w)&&Bn(h)&&(h=bn(!0,w,h)),r[p]=[s,h,...d]}}}}const Tu=new tt().freeze();function En(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function In(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function An(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qt(e){if(!Bn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $t(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function nn(e){return vu(e)?e:new Or(e)}function vu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Pu(e){return typeof e=="string"||_u(e)}function _u(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Lu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wt=[],Yt={allowDangerousHtml:!0},Du=/^(https?|ircs?|mailto|xmpp)$/i,zu=[{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:"className",id:"remove-classname"},{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 Fu(e){const t=Ru(e),n=Ou(e);return Mu(t.runSync(t.parse(n),n),e)}function Ru(e){const t=e.rehypePlugins||Wt,n=e.remarkPlugins||Wt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Yt}:Yt;return Tu().use(ma).use(n).use(su,r).use(t)}function Ou(e){const t=e.children||"",n=new Or;return typeof t=="string"&&(n.value=t),n}function Mu(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||Nu;for(const f of zu)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Lu+f.id,void 0);return nt(e,s),Gi(e,{Fragment:H.Fragment,components:i,ignoreInvalidStyle:!0,jsx:H.jsx,jsxs:H.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in dn)if(Object.hasOwn(dn,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],w=dn[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=u(String(d||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Nu(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Du.test(e.slice(0,t))?e:""}function Xt(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Bu(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ju(e,t,n){const i=hn((n||{}).ignore||[]),o=Hu(t);let l=-1;for(;++l0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=z+1:(d!==z&&I.push({type:"text",value:s.value.slice(d,z)}),Array.isArray(b)?I.push(...b):b&&I.push(b),d=z+C[0].length,x=!0),!p.global)break;C=p.exec(s.value)}return x?(d?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Xt(e,"(");let o=Xt(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Mr(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ie(n)||sn(n))&&(!t||n!==47)}Nr.peek=cs;function ts(){this.buffer()}function rs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function is(){this.buffer()}function ls(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function os(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function as(e){this.exit(e)}function us(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ss(e){this.exit(e)}function cs(){return"["}function Nr(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function fs(){return{enter:{gfmFootnoteCallString:ts,gfmFootnoteCall:rs,gfmFootnoteDefinitionLabelString:is,gfmFootnoteDefinition:ls},exit:{gfmFootnoteCallString:os,gfmFootnoteCall:as,gfmFootnoteDefinitionLabelString:us,gfmFootnoteDefinition:ss}}}function hs(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Nr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((t?` `:" ")+o.indentLines(o.containerFlow(r,a.current()),t?Br:ps))),s(),u}}function ps(e,t,n){return t===0?e:Br(e,t,n)}function Br(e,t,n){return(n?"":" ")+e}const ms=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jr.peek=ks;function gs(){return{canContainEols:["delete"],enter:{strikethrough:xs},exit:{strikethrough:ys}}}function ds(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ms}],handlers:{delete:jr}}}function xs(e){this.enter({type:"delete",children:[]},e)}function ys(e){this.exit(e)}function jr(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function ks(){return"~"}function bs(e){return e.length}function ws(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||bs,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++fs&&(s=e[f].length);++xu[x])&&(u[x]=C)}w.push(I)}l[f]=w,a[f]=S}let c=-1;if(typeof r=="object"&&"length"in r)for(;++cu[c]&&(u[c]=I),h[c]=I),p[c]=C}l.splice(1,0,p),a.splice(1,0,h),f=-1;const d=[];for(;++f "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),Es);return i(),l}function Es(e,t,n){return">"+(n?"":" ")+e}function Is(e,t){return Gt(e,t.inConstruct,!0)&&!Gt(e,t.notInConstruct,!1)}function Gt(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rl&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function Ts(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function vs(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Ps(e,t,n,r){const i=vs(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Ts(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,_s);return c(),p}const a=n.createTracker(r),u=i.repeat(Math.max(As(o,i)+1,3)),s=n.enter("codeFenced");let f=a.move(u);if(e.lang){const c=n.enter(`codeFencedLang${l}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:` `,encode:["`"],...a.current()})),c()}return f+=a.move(` `),o&&(f+=a.move(o+` `)),f+=a.move(u),s(),f}function _s(e,t,n){return(n?"":" ")+e}function rt(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ls(e,t,n,r){const i=rt(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("[");return s+=u.move(n.safe(n.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":` `,...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),l(),s}function Ds(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Xe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function un(e,t,n){const r=Fe(e),i=Fe(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hr.peek=zs;function Hr(e,t,n,r){const i=Ds(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);let u=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=un(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Xe(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=un(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Xe(c));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function zs(e,t,n){return n.options.emphasis||"*"}function Fs(e,t){let n=!1;return nt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Mn}),!!((!e.depth||e.depth<3)&&Xn(e)&&(t.options.setext||n))}function Rs(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Fs(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:` `,after:` `});return c(),f(),p+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:` `,...o.current()});return/^[\t ]/.test(s)&&(s=Xe(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),u(),a(),s}Vr.peek=Os;function Vr(e){return e.value||""}function Os(){return"<"}Ur.peek=Ms;function Ur(e,t,n,r){const i=rt(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("![");return s+=u.move(n.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function Ms(){return"!"}qr.peek=Ns;function qr(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("![");const s=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Ns(){return"!"}$r.peek=Bs;function $r(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}Yr.peek=js;function Yr(e,t,n,r){const i=rt(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let a,u;if(Wr(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),n.stack=f,c}a=n.enter("link"),u=n.enter("label");let s=l.move("[");return s+=l.move(n.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function js(e,t,n){return Wr(e,n)?"<":"["}Xr.peek=Hs;function Xr(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("[");const s=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Hs(){return"["}function it(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Vs(e){const t=it(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Us(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Qr(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function qs(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?Us(n):it(n);const a=e.ordered?l==="."?")":".":Vs(n);let u=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Qr(n)===l&&f){let c=-1;for(;++c-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function Ys(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const Xs=hn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Qs(e,t,n,r){return(e.children.some(function(l){return Xs(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Gs(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Gr.peek=Ks;function Gr(e,t,n,r){const i=Gs(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);let u=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=un(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Xe(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=un(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Xe(c));const h=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function Ks(e,t,n){return n.options.strong||"*"}function Js(e,t,n,r){return n.safe(e.value,r)}function Zs(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function ec(e,t,n){const r=(Qr(n)+(n.options.ruleSpaces?" ":"")).repeat(Zs(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Kr={blockquote:Cs,break:Kt,code:Ps,definition:Ls,emphasis:Hr,hardBreak:Kt,heading:Rs,html:Vr,image:Ur,imageReference:qr,inlineCode:$r,link:Yr,linkReference:Xr,list:qs,listItem:Ws,paragraph:Ys,root:Qs,strong:Gr,text:Js,thematicBreak:ec};function nc(){return{enter:{table:tc,tableData:Jt,tableHeader:Jt,tableRow:ic},exit:{codeText:lc,table:rc,tableData:_n,tableHeader:_n,tableRow:_n}}}function tc(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function rc(e){this.exit(e),this.data.inTable=void 0}function ic(e){this.enter({type:"tableRow",children:[]},e)}function _n(e){this.exit(e)}function Jt(e){this.enter({type:"tableCell",children:[]},e)}function lc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,oc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function oc(e,t){return t==="|"?t:e}function ac(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a}};function l(h,d,w,S){return s(f(h,w,S),h.align)}function a(h,d,w,S){const x=c(h,w,S),I=s([x]);return I.slice(0,I.indexOf(` `))}function u(h,d,w,S){const x=w.enter("tableCell"),I=w.enter("phrasing"),C=w.containerPhrasing(h,{...S,before:o,after:o});return I(),x(),C}function s(h,d){return ws(h,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function f(h,d,w){const S=h.children;let x=-1;const I=[],C=d.enter("table");for(;++x0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ic={tokenize:zc,partial:!0};function Ac(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_c,continuation:{tokenize:Lc},exit:Dc}},text:{91:{name:"gfmFootnoteCall",tokenize:Pc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Tc,resolveTo:vc}}}}function Tc(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return n(u);const s=fe(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function vc(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Pc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||W(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(fe(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return W(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function _c(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(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):n(d)}function f(d){if(l>999||d===93&&!a||d===null||d===91||W(d))return n(d);if(d===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=fe(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return W(d)||(a=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),B(e,h,"gfmFootnoteDefinitionWhitespace")):n(d)}function h(d){return t(d)}}function Lc(e,t,n){return e.check(Ge,t,e.attempt(Ic,t,n))}function Dc(e){e.exit("gfmFootnoteDefinition")}function zc(e,t,n){const r=this;return B(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function Fc(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u1?u(d):(l.consume(d),c++,h);if(c<2&&!n)return u(d);const S=l.exit("strikethroughSequenceTemporary"),x=Fe(d);return S._open=!x||x===2&&!!w,S._close=!w||w===2&&!!x,a(d)}}}class Rc{constructor(){this.map=[]}add(t,n,r){Oc(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Oc(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const L=r.events[v][1].type;if(L==="lineEnding"||L==="linePrefix")v--;else break}const P=v>-1?r.events[v][1].type:null,U=P==="tableHead"||P==="tableRow"?b:u;return U===b&&r.parser.lazy[r.now().line]?n(y):U(y)}function u(y){return e.enter("tableHead"),e.enter("tableRow"),s(y)}function s(y){return y===124||(l=!0,o+=1),f(y)}function f(y){return y===null?n(y):_(y)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):n(y):O(y)?B(e,f,"whitespace")(y):(o+=1,l&&(l=!1,i+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(y)))}function c(y){return y===null||y===124||W(y)?(e.exit("data"),f(y)):(e.consume(y),y===92?p:c)}function p(y){return y===92||y===124?(e.consume(y),c):c(y)}function h(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(y):(e.enter("tableDelimiterRow"),l=!1,O(y)?B(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):d(y))}function d(y){return y===45||y===58?S(y):y===124?(l=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),w):F(y)}function w(y){return O(y)?B(e,S,"whitespace")(y):S(y)}function S(y){return y===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),x):y===45?(o+=1,x(y)):y===null||_(y)?z(y):F(y)}function x(y){return y===45?(e.enter("tableDelimiterFiller"),I(y)):F(y)}function I(y){return y===45?(e.consume(y),I):y===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(y))}function C(y){return O(y)?B(e,z,"whitespace")(y):z(y)}function z(y){return y===124?d(y):y===null||_(y)?!l||i!==o?F(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(y)):F(y)}function F(y){return n(y)}function b(y){return e.enter("tableRow"),M(y)}function M(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),M):y===null||_(y)?(e.exit("tableRow"),t(y)):O(y)?B(e,M,"whitespace")(y):(e.enter("data"),V(y))}function V(y){return y===null||y===124||W(y)?(e.exit("data"),M(y)):(e.consume(y),y===92?j:V)}function j(y){return y===92||y===124?(e.consume(y),V):V(y)}}function jc(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new Rc;for(;++nn[2]+1){const d=n[2]+1,w=n[3]-n[2]-1;e.add(d,w,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},De(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function er(e,t,n,r,i){const o=[],l=De(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function De(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Hc={name:"tasklistCheck",tokenize:Uc};function Vc(){return{text:{91:Hc}}}function Uc(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return W(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):n(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(u)}function a(u){return _(u)?t(u):O(u)?e.check({tokenize:qc},t,n)(u):n(u)}}function qc(e,t,n){return B(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function $c(e){return dr([dc(),Ac(),Fc(e),Nc(),Vc()])}const Wc={};function Yc(e){const t=this,n=e||Wc,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push($c(n)),o.push(hc()),l.push(pc(n))}const Xc=/^---\r?\n[\s\S]*?\r?\n---\r?\n([\s\S]*)$/;function Qc(e){const t=e.match(Xc);if(!t)throw new Error("Blog post is missing frontmatter block");return t[1]}const Gc=Object.assign({"./posts/cafe-bgm-start-guide.md":()=>re(()=>import("./cafe-bgm-start-guide-XbkIhRhn.js"),[]).then(e=>e.default),"./posts/cafe-music-copyright-checklist.md":()=>re(()=>import("./cafe-music-copyright-checklist-D3BzMzHX.js"),[]).then(e=>e.default),"./posts/cafe-music-playlist-curation.md":()=>re(()=>import("./cafe-music-playlist-curation-COE5bAkh.js"),[]).then(e=>e.default),"./posts/gym-yoga-pilates-bgm.md":()=>re(()=>import("./gym-yoga-pilates-bgm-BmEWgpQL.js"),[]).then(e=>e.default),"./posts/naver-place-info-checklist.md":()=>re(()=>import("./naver-place-info-checklist-DOXuKHPs.js"),[]).then(e=>e.default),"./posts/royalty-free-music-store-use.md":()=>re(()=>import("./royalty-free-music-store-use-DSgHxb1U.js"),[]).then(e=>e.default),"./posts/store-guide-5789be29caa44d80.md":()=>re(()=>import("./store-guide-5789be29caa44d80-DxZOxds2.js"),[]).then(e=>e.default),"./posts/store-music-copyright-bill-response.md":()=>re(()=>import("./store-music-copyright-bill-response-BR_PBZ_r.js"),[]).then(e=>e.default),"./posts/store-music-copyright-explained.md":()=>re(()=>import("./store-music-copyright-explained-DyUxOvQd.js"),[]).then(e=>e.default),"./posts/store-music-monthly-cost.md":()=>re(()=>import("./store-music-monthly-cost-BZzOqW4r.js"),[]).then(e=>e.default),"./posts/store-music-service-switching-guide.md":()=>re(()=>import("./store-music-service-switching-guide-B_MJwInq.js"),[]).then(e=>e.default),"./posts/store-music-service-types.md":()=>re(()=>import("./store-music-service-types-BkVkjn7y.js"),[]).then(e=>e.default),"./posts/unmanned-store-bgm-guide.md":()=>re(()=>import("./unmanned-store-bgm-guide-BkdsGPZ8.js"),[]).then(e=>e.default)});async function Kc(e){const t=xi(e);if(!t)return;const n=Gc[t.source];if(!n)throw new Error(`Blog post source is missing: ${t.source}`);const r=await n();return{meta:t,content:Qc(r)}}async function af({params:e}){const t=e.slug?await Kc(e.slug):void 0,n=t?yi.filter(r=>r.slug!==t.meta.slug).slice(0,3):[];return{post:t??null,related:n}}function uf(){const{post:e,related:t}=gi();return e?H.jsxs("div",{className:"flex flex-col text-white",children:[H.jsxs("section",{className:"relative min-h-[35vh] flex flex-col items-center justify-center overflow-hidden px-6 pt-24 pb-10",children:[H.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/30 via-black/40 to-black"}),H.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-gradient-to-tr from-[#3C50E0]/15 to-[#10B981]/10 rounded-full blur-[100px] -z-10"}),H.jsx("div",{className:"max-w-3xl mx-auto w-full flex flex-col items-center text-center relative z-10",children:H.jsxs(di.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"flex flex-col gap-5 items-center",children:[H.jsxs(ft,{to:"/blog",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors",children:[H.jsx(bi,{className:"w-4 h-4"}),H.jsx("span",{children:"전체 글 보기"})]}),e.meta.primary_keyword&&H.jsx("div",{className:"inline-flex items-center gap-1.5 bg-[#3C50E0]/10 border border-[#3C50E0]/20 px-3 py-1 rounded-full",children:H.jsx("span",{className:"text-xs font-medium text-[#7A8CF0]",children:e.meta.primary_keyword})}),H.jsx("h1",{className:"text-3xl md:text-5xl font-bold leading-tight tracking-tight text-white drop-shadow-lg",children:e.meta.title}),H.jsx("p",{className:"text-base md:text-lg text-gray-300 font-light leading-relaxed max-w-2xl",children:e.meta.description})]})})]}),H.jsx("section",{className:"px-6 pb-16",children:H.jsx("div",{className:"max-w-3xl mx-auto bg-[#0a0a0a] border border-[#1a1a1a] rounded-2xl p-8 md:p-12",children:H.jsx("article",{className:"prose-blog",children:H.jsx(Fu,{remarkPlugins:[[Yc,{singleTilde:!1}]],components:{img:({alt:n,node:r,...i})=>H.jsx("img",{...i,alt:n??"",loading:"lazy",decoding:"async"})},children:e.content})})})}),t.length>0&&H.jsx("section",{className:"px-6 pb-24",children:H.jsxs("div",{className:"max-w-6xl mx-auto",children:[H.jsx("h2",{className:"text-2xl font-bold text-white mb-6",children:"관련 글"}),H.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:t.map(n=>H.jsxs(ft,{to:n.canonical_path,className:"group block bg-[#111] border border-[#222] rounded-xl p-6 hover:border-[#3C50E0]/50 hover:bg-[#151515] transition-all",children:[H.jsx("h3",{className:"text-base font-bold text-white mb-2 leading-snug group-hover:text-[#7A8CF0] transition-colors line-clamp-2",children:n.title}),H.jsx("p",{className:"text-xs text-gray-500 line-clamp-2 mb-4",children:n.description}),H.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-[#7A8CF0]",children:[H.jsx("span",{children:"읽기"}),H.jsx(wi,{className:"w-3 h-3"})]})]},n.slug))})]})})]}):H.jsx(ki,{})}export{uf as default,af as loader};