@novu/framework 2.10.0 → 2.10.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/cjs/{health-check.types-DwKatX-8.d.cts → health-check.types-Nhsa_lGZ.d.cts} +28 -9
  2. package/dist/cjs/index-naFCU9MB.d.cts +268 -0
  3. package/dist/cjs/index.cjs +148 -92
  4. package/dist/cjs/index.d.cts +4 -3
  5. package/dist/cjs/internal/index.cjs +1 -1
  6. package/dist/cjs/internal/index.d.cts +6 -4
  7. package/dist/cjs/jsx-dev-runtime.cjs +1 -0
  8. package/dist/cjs/jsx-dev-runtime.d.cts +1 -0
  9. package/dist/cjs/jsx-runtime.cjs +1 -0
  10. package/dist/cjs/jsx-runtime.d.cts +1 -0
  11. package/dist/cjs/servers/express.cjs +148 -92
  12. package/dist/cjs/servers/express.d.cts +5 -4
  13. package/dist/cjs/servers/h3.cjs +148 -92
  14. package/dist/cjs/servers/h3.d.cts +5 -4
  15. package/dist/cjs/servers/lambda.cjs +148 -92
  16. package/dist/cjs/servers/lambda.d.cts +6 -5
  17. package/dist/cjs/servers/nest.cjs +148 -92
  18. package/dist/cjs/servers/nest.d.cts +14 -10
  19. package/dist/cjs/servers/next.cjs +148 -92
  20. package/dist/cjs/servers/next.d.cts +5 -4
  21. package/dist/cjs/servers/nuxt.cjs +148 -92
  22. package/dist/cjs/servers/nuxt.d.cts +5 -4
  23. package/dist/cjs/servers/remix.cjs +148 -92
  24. package/dist/cjs/servers/remix.d.cts +5 -4
  25. package/dist/cjs/servers/sveltekit.cjs +148 -92
  26. package/dist/cjs/servers/sveltekit.d.cts +5 -4
  27. package/dist/cjs/step-resolver.cjs +4 -4
  28. package/dist/cjs/step-resolver.d.cts +85 -36
  29. package/dist/cjs/{subscriber.types-CftO3aFY.d.cts → subscriber.types-CNLicO8m.d.cts} +12 -1
  30. package/dist/cjs/validators.cjs +1 -1
  31. package/dist/esm/chunk-2GCKOQK4.js +0 -0
  32. package/dist/esm/chunk-2M25EATE.js +1 -0
  33. package/dist/esm/chunk-52LSX2V5.js +1 -0
  34. package/dist/esm/chunk-6GCCKYZC.js +1 -0
  35. package/dist/esm/{chunk-RCWIURDJ.js → chunk-CBLKARLC.js} +4 -4
  36. package/dist/esm/chunk-EWC7I6UD.js +1 -0
  37. package/dist/esm/chunk-T2VIX2ZH.js +22 -0
  38. package/dist/esm/{chunk-JKG63DBC.js → chunk-U3IL7QCI.js} +1 -1
  39. package/dist/esm/chunk-WUP5SBTV.js +130 -0
  40. package/dist/esm/{health-check.types-C4vZDz5x.d.ts → health-check.types-zMcfbkrA.d.ts} +28 -9
  41. package/dist/esm/index-cfmN-nqZ.d.ts +268 -0
  42. package/dist/esm/index.d.ts +4 -3
  43. package/dist/esm/index.js +1 -1
  44. package/dist/esm/internal/index.d.ts +6 -4
  45. package/dist/esm/internal/index.js +1 -1
  46. package/dist/esm/jsx-dev-runtime.d.ts +1 -0
  47. package/dist/esm/jsx-dev-runtime.js +1 -0
  48. package/dist/esm/jsx-runtime.d.ts +1 -0
  49. package/dist/esm/jsx-runtime.js +1 -0
  50. package/dist/esm/servers/express.d.ts +5 -4
  51. package/dist/esm/servers/express.js +1 -1
  52. package/dist/esm/servers/h3.d.ts +5 -4
  53. package/dist/esm/servers/h3.js +1 -1
  54. package/dist/esm/servers/lambda.d.ts +6 -5
  55. package/dist/esm/servers/lambda.js +1 -1
  56. package/dist/esm/servers/nest.d.ts +14 -10
  57. package/dist/esm/servers/nest.js +1 -1
  58. package/dist/esm/servers/next.d.ts +5 -4
  59. package/dist/esm/servers/next.js +1 -1
  60. package/dist/esm/servers/nuxt.d.ts +5 -4
  61. package/dist/esm/servers/nuxt.js +1 -1
  62. package/dist/esm/servers/remix.d.ts +5 -4
  63. package/dist/esm/servers/remix.js +1 -1
  64. package/dist/esm/servers/sveltekit.d.ts +5 -4
  65. package/dist/esm/servers/sveltekit.js +1 -1
  66. package/dist/esm/step-resolver.d.ts +85 -36
  67. package/dist/esm/step-resolver.js +1 -1
  68. package/dist/esm/{subscriber.types-CfRj4acH.d.ts → subscriber.types-B0sKq6v3.d.ts} +12 -1
  69. package/dist/esm/validators.js +1 -1
  70. package/jsx-dev-runtime/package.json +3 -0
  71. package/jsx-runtime/package.json +3 -0
  72. package/package.json +26 -3
  73. package/dist/cjs/index-BTTxx1ad.d.cts +0 -141
  74. package/dist/esm/chunk-APAOD3BG.js +0 -1
  75. package/dist/esm/chunk-LPE4ME2M.js +0 -1
  76. package/dist/esm/chunk-MQSAHSED.js +0 -1
  77. package/dist/esm/chunk-PLPQUHX6.js +0 -1
  78. package/dist/esm/chunk-WSQ6EEHO.js +0 -95
  79. package/dist/esm/index-D4Rt1gOC.d.ts +0 -141
@@ -0,0 +1,22 @@
1
+ import{a as Wi,b as Qi,c as Yi}from"./chunk-52LSX2V5.js";var pi=Wi((pg,fi)=>{"use strict";var dt=Object.prototype.hasOwnProperty,ci=Object.prototype.toString,ii=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,li=function(n){return typeof Array.isArray=="function"?Array.isArray(n):ci.call(n)==="[object Array]"},ai=function(n){if(!n||ci.call(n)!=="[object Object]")return!1;var t=dt.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&dt.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i=="undefined"||dt.call(n,i)},ui=function(n,t){ii&&t.name==="__proto__"?ii(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},si=function(n,t){if(t==="__proto__")if(dt.call(n,t)){if(oi)return oi(n,t).value}else return;return n[t]};fi.exports=function e(){var n,t,r,i,l,o,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<s;++u)if(n=arguments[u],n!=null)for(t in n)r=si(a,t),i=si(n,t),a!==i&&(c&&i&&(ai(i)||(l=li(i)))?(l?(l=!1,o=r&&li(r)?r:[]):o=r&&ai(r)?r:{},ui(a,{name:t,newValue:e(c,o,i)})):typeof i!="undefined"&&ui(a,{name:t,newValue:i}));return a}});var Ji={};function me(e,n){let t=n||Ji,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Gn(e,r,i)}function Gn(e,n,t){if(Zi(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Un(e.children,n,t)}return Array.isArray(e)?Un(e,n,t):""}function Un(e,n,t){let r=[],i=-1;for(;++i<e.length;)r[i]=Gn(e[i],n,t);return r.join("")}function Zi(e){return!!(e&&typeof e=="object")}function St(e,n){let t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}var G=ge(/[A-Za-z]/),$=ge(/[\dA-Za-z]/),$n=ge(/[#-'*+\--9=?A-Z^-~]/);function Ee(e){return e!==null&&(e<32||e===127)}var _e=ge(/\d/),Wn=ge(/[\dA-Fa-f]/),Qn=ge(/[!-/:-@[-`{-~]/);function T(e){return e!==null&&e<-2}function P(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}var Ce=ge(/\p{P}|\p{S}/u),le=ge(/\s/);function ge(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Et(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var de=(function(e){if(e==null)return to;if(typeof e=="function")return Je(e);if(typeof e=="object")return Array.isArray(e)?Xi(e):Ki(e);if(typeof e=="string")return eo(e);throw new Error("Expected function, string, or object as test")});function Xi(e){let n=[],t=-1;for(;++t<e.length;)n[t]=de(e[t]);return Je(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function Ki(e){let n=e;return Je(t);function t(r){let i=r,l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function eo(e){return Je(n);function n(t){return t&&t.type===e}}function Je(e){return n;function n(t,r,i){return!!(no(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function to(){return!0}function no(e){return e!==null&&typeof e=="object"&&"type"in e}function Yn(e){return"\x1B[33m"+e+"\x1B[39m"}var Jn=[],Ze=!0,Te=!1,Xe="skip";function je(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;let l=de(i),o=r?-1:1;a(e,void 0,[])();function a(u,s,c){let f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){let p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+Yn(u.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=Jn,d,S,E;if((!n||l(u,s,c[c.length-1]||void 0))&&(p=ro(t(u,c)),p[0]===Te))return p;if("children"in u&&u.children){let b=u;if(b.children&&p[0]!==Xe)for(S=(r?b.children.length:-1)+o,E=c.concat(b);S>-1&&S<b.children.length;){let L=b.children[S];if(d=a(L,S,E)(),d[0]===Te)return d;S=typeof d[1]=="number"?d[1]:S+o}}return p}}}function ro(e){return Array.isArray(e)?e:typeof e=="number"?[Ze,e]:e==null?Jn:[e]}function Ct(e,n,t){let i=de((t||{}).ignore||[]),l=io(n),o=-1;for(;++o<l.length;)je(e,"text",a);function a(s,c){let f=-1,m;for(;++f<c.length;){let p=c[f],d=m?m.children:void 0;if(i(p,d?d.indexOf(p):void 0,m))return;m=p}if(m)return u(s,c)}function u(s,c){let f=c[c.length-1],m=l[o][0],p=l[o][1],d=0,E=f.children.indexOf(s),b=!1,L=[];m.lastIndex=0;let C=m.exec(s.value);for(;C;){let z=C.index,B={index:C.index,input:C.input,stack:[...c,s]},y=p(...C,B);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?m.lastIndex=z+1:(d!==z&&L.push({type:"text",value:s.value.slice(d,z)}),Array.isArray(y)?L.push(...y):y&&L.push(y),d=z+C[0].length,b=!0),!m.global)break;C=m.exec(s.value)}return b?(d<s.value.length&&L.push({type:"text",value:s.value.slice(d)}),f.children.splice(E,1,...L)):L=[s],E+L.length}}function io(e){let n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let t=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<t.length;){let i=t[r];n.push([oo(i[0]),lo(i[1])])}return n}function oo(e){return typeof e=="string"?new RegExp(Et(e),"g"):e}function lo(e){return typeof e=="function"?e:function(){return e}}var Tt="phrasing",Lt=["autolink","link","image","label"];function At(){return{transforms:[po],enter:{literalAutolink:ao,literalAutolinkEmail:It,literalAutolinkHttp:It,literalAutolinkWww:It},exit:{literalAutolink:fo,literalAutolinkEmail:co,literalAutolinkHttp:uo,literalAutolinkWww:so}}}function qt(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Tt,notInConstruct:Lt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Tt,notInConstruct:Lt},{character:":",before:"[ps]",after:"\\/",inConstruct:Tt,notInConstruct:Lt}]}}function ao(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function It(e){this.config.enter.autolinkProtocol.call(this,e)}function uo(e){this.config.exit.autolinkProtocol.call(this,e)}function so(e){this.config.exit.data.call(this,e);let n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function co(e){this.config.exit.autolinkEmail.call(this,e)}function fo(e){this.exit(e)}function po(e){Ct(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mo],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ho]],{ignore:["link","linkReference"]})}function mo(e,n,t,r,i){let l="";if(!Zn(i)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!go(t)))return!1;let o=xo(t+r);if(!o[0])return!1;let a={type:"link",title:null,url:l+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function ho(e,n,t,r){return!Zn(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function go(e){let n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function xo(e){let n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")"),i=St(e,"("),l=St(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function Zn(e,n){let t=e.input.charCodeAt(e.index-1);return(e.index===0||le(t)||Ce(t))&&(!n||t!==47)}function J(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Xn.peek=Lo;function Ft(){return{enter:{gfmFootnoteDefinition:ko,gfmFootnoteDefinitionLabelString:bo,gfmFootnoteCall:So,gfmFootnoteCallString:Eo},exit:{gfmFootnoteDefinition:wo,gfmFootnoteDefinitionLabelString:yo,gfmFootnoteCall:To,gfmFootnoteCallString:Co}}}function zt(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Io,footnoteReference:Xn}}}function ko(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bo(){this.buffer()}function yo(e){let n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=J(this.sliceSerialize(e)).toLowerCase()}function wo(e){this.exit(e)}function So(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Eo(){this.buffer()}function Co(e){let n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=J(this.sliceSerialize(e)).toLowerCase()}function To(e){this.exit(e)}function Xn(e,n,t,r){let i=t.createTracker(r),l=i.move("[^"),o=t.enter("footnoteReference"),a=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{...i.current(),before:l,after:"]"})),a(),o(),l+=i.move("]"),l}function Lo(){return"["}function Io(e,n,t,r){let i=t.createTracker(r),l=i.move("[^"),o=t.enter("footnoteDefinition"),a=t.enter("label");return l+=i.move(t.safe(t.associationId(e),{...i.current(),before:l,after:"]"})),a(),l+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),l+=i.move(t.indentLines(t.containerFlow(e,i.current()),Ao)),o(),l}function Ao(e,n,t){return n===0?e:(t?"":" ")+e}var qo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Kn.peek=Do;function Dt(){return{canContainEols:["delete"],enter:{strikethrough:Fo},exit:{strikethrough:zo}}}function vt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:qo}],handlers:{delete:Kn}}}function Fo(e){this.enter({type:"delete",children:[]},e)}function zo(e){this.exit(e)}function Kn(e,n,t,r){let i=t.createTracker(r),l=t.enter("strikethrough"),o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Do(){return"~"}function tr(e,n={}){let t=(n.align||[]).concat(),r=n.stringLength||Po,i=[],l=[],o=[],a=[],u=0,s=-1;for(;++s<e.length;){let d=[],S=[],E=-1;for(e[s].length>u&&(u=e[s].length);++E<e[s].length;){let b=vo(e[s][E]);if(n.alignDelimiters!==!1){let L=r(b);S[E]=L,(a[E]===void 0||L>a[E])&&(a[E]=L)}d.push(b)}l[s]=d,o[s]=S}let c=-1;if(typeof t=="object"&&"length"in t)for(;++c<u;)i[c]=er(t[c]);else{let d=er(t);for(;++c<u;)i[c]=d}c=-1;let f=[],m=[];for(;++c<u;){let d=i[c],S="",E="";d===99?(S=":",E=":"):d===108?S=":":d===114&&(E=":");let b=n.alignDelimiters===!1?1:Math.max(1,a[c]-S.length-E.length),L=S+"-".repeat(b)+E;n.alignDelimiters!==!1&&(b=S.length+b+E.length,b>a[c]&&(a[c]=b),m[c]=b),f[c]=L}l.splice(1,0,f),o.splice(1,0,m),s=-1;let p=[];for(;++s<l.length;){let d=l[s],S=o[s];c=-1;let E=[];for(;++c<u;){let b=d[c]||"",L="",C="";if(n.alignDelimiters!==!1){let z=a[c]-(S[c]||0),B=i[c];B===114?L=" ".repeat(z):B===99?z%2?(L=" ".repeat(z/2+.5),C=" ".repeat(z/2-.5)):(L=" ".repeat(z/2),C=L):C=" ".repeat(z)}n.delimiterStart!==!1&&!c&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||c)&&E.push(" "),n.alignDelimiters!==!1&&E.push(L),E.push(b),n.alignDelimiters!==!1&&E.push(C),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&E.push("|")}p.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return p.join(`
2
+ `)}function vo(e){return e==null?"":String(e)}function Po(e){return e.length}function er(e){let n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function nr(e,n,t,r){let i=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);let o=t.indentLines(t.containerFlow(e,l.current()),Ro);return i(),o}function Ro(e,n,t){return">"+(t?"":" ")+e}function ir(e,n){return rr(e,n.inConstruct,!0)&&!rr(e,n.notInConstruct,!1)}function rr(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Pt(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
3
+ `&&ir(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
4
+ `}function or(e,n){let t=String(e),r=t.indexOf(n),i=r,l=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function lr(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ar(e){let n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function ur(e,n,t,r){let i=ar(t),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(lr(e,t)){let f=t.enter("codeIndented"),m=t.indentLines(l,Bo);return f(),m}let a=t.createTracker(r),u=i.repeat(Math.max(or(l,i)+1,3)),s=t.enter("codeFenced"),c=a.move(u);if(e.lang){let f=t.enter(`codeFencedLang${o}`);c+=a.move(t.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){let f=t.enter(`codeFencedMeta${o}`);c+=a.move(" "),c+=a.move(t.safe(e.meta,{before:c,after:`
5
+ `,encode:["`"],...a.current()})),f()}return c+=a.move(`
6
+ `),l&&(c+=a.move(l+`
7
+ `)),c+=a.move(u),s(),c}function Bo(e,n,t){return(t?"":" ")+e}function De(e){let n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function sr(e,n,t,r){let i=De(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("definition"),a=t.enter("label"),u=t.createTracker(r),s=u.move("[");return s+=u.move(t.safe(t.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":`
8
+ `,...u.current()}))),a(),e.title&&(a=t.enter(`title${l}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),o(),s}function cr(e){let n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}Rt.peek=Oo;function Rt(e,n,t,r){let i=cr(t),l=t.enter("emphasis"),o=t.createTracker(r),a=o.move(i);return a+=o.move(t.containerPhrasing(e,{before:a,after:i,...o.current()})),a+=o.move(i),l(),a}function Oo(e,n,t){return t.options.emphasis||"*"}function Bt(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),je(e,l,a,i);function a(u,s){let c=s[s.length-1],f=c?c.children.indexOf(u):void 0;return o(u,f,c)}}function fr(e,n){let t=!1;return Bt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Te}),!!((!e.depth||e.depth<3)&&me(e)&&(n.options.setext||t))}function pr(e,n,t,r){let i=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(r);if(fr(e,t)){let c=t.enter("headingSetext"),f=t.enter("phrasing"),m=t.containerPhrasing(e,{...l.current(),before:`
9
+ `,after:`
10
+ `});return f(),c(),m+`
11
+ `+(i===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
12
+ `))+1))}let o="#".repeat(i),a=t.enter("headingAtx"),u=t.enter("phrasing");l.move(o+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
13
+ `,...l.current()});return/^[\t ]/.test(s)&&(s="&#x"+s.charCodeAt(0).toString(16).toUpperCase()+";"+s.slice(1)),s=s?o+" "+s:o,t.options.closeAtx&&(s+=" "+o),u(),a(),s}Ot.peek=Mo;function Ot(e){return e.value||""}function Mo(){return"<"}Mt.peek=No;function Mt(e,n,t,r){let i=De(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("image"),a=t.enter("label"),u=t.createTracker(r),s=u.move("![");return s+=u.move(t.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=t.enter(`title${l}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),o(),s}function No(){return"!"}Nt.peek=_o;function Nt(e,n,t,r){let i=e.referenceType,l=t.enter("imageReference"),o=t.enter("label"),a=t.createTracker(r),u=a.move("!["),s=t.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),o();let c=t.stack;t.stack=[],o=t.enter("reference");let f=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return o(),t.stack=c,l(),i==="full"||!s||s!==f?u+=a.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function _o(){return"!"}_t.peek=jo;function _t(e,n,t){let r=e.value||"",i="`",l=-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+" ");++l<t.unsafe.length;){let o=t.unsafe[l],a=t.compilePattern(o),u;if(o.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function jo(){return"`"}function jt(e,n){let t=me(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Vt.peek=Vo;function Vt(e,n,t,r){let i=De(t),l=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r),a,u;if(jt(e,t)){let c=t.stack;t.stack=[],a=t.enter("autolink");let f=o.move("<");return f+=o.move(t.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),a(),t.stack=c,f}a=t.enter("link"),u=t.enter("label");let s=o.move("[");return s+=o.move(t.containerPhrasing(e,{before:s,after:"](",...o.current()})),s+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(u=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=t.enter(`title${l}`),s+=o.move(" "+i),s+=o.move(t.safe(e.title,{before:s,after:i,...o.current()})),s+=o.move(i),u()),s+=o.move(")"),a(),s}function Vo(e,n,t){return jt(e,t)?"<":"["}Ht.peek=Ho;function Ht(e,n,t,r){let i=e.referenceType,l=t.enter("linkReference"),o=t.enter("label"),a=t.createTracker(r),u=a.move("["),s=t.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),o();let c=t.stack;t.stack=[],o=t.enter("reference");let f=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return o(),t.stack=c,l(),i==="full"||!s||s!==f?u+=a.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Ho(){return"["}function ve(e){let n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function mr(e){let n=ve(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function hr(e){let n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Ke(e){let n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function gr(e,n,t,r){let i=t.enter("list"),l=t.bulletCurrent,o=e.ordered?hr(t):ve(t),a=e.ordered?o==="."?")":".":mr(t),u=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),Ke(t)===o&&c){let f=-1;for(;++f<e.children.length;){let m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(o=a),t.bulletCurrent=o;let s=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=l,i(),s}function dr(e){let n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function xr(e,n,t,r){let i=dr(t),l=t.bulletCurrent||ve(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);let a=t.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);let u=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,a.current()),c);return u(),s;function c(f,m,p){return m?(p?"":" ".repeat(o))+f:(p?l:l+" ".repeat(o-l.length))+f}}function kr(e,n,t,r){let i=t.enter("paragraph"),l=t.enter("phrasing"),o=t.containerPhrasing(e,r);return l(),i(),o}var Ut=de(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function br(e,n,t,r){return(e.children.some(function(o){return Ut(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function yr(e){let n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Gt.peek=Uo;function Gt(e,n,t,r){let i=yr(t),l=t.enter("strong"),o=t.createTracker(r),a=o.move(i+i);return a+=o.move(t.containerPhrasing(e,{before:a,after:i,...o.current()})),a+=o.move(i+i),l(),a}function Uo(e,n,t){return t.options.strong||"*"}function wr(e,n,t,r){return t.safe(e.value,r)}function Sr(e){let n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Er(e,n,t){let r=(Ke(t)+(t.options.ruleSpaces?" ":"")).repeat(Sr(t));return t.options.ruleSpaces?r.slice(0,-1):r}var Ve={blockquote:nr,break:Pt,code:ur,definition:sr,emphasis:Rt,hardBreak:Pt,heading:pr,html:Ot,image:Mt,imageReference:Nt,inlineCode:_t,link:Vt,linkReference:Ht,list:gr,listItem:xr,paragraph:kr,root:br,strong:Gt,text:wr,thematicBreak:Er};var $t={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
14
+ `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var Go={}.hasOwnProperty;function Pe(e){return Go.call($t,e)?$t[e]:!1}function et(e,n){let t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"\uFFFD":String.fromCodePoint(t)}var $o=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Cr(e){return e.replace($o,Wo)}function Wo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){let i=t.charCodeAt(1),l=i===120||i===88;return et(t.slice(l?2:1),l?16:10)}return Pe(t)||e}function Qt(){return{enter:{table:Qo,tableData:Tr,tableHeader:Tr,tableRow:Jo},exit:{codeText:Zo,table:Yo,tableData:Wt,tableHeader:Wt,tableRow:Wt}}}function Qo(e){let n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Yo(e){this.exit(e),this.data.inTable=void 0}function Jo(e){this.enter({type:"tableRow",children:[]},e)}function Wt(e){this.exit(e)}function Tr(e){this.enter({type:"tableCell",children:[]},e)}function Zo(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Xo));let t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Xo(e,n){return n==="|"?n:e}function Yt(e){let n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
15
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:o,tableCell:u,tableRow:a}};function o(p,d,S,E){return s(c(p,S,E),p.align)}function a(p,d,S,E){let b=f(p,S,E),L=s([b]);return L.slice(0,L.indexOf(`
16
+ `))}function u(p,d,S,E){let b=S.enter("tableCell"),L=S.enter("phrasing"),C=S.containerPhrasing(p,{...E,before:l,after:l});return L(),b(),C}function s(p,d){return tr(p,{align:d,alignDelimiters:r,padding:t,stringLength:i})}function c(p,d,S){let E=p.children,b=-1,L=[],C=d.enter("table");for(;++b<E.length;)L[b]=f(E[b],d,S);return C(),L}function f(p,d,S){let E=p.children,b=-1,L=[],C=d.enter("tableRow");for(;++b<E.length;)L[b]=u(E[b],p,d,S);return C(),L}function m(p,d,S){let E=Ve.inlineCode(p,d,S);return S.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function Jt(){return{exit:{taskListCheckValueChecked:Lr,taskListCheckValueUnchecked:Lr,paragraph:Ko}}}function Zt(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:el}}}function Lr(e){let n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Ko(e){let n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){let t=this.stack[this.stack.length-1];t.type;let r=t.children[0];if(r&&r.type==="text"){let i=n.children,l=-1,o;for(;++l<i.length;){let a=i[l];if(a.type==="paragraph"){o=a;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function el(e,n,t,r){let i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);l&&a.move(o);let u=Ve.listItem(e,n,t,{...r,...a.current()});return l&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(c){return c+o}}function Xt(){return[At(),Ft(),Dt(),Qt(),Jt()]}function Kt(e){return{extensions:[qt(),zt(),vt(),Yt(e),Zt()]}}function H(e,n,t,r){let i=e.length,l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function X(e,n){return e.length>0?(H(e,e.length,0,n),e):n}var Ir={}.hasOwnProperty;function tt(e){let n={},t=-1;for(;++t<e.length;)tl(n,e[t]);return n}function tl(e,n){let t;for(t in n){let i=(Ir.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t],o;if(l)for(o in l){Ir.call(i,o)||(i[o]=[]);let a=l[o];nl(i[o],Array.isArray(a)?a:a?[a]:[])}}}function nl(e,n){let t=-1,r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);H(e,0,0,r)}var rl={tokenize:ul,partial:!0},Ar={tokenize:sl,partial:!0},qr={tokenize:cl,partial:!0},Fr={tokenize:fl,partial:!0},il={tokenize:pl,partial:!0},zr={name:"wwwAutolink",tokenize:ll,previous:vr},Dr={name:"protocolAutolink",tokenize:al,previous:Pr},he={name:"emailAutolink",tokenize:ol,previous:Rr},ae={};function tn(){return{text:ae}}var Le=48;for(;Le<123;)ae[Le]=he,Le++,Le===58?Le=65:Le===91&&(Le=97);ae[43]=he;ae[45]=he;ae[46]=he;ae[95]=he;ae[72]=[he,Dr];ae[104]=[he,Dr];ae[87]=[he,zr];ae[119]=[he,zr];function ol(e,n,t){let r=this,i,l;return o;function o(f){return!en(f)||!Rr.call(r,r.previous)||nn(r.events)?t(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return en(f)?(e.consume(f),a):f===64?(e.consume(f),u):t(f)}function u(f){return f===46?e.check(il,c,s)(f):f===45||f===95||$(f)?(l=!0,e.consume(f),u):c(f)}function s(f){return e.consume(f),i=!0,u}function c(f){return l&&i&&G(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(f)):t(f)}}function ll(e,n,t){let r=this;return i;function i(o){return o!==87&&o!==119||!vr.call(r,r.previous)||nn(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rl,e.attempt(Ar,e.attempt(qr,l),t),t)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function al(e,n,t){let r=this,i="",l=!1;return o;function o(f){return(f===72||f===104)&&Pr.call(r,r.previous)&&!nn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):t(f)}function a(f){if(G(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){let m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return t(f)}function u(f){return f===47?(e.consume(f),l?s:(l=!0,u)):t(f)}function s(f){return f===null||Ee(f)||P(f)||le(f)||Ce(f)?t(f):e.attempt(Ar,e.attempt(qr,c),t)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(f)}}function ul(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):t(o)}function l(o){return o===null?t(o):n(o)}}function sl(e,n,t){let r,i,l;return o;function o(s){return s===46||s===95?e.check(Fr,u,a)(s):s===null||P(s)||le(s)||s!==45&&Ce(s)?u(s):(l=!0,e.consume(s),o)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),o}function u(s){return i||r||!l?t(s):n(s)}}function cl(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Fr,n,l)(o):o===null||P(o)||le(o)?n(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function fl(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),l):a===93?(e.consume(a),i):a===60||a===null||P(a)||le(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||P(a)||le(a)?n(a):r(a)}function l(a){return G(a)?o(a):t(a)}function o(a){return a===59?(e.consume(a),r):G(a)?(e.consume(a),o):t(a)}}function pl(e,n,t){return r;function r(l){return e.consume(l),i}function i(l){return $(l)?t(l):n(l)}}function vr(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||P(e)}function Pr(e){return!G(e)}function Rr(e){return!(e===47||en(e))}function en(e){return e===43||e===45||e===46||e===95||$(e)}function nn(e){let n=e.length,t=!1;for(;n--;){let r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}function Re(e){if(e===null||P(e)||le(e))return 1;if(Ce(e))return 2}function xe(e,n,t){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}var He={name:"attention",tokenize:hl,resolveAll:ml};function ml(e,n){let t=-1,r,i,l,o,a,u,s,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;let f=Object.assign({},e[r][1].end),m=Object.assign({},e[t][1].start);Br(f,-u),Br(m,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:m},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},a.end),s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=X(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=X(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=X(s,xe(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=X(s,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,s=X(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,H(e,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function hl(e,n){let t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Re(r),l;return o;function o(u){return l=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===l)return e.consume(u),a;let s=e.exit("attentionSequence"),c=Re(u),f=!c||c===2&&i||t.includes(u),m=!i||i===2&&c||t.includes(r);return s._open=!!(l===42?f:f&&(i||!m)),s._close=!!(l===42?m:m&&(c||!f)),n(u)}}function Br(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}var rn={name:"autolink",tokenize:gl};function gl(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return G(p)?(e.consume(p),o):p===64?t(p):s(p)}function o(p){return p===43||p===45||p===46||$(p)?(r=1,a(p)):s(p)}function a(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||$(p))&&r++<32?(e.consume(p),a):(r=0,s(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||Ee(p)?t(p):(e.consume(p),u)}function s(p){return p===64?(e.consume(p),c):$n(p)?(e.consume(p),s):t(p)}function c(p){return $(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):m(p)}function m(p){if((p===45||$(p))&&r++<63){let d=p===45?m:f;return e.consume(p),d}return t(p)}}function A(e,n,t,r){let i=r?r-1:Number.POSITIVE_INFINITY,l=0;return o;function o(u){return q(u)?(e.enter(t),a(u)):n(u)}function a(u){return q(u)&&l++<i?(e.consume(u),a):(e.exit(t),n(u))}}var ue={tokenize:dl,partial:!0};function dl(e,n,t){return r;function r(l){return q(l)?A(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||T(l)?n(l):t(l)}}var nt={name:"blockQuote",tokenize:xl,continuation:{tokenize:kl},exit:bl};function xl(e,n,t){let r=this;return i;function i(o){if(o===62){let a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return q(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function kl(e,n,t){let r=this;return i;function i(o){return q(o)?A(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(nt,n,t)(o)}}function bl(e){e.exit("blockQuote")}var rt={name:"characterEscape",tokenize:yl};function yl(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Qn(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}var it={name:"characterReference",tokenize:wl};function wl(e,n,t){let r=this,i=0,l,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),l=31,o=$,c(f))}function s(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Wn,c):(e.enter("characterReferenceValue"),l=7,o=_e,c(f))}function c(f){if(f===59&&i){let m=e.exit("characterReferenceValue");return o===$&&!Pe(r.sliceSerialize(m))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),c):t(f)}}var Or={tokenize:El,partial:!0},ot={name:"codeFenced",tokenize:Sl,concrete:!0};function Sl(e,n,t){let r=this,i={tokenize:B,partial:!0},l=0,o=0,a;return u;function u(y){return s(y)}function s(y){let O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===a?(o++,e.consume(y),c):o<3?t(y):(e.exit("codeFencedFenceSequence"),q(y)?A(e,f,"whitespace")(y):f(y))}function f(y){return y===null||T(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(Or,S,z)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||T(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):q(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),A(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),m)}function p(y){return y===null||T(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===null||T(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===a?t(y):(e.consume(y),d)}function S(y){return e.attempt(i,z,E)(y)}function E(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return l>0&&q(y)?A(e,L,"linePrefix",l+1)(y):L(y)}function L(y){return y===null||T(y)?e.check(Or,S,z)(y):(e.enter("codeFlowValue"),C(y))}function C(y){return y===null||T(y)?(e.exit("codeFlowValue"),L(y)):(e.consume(y),C)}function z(y){return e.exit("codeFenced"),n(y)}function B(y,O,j){let M=0;return x;function x(v){return y.enter("lineEnding"),y.consume(v),y.exit("lineEnding"),W}function W(v){return y.enter("codeFencedFence"),q(v)?A(y,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):N(v)}function N(v){return v===a?(y.enter("codeFencedFenceSequence"),I(v)):j(v)}function I(v){return v===a?(M++,y.consume(v),I):M>=o?(y.exit("codeFencedFenceSequence"),q(v)?A(y,D,"whitespace")(v):D(v)):j(v)}function D(v){return v===null||T(v)?(y.exit("codeFencedFence"),O(v)):j(v)}}}function El(e,n,t){let r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}var Ue={name:"codeIndented",tokenize:Tl},Cl={tokenize:Ll,partial:!0};function Tl(e,n,t){let r=this;return i;function i(s){return e.enter("codeIndented"),A(e,l,"linePrefix",5)(s)}function l(s){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?e.attempt(Cl,o,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function Ll(e,n,t){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):A(e,l,"linePrefix",5)(o)}function l(o){let a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):T(o)?i(o):t(o)}}var on={name:"codeText",tokenize:ql,resolve:Il,previous:Al};function Il(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Al(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ql(e,n,t){let r=this,i=0,l,o;return a;function a(m){return e.enter("codeText"),e.enter("codeTextSequence"),u(m)}function u(m){return m===96?(e.consume(m),i++,u):(e.exit("codeTextSequence"),s(m))}function s(m){return m===null?t(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),s):m===96?(o=e.enter("codeTextSequence"),l=0,f(m)):T(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||T(m)?(e.exit("codeTextData"),s(m)):(e.consume(m),c)}function f(m){return m===96?(e.consume(m),l++,f):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(m)):(o.type="codeTextData",c(m))}}var lt=class{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){let r=t==null?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){let i=t||0;this.setCursor(Math.trunc(n));let l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ge(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ge(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ge(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){let t=this.left.splice(n,Number.POSITIVE_INFINITY);Ge(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ge(this.left,t.reverse())}}};function Ge(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function at(e){let n={},t=-1,r,i,l,o,a,u,s,c=new lt(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Fl(c,t)),t=n[t],s=!0);else if(r[1]._container){for(l=t,i=void 0;l--&&(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);i&&(r[1].end=Object.assign({},c.get(i)[1].start),a=c.slice(i,t),a.unshift(r),c.splice(i,t-i+1,a))}}return H(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function Fl(e,n){let t=e.get(n)[1],r=e.get(n)[2],i=n-1,l=[],o=t._tokenizer||r.parser[t.contentType](t.start),a=o.events,u=[],s={},c,f,m=-1,p=t,d=0,S=0,E=[S];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(S=m+1,E.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),m=E.length;m--;){let b=a.slice(E[m],E[m+1]),L=l.pop();u.push([L,L+b.length-1]),e.splice(L,2,b)}for(u.reverse(),m=-1;++m<u.length;)s[d+u[m][0]]=d+u[m][1],d+=u[m][1]-u[m][0]-1;return s}var ln={tokenize:vl,resolve:Dl},zl={tokenize:Pl,partial:!0};function Dl(e){return at(e),e}function vl(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):T(a)?e.check(zl,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Pl(e,n,t){let r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),A(e,l,"linePrefix")}function l(o){if(o===null||T(o))return t(o);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function ut(e,n,t,r,i,l,o,a,u){let s=u||Number.POSITIVE_INFINITY,c=0;return f;function f(b){return b===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(b),e.exit(l),m):b===null||b===32||b===41||Ee(b)?t(b):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(b))}function m(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(a),m(b)):b===null||b===60||T(b)?t(b):(e.consume(b),b===92?d:p)}function d(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function S(b){return!c&&(b===null||b===41||P(b))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(b)):c<s&&b===40?(e.consume(b),c++,S):b===41?(e.consume(b),c--,S):b===null||b===32||b===40||Ee(b)?t(b):(e.consume(b),b===92?E:S)}function E(b){return b===40||b===41||b===92?(e.consume(b),S):S(b)}}function st(e,n,t,r,i,l){let o=this,a=0,u;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),c}function c(p){return a>999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!q(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function ct(e,n,t,r,i,l){let o;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),o=m===40?41:m,u):t(m)}function u(m){return m===o?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),n):(e.enter(l),s(m))}function s(m){return m===o?(e.exit(l),u(o)):m===null?t(m):T(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),A(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===o||m===null||T(m)?(e.exit("chunkString"),s(m)):(e.consume(m),m===92?f:c)}function f(m){return m===o||m===92?(e.consume(m),c):c(m)}}function Ie(e,n){let t;return r;function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):q(i)?A(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}var an={name:"definition",tokenize:Bl},Rl={tokenize:Ol,partial:!0};function Bl(e,n,t){let r=this,i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return st.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=J(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):t(p)}function u(p){return P(p)?Ie(e,s)(p):s(p)}function s(p){return ut(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Rl,f,f)(p)}function f(p){return q(p)?A(e,m,"whitespace")(p):m(p)}function m(p){return p===null||T(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Ol(e,n,t){return r;function r(a){return P(a)?Ie(e,i)(a):t(a)}function i(a){return ct(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return q(a)?A(e,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?n(a):t(a)}}var un={name:"hardBreakEscape",tokenize:Ml};function Ml(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return T(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}var sn={name:"headingAtx",tokenize:_l,resolve:Nl};function Nl(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},H(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function _l(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||P(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(e.exit("atxHeading"),n(c)):q(c)?A(e,a,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||P(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),s)}}var Mr=["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"],cn=["pre","script","style","textarea"];var fn={name:"htmlFlow",tokenize:Ul,resolveTo:Hl,concrete:!0},jl={tokenize:$l,partial:!0},Vl={tokenize:Gl,partial:!0};function Hl(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ul(e,n,t){let r=this,i,l,o,a,u;return s;function s(g){return c(g)}function c(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),m):g===47?(e.consume(g),l=!0,S):g===63?(e.consume(g),i=3,r.interrupt?n:h):G(g)?(e.consume(g),o=String.fromCharCode(g),E):t(g)}function m(g){return g===45?(e.consume(g),i=2,p):g===91?(e.consume(g),i=5,a=0,d):G(g)?(e.consume(g),i=4,r.interrupt?n:h):t(g)}function p(g){return g===45?(e.consume(g),r.interrupt?n:h):t(g)}function d(g){let K="CDATA[";return g===K.charCodeAt(a++)?(e.consume(g),a===K.length?r.interrupt?n:N:d):t(g)}function S(g){return G(g)?(e.consume(g),o=String.fromCharCode(g),E):t(g)}function E(g){if(g===null||g===47||g===62||P(g)){let K=g===47,ye=o.toLowerCase();return!K&&!l&&cn.includes(ye)?(i=1,r.interrupt?n(g):N(g)):Mr.includes(o.toLowerCase())?(i=6,K?(e.consume(g),b):r.interrupt?n(g):N(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):l?L(g):C(g))}return g===45||$(g)?(e.consume(g),o+=String.fromCharCode(g),E):t(g)}function b(g){return g===62?(e.consume(g),r.interrupt?n:N):t(g)}function L(g){return q(g)?(e.consume(g),L):x(g)}function C(g){return g===47?(e.consume(g),x):g===58||g===95||G(g)?(e.consume(g),z):q(g)?(e.consume(g),C):x(g)}function z(g){return g===45||g===46||g===58||g===95||$(g)?(e.consume(g),z):B(g)}function B(g){return g===61?(e.consume(g),y):q(g)?(e.consume(g),B):C(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),u=g,O):q(g)?(e.consume(g),y):j(g)}function O(g){return g===u?(e.consume(g),u=null,M):g===null||T(g)?t(g):(e.consume(g),O)}function j(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||P(g)?B(g):(e.consume(g),j)}function M(g){return g===47||g===62||q(g)?C(g):t(g)}function x(g){return g===62?(e.consume(g),W):t(g)}function W(g){return g===null||T(g)?N(g):q(g)?(e.consume(g),W):t(g)}function N(g){return g===45&&i===2?(e.consume(g),V):g===60&&i===1?(e.consume(g),U):g===62&&i===4?(e.consume(g),te):g===63&&i===3?(e.consume(g),h):g===93&&i===5?(e.consume(g),oe):T(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jl,se,I)(g)):g===null||T(g)?(e.exit("htmlFlowData"),I(g)):(e.consume(g),N)}function I(g){return e.check(Vl,D,se)(g)}function D(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),v}function v(g){return g===null||T(g)?I(g):(e.enter("htmlFlowData"),N(g))}function V(g){return g===45?(e.consume(g),h):N(g)}function U(g){return g===47?(e.consume(g),o="",ne):N(g)}function ne(g){if(g===62){let K=o.toLowerCase();return cn.includes(K)?(e.consume(g),te):N(g)}return G(g)&&o.length<8?(e.consume(g),o+=String.fromCharCode(g),ne):N(g)}function oe(g){return g===93?(e.consume(g),h):N(g)}function h(g){return g===62?(e.consume(g),te):g===45&&i===2?(e.consume(g),h):N(g)}function te(g){return g===null||T(g)?(e.exit("htmlFlowData"),se(g)):(e.consume(g),te)}function se(g){return e.exit("htmlFlow"),n(g)}}function Gl(e,n,t){let r=this;return i;function i(o){return T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function $l(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ue,n,t)}}var pn={name:"htmlText",tokenize:Wl};function Wl(e,n,t){let r=this,i,l,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),u}function u(h){return h===33?(e.consume(h),s):h===47?(e.consume(h),B):h===63?(e.consume(h),C):G(h)?(e.consume(h),j):t(h)}function s(h){return h===45?(e.consume(h),c):h===91?(e.consume(h),l=0,d):G(h)?(e.consume(h),L):t(h)}function c(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),m):T(h)?(o=f,U(h)):(e.consume(h),f)}function m(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?V(h):h===45?m(h):f(h)}function d(h){let te="CDATA[";return h===te.charCodeAt(l++)?(e.consume(h),l===te.length?S:d):t(h)}function S(h){return h===null?t(h):h===93?(e.consume(h),E):T(h)?(o=S,U(h)):(e.consume(h),S)}function E(h){return h===93?(e.consume(h),b):S(h)}function b(h){return h===62?V(h):h===93?(e.consume(h),b):S(h)}function L(h){return h===null||h===62?V(h):T(h)?(o=L,U(h)):(e.consume(h),L)}function C(h){return h===null?t(h):h===63?(e.consume(h),z):T(h)?(o=C,U(h)):(e.consume(h),C)}function z(h){return h===62?V(h):C(h)}function B(h){return G(h)?(e.consume(h),y):t(h)}function y(h){return h===45||$(h)?(e.consume(h),y):O(h)}function O(h){return T(h)?(o=O,U(h)):q(h)?(e.consume(h),O):V(h)}function j(h){return h===45||$(h)?(e.consume(h),j):h===47||h===62||P(h)?M(h):t(h)}function M(h){return h===47?(e.consume(h),V):h===58||h===95||G(h)?(e.consume(h),x):T(h)?(o=M,U(h)):q(h)?(e.consume(h),M):V(h)}function x(h){return h===45||h===46||h===58||h===95||$(h)?(e.consume(h),x):W(h)}function W(h){return h===61?(e.consume(h),N):T(h)?(o=W,U(h)):q(h)?(e.consume(h),W):M(h)}function N(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,I):T(h)?(o=N,U(h)):q(h)?(e.consume(h),N):(e.consume(h),D)}function I(h){return h===i?(e.consume(h),i=void 0,v):h===null?t(h):T(h)?(o=I,U(h)):(e.consume(h),I)}function D(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||P(h)?M(h):(e.consume(h),D)}function v(h){return h===47||h===62||P(h)?M(h):t(h)}function V(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function U(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ne}function ne(h){return q(h)?A(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):oe(h)}function oe(h){return e.enter("htmlTextData"),o(h)}}var Ae={name:"labelEnd",tokenize:Kl,resolveTo:Xl,resolveAll:Zl},Ql={tokenize:ea},Yl={tokenize:ta},Jl={tokenize:na};function Zl(e){let n=-1;for(;++n<e.length;){let t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function Xl(e,n){let t=e.length,r=0,i,l,o,a;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);let u={type:e[l][1].type==="labelLink"?"link":"image",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"label",start:Object.assign({},e[l][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[l+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return a=[["enter",u,n],["enter",s,n]],a=X(a,e.slice(l+1,l+r+3)),a=X(a,[["enter",c,n]]),a=X(a,xe(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=X(a,[["exit",c,n],e[o-2],e[o-1],["exit",s,n]]),a=X(a,e.slice(o+1)),a=X(a,[["exit",u,n]]),H(e,l,e.length,a),e}function Kl(e,n,t){let r=this,i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(m){return l?l._inactive?f(m):(o=r.parser.defined.includes(J(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),u):t(m)}function u(m){return m===40?e.attempt(Ql,c,o?c:f)(m):m===91?e.attempt(Yl,c,o?s:f)(m):o?c(m):f(m)}function s(m){return e.attempt(Jl,c,f)(m)}function c(m){return n(m)}function f(m){return l._balanced=!0,t(m)}}function ea(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return P(f)?Ie(e,l)(f):l(f)}function l(f){return f===41?c(f):ut(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return P(f)?Ie(e,u)(f):c(f)}function a(f){return t(f)}function u(f){return f===34||f===39||f===40?ct(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return P(f)?Ie(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function ta(e,n,t){let r=this;return i;function i(a){return st.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(J(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function na(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}var mn={name:"labelStartImage",tokenize:ra,resolveAll:Ae.resolveAll};function ra(e,n,t){let r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}var hn={name:"labelStartLink",tokenize:ia,resolveAll:Ae.resolveAll};function ia(e,n,t){let r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}var $e={name:"lineEnding",tokenize:oa};function oa(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),A(e,n,"linePrefix")}}var qe={name:"thematicBreak",tokenize:la};function la(e,n,t){let r=0,i;return l;function l(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||T(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),q(s)?A(e,a,"whitespace")(s):a(s))}}var Z={name:"list",tokenize:sa,continuation:{tokenize:ca},exit:pa},aa={tokenize:ma,partial:!0},ua={tokenize:fa,partial:!0};function sa(e,n,t){let r=this,i=r.events[r.events.length-1],l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){let d=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:_e(p)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(qe,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return t(p)}function u(p){return _e(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(ue,r.interrupt?t:c,e.attempt(aa,m,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,m(p)}function f(p){return q(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):t(p)}function m(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function ca(e,n,t){let r=this;return r.containerState._closeFlow=void 0,e.check(ue,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,A(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!q(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ua,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,A(e,e.attempt(Z,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function fa(e,n,t){let r=this;return A(e,i,"listItemIndent",r.containerState.size+1);function i(l){let o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function pa(e){e.exit(this.containerState.type)}function ma(e,n,t){let r=this;return A(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){let o=r.events[r.events.length-1];return!q(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}var ft={name:"setextUnderline",tokenize:ga,resolveTo:ha};function ha(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);let o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[l][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function ga(e,n,t){let r=this,i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),q(s)?A(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}var da={tokenize:Ea,partial:!0};function gn(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ya,continuation:{tokenize:wa},exit:Sa}},text:{91:{name:"gfmFootnoteCall",tokenize:ba},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:xa,resolveTo:ka}}}}function xa(e,n,t){let r=this,i=r.events.length,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let u=r.events[i][1];if(u.type==="labelImage"){o=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(!o||!o._balanced)return t(u);let s=J(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!l.includes(s.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function ka(e,n){let t=e.length,r;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){r=e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",l,n],["exit",l,n],["enter",o,n],["enter",a,n],["exit",a,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...u),e}function ba(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),l=0,o;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?t(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(f){if(l>999||f===93&&!o||f===null||f===91||P(f))return t(f);if(f===93){e.exit("chunkString");let m=e.exit("gfmFootnoteCallString");return i.includes(J(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(f)}return P(f)||(o=!0),l++,e.consume(f),f===92?c:s}function c(f){return f===91||f===92||f===93?(e.consume(f),l++,s):s(f)}}function ya(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),l,o=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",c):t(d)}function c(d){if(o>999||d===93&&!a||d===null||d===91||P(d))return t(d);if(d===93){e.exit("chunkString");let S=e.exit("gfmFootnoteDefinitionLabelString");return l=J(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return P(d)||(a=!0),o++,e.consume(d),d===92?f:c}function f(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}function m(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(l)||i.push(l),A(e,p,"gfmFootnoteDefinitionWhitespace")):t(d)}function p(d){return n(d)}}function wa(e,n,t){return e.check(ue,n,e.attempt(da,n,t))}function Sa(e){e.exit("gfmFootnoteDefinition")}function Ea(e,n,t){let r=this;return A(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(l):t(l)}}function dn(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let u=-1;for(;++u<o.length;)if(o[u][0]==="enter"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._close){let s=u;for(;s--;)if(o[s][0]==="exit"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._open&&o[u][1].end.offset-o[u][1].start.offset===o[s][1].end.offset-o[s][1].start.offset){o[u][1].type="strikethroughSequence",o[s][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[s][1].start),end:Object.assign({},o[u][1].end)},f={type:"strikethroughText",start:Object.assign({},o[s][1].end),end:Object.assign({},o[u][1].start)},m=[["enter",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["enter",f,a]],p=a.parser.constructs.insideSpan.null;p&&H(m,m.length,0,xe(p,o.slice(s+1,u),a)),H(m,m.length,0,[["exit",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["exit",c,a]]),H(o,s-1,u-s+3,m),u=s+m.length-2;break}}for(u=-1;++u<o.length;)o[u][1].type==="strikethroughSequenceTemporary"&&(o[u][1].type="data");return o}function l(o,a,u){let s=this.previous,c=this.events,f=0;return m;function m(d){return s===126&&c[c.length-1][1].type!=="characterEscape"?u(d):(o.enter("strikethroughSequenceTemporary"),p(d))}function p(d){let S=Re(s);if(d===126)return f>1?u(d):(o.consume(d),f++,p);if(f<2&&!t)return u(d);let E=o.exit("strikethroughSequenceTemporary"),b=Re(d);return E._open=!b||b===2&&!!S,E._close=!S||S===2&&!!b,a(d)}}}var pt=class{constructor(){this.map=[]}add(n,t,r){Ca(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length,r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push([...n]),n.length=0;let i=r.pop();for(;i;)n.push(...i),i=r.pop();this.map.length=0}};function Ca(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Nr(e,n){let t=!1,r=[];for(;n<e.length;){let i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){let l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function xn(){return{flow:{null:{name:"table",tokenize:Ta,resolveAll:La}}}}function Ta(e,n,t){let r=this,i=0,l=0,o;return a;function a(x){let W=r.events.length-1;for(;W>-1;){let D=r.events[W][1].type;if(D==="lineEnding"||D==="linePrefix")W--;else break}let N=W>-1?r.events[W][1].type:null,I=N==="tableHead"||N==="tableRow"?y:u;return I===y&&r.parser.lazy[r.now().line]?t(x):I(x)}function u(x){return e.enter("tableHead"),e.enter("tableRow"),s(x)}function s(x){return x===124||(o=!0,l+=1),c(x)}function c(x){return x===null?t(x):T(x)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):t(x):q(x)?A(e,c,"whitespace")(x):(l+=1,o&&(o=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||P(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?m:f)}function m(x){return x===92||x===124?(e.consume(x),f):f(x)}function p(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(x):(e.enter("tableDelimiterRow"),o=!1,q(x)?A(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?E(x):x===124?(o=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):B(x)}function S(x){return q(x)?A(e,E,"whitespace")(x):E(x)}function E(x){return x===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||T(x)?z(x):B(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),L(x)):B(x)}function L(x){return x===45?(e.consume(x),L):x===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(x))}function C(x){return q(x)?A(e,z,"whitespace")(x):z(x)}function z(x){return x===124?d(x):x===null||T(x)?!o||i!==l?B(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):B(x)}function B(x){return t(x)}function y(x){return e.enter("tableRow"),O(x)}function O(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),O):x===null||T(x)?(e.exit("tableRow"),n(x)):q(x)?A(e,O,"whitespace")(x):(e.enter("data"),j(x))}function j(x){return x===null||x===124||P(x)?(e.exit("data"),O(x)):(e.consume(x),x===92?M:j)}function M(x){return x===92||x===124?(e.consume(x),j):j(x)}}function La(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,u=0,s,c,f,m=new pt;for(;++t<e.length;){let p=e[t],d=p[1];p[0]==="enter"?d.type==="tableHead"?(a=!1,u!==0&&(_r(m,n,u,s,c),c=void 0,u=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},m.add(t,0,[["enter",s,n]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,f=void 0,l=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},m.add(t,0,[["enter",c,n]])),i=d.type==="tableDelimiterRow"?2:c?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],f=mt(m,n,l,i,void 0,f),l=[0,0,0,0]),o[2]=t)):d.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],f=mt(m,n,l,i,void 0,f)),l=o,o=[l[1],t,0,0])):d.type==="tableHead"?(a=!0,u=t):d.type==="tableRow"||d.type==="tableDelimiterRow"?(u=t,l[1]!==0?(o[0]=o[1],f=mt(m,n,l,i,t,f)):o[1]!==0&&(f=mt(m,n,o,i,t,f)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(o[3]=t)}for(u!==0&&_r(m,n,u,s,c),m.consume(n.events),t=-1;++t<n.events.length;){let p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Nr(n.events,t))}return e}function mt(e,n,t,r,i,l){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(l.end=Object.assign({},Be(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));let u=Be(n.events,t[1]);if(l={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){let s=Be(n.events,t[2]),c=Be(n.events,t[3]),f={type:a,start:Object.assign({},s),end:Object.assign({},c)};if(e.add(t[2],0,[["enter",f,n]]),r!==2){let m=n.events[t[2]],p=n.events[t[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",t[3]>t[2]+1){let d=t[2]+1,S=t[3]-t[2]-1;e.add(d,S,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return i!==void 0&&(l.end=Object.assign({},Be(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function _r(e,n,t,r,i){let l=[],o=Be(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function Be(e,n){let t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}var Ia={name:"tasklistCheck",tokenize:Aa};function kn(){return{text:{91:Ia}}}function Aa(e,n,t){let r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),l)}function l(u){return P(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),o):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),o):t(u)}function o(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(u)}function a(u){return T(u)?n(u):q(u)?e.check({tokenize:qa},n,t)(u):t(u)}}function qa(e,n,t){return A(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function jr(e){return tt([tn(),gn(),dn(e),xn(),kn()])}var Fa={};function ht(e){let n=this,t=e||Fa,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(jr(t)),l.push(Xt()),o.push(Kt(t))}var Vr={tokenize:za};function za(e){let n=e.attempt(this.parser.constructs.contentInitial,r,i),t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),A(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){let u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return T(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}var Ur={tokenize:Da},Hr={tokenize:va};function Da(e){let n=this,t=[],r=0,i,l,o;return a;function a(C){if(r<t.length){let z=t[r];return n.containerState=z[1],e.attempt(z[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();let z=n.events.length,B=z,y;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){y=n.events[B][1].end;break}b(r);let O=z;for(;O<n.events.length;)n.events[O][1].end=Object.assign({},y),O++;return H(n.events,B+1,0,n.events.slice(z)),n.events.length=O,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return m(C);if(i.currentConstruct&&i.currentConstruct.concrete)return d(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Hr,c,f)(C)}function c(C){return i&&L(),b(r),m(C)}function f(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,d(C)}function m(C){return n.containerState={},e.attempt(Hr,p,d)(C)}function p(C){return r++,t.push([n.currentConstruct,n.containerState]),m(C)}function d(C){if(C===null){i&&L(),b(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:i}),S(C)}function S(C){if(C===null){E(e.exit("chunkFlow"),!0),b(0),e.consume(C);return}return T(C)?(e.consume(C),E(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),S)}function E(C,z){let B=n.sliceStream(C);if(z&&B.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(B),n.parser.lazy[C.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;let O=n.events.length,j=O,M,x;for(;j--;)if(n.events[j][0]==="exit"&&n.events[j][1].type==="chunkFlow"){if(M){x=n.events[j][1].end;break}M=!0}for(b(r),y=O;y<n.events.length;)n.events[y][1].end=Object.assign({},x),y++;H(n.events,j+1,0,n.events.slice(O)),n.events.length=y}}function b(C){let z=t.length;for(;z-- >C;){let B=t[z];n.containerState=B[1],B[0].exit.call(n,e)}t.length=C}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function va(e,n,t){return A(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var Gr={tokenize:Pa};function Pa(e){let n=this,t=e.attempt(ue,r,e.attempt(this.parser.constructs.flowInitial,i,A(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ln,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}var $r={resolveAll:Jr()},Wr=Yr("string"),Qr=Yr("text");function Yr(e){return{tokenize:n,resolveAll:Jr(e==="text"?Ra:void 0)};function n(t){let r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;let f=i[c],m=-1;if(f)for(;++m<f.length;){let p=f[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Jr(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function Ra(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){let r=e[t-1][1],i=n.sliceStream(r),l=i.length,o=-1,a=0,u;for(;l--;){let s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)u=!0,a++;else if(s!==-1){l++;break}}if(a){let s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+l,_bufferIndex:l?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},s.start),r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}function Zr(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},l=[],o=[],a=[],u=!0,s={consume:z,enter:B,exit:y,attempt:M(O),check:M(j),interrupt:M(j,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:S,sliceSerialize:d,now:E,defineSkip:b,write:p},f=n.tokenize.call(c,s),m;return n.resolveAll&&l.push(n),c;function p(I){return o=X(o,I),L(),o[o.length-1]!==null?[]:(x(n,0),c.events=xe(l,c.events,c),c.events)}function d(I,D){return Oa(S(I),D)}function S(I){return Ba(o,I)}function E(){let{line:I,column:D,offset:v,_index:V,_bufferIndex:U}=r;return{line:I,column:D,offset:v,_index:V,_bufferIndex:U}}function b(I){i[I.line]=I.column,N()}function L(){let I;for(;r._index<o.length;){let D=o[r._index];if(typeof D=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<D.length;)C(D.charCodeAt(r._bufferIndex));else C(D)}}function C(I){u=void 0,m=I,f=f(I)}function z(I){T(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,N()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I,u=!0}function B(I,D){let v=D||{};return v.type=I,v.start=E(),c.events.push(["enter",v,c]),a.push(v),v}function y(I){let D=a.pop();return D.end=E(),c.events.push(["exit",D,c]),D}function O(I,D){x(I,D.from)}function j(I,D){D.restore()}function M(I,D){return v;function v(V,U,ne){let oe,h,te,se;return Array.isArray(V)?K(V):"tokenize"in V?K([V]):g(V);function g(Y){return Oe;function Oe(ce){let we=ce!==null&&Y[ce],Fe=ce!==null&&Y.null,wt=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return K(wt)(ce)}}function K(Y){return oe=Y,h=0,Y.length===0?ne:ye(Y[h])}function ye(Y){return Oe;function Oe(ce){return se=W(),te=Y,Y.partial||(c.currentConstruct=Y),Y.name&&c.parser.constructs.disable.null.includes(Y.name)?Ye(ce):Y.tokenize.call(D?Object.assign(Object.create(c),D):c,s,yt,Ye)(ce)}}function yt(Y){return u=!0,I(te,se),U}function Ye(Y){return u=!0,se.restore(),++h<oe.length?ye(oe[h]):ne}}}function x(I,D){I.resolveAll&&!l.includes(I)&&l.push(I),I.resolve&&H(c.events,D,c.events.length-D,I.resolve(c.events.slice(D),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function W(){let I=E(),D=c.previous,v=c.currentConstruct,V=c.events.length,U=Array.from(a);return{restore:ne,from:V};function ne(){r=I,c.previous=D,c.currentConstruct=v,c.events.length=V,a=U,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ba(e,n){let t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex,o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){let a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Oa(e,n){let t=-1,r=[],i;for(;++t<e.length;){let l=e[t],o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
17
+ `;break}case-3:{o=`\r
18
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}var bn={};Qi(bn,{attentionMarkers:()=>Ga,contentInitial:()=>Na,disable:()=>$a,document:()=>Ma,flow:()=>ja,flowInitial:()=>_a,insideSpan:()=>Ua,string:()=>Va,text:()=>Ha});var Ma={42:Z,43:Z,45:Z,48:Z,49:Z,50:Z,51:Z,52:Z,53:Z,54:Z,55:Z,56:Z,57:Z,62:nt},Na={91:an},_a={[-2]:Ue,[-1]:Ue,32:Ue},ja={35:sn,42:qe,45:[ft,qe],60:fn,61:ft,95:qe,96:ot,126:ot},Va={38:it,92:rt},Ha={[-5]:$e,[-4]:$e,[-3]:$e,33:mn,38:it,42:He,60:[rn,pn],91:hn,92:[un,rt],93:Ae,95:He,96:on},Ua={null:[He,$r]},Ga={null:[42,95]},$a={null:[]};function yn(e){let t=tt([bn,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(Vr),document:i(Ur),flow:i(Gr),string:i(Wr),text:i(Qr)};return r;function i(l){return o;function o(a){return Zr(r,l,a)}}}function wn(e){for(;!at(e););return e}var Xr=/[\0\t\n\r]/g;function Sn(){let e=1,n="",t=!0,r;return i;function i(l,o,a){let u=[],s,c,f,m,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(Xr.lastIndex=f,s=Xr.exec(l),m=s&&s.index!==void 0?s.index:l.length,p=l.charCodeAt(m),!s){n=l.slice(f);break}if(p===10&&f===m&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<m&&(u.push(l.slice(f,m)),e+=m-f),p){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}function ke(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kr(e.position):"start"in e||"end"in e?Kr(e):"line"in e||"column"in e?En(e):""}function En(e){return ei(e&&e.line)+":"+ei(e&&e.column)}function Kr(e){return En(e&&e.start)+"-"+En(e&&e.end)}function ei(e){return e&&typeof e=="number"?e:1}var ni={}.hasOwnProperty;function Cn(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Wa(t)(wn(yn(t).document().write(Sn()(e,n,!0))))}function Wa(e){let n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Vn),autolinkProtocol:M,autolinkEmail:M,atxHeading:l(Nn),blockQuote:l(ce),characterEscape:M,characterReference:M,codeFenced:l(we),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(we,o),codeText:l(Fe,o),codeTextData:M,data:M,codeFlowValue:M,definition:l(wt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(_i),hardBreakEscape:l(_n),hardBreakTrailing:l(_n),htmlFlow:l(jn,o),htmlFlowData:M,htmlText:l(jn,o),htmlTextData:M,image:l(ji),label:o,link:l(Vn),listItem:l(Vi),listItemValue:m,listOrdered:l(Hn,f),listUnordered:l(Hn),paragraph:l(Hi),reference:g,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Nn),strong:l(Ui),thematicBreak:l($i)},exit:{atxHeading:u(),atxHeadingSequence:B,autolink:u(),autolinkEmail:Oe,autolinkProtocol:Y,blockQuote:u(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:yt,characterReference:Ye,codeFenced:u(E),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:d,codeFlowValue:x,codeIndented:u(b),codeText:u(v),codeTextData:x,data:x,definition:u(),definitionDestinationString:z,definitionLabelString:L,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(I),htmlFlowData:x,htmlText:u(D),htmlTextData:x,image:u(U),label:oe,labelText:ne,lineEnding:W,link:u(V),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:K,resourceDestinationString:h,resourceTitleString:te,resource:se,setextHeading:u(j),setextHeadingLineSequence:O,setextHeadingText:y,strong:u(),thematicBreak:u()}};ri(n,(e||{}).mdastExtensions||[]);let t={};return r;function r(k){let w={type:"root",children:[]},F={stack:[w],tokenStack:[],config:n,enter:a,exit:s,buffer:o,resume:c,data:t},R=[],_=-1;for(;++_<k.length;)if(k[_][1].type==="listOrdered"||k[_][1].type==="listUnordered")if(k[_][0]==="enter")R.push(_);else{let re=R.pop();_=i(k,re,_)}for(_=-1;++_<k.length;){let re=n[k[_][0]];ni.call(re,k[_][1].type)&&re[k[_][1].type].call(Object.assign({sliceSerialize:k[_][2].sliceSerialize},F),k[_][1])}if(F.tokenStack.length>0){let re=F.tokenStack[F.tokenStack.length-1];(re[1]||ti).call(F,void 0,re[0])}for(w.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;++_<n.transforms.length;)w=n.transforms[_](w)||w;return w}function i(k,w,F){let R=w-1,_=-1,re=!1,Se,fe,Me,Ne;for(;++R<=F;){let ee=k[R];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?_++:_--,Ne=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(Se&&!Ne&&!_&&!Me&&(Me=R),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!_&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||_===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(Se){let ze=R;for(fe=void 0;ze--;){let pe=k[ze];if(pe[1].type==="lineEnding"||pe[1].type==="lineEndingBlank"){if(pe[0]==="exit")continue;fe&&(k[fe][1].type="lineEndingBlank",re=!0),pe[1].type="lineEnding",fe=ze}else if(!(pe[1].type==="linePrefix"||pe[1].type==="blockQuotePrefix"||pe[1].type==="blockQuotePrefixWhitespace"||pe[1].type==="blockQuoteMarker"||pe[1].type==="listItemIndent"))break}Me&&(!fe||Me<fe)&&(Se._spread=!0),Se.end=Object.assign({},fe?k[fe][1].start:ee[1].end),k.splice(fe||R,0,["exit",Se,ee[2]]),R++,F++}if(ee[1].type==="listItemPrefix"){let ze={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};Se=ze,k.splice(R,0,["enter",ze,ee[2]]),R++,F++,Me=void 0,Ne=!0}}}return k[w][1]._spread=re,F}function l(k,w){return F;function F(R){a.call(this,k(R),R),w&&w.call(this,R)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(k,w,F){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([w,F]),k.position={start:be(w.start),end:void 0}}function u(k){return w;function w(F){k&&k.call(this,F),s.call(this,F)}}function s(k,w){let F=this.stack.pop(),R=this.tokenStack.pop();if(R)R[0].type!==k.type&&(w?w.call(this,k,R[0]):(R[1]||ti).call(this,k,R[0]));else throw new Error("Cannot close `"+k.type+"` ("+ke({start:k.start,end:k.end})+"): it\u2019s not open");F.position.end=be(k.end)}function c(){return me(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(k){if(this.data.expectingFirstListItemValue){let w=this.stack[this.stack.length-2];w.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function p(){let k=this.resume(),w=this.stack[this.stack.length-1];w.lang=k}function d(){let k=this.resume(),w=this.stack[this.stack.length-1];w.meta=k}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){let k=this.resume(),w=this.stack[this.stack.length-1];w.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){let k=this.resume(),w=this.stack[this.stack.length-1];w.value=k.replace(/(\r?\n|\r)$/g,"")}function L(k){let w=this.resume(),F=this.stack[this.stack.length-1];F.label=w,F.identifier=J(this.sliceSerialize(k)).toLowerCase()}function C(){let k=this.resume(),w=this.stack[this.stack.length-1];w.title=k}function z(){let k=this.resume(),w=this.stack[this.stack.length-1];w.url=k}function B(k){let w=this.stack[this.stack.length-1];if(!w.depth){let F=this.sliceSerialize(k).length;w.depth=F}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function O(k){let w=this.stack[this.stack.length-1];w.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function M(k){let F=this.stack[this.stack.length-1].children,R=F[F.length-1];(!R||R.type!=="text")&&(R=Gi(),R.position={start:be(k.start),end:void 0},F.push(R)),this.stack.push(R)}function x(k){let w=this.stack.pop();w.value+=this.sliceSerialize(k),w.position.end=be(k.end)}function W(k){let w=this.stack[this.stack.length-1];if(this.data.atHardBreak){let F=w.children[w.children.length-1];F.position.end=be(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(w.type)&&(M.call(this,k),x.call(this,k))}function N(){this.data.atHardBreak=!0}function I(){let k=this.resume(),w=this.stack[this.stack.length-1];w.value=k}function D(){let k=this.resume(),w=this.stack[this.stack.length-1];w.value=k}function v(){let k=this.resume(),w=this.stack[this.stack.length-1];w.value=k}function V(){let k=this.stack[this.stack.length-1];if(this.data.inReference){let w=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=w,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function U(){let k=this.stack[this.stack.length-1];if(this.data.inReference){let w=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=w,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function ne(k){let w=this.sliceSerialize(k),F=this.stack[this.stack.length-2];F.label=Cr(w),F.identifier=J(w).toLowerCase()}function oe(){let k=this.stack[this.stack.length-1],w=this.resume(),F=this.stack[this.stack.length-1];if(this.data.inReference=!0,F.type==="link"){let R=k.children;F.children=R}else F.alt=w}function h(){let k=this.resume(),w=this.stack[this.stack.length-1];w.url=k}function te(){let k=this.resume(),w=this.stack[this.stack.length-1];w.title=k}function se(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function K(k){let w=this.resume(),F=this.stack[this.stack.length-1];F.label=w,F.identifier=J(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function ye(k){this.data.characterReferenceType=k.type}function yt(k){let w=this.sliceSerialize(k),F=this.data.characterReferenceType,R;F?(R=et(w,F==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):R=Pe(w);let _=this.stack[this.stack.length-1];_.value+=R}function Ye(k){let w=this.stack.pop();w.position.end=be(k.end)}function Y(k){x.call(this,k);let w=this.stack[this.stack.length-1];w.url=this.sliceSerialize(k)}function Oe(k){x.call(this,k);let w=this.stack[this.stack.length-1];w.url="mailto:"+this.sliceSerialize(k)}function ce(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function Fe(){return{type:"inlineCode",value:""}}function wt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _i(){return{type:"emphasis",children:[]}}function Nn(){return{type:"heading",depth:0,children:[]}}function _n(){return{type:"break"}}function jn(){return{type:"html",value:""}}function ji(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function Hn(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function Vi(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function Hi(){return{type:"paragraph",children:[]}}function Ui(){return{type:"strong",children:[]}}function Gi(){return{type:"text",value:""}}function $i(){return{type:"thematicBreak"}}}function be(e){return{line:e.line,column:e.column,offset:e.offset}}function ri(e,n){let t=-1;for(;++t<n.length;){let r=n[t];Array.isArray(r)?ri(e,r):Qa(e,r)}}function Qa(e,n){let t;for(t in n)if(ni.call(n,t))switch(t){case"canContainEols":{let r=n[t];r&&e[t].push(...r);break}case"transforms":{let r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{let r=n[t];r&&Object.assign(e[t],r);break}}}function ti(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ke({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ke({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ke({start:n.start,end:n.end})+") is still open")}function gt(e){let n=this;n.parser=t;function t(r){return Cn(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Tn(e){if(e)throw e}var bt=Yi(pi(),1);function We(e){if(typeof e!="object"||e===null)return!1;let n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ln(){let e=[],n={run:t,use:r};return n;function t(...i){let l=-1,o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(u,...s){let c=e[++l],f=-1;if(u){o(u);return}for(;++f<i.length;)(s[f]===null||s[f]===void 0)&&(s[f]=i[f]);i=s,c?mi(c,a)(...s):o(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function mi(e,n){let t;return r;function r(...o){let a=e.length>o.length,u;a&&o.push(i);try{u=e.apply(this,o)}catch(s){let c=s;if(a&&t)throw c;return i(c)}a||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}var Q=class extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){let u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){let u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}let a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.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=ke(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}};Q.prototype.file="";Q.prototype.name="";Q.prototype.reason="";Q.prototype.message="";Q.prototype.stack="";Q.prototype.column=void 0;Q.prototype.line=void 0;Q.prototype.ancestors=void 0;Q.prototype.cause=void 0;Q.prototype.fatal=void 0;Q.prototype.place=void 0;Q.prototype.ruleId=void 0;Q.prototype.source=void 0;import{default as ie}from"node:path";import{default as hi}from"node:process";import{fileURLToPath as gi}from"node:url";function xt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}var In=["history","path","basename","stem","extname","dirname"],Qe=class{constructor(n){let t;n?xt(n)?t={path:n}:typeof n=="string"||Ya(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":hi.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<In.length;){let l=In[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)In.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ie.basename(this.path):void 0}set basename(n){qn(n,"basename"),An(n,"basename"),this.path=ie.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ie.dirname(this.path):void 0}set dirname(n){di(this.basename,"dirname"),this.path=ie.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ie.extname(this.path):void 0}set extname(n){if(An(n,"extname"),di(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ie.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){xt(n)&&(n=gi(n)),qn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ie.basename(this.path,this.extname):void 0}set stem(n){qn(n,"stem"),An(n,"stem"),this.path=ie.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){let i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){let i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){let i=new Q(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}};function An(e,n){if(e&&e.includes(ie.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ie.sep+"`")}function qn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function di(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Ya(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var xi=(function(e){let r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l});var Ja={}.hasOwnProperty,vn=class e extends xi{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ln()}copy(){let n=new e,t=-1;for(;++t<this.attachers.length;){let r=this.attachers[t];n.use(...r)}return n.data((0,bt.default)(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Dn("data",this.frozen),this.namespace[n]=t,this):Ja.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Dn("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;let n=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();let t=kt(n),r=this.parser||this.Parser;return Fn("parse",r),r(String(t),t)}process(n,t){let r=this;return this.freeze(),Fn("process",this.parser||this.Parser),zn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){let a=kt(n),u=r.parse(a);r.run(u,a,function(c,f,m){if(c||!f||!m)return s(c);let p=f,d=r.stringify(p,m);Xa(d)?m.value=d:m.result=d,s(c,m)});function s(c,f){c||!f?o(c):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),Fn("processSync",this.parser||this.Parser),zn("processSync",this.compiler||this.Compiler),this.process(n,i),bi("processSync","process",t),r;function i(l,o){t=!0,Tn(l),r=o}}run(n,t,r){ki(n),this.freeze();let i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(o,a){let u=kt(t);i.run(n,u,s);function s(c,f,m){let p=f||n;c?a(c):o?o(p):r(void 0,p,m)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),bi("runSync","run",r),i;function l(o,a){Tn(o),i=a,r=!0}}stringify(n,t){this.freeze();let r=kt(t),i=this.compiler||this.Compiler;return zn("stringify",i),ki(n),i(n,r)}use(n,...t){let r=this.attachers,i=this.namespace;if(Dn("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){let[c,...f]=s;u(c,f)}else o(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function o(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(s.plugins),s.settings&&(i.settings=(0,bt.default)(!0,i.settings,s.settings))}function a(s){let c=-1;if(s!=null)if(Array.isArray(s))for(;++c<s.length;){let f=s[c];l(f)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,c){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===s){m=f;break}if(m===-1)r.push([s,...c]);else if(c.length>0){let[p,...d]=c,S=r[m][1];We(S)&&We(p)&&(p=(0,bt.default)(!0,S,p)),r[m]=[s,p,...d]}}}},Pn=new vn().freeze();function Fn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ki(e){if(!We(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function bi(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function kt(e){return Za(e)?e:new Qe(e)}function Za(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Xa(e){return typeof e=="string"||Ka(e)}function Ka(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function eu(e,n){let t=[e,...n],r=Math.max(...t.map(a=>a.length));if(r===0)return"";let i=Array.from({length:r},()=>0);for(let a of t)for(let u=0;u<r;u++){let s=(a[u]||"").length;s>i[u]&&(i[u]=s)}let l=a=>Array.from({length:r},(u,s)=>(a[s]||"").padEnd(i[s])).join(" | ").trimEnd(),o=[];o.push(l(e)),o.push(i.map(a=>"-".repeat(a)).join("-|-"));for(let a of n)o.push(l(a));return o.join(`
19
+ `)}function Yg(e){return Pn().use(gt).use(ht).parse(e)}function Jg(e){return me(e)}function Zg(e){return{type:"text",value:e}}function Xg(e){return{type:"paragraph",children:e}}function Kg(e){return{type:"root",children:e}}function tu(e={}){var n;return{type:"card",title:e.title,subtitle:e.subtitle,imageUrl:e.imageUrl,children:(n=e.children)!=null?n:[]}}function Rn(e,n={}){return{type:"text",content:e,style:n.style}}var ed=Rn;function yi(e){return{type:"image",url:e.url,alt:e.alt}}function wi(){return{type:"divider"}}function Si(e){return{type:"section",children:e}}function Ei(e){return{type:"actions",children:e}}function Ci(e){return{type:"button",id:e.id,label:e.label,style:e.style,value:e.value,disabled:e.disabled,actionType:e.actionType}}function Ti(e){return{type:"link-button",url:e.url,label:e.label,style:e.style}}function Li(e){return{type:"field",label:e.label,value:e.value}}function Ii(e){return{type:"fields",children:e}}function Ai(e){return{type:"table",headers:e.headers,rows:e.rows,align:e.align}}function qi(e){return{type:"link",url:e.url,label:e.label}}function td(e){let n=[];e.title&&n.push(`**${e.title}**`),e.subtitle&&n.push(e.subtitle);for(let t of e.children){let r=Bi(t);r&&n.push(r)}return n.join(`
20
+ `)}function Bi(e){switch(e.type){case"text":return e.content;case"link":return`${e.label} (${e.url})`;case"fields":return e.children.map(n=>`${n.label}: ${n.value}`).join(`
21
+ `);case"actions":return null;case"table":return eu(e.headers,e.rows);case"section":return e.children.map(n=>Bi(n)).filter(Boolean).join(`
22
+ `);default:return null}}var nu=["text_input","select","radio_select","text","fields"];function ru(e){let n=e.filter(t=>typeof t=="object"&&t!==null&&"type"in t&&nu.includes(t.type));return n.length<e.length&&console.warn("[chat] Modal contains unsupported child elements that were ignored"),n}function Fi(e){var n;return{type:"modal",callbackId:e.callbackId,title:e.title,submitLabel:e.submitLabel,closeLabel:e.closeLabel,notifyOnClose:e.notifyOnClose,privateMetadata:e.privateMetadata,children:(n=e.children)!=null?n:[]}}function zi(e){return{type:"text_input",id:e.id,label:e.label,placeholder:e.placeholder,initialValue:e.initialValue,multiline:e.multiline,optional:e.optional,maxLength:e.maxLength}}function Di(e){if(!e.options||e.options.length===0)throw new Error("Select requires at least one option");return{type:"select",id:e.id,label:e.label,placeholder:e.placeholder,options:e.options,initialOption:e.initialOption,optional:e.optional}}function vi(e){return{label:e.label,value:e.value,description:e.description}}function Pi(e){if(!e.options||e.options.length===0)throw new Error("RadioSelect requires at least one option");return{type:"radio_select",id:e.id,label:e.label,options:e.options,initialOption:e.initialOption,optional:e.optional}}var Bn=Symbol.for("chat.jsx.element");function On(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bn}function Mn(e){if(e==null)return[];if(Array.isArray(e))return e.flatMap(Mn);if(On(e)){let n=Mi(e);return n?[n]:[]}return typeof e=="object"&&"type"in e?[e]:typeof e=="string"||typeof e=="number"?[String(e)]:[]}function iu(e){return!("id"in e||"url"in e||"label"in e)}function ou(e){return"id"in e&&typeof e.id=="string"&&!("url"in e)}function lu(e){return"url"in e&&typeof e.url=="string"&&!("id"in e)}function Oi(e){return"url"in e&&typeof e.url=="string"&&!("id"in e)&&!("alt"in e)&&!("style"in e)}function au(e){return"url"in e&&typeof e.url=="string"}function uu(e){return"label"in e&&"value"in e&&typeof e.label=="string"&&typeof e.value=="string"}function su(e){return!("id"in e||"url"in e||"callbackId"in e)&&("title"in e||"subtitle"in e||"imageUrl"in e)}function cu(e){return"callbackId"in e&&"title"in e}function fu(e){return"id"in e&&"label"in e&&!("options"in e)&&!("value"in e)}function Ri(e){return"id"in e&&"label"in e&&!("value"in e)}function pu(e){return"label"in e&&"value"in e&&!("id"in e)}function Mi(e){var o,a,u,s;let{type:n,props:t,children:r}=e,i=Mn(r);if(n===Rn){let c=iu(t)?t:{style:void 0},f=i.length>0?i.map(String).join(""):String((o=c.children)!=null?o:"");return Rn(f,{style:c.style})}if(n===Si)return Si(i);if(n===Ei)return Ei(i);if(n===Ii)return Ii(i);if(n===Ci){if(!ou(t))throw new Error("Button requires an 'id' prop");let c=i.length>0?i.map(String).join(""):(a=t.label)!=null?a:"";return Ci({id:t.id,label:c,style:t.style,value:t.value,actionType:t.actionType,disabled:t.disabled})}if(n===Ti){if(!lu(t))throw new Error("LinkButton requires a 'url' prop");let c=i.length>0?i.map(String).join(""):(u=t.label)!=null?u:"";return Ti({url:t.url,label:c,style:t.style})}if(n===qi){if(!Oi(t))throw new Error("CardLink requires a 'url' prop");let c=i.length>0?i.map(String).join(""):(s=t.label)!=null?s:"";return qi({url:t.url,label:c})}if(n===yi){if(!au(t))throw new Error("Image requires a 'url' prop");return yi({url:t.url,alt:t.alt})}if(n===Li){if(!uu(t))throw new Error("Field requires 'label' and 'value' props");return Li({label:t.label,value:t.value})}if(n===wi)return wi();if(n===Fi){if(!cu(t))throw new Error("Modal requires 'callbackId' and 'title' props");return Fi({callbackId:t.callbackId,title:t.title,submitLabel:t.submitLabel,closeLabel:t.closeLabel,notifyOnClose:t.notifyOnClose,privateMetadata:t.privateMetadata,children:ru(i)})}if(n===zi){if(!fu(t))throw new Error("TextInput requires 'id' and 'label' props");return zi({id:t.id,label:t.label,placeholder:t.placeholder,initialValue:t.initialValue,multiline:t.multiline,optional:t.optional,maxLength:t.maxLength})}if(n===Di){if(!Ri(t))throw new Error("Select requires 'id' and 'label' props");return Di({id:t.id,label:t.label,placeholder:t.placeholder,initialOption:t.initialOption,optional:t.optional,options:i})}if(n===Pi){if(!Ri(t))throw new Error("RadioSelect requires 'id' and 'label' props");return Pi({id:t.id,label:t.label,initialOption:t.initialOption,optional:t.optional,options:i})}if(n===vi){if(!pu(t))throw new Error("SelectOption requires 'label' and 'value' props");return vi({label:t.label,value:t.value,description:t.description})}if(n===Ai){let c=t;return Ai({headers:c.headers,rows:c.rows})}let l=su(t)?t:{};return tu({title:l.title,subtitle:l.subtitle,imageUrl:l.imageUrl,children:i})}function Ni(e,n,t){let{children:r,...i}=n;return{$$typeof:Bn,type:e,props:i,children:r!=null?[r]:[]}}function mu(e,n,t){let{children:r,...i}=n,l;return Array.isArray(r)?l=r:r!=null?l=[r]:l=[],{$$typeof:Bn,type:e,props:i,children:l}}var hu=Ni;function gu(e){return Mn(e.children)}function du(e){if(On(e)){let n=Mi(e);if(n&&typeof n=="object"&&"type"in n&&n.type==="card")return n}return typeof e=="object"&&e!==null&&"type"in e&&e.type==="card"?e:null}function xu(e){if(On(e))return!0;if(typeof e=="object"&&e!==null&&"$$typeof"in e&&typeof e.$$typeof=="symbol"){let n=e.$$typeof.toString();return n.includes("react.element")||n.includes("react.transitional.element")}return!1}export{Yg as a,Jg as b,Zg as c,Xg as d,Kg as e,tu as f,ed as g,wi as h,Ei as i,Ci as j,qi as k,td as l,zi as m,Di as n,vi as o,Ni as p,mu as q,hu as r,gu as s,du as t,xu as u};
@@ -1 +1 @@
1
- import{u as h}from"./chunk-LPE4ME2M.js";import f from"ajv";import y from"ajv-formats";var S=t=>typeof structuredClone=="function"?structuredClone(t):JSON.parse(JSON.stringify(t));var n=class extends h{constructor(a,o){let r=o.length===1?"it":"them";super(`Tried to use a ${a} in @novu/framework without ${o.join(", ")} installed. Please install ${r} by running \`npm install ${o.join(" ")}\`.`);this.statusCode=500;this.code="MissingDependencyError"}};var m=async(t,e)=>{let a=new Set;if((await Promise.allSettled(t.map(r=>r.import))).forEach((r,p)=>{let s=t[p];r.status==="fulfilled"&&s.exports.every(u=>r.value[u]!==void 0)||a.add(s.name)}),a.size>0)throw new n(e,Array.from(a))};var i=class{constructor(){this.requiredImports=[];this.ajv=new f({useDefaults:!0,removeAdditional:"failing",strict:!1}),y(this.ajv),this.compiledSchemas=new Map}async canHandle(e){let a=e.type==="object"||!!e.anyOf||!!e.allOf||!!e.oneOf;return a&&await m(this.requiredImports,"JSON schema"),a}async validate(e,a){let o=this.compiledSchemas.get(a);o||(o=this.ajv.compile(a),this.compiledSchemas.set(a,o));let r=S(e);return o(r)?{success:!0,data:r}:{success:!1,errors:o.errors.map(s=>({path:s.instancePath,message:s.message}))}}async transformToJsonSchema(e){return e}};var c=class{constructor(){this.requiredImports=[{name:"zod",import:import("zod"),exports:["ZodType"]},{name:"zod-to-json-schema",import:import("zod-to-json-schema"),exports:["zodToJsonSchema"]}]}async canHandle(e){let a=e.safeParseAsync!==void 0;return a&&await m(this.requiredImports,"Zod schema"),a}async validate(e,a){let o=await a.safeParseAsync(e);return o.success?{success:!0,data:o.data}:{success:!1,errors:o.error.errors.map(r=>({path:`/${r.path.join("/")}`,message:r.message}))}}async transformToJsonSchema(e){let{zodToJsonSchema:a}=await import("zod-to-json-schema");return a(e)}};var d=new c,l=new i,v=async(t,e)=>{if(await d.canHandle(t))return d.validate(e,t);if(await l.canHandle(t))return l.validate(e,t);throw new Error("Invalid schema")},T=async t=>{if(await d.canHandle(t))return d.transformToJsonSchema(t);if(await l.canHandle(t))return l.transformToJsonSchema(t);throw new Error("Invalid schema")};export{v as a,T as b};
1
+ import{u as h}from"./chunk-EWC7I6UD.js";import f from"ajv";import y from"ajv-formats";var S=t=>typeof structuredClone=="function"?structuredClone(t):JSON.parse(JSON.stringify(t));var n=class extends h{constructor(a,o){let r=o.length===1?"it":"them";super(`Tried to use a ${a} in @novu/framework without ${o.join(", ")} installed. Please install ${r} by running \`npm install ${o.join(" ")}\`.`);this.statusCode=500;this.code="MissingDependencyError"}};var m=async(t,e)=>{let a=new Set;if((await Promise.allSettled(t.map(r=>r.import))).forEach((r,p)=>{let s=t[p];r.status==="fulfilled"&&s.exports.every(u=>r.value[u]!==void 0)||a.add(s.name)}),a.size>0)throw new n(e,Array.from(a))};var i=class{constructor(){this.requiredImports=[];this.ajv=new f({useDefaults:!0,removeAdditional:"failing",strict:!1}),y(this.ajv),this.compiledSchemas=new Map}async canHandle(e){let a=e.type==="object"||!!e.anyOf||!!e.allOf||!!e.oneOf;return a&&await m(this.requiredImports,"JSON schema"),a}async validate(e,a){let o=this.compiledSchemas.get(a);o||(o=this.ajv.compile(a),this.compiledSchemas.set(a,o));let r=S(e);return o(r)?{success:!0,data:r}:{success:!1,errors:o.errors.map(s=>({path:s.instancePath,message:s.message}))}}async transformToJsonSchema(e){return e}};var c=class{constructor(){this.requiredImports=[{name:"zod",import:import("zod"),exports:["ZodType"]},{name:"zod-to-json-schema",import:import("zod-to-json-schema"),exports:["zodToJsonSchema"]}]}async canHandle(e){let a=e.safeParseAsync!==void 0;return a&&await m(this.requiredImports,"Zod schema"),a}async validate(e,a){let o=await a.safeParseAsync(e);return o.success?{success:!0,data:o.data}:{success:!1,errors:o.error.errors.map(r=>({path:`/${r.path.join("/")}`,message:r.message}))}}async transformToJsonSchema(e){let{zodToJsonSchema:a}=await import("zod-to-json-schema");return a(e)}};var d=new c,l=new i,v=async(t,e)=>{if(await d.canHandle(t))return d.validate(e,t);if(await l.canHandle(t))return l.validate(e,t);throw new Error("Invalid schema")},T=async t=>{if(await d.canHandle(t))return d.transformToJsonSchema(t);if(await l.canHandle(t))return l.transformToJsonSchema(t);throw new Error("Invalid schema")};export{v as a,T as b};