@fnndsc/argus 0.49.0 → 0.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Settings-bQo_Uhzb.js → Settings-D8x0YjvS.js} +1 -1
- package/dist/assets/{Texture-BujGXFjY.js → Texture-CK20OQnL.js} +1 -1
- package/dist/assets/{addVolumesToViewports-lnwICSVa.js → addVolumesToViewports-fPmPOfGO.js} +1 -1
- package/dist/assets/{asciidoc-BDxEHPls.js → asciidoc-CGtN2l3a.js} +1 -1
- package/dist/assets/{cornerstoneEngine-C6E2FBPw.js → cornerstoneEngine-DDdBaE6m.js} +2 -2
- package/dist/assets/{documentEngines-BFRE9kxy.js → documentEngines-D3GYh2kY.js} +1 -1
- package/dist/assets/{field-D054s_Yd.js → field-BQZnfTSA.js} +1 -1
- package/dist/assets/{index-CD_iMftv.js → index-BKFXqCRC.js} +59 -59
- package/dist/assets/{index-CVfYhfUs.js → index-BLMIEiga.js} +1 -1
- package/dist/assets/{index-wHAASEDd.js → index-BSo1Dd1Z.js} +1 -1
- package/dist/assets/{index-CSu2upM0.js → index-CJIx63h3.js} +1 -1
- package/dist/assets/{index-DlZ9lXp8.js → index-Ceix7Gik.js} +1 -1
- package/dist/assets/{index-B3Zv_spC.js → index-Cr-62kat.js} +1 -1
- package/dist/assets/{index-BhYTEuA8.js → index-Cwz73PB7.js} +1 -1
- package/dist/assets/{index-D3TCoYz4.css → index-CywLvK7B.css} +1 -1
- package/dist/assets/{index-IpdHrEB7.js → index-D0GSkGWj.js} +1 -1
- package/dist/assets/{index-C42xvwZJ.js → index-DKMh-q29.js} +1 -1
- package/dist/assets/{index-3wLYaZJC.js → index-Db9z1L78.js} +1 -1
- package/dist/assets/{index-CpvURoYW.js → index-DeGuhg0r.js} +1 -1
- package/dist/assets/{index-CBTMj6gs.js → index-NiyDE9lH.js} +1 -1
- package/dist/assets/{index-DwuacFIm.js → index-SZTH_-qm.js} +1 -1
- package/dist/assets/{index-DXnaTMDl.js → index-w3PP7X0p.js} +1 -1
- package/dist/assets/{niivueEngine-Dm-6EbPG.js → niivueEngine-D-uIPpFn.js} +2 -2
- package/dist/assets/{slabScene-9ah4Xg8h.js → slabScene-PrhPPnHj.js} +1 -1
- package/dist/assets/{syntax-BWBIQpR3.js → syntax-D-JNcq73.js} +3 -3
- package/dist/build.json +1 -1
- package/dist/index.html +2 -2
- package/dist/notes.json +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as Pr,a3 as le,N as z,a4 as wr,a5 as bt,U as ie,a6 as A,a7 as kt,W as c,Y as Qt,Z as je,_ as yr,$ as oe,a0 as xr,X as ee,s as j,a8 as Xr,a9 as vr,aa as jr,E as Pt,a as E,P as Cr,O as Tr,ab as Vr,e as N,ac as qr,k as Ar,ad as Er,v as Lr,ae as zr,af as Ie,ag as Rr}from"./syntax-BWBIQpR3.js";import{C as _r}from"./index-DwuacFIm.js";import{L as wt,E as C,C as Yr,a as Br}from"./index-IpdHrEB7.js";import{typescriptLanguage as Ir,jsxLanguage as Zr,tsxLanguage as Mr,javascriptLanguage as Ce,javascript as Nr}from"./index-CpvURoYW.js";import"./index-CD_iMftv.js";class te{static create(t,r,a,n,s){let l=n+(n<<8)+t+(r<<4)|0;return new te(t,r,a,l,s,[],[])}constructor(t,r,a,n,s,l,i){this.type=t,this.value=r,this.from=a,this.hash=n,this.end=s,this.children=l,this.positions=i,this.hashProp=[[z.contextHash,n]]}addChild(t,r){t.prop(z.contextHash)!=this.hash&&(t=new A(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(r)}toTree(t,r=this.end){let a=this.children.length-1;return a>=0&&(r=Math.max(r,this.positions[a]+this.children[a].length+this.from)),new A(t.types[this.type],this.children,this.positions,r-this.from).balance({makeTree:(n,s,l)=>new A(le.none,n,s,l,this.hashProp)})}}var h;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(h||(h={}));class Wr{constructor(t,r){this.start=t,this.content=r,this.marks=[],this.parsers=[]}}class Gr{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return Z(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,r=0,a=0){for(let n=r;n<t;n++)a+=this.text.charCodeAt(n)==9?4-a%4:1;return a}findColumn(t){let r=0;for(let a=0;r<this.text.length&&a<t;r++)a+=this.text.charCodeAt(r)==9?4-a%4:1;return r}scrub(){if(!this.baseIndent)return this.text;let t="";for(let r=0;r<this.basePos;r++)t+=" ";return t+this.text.slice(this.basePos)}}function Ze(e,t,r){if(r.pos==r.text.length||e!=t.block&&r.indent>=t.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let a=(e.type==h.OrderedList?qe:Ve)(r,t,!1);return a>0&&(e.type!=h.BulletList||Te(r,t,!1)<0)&&r.text.charCodeAt(r.pos+a-1)==e.value}const yt={[h.Blockquote](e,t,r){return r.next!=62?!1:(r.markers.push($(h.QuoteMark,t.lineStart+r.pos,t.lineStart+r.pos+1)),r.moveBase(r.pos+(x(r.text.charCodeAt(r.pos+1))?2:1)),e.end=t.lineStart+r.text.length,!0)},[h.ListItem](e,t,r){return r.indent<r.baseIndent+e.value&&r.next>-1?!1:(r.moveBaseColumn(r.baseIndent+e.value),!0)},[h.OrderedList]:Ze,[h.BulletList]:Ze,[h.Document](){return!0}};function x(e){return e==32||e==9||e==10||e==13}function Z(e,t=0){for(;t<e.length&&x(e.charCodeAt(t));)t++;return t}function Me(e,t,r){for(;t>r&&x(e.charCodeAt(t-1));)t--;return t}function xt(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let r=t;r<e.text.length;r++)if(e.text.charCodeAt(r)==96)return-1}return t}function Xt(e){return e.next!=62?-1:e.text.charCodeAt(e.pos+1)==32?2:1}function Te(e,t,r){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let a=1;for(let n=e.pos+1;n<e.text.length;n++){let s=e.text.charCodeAt(n);if(s==e.next)a++;else if(!x(s))return-1}return r&&e.next==45&&Ct(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(At.SetextHeading)>-1||a<3?-1:1}function vt(e,t){for(let r=e.stack.length-1;r>=0;r--)if(e.stack[r].type==t)return!0;return!1}function Ve(e,t,r){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||x(e.text.charCodeAt(e.pos+1)))&&(!r||vt(t,h.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function qe(e,t,r){let a=e.pos,n=e.next;for(;n>=48&&n<=57;){a++;if(a==e.text.length)return-1;n=e.text.charCodeAt(a)}return a==e.pos||a>e.pos+9||n!=46&&n!=41||a<e.text.length-1&&!x(e.text.charCodeAt(a+1))||r&&!vt(t,h.OrderedList)&&(e.skipSpace(a+1)==e.text.length||a>e.pos+1||e.next!=49)?-1:a+1-e.pos}function jt(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&e.text.charCodeAt(t)!=32)return-1;let r=t-e.pos;return r>6?-1:r}function Ct(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let r=t;for(;t<e.text.length&&x(e.text.charCodeAt(t));)t++;return t==e.text.length?r:-1}const Qe=/^[ \t]*$/,Tt=/-->/,Vt=/\?>/,Pe=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Tt],[/^\s*<\?/,Vt],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,Qe],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,Qe]];function qt(e,t,r){if(e.next!=60)return-1;let a=e.text.slice(e.pos);for(let n=0,s=Pe.length-(r?1:0);n<s;n++)if(Pe[n][0].test(a))return n;return-1}function Ne(e,t){let r=e.countIndent(t,e.pos,e.indent),a=e.skipSpace(t),n=e.countIndent(a,t,r);return n>=r+5||a==e.text.length?r+1:n}function v(e,t,r){let a=e.length-1;a>=0&&e[a].to==t&&e[a].type==h.CodeText?e[a].to=r:e.push($(h.CodeText,t,r))}const F={LinkReference:void 0,IndentedCode(e,t){let r=t.baseIndent+4;if(t.indent<r)return!1;let a=t.findColumn(r),n=e.lineStart+a,s=e.lineStart+t.text.length,l=[],i=[];for(v(l,n,s);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){v(i,e.lineStart-1,e.lineStart);for(let o of t.markers)i.push(o)}else{if(t.indent<r)break;{if(i.length){for(let O of i)O.type==h.CodeText?v(l,O.from,O.to):l.push(O);i=[]}v(l,e.lineStart-1,e.lineStart);for(let O of t.markers)l.push(O);s=e.lineStart+t.text.length;let o=e.lineStart+t.findColumn(t.baseIndent+4);o<s&&v(l,o,s)}}return i.length&&(i=i.filter(o=>o.type!=h.CodeText),i.length&&(t.markers=i.concat(t.markers))),e.addNode(e.buffer.writeElements(l,-n).finish(h.CodeBlock,s-n),n),!0},FencedCode(e,t){let r=xt(t);if(r<0)return!1;let a=e.lineStart+t.pos,n=t.next,s=r-t.pos,l=t.skipSpace(r),i=Me(t.text,t.text.length,l),o=[$(h.CodeMark,a,a+s)];l<i&&o.push($(h.CodeInfo,e.lineStart+l,e.lineStart+i));for(let O=!0,u=!0,d=!1;e.nextLine()&&t.depth>=e.stack.length;O=!1){let f=t.pos;if(t.indent-t.baseIndent<4)for(;f<t.text.length&&t.text.charCodeAt(f)==n;)f++;if(f-t.pos>=s&&t.skipSpace(f)==t.text.length){for(let m of t.markers)o.push(m);u&&d&&v(o,e.lineStart-1,e.lineStart),o.push($(h.CodeMark,e.lineStart+t.pos,e.lineStart+f)),e.nextLine();break}else{d=!0,O||(v(o,e.lineStart-1,e.lineStart),u=!1);for(let g of t.markers)o.push(g);let m=e.lineStart+t.basePos,S=e.lineStart+t.text.length;m<S&&(v(o,m,S),u=!1)}}return e.addNode(e.buffer.writeElements(o,-a).finish(h.FencedCode,e.prevLineEnd()-a),a),!0},Blockquote(e,t){let r=Xt(t);return r<0?!1:(e.startContext(h.Blockquote,t.pos),e.addNode(h.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+r),null)},HorizontalRule(e,t){if(Te(t,e,!1)<0)return!1;let r=e.lineStart+t.pos;return e.nextLine(),e.addNode(h.HorizontalRule,r),!0},BulletList(e,t){let r=Ve(t,e,!1);if(r<0)return!1;e.block.type!=h.BulletList&&e.startContext(h.BulletList,t.basePos,t.next);let a=Ne(t,t.pos+1);return e.startContext(h.ListItem,t.basePos,a-t.baseIndent),e.addNode(h.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+r),t.moveBaseColumn(a),null},OrderedList(e,t){let r=qe(t,e,!1);if(r<0)return!1;e.block.type!=h.OrderedList&&e.startContext(h.OrderedList,t.basePos,t.text.charCodeAt(t.pos+r-1));let a=Ne(t,t.pos+r);return e.startContext(h.ListItem,t.basePos,a-t.baseIndent),e.addNode(h.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+r),t.moveBaseColumn(a),null},ATXHeading(e,t){let r=jt(t);if(r<0)return!1;let a=t.pos,n=e.lineStart+a,s=Me(t.text,t.text.length,a),l=s;for(;l>a&&t.text.charCodeAt(l-1)==t.next;)l--;(l==s||l==a||!x(t.text.charCodeAt(l-1)))&&(l=t.text.length);let i=e.buffer.write(h.HeaderMark,0,r).writeElements(e.parser.parseInline(t.text.slice(a+r+1,l),n+r+1),-n);l<t.text.length&&i.write(h.HeaderMark,l-a,s-a);let o=i.finish(h.ATXHeading1-1+r,t.text.length-a);return e.nextLine(),e.addNode(o,n),!0},HTMLBlock(e,t){let r=qt(t,e,!1);if(r<0)return!1;let a=e.lineStart+t.pos,n=Pe[r][1],s=[],l=n!=Qe;for(;!n.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){l=!1;break}for(let O of t.markers)s.push(O)}l&&e.nextLine();let i=n==Tt?h.CommentBlock:n==Vt?h.ProcessingInstructionBlock:h.HTMLBlock,o=e.prevLineEnd();return e.addNode(e.buffer.writeElements(s,-a).finish(i,o-a),a),!0},SetextHeading:void 0};class Dr{constructor(t){this.stage=0,this.elts=[],this.pos=0,this.start=t.start,this.advance(t.content)}nextLine(t,r,a){if(this.stage==-1)return!1;let n=a.content+`
|
|
1
|
+
import{a2 as Pr,a3 as le,N as z,a4 as wr,a5 as bt,U as ie,a6 as A,a7 as kt,W as c,Y as Qt,Z as je,_ as yr,$ as oe,a0 as xr,X as ee,s as j,a8 as Xr,a9 as vr,aa as jr,E as Pt,a as E,P as Cr,O as Tr,ab as Vr,e as N,ac as qr,k as Ar,ad as Er,v as Lr,ae as zr,af as Ie,ag as Rr}from"./syntax-D-JNcq73.js";import{C as _r}from"./index-SZTH_-qm.js";import{L as wt,E as C,C as Yr,a as Br}from"./index-D0GSkGWj.js";import{typescriptLanguage as Ir,jsxLanguage as Zr,tsxLanguage as Mr,javascriptLanguage as Ce,javascript as Nr}from"./index-DeGuhg0r.js";import"./index-BKFXqCRC.js";class te{static create(t,r,a,n,s){let l=n+(n<<8)+t+(r<<4)|0;return new te(t,r,a,l,s,[],[])}constructor(t,r,a,n,s,l,i){this.type=t,this.value=r,this.from=a,this.hash=n,this.end=s,this.children=l,this.positions=i,this.hashProp=[[z.contextHash,n]]}addChild(t,r){t.prop(z.contextHash)!=this.hash&&(t=new A(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(r)}toTree(t,r=this.end){let a=this.children.length-1;return a>=0&&(r=Math.max(r,this.positions[a]+this.children[a].length+this.from)),new A(t.types[this.type],this.children,this.positions,r-this.from).balance({makeTree:(n,s,l)=>new A(le.none,n,s,l,this.hashProp)})}}var h;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(h||(h={}));class Wr{constructor(t,r){this.start=t,this.content=r,this.marks=[],this.parsers=[]}}class Gr{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return Z(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,r=0,a=0){for(let n=r;n<t;n++)a+=this.text.charCodeAt(n)==9?4-a%4:1;return a}findColumn(t){let r=0;for(let a=0;r<this.text.length&&a<t;r++)a+=this.text.charCodeAt(r)==9?4-a%4:1;return r}scrub(){if(!this.baseIndent)return this.text;let t="";for(let r=0;r<this.basePos;r++)t+=" ";return t+this.text.slice(this.basePos)}}function Ze(e,t,r){if(r.pos==r.text.length||e!=t.block&&r.indent>=t.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let a=(e.type==h.OrderedList?qe:Ve)(r,t,!1);return a>0&&(e.type!=h.BulletList||Te(r,t,!1)<0)&&r.text.charCodeAt(r.pos+a-1)==e.value}const yt={[h.Blockquote](e,t,r){return r.next!=62?!1:(r.markers.push($(h.QuoteMark,t.lineStart+r.pos,t.lineStart+r.pos+1)),r.moveBase(r.pos+(x(r.text.charCodeAt(r.pos+1))?2:1)),e.end=t.lineStart+r.text.length,!0)},[h.ListItem](e,t,r){return r.indent<r.baseIndent+e.value&&r.next>-1?!1:(r.moveBaseColumn(r.baseIndent+e.value),!0)},[h.OrderedList]:Ze,[h.BulletList]:Ze,[h.Document](){return!0}};function x(e){return e==32||e==9||e==10||e==13}function Z(e,t=0){for(;t<e.length&&x(e.charCodeAt(t));)t++;return t}function Me(e,t,r){for(;t>r&&x(e.charCodeAt(t-1));)t--;return t}function xt(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let r=t;r<e.text.length;r++)if(e.text.charCodeAt(r)==96)return-1}return t}function Xt(e){return e.next!=62?-1:e.text.charCodeAt(e.pos+1)==32?2:1}function Te(e,t,r){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let a=1;for(let n=e.pos+1;n<e.text.length;n++){let s=e.text.charCodeAt(n);if(s==e.next)a++;else if(!x(s))return-1}return r&&e.next==45&&Ct(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(At.SetextHeading)>-1||a<3?-1:1}function vt(e,t){for(let r=e.stack.length-1;r>=0;r--)if(e.stack[r].type==t)return!0;return!1}function Ve(e,t,r){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||x(e.text.charCodeAt(e.pos+1)))&&(!r||vt(t,h.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function qe(e,t,r){let a=e.pos,n=e.next;for(;n>=48&&n<=57;){a++;if(a==e.text.length)return-1;n=e.text.charCodeAt(a)}return a==e.pos||a>e.pos+9||n!=46&&n!=41||a<e.text.length-1&&!x(e.text.charCodeAt(a+1))||r&&!vt(t,h.OrderedList)&&(e.skipSpace(a+1)==e.text.length||a>e.pos+1||e.next!=49)?-1:a+1-e.pos}function jt(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&e.text.charCodeAt(t)!=32)return-1;let r=t-e.pos;return r>6?-1:r}function Ct(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let r=t;for(;t<e.text.length&&x(e.text.charCodeAt(t));)t++;return t==e.text.length?r:-1}const Qe=/^[ \t]*$/,Tt=/-->/,Vt=/\?>/,Pe=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Tt],[/^\s*<\?/,Vt],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,Qe],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,Qe]];function qt(e,t,r){if(e.next!=60)return-1;let a=e.text.slice(e.pos);for(let n=0,s=Pe.length-(r?1:0);n<s;n++)if(Pe[n][0].test(a))return n;return-1}function Ne(e,t){let r=e.countIndent(t,e.pos,e.indent),a=e.skipSpace(t),n=e.countIndent(a,t,r);return n>=r+5||a==e.text.length?r+1:n}function v(e,t,r){let a=e.length-1;a>=0&&e[a].to==t&&e[a].type==h.CodeText?e[a].to=r:e.push($(h.CodeText,t,r))}const F={LinkReference:void 0,IndentedCode(e,t){let r=t.baseIndent+4;if(t.indent<r)return!1;let a=t.findColumn(r),n=e.lineStart+a,s=e.lineStart+t.text.length,l=[],i=[];for(v(l,n,s);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){v(i,e.lineStart-1,e.lineStart);for(let o of t.markers)i.push(o)}else{if(t.indent<r)break;{if(i.length){for(let O of i)O.type==h.CodeText?v(l,O.from,O.to):l.push(O);i=[]}v(l,e.lineStart-1,e.lineStart);for(let O of t.markers)l.push(O);s=e.lineStart+t.text.length;let o=e.lineStart+t.findColumn(t.baseIndent+4);o<s&&v(l,o,s)}}return i.length&&(i=i.filter(o=>o.type!=h.CodeText),i.length&&(t.markers=i.concat(t.markers))),e.addNode(e.buffer.writeElements(l,-n).finish(h.CodeBlock,s-n),n),!0},FencedCode(e,t){let r=xt(t);if(r<0)return!1;let a=e.lineStart+t.pos,n=t.next,s=r-t.pos,l=t.skipSpace(r),i=Me(t.text,t.text.length,l),o=[$(h.CodeMark,a,a+s)];l<i&&o.push($(h.CodeInfo,e.lineStart+l,e.lineStart+i));for(let O=!0,u=!0,d=!1;e.nextLine()&&t.depth>=e.stack.length;O=!1){let f=t.pos;if(t.indent-t.baseIndent<4)for(;f<t.text.length&&t.text.charCodeAt(f)==n;)f++;if(f-t.pos>=s&&t.skipSpace(f)==t.text.length){for(let m of t.markers)o.push(m);u&&d&&v(o,e.lineStart-1,e.lineStart),o.push($(h.CodeMark,e.lineStart+t.pos,e.lineStart+f)),e.nextLine();break}else{d=!0,O||(v(o,e.lineStart-1,e.lineStart),u=!1);for(let g of t.markers)o.push(g);let m=e.lineStart+t.basePos,S=e.lineStart+t.text.length;m<S&&(v(o,m,S),u=!1)}}return e.addNode(e.buffer.writeElements(o,-a).finish(h.FencedCode,e.prevLineEnd()-a),a),!0},Blockquote(e,t){let r=Xt(t);return r<0?!1:(e.startContext(h.Blockquote,t.pos),e.addNode(h.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+r),null)},HorizontalRule(e,t){if(Te(t,e,!1)<0)return!1;let r=e.lineStart+t.pos;return e.nextLine(),e.addNode(h.HorizontalRule,r),!0},BulletList(e,t){let r=Ve(t,e,!1);if(r<0)return!1;e.block.type!=h.BulletList&&e.startContext(h.BulletList,t.basePos,t.next);let a=Ne(t,t.pos+1);return e.startContext(h.ListItem,t.basePos,a-t.baseIndent),e.addNode(h.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+r),t.moveBaseColumn(a),null},OrderedList(e,t){let r=qe(t,e,!1);if(r<0)return!1;e.block.type!=h.OrderedList&&e.startContext(h.OrderedList,t.basePos,t.text.charCodeAt(t.pos+r-1));let a=Ne(t,t.pos+r);return e.startContext(h.ListItem,t.basePos,a-t.baseIndent),e.addNode(h.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+r),t.moveBaseColumn(a),null},ATXHeading(e,t){let r=jt(t);if(r<0)return!1;let a=t.pos,n=e.lineStart+a,s=Me(t.text,t.text.length,a),l=s;for(;l>a&&t.text.charCodeAt(l-1)==t.next;)l--;(l==s||l==a||!x(t.text.charCodeAt(l-1)))&&(l=t.text.length);let i=e.buffer.write(h.HeaderMark,0,r).writeElements(e.parser.parseInline(t.text.slice(a+r+1,l),n+r+1),-n);l<t.text.length&&i.write(h.HeaderMark,l-a,s-a);let o=i.finish(h.ATXHeading1-1+r,t.text.length-a);return e.nextLine(),e.addNode(o,n),!0},HTMLBlock(e,t){let r=qt(t,e,!1);if(r<0)return!1;let a=e.lineStart+t.pos,n=Pe[r][1],s=[],l=n!=Qe;for(;!n.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){l=!1;break}for(let O of t.markers)s.push(O)}l&&e.nextLine();let i=n==Tt?h.CommentBlock:n==Vt?h.ProcessingInstructionBlock:h.HTMLBlock,o=e.prevLineEnd();return e.addNode(e.buffer.writeElements(s,-a).finish(i,o-a),a),!0},SetextHeading:void 0};class Dr{constructor(t){this.stage=0,this.elts=[],this.pos=0,this.start=t.start,this.advance(t.content)}nextLine(t,r,a){if(this.stage==-1)return!1;let n=a.content+`
|
|
2
2
|
`+r.scrub(),s=this.advance(n);return s>-1&&s<n.length?this.complete(t,a,s):!1}finish(t,r){return(this.stage==2||this.stage==3)&&Z(r.content,this.pos)==r.content.length?this.complete(t,r,r.content.length):!1}complete(t,r,a){return t.addLeafElement(r,$(h.LinkReference,this.start,this.start+a,this.elts)),!0}nextStage(t){return t?(this.pos=t.to-this.start,this.elts.push(t),this.stage++,!0):(t===!1&&(this.stage=-1),!1)}advance(t){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(Zt(t,this.pos,this.start,!0)))return-1;if(t.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push($(h.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(Bt(t,Z(t,this.pos),this.start)))return-1}else if(this.stage==2){let r=Z(t,this.pos),a=0;if(r>this.pos){let n=It(t,r,this.start);if(n){let s=ue(t,n.to-this.start);s>0&&(this.nextStage(n),a=s)}}return a||(a=ue(t,this.pos)),a>0&&a<t.length?a:-1}else return ue(t,this.pos)}}}function ue(e,t){for(;t<e.length;t++){let r=e.charCodeAt(t);if(r==10)break;if(!x(r))return-1}return t}class Ur{nextLine(t,r,a){let n=r.depth<t.stack.length?-1:Ct(r),s=r.next;if(n<0)return!1;let l=$(h.HeaderMark,t.lineStart+r.pos,t.lineStart+n);return t.nextLine(),t.addLeafElement(a,$(s==61?h.SetextHeading1:h.SetextHeading2,a.start,t.prevLineEnd(),[...t.parser.parseInline(a.content,a.start),l])),!0}finish(){return!1}}const At={LinkReference(e,t){return t.content.charCodeAt(0)==91?new Dr(t):null},SetextHeading(){return new Ur}},Fr=[(e,t)=>jt(t)>=0,(e,t)=>xt(t)>=0,(e,t)=>Xt(t)>=0,(e,t)=>Ve(t,e,!0)>=0,(e,t)=>qe(t,e,!0)>=0,(e,t)=>Te(t,e,!0)>=0,(e,t)=>qt(t,e,!0)>=0],Hr={text:"",end:0};class Kr{constructor(t,r,a,n){this.parser=t,this.input=r,this.ranges=n,this.line=new Gr,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=n[n.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=n[0].from,this.block=te.create(h.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=a.length?new ta(a,r):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:t}=this;for(;;){for(let a=0;;){let n=t.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;a<t.markers.length&&(!n||t.markers[a].from<n.end);){let s=t.markers[a++];this.addNode(s.type,s.from,s.to)}if(!n)break;this.finishContext()}if(t.pos<t.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(t.basePos))return null;e:for(;;){for(let a of this.parser.blockParsers)if(a){let n=a(this,t);if(n!=!1){if(n==!0)return null;t.forward();continue e}}break}if(t.pos==t.text.length)return this.nextLine()?null:this.finish();let r=new Wr(this.lineStart+t.pos,t.text.slice(t.pos));for(let a of this.parser.leafBlockParsers)if(a){let n=a(this,r);n&&r.parsers.push(n)}e:for(;this.nextLine()&&t.pos!=t.text.length;){if(t.indent<t.baseIndent+4){for(let a of this.parser.endLeafBlock)if(a(this,t,r))break e}for(let a of r.parsers)if(a.nextLine(this,t,r))return null;r.content+=`
|
|
3
3
|
`+t.scrub();for(let a of t.markers)r.marks.push(a)}return this.finishLeaf(r),null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}reuseFragment(t){if(!this.fragments.moveTo(this.absoluteLineStart+t,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let r=this.fragments.takeNodes(this);return r?(this.absoluteLineStart+=r,this.lineStart=Mt(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(t=this.depth-1){return this.parser.nodeSet.types[this.stack[t].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(t){let r=Hr;if(r.end=t,t>=this.to)r.text="";else if(r.text=this.lineChunkAt(t),r.end+=r.text.length,this.ranges.length>1){let a=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<r.end;){n++;let s=this.ranges[n].from,l=this.lineChunkAt(s);r.end=s+l.length,r.text=r.text.slice(0,this.ranges[n-1].to-a)+l,a=r.end-r.text.length}}return r}readLine(){let{line:t}=this,{text:r,end:a}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=a,t.reset(r);t.depth<this.stack.length;t.depth++){let n=this.stack[t.depth],s=this.parser.skipContextMarkup[n.type];if(!s)throw new Error("Unhandled block context "+h[n.type]);let l=this.line.markers.length;if(!s(n,this,t)){this.line.markers.length>l&&(n.end=this.line.markers[this.line.markers.length-1].to),t.forward();break}t.forward()}}lineChunkAt(t){let r=this.input.chunk(t),a;if(this.input.lineChunks)a=r==`
|
|
4
4
|
`?"":r;else{let n=r.indexOf(`
|