@signalk/freeboard-sk 3.2.0-beta.2 → 3.2.0-beta.4

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 (59) hide show
  1. package/package.json +2 -2
  2. package/public/3rdpartylicenses.txt +31 -31
  3. package/public/assets/features/chart-sources-1.jpg +0 -0
  4. package/public/assets/features/chart-sources-2.jpg +0 -0
  5. package/public/assets/features/chart-sources-3.jpg +0 -0
  6. package/public/assets/features/chart-sources-4.jpg +0 -0
  7. package/public/assets/features/gpx-export-1.jpg +0 -0
  8. package/public/assets/features/gpx-export-2.jpg +0 -0
  9. package/public/assets/features/track-history-1.jpg +0 -0
  10. package/public/assets/features/track-history-2.jpg +0 -0
  11. package/public/assets/features/track-history-3.jpg +0 -0
  12. package/public/assets/features/vessel-tracks-1.jpg +0 -0
  13. package/public/assets/features/vessel-tracks-2.jpg +0 -0
  14. package/public/assets/features/vessel-tracks-3.jpg +0 -0
  15. package/public/assets/features-corpus.json +1 -1
  16. package/public/assets/help/index.html +65 -90
  17. package/public/{chunk-2SPW2M6P.js → chunk-4DXUR67I.js} +1 -1
  18. package/public/{chunk-B5SN3ZBN.js → chunk-4JRVRHO7.js} +14 -14
  19. package/public/{chunk-T5UYZVNA.js → chunk-4ZE2OKZZ.js} +1 -1
  20. package/public/{chunk-APXAP2M7.js → chunk-6PWYCIYX.js} +1 -1
  21. package/public/chunk-7D3RA76X.js +1 -0
  22. package/public/{chunk-FMYAA5JW.js → chunk-7TRKAN4B.js} +1 -1
  23. package/public/{chunk-OGLYW4PJ.js → chunk-AA62TGOR.js} +1 -1
  24. package/public/chunk-AMDY4THY.js +1 -0
  25. package/public/chunk-BMQUNGKK.js +1 -0
  26. package/public/chunk-CCTZD6S5.js +1 -0
  27. package/public/chunk-HHW5G2CI.js +1 -0
  28. package/public/chunk-IVUSRYQI.js +1 -0
  29. package/public/{chunk-K7PZKJJ7.js → chunk-JEAAYERI.js} +2 -2
  30. package/public/{chunk-J43UG5Q3.js → chunk-KGFHR4JM.js} +2 -2
  31. package/public/chunk-L4FEUXHI.js +4372 -0
  32. package/public/{chunk-XTQIZ74A.js → chunk-N4UL6N3G.js} +1 -1
  33. package/public/{chunk-K2CIRFN7.js → chunk-OPNUYGIO.js} +51 -51
  34. package/public/chunk-P5KVJ35V.js +1 -0
  35. package/public/{chunk-FC62PK2U.js → chunk-PU7NCPYW.js} +5 -5
  36. package/public/{chunk-KNJHWYQ3.js → chunk-TK54SKYF.js} +1 -1
  37. package/public/{chunk-2M5JDEPT.js → chunk-VJLDZ4NI.js} +11 -11
  38. package/public/{chunk-ABEPBSQB.js → chunk-WCLDE6BT.js} +1 -1
  39. package/public/{chunk-TTKT5FKY.js → chunk-WTDLBURC.js} +3 -3
  40. package/public/{chunk-2UND4DAL.js → chunk-WYYDGUIZ.js} +2 -2
  41. package/public/index.html +2 -2
  42. package/public/main-I7SJMW3M.js +468 -0
  43. package/public/styles-YRQUZIIZ.css +1 -0
  44. package/public/worker-3WLRYUBE.js +3 -0
  45. package/public/worker-BFPH3XRP.js +26 -0
  46. package/public/worker-SUE26ZZI.js +12 -0
  47. package/public/chunk-33UDAXN5.js +0 -1
  48. package/public/chunk-3FOJW6X2.js +0 -1
  49. package/public/chunk-CJYO3MRU.js +0 -1
  50. package/public/chunk-FHFMCRY4.js +0 -4197
  51. package/public/chunk-FTLLJC55.js +0 -1
  52. package/public/chunk-QGRCSFIW.js +0 -1
  53. package/public/chunk-UYQ6T6PQ.js +0 -1
  54. package/public/chunk-WHLON3TU.js +0 -1
  55. package/public/main-WJS4CMGQ.js +0 -466
  56. package/public/styles-4PTRKEMS.css +0 -1
  57. package/public/worker-JRN7I6EJ.js +0 -12
  58. package/public/worker-U7H5YFPO.js +0 -3
  59. package/public/worker-WYGJSPFM.js +0 -26
@@ -1,4 +1,4 @@
1
- import{$a as Sr,$c as Xr,Cb as qr,Db as Vr,Ea as Le,Fa as Me,Fc as Kr,Ga as ot,Gb as Qr,Ia as ut,Ja as at,Jb as Tt,Ka as I,L as Fr,La as se,M as bt,Ma as ce,Na as Q,P as ze,Pb as We,Rb as Ur,Ta as Tr,Tb as $r,W as Cr,Ya as re,Za as _r,_a as Jt,aa as br,ac as Wr,bb as Br,cb as Ir,cc as Yr,da as yr,db as zr,eb as Lr,fa as Er,fb as en,ga as yt,gb as Mr,hb as tn,ib as vr,ja as N,kb as lt,la as wr,lb as ve,lc as Gr,mb as $e,nb as Pr,nd as Zr,oa as Ar,ra as it,sa as Et,sb as Rr,ta as wt,tb as Nr,ub as Or,vb as nn,wa as At,wb as Hr,xc as _t,zb as jr}from"./chunk-K2CIRFN7.js";import{a as E,b as be,c as Oo,d as Ho,e as jo}from"./chunk-6H3I7D5M.js";var li=Oo((sc,ai)=>{"use strict";var St=Object.prototype.hasOwnProperty,ui=Object.prototype.toString,ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ni=function(n){return typeof Array.isArray=="function"?Array.isArray(n):ui.call(n)==="[object Array]"},ri=function(n){if(!n||ui.call(n)!=="[object Object]")return!1;var t=St.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&St.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||St.call(n,i)},ii=function(n,t){ei&&t.name==="__proto__"?ei(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},oi=function(n,t){if(t==="__proto__")if(St.call(n,t)){if(ti)return ti(n,t).value}else return;return n[t]};ai.exports=function e(){var n,t,r,i,u,o,a=arguments[0],l=1,s=arguments.length,m=!1;for(typeof a=="boolean"&&(m=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<s;++l)if(n=arguments[l],n!=null)for(t in n)r=oi(a,t),i=oi(n,t),a!==i&&(m&&i&&(ri(i)||(u=ni(i)))?(u?(u=!1,o=r&&ni(r)?r:[]):o=r&&ri(r)?r:{},ii(a,{name:t,newValue:e(m,o,i)})):typeof i<"u"&&ii(a,{name:t,newValue:i}));return a}});var Ws=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Et({type:e});static \u0275inj=bt({imports:[Zr,Xr,_t,Kr]})}return e})();var qo=["*",[["mat-toolbar-row"]]],Vo=["*","mat-toolbar-row"],Qo=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=wt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return e})(),oc=(()=>{class e{_elementRef=ze(yr);_platform=ze(Gr);_document=ze(Cr);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=it({type:e,selectors:[["mat-toolbar"]],contentQueries:function(r,i,u){if(r&1&&Sr(u,Qo,5),r&2){let o;Br(o=Ir())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,i){r&2&&(lt(i.color?"mat-"+i.color:""),vr("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",i._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Vo,decls:2,vars:0,template:function(r,i){r&1&&(_r(qo),Jt(0),Jt(1,1))},styles:[`.mat-toolbar {
1
+ import{$a as Sr,Db as qr,Ea as Le,Eb as Vr,Fa as Me,Ga as ot,Gc as Kr,Hb as Qr,Ia as ut,Ja as at,Ka as I,Kb as Tt,L as Fr,La as se,M as bt,Ma as ce,Na as Q,P as ze,Qb as We,Sb as Ur,Ta as Tr,Ub as $r,W as Cr,Ya as re,Za as _r,_a as Jt,aa as br,ad as Xr,bb as Br,bc as Wr,cb as Ir,da as yr,db as zr,dc as Yr,eb as Lr,fa as Er,fb as en,ga as yt,gb as Mr,hb as tn,ib as vr,ja as N,kb as lt,la as wr,lb as ve,mb as $e,mc as Gr,nb as Pr,oa as Ar,od as Zr,ra as it,sa as Et,sb as Rr,ta as wt,tb as Nr,ub as Or,vb as nn,wa as At,wb as Hr,yc as _t,zb as jr}from"./chunk-OPNUYGIO.js";import{a as E,b as be,c as Oo,d as Ho,e as jo}from"./chunk-6H3I7D5M.js";var li=Oo((sc,ai)=>{"use strict";var St=Object.prototype.hasOwnProperty,ui=Object.prototype.toString,ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ni=function(n){return typeof Array.isArray=="function"?Array.isArray(n):ui.call(n)==="[object Array]"},ri=function(n){if(!n||ui.call(n)!=="[object Object]")return!1;var t=St.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&St.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||St.call(n,i)},ii=function(n,t){ei&&t.name==="__proto__"?ei(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},oi=function(n,t){if(t==="__proto__")if(St.call(n,t)){if(ti)return ti(n,t).value}else return;return n[t]};ai.exports=function e(){var n,t,r,i,u,o,a=arguments[0],l=1,s=arguments.length,m=!1;for(typeof a=="boolean"&&(m=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<s;++l)if(n=arguments[l],n!=null)for(t in n)r=oi(a,t),i=oi(n,t),a!==i&&(m&&i&&(ri(i)||(u=ni(i)))?(u?(u=!1,o=r&&ni(r)?r:[]):o=r&&ri(r)?r:{},ii(a,{name:t,newValue:e(m,o,i)})):typeof i<"u"&&ii(a,{name:t,newValue:i}));return a}});var qo=["*",[["mat-toolbar-row"]]],Vo=["*","mat-toolbar-row"],Qo=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=wt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return e})(),Ks=(()=>{class e{_elementRef=ze(yr);_platform=ze(Gr);_document=ze(Cr);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=it({type:e,selectors:[["mat-toolbar"]],contentQueries:function(r,i,u){if(r&1&&Sr(u,Qo,5),r&2){let o;Br(o=Ir())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,i){r&2&&(lt(i.color?"mat-"+i.color:""),vr("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",i._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Vo,decls:2,vars:0,template:function(r,i){r&1&&(_r(qo),Jt(0),Jt(1,1))},styles:[`.mat-toolbar {
2
2
  background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface));
3
3
  color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));
4
4
  }
@@ -63,7 +63,7 @@ import{$a as Sr,$c as Xr,Cb as qr,Db as Vr,Ea as Le,Fa as Me,Fc as Kr,Ga as ot,G
63
63
  min-height: var(--mat-toolbar-mobile-height, 56px);
64
64
  }
65
65
  }
66
- `],encapsulation:2,changeDetection:0})}return e})();var uc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Et({type:e});static \u0275inj=bt({imports:[_t]})}return e})();function rn(e){if(e)throw e}var It=jo(li(),1);function st(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 on(){let e=[],n={run:t,use:r};return n;function t(...i){let u=-1,o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...s){let m=e[++u],c=-1;if(l){o(l);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,m?si(m,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 si(e,n){let t;return r;function r(...o){let a=e.length>o.length,l;a&&o.push(i);try{l=e.apply(this,o)}catch(s){let m=s;if(a&&t)throw m;return i(m)}a||(l&&l.then&&typeof l.then=="function"?l.then(u,i):l instanceof Error?i(l):u(l))}function i(o,...a){t||(t=!0,n(o,...a))}function u(o){i(null,o)}}function ye(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ci(e.position):"start"in e||"end"in e?ci(e):"line"in e||"column"in e?un(e):""}function un(e){return mi(e&&e.line)+":"+mi(e&&e.column)}function ci(e){return un(e&&e.start)+"-"+un(e&&e.end)}function mi(e){return e&&typeof e=="number"?e:1}var Z=class extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",u={},o=!1;if(t&&("line"in t&&"column"in t?u={place:t}:"start"in t&&"end"in t?u={place:t}:"type"in t?u={ancestors:[t],place:t.position}:u=E({},t)),typeof n=="string"?i=n:!u.cause&&n&&(o=!0,i=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?u.ruleId=r:(u.source=r.slice(0,l),u.ruleId=r.slice(l+1))}if(!u.place&&u.ancestors&&u.ancestors){let l=u.ancestors[u.ancestors.length-1];l&&(u.place=l.position)}let a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.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=ye(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=o&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Z.prototype.file="";Z.prototype.name="";Z.prototype.reason="";Z.prototype.message="";Z.prototype.stack="";Z.prototype.column=void 0;Z.prototype.line=void 0;Z.prototype.ancestors=void 0;Z.prototype.cause=void 0;Z.prototype.fatal=void 0;Z.prototype.place=void 0;Z.prototype.ruleId=void 0;Z.prototype.source=void 0;var me={basename:Uo,dirname:$o,extname:Wo,join:Yo,sep:"/"};function Uo(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ct(e);let t=0,r=-1,i=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(u){t=i+1;break}}else r<0&&(u=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(u){t=i+1;break}}else o<0&&(u=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function $o(e){if(ct(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Wo(e){ct(e);let n=e.length,t=-1,r=0,i=-1,u=0,o;for(;n--;){let a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:u!==1&&(u=1):i>-1&&(u=-1)}return i<0||t<0||u===0||u===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Yo(...e){let n=-1,t;for(;++n<e.length;)ct(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Go(t)}function Go(e){ct(e);let n=e.codePointAt(0)===47,t=Ko(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ko(e,n){let t="",r=0,i=-1,u=0,o=-1,a,l;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||u===1))if(i!==o-1&&u===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(l=t.lastIndexOf("/"),l!==t.length-1){l<0?(t="",r=0):(t=t.slice(0,l),r=t.length-1-t.lastIndexOf("/")),i=o,u=0;continue}}else if(t.length>0){t="",r=0,i=o,u=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,u=0}else a===46&&u>-1?u++:u=-1}return t}function ct(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var fi={cwd:Xo};function Xo(){return"/"}function Ye(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pi(e){if(typeof e=="string")e=new URL(e);else if(!Ye(e)){let n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){let n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Zo(e)}function Zo(e){if(e.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let n=e.pathname,t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){let r=n.codePointAt(t+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}var an=["history","path","basename","stem","extname","dirname"],mt=class{constructor(n){let t;n?Ye(n)?t={path:n}:typeof n=="string"||Jo(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":fi.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<an.length;){let u=an[r];u in t&&t[u]!==void 0&&t[u]!==null&&(this[u]=u==="history"?[...t[u]]:t[u])}let i;for(i in t)an.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?me.basename(this.path):void 0}set basename(n){sn(n,"basename"),ln(n,"basename"),this.path=me.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?me.dirname(this.path):void 0}set dirname(n){hi(this.basename,"dirname"),this.path=me.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?me.extname(this.path):void 0}set extname(n){if(ln(n,"extname"),hi(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=me.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Ye(n)&&(n=pi(n)),sn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?me.basename(this.path,this.extname):void 0}set stem(n){sn(n,"stem"),ln(n,"stem"),this.path=me.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 Z(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 ln(e,n){if(e&&e.includes(me.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+me.sep+"`")}function sn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function hi(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Jo(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var di=function(e){let r=this.constructor.prototype,i=r[e],u=function(){return i.apply(u,arguments)};return Object.setPrototypeOf(u,r),u};var eu={}.hasOwnProperty,pn=class e extends di{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=on()}copy(){let n=new e,t=-1;for(;++t<this.attachers.length;){let r=this.attachers[t];n.use(...r)}return n.data((0,It.default)(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(fn("data",this.frozen),this.namespace[n]=t,this):eu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(fn("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=Bt(n),r=this.parser||this.Parser;return cn("parse",r),r(String(t),t)}process(n,t){let r=this;return this.freeze(),cn("process",this.parser||this.Parser),mn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(u,o){let a=Bt(n),l=r.parse(a);r.run(l,a,function(m,c,p){if(m||!c||!p)return s(m);let f=c,g=r.stringify(f,p);nu(g)?p.value=g:p.result=g,s(m,p)});function s(m,c){m||!c?o(m):u?u(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),cn("processSync",this.parser||this.Parser),mn("processSync",this.compiler||this.Compiler),this.process(n,i),Di("processSync","process",t),r;function i(u,o){t=!0,rn(u),r=o}}run(n,t,r){gi(n),this.freeze();let i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?u(void 0,r):new Promise(u);function u(o,a){let l=Bt(t);i.run(n,l,s);function s(m,c,p){let f=c||n;m?a(m):o?o(f):r(void 0,f,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,u),Di("runSync","run",r),i;function u(o,a){rn(o),i=a,r=!0}}stringify(n,t){this.freeze();let r=Bt(t),i=this.compiler||this.Compiler;return mn("stringify",i),gi(n),i(n,r)}use(n,...t){let r=this.attachers,i=this.namespace;if(fn("use",this.frozen),n!=null)if(typeof n=="function")l(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 u(s){if(typeof s=="function")l(s,[]);else if(typeof s=="object")if(Array.isArray(s)){let[m,...c]=s;l(m,c)}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,It.default)(!0,i.settings,s.settings))}function a(s){let m=-1;if(s!=null)if(Array.isArray(s))for(;++m<s.length;){let c=s[m];u(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function l(s,m){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...m]);else if(m.length>0){let[f,...g]=m,y=r[p][1];st(y)&&st(f)&&(f=(0,It.default)(!0,y,f)),r[p]=[s,f,...g]}}}},ft=new pn().freeze();function cn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fn(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 gi(e){if(!st(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Di(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Bt(e){return tu(e)?e:new mt(e)}function tu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nu(e){return typeof e=="string"||ru(e)}function ru(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var iu={};function Pe(e,n){let t=n||iu,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return ki(e,r,i)}function ki(e,n,t){if(ou(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 xi(e.children,n,t)}return Array.isArray(e)?xi(e,n,t):""}function xi(e,n,t){let r=[],i=-1;for(;++i<e.length;)r[i]=ki(e[i],n,t);return r.join("")}function ou(e){return!!(e&&typeof e=="object")}var Fi=document.createElement("i");function Ge(e){let n="&"+e+";";Fi.innerHTML=n;let t=Fi.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function W(e,n,t,r){let i=e.length,u=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);u<r.length;)o=r.slice(u,u+1e4),o.unshift(n,0),e.splice(...o),u+=1e4,n+=1e4}function ne(e,n){return e.length>0?(W(e,e.length,0,n),e):n}var Ci={}.hasOwnProperty;function zt(e){let n={},t=-1;for(;++t<e.length;)uu(n,e[t]);return n}function uu(e,n){let t;for(t in n){let i=(Ci.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t],o;if(u)for(o in u){Ci.call(i,o)||(i[o]=[]);let a=u[o];au(i[o],Array.isArray(a)?a:a?[a]:[])}}}function au(e,n){let t=-1,r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);W(e,0,0,r)}function Lt(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)}function ee(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var G=Ee(/[A-Za-z]/),K=Ee(/[\dA-Za-z]/),bi=Ee(/[#-'*+\--9=?A-Z^-~]/);function Re(e){return e!==null&&(e<32||e===127)}var pt=Ee(/\d/),yi=Ee(/[\dA-Fa-f]/),Ei=Ee(/[!-/:-@[-`{-~]/);function w(e){return e!==null&&e<-2}function R(e){return e!==null&&(e<0||e===32)}function B(e){return e===-2||e===-1||e===32}var Ne=Ee(new RegExp("\\p{P}|\\p{S}","u")),pe=Ee(/\s/);function Ee(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function S(e,n,t,r){let i=r?r-1:Number.POSITIVE_INFINITY,u=0;return o;function o(l){return B(l)?(e.enter(t),a(l)):n(l)}function a(l){return B(l)&&u++<i?(e.consume(l),a):(e.exit(t),n(l))}}var wi={tokenize:lu};function lu(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"),S(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),u(a)}function u(a){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return w(a)?(e.consume(a),e.exit("chunkText"),u):(e.consume(a),o)}}var Ti={tokenize:su},Ai={tokenize:cu};function su(e){let n=this,t=[],r=0,i,u,o;return a;function a(C){if(r<t.length){let v=t[r];return n.containerState=v[1],e.attempt(v[0].continuation,l,s)(C)}return s(C)}function l(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&T();let v=n.events.length,P=v,F;for(;P--;)if(n.events[P][0]==="exit"&&n.events[P][1].type==="chunkFlow"){F=n.events[P][1].end;break}x(r);let H=v;for(;H<n.events.length;)n.events[H][1].end=E({},F),H++;return W(n.events,P+1,0,n.events.slice(v)),n.events.length=H,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Ai,m,c)(C)}function m(C){return i&&T(),x(r),p(C)}function c(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,g(C)}function p(C){return n.containerState={},e.attempt(Ai,f,g)(C)}function f(C){return r++,t.push([n.currentConstruct,n.containerState]),p(C)}function g(C){if(C===null){i&&T(),x(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:u}),y(C)}function y(C){if(C===null){A(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return w(C)?(e.consume(C),A(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),y)}function A(C,v){let P=n.sliceStream(C);if(v&&P.push(null),C.previous=u,u&&(u.next=C),u=C,i.defineSkip(C.start),i.write(P),n.parser.lazy[C.start.line]){let F=i.events.length;for(;F--;)if(i.events[F][1].start.offset<o&&(!i.events[F][1].end||i.events[F][1].end.offset>o))return;let H=n.events.length,U=H,j,D;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(j){D=n.events[U][1].end;break}j=!0}for(x(r),F=H;F<n.events.length;)n.events[F][1].end=E({},D),F++;W(n.events,U+1,0,n.events.slice(H)),n.events.length=F}}function x(C){let v=t.length;for(;v-- >C;){let P=t[v];n.containerState=P[1],P[0].exit.call(n,e)}t.length=C}function T(){i.write([null]),u=void 0,i=void 0,n.containerState._closeFlow=void 0}}function cu(e,n,t){return S(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fe(e){if(e===null||R(e)||pe(e))return 1;if(Ne(e))return 2}function we(e,n,t){let r=[],i=-1;for(;++i<e.length;){let u=e[i].resolveAll;u&&!r.includes(u)&&(n=u(n,t),r.push(u))}return n}var ht={name:"attention",resolveAll:mu,tokenize:fu};function mu(e,n){let t=-1,r,i,u,o,a,l,s,m;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;l=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 c=E({},e[r][1].end),p=E({},e[t][1].start);_i(c,-l),_i(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:c,end:E({},e[r][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:E({},e[t][1].start),end:p},u={type:l>1?"strongText":"emphasisText",start:E({},e[r][1].end),end:E({},e[t][1].start)},i={type:l>1?"strong":"emphasis",start:E({},o.start),end:E({},a.end)},e[r][1].end=E({},o.start),e[t][1].start=E({},a.end),s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=ne(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=ne(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",u,n]]),s=ne(s,we(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=ne(s,[["exit",u,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(m=2,s=ne(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):m=0,W(e,r-1,t-r+3,s),t=r+s.length-m-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function fu(e,n){let t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fe(r),u;return o;function o(l){return u=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===u)return e.consume(l),a;let s=e.exit("attentionSequence"),m=Fe(l),c=!m||m===2&&i||t.includes(l),p=!i||i===2&&m||t.includes(r);return s._open=!!(u===42?c:c&&(i||!p)),s._close=!!(u===42?p:p&&(m||!c)),n(l)}}function _i(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}var hn={name:"autolink",tokenize:pu};function pu(e,n,t){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(f){return G(f)?(e.consume(f),o):f===64?t(f):s(f)}function o(f){return f===43||f===45||f===46||K(f)?(r=1,a(f)):s(f)}function a(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||K(f))&&r++<32?(e.consume(f),a):(r=0,s(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):f===null||f===32||f===60||Re(f)?t(f):(e.consume(f),l)}function s(f){return f===64?(e.consume(f),m):bi(f)?(e.consume(f),s):t(f)}function m(f){return K(f)?c(f):t(f)}function c(f){return f===46?(e.consume(f),r=0,m):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):p(f)}function p(f){if((f===45||K(f))&&r++<63){let g=f===45?p:c;return e.consume(f),g}return t(f)}}var he={partial:!0,tokenize:hu};function hu(e,n,t){return r;function r(u){return B(u)?S(e,i,"linePrefix")(u):i(u)}function i(u){return u===null||w(u)?n(u):t(u)}}var Mt={continuation:{tokenize:gu},exit:Du,name:"blockQuote",tokenize:du};function du(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"),u}return t(o)}function u(o){return B(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function gu(e,n,t){let r=this;return i;function i(o){return B(o)?S(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):u(o)}function u(o){return e.attempt(Mt,n,t)(o)}}function Du(e){e.exit("blockQuote")}var vt={name:"characterEscape",tokenize:xu};function xu(e,n,t){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),i}function i(u){return Ei(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(u)}}var Pt={name:"characterReference",tokenize:ku};function ku(e,n,t){let r=this,i=0,u,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),u=31,o=K,m(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,o=yi,m):(e.enter("characterReferenceValue"),u=7,o=pt,m(c))}function m(c){if(c===59&&i){let p=e.exit("characterReferenceValue");return o===K&&!Ge(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(c)&&i++<u?(e.consume(c),m):t(c)}}var Si={partial:!0,tokenize:Cu},Rt={concrete:!0,name:"codeFenced",tokenize:Fu};function Fu(e,n,t){let r=this,i={partial:!0,tokenize:P},u=0,o=0,a;return l;function l(F){return s(F)}function s(F){let H=r.events[r.events.length-1];return u=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,a=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(F)}function m(F){return F===a?(o++,e.consume(F),m):o<3?t(F):(e.exit("codeFencedFenceSequence"),B(F)?S(e,c,"whitespace")(F):c(F))}function c(F){return F===null||w(F)?(e.exit("codeFencedFence"),r.interrupt?n(F):e.check(Si,y,v)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(F))}function p(F){return F===null||w(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(F)):B(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),S(e,f,"whitespace")(F)):F===96&&F===a?t(F):(e.consume(F),p)}function f(F){return F===null||w(F)?c(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(F))}function g(F){return F===null||w(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(F)):F===96&&F===a?t(F):(e.consume(F),g)}function y(F){return e.attempt(i,v,A)(F)}function A(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),x}function x(F){return u>0&&B(F)?S(e,T,"linePrefix",u+1)(F):T(F)}function T(F){return F===null||w(F)?e.check(Si,y,v)(F):(e.enter("codeFlowValue"),C(F))}function C(F){return F===null||w(F)?(e.exit("codeFlowValue"),T(F)):(e.consume(F),C)}function v(F){return e.exit("codeFenced"),n(F)}function P(F,H,U){let j=0;return D;function D(M){return F.enter("lineEnding"),F.consume(M),F.exit("lineEnding"),X}function X(M){return F.enter("codeFencedFence"),B(M)?S(F,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):q(M)}function q(M){return M===a?(F.enter("codeFencedFenceSequence"),_(M)):U(M)}function _(M){return M===a?(j++,F.consume(M),_):j>=o?(F.exit("codeFencedFenceSequence"),B(M)?S(F,L,"whitespace")(M):L(M)):U(M)}function L(M){return M===null||w(M)?(F.exit("codeFencedFence"),H(M)):U(M)}}}function Cu(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"),u)}function u(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}var dt={name:"codeIndented",tokenize:yu},bu={partial:!0,tokenize:Eu};function yu(e,n,t){let r=this;return i;function i(s){return e.enter("codeIndented"),S(e,u,"linePrefix",5)(s)}function u(s){let m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?l(s):w(s)?e.attempt(bu,o,l)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||w(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function l(s){return e.exit("codeIndented"),n(s)}}function Eu(e,n,t){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):w(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):S(e,u,"linePrefix",5)(o)}function u(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):w(o)?i(o):t(o)}}var dn={name:"codeText",previous:Au,resolve:wu,tokenize:Tu};function wu(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 Au(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Tu(e,n,t){let r=this,i=0,u,o;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),i++,l):(e.exit("codeTextSequence"),s(p))}function s(p){return p===null?t(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),s):p===96?(o=e.enter("codeTextSequence"),u=0,c(p)):w(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("codeTextData"),m(p))}function m(p){return p===null||p===32||p===96||w(p)?(e.exit("codeTextData"),s(p)):(e.consume(p),m)}function c(p){return p===96?(e.consume(p),u++,c):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(o.type="codeTextData",m(p))}}var Nt=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??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){let i=t||0;this.setCursor(Math.trunc(n));let u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&gt(this.left,r),u.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),gt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),gt(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);gt(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);gt(this.left,t.reverse())}}};function gt(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 Ot(e){let n={},t=-1,r,i,u,o,a,l,s,m=new Nt(e);for(;++t<m.length;){for(;t in n;)t=n[t];if(r=m.get(t),t&&r[1].type==="chunkFlow"&&m.get(t-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,u=0,u<l.length&&l[u][1].type==="lineEndingBlank"&&(u+=2),u<l.length&&l[u][1].type==="content"))for(;++u<l.length&&l[u][1].type!=="content";)l[u][1].type==="chunkText"&&(l[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,_u(m,t)),t=n[t],s=!0);else if(r[1]._container){for(u=t,i=void 0;u--;)if(o=m.get(u),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=u);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end=E({},m.get(i)[1].start),a=m.slice(i,t),a.unshift(r),m.splice(i,t-i+1,a))}}return W(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!s}function _u(e,n){let t=e.get(n)[1],r=e.get(n)[2],i=n-1,u=[],o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let a=o.events,l=[],s={},m,c,p=-1,f=t,g=0,y=0,A=[y];for(;f;){for(;e.get(++i)[1]!==f;);u.push(i),f._tokenizer||(m=r.sliceStream(f),f.next||m.push(null),c&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(m),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(y=p+1,A.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):A.pop(),p=A.length;p--;){let x=a.slice(A[p],A[p+1]),T=u.pop();l.push([T,T+x.length-1]),e.splice(T,2,x)}for(l.reverse(),p=-1;++p<l.length;)s[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return s}var gn={resolve:Bu,tokenize:Iu},Su={partial:!0,tokenize:zu};function Bu(e){return Ot(e),e}function Iu(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?u(a):w(a)?e.check(Su,o,u)(a):(e.consume(a),i)}function u(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 zu(e,n,t){let r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),S(e,u,"linePrefix")}function u(o){if(o===null||w(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 Ht(e,n,t,r,i,u,o,a,l){let s=l||Number.POSITIVE_INFINITY,m=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(x),e.exit(u),p):x===null||x===32||x===41||Re(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(x))}function p(x){return x===62?(e.enter(u),e.consume(x),e.exit(u),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||w(x)?t(x):(e.consume(x),x===92?g:f)}function g(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function y(x){return!m&&(x===null||x===41||R(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):m<s&&x===40?(e.consume(x),m++,y):x===41?(e.consume(x),m--,y):x===null||x===32||x===40||Re(x)?t(x):(e.consume(x),x===92?A:y)}function A(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function jt(e,n,t,r,i,u){let o=this,a=0,l;return s;function s(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(u),m}function m(f){return a>999||f===null||f===91||f===93&&!l||f===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(f):f===93?(e.exit(u),e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):w(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||w(f)||a++>999?(e.exit("chunkString"),m(f)):(e.consume(f),l||(l=!B(f)),f===92?p:c)}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function qt(e,n,t,r,i,u){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,l):t(p)}function l(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(u),s(p))}function s(p){return p===o?(e.exit(u),l(o)):p===null?t(p):w(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),S(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(p))}function m(p){return p===o||p===null||w(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:m)}function c(p){return p===o||p===92?(e.consume(p),m):m(p)}}function Oe(e,n){let t;return r;function r(i){return w(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):B(i)?S(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}var Dn={name:"definition",tokenize:Mu},Lu={partial:!0,tokenize:vu};function Mu(e,n,t){let r=this,i;return u;function u(f){return e.enter("definition"),o(f)}function o(f){return jt.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=ee(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):t(f)}function l(f){return R(f)?Oe(e,s)(f):s(f)}function s(f){return Ht(e,m,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function m(f){return e.attempt(Lu,c,c)(f)}function c(f){return B(f)?S(e,p,"whitespace")(f):p(f)}function p(f){return f===null||w(f)?(e.exit("definition"),r.parser.defined.push(i),n(f)):t(f)}}function vu(e,n,t){return r;function r(a){return R(a)?Oe(e,i)(a):t(a)}function i(a){return qt(e,u,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function u(a){return B(a)?S(e,o,"whitespace")(a):o(a)}function o(a){return a===null||w(a)?n(a):t(a)}}var xn={name:"hardBreakEscape",tokenize:Pu};function Pu(e,n,t){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),i}function i(u){return w(u)?(e.exit("hardBreakEscape"),n(u)):t(u)}}var kn={name:"headingAtx",resolve:Ru,tokenize:Nu};function Ru(e,n){let t=e.length-2,r=3,i,u;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},u={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},W(e,r,t-r+1,[["enter",i,n],["enter",u,n],["exit",u,n],["exit",i,n]])),e}function Nu(e,n,t){let r=0;return i;function i(m){return e.enter("atxHeading"),u(m)}function u(m){return e.enter("atxHeadingSequence"),o(m)}function o(m){return m===35&&r++<6?(e.consume(m),o):m===null||R(m)?(e.exit("atxHeadingSequence"),a(m)):t(m)}function a(m){return m===35?(e.enter("atxHeadingSequence"),l(m)):m===null||w(m)?(e.exit("atxHeading"),n(m)):B(m)?S(e,a,"whitespace")(m):(e.enter("atxHeadingText"),s(m))}function l(m){return m===35?(e.consume(m),l):(e.exit("atxHeadingSequence"),a(m))}function s(m){return m===null||m===35||R(m)?(e.exit("atxHeadingText"),a(m)):(e.consume(m),s)}}var Bi=["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"],Fn=["pre","script","style","textarea"];var Cn={concrete:!0,name:"htmlFlow",resolveTo:ju,tokenize:qu},Ou={partial:!0,tokenize:Qu},Hu={partial:!0,tokenize:Vu};function ju(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 qu(e,n,t){let r=this,i,u,o,a,l;return s;function s(d){return m(d)}function m(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),u=!0,y):d===63?(e.consume(d),i=3,r.interrupt?n:h):G(d)?(e.consume(d),o=String.fromCharCode(d),A):t(d)}function p(d){return d===45?(e.consume(d),i=2,f):d===91?(e.consume(d),i=5,a=0,g):G(d)?(e.consume(d),i=4,r.interrupt?n:h):t(d)}function f(d){return d===45?(e.consume(d),r.interrupt?n:h):t(d)}function g(d){let ie="CDATA[";return d===ie.charCodeAt(a++)?(e.consume(d),a===ie.length?r.interrupt?n:q:g):t(d)}function y(d){return G(d)?(e.consume(d),o=String.fromCharCode(d),A):t(d)}function A(d){if(d===null||d===47||d===62||R(d)){let ie=d===47,Se=o.toLowerCase();return!ie&&!u&&Fn.includes(Se)?(i=1,r.interrupt?n(d):q(d)):Bi.includes(o.toLowerCase())?(i=6,ie?(e.consume(d),x):r.interrupt?n(d):q(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):u?T(d):C(d))}return d===45||K(d)?(e.consume(d),o+=String.fromCharCode(d),A):t(d)}function x(d){return d===62?(e.consume(d),r.interrupt?n:q):t(d)}function T(d){return B(d)?(e.consume(d),T):D(d)}function C(d){return d===47?(e.consume(d),D):d===58||d===95||G(d)?(e.consume(d),v):B(d)?(e.consume(d),C):D(d)}function v(d){return d===45||d===46||d===58||d===95||K(d)?(e.consume(d),v):P(d)}function P(d){return d===61?(e.consume(d),F):B(d)?(e.consume(d),P):C(d)}function F(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),l=d,H):B(d)?(e.consume(d),F):U(d)}function H(d){return d===l?(e.consume(d),l=null,j):d===null||w(d)?t(d):(e.consume(d),H)}function U(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||R(d)?P(d):(e.consume(d),U)}function j(d){return d===47||d===62||B(d)?C(d):t(d)}function D(d){return d===62?(e.consume(d),X):t(d)}function X(d){return d===null||w(d)?q(d):B(d)?(e.consume(d),X):t(d)}function q(d){return d===45&&i===2?(e.consume(d),$):d===60&&i===1?(e.consume(d),Y):d===62&&i===4?(e.consume(d),ue):d===63&&i===3?(e.consume(d),h):d===93&&i===5?(e.consume(d),fe):w(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ou,ge,_)(d)):d===null||w(d)?(e.exit("htmlFlowData"),_(d)):(e.consume(d),q)}function _(d){return e.check(Hu,L,ge)(d)}function L(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),M}function M(d){return d===null||w(d)?_(d):(e.enter("htmlFlowData"),q(d))}function $(d){return d===45?(e.consume(d),h):q(d)}function Y(d){return d===47?(e.consume(d),o="",ae):q(d)}function ae(d){if(d===62){let ie=o.toLowerCase();return Fn.includes(ie)?(e.consume(d),ue):q(d)}return G(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),ae):q(d)}function fe(d){return d===93?(e.consume(d),h):q(d)}function h(d){return d===62?(e.consume(d),ue):d===45&&i===2?(e.consume(d),h):q(d)}function ue(d){return d===null||w(d)?(e.exit("htmlFlowData"),ge(d)):(e.consume(d),ue)}function ge(d){return e.exit("htmlFlow"),n(d)}}function Vu(e,n,t){let r=this;return i;function i(o){return w(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),u):t(o)}function u(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Qu(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(he,n,t)}}var bn={name:"htmlText",tokenize:Uu};function Uu(e,n,t){let r=this,i,u,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),l}function l(h){return h===33?(e.consume(h),s):h===47?(e.consume(h),P):h===63?(e.consume(h),C):G(h)?(e.consume(h),U):t(h)}function s(h){return h===45?(e.consume(h),m):h===91?(e.consume(h),u=0,g):G(h)?(e.consume(h),T):t(h)}function m(h){return h===45?(e.consume(h),f):t(h)}function c(h){return h===null?t(h):h===45?(e.consume(h),p):w(h)?(o=c,Y(h)):(e.consume(h),c)}function p(h){return h===45?(e.consume(h),f):c(h)}function f(h){return h===62?$(h):h===45?p(h):c(h)}function g(h){let ue="CDATA[";return h===ue.charCodeAt(u++)?(e.consume(h),u===ue.length?y:g):t(h)}function y(h){return h===null?t(h):h===93?(e.consume(h),A):w(h)?(o=y,Y(h)):(e.consume(h),y)}function A(h){return h===93?(e.consume(h),x):y(h)}function x(h){return h===62?$(h):h===93?(e.consume(h),x):y(h)}function T(h){return h===null||h===62?$(h):w(h)?(o=T,Y(h)):(e.consume(h),T)}function C(h){return h===null?t(h):h===63?(e.consume(h),v):w(h)?(o=C,Y(h)):(e.consume(h),C)}function v(h){return h===62?$(h):C(h)}function P(h){return G(h)?(e.consume(h),F):t(h)}function F(h){return h===45||K(h)?(e.consume(h),F):H(h)}function H(h){return w(h)?(o=H,Y(h)):B(h)?(e.consume(h),H):$(h)}function U(h){return h===45||K(h)?(e.consume(h),U):h===47||h===62||R(h)?j(h):t(h)}function j(h){return h===47?(e.consume(h),$):h===58||h===95||G(h)?(e.consume(h),D):w(h)?(o=j,Y(h)):B(h)?(e.consume(h),j):$(h)}function D(h){return h===45||h===46||h===58||h===95||K(h)?(e.consume(h),D):X(h)}function X(h){return h===61?(e.consume(h),q):w(h)?(o=X,Y(h)):B(h)?(e.consume(h),X):j(h)}function q(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,_):w(h)?(o=q,Y(h)):B(h)?(e.consume(h),q):(e.consume(h),L)}function _(h){return h===i?(e.consume(h),i=void 0,M):h===null?t(h):w(h)?(o=_,Y(h)):(e.consume(h),_)}function L(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||R(h)?j(h):(e.consume(h),L)}function M(h){return h===47||h===62||R(h)?j(h):t(h)}function $(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function Y(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ae}function ae(h){return B(h)?S(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fe(h)}function fe(h){return e.enter("htmlTextData"),o(h)}}var He={name:"labelEnd",resolveAll:Gu,resolveTo:Ku,tokenize:Xu},$u={tokenize:Zu},Wu={tokenize:Ju},Yu={tokenize:ea};function Gu(e){let n=-1,t=[];for(;++n<e.length;){let r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&W(e,0,e.length,t),e}function Ku(e,n){let t=e.length,r=0,i,u,o,a;for(;t--;)if(i=e[t][1],u){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&&(u=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);let l={type:e[u][1].type==="labelLink"?"link":"image",start:E({},e[u][1].start),end:E({},e[e.length-1][1].end)},s={type:"label",start:E({},e[u][1].start),end:E({},e[o][1].end)},m={type:"labelText",start:E({},e[u+r+2][1].end),end:E({},e[o-2][1].start)};return a=[["enter",l,n],["enter",s,n]],a=ne(a,e.slice(u+1,u+r+3)),a=ne(a,[["enter",m,n]]),a=ne(a,we(n.parser.constructs.insideSpan.null,e.slice(u+r+4,o-3),n)),a=ne(a,[["exit",m,n],e[o-2],e[o-1],["exit",s,n]]),a=ne(a,e.slice(o+1)),a=ne(a,[["exit",l,n]]),W(e,u,e.length,a),e}function Xu(e,n,t){let r=this,i=r.events.length,u,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){u=r.events[i][1];break}return a;function a(p){return u?u._inactive?c(p):(o=r.parser.defined.includes(ee(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):t(p)}function l(p){return p===40?e.attempt($u,m,o?m:c)(p):p===91?e.attempt(Wu,m,o?s:c)(p):o?m(p):c(p)}function s(p){return e.attempt(Yu,m,c)(p)}function m(p){return n(p)}function c(p){return u._balanced=!0,t(p)}}function Zu(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return R(c)?Oe(e,u)(c):u(c)}function u(c){return c===41?m(c):Ht(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return R(c)?Oe(e,l)(c):m(c)}function a(c){return t(c)}function l(c){return c===34||c===39||c===40?qt(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):m(c)}function s(c){return R(c)?Oe(e,m)(c):m(c)}function m(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Ju(e,n,t){let r=this;return i;function i(a){return jt.call(r,e,u,o,"reference","referenceMarker","referenceString")(a)}function u(a){return r.parser.defined.includes(ee(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function ea(e,n,t){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),i}function i(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):t(u)}}var yn={name:"labelStartImage",resolveAll:He.resolveAll,tokenize:ta};function ta(e,n,t){let r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),u}function u(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 En={name:"labelStartLink",resolveAll:He.resolveAll,tokenize:na};function na(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"),u}function u(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}var Dt={name:"lineEnding",tokenize:ra};function ra(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),S(e,n,"linePrefix")}}var je={name:"thematicBreak",tokenize:ia};function ia(e,n,t){let r=0,i;return u;function u(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),l(s)):r>=3&&(s===null||w(s))?(e.exit("thematicBreak"),n(s)):t(s)}function l(s){return s===i?(e.consume(s),r++,l):(e.exit("thematicBreakSequence"),B(s)?S(e,a,"whitespace")(s):a(s))}}var te={continuation:{tokenize:la},exit:ca,name:"list",tokenize:aa},oa={partial:!0,tokenize:ma},ua={partial:!0,tokenize:sa};function aa(e,n,t){let r=this,i=r.events[r.events.length-1],u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(f){let g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:pt(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(je,t,s)(f):s(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return t(f)}function l(f){return pt(f)&&++o<10?(e.consume(f),l):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),s(f)):t(f)}function s(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(he,r.interrupt?t:m,e.attempt(oa,p,c))}function m(f){return r.containerState.initialBlankLine=!0,u++,p(f)}function c(f){return B(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):t(f)}function p(f){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(f)}}function la(e,n,t){let r=this;return r.containerState._closeFlow=void 0,e.check(he,i,u);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,S(e,n,"listItemIndent",r.containerState.size+1)(a)}function u(a){return r.containerState.furtherBlankLines||!B(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,S(e,e.attempt(te,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function sa(e,n,t){let r=this;return S(e,i,"listItemIndent",r.containerState.size+1);function i(u){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(u):t(u)}}function ca(e){e.exit(this.containerState.type)}function ma(e,n,t){let r=this;return S(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(u){let o=r.events[r.events.length-1];return!B(u)&&o&&o[1].type==="listItemPrefixWhitespace"?n(u):t(u)}}var Vt={name:"setextUnderline",resolveTo:fa,tokenize:pa};function fa(e,n){let t=e.length,r,i,u;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),!u&&e[t][1].type==="definition"&&(u=t);let o={type:"setextHeading",start:E({},e[r][1].start),end:E({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",u?(e.splice(i,0,["enter",o,n]),e.splice(u+1,0,["exit",e[r][1],n]),e[r][1].end=E({},e[u][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function pa(e,n,t){let r=this,i;return u;function u(s){let m=r.events.length,c;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){c=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(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"),B(s)?S(e,l,"lineSuffix")(s):l(s))}function l(s){return s===null||w(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}var Ii={tokenize:ha};function ha(e){let n=this,t=e.attempt(he,r,e.attempt(this.parser.constructs.flowInitial,i,S(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gn,i)),"linePrefix")));return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,t}}var zi={resolveAll:Pi()},Li=vi("string"),Mi=vi("text");function vi(e){return{resolveAll:Pi(e==="text"?da:void 0),tokenize:n};function n(t){let r=this,i=this.parser.constructs[e],u=t.attempt(i,o,a);return o;function o(m){return s(m)?u(m):a(m)}function a(m){if(m===null){t.consume(m);return}return t.enter("data"),t.consume(m),l}function l(m){return s(m)?(t.exit("data"),u(m)):(t.consume(m),l)}function s(m){if(m===null)return!0;let c=i[m],p=-1;if(c)for(;++p<c.length;){let f=c[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Pi(e){return n;function n(t,r){let i=-1,u;for(;++i<=t.length;)u===void 0?t[i]&&t[i][1].type==="data"&&(u=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==u+2&&(t[u][1].end=t[i-1][1].end,t.splice(u+2,i-u-2),i=u+2),u=void 0);return e?e(t,r):t}}function da(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),u=i.length,o=-1,a=0,l;for(;u--;){let s=i[u];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)l=!0,a++;else if(s!==-1){u++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){let s={type:t===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?o:r.start._bufferIndex+o,_index:r.start._index+u,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:E({},r.end)};r.end=E({},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}var wn={};Ho(wn,{attentionMarkers:()=>ya,contentInitial:()=>Da,disable:()=>Ea,document:()=>ga,flow:()=>ka,flowInitial:()=>xa,insideSpan:()=>ba,string:()=>Fa,text:()=>Ca});var ga={42:te,43:te,45:te,48:te,49:te,50:te,51:te,52:te,53:te,54:te,55:te,56:te,57:te,62:Mt},Da={91:Dn},xa={[-2]:dt,[-1]:dt,32:dt},ka={35:kn,42:je,45:[Vt,je],60:Cn,61:Vt,95:je,96:Rt,126:Rt},Fa={38:Pt,92:vt},Ca={[-5]:Dt,[-4]:Dt,[-3]:Dt,33:yn,38:Pt,42:ht,60:[hn,bn],91:En,92:[xn,vt],93:He,95:ht,96:dn},ba={null:[ht,zi]},ya={null:[42,95]},Ea={null:[]};function Ri(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0},i={},u=[],o=[],a=[],l=!0,s={attempt:j(H),check:j(U),consume:v,enter:P,exit:F,interrupt:j(U,{interrupt:!0})},m={code:null,containerState:{},defineSkip:x,events:[],now:A,parser:e,previous:null,sliceSerialize:g,sliceStream:y,write:f},c=n.tokenize.call(m,s),p;return n.resolveAll&&u.push(n),m;function f(_){return o=ne(o,_),T(),o[o.length-1]!==null?[]:(D(n,0),m.events=we(u,m.events,m),m.events)}function g(_,L){return Aa(y(_),L)}function y(_){return wa(o,_)}function A(){let{_bufferIndex:_,_index:L,line:M,column:$,offset:Y}=r;return{_bufferIndex:_,_index:L,line:M,column:$,offset:Y}}function x(_){i[_.line]=_.column,q()}function T(){let _;for(;r._index<o.length;){let L=o[r._index];if(typeof L=="string")for(_=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<L.length;)C(L.charCodeAt(r._bufferIndex));else C(L)}}function C(_){l=void 0,p=_,c=c(_)}function v(_){w(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,q()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=_,l=!0}function P(_,L){let M=L||{};return M.type=_,M.start=A(),m.events.push(["enter",M,m]),a.push(M),M}function F(_){let L=a.pop();return L.end=A(),m.events.push(["exit",L,m]),L}function H(_,L){D(_,L.from)}function U(_,L){L.restore()}function j(_,L){return M;function M($,Y,ae){let fe,h,ue,ge;return Array.isArray($)?ie($):"tokenize"in $?ie([$]):d($);function d(J){return tt;function tt(De){let Be=De!==null&&J[De],Qe=De!==null&&J.null,Zt=[...Array.isArray(Be)?Be:Be?[Be]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return ie(Zt)(De)}}function ie(J){return fe=J,h=0,J.length===0?ae:Se(J[h])}function Se(J){return tt;function tt(De){return ge=X(),ue=J,J.partial||(m.currentConstruct=J),J.name&&m.parser.constructs.disable.null.includes(J.name)?Ct(De):J.tokenize.call(L?Object.assign(Object.create(m),L):m,s,Xt,Ct)(De)}}function Xt(J){return l=!0,_(ue,ge),Y}function Ct(J){return l=!0,ge.restore(),++h<fe.length?Se(fe[h]):ae}}}function D(_,L){_.resolveAll&&!u.includes(_)&&u.push(_),_.resolve&&W(m.events,L,m.events.length-L,_.resolve(m.events.slice(L),m)),_.resolveTo&&(m.events=_.resolveTo(m.events,m))}function X(){let _=A(),L=m.previous,M=m.currentConstruct,$=m.events.length,Y=Array.from(a);return{from:$,restore:ae};function ae(){r=_,m.previous=L,m.currentConstruct=M,m.events.length=$,a=Y,q()}}function q(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function wa(e,n){let t=n.start._index,r=n.start._bufferIndex,i=n.end._index,u=n.end._bufferIndex,o;if(t===i)o=[e[t].slice(r,u)];else{if(o=e.slice(t,i),r>-1){let a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}u>0&&o.push(e[i].slice(0,u))}return o}function Aa(e,n){let t=-1,r=[],i;for(;++t<e.length;){let u=e[t],o;if(typeof u=="string")o=u;else switch(u){case-5:{o="\r";break}case-4:{o=`
66
+ `],encapsulation:2,changeDetection:0})}return e})();var Xs=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Et({type:e});static \u0275inj=bt({imports:[_t]})}return e})();var uc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Et({type:e});static \u0275inj=bt({imports:[Zr,Xr,_t,Kr]})}return e})();function rn(e){if(e)throw e}var It=jo(li(),1);function st(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 on(){let e=[],n={run:t,use:r};return n;function t(...i){let u=-1,o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(l,...s){let m=e[++u],c=-1;if(l){o(l);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,m?si(m,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 si(e,n){let t;return r;function r(...o){let a=e.length>o.length,l;a&&o.push(i);try{l=e.apply(this,o)}catch(s){let m=s;if(a&&t)throw m;return i(m)}a||(l&&l.then&&typeof l.then=="function"?l.then(u,i):l instanceof Error?i(l):u(l))}function i(o,...a){t||(t=!0,n(o,...a))}function u(o){i(null,o)}}function ye(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ci(e.position):"start"in e||"end"in e?ci(e):"line"in e||"column"in e?un(e):""}function un(e){return mi(e&&e.line)+":"+mi(e&&e.column)}function ci(e){return un(e&&e.start)+"-"+un(e&&e.end)}function mi(e){return e&&typeof e=="number"?e:1}var Z=class extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",u={},o=!1;if(t&&("line"in t&&"column"in t?u={place:t}:"start"in t&&"end"in t?u={place:t}:"type"in t?u={ancestors:[t],place:t.position}:u=E({},t)),typeof n=="string"?i=n:!u.cause&&n&&(o=!0,i=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?u.ruleId=r:(u.source=r.slice(0,l),u.ruleId=r.slice(l+1))}if(!u.place&&u.ancestors&&u.ancestors){let l=u.ancestors[u.ancestors.length-1];l&&(u.place=l.position)}let a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.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=ye(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=o&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Z.prototype.file="";Z.prototype.name="";Z.prototype.reason="";Z.prototype.message="";Z.prototype.stack="";Z.prototype.column=void 0;Z.prototype.line=void 0;Z.prototype.ancestors=void 0;Z.prototype.cause=void 0;Z.prototype.fatal=void 0;Z.prototype.place=void 0;Z.prototype.ruleId=void 0;Z.prototype.source=void 0;var me={basename:Uo,dirname:$o,extname:Wo,join:Yo,sep:"/"};function Uo(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ct(e);let t=0,r=-1,i=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(u){t=i+1;break}}else r<0&&(u=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(u){t=i+1;break}}else o<0&&(u=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function $o(e){if(ct(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Wo(e){ct(e);let n=e.length,t=-1,r=0,i=-1,u=0,o;for(;n--;){let a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:u!==1&&(u=1):i>-1&&(u=-1)}return i<0||t<0||u===0||u===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Yo(...e){let n=-1,t;for(;++n<e.length;)ct(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Go(t)}function Go(e){ct(e);let n=e.codePointAt(0)===47,t=Ko(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ko(e,n){let t="",r=0,i=-1,u=0,o=-1,a,l;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||u===1))if(i!==o-1&&u===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(l=t.lastIndexOf("/"),l!==t.length-1){l<0?(t="",r=0):(t=t.slice(0,l),r=t.length-1-t.lastIndexOf("/")),i=o,u=0;continue}}else if(t.length>0){t="",r=0,i=o,u=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,u=0}else a===46&&u>-1?u++:u=-1}return t}function ct(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var fi={cwd:Xo};function Xo(){return"/"}function Ye(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pi(e){if(typeof e=="string")e=new URL(e);else if(!Ye(e)){let n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){let n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Zo(e)}function Zo(e){if(e.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let n=e.pathname,t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){let r=n.codePointAt(t+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}var an=["history","path","basename","stem","extname","dirname"],mt=class{constructor(n){let t;n?Ye(n)?t={path:n}:typeof n=="string"||Jo(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":fi.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<an.length;){let u=an[r];u in t&&t[u]!==void 0&&t[u]!==null&&(this[u]=u==="history"?[...t[u]]:t[u])}let i;for(i in t)an.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?me.basename(this.path):void 0}set basename(n){sn(n,"basename"),ln(n,"basename"),this.path=me.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?me.dirname(this.path):void 0}set dirname(n){hi(this.basename,"dirname"),this.path=me.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?me.extname(this.path):void 0}set extname(n){if(ln(n,"extname"),hi(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=me.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Ye(n)&&(n=pi(n)),sn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?me.basename(this.path,this.extname):void 0}set stem(n){sn(n,"stem"),ln(n,"stem"),this.path=me.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 Z(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 ln(e,n){if(e&&e.includes(me.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+me.sep+"`")}function sn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function hi(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Jo(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var di=function(e){let r=this.constructor.prototype,i=r[e],u=function(){return i.apply(u,arguments)};return Object.setPrototypeOf(u,r),u};var eu={}.hasOwnProperty,pn=class e extends di{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=on()}copy(){let n=new e,t=-1;for(;++t<this.attachers.length;){let r=this.attachers[t];n.use(...r)}return n.data((0,It.default)(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(fn("data",this.frozen),this.namespace[n]=t,this):eu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(fn("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=Bt(n),r=this.parser||this.Parser;return cn("parse",r),r(String(t),t)}process(n,t){let r=this;return this.freeze(),cn("process",this.parser||this.Parser),mn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(u,o){let a=Bt(n),l=r.parse(a);r.run(l,a,function(m,c,p){if(m||!c||!p)return s(m);let f=c,g=r.stringify(f,p);nu(g)?p.value=g:p.result=g,s(m,p)});function s(m,c){m||!c?o(m):u?u(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),cn("processSync",this.parser||this.Parser),mn("processSync",this.compiler||this.Compiler),this.process(n,i),Di("processSync","process",t),r;function i(u,o){t=!0,rn(u),r=o}}run(n,t,r){gi(n),this.freeze();let i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?u(void 0,r):new Promise(u);function u(o,a){let l=Bt(t);i.run(n,l,s);function s(m,c,p){let f=c||n;m?a(m):o?o(f):r(void 0,f,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,u),Di("runSync","run",r),i;function u(o,a){rn(o),i=a,r=!0}}stringify(n,t){this.freeze();let r=Bt(t),i=this.compiler||this.Compiler;return mn("stringify",i),gi(n),i(n,r)}use(n,...t){let r=this.attachers,i=this.namespace;if(fn("use",this.frozen),n!=null)if(typeof n=="function")l(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 u(s){if(typeof s=="function")l(s,[]);else if(typeof s=="object")if(Array.isArray(s)){let[m,...c]=s;l(m,c)}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,It.default)(!0,i.settings,s.settings))}function a(s){let m=-1;if(s!=null)if(Array.isArray(s))for(;++m<s.length;){let c=s[m];u(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function l(s,m){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...m]);else if(m.length>0){let[f,...g]=m,y=r[p][1];st(y)&&st(f)&&(f=(0,It.default)(!0,y,f)),r[p]=[s,f,...g]}}}},ft=new pn().freeze();function cn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function fn(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 gi(e){if(!st(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Di(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Bt(e){return tu(e)?e:new mt(e)}function tu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nu(e){return typeof e=="string"||ru(e)}function ru(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var iu={};function Pe(e,n){let t=n||iu,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return ki(e,r,i)}function ki(e,n,t){if(ou(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 xi(e.children,n,t)}return Array.isArray(e)?xi(e,n,t):""}function xi(e,n,t){let r=[],i=-1;for(;++i<e.length;)r[i]=ki(e[i],n,t);return r.join("")}function ou(e){return!!(e&&typeof e=="object")}var Fi=document.createElement("i");function Ge(e){let n="&"+e+";";Fi.innerHTML=n;let t=Fi.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function W(e,n,t,r){let i=e.length,u=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);u<r.length;)o=r.slice(u,u+1e4),o.unshift(n,0),e.splice(...o),u+=1e4,n+=1e4}function ne(e,n){return e.length>0?(W(e,e.length,0,n),e):n}var Ci={}.hasOwnProperty;function zt(e){let n={},t=-1;for(;++t<e.length;)uu(n,e[t]);return n}function uu(e,n){let t;for(t in n){let i=(Ci.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t],o;if(u)for(o in u){Ci.call(i,o)||(i[o]=[]);let a=u[o];au(i[o],Array.isArray(a)?a:a?[a]:[])}}}function au(e,n){let t=-1,r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);W(e,0,0,r)}function Lt(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)}function ee(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var G=Ee(/[A-Za-z]/),K=Ee(/[\dA-Za-z]/),bi=Ee(/[#-'*+\--9=?A-Z^-~]/);function Re(e){return e!==null&&(e<32||e===127)}var pt=Ee(/\d/),yi=Ee(/[\dA-Fa-f]/),Ei=Ee(/[!-/:-@[-`{-~]/);function w(e){return e!==null&&e<-2}function R(e){return e!==null&&(e<0||e===32)}function B(e){return e===-2||e===-1||e===32}var Ne=Ee(new RegExp("\\p{P}|\\p{S}","u")),pe=Ee(/\s/);function Ee(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function S(e,n,t,r){let i=r?r-1:Number.POSITIVE_INFINITY,u=0;return o;function o(l){return B(l)?(e.enter(t),a(l)):n(l)}function a(l){return B(l)&&u++<i?(e.consume(l),a):(e.exit(t),n(l))}}var wi={tokenize:lu};function lu(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"),S(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),u(a)}function u(a){let l=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=l),t=l,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return w(a)?(e.consume(a),e.exit("chunkText"),u):(e.consume(a),o)}}var Ti={tokenize:su},Ai={tokenize:cu};function su(e){let n=this,t=[],r=0,i,u,o;return a;function a(C){if(r<t.length){let v=t[r];return n.containerState=v[1],e.attempt(v[0].continuation,l,s)(C)}return s(C)}function l(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&T();let v=n.events.length,P=v,F;for(;P--;)if(n.events[P][0]==="exit"&&n.events[P][1].type==="chunkFlow"){F=n.events[P][1].end;break}x(r);let H=v;for(;H<n.events.length;)n.events[H][1].end=E({},F),H++;return W(n.events,P+1,0,n.events.slice(v)),n.events.length=H,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return g(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Ai,m,c)(C)}function m(C){return i&&T(),x(r),p(C)}function c(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,g(C)}function p(C){return n.containerState={},e.attempt(Ai,f,g)(C)}function f(C){return r++,t.push([n.currentConstruct,n.containerState]),p(C)}function g(C){if(C===null){i&&T(),x(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:u}),y(C)}function y(C){if(C===null){A(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return w(C)?(e.consume(C),A(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),y)}function A(C,v){let P=n.sliceStream(C);if(v&&P.push(null),C.previous=u,u&&(u.next=C),u=C,i.defineSkip(C.start),i.write(P),n.parser.lazy[C.start.line]){let F=i.events.length;for(;F--;)if(i.events[F][1].start.offset<o&&(!i.events[F][1].end||i.events[F][1].end.offset>o))return;let H=n.events.length,U=H,j,D;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(j){D=n.events[U][1].end;break}j=!0}for(x(r),F=H;F<n.events.length;)n.events[F][1].end=E({},D),F++;W(n.events,U+1,0,n.events.slice(H)),n.events.length=F}}function x(C){let v=t.length;for(;v-- >C;){let P=t[v];n.containerState=P[1],P[0].exit.call(n,e)}t.length=C}function T(){i.write([null]),u=void 0,i=void 0,n.containerState._closeFlow=void 0}}function cu(e,n,t){return S(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fe(e){if(e===null||R(e)||pe(e))return 1;if(Ne(e))return 2}function we(e,n,t){let r=[],i=-1;for(;++i<e.length;){let u=e[i].resolveAll;u&&!r.includes(u)&&(n=u(n,t),r.push(u))}return n}var ht={name:"attention",resolveAll:mu,tokenize:fu};function mu(e,n){let t=-1,r,i,u,o,a,l,s,m;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;l=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 c=E({},e[r][1].end),p=E({},e[t][1].start);_i(c,-l),_i(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:c,end:E({},e[r][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:E({},e[t][1].start),end:p},u={type:l>1?"strongText":"emphasisText",start:E({},e[r][1].end),end:E({},e[t][1].start)},i={type:l>1?"strong":"emphasis",start:E({},o.start),end:E({},a.end)},e[r][1].end=E({},o.start),e[t][1].start=E({},a.end),s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=ne(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=ne(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",u,n]]),s=ne(s,we(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=ne(s,[["exit",u,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(m=2,s=ne(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):m=0,W(e,r-1,t-r+3,s),t=r+s.length-m-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function fu(e,n){let t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fe(r),u;return o;function o(l){return u=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===u)return e.consume(l),a;let s=e.exit("attentionSequence"),m=Fe(l),c=!m||m===2&&i||t.includes(l),p=!i||i===2&&m||t.includes(r);return s._open=!!(u===42?c:c&&(i||!p)),s._close=!!(u===42?p:p&&(m||!c)),n(l)}}function _i(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}var hn={name:"autolink",tokenize:pu};function pu(e,n,t){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(f){return G(f)?(e.consume(f),o):f===64?t(f):s(f)}function o(f){return f===43||f===45||f===46||K(f)?(r=1,a(f)):s(f)}function a(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||K(f))&&r++<32?(e.consume(f),a):(r=0,s(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):f===null||f===32||f===60||Re(f)?t(f):(e.consume(f),l)}function s(f){return f===64?(e.consume(f),m):bi(f)?(e.consume(f),s):t(f)}function m(f){return K(f)?c(f):t(f)}function c(f){return f===46?(e.consume(f),r=0,m):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),n):p(f)}function p(f){if((f===45||K(f))&&r++<63){let g=f===45?p:c;return e.consume(f),g}return t(f)}}var he={partial:!0,tokenize:hu};function hu(e,n,t){return r;function r(u){return B(u)?S(e,i,"linePrefix")(u):i(u)}function i(u){return u===null||w(u)?n(u):t(u)}}var Mt={continuation:{tokenize:gu},exit:Du,name:"blockQuote",tokenize:du};function du(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"),u}return t(o)}function u(o){return B(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function gu(e,n,t){let r=this;return i;function i(o){return B(o)?S(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):u(o)}function u(o){return e.attempt(Mt,n,t)(o)}}function Du(e){e.exit("blockQuote")}var vt={name:"characterEscape",tokenize:xu};function xu(e,n,t){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),i}function i(u){return Ei(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(u)}}var Pt={name:"characterReference",tokenize:ku};function ku(e,n,t){let r=this,i=0,u,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),u=31,o=K,m(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,o=yi,m):(e.enter("characterReferenceValue"),u=7,o=pt,m(c))}function m(c){if(c===59&&i){let p=e.exit("characterReferenceValue");return o===K&&!Ge(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(c)&&i++<u?(e.consume(c),m):t(c)}}var Si={partial:!0,tokenize:Cu},Rt={concrete:!0,name:"codeFenced",tokenize:Fu};function Fu(e,n,t){let r=this,i={partial:!0,tokenize:P},u=0,o=0,a;return l;function l(F){return s(F)}function s(F){let H=r.events[r.events.length-1];return u=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,a=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(F)}function m(F){return F===a?(o++,e.consume(F),m):o<3?t(F):(e.exit("codeFencedFenceSequence"),B(F)?S(e,c,"whitespace")(F):c(F))}function c(F){return F===null||w(F)?(e.exit("codeFencedFence"),r.interrupt?n(F):e.check(Si,y,v)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(F))}function p(F){return F===null||w(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(F)):B(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),S(e,f,"whitespace")(F)):F===96&&F===a?t(F):(e.consume(F),p)}function f(F){return F===null||w(F)?c(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(F))}function g(F){return F===null||w(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(F)):F===96&&F===a?t(F):(e.consume(F),g)}function y(F){return e.attempt(i,v,A)(F)}function A(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),x}function x(F){return u>0&&B(F)?S(e,T,"linePrefix",u+1)(F):T(F)}function T(F){return F===null||w(F)?e.check(Si,y,v)(F):(e.enter("codeFlowValue"),C(F))}function C(F){return F===null||w(F)?(e.exit("codeFlowValue"),T(F)):(e.consume(F),C)}function v(F){return e.exit("codeFenced"),n(F)}function P(F,H,U){let j=0;return D;function D(M){return F.enter("lineEnding"),F.consume(M),F.exit("lineEnding"),X}function X(M){return F.enter("codeFencedFence"),B(M)?S(F,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):q(M)}function q(M){return M===a?(F.enter("codeFencedFenceSequence"),_(M)):U(M)}function _(M){return M===a?(j++,F.consume(M),_):j>=o?(F.exit("codeFencedFenceSequence"),B(M)?S(F,L,"whitespace")(M):L(M)):U(M)}function L(M){return M===null||w(M)?(F.exit("codeFencedFence"),H(M)):U(M)}}}function Cu(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"),u)}function u(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}var dt={name:"codeIndented",tokenize:yu},bu={partial:!0,tokenize:Eu};function yu(e,n,t){let r=this;return i;function i(s){return e.enter("codeIndented"),S(e,u,"linePrefix",5)(s)}function u(s){let m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?l(s):w(s)?e.attempt(bu,o,l)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||w(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function l(s){return e.exit("codeIndented"),n(s)}}function Eu(e,n,t){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):w(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):S(e,u,"linePrefix",5)(o)}function u(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):w(o)?i(o):t(o)}}var dn={name:"codeText",previous:Au,resolve:wu,tokenize:Tu};function wu(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 Au(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Tu(e,n,t){let r=this,i=0,u,o;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),i++,l):(e.exit("codeTextSequence"),s(p))}function s(p){return p===null?t(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),s):p===96?(o=e.enter("codeTextSequence"),u=0,c(p)):w(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("codeTextData"),m(p))}function m(p){return p===null||p===32||p===96||w(p)?(e.exit("codeTextData"),s(p)):(e.consume(p),m)}function c(p){return p===96?(e.consume(p),u++,c):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(o.type="codeTextData",m(p))}}var Nt=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??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){let i=t||0;this.setCursor(Math.trunc(n));let u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&gt(this.left,r),u.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),gt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),gt(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);gt(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);gt(this.left,t.reverse())}}};function gt(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 Ot(e){let n={},t=-1,r,i,u,o,a,l,s,m=new Nt(e);for(;++t<m.length;){for(;t in n;)t=n[t];if(r=m.get(t),t&&r[1].type==="chunkFlow"&&m.get(t-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,u=0,u<l.length&&l[u][1].type==="lineEndingBlank"&&(u+=2),u<l.length&&l[u][1].type==="content"))for(;++u<l.length&&l[u][1].type!=="content";)l[u][1].type==="chunkText"&&(l[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,_u(m,t)),t=n[t],s=!0);else if(r[1]._container){for(u=t,i=void 0;u--;)if(o=m.get(u),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=u);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end=E({},m.get(i)[1].start),a=m.slice(i,t),a.unshift(r),m.splice(i,t-i+1,a))}}return W(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!s}function _u(e,n){let t=e.get(n)[1],r=e.get(n)[2],i=n-1,u=[],o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let a=o.events,l=[],s={},m,c,p=-1,f=t,g=0,y=0,A=[y];for(;f;){for(;e.get(++i)[1]!==f;);u.push(i),f._tokenizer||(m=r.sliceStream(f),f.next||m.push(null),c&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(m),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(y=p+1,A.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):A.pop(),p=A.length;p--;){let x=a.slice(A[p],A[p+1]),T=u.pop();l.push([T,T+x.length-1]),e.splice(T,2,x)}for(l.reverse(),p=-1;++p<l.length;)s[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return s}var gn={resolve:Bu,tokenize:Iu},Su={partial:!0,tokenize:zu};function Bu(e){return Ot(e),e}function Iu(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?u(a):w(a)?e.check(Su,o,u)(a):(e.consume(a),i)}function u(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 zu(e,n,t){let r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),S(e,u,"linePrefix")}function u(o){if(o===null||w(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 Ht(e,n,t,r,i,u,o,a,l){let s=l||Number.POSITIVE_INFINITY,m=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(x),e.exit(u),p):x===null||x===32||x===41||Re(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(x))}function p(x){return x===62?(e.enter(u),e.consume(x),e.exit(u),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||w(x)?t(x):(e.consume(x),x===92?g:f)}function g(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function y(x){return!m&&(x===null||x===41||R(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):m<s&&x===40?(e.consume(x),m++,y):x===41?(e.consume(x),m--,y):x===null||x===32||x===40||Re(x)?t(x):(e.consume(x),x===92?A:y)}function A(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function jt(e,n,t,r,i,u){let o=this,a=0,l;return s;function s(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(u),m}function m(f){return a>999||f===null||f===91||f===93&&!l||f===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(f):f===93?(e.exit(u),e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):w(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||w(f)||a++>999?(e.exit("chunkString"),m(f)):(e.consume(f),l||(l=!B(f)),f===92?p:c)}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function qt(e,n,t,r,i,u){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,l):t(p)}function l(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(u),s(p))}function s(p){return p===o?(e.exit(u),l(o)):p===null?t(p):w(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),S(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(p))}function m(p){return p===o||p===null||w(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:m)}function c(p){return p===o||p===92?(e.consume(p),m):m(p)}}function Oe(e,n){let t;return r;function r(i){return w(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):B(i)?S(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}var Dn={name:"definition",tokenize:Mu},Lu={partial:!0,tokenize:vu};function Mu(e,n,t){let r=this,i;return u;function u(f){return e.enter("definition"),o(f)}function o(f){return jt.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=ee(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):t(f)}function l(f){return R(f)?Oe(e,s)(f):s(f)}function s(f){return Ht(e,m,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function m(f){return e.attempt(Lu,c,c)(f)}function c(f){return B(f)?S(e,p,"whitespace")(f):p(f)}function p(f){return f===null||w(f)?(e.exit("definition"),r.parser.defined.push(i),n(f)):t(f)}}function vu(e,n,t){return r;function r(a){return R(a)?Oe(e,i)(a):t(a)}function i(a){return qt(e,u,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function u(a){return B(a)?S(e,o,"whitespace")(a):o(a)}function o(a){return a===null||w(a)?n(a):t(a)}}var xn={name:"hardBreakEscape",tokenize:Pu};function Pu(e,n,t){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),i}function i(u){return w(u)?(e.exit("hardBreakEscape"),n(u)):t(u)}}var kn={name:"headingAtx",resolve:Ru,tokenize:Nu};function Ru(e,n){let t=e.length-2,r=3,i,u;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},u={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},W(e,r,t-r+1,[["enter",i,n],["enter",u,n],["exit",u,n],["exit",i,n]])),e}function Nu(e,n,t){let r=0;return i;function i(m){return e.enter("atxHeading"),u(m)}function u(m){return e.enter("atxHeadingSequence"),o(m)}function o(m){return m===35&&r++<6?(e.consume(m),o):m===null||R(m)?(e.exit("atxHeadingSequence"),a(m)):t(m)}function a(m){return m===35?(e.enter("atxHeadingSequence"),l(m)):m===null||w(m)?(e.exit("atxHeading"),n(m)):B(m)?S(e,a,"whitespace")(m):(e.enter("atxHeadingText"),s(m))}function l(m){return m===35?(e.consume(m),l):(e.exit("atxHeadingSequence"),a(m))}function s(m){return m===null||m===35||R(m)?(e.exit("atxHeadingText"),a(m)):(e.consume(m),s)}}var Bi=["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"],Fn=["pre","script","style","textarea"];var Cn={concrete:!0,name:"htmlFlow",resolveTo:ju,tokenize:qu},Ou={partial:!0,tokenize:Qu},Hu={partial:!0,tokenize:Vu};function ju(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 qu(e,n,t){let r=this,i,u,o,a,l;return s;function s(d){return m(d)}function m(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),u=!0,y):d===63?(e.consume(d),i=3,r.interrupt?n:h):G(d)?(e.consume(d),o=String.fromCharCode(d),A):t(d)}function p(d){return d===45?(e.consume(d),i=2,f):d===91?(e.consume(d),i=5,a=0,g):G(d)?(e.consume(d),i=4,r.interrupt?n:h):t(d)}function f(d){return d===45?(e.consume(d),r.interrupt?n:h):t(d)}function g(d){let ie="CDATA[";return d===ie.charCodeAt(a++)?(e.consume(d),a===ie.length?r.interrupt?n:q:g):t(d)}function y(d){return G(d)?(e.consume(d),o=String.fromCharCode(d),A):t(d)}function A(d){if(d===null||d===47||d===62||R(d)){let ie=d===47,Se=o.toLowerCase();return!ie&&!u&&Fn.includes(Se)?(i=1,r.interrupt?n(d):q(d)):Bi.includes(o.toLowerCase())?(i=6,ie?(e.consume(d),x):r.interrupt?n(d):q(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):u?T(d):C(d))}return d===45||K(d)?(e.consume(d),o+=String.fromCharCode(d),A):t(d)}function x(d){return d===62?(e.consume(d),r.interrupt?n:q):t(d)}function T(d){return B(d)?(e.consume(d),T):D(d)}function C(d){return d===47?(e.consume(d),D):d===58||d===95||G(d)?(e.consume(d),v):B(d)?(e.consume(d),C):D(d)}function v(d){return d===45||d===46||d===58||d===95||K(d)?(e.consume(d),v):P(d)}function P(d){return d===61?(e.consume(d),F):B(d)?(e.consume(d),P):C(d)}function F(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),l=d,H):B(d)?(e.consume(d),F):U(d)}function H(d){return d===l?(e.consume(d),l=null,j):d===null||w(d)?t(d):(e.consume(d),H)}function U(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||R(d)?P(d):(e.consume(d),U)}function j(d){return d===47||d===62||B(d)?C(d):t(d)}function D(d){return d===62?(e.consume(d),X):t(d)}function X(d){return d===null||w(d)?q(d):B(d)?(e.consume(d),X):t(d)}function q(d){return d===45&&i===2?(e.consume(d),$):d===60&&i===1?(e.consume(d),Y):d===62&&i===4?(e.consume(d),ue):d===63&&i===3?(e.consume(d),h):d===93&&i===5?(e.consume(d),fe):w(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ou,ge,_)(d)):d===null||w(d)?(e.exit("htmlFlowData"),_(d)):(e.consume(d),q)}function _(d){return e.check(Hu,L,ge)(d)}function L(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),M}function M(d){return d===null||w(d)?_(d):(e.enter("htmlFlowData"),q(d))}function $(d){return d===45?(e.consume(d),h):q(d)}function Y(d){return d===47?(e.consume(d),o="",ae):q(d)}function ae(d){if(d===62){let ie=o.toLowerCase();return Fn.includes(ie)?(e.consume(d),ue):q(d)}return G(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),ae):q(d)}function fe(d){return d===93?(e.consume(d),h):q(d)}function h(d){return d===62?(e.consume(d),ue):d===45&&i===2?(e.consume(d),h):q(d)}function ue(d){return d===null||w(d)?(e.exit("htmlFlowData"),ge(d)):(e.consume(d),ue)}function ge(d){return e.exit("htmlFlow"),n(d)}}function Vu(e,n,t){let r=this;return i;function i(o){return w(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),u):t(o)}function u(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Qu(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(he,n,t)}}var bn={name:"htmlText",tokenize:Uu};function Uu(e,n,t){let r=this,i,u,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),l}function l(h){return h===33?(e.consume(h),s):h===47?(e.consume(h),P):h===63?(e.consume(h),C):G(h)?(e.consume(h),U):t(h)}function s(h){return h===45?(e.consume(h),m):h===91?(e.consume(h),u=0,g):G(h)?(e.consume(h),T):t(h)}function m(h){return h===45?(e.consume(h),f):t(h)}function c(h){return h===null?t(h):h===45?(e.consume(h),p):w(h)?(o=c,Y(h)):(e.consume(h),c)}function p(h){return h===45?(e.consume(h),f):c(h)}function f(h){return h===62?$(h):h===45?p(h):c(h)}function g(h){let ue="CDATA[";return h===ue.charCodeAt(u++)?(e.consume(h),u===ue.length?y:g):t(h)}function y(h){return h===null?t(h):h===93?(e.consume(h),A):w(h)?(o=y,Y(h)):(e.consume(h),y)}function A(h){return h===93?(e.consume(h),x):y(h)}function x(h){return h===62?$(h):h===93?(e.consume(h),x):y(h)}function T(h){return h===null||h===62?$(h):w(h)?(o=T,Y(h)):(e.consume(h),T)}function C(h){return h===null?t(h):h===63?(e.consume(h),v):w(h)?(o=C,Y(h)):(e.consume(h),C)}function v(h){return h===62?$(h):C(h)}function P(h){return G(h)?(e.consume(h),F):t(h)}function F(h){return h===45||K(h)?(e.consume(h),F):H(h)}function H(h){return w(h)?(o=H,Y(h)):B(h)?(e.consume(h),H):$(h)}function U(h){return h===45||K(h)?(e.consume(h),U):h===47||h===62||R(h)?j(h):t(h)}function j(h){return h===47?(e.consume(h),$):h===58||h===95||G(h)?(e.consume(h),D):w(h)?(o=j,Y(h)):B(h)?(e.consume(h),j):$(h)}function D(h){return h===45||h===46||h===58||h===95||K(h)?(e.consume(h),D):X(h)}function X(h){return h===61?(e.consume(h),q):w(h)?(o=X,Y(h)):B(h)?(e.consume(h),X):j(h)}function q(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,_):w(h)?(o=q,Y(h)):B(h)?(e.consume(h),q):(e.consume(h),L)}function _(h){return h===i?(e.consume(h),i=void 0,M):h===null?t(h):w(h)?(o=_,Y(h)):(e.consume(h),_)}function L(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||R(h)?j(h):(e.consume(h),L)}function M(h){return h===47||h===62||R(h)?j(h):t(h)}function $(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function Y(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ae}function ae(h){return B(h)?S(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fe(h)}function fe(h){return e.enter("htmlTextData"),o(h)}}var He={name:"labelEnd",resolveAll:Gu,resolveTo:Ku,tokenize:Xu},$u={tokenize:Zu},Wu={tokenize:Ju},Yu={tokenize:ea};function Gu(e){let n=-1,t=[];for(;++n<e.length;){let r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&W(e,0,e.length,t),e}function Ku(e,n){let t=e.length,r=0,i,u,o,a;for(;t--;)if(i=e[t][1],u){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&&(u=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);let l={type:e[u][1].type==="labelLink"?"link":"image",start:E({},e[u][1].start),end:E({},e[e.length-1][1].end)},s={type:"label",start:E({},e[u][1].start),end:E({},e[o][1].end)},m={type:"labelText",start:E({},e[u+r+2][1].end),end:E({},e[o-2][1].start)};return a=[["enter",l,n],["enter",s,n]],a=ne(a,e.slice(u+1,u+r+3)),a=ne(a,[["enter",m,n]]),a=ne(a,we(n.parser.constructs.insideSpan.null,e.slice(u+r+4,o-3),n)),a=ne(a,[["exit",m,n],e[o-2],e[o-1],["exit",s,n]]),a=ne(a,e.slice(o+1)),a=ne(a,[["exit",l,n]]),W(e,u,e.length,a),e}function Xu(e,n,t){let r=this,i=r.events.length,u,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){u=r.events[i][1];break}return a;function a(p){return u?u._inactive?c(p):(o=r.parser.defined.includes(ee(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):t(p)}function l(p){return p===40?e.attempt($u,m,o?m:c)(p):p===91?e.attempt(Wu,m,o?s:c)(p):o?m(p):c(p)}function s(p){return e.attempt(Yu,m,c)(p)}function m(p){return n(p)}function c(p){return u._balanced=!0,t(p)}}function Zu(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return R(c)?Oe(e,u)(c):u(c)}function u(c){return c===41?m(c):Ht(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return R(c)?Oe(e,l)(c):m(c)}function a(c){return t(c)}function l(c){return c===34||c===39||c===40?qt(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):m(c)}function s(c){return R(c)?Oe(e,m)(c):m(c)}function m(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Ju(e,n,t){let r=this;return i;function i(a){return jt.call(r,e,u,o,"reference","referenceMarker","referenceString")(a)}function u(a){return r.parser.defined.includes(ee(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function ea(e,n,t){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),i}function i(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):t(u)}}var yn={name:"labelStartImage",resolveAll:He.resolveAll,tokenize:ta};function ta(e,n,t){let r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),u}function u(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 En={name:"labelStartLink",resolveAll:He.resolveAll,tokenize:na};function na(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"),u}function u(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}var Dt={name:"lineEnding",tokenize:ra};function ra(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),S(e,n,"linePrefix")}}var je={name:"thematicBreak",tokenize:ia};function ia(e,n,t){let r=0,i;return u;function u(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),l(s)):r>=3&&(s===null||w(s))?(e.exit("thematicBreak"),n(s)):t(s)}function l(s){return s===i?(e.consume(s),r++,l):(e.exit("thematicBreakSequence"),B(s)?S(e,a,"whitespace")(s):a(s))}}var te={continuation:{tokenize:la},exit:ca,name:"list",tokenize:aa},oa={partial:!0,tokenize:ma},ua={partial:!0,tokenize:sa};function aa(e,n,t){let r=this,i=r.events[r.events.length-1],u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(f){let g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:pt(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(je,t,s)(f):s(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return t(f)}function l(f){return pt(f)&&++o<10?(e.consume(f),l):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),s(f)):t(f)}function s(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(he,r.interrupt?t:m,e.attempt(oa,p,c))}function m(f){return r.containerState.initialBlankLine=!0,u++,p(f)}function c(f){return B(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):t(f)}function p(f){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(f)}}function la(e,n,t){let r=this;return r.containerState._closeFlow=void 0,e.check(he,i,u);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,S(e,n,"listItemIndent",r.containerState.size+1)(a)}function u(a){return r.containerState.furtherBlankLines||!B(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,S(e,e.attempt(te,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function sa(e,n,t){let r=this;return S(e,i,"listItemIndent",r.containerState.size+1);function i(u){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(u):t(u)}}function ca(e){e.exit(this.containerState.type)}function ma(e,n,t){let r=this;return S(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(u){let o=r.events[r.events.length-1];return!B(u)&&o&&o[1].type==="listItemPrefixWhitespace"?n(u):t(u)}}var Vt={name:"setextUnderline",resolveTo:fa,tokenize:pa};function fa(e,n){let t=e.length,r,i,u;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),!u&&e[t][1].type==="definition"&&(u=t);let o={type:"setextHeading",start:E({},e[r][1].start),end:E({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",u?(e.splice(i,0,["enter",o,n]),e.splice(u+1,0,["exit",e[r][1],n]),e[r][1].end=E({},e[u][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function pa(e,n,t){let r=this,i;return u;function u(s){let m=r.events.length,c;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){c=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(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"),B(s)?S(e,l,"lineSuffix")(s):l(s))}function l(s){return s===null||w(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}var Ii={tokenize:ha};function ha(e){let n=this,t=e.attempt(he,r,e.attempt(this.parser.constructs.flowInitial,i,S(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gn,i)),"linePrefix")));return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,t}}var zi={resolveAll:Pi()},Li=vi("string"),Mi=vi("text");function vi(e){return{resolveAll:Pi(e==="text"?da:void 0),tokenize:n};function n(t){let r=this,i=this.parser.constructs[e],u=t.attempt(i,o,a);return o;function o(m){return s(m)?u(m):a(m)}function a(m){if(m===null){t.consume(m);return}return t.enter("data"),t.consume(m),l}function l(m){return s(m)?(t.exit("data"),u(m)):(t.consume(m),l)}function s(m){if(m===null)return!0;let c=i[m],p=-1;if(c)for(;++p<c.length;){let f=c[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Pi(e){return n;function n(t,r){let i=-1,u;for(;++i<=t.length;)u===void 0?t[i]&&t[i][1].type==="data"&&(u=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==u+2&&(t[u][1].end=t[i-1][1].end,t.splice(u+2,i-u-2),i=u+2),u=void 0);return e?e(t,r):t}}function da(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),u=i.length,o=-1,a=0,l;for(;u--;){let s=i[u];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)l=!0,a++;else if(s!==-1){u++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){let s={type:t===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?o:r.start._bufferIndex+o,_index:r.start._index+u,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:E({},r.end)};r.end=E({},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}var wn={};Ho(wn,{attentionMarkers:()=>ya,contentInitial:()=>Da,disable:()=>Ea,document:()=>ga,flow:()=>ka,flowInitial:()=>xa,insideSpan:()=>ba,string:()=>Fa,text:()=>Ca});var ga={42:te,43:te,45:te,48:te,49:te,50:te,51:te,52:te,53:te,54:te,55:te,56:te,57:te,62:Mt},Da={91:Dn},xa={[-2]:dt,[-1]:dt,32:dt},ka={35:kn,42:je,45:[Vt,je],60:Cn,61:Vt,95:je,96:Rt,126:Rt},Fa={38:Pt,92:vt},Ca={[-5]:Dt,[-4]:Dt,[-3]:Dt,33:yn,38:Pt,42:ht,60:[hn,bn],91:En,92:[xn,vt],93:He,95:ht,96:dn},ba={null:[ht,zi]},ya={null:[42,95]},Ea={null:[]};function Ri(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0},i={},u=[],o=[],a=[],l=!0,s={attempt:j(H),check:j(U),consume:v,enter:P,exit:F,interrupt:j(U,{interrupt:!0})},m={code:null,containerState:{},defineSkip:x,events:[],now:A,parser:e,previous:null,sliceSerialize:g,sliceStream:y,write:f},c=n.tokenize.call(m,s),p;return n.resolveAll&&u.push(n),m;function f(_){return o=ne(o,_),T(),o[o.length-1]!==null?[]:(D(n,0),m.events=we(u,m.events,m),m.events)}function g(_,L){return Aa(y(_),L)}function y(_){return wa(o,_)}function A(){let{_bufferIndex:_,_index:L,line:M,column:$,offset:Y}=r;return{_bufferIndex:_,_index:L,line:M,column:$,offset:Y}}function x(_){i[_.line]=_.column,q()}function T(){let _;for(;r._index<o.length;){let L=o[r._index];if(typeof L=="string")for(_=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<L.length;)C(L.charCodeAt(r._bufferIndex));else C(L)}}function C(_){l=void 0,p=_,c=c(_)}function v(_){w(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,q()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),m.previous=_,l=!0}function P(_,L){let M=L||{};return M.type=_,M.start=A(),m.events.push(["enter",M,m]),a.push(M),M}function F(_){let L=a.pop();return L.end=A(),m.events.push(["exit",L,m]),L}function H(_,L){D(_,L.from)}function U(_,L){L.restore()}function j(_,L){return M;function M($,Y,ae){let fe,h,ue,ge;return Array.isArray($)?ie($):"tokenize"in $?ie([$]):d($);function d(J){return tt;function tt(De){let Be=De!==null&&J[De],Qe=De!==null&&J.null,Zt=[...Array.isArray(Be)?Be:Be?[Be]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return ie(Zt)(De)}}function ie(J){return fe=J,h=0,J.length===0?ae:Se(J[h])}function Se(J){return tt;function tt(De){return ge=X(),ue=J,J.partial||(m.currentConstruct=J),J.name&&m.parser.constructs.disable.null.includes(J.name)?Ct(De):J.tokenize.call(L?Object.assign(Object.create(m),L):m,s,Xt,Ct)(De)}}function Xt(J){return l=!0,_(ue,ge),Y}function Ct(J){return l=!0,ge.restore(),++h<fe.length?Se(fe[h]):ae}}}function D(_,L){_.resolveAll&&!u.includes(_)&&u.push(_),_.resolve&&W(m.events,L,m.events.length-L,_.resolve(m.events.slice(L),m)),_.resolveTo&&(m.events=_.resolveTo(m.events,m))}function X(){let _=A(),L=m.previous,M=m.currentConstruct,$=m.events.length,Y=Array.from(a);return{from:$,restore:ae};function ae(){r=_,m.previous=L,m.currentConstruct=M,m.events.length=$,a=Y,q()}}function q(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function wa(e,n){let t=n.start._index,r=n.start._bufferIndex,i=n.end._index,u=n.end._bufferIndex,o;if(t===i)o=[e[t].slice(r,u)];else{if(o=e.slice(t,i),r>-1){let a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}u>0&&o.push(e[i].slice(0,u))}return o}function Aa(e,n){let t=-1,r=[],i;for(;++t<e.length;){let u=e[t],o;if(typeof u=="string")o=u;else switch(u){case-5:{o="\r";break}case-4:{o=`
67
67
  `;break}case-3:{o=`\r
68
68
  `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(u)}i=u===-2,r.push(o)}return r.join("")}function An(e){let r={constructs:zt([wn,...(e||{}).extensions||[]]),content:i(wi),defined:[],document:i(Ti),flow:i(Ii),lazy:{},string:i(Li),text:i(Mi)};return r;function i(u){return o;function o(a){return Ri(r,u,a)}}}function Tn(e){for(;!Ot(e););return e}var Ni=/[\0\t\n\r]/g;function _n(){let e=1,n="",t=!0,r;return i;function i(u,o,a){let l=[],s,m,c,p,f;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(o||void 0).decode(u)),c=0,n="",t&&(u.charCodeAt(0)===65279&&c++,t=void 0);c<u.length;){if(Ni.lastIndex=c,s=Ni.exec(u),p=s&&s.index!==void 0?s.index:u.length,f=u.charCodeAt(p),!s){n=u.slice(c);break}if(f===10&&c===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<p&&(l.push(u.slice(c,p)),e+=p-c),f){case 0:{l.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,l.push(-2);e++<m;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&l.push(-5),n&&l.push(n),l.push(null)),l}}var Ta=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Oi(e){return e.replace(Ta,_a)}function _a(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){let i=t.charCodeAt(1),u=i===120||i===88;return Lt(t.slice(u?2:1),u?16:10)}return Ge(t)||e}var ji={}.hasOwnProperty;function Sn(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Sa(t)(Tn(An(t).document().write(_n()(e,n,!0))))}function Sa(e){let n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(xr),autolinkProtocol:j,autolinkEmail:j,atxHeading:u(dr),blockQuote:u(De),characterEscape:j,characterReference:j,codeFenced:u(Be),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:u(Be,o),codeText:u(Qe,o),codeTextData:j,data:j,codeFlowValue:j,definition:u(Zt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:u(zo),hardBreakEscape:u(gr),hardBreakTrailing:u(gr),htmlFlow:u(Dr,o),htmlFlowData:j,htmlText:u(Dr,o),htmlTextData:j,image:u(Lo),label:o,link:u(xr),listItem:u(Mo),listItemValue:p,listOrdered:u(kr,c),listUnordered:u(kr),paragraph:u(vo),reference:d,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:u(dr),strong:u(Po),thematicBreak:u(No)},exit:{atxHeading:l(),atxHeadingSequence:P,autolink:l(),autolinkEmail:tt,autolinkProtocol:J,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:Xt,characterReference:Ct,codeFenced:l(A),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:D,codeIndented:l(x),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:v,definitionLabelString:T,definitionTitleString:C,emphasis:l(),hardBreakEscape:l(q),hardBreakTrailing:l(q),htmlFlow:l(_),htmlFlowData:D,htmlText:l(L),htmlTextData:D,image:l(Y),label:fe,labelText:ae,lineEnding:X,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ie,resourceDestinationString:h,resourceTitleString:ue,resource:ge,setextHeading:l(U),setextHeadingLineSequence:H,setextHeadingText:F,strong:l(),thematicBreak:l()}};qi(n,(e||{}).mdastExtensions||[]);let t={};return r;function r(k){let b={type:"root",children:[]},z={stack:[b],tokenStack:[],config:n,enter:a,exit:s,buffer:o,resume:m,data:t},O=[],V=-1;for(;++V<k.length;)if(k[V][1].type==="listOrdered"||k[V][1].type==="listUnordered")if(k[V][0]==="enter")O.push(V);else{let le=O.pop();V=i(k,le,V)}for(V=-1;++V<k.length;){let le=n[k[V][0]];ji.call(le,k[V][1].type)&&le[k[V][1].type].call(Object.assign({sliceSerialize:k[V][2].sliceSerialize},z),k[V][1])}if(z.tokenStack.length>0){let le=z.tokenStack[z.tokenStack.length-1];(le[1]||Hi).call(z,void 0,le[0])}for(b.position={start:Ae(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:Ae(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},V=-1;++V<n.transforms.length;)b=n.transforms[V](b)||b;return b}function i(k,b,z){let O=b-1,V=-1,le=!1,Ie,xe,nt,rt;for(;++O<=z;){let oe=k[O];switch(oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{oe[0]==="enter"?V++:V--,rt=void 0;break}case"lineEndingBlank":{oe[0]==="enter"&&(Ie&&!rt&&!V&&!nt&&(nt=O),rt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:rt=void 0}if(!V&&oe[0]==="enter"&&oe[1].type==="listItemPrefix"||V===-1&&oe[0]==="exit"&&(oe[1].type==="listUnordered"||oe[1].type==="listOrdered")){if(Ie){let Ue=O;for(xe=void 0;Ue--;){let ke=k[Ue];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;xe&&(k[xe][1].type="lineEndingBlank",le=!0),ke[1].type="lineEnding",xe=Ue}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}nt&&(!xe||nt<xe)&&(Ie._spread=!0),Ie.end=Object.assign({},xe?k[xe][1].start:oe[1].end),k.splice(xe||O,0,["exit",Ie,oe[2]]),O++,z++}if(oe[1].type==="listItemPrefix"){let Ue={type:"listItem",_spread:!1,start:Object.assign({},oe[1].start),end:void 0};Ie=Ue,k.splice(O,0,["enter",Ue,oe[2]]),O++,z++,nt=void 0,rt=!0}}}return k[b][1]._spread=le,z}function u(k,b){return z;function z(O){a.call(this,k(O),O),b&&b.call(this,O)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(k,b,z){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([b,z||void 0]),k.position={start:Ae(b.start),end:void 0}}function l(k){return b;function b(z){k&&k.call(this,z),s.call(this,z)}}function s(k,b){let z=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==k.type&&(b?b.call(this,k,O[0]):(O[1]||Hi).call(this,k,O[0]));else throw new Error("Cannot close `"+k.type+"` ("+ye({start:k.start,end:k.end})+"): it\u2019s not open");z.position.end=Ae(k.end)}function m(){return Pe(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(k){if(this.data.expectingFirstListItemValue){let b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function f(){let k=this.resume(),b=this.stack[this.stack.length-1];b.lang=k}function g(){let k=this.resume(),b=this.stack[this.stack.length-1];b.meta=k}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){let k=this.resume(),b=this.stack[this.stack.length-1];b.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){let k=this.resume(),b=this.stack[this.stack.length-1];b.value=k.replace(/(\r?\n|\r)$/g,"")}function T(k){let b=this.resume(),z=this.stack[this.stack.length-1];z.label=b,z.identifier=ee(this.sliceSerialize(k)).toLowerCase()}function C(){let k=this.resume(),b=this.stack[this.stack.length-1];b.title=k}function v(){let k=this.resume(),b=this.stack[this.stack.length-1];b.url=k}function P(k){let b=this.stack[this.stack.length-1];if(!b.depth){let z=this.sliceSerialize(k).length;b.depth=z}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function H(k){let b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function j(k){let z=this.stack[this.stack.length-1].children,O=z[z.length-1];(!O||O.type!=="text")&&(O=Ro(),O.position={start:Ae(k.start),end:void 0},z.push(O)),this.stack.push(O)}function D(k){let b=this.stack.pop();b.value+=this.sliceSerialize(k),b.position.end=Ae(k.end)}function X(k){let b=this.stack[this.stack.length-1];if(this.data.atHardBreak){let z=b.children[b.children.length-1];z.position.end=Ae(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(b.type)&&(j.call(this,k),D.call(this,k))}function q(){this.data.atHardBreak=!0}function _(){let k=this.resume(),b=this.stack[this.stack.length-1];b.value=k}function L(){let k=this.resume(),b=this.stack[this.stack.length-1];b.value=k}function M(){let k=this.resume(),b=this.stack[this.stack.length-1];b.value=k}function $(){let k=this.stack[this.stack.length-1];if(this.data.inReference){let b=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=b,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function Y(){let k=this.stack[this.stack.length-1];if(this.data.inReference){let b=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=b,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function ae(k){let b=this.sliceSerialize(k),z=this.stack[this.stack.length-2];z.label=Oi(b),z.identifier=ee(b).toLowerCase()}function fe(){let k=this.stack[this.stack.length-1],b=this.resume(),z=this.stack[this.stack.length-1];if(this.data.inReference=!0,z.type==="link"){let O=k.children;z.children=O}else z.alt=b}function h(){let k=this.resume(),b=this.stack[this.stack.length-1];b.url=k}function ue(){let k=this.resume(),b=this.stack[this.stack.length-1];b.title=k}function ge(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function ie(k){let b=this.resume(),z=this.stack[this.stack.length-1];z.label=b,z.identifier=ee(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function Se(k){this.data.characterReferenceType=k.type}function Xt(k){let b=this.sliceSerialize(k),z=this.data.characterReferenceType,O;z?(O=Lt(b,z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=Ge(b);let V=this.stack[this.stack.length-1];V.value+=O}function Ct(k){let b=this.stack.pop();b.position.end=Ae(k.end)}function J(k){D.call(this,k);let b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(k)}function tt(k){D.call(this,k);let b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(k)}function De(){return{type:"blockquote",children:[]}}function Be(){return{type:"code",lang:null,meta:null,value:""}}function Qe(){return{type:"inlineCode",value:""}}function Zt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zo(){return{type:"emphasis",children:[]}}function dr(){return{type:"heading",depth:0,children:[]}}function gr(){return{type:"break"}}function Dr(){return{type:"html",value:""}}function Lo(){return{type:"image",title:null,url:"",alt:null}}function xr(){return{type:"link",title:null,url:"",children:[]}}function kr(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function Mo(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function vo(){return{type:"paragraph",children:[]}}function Po(){return{type:"strong",children:[]}}function Ro(){return{type:"text",value:""}}function No(){return{type:"thematicBreak"}}}function Ae(e){return{line:e.line,column:e.column,offset:e.offset}}function qi(e,n){let t=-1;for(;++t<n.length;){let r=n[t];Array.isArray(r)?qi(e,r):Ba(e,r)}}function Ba(e,n){let t;for(t in n)if(ji.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 Hi(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ye({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ye({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ye({start:n.start,end:n.end})+") is still open")}function Ke(e){let n=this;n.parser=t;function t(r){return Sn(r,be(E(E({},n.data("settings")),e),{extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]}))}}function Bn(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}function In(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Te=function(e){if(e==null)return Ma;if(typeof e=="function")return Qt(e);if(typeof e=="object")return Array.isArray(e)?Ia(e):za(e);if(typeof e=="string")return La(e);throw new Error("Expected function, string, or object as test")};function Ia(e){let n=[],t=-1;for(;++t<e.length;)n[t]=Te(e[t]);return Qt(r);function r(...i){let u=-1;for(;++u<n.length;)if(n[u].apply(this,i))return!0;return!1}}function za(e){let n=e;return Qt(t);function t(r){let i=r,u;for(u in e)if(i[u]!==n[u])return!1;return!0}}function La(e){return Qt(n);function n(t){return t&&t.type===e}}function Qt(e){return n;function n(t,r,i){return!!(va(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Ma(){return!0}function va(e){return e!==null&&typeof e=="object"&&"type"in e}var Vi=[],Ut=!0,qe=!1,$t="skip";function xt(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;let u=Te(i),o=r?-1:1;a(e,void 0,[])();function a(l,s,m){let c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){let f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Vi,g,y,A;if((!n||u(l,s,m[m.length-1]||void 0))&&(f=Pa(t(l,m)),f[0]===qe))return f;if("children"in l&&l.children){let x=l;if(x.children&&f[0]!==$t)for(y=(r?x.children.length:-1)+o,A=m.concat(x);y>-1&&y<x.children.length;){let T=x.children[y];if(g=a(T,y,A)(),g[0]===qe)return g;y=typeof g[1]=="number"?g[1]:y+o}}return f}}}function Pa(e){return Array.isArray(e)?e:typeof e=="number"?[Ut,e]:e==null?Vi:[e]}function zn(e,n,t){let i=Te((t||{}).ignore||[]),u=Ra(n),o=-1;for(;++o<u.length;)xt(e,"text",a);function a(s,m){let c=-1,p;for(;++c<m.length;){let f=m[c],g=p?p.children:void 0;if(i(f,g?g.indexOf(f):void 0,p))return;p=f}if(p)return l(s,m)}function l(s,m){let c=m[m.length-1],p=u[o][0],f=u[o][1],g=0,A=c.children.indexOf(s),x=!1,T=[];p.lastIndex=0;let C=p.exec(s.value);for(;C;){let v=C.index,P={index:C.index,input:C.input,stack:[...m,s]},F=f(...C,P);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?p.lastIndex=v+1:(g!==v&&T.push({type:"text",value:s.value.slice(g,v)}),Array.isArray(F)?T.push(...F):F&&T.push(F),g=v+C[0].length,x=!0),!p.global)break;C=p.exec(s.value)}return x?(g<s.value.length&&T.push({type:"text",value:s.value.slice(g)}),c.children.splice(A,1,...T)):T=[s],A+T.length}}function Ra(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([Na(i[0]),Oa(i[1])])}return n}function Na(e){return typeof e=="string"?new RegExp(In(e),"g"):e}function Oa(e){return typeof e=="function"?e:function(){return e}}var Ln="phrasing",Mn=["autolink","link","image","label"];function Pn(){return{transforms:[Ua],enter:{literalAutolink:Ha,literalAutolinkEmail:vn,literalAutolinkHttp:vn,literalAutolinkWww:vn},exit:{literalAutolink:Qa,literalAutolinkEmail:Va,literalAutolinkHttp:ja,literalAutolinkWww:qa}}}function Rn(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ln,notInConstruct:Mn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ln,notInConstruct:Mn},{character:":",before:"[ps]",after:"\\/",inConstruct:Ln,notInConstruct:Mn}]}}function Ha(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function vn(e){this.config.enter.autolinkProtocol.call(this,e)}function ja(e){this.config.exit.autolinkProtocol.call(this,e)}function qa(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 Va(e){this.config.exit.autolinkEmail.call(this,e)}function Qa(e){this.exit(e)}function Ua(e){zn(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$a],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Wa]],{ignore:["link","linkReference"]})}function $a(e,n,t,r,i){let u="";if(!Qi(i)||(/^w/i.test(n)&&(t=n+t,n="",u="http://"),!Ya(t)))return!1;let o=Ga(t+r);if(!o[0])return!1;let a={type:"link",title:null,url:u+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function Wa(e,n,t,r){return!Qi(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Ya(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 Ga(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=Bn(e,"("),u=Bn(e,")");for(;r!==-1&&i>u;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),u++;return[e,t]}function Qi(e,n){let t=e.input.charCodeAt(e.index-1);return(e.index===0||pe(t)||Ne(t))&&(!n||t!==47)}Ui.peek=il;function Ka(){this.buffer()}function Xa(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Za(){this.buffer()}function Ja(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function el(e){let n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ee(this.sliceSerialize(e)).toLowerCase(),t.label=n}function tl(e){this.exit(e)}function nl(e){let n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ee(this.sliceSerialize(e)).toLowerCase(),t.label=n}function rl(e){this.exit(e)}function il(){return"["}function Ui(e,n,t,r){let i=t.createTracker(r),u=i.move("[^"),o=t.enter("footnoteReference"),a=t.enter("reference");return u+=i.move(t.safe(t.associationId(e),{after:"]",before:u})),a(),o(),u+=i.move("]"),u}function Nn(){return{enter:{gfmFootnoteCallString:Ka,gfmFootnoteCall:Xa,gfmFootnoteDefinitionLabelString:Za,gfmFootnoteDefinition:Ja},exit:{gfmFootnoteCallString:el,gfmFootnoteCall:tl,gfmFootnoteDefinitionLabelString:nl,gfmFootnoteDefinition:rl}}}function On(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Ui},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,u,o){let a=u.createTracker(o),l=a.move("[^"),s=u.enter("footnoteDefinition"),m=u.enter("label");return l+=a.move(u.safe(u.associationId(r),{before:l,after:"]"})),m(),l+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),l+=a.move((n?`
69
69
  `:" ")+u.indentLines(u.containerFlow(r,a.current()),n?$i:ol))),s(),l}}function ol(e,n,t){return n===0?e:$i(e,n,t)}function $i(e,n,t){return(t?"":" ")+e}var ul=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Wi.peek=sl;function Hn(){return{canContainEols:["delete"],enter:{strikethrough:al},exit:{strikethrough:ll}}}function jn(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ul}],handlers:{delete:Wi}}}function al(e){this.enter({type:"delete",children:[]},e)}function ll(e){this.exit(e)}function Wi(e,n,t,r){let i=t.createTracker(r),u=t.enter("strikethrough"),o=i.move("~~");return o+=t.containerPhrasing(e,be(E({},i.current()),{before:o,after:"~"})),o+=i.move("~~"),u(),o}function sl(){return"~"}function cl(e){return e.length}function Gi(e,n){let t=n||{},r=(t.align||[]).concat(),i=t.stringLength||cl,u=[],o=[],a=[],l=[],s=0,m=-1;for(;++m<e.length;){let y=[],A=[],x=-1;for(e[m].length>s&&(s=e[m].length);++x<e[m].length;){let T=ml(e[m][x]);if(t.alignDelimiters!==!1){let C=i(T);A[x]=C,(l[x]===void 0||C>l[x])&&(l[x]=C)}y.push(T)}o[m]=y,a[m]=A}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)u[c]=Yi(r[c]);else{let y=Yi(r);for(;++c<s;)u[c]=y}c=-1;let p=[],f=[];for(;++c<s;){let y=u[c],A="",x="";y===99?(A=":",x=":"):y===108?A=":":y===114&&(x=":");let T=t.alignDelimiters===!1?1:Math.max(1,l[c]-A.length-x.length),C=A+"-".repeat(T)+x;t.alignDelimiters!==!1&&(T=A.length+T+x.length,T>l[c]&&(l[c]=T),f[c]=T),p[c]=C}o.splice(1,0,p),a.splice(1,0,f),m=-1;let g=[];for(;++m<o.length;){let y=o[m],A=a[m];c=-1;let x=[];for(;++c<s;){let T=y[c]||"",C="",v="";if(t.alignDelimiters!==!1){let P=l[c]-(A[c]||0),F=u[c];F===114?C=" ".repeat(P):F===99?P%2?(C=" ".repeat(P/2+.5),v=" ".repeat(P/2-.5)):(C=" ".repeat(P/2),v=C):v=" ".repeat(P)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&T==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(C),x.push(T),t.alignDelimiters!==!1&&x.push(v),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&x.push("|")}g.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return g.join(`
@@ -80,4 +80,4 @@ import{$a as Sr,$c as Xr,Cb as qr,Db as Vr,Ea as Le,Fa as Me,Fc as Kr,Ga as ot,G
80
80
  `))+1))}let o="#".repeat(i),a=t.enter("headingAtx"),l=t.enter("phrasing");u.move(o+" ");let s=t.containerPhrasing(e,E({before:"# ",after:`
81
81
  `},u.current()));return/^[\t ]/.test(s)&&(s=_e(s.charCodeAt(0))+s.slice(1)),s=s?o+" "+s:o,t.options.closeAtx&&(s+=" "+o),l(),a(),s}Un.peek=dl;function Un(e){return e.value||""}function dl(){return"<"}$n.peek=gl;function $n(e,n,t,r){let i=Xe(t),u=i==='"'?"Quote":"Apostrophe",o=t.enter("image"),a=t.enter("label"),l=t.createTracker(r),s=l.move("![");return s+=l.move(t.safe(e.alt,E({before:s,after:"]"},l.current()))),s+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,E({before:s,after:">"},l.current()))),s+=l.move(">")):(a=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,E({before:s,after:e.title?" ":")"},l.current())))),a(),e.title&&(a=t.enter(`title${u}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,E({before:s,after:i},l.current()))),s+=l.move(i),a()),s+=l.move(")"),o(),s}function gl(){return"!"}Wn.peek=Dl;function Wn(e,n,t,r){let i=e.referenceType,u=t.enter("imageReference"),o=t.enter("label"),a=t.createTracker(r),l=a.move("!["),s=t.safe(e.alt,E({before:l,after:"]"},a.current()));l+=a.move(s+"]["),o();let m=t.stack;t.stack=[],o=t.enter("reference");let c=t.safe(t.associationId(e),E({before:l,after:"]"},a.current()));return o(),t.stack=m,u(),i==="full"||!s||s!==c?l+=a.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Dl(){return"!"}Yn.peek=xl;function Yn(e,n,t){let r=e.value||"",i="`",u=-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+" ");++u<t.unsafe.length;){let o=t.unsafe[u],a=t.compilePattern(o),l;if(o.atBreak)for(;l=a.exec(r);){let s=l.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(l.index+1)}}return i+r+i}function xl(){return"`"}function Gn(e,n){let t=Pe(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))}Kn.peek=kl;function Kn(e,n,t,r){let i=Xe(t),u=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r),a,l;if(Gn(e,t)){let m=t.stack;t.stack=[],a=t.enter("autolink");let c=o.move("<");return c+=o.move(t.containerPhrasing(e,E({before:c,after:">"},o.current()))),c+=o.move(">"),a(),t.stack=m,c}a=t.enter("link"),l=t.enter("label");let s=o.move("[");return s+=o.move(t.containerPhrasing(e,E({before:s,after:"]("},o.current()))),s+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(t.safe(e.url,E({before:s,after:">"},o.current()))),s+=o.move(">")):(l=t.enter("destinationRaw"),s+=o.move(t.safe(e.url,E({before:s,after:e.title?" ":")"},o.current())))),l(),e.title&&(l=t.enter(`title${u}`),s+=o.move(" "+i),s+=o.move(t.safe(e.title,E({before:s,after:i},o.current()))),s+=o.move(i),l()),s+=o.move(")"),a(),s}function kl(e,n,t){return Gn(e,t)?"<":"["}Xn.peek=Fl;function Xn(e,n,t,r){let i=e.referenceType,u=t.enter("linkReference"),o=t.enter("label"),a=t.createTracker(r),l=a.move("["),s=t.containerPhrasing(e,E({before:l,after:"]"},a.current()));l+=a.move(s+"]["),o();let m=t.stack;t.stack=[],o=t.enter("reference");let c=t.safe(t.associationId(e),E({before:l,after:"]"},a.current()));return o(),t.stack=m,u(),i==="full"||!s||s!==c?l+=a.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Fl(){return"["}function Je(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 ao(e){let n=Je(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 lo(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 Wt(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 so(e,n,t,r){let i=t.enter("list"),u=t.bulletCurrent,o=e.ordered?lo(t):Je(t),a=e.ordered?o==="."?")":".":ao(t),l=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){let m=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&m&&(!m.children||!m.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&&(l=!0),Wt(t)===o&&m){let c=-1;for(;++c<e.children.length;){let p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),t.bulletCurrent=o;let s=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=u,i(),s}function co(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 mo(e,n,t,r){let i=co(t),u=t.bulletCurrent||Je(t);n&&n.type==="list"&&n.ordered&&(u=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+u);let o=u.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(u+" ".repeat(o-u.length)),a.shift(o);let l=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,a.current()),m);return l(),s;function m(c,p,f){return p?(f?"":" ".repeat(o))+c:(f?u:u+" ".repeat(o-u.length))+c}}function fo(e,n,t,r){let i=t.enter("paragraph"),u=t.enter("phrasing"),o=t.containerPhrasing(e,r);return u(),i(),o}var Zn=Te(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function po(e,n,t,r){return(e.children.some(function(o){return Zn(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function ho(e){let n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Jn.peek=Cl;function Jn(e,n,t,r){let i=ho(t),u=t.enter("strong"),o=t.createTracker(r),a=o.move(i+i),l=o.move(t.containerPhrasing(e,E({after:i,before:a},o.current()))),s=l.charCodeAt(0),m=Ze(r.before.charCodeAt(r.before.length-1),s,i);m.inside&&(l=_e(s)+l.slice(1));let c=l.charCodeAt(l.length-1),p=Ze(r.after.charCodeAt(0),c,i);p.inside&&(l=l.slice(0,-1)+_e(c));let f=o.move(i+i);return u(),t.attentionEncodeSurroundingInfo={after:p.outside,before:m.outside},a+l+f}function Cl(e,n,t){return t.options.strong||"*"}function go(e,n,t,r){return t.safe(e.value,r)}function Do(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 xo(e,n,t){let r=(Wt(t)+(t.options.ruleSpaces?" ":"")).repeat(Do(t));return t.options.ruleSpaces?r.slice(0,-1):r}var kt={blockquote:Ki,break:qn,code:no,definition:ro,emphasis:Vn,hardBreak:qn,heading:uo,html:Un,image:$n,imageReference:Wn,inlineCode:Yn,link:Kn,linkReference:Xn,list:so,listItem:mo,paragraph:fo,root:po,strong:Jn,text:go,thematicBreak:xo};function tr(){return{enter:{table:bl,tableData:ko,tableHeader:ko,tableRow:El},exit:{codeText:wl,table:yl,tableData:er,tableHeader:er,tableRow:er}}}function bl(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 yl(e){this.exit(e),this.data.inTable=void 0}function El(e){this.enter({type:"tableRow",children:[]},e)}function er(e){this.exit(e)}function ko(e){this.enter({type:"tableCell",children:[]},e)}function wl(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Al));let t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Al(e,n){return n==="|"?n:e}function nr(e){let n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,u=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
82
82
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:l,tableRow:a}};function o(f,g,y,A){return s(m(f,y,A),f.align)}function a(f,g,y,A){let x=c(f,y,A),T=s([x]);return T.slice(0,T.indexOf(`
83
- `))}function l(f,g,y,A){let x=y.enter("tableCell"),T=y.enter("phrasing"),C=y.containerPhrasing(f,be(E({},A),{before:u,after:u}));return T(),x(),C}function s(f,g){return Gi(f,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function m(f,g,y){let A=f.children,x=-1,T=[],C=g.enter("table");for(;++x<A.length;)T[x]=c(A[x],g,y);return C(),T}function c(f,g,y){let A=f.children,x=-1,T=[],C=g.enter("tableRow");for(;++x<A.length;)T[x]=l(A[x],f,g,y);return C(),T}function p(f,g,y){let A=kt.inlineCode(f,g,y);return y.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function rr(){return{exit:{taskListCheckValueChecked:Fo,taskListCheckValueUnchecked:Fo,paragraph:Tl}}}function ir(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_l}}}function Fo(e){let n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Tl(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,u=-1,o;for(;++u<i.length;){let a=i[u];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 _l(e,n,t,r){let i=e.children[0],u=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);u&&a.move(o);let l=kt.listItem(e,n,t,E(E({},r),a.current()));return u&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),l;function s(m){return m+o}}function or(){return[Pn(),Nn(),Hn(),tr(),rr()]}function ur(e){return{extensions:[Rn(),On(e),jn(),nr(e),ir()]}}var Sl={tokenize:Ml,partial:!0},Co={tokenize:vl,partial:!0},bo={tokenize:Pl,partial:!0},yo={tokenize:Rl,partial:!0},Bl={tokenize:Nl,partial:!0},Eo={name:"wwwAutolink",tokenize:zl,previous:Ao},wo={name:"protocolAutolink",tokenize:Ll,previous:To},Ce={name:"emailAutolink",tokenize:Il,previous:_o},de={};function lr(){return{text:de}}var Ve=48;for(;Ve<123;)de[Ve]=Ce,Ve++,Ve===58?Ve=65:Ve===91&&(Ve=97);de[43]=Ce;de[45]=Ce;de[46]=Ce;de[95]=Ce;de[72]=[Ce,wo];de[104]=[Ce,wo];de[87]=[Ce,Eo];de[119]=[Ce,Eo];function Il(e,n,t){let r=this,i,u;return o;function o(c){return!ar(c)||!_o.call(r,r.previous)||sr(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return ar(c)?(e.consume(c),a):c===64?(e.consume(c),l):t(c)}function l(c){return c===46?e.check(Bl,m,s)(c):c===45||c===95||K(c)?(u=!0,e.consume(c),l):m(c)}function s(c){return e.consume(c),i=!0,l}function m(c){return u&&i&&G(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function zl(e,n,t){let r=this;return i;function i(o){return o!==87&&o!==119||!Ao.call(r,r.previous)||sr(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Sl,e.attempt(Co,e.attempt(bo,u),t),t)(o))}function u(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Ll(e,n,t){let r=this,i="",u=!1;return o;function o(c){return(c===72||c===104)&&To.call(r,r.previous)&&!sr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(G(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),l}return t(c)}function l(c){return c===47?(e.consume(c),u?s:(u=!0,l)):t(c)}function s(c){return c===null||Re(c)||R(c)||pe(c)||Ne(c)?t(c):e.attempt(Co,e.attempt(bo,m),t)(c)}function m(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Ml(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),u):t(o)}function u(o){return o===null?t(o):n(o)}}function vl(e,n,t){let r,i,u;return o;function o(s){return s===46||s===95?e.check(yo,l,a)(s):s===null||R(s)||pe(s)||s!==45&&Ne(s)?l(s):(u=!0,e.consume(s),o)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),o}function l(s){return i||r||!u?t(s):n(s)}}function Pl(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?u(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(yo,n,u)(o):o===null||R(o)||pe(o)?n(o):(e.consume(o),i)}function u(o){return o===41&&r++,e.consume(o),i}}function Rl(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),u):a===93?(e.consume(a),i):a===60||a===null||R(a)||pe(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||R(a)||pe(a)?n(a):r(a)}function u(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 Nl(e,n,t){return r;function r(u){return e.consume(u),i}function i(u){return K(u)?t(u):n(u)}}function Ao(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||R(e)}function To(e){return!G(e)}function _o(e){return!(e===47||ar(e))}function ar(e){return e===43||e===45||e===46||e===95||K(e)}function sr(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}var Ol={tokenize:$l,partial:!0};function cr(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Vl,continuation:{tokenize:Ql},exit:Ul}},text:{91:{name:"gfmFootnoteCall",tokenize:ql},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Hl,resolveTo:jl}}}}function Hl(e,n,t){let r=this,i=r.events.length,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return t(l);let s=ee(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!u.includes(s.slice(1))?t(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),n(l))}}function jl(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)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},u.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)},l=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",u,n],["exit",u,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,...l),e}function ql(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),u=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(u>999||c===93&&!o||c===null||c===91||R(c))return t(c);if(c===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(ee(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return R(c)||(o=!0),u++,e.consume(c),c===92?m:s}function m(c){return c===91||c===92||c===93?(e.consume(c),u++,s):s(c)}}function Vl(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),u,o=0,a;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):t(g)}function m(g){if(o>999||g===93&&!a||g===null||g===91||R(g))return t(g);if(g===93){e.exit("chunkString");let y=e.exit("gfmFootnoteDefinitionLabelString");return u=ee(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return R(g)||(a=!0),o++,e.consume(g),g===92?c:m}function c(g){return g===91||g===92||g===93?(e.consume(g),o++,m):m(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(u)||i.push(u),S(e,f,"gfmFootnoteDefinitionWhitespace")):t(g)}function f(g){return n(g)}}function Ql(e,n,t){return e.check(he,n,e.attempt(Ol,n,t))}function Ul(e){e.exit("gfmFootnoteDefinition")}function $l(e,n,t){let r=this;return S(e,i,"gfmFootnoteDefinitionIndent",5);function i(u){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(u):t(u)}}function mr(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:u,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let s=l;for(;s--;)if(o[s][0]==="exit"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[s][1].end.offset-o[s][1].start.offset){o[l][1].type="strikethroughSequence",o[s][1].type="strikethroughSequence";let m={type:"strikethrough",start:Object.assign({},o[s][1].start),end:Object.assign({},o[l][1].end)},c={type:"strikethroughText",start:Object.assign({},o[s][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",m,a],["enter",o[s][1],a],["exit",o[s][1],a],["enter",c,a]],f=a.parser.constructs.insideSpan.null;f&&W(p,p.length,0,we(f,o.slice(s+1,l),a)),W(p,p.length,0,[["exit",c,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",m,a]]),W(o,s-1,l-s+3,p),l=s+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function u(o,a,l){let s=this.previous,m=this.events,c=0;return p;function p(g){return s===126&&m[m.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),f(g))}function f(g){let y=Fe(s);if(g===126)return c>1?l(g):(o.consume(g),c++,f);if(c<2&&!t)return l(g);let A=o.exit("strikethroughSequenceTemporary"),x=Fe(g);return A._open=!x||x===2&&!!y,A._close=!y||y===2&&!!x,a(g)}}}var Yt=class{constructor(){this.map=[]}add(n,t,r){Wl(this,n,t,r)}consume(n){if(this.map.sort(function(u,o){return u[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.slice()),n.length=0;let i=r.pop();for(;i;){for(let u of i)n.push(u);i=r.pop()}this.map.length=0}};function Wl(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 So(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 u=r.length-1;r[u]=r[u]==="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 fr(){return{flow:{null:{name:"table",tokenize:Yl,resolveAll:Gl}}}}function Yl(e,n,t){let r=this,i=0,u=0,o;return a;function a(D){let X=r.events.length-1;for(;X>-1;){let L=r.events[X][1].type;if(L==="lineEnding"||L==="linePrefix")X--;else break}let q=X>-1?r.events[X][1].type:null,_=q==="tableHead"||q==="tableRow"?F:l;return _===F&&r.parser.lazy[r.now().line]?t(D):_(D)}function l(D){return e.enter("tableHead"),e.enter("tableRow"),s(D)}function s(D){return D===124||(o=!0,u+=1),m(D)}function m(D){return D===null?t(D):w(D)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),f):t(D):B(D)?S(e,m,"whitespace")(D):(u+=1,o&&(o=!1,i+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),o=!0,m):(e.enter("data"),c(D)))}function c(D){return D===null||D===124||R(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?p:c)}function p(D){return D===92||D===124?(e.consume(D),c):c(D)}function f(D){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(D):(e.enter("tableDelimiterRow"),o=!1,B(D)?S(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):g(D))}function g(D){return D===45||D===58?A(D):D===124?(o=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),y):P(D)}function y(D){return B(D)?S(e,A,"whitespace")(D):A(D)}function A(D){return D===58?(u+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),x):D===45?(u+=1,x(D)):D===null||w(D)?v(D):P(D)}function x(D){return D===45?(e.enter("tableDelimiterFiller"),T(D)):P(D)}function T(D){return D===45?(e.consume(D),T):D===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(D))}function C(D){return B(D)?S(e,v,"whitespace")(D):v(D)}function v(D){return D===124?g(D):D===null||w(D)?!o||i!==u?P(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(D)):P(D)}function P(D){return t(D)}function F(D){return e.enter("tableRow"),H(D)}function H(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),H):D===null||w(D)?(e.exit("tableRow"),n(D)):B(D)?S(e,H,"whitespace")(D):(e.enter("data"),U(D))}function U(D){return D===null||D===124||R(D)?(e.exit("data"),H(D)):(e.consume(D),D===92?j:U)}function j(D){return D===92||D===124?(e.consume(D),U):U(D)}}function Gl(e,n){let t=-1,r=!0,i=0,u=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,s,m,c,p=new Yt;for(;++t<e.length;){let f=e[t],g=f[1];f[0]==="enter"?g.type==="tableHead"?(a=!1,l!==0&&(Bo(p,n,l,s,m),m=void 0,l=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",s,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,u=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,m={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",m,n]])),i=g.type==="tableDelimiterRow"?2:m?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(u[1]!==0&&(o[0]=o[1],c=Gt(p,n,u,i,void 0,c),u=[0,0,0,0]),o[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(o[0]=o[1],c=Gt(p,n,u,i,void 0,c)),u=o,o=[u[1],t,0,0])):g.type==="tableHead"?(a=!0,l=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=t,u[1]!==0?(o[0]=o[1],c=Gt(p,n,u,i,t,c)):o[1]!==0&&(c=Gt(p,n,o,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=t)}for(l!==0&&Bo(p,n,l,s,m),p.consume(n.events),t=-1;++t<n.events.length;){let f=n.events[t];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=So(n.events,t))}return e}function Gt(e,n,t,r,i,u){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(u.end=Object.assign({},et(n.events,t[0])),e.add(t[0],0,[["exit",u,n]]));let l=et(n.events,t[1]);if(u={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(t[1],0,[["enter",u,n]]),t[2]!==0){let s=et(n.events,t[2]),m=et(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},m)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){let p=n.events[t[2]],f=n.events[t[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){let g=t[2]+1,y=t[3]-t[2]-1;e.add(g,y,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(u.end=Object.assign({},et(n.events,i)),e.add(i,0,[["exit",u,n]]),u=void 0),u}function Bo(e,n,t,r,i){let u=[],o=et(n.events,t);i&&(i.end=Object.assign({},o),u.push(["exit",i,n])),r.end=Object.assign({},o),u.push(["exit",r,n]),e.add(t+1,0,u)}function et(e,n){let t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}var Kl={name:"tasklistCheck",tokenize:Xl};function pr(){return{text:{91:Kl}}}function Xl(e,n,t){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),u)}function u(l){return R(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):t(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(l)}function a(l){return w(l)?n(l):B(l)?e.check({tokenize:Zl},n,t)(l):t(l)}}function Zl(e,n,t){return S(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Io(e){return zt([lr(),cr(),mr(e),fr(),pr()])}var Jl={};function Kt(e){let n=this,t=e||Jl,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Io(t)),u.push(or()),o.push(ur(t))}var u1=ft().use(Ke).use(Kt).freeze();var es=(e,n)=>({$implicit:e,parent:n});function ts(e,n){e&1&&Tr(0)}function ns(e,n){if(e&1&&At(0,ts,1,0,"ng-container",1),e&2){let t=n.$implicit,r=re(),i=Mr(4),u=Or(0);I("ngTemplateOutlet",u[t.type]??i)("ngTemplateOutletContext",jr(2,es,t,r.node()))}}function rs(e,n){if(e&1&&(se(0,"b"),ve(1),ce()),e&2){let t=n.$implicit;N(),Pr("Unknown node type: ",t.type)}}function is(e,n){if(e&1&&Q(0,"remark-node",0),e&2){let t=re();I("remarkNode",t.tree())}}function os(e,n){if(e&1&&(se(0,"pre")(1,"code"),ve(2),qr(3,"json"),ce()()),e&2){let t=re();N(2),$e(Vr(3,1,t.tree()))}}function us(e,n){if(e&1&&Q(0,"p",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function as(e,n){if(e&1&&Q(0,"h1",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function ls(e,n){if(e&1&&Q(0,"h2",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function ss(e,n){if(e&1&&Q(0,"h3",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function cs(e,n){if(e&1&&Q(0,"h4",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function ms(e,n){if(e&1&&Q(0,"h5",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function fs(e,n){if(e&1&&Q(0,"h6",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function ps(e,n){if(e&1&&Le(0,as,1,1,"h1",0)(1,ls,1,1,"h2",0)(2,ss,1,1,"h3",0)(3,cs,1,1,"h4",0)(4,ms,1,1,"h5",0)(5,fs,1,1,"h6",0),e&2){let t,r=n.$implicit;Me((t=r.depth)===1?0:t===2?1:t===3?2:t===4?3:t===5?4:t===6?5:-1)}}function hs(e,n){if(e&1&&Q(0,"blockquote",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function ds(e,n){if(e&1&&Q(0,"ul",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function gs(e,n){if(e&1&&Q(0,"ol",10),e&2){let t=re().$implicit;I("remarkNode",t)("start",t.start)}}function Ds(e,n){if(e&1&&(Le(0,ds,1,1,"ul",0),Le(1,gs,1,2,"ol",10)),e&2){let t=n.$implicit;Me(t.ordered?-1:0),N(),Me(t.ordered?1:-1)}}function xs(e,n){if(e&1&&Q(0,"li",0),e&2){let t=n.$implicit,r=n.parent;I("remarkNode",!r.loose&&t.children.length===1&&t.children[0].children?t.children[0]:t)}}function ks(e,n){if(e&1&&Q(0,"a",11),e&2){let t=n.$implicit;I("href",t.url,yt)("title",t.title??"")("remarkNode",t)}}function Fs(e,n){if(e&1&&Q(0,"em",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function Cs(e,n){if(e&1&&Q(0,"strong",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function bs(e,n){if(e&1&&Q(0,"del",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function ys(e,n){if(e&1&&Q(0,"section",12),e&2){let t=n.$implicit;I("remarkNode",t)}}function Es(e,n){if(e&1&&Q(0,"th",0),e&2){let t=n.$implicit,r=n.$index,i=re(2).$implicit;tn("text-align",i.align==null?null:i.align[r]),I("remarkNode",t)}}function ws(e,n){e&1&&(se(0,"tr"),ut(1,Es,1,3,"th",13,ot),ce()),e&2&&(N(),at(n.children))}function As(e,n){if(e&1&&Q(0,"td",0),e&2){let t=n.$implicit,r=n.$index,i=re(2).$implicit;tn("text-align",i.align==null?null:i.align[r]),I("remarkNode",t)}}function Ts(e,n){if(e&1&&(se(0,"tr"),ut(1,As,1,3,"td",13,ot),ce()),e&2){let t=n.$implicit;N(),at(t.children)}}function _s(e,n){if(e&1&&(se(0,"table")(1,"thead"),Le(2,ws,3,0,"tr"),ce(),se(3,"tbody"),ut(4,Ts,3,0,"tr",null,ot),ce()()),e&2){let t,r=n.$implicit;N(2),Me((t=r.children[0])?2:-1,t),N(2),at(r.children.slice(1))}}function Ss(e,n){if(e&1&&Q(0,"tr",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function Bs(e,n){if(e&1&&Q(0,"td",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function Is(e,n){if(e&1&&(se(0,"code"),ve(1),ce()),e&2){let t=n.$implicit;lt(nn("language-",t.lang||"plain")),N(),$e(t.value)}}function zs(e,n){if(e&1&&(se(0,"pre")(1,"code"),ve(2),ce()()),e&2){let t=n.$implicit;N(),lt(nn("language-",t.lang||"plain")),N(),$e(t.value)}}function Ls(e,n){if(e&1&&Q(0,"div",14),e&2){let t=n.$implicit;I("innerHTML",t.value,Er)}}function Ms(e,n){if(e&1&&(se(0,"span"),ve(1),ce()),e&2){let t=n.$implicit;N(),$e(t.value)}}function vs(e,n){if(e&1&&(se(0,"sup",15)(1,"a",16),ve(2),ce()()),e&2){let t=n.$implicit;N(),I("href","#"+t.identifier,yt),N(),$e(t.label)}}function Ps(e,n){if(e&1&&Q(0,"img",17),e&2){let t=n.$implicit;I("src",t.url,yt)("alt",t.alt??"")("title",t.title??"")}}function Rs(e,n){e&1&&Q(0,"hr")}function Ns(e,n){e&1&&Q(0,"br")}var Ft=(()=>{class e{constructor(){this.template=ze(wr),this.nodeType=We.required({alias:"remarkTemplate"})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=wt({type:e,selectors:[["","remarkTemplate",""]],inputs:{nodeType:[1,"remarkTemplate","nodeType"]}})}}return e})(),hr=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Fr({token:e,factory:e.\u0275fac})}}return e})(),Os=(()=>{class e{constructor(){this.templateService=ze(hr),this.node=We.required({alias:"remarkNode"}),this.children=Tt(()=>this.node().children)}ngOnInit(){}ngOnChanges(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=it({type:e,selectors:[["remark-node"],["","remarkNode",""]],inputs:{node:[1,"remarkNode","node"]},features:[br],decls:5,vars:1,consts:[["defaultTpl",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&(Rr(0),ut(1,ns,1,5,"ng-container",null,ot),At(3,rs,2,1,"ng-template",null,0,Qr)),r&2&&(Nr(i.templateService.templates()),N(),at(i.children()))},dependencies:[Wr],encapsulation:2,changeDetection:0})}}return e})(),E1=(()=>{class e{constructor(t){this.remarkTemplatesService=t,this.markdown=We.required(),this.processor=We(),this.debug=We(!1),this.customTemplateQuery=$r(Ft),this.templateQuery=Ur(Ft),this.tree=Tt(()=>{let r=this.processor()??ft().use(Ke),i=r.parse(this.markdown());return r.runSync(i)}),t.templates=Tt(()=>{let r={};for(let i of this.templateQuery())r[i.nodeType()]=i.template;for(let i of this.customTemplateQuery())r[i.nodeType()]=i.template;return r})}static{this.\u0275fac=function(r){return new(r||e)(Ar(hr))}}static{this.\u0275cmp=it({type:e,selectors:[["remark"]],contentQueries:function(r,i,u){r&1&&zr(u,i.customTemplateQuery,Ft,4),r&2&&en()},viewQuery:function(r,i){r&1&&Lr(i.templateQuery,Ft,5),r&2&&en()},inputs:{markdown:[1,"markdown"],processor:[1,"processor"],debug:[1,"debug"]},features:[Hr([hr])],decls:23,vars:23,consts:[[3,"remarkNode"],[3,"remarkNode",4,"remarkTemplate"],[3,"remarkTemplate"],[3,"href","title","remarkNode",4,"remarkTemplate"],["class","footnotes",3,"remarkNode",4,"remarkTemplate"],[4,"remarkTemplate"],[3,"class",4,"remarkTemplate"],[3,"innerHTML",4,"remarkTemplate"],["class","footnote-ref",4,"remarkTemplate"],[3,"src","alt","title",4,"remarkTemplate"],[3,"remarkNode","start"],[3,"href","title","remarkNode"],[1,"footnotes",3,"remarkNode"],[3,"remarkNode","text-align"],[3,"innerHTML"],[1,"footnote-ref"],[3,"href"],[3,"src","alt","title"]],template:function(r,i){r&1&&(Le(0,is,1,1,"remark-node",0),Le(1,os,4,3,"pre"),At(2,us,1,1,"p",1)(3,ps,6,1,"ng-template",2)(4,hs,1,1,"blockquote",1)(5,Ds,2,2,"ng-template",2)(6,xs,1,1,"li",1)(7,ks,1,3,"a",3)(8,Fs,1,1,"em",1)(9,Cs,1,1,"strong",1)(10,bs,1,1,"del",1)(11,ys,1,1,"section",4)(12,_s,6,1,"table",5)(13,Ss,1,1,"tr",1)(14,Bs,1,1,"td",1)(15,Is,2,4,"code",6)(16,zs,3,4,"pre",5)(17,Ls,1,1,"div",7)(18,Ms,2,1,"span",5)(19,vs,3,2,"sup",8)(20,Ps,1,3,"img",9)(21,Rs,1,0,"hr",5)(22,Ns,1,0,"br",5)),r&2&&(Me(i.tree()?0:-1),N(),Me(i.debug()?1:-1),N(),I("remarkTemplate","paragraph"),N(),I("remarkTemplate","heading"),N(),I("remarkTemplate","blockquote"),N(),I("remarkTemplate","list"),N(),I("remarkTemplate","listItem"),N(),I("remarkTemplate","link"),N(),I("remarkTemplate","emphasis"),N(),I("remarkTemplate","strong"),N(),I("remarkTemplate","delete"),N(),I("remarkTemplate","footnotes"),N(),I("remarkTemplate","table"),N(),I("remarkTemplate","tableRow"),N(),I("remarkTemplate","tableCell"),N(),I("remarkTemplate","inlineCode"),N(),I("remarkTemplate","code"),N(),I("remarkTemplate","html"),N(),I("remarkTemplate","text"),N(),I("remarkTemplate","footnoteReference"),N(),I("remarkTemplate","image"),N(),I("remarkTemplate","thematicBreak"),N(),I("remarkTemplate","break"))},dependencies:[Os,Ft,Yr],encapsulation:2,changeDetection:0})}}return e})();export{Ws as a,oc as b,uc as c,u1 as d,Ft as e,Os as f,E1 as g};
83
+ `))}function l(f,g,y,A){let x=y.enter("tableCell"),T=y.enter("phrasing"),C=y.containerPhrasing(f,be(E({},A),{before:u,after:u}));return T(),x(),C}function s(f,g){return Gi(f,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function m(f,g,y){let A=f.children,x=-1,T=[],C=g.enter("table");for(;++x<A.length;)T[x]=c(A[x],g,y);return C(),T}function c(f,g,y){let A=f.children,x=-1,T=[],C=g.enter("tableRow");for(;++x<A.length;)T[x]=l(A[x],f,g,y);return C(),T}function p(f,g,y){let A=kt.inlineCode(f,g,y);return y.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function rr(){return{exit:{taskListCheckValueChecked:Fo,taskListCheckValueUnchecked:Fo,paragraph:Tl}}}function ir(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_l}}}function Fo(e){let n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Tl(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,u=-1,o;for(;++u<i.length;){let a=i[u];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 _l(e,n,t,r){let i=e.children[0],u=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);u&&a.move(o);let l=kt.listItem(e,n,t,E(E({},r),a.current()));return u&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),l;function s(m){return m+o}}function or(){return[Pn(),Nn(),Hn(),tr(),rr()]}function ur(e){return{extensions:[Rn(),On(e),jn(),nr(e),ir()]}}var Sl={tokenize:Ml,partial:!0},Co={tokenize:vl,partial:!0},bo={tokenize:Pl,partial:!0},yo={tokenize:Rl,partial:!0},Bl={tokenize:Nl,partial:!0},Eo={name:"wwwAutolink",tokenize:zl,previous:Ao},wo={name:"protocolAutolink",tokenize:Ll,previous:To},Ce={name:"emailAutolink",tokenize:Il,previous:_o},de={};function lr(){return{text:de}}var Ve=48;for(;Ve<123;)de[Ve]=Ce,Ve++,Ve===58?Ve=65:Ve===91&&(Ve=97);de[43]=Ce;de[45]=Ce;de[46]=Ce;de[95]=Ce;de[72]=[Ce,wo];de[104]=[Ce,wo];de[87]=[Ce,Eo];de[119]=[Ce,Eo];function Il(e,n,t){let r=this,i,u;return o;function o(c){return!ar(c)||!_o.call(r,r.previous)||sr(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return ar(c)?(e.consume(c),a):c===64?(e.consume(c),l):t(c)}function l(c){return c===46?e.check(Bl,m,s)(c):c===45||c===95||K(c)?(u=!0,e.consume(c),l):m(c)}function s(c){return e.consume(c),i=!0,l}function m(c){return u&&i&&G(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function zl(e,n,t){let r=this;return i;function i(o){return o!==87&&o!==119||!Ao.call(r,r.previous)||sr(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Sl,e.attempt(Co,e.attempt(bo,u),t),t)(o))}function u(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Ll(e,n,t){let r=this,i="",u=!1;return o;function o(c){return(c===72||c===104)&&To.call(r,r.previous)&&!sr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(G(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),l}return t(c)}function l(c){return c===47?(e.consume(c),u?s:(u=!0,l)):t(c)}function s(c){return c===null||Re(c)||R(c)||pe(c)||Ne(c)?t(c):e.attempt(Co,e.attempt(bo,m),t)(c)}function m(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Ml(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),u):t(o)}function u(o){return o===null?t(o):n(o)}}function vl(e,n,t){let r,i,u;return o;function o(s){return s===46||s===95?e.check(yo,l,a)(s):s===null||R(s)||pe(s)||s!==45&&Ne(s)?l(s):(u=!0,e.consume(s),o)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),o}function l(s){return i||r||!u?t(s):n(s)}}function Pl(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?u(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(yo,n,u)(o):o===null||R(o)||pe(o)?n(o):(e.consume(o),i)}function u(o){return o===41&&r++,e.consume(o),i}}function Rl(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),u):a===93?(e.consume(a),i):a===60||a===null||R(a)||pe(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||R(a)||pe(a)?n(a):r(a)}function u(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 Nl(e,n,t){return r;function r(u){return e.consume(u),i}function i(u){return K(u)?t(u):n(u)}}function Ao(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||R(e)}function To(e){return!G(e)}function _o(e){return!(e===47||ar(e))}function ar(e){return e===43||e===45||e===46||e===95||K(e)}function sr(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}var Ol={tokenize:$l,partial:!0};function cr(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Vl,continuation:{tokenize:Ql},exit:Ul}},text:{91:{name:"gfmFootnoteCall",tokenize:ql},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Hl,resolveTo:jl}}}}function Hl(e,n,t){let r=this,i=r.events.length,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return t(l);let s=ee(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!u.includes(s.slice(1))?t(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),n(l))}}function jl(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)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},u.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)},l=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",u,n],["exit",u,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,...l),e}function ql(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),u=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(u>999||c===93&&!o||c===null||c===91||R(c))return t(c);if(c===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(ee(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return R(c)||(o=!0),u++,e.consume(c),c===92?m:s}function m(c){return c===91||c===92||c===93?(e.consume(c),u++,s):s(c)}}function Vl(e,n,t){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),u,o=0,a;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):t(g)}function m(g){if(o>999||g===93&&!a||g===null||g===91||R(g))return t(g);if(g===93){e.exit("chunkString");let y=e.exit("gfmFootnoteDefinitionLabelString");return u=ee(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return R(g)||(a=!0),o++,e.consume(g),g===92?c:m}function c(g){return g===91||g===92||g===93?(e.consume(g),o++,m):m(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(u)||i.push(u),S(e,f,"gfmFootnoteDefinitionWhitespace")):t(g)}function f(g){return n(g)}}function Ql(e,n,t){return e.check(he,n,e.attempt(Ol,n,t))}function Ul(e){e.exit("gfmFootnoteDefinition")}function $l(e,n,t){let r=this;return S(e,i,"gfmFootnoteDefinitionIndent",5);function i(u){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(u):t(u)}}function mr(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:u,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let s=l;for(;s--;)if(o[s][0]==="exit"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[s][1].end.offset-o[s][1].start.offset){o[l][1].type="strikethroughSequence",o[s][1].type="strikethroughSequence";let m={type:"strikethrough",start:Object.assign({},o[s][1].start),end:Object.assign({},o[l][1].end)},c={type:"strikethroughText",start:Object.assign({},o[s][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",m,a],["enter",o[s][1],a],["exit",o[s][1],a],["enter",c,a]],f=a.parser.constructs.insideSpan.null;f&&W(p,p.length,0,we(f,o.slice(s+1,l),a)),W(p,p.length,0,[["exit",c,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",m,a]]),W(o,s-1,l-s+3,p),l=s+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function u(o,a,l){let s=this.previous,m=this.events,c=0;return p;function p(g){return s===126&&m[m.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),f(g))}function f(g){let y=Fe(s);if(g===126)return c>1?l(g):(o.consume(g),c++,f);if(c<2&&!t)return l(g);let A=o.exit("strikethroughSequenceTemporary"),x=Fe(g);return A._open=!x||x===2&&!!y,A._close=!y||y===2&&!!x,a(g)}}}var Yt=class{constructor(){this.map=[]}add(n,t,r){Wl(this,n,t,r)}consume(n){if(this.map.sort(function(u,o){return u[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.slice()),n.length=0;let i=r.pop();for(;i;){for(let u of i)n.push(u);i=r.pop()}this.map.length=0}};function Wl(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 So(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 u=r.length-1;r[u]=r[u]==="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 fr(){return{flow:{null:{name:"table",tokenize:Yl,resolveAll:Gl}}}}function Yl(e,n,t){let r=this,i=0,u=0,o;return a;function a(D){let X=r.events.length-1;for(;X>-1;){let L=r.events[X][1].type;if(L==="lineEnding"||L==="linePrefix")X--;else break}let q=X>-1?r.events[X][1].type:null,_=q==="tableHead"||q==="tableRow"?F:l;return _===F&&r.parser.lazy[r.now().line]?t(D):_(D)}function l(D){return e.enter("tableHead"),e.enter("tableRow"),s(D)}function s(D){return D===124||(o=!0,u+=1),m(D)}function m(D){return D===null?t(D):w(D)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),f):t(D):B(D)?S(e,m,"whitespace")(D):(u+=1,o&&(o=!1,i+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),o=!0,m):(e.enter("data"),c(D)))}function c(D){return D===null||D===124||R(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?p:c)}function p(D){return D===92||D===124?(e.consume(D),c):c(D)}function f(D){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(D):(e.enter("tableDelimiterRow"),o=!1,B(D)?S(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):g(D))}function g(D){return D===45||D===58?A(D):D===124?(o=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),y):P(D)}function y(D){return B(D)?S(e,A,"whitespace")(D):A(D)}function A(D){return D===58?(u+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),x):D===45?(u+=1,x(D)):D===null||w(D)?v(D):P(D)}function x(D){return D===45?(e.enter("tableDelimiterFiller"),T(D)):P(D)}function T(D){return D===45?(e.consume(D),T):D===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(D))}function C(D){return B(D)?S(e,v,"whitespace")(D):v(D)}function v(D){return D===124?g(D):D===null||w(D)?!o||i!==u?P(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(D)):P(D)}function P(D){return t(D)}function F(D){return e.enter("tableRow"),H(D)}function H(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),H):D===null||w(D)?(e.exit("tableRow"),n(D)):B(D)?S(e,H,"whitespace")(D):(e.enter("data"),U(D))}function U(D){return D===null||D===124||R(D)?(e.exit("data"),H(D)):(e.consume(D),D===92?j:U)}function j(D){return D===92||D===124?(e.consume(D),U):U(D)}}function Gl(e,n){let t=-1,r=!0,i=0,u=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,s,m,c,p=new Yt;for(;++t<e.length;){let f=e[t],g=f[1];f[0]==="enter"?g.type==="tableHead"?(a=!1,l!==0&&(Bo(p,n,l,s,m),m=void 0,l=0),s={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",s,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,u=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,m={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",m,n]])),i=g.type==="tableDelimiterRow"?2:m?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(u[1]!==0&&(o[0]=o[1],c=Gt(p,n,u,i,void 0,c),u=[0,0,0,0]),o[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(o[0]=o[1],c=Gt(p,n,u,i,void 0,c)),u=o,o=[u[1],t,0,0])):g.type==="tableHead"?(a=!0,l=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=t,u[1]!==0?(o[0]=o[1],c=Gt(p,n,u,i,t,c)):o[1]!==0&&(c=Gt(p,n,o,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=t)}for(l!==0&&Bo(p,n,l,s,m),p.consume(n.events),t=-1;++t<n.events.length;){let f=n.events[t];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=So(n.events,t))}return e}function Gt(e,n,t,r,i,u){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(u.end=Object.assign({},et(n.events,t[0])),e.add(t[0],0,[["exit",u,n]]));let l=et(n.events,t[1]);if(u={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(t[1],0,[["enter",u,n]]),t[2]!==0){let s=et(n.events,t[2]),m=et(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},m)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){let p=n.events[t[2]],f=n.events[t[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){let g=t[2]+1,y=t[3]-t[2]-1;e.add(g,y,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(u.end=Object.assign({},et(n.events,i)),e.add(i,0,[["exit",u,n]]),u=void 0),u}function Bo(e,n,t,r,i){let u=[],o=et(n.events,t);i&&(i.end=Object.assign({},o),u.push(["exit",i,n])),r.end=Object.assign({},o),u.push(["exit",r,n]),e.add(t+1,0,u)}function et(e,n){let t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}var Kl={name:"tasklistCheck",tokenize:Xl};function pr(){return{text:{91:Kl}}}function Xl(e,n,t){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),u)}function u(l){return R(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):t(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(l)}function a(l){return w(l)?n(l):B(l)?e.check({tokenize:Zl},n,t)(l):t(l)}}function Zl(e,n,t){return S(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Io(e){return zt([lr(),cr(),mr(e),fr(),pr()])}var Jl={};function Kt(e){let n=this,t=e||Jl,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Io(t)),u.push(or()),o.push(ur(t))}var u1=ft().use(Ke).use(Kt).freeze();var es=(e,n)=>({$implicit:e,parent:n});function ts(e,n){e&1&&Tr(0)}function ns(e,n){if(e&1&&At(0,ts,1,0,"ng-container",1),e&2){let t=n.$implicit,r=re(),i=Mr(4),u=Or(0);I("ngTemplateOutlet",u[t.type]??i)("ngTemplateOutletContext",jr(2,es,t,r.node()))}}function rs(e,n){if(e&1&&(se(0,"b"),ve(1),ce()),e&2){let t=n.$implicit;N(),Pr("Unknown node type: ",t.type)}}function is(e,n){if(e&1&&Q(0,"remark-node",0),e&2){let t=re();I("remarkNode",t.tree())}}function os(e,n){if(e&1&&(se(0,"pre")(1,"code"),ve(2),qr(3,"json"),ce()()),e&2){let t=re();N(2),$e(Vr(3,1,t.tree()))}}function us(e,n){if(e&1&&Q(0,"p",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function as(e,n){if(e&1&&Q(0,"h1",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function ls(e,n){if(e&1&&Q(0,"h2",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function ss(e,n){if(e&1&&Q(0,"h3",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function cs(e,n){if(e&1&&Q(0,"h4",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function ms(e,n){if(e&1&&Q(0,"h5",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function fs(e,n){if(e&1&&Q(0,"h6",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function ps(e,n){if(e&1&&Le(0,as,1,1,"h1",0)(1,ls,1,1,"h2",0)(2,ss,1,1,"h3",0)(3,cs,1,1,"h4",0)(4,ms,1,1,"h5",0)(5,fs,1,1,"h6",0),e&2){let t,r=n.$implicit;Me((t=r.depth)===1?0:t===2?1:t===3?2:t===4?3:t===5?4:t===6?5:-1)}}function hs(e,n){if(e&1&&Q(0,"blockquote",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function ds(e,n){if(e&1&&Q(0,"ul",0),e&2){let t=re().$implicit;I("remarkNode",t)}}function gs(e,n){if(e&1&&Q(0,"ol",10),e&2){let t=re().$implicit;I("remarkNode",t)("start",t.start)}}function Ds(e,n){if(e&1&&(Le(0,ds,1,1,"ul",0),Le(1,gs,1,2,"ol",10)),e&2){let t=n.$implicit;Me(t.ordered?-1:0),N(),Me(t.ordered?1:-1)}}function xs(e,n){if(e&1&&Q(0,"li",0),e&2){let t=n.$implicit,r=n.parent;I("remarkNode",!r.loose&&t.children.length===1&&t.children[0].children?t.children[0]:t)}}function ks(e,n){if(e&1&&Q(0,"a",11),e&2){let t=n.$implicit;I("href",t.url,yt)("title",t.title??"")("remarkNode",t)}}function Fs(e,n){if(e&1&&Q(0,"em",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function Cs(e,n){if(e&1&&Q(0,"strong",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function bs(e,n){if(e&1&&Q(0,"del",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function ys(e,n){if(e&1&&Q(0,"section",12),e&2){let t=n.$implicit;I("remarkNode",t)}}function Es(e,n){if(e&1&&Q(0,"th",0),e&2){let t=n.$implicit,r=n.$index,i=re(2).$implicit;tn("text-align",i.align==null?null:i.align[r]),I("remarkNode",t)}}function ws(e,n){e&1&&(se(0,"tr"),ut(1,Es,1,3,"th",13,ot),ce()),e&2&&(N(),at(n.children))}function As(e,n){if(e&1&&Q(0,"td",0),e&2){let t=n.$implicit,r=n.$index,i=re(2).$implicit;tn("text-align",i.align==null?null:i.align[r]),I("remarkNode",t)}}function Ts(e,n){if(e&1&&(se(0,"tr"),ut(1,As,1,3,"td",13,ot),ce()),e&2){let t=n.$implicit;N(),at(t.children)}}function _s(e,n){if(e&1&&(se(0,"table")(1,"thead"),Le(2,ws,3,0,"tr"),ce(),se(3,"tbody"),ut(4,Ts,3,0,"tr",null,ot),ce()()),e&2){let t,r=n.$implicit;N(2),Me((t=r.children[0])?2:-1,t),N(2),at(r.children.slice(1))}}function Ss(e,n){if(e&1&&Q(0,"tr",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function Bs(e,n){if(e&1&&Q(0,"td",0),e&2){let t=n.$implicit;I("remarkNode",t)}}function Is(e,n){if(e&1&&(se(0,"code"),ve(1),ce()),e&2){let t=n.$implicit;lt(nn("language-",t.lang||"plain")),N(),$e(t.value)}}function zs(e,n){if(e&1&&(se(0,"pre")(1,"code"),ve(2),ce()()),e&2){let t=n.$implicit;N(),lt(nn("language-",t.lang||"plain")),N(),$e(t.value)}}function Ls(e,n){if(e&1&&Q(0,"div",14),e&2){let t=n.$implicit;I("innerHTML",t.value,Er)}}function Ms(e,n){if(e&1&&(se(0,"span"),ve(1),ce()),e&2){let t=n.$implicit;N(),$e(t.value)}}function vs(e,n){if(e&1&&(se(0,"sup",15)(1,"a",16),ve(2),ce()()),e&2){let t=n.$implicit;N(),I("href","#"+t.identifier,yt),N(),$e(t.label)}}function Ps(e,n){if(e&1&&Q(0,"img",17),e&2){let t=n.$implicit;I("src",t.url,yt)("alt",t.alt??"")("title",t.title??"")}}function Rs(e,n){e&1&&Q(0,"hr")}function Ns(e,n){e&1&&Q(0,"br")}var Ft=(()=>{class e{constructor(){this.template=ze(wr),this.nodeType=We.required({alias:"remarkTemplate"})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=wt({type:e,selectors:[["","remarkTemplate",""]],inputs:{nodeType:[1,"remarkTemplate","nodeType"]}})}}return e})(),hr=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Fr({token:e,factory:e.\u0275fac})}}return e})(),Os=(()=>{class e{constructor(){this.templateService=ze(hr),this.node=We.required({alias:"remarkNode"}),this.children=Tt(()=>this.node().children)}ngOnInit(){}ngOnChanges(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=it({type:e,selectors:[["remark-node"],["","remarkNode",""]],inputs:{node:[1,"remarkNode","node"]},features:[br],decls:5,vars:1,consts:[["defaultTpl",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&(Rr(0),ut(1,ns,1,5,"ng-container",null,ot),At(3,rs,2,1,"ng-template",null,0,Qr)),r&2&&(Nr(i.templateService.templates()),N(),at(i.children()))},dependencies:[Wr],encapsulation:2,changeDetection:0})}}return e})(),E1=(()=>{class e{constructor(t){this.remarkTemplatesService=t,this.markdown=We.required(),this.processor=We(),this.debug=We(!1),this.customTemplateQuery=$r(Ft),this.templateQuery=Ur(Ft),this.tree=Tt(()=>{let r=this.processor()??ft().use(Ke),i=r.parse(this.markdown());return r.runSync(i)}),t.templates=Tt(()=>{let r={};for(let i of this.templateQuery())r[i.nodeType()]=i.template;for(let i of this.customTemplateQuery())r[i.nodeType()]=i.template;return r})}static{this.\u0275fac=function(r){return new(r||e)(Ar(hr))}}static{this.\u0275cmp=it({type:e,selectors:[["remark"]],contentQueries:function(r,i,u){r&1&&zr(u,i.customTemplateQuery,Ft,4),r&2&&en()},viewQuery:function(r,i){r&1&&Lr(i.templateQuery,Ft,5),r&2&&en()},inputs:{markdown:[1,"markdown"],processor:[1,"processor"],debug:[1,"debug"]},features:[Hr([hr])],decls:23,vars:23,consts:[[3,"remarkNode"],[3,"remarkNode",4,"remarkTemplate"],[3,"remarkTemplate"],[3,"href","title","remarkNode",4,"remarkTemplate"],["class","footnotes",3,"remarkNode",4,"remarkTemplate"],[4,"remarkTemplate"],[3,"class",4,"remarkTemplate"],[3,"innerHTML",4,"remarkTemplate"],["class","footnote-ref",4,"remarkTemplate"],[3,"src","alt","title",4,"remarkTemplate"],[3,"remarkNode","start"],[3,"href","title","remarkNode"],[1,"footnotes",3,"remarkNode"],[3,"remarkNode","text-align"],[3,"innerHTML"],[1,"footnote-ref"],[3,"href"],[3,"src","alt","title"]],template:function(r,i){r&1&&(Le(0,is,1,1,"remark-node",0),Le(1,os,4,3,"pre"),At(2,us,1,1,"p",1)(3,ps,6,1,"ng-template",2)(4,hs,1,1,"blockquote",1)(5,Ds,2,2,"ng-template",2)(6,xs,1,1,"li",1)(7,ks,1,3,"a",3)(8,Fs,1,1,"em",1)(9,Cs,1,1,"strong",1)(10,bs,1,1,"del",1)(11,ys,1,1,"section",4)(12,_s,6,1,"table",5)(13,Ss,1,1,"tr",1)(14,Bs,1,1,"td",1)(15,Is,2,4,"code",6)(16,zs,3,4,"pre",5)(17,Ls,1,1,"div",7)(18,Ms,2,1,"span",5)(19,vs,3,2,"sup",8)(20,Ps,1,3,"img",9)(21,Rs,1,0,"hr",5)(22,Ns,1,0,"br",5)),r&2&&(Me(i.tree()?0:-1),N(),Me(i.debug()?1:-1),N(),I("remarkTemplate","paragraph"),N(),I("remarkTemplate","heading"),N(),I("remarkTemplate","blockquote"),N(),I("remarkTemplate","list"),N(),I("remarkTemplate","listItem"),N(),I("remarkTemplate","link"),N(),I("remarkTemplate","emphasis"),N(),I("remarkTemplate","strong"),N(),I("remarkTemplate","delete"),N(),I("remarkTemplate","footnotes"),N(),I("remarkTemplate","table"),N(),I("remarkTemplate","tableRow"),N(),I("remarkTemplate","tableCell"),N(),I("remarkTemplate","inlineCode"),N(),I("remarkTemplate","code"),N(),I("remarkTemplate","html"),N(),I("remarkTemplate","text"),N(),I("remarkTemplate","footnoteReference"),N(),I("remarkTemplate","image"),N(),I("remarkTemplate","thematicBreak"),N(),I("remarkTemplate","break"))},dependencies:[Os,Ft,Yr],encapsulation:2,changeDetection:0})}}return e})();export{Ks as a,Xs as b,uc as c,u1 as d,Ft as e,Os as f,E1 as g};