@dooc-dev/dooc 0.0.4 → 0.0.6
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/cli.js +157 -58
- package/dist/code-worker.global.js +152 -0
- package/dist/code.global.js +101 -101
- package/dist/compiler/asset-references.d.ts +4 -0
- package/dist/compiler/asset-references.js +117 -0
- package/dist/compiler/bundle-urls.d.ts +1 -1
- package/dist/compiler/bundle-urls.js +17 -5
- package/dist/compiler/check.js +10 -5
- package/dist/compiler/code-languages.js +7 -2
- package/dist/compiler/compile.d.ts +5 -0
- package/dist/compiler/compile.js +117 -12
- package/dist/compiler/config.js +2 -1
- package/dist/compiler/dxf.d.ts +1 -0
- package/dist/compiler/dxf.js +81 -0
- package/dist/compiler/export.d.ts +4 -0
- package/dist/compiler/export.js +147 -0
- package/dist/compiler/figures.js +43 -10
- package/dist/compiler/files.js +82 -41
- package/dist/compiler/fonts.js +4 -1
- package/dist/compiler/icons.d.ts +1 -1
- package/dist/compiler/icons.js +11 -2
- package/dist/compiler/ignored-files.d.ts +5 -0
- package/dist/compiler/ignored-files.js +98 -0
- package/dist/compiler/locales.js +13 -8
- package/dist/compiler/ops.d.ts +6 -0
- package/dist/compiler/ops.js +99 -8
- package/dist/compiler/subformat-schema.d.ts +14 -0
- package/dist/compiler/subformat-schema.js +92 -0
- package/dist/compiler/subformats.d.ts +22 -0
- package/dist/compiler/subformats.js +339 -0
- package/dist/compiler/textfile.js +3 -0
- package/dist/compiler/theme-variants.js +5 -2
- package/dist/core/code-file.js +7 -5
- package/dist/core/code-grammars.d.ts +5 -0
- package/dist/core/code-grammars.js +34 -0
- package/dist/core/content-metadata.d.ts +16 -6
- package/dist/core/content-metadata.js +283 -17
- package/dist/core/content-types.d.ts +4 -2
- package/dist/core/escape-html.d.ts +1 -0
- package/dist/core/escape-html.js +1 -0
- package/dist/core/figure-frame.js +20 -2
- package/dist/core/file-embed.js +7 -3
- package/dist/core/files.d.ts +2 -1
- package/dist/core/files.js +6 -8
- package/dist/core/flow-base-css.generated.js +1 -1
- package/dist/core/html.d.ts +4 -1
- package/dist/core/html.js +11 -10
- package/dist/core/icons.d.ts +3 -0
- package/dist/core/icons.js +3 -0
- package/dist/core/json-tools.d.ts +1 -0
- package/dist/core/json-tools.js +12 -0
- package/dist/core/language.js +5 -2
- package/dist/core/markdown.js +3 -1
- package/dist/core/previewers.d.ts +8 -0
- package/dist/core/previewers.js +2 -0
- package/dist/core/routing.d.ts +5 -2
- package/dist/core/routing.js +17 -5
- package/dist/core/schema-fields.d.ts +13 -0
- package/dist/core/schema-fields.js +175 -0
- package/dist/core/schema-graph-mount.js +26 -3
- package/dist/core/schema-refs.d.ts +8 -0
- package/dist/core/schema-refs.js +82 -0
- package/dist/core/subformat-record.d.ts +3 -0
- package/dist/core/subformat-record.js +131 -0
- package/dist/core/subformats.d.ts +43 -0
- package/dist/core/subformats.js +81 -0
- package/dist/core/toc-ui.js +26 -24
- package/dist/edit.global.js +326 -118
- package/dist/flow.global.js +3 -3
- package/dist/graph/abnfDiagram-S7VZAUFO-ASBULSKE.js +1 -0
- package/dist/graph/architecture-WOLXFQ4H-V57EDXXY.js +1 -0
- package/dist/graph/architectureDiagram-YGSQEFNW-GIMP347N.js +36 -0
- package/dist/graph/blockDiagram-APKKGZFW-RDL2T4JW.js +140 -0
- package/dist/graph/bpmnIcons-APHXDYXF-TWOSQNUQ.js +1 -0
- package/dist/graph/c4Diagram-KJ2TOQU5-75LIUC4F.js +38 -0
- package/dist/graph/chunk-26TUJSYJ.js +1 -0
- package/dist/graph/chunk-3LU66YMI.js +1 -0
- package/dist/graph/chunk-3RNHDNP5.js +1 -0
- package/dist/graph/chunk-3Y2PDVDE.js +1 -0
- package/dist/graph/chunk-3YJHMOOA.js +3 -0
- package/dist/graph/chunk-4KILFWYV.js +339 -0
- package/dist/graph/chunk-4QDE4SUK.js +1 -0
- package/dist/graph/chunk-5OO6DATX.js +1 -0
- package/dist/graph/chunk-5UUEAHTN.js +1 -0
- package/dist/graph/chunk-6T55RVVR.js +1 -0
- package/dist/graph/chunk-ARAJTKOH.js +2 -0
- package/dist/graph/chunk-BBD5CEDC.js +72 -0
- package/dist/graph/chunk-BVXT562I.js +1 -0
- package/dist/graph/chunk-BZAMCJ6B.js +32 -0
- package/dist/graph/chunk-C6J4A356.js +15 -0
- package/dist/graph/chunk-EG5UVNOC.js +213 -0
- package/dist/graph/chunk-GF4TOPUK.js +1 -0
- package/dist/graph/chunk-GYT4IYBZ.js +1 -0
- package/dist/graph/chunk-HJG2HUYJ.js +88 -0
- package/dist/graph/chunk-HOPPTA6H.js +62 -0
- package/dist/graph/chunk-I3DMZIHV.js +1 -0
- package/dist/graph/chunk-IC23EEF6.js +1 -0
- package/dist/graph/chunk-ISO77HML.js +1 -0
- package/dist/graph/chunk-JD7ZBJD2.js +1 -0
- package/dist/graph/chunk-JRSH5GNS.js +1 -0
- package/dist/graph/chunk-JSHWCPFJ.js +1 -0
- package/dist/graph/chunk-K2KLZU7M.js +10 -0
- package/dist/graph/chunk-K4I76XBX.js +14 -0
- package/dist/graph/chunk-KT4VPQD5.js +135 -0
- package/dist/graph/chunk-KU6GTEMS.js +1 -0
- package/dist/graph/chunk-LT6LXKCR.js +136 -0
- package/dist/graph/chunk-MPR575IN.js +1 -0
- package/dist/graph/chunk-N3OHKGRZ.js +1 -0
- package/dist/graph/chunk-O656ZI37.js +1 -0
- package/dist/graph/chunk-OFZLK5G4.js +1 -0
- package/dist/graph/chunk-PDH25ALM.js +2 -0
- package/dist/graph/chunk-PW2RGZ3O.js +1 -0
- package/dist/graph/chunk-QCJUF4YA.js +1 -0
- package/dist/graph/chunk-QEEA3KYY.js +2 -0
- package/dist/graph/chunk-QYAXYFNI.js +1 -0
- package/dist/graph/chunk-QYTM6GY3.js +1 -0
- package/dist/graph/chunk-R63JUMUK.js +1 -0
- package/dist/graph/chunk-SCEY3ZPT.js +1 -0
- package/dist/graph/chunk-VM2H7G2R.js +1 -0
- package/dist/graph/chunk-XQS73SBQ.js +1 -0
- package/dist/graph/chunk-YCRLJT2S.js +1 -0
- package/dist/graph/chunk-Z4FIZ7CR.js +1 -0
- package/dist/graph/chunk-ZMCB7VP2.js +1 -0
- package/dist/graph/chunk-ZSZXN4BT.js +2 -0
- package/dist/graph/classDiagram-v2-L25IHNXF-JL7LVDZH.js +217 -0
- package/dist/graph/cose-bilkent-JH36ORCC-PNM3EYPB.js +1 -0
- package/dist/graph/cynefin-EF2NZ3EQ-PSXP3DXL.js +1 -0
- package/dist/graph/cynefinDiagram-L36ESFBY-QVY54CXO.js +62 -0
- package/dist/graph/dagre-SPEB5RXH-HPGQXBZJ.js +4 -0
- package/dist/graph/diagram-3B7GL73J-DWH5WS2P.js +200 -0
- package/dist/graph/diagram-DNEMPZML-TEGH2U5I.js +24 -0
- package/dist/graph/diagram-L3MUGCDN-X4MREUWR.js +41 -0
- package/dist/graph/diagram-LA4NIPWU-NXT746HG.js +24 -0
- package/dist/graph/diagram-MHCOC4E2-JGHXSAGS.js +3 -0
- package/dist/graph/diagram-XPFHEONP-ZHZPBLT4.js +30 -0
- package/dist/graph/ebnfDiagram-UZSYDL2S-SMF6KJ43.js +1 -0
- package/dist/graph/elk-XV6XMXQE-AZ4HLCWI.js +27 -0
- package/dist/graph/erDiagram-EYBAPDEH-B3JNJ357.js +99 -0
- package/dist/graph/eventmodeling-K75KTNOO-WG6DDYMC.js +1 -0
- package/dist/graph/flowDiagram-MALGAFMO-2R7EYAQI.js +1 -0
- package/dist/graph/ganttDiagram-23REXITY-YXBYWFOJ.js +292 -0
- package/dist/graph/gitGraph-VSP46ZUC-VBFWJBBT.js +1 -0
- package/dist/graph/gitGraphDiagram-STJD7YCW-4FZDCFGV.js +106 -0
- package/dist/graph/info-OHQRW6UA-ALVDUVYV.js +1 -0
- package/dist/graph/infoDiagram-KBXO4MBG-7EHX2GQG.js +2 -0
- package/dist/graph/ishikawaDiagram-M35NCXHK-FRZD2PWQ.js +70 -0
- package/dist/graph/journeyDiagram-OPLOXDXO-7Z66JCPR.js +139 -0
- package/dist/graph/kanban-definition-BZKZHSQY-NN5AIKTE.js +89 -0
- package/dist/graph/katex-DXDNVO6V.js +257 -0
- package/dist/graph/mindmap-definition-I2QAS2VK-HDPCABN2.js +98 -0
- package/dist/graph/packet-JDAUHWVQ-5MQIBWAH.js +1 -0
- package/dist/graph/pegDiagram-FD4XPPHP-H2BFNCKT.js +1 -0
- package/dist/graph/pie-XZMESJXO-T5VRKHVT.js +1 -0
- package/dist/graph/pieDiagram-J4AKIIQI-O3NJSVD3.js +39 -0
- package/dist/graph/quadrantDiagram-XTYBLID2-TMTZJI3P.js +7 -0
- package/dist/graph/radar-ABXABTNO-C6FXIBYW.js +1 -0
- package/dist/graph/railroad-I3PHUGI6-ZSO5JXB3.js +1 -0
- package/dist/graph/railroad-abnf-LNEFI6M7-CI4GQRHB.js +1 -0
- package/dist/graph/railroad-ebnf-DWYD2UWJ-MUENNCGK.js +1 -0
- package/dist/graph/railroad-peg-JR7BVNR7-N3X5GGIX.js +1 -0
- package/dist/graph/railroadDiagram-MRQ6NCDL-JHWS23UO.js +1 -0
- package/dist/graph/requirementDiagram-Y7LWUY3S-7DVLPO4B.js +84 -0
- package/dist/graph/sankeyDiagram-WGJFYUXA-Z5L4R5TR.js +40 -0
- package/dist/graph/schema-graph-global.js +639 -0
- package/dist/graph/sequenceDiagram-5NDRBG5M-RCTU25NT.js +169 -0
- package/dist/graph/sizeCapture-INFHLROL-RROY32P5.js +1 -0
- package/dist/graph/stateDiagram-v2-FJ4FJNEA-BXUSPWDK.js +291 -0
- package/dist/graph/swimlanes-UMQ2AFYF-LDD74Q2S.js +1 -0
- package/dist/graph/swimlanesDiagram-OMPLPG4O-ZYULLJSU.js +8 -0
- package/dist/graph/timeline-definition-SEUHKTQE-ZQSMIVAS.js +120 -0
- package/dist/graph/treeView-D4JQ5SDB-42S7U73N.js +1 -0
- package/dist/graph/treemap-SAJKECNS-RUBYQ7XF.js +1 -0
- package/dist/graph/usecaseDiagram-AFA6YXN4-57RDRYXF.js +370 -0
- package/dist/graph/vennDiagram-NNMJR3RB-5C3LVAV6.js +34 -0
- package/dist/graph/wardley-7MLQ67FV-NV5HXTTC.js +1 -0
- package/dist/graph/wardleyDiagram-S7YFUSEH-6D5BKXHM.js +78 -0
- package/dist/graph/xychartDiagram-GGNKY7IX-6ET3ZM67.js +7 -0
- package/dist/mcp.js +54 -12
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/transport.d.ts +22 -0
- package/dist/plugins/transport.js +1 -0
- package/dist/plugins.global.js +95 -0
- package/dist/subformats.global.js +21 -0
- package/dist/ui.global.js +80 -60
- package/dist/viewer/build-plugins.d.ts +7 -0
- package/dist/viewer/build-plugins.js +70 -0
- package/dist/viewer/build.d.ts +11 -0
- package/dist/viewer/build.js +52 -11
- package/dist/viewer/code-file.js +7 -2
- package/dist/viewer/editor-tools.d.ts +7 -7
- package/dist/viewer/editor-tools.js +36 -5
- package/dist/viewer/figure-preview.d.ts +4 -0
- package/dist/viewer/figure-preview.js +54 -0
- package/dist/viewer/font-picker.js +5 -1
- package/dist/viewer/git-diff.d.ts +3 -0
- package/dist/viewer/git-diff.js +47 -0
- package/dist/viewer/hmr.js +8 -4
- package/dist/viewer/i18n.js +7 -5
- package/dist/viewer/language-picker.d.ts +2 -2
- package/dist/viewer/language-picker.js +26 -9
- package/dist/viewer/lazy-preview.d.ts +2 -0
- package/dist/viewer/lazy-preview.js +43 -0
- package/dist/viewer/locales/eng.json +95 -10
- package/dist/viewer/locales/jpn.json +96 -11
- package/dist/viewer/locales/zho.json +96 -11
- package/dist/viewer/nav-focus.js +8 -1
- package/dist/viewer/nav-update.d.ts +2 -0
- package/dist/viewer/nav-update.js +117 -0
- package/dist/viewer/plugin-blocks.js +1 -1
- package/dist/viewer/plugin-style.d.ts +1 -0
- package/dist/viewer/plugin-style.js +82 -0
- package/dist/viewer/plugins.js +1 -1
- package/dist/viewer/resize.d.ts +0 -2
- package/dist/viewer/resize.js +2 -98
- package/dist/viewer/resource-library.d.ts +11 -9
- package/dist/viewer/resource-library.js +181 -31
- package/dist/viewer/search.d.ts +4 -2
- package/dist/viewer/search.js +252 -53
- package/dist/viewer/serve.d.ts +11 -5
- package/dist/viewer/serve.js +913 -295
- package/dist/viewer/site-icon.js +13 -6
- package/dist/viewer/site-title.js +15 -2
- package/dist/viewer/textfile.d.ts +5 -0
- package/dist/viewer/textfile.js +34 -2
- package/dist/viewer/theme-picker.d.ts +2 -0
- package/dist/viewer/theme-picker.js +24 -8
- package/dist/viewer/workspace.d.ts +2 -0
- package/dist/viewer/workspace.js +46 -1
- package/package.json +27 -10
- package/dist/compiler/bundle.d.ts +0 -2
- package/dist/compiler/bundle.js +0 -100
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function Y(a,t,s){if(a&&a.length){let[e,n]=t,o=Math.PI/180*s,r=Math.cos(o),h=Math.sin(o);for(let i of a){let[l,c]=i;i[0]=(l-e)*r-(c-n)*h+e,i[1]=(l-e)*h+(c-n)*r+n}}}function zt(a,t){return a[0]===t[0]&&a[1]===t[1]}function Wt(a,t,s,e=1){let n=s,o=Math.max(t,.1),r=a[0]&&a[0][0]&&typeof a[0][0]=="number"?[a]:a,h=[0,0];if(n)for(let l of r)Y(l,h,n);let i=(function(l,c,d){let p=[];for(let M of l){let m=[...M];zt(m[0],m[m.length-1])||m.push([m[0][0],m[0][1]]),m.length>2&&p.push(m)}let u=[];c=Math.max(c,.1);let f=[];for(let M of p)for(let m=0;m<M.length-1;m++){let P=M[m],x=M[m+1];if(P[1]!==x[1]){let w=Math.min(P[1],x[1]);f.push({ymin:w,ymax:Math.max(P[1],x[1]),x:w===P[1]?P[0]:x[0],islope:(x[0]-P[0])/(x[1]-P[1])})}}if(f.sort(((M,m)=>M.ymin<m.ymin?-1:M.ymin>m.ymin?1:M.x<m.x?-1:M.x>m.x?1:M.ymax===m.ymax?0:(M.ymax-m.ymax)/Math.abs(M.ymax-m.ymax))),!f.length)return u;let g=[],k=f[0].ymin,b=0;for(;g.length||f.length;){if(f.length){let M=-1;for(let m=0;m<f.length&&!(f[m].ymin>k);m++)M=m;f.splice(0,M+1).forEach((m=>{g.push({s:k,edge:m})}))}if(g=g.filter((M=>!(M.edge.ymax<=k))),g.sort(((M,m)=>M.edge.x===m.edge.x?0:(M.edge.x-m.edge.x)/Math.abs(M.edge.x-m.edge.x))),(d!==1||b%c==0)&&g.length>1)for(let M=0;M<g.length;M+=2){let m=M+1;if(m>=g.length)break;let P=g[M].edge,x=g[m].edge;u.push([[Math.round(P.x),k],[Math.round(x.x),k]])}k+=d,g.forEach((M=>{M.edge.x=M.edge.x+d*M.edge.islope})),b++}return u})(r,o,e);if(n){for(let l of r)Y(l,h,-n);(function(l,c,d){let p=[];l.forEach((u=>p.push(...u))),Y(p,c,d)})(i,h,-n)}return i}function F(a,t){var s;let e=t.hachureAngle+90,n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let o=1;return t.roughness>=1&&(((s=t.randomizer)===null||s===void 0?void 0:s.next())||Math.random())>.7&&(o=n),Wt(a,n,e,o||1)}var q=class{constructor(t){this.helper=t}fillPolygons(t,s){return this._fillPolygons(t,s)}_fillPolygons(t,s){let e=F(t,s);return{type:"fillSketch",ops:this.renderLines(e,s)}}renderLines(t,s){let e=[];for(let n of t)e.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],s));return e}};function X(a){let t=a[0],s=a[1];return Math.sqrt(Math.pow(t[0]-s[0],2)+Math.pow(t[1]-s[1],2))}var at=class extends q{fillPolygons(t,s){let e=s.hachureGap;e<0&&(e=4*s.strokeWidth),e=Math.max(e,.1);let n=F(t,Object.assign({},s,{hachureGap:e})),o=Math.PI/180*s.hachureAngle,r=[],h=.5*e*Math.cos(o),i=.5*e*Math.sin(o);for(let[l,c]of n)X([l,c])&&r.push([[l[0]-h,l[1]+i],[...c]],[[l[0]+h,l[1]-i],[...c]]);return{type:"fillSketch",ops:this.renderLines(r,s)}}},ot=class extends q{fillPolygons(t,s){let e=this._fillPolygons(t,s),n=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),o=this._fillPolygons(t,n);return e.ops=e.ops.concat(o.ops),e}},ht=class{constructor(t){this.helper=t}fillPolygons(t,s){let e=F(t,s=Object.assign({},s,{hachureAngle:0}));return this.dotsOnLines(e,s)}dotsOnLines(t,s){let e=[],n=s.hachureGap;n<0&&(n=4*s.strokeWidth),n=Math.max(n,.1);let o=s.fillWeight;o<0&&(o=s.strokeWidth/2);let r=n/4;for(let h of t){let i=X(h),l=i/n,c=Math.ceil(l)-1,d=i-c*n,p=(h[0][0]+h[1][0])/2-n/4,u=Math.min(h[0][1],h[1][1]);for(let f=0;f<c;f++){let g=u+d+f*n,k=p-r+2*Math.random()*r,b=g-r+2*Math.random()*r,M=this.helper.ellipse(k,b,o,o,s);e.push(...M.ops)}}return{type:"fillSketch",ops:e}}},rt=class{constructor(t){this.helper=t}fillPolygons(t,s){let e=F(t,s);return{type:"fillSketch",ops:this.dashedLine(e,s)}}dashedLine(t,s){let e=s.dashOffset<0?s.hachureGap<0?4*s.strokeWidth:s.hachureGap:s.dashOffset,n=s.dashGap<0?s.hachureGap<0?4*s.strokeWidth:s.hachureGap:s.dashGap,o=[];return t.forEach((r=>{let h=X(r),i=Math.floor(h/(e+n)),l=(h+n-i*(e+n))/2,c=r[0],d=r[1];c[0]>d[0]&&(c=r[1],d=r[0]);let p=Math.atan((d[1]-c[1])/(d[0]-c[0]));for(let u=0;u<i;u++){let f=u*(e+n),g=f+e,k=[c[0]+f*Math.cos(p)+l*Math.cos(p),c[1]+f*Math.sin(p)+l*Math.sin(p)],b=[c[0]+g*Math.cos(p)+l*Math.cos(p),c[1]+g*Math.sin(p)+l*Math.sin(p)];o.push(...this.helper.doubleLineOps(k[0],k[1],b[0],b[1],s))}})),o}},it=class{constructor(t){this.helper=t}fillPolygons(t,s){let e=s.hachureGap<0?4*s.strokeWidth:s.hachureGap,n=s.zigzagOffset<0?e:s.zigzagOffset,o=F(t,s=Object.assign({},s,{hachureGap:e+n}));return{type:"fillSketch",ops:this.zigzagLines(o,n,s)}}zigzagLines(t,s,e){let n=[];return t.forEach((o=>{let r=X(o),h=Math.round(r/(2*s)),i=o[0],l=o[1];i[0]>l[0]&&(i=o[1],l=o[0]);let c=Math.atan((l[1]-i[1])/(l[0]-i[0]));for(let d=0;d<h;d++){let p=2*d*s,u=2*(d+1)*s,f=Math.sqrt(2*Math.pow(s,2)),g=[i[0]+p*Math.cos(c),i[1]+p*Math.sin(c)],k=[i[0]+u*Math.cos(c),i[1]+u*Math.sin(c)],b=[g[0]+f*Math.cos(c+Math.PI/4),g[1]+f*Math.sin(c+Math.PI/4)];n.push(...this.helper.doubleLineOps(g[0],g[1],b[0],b[1],e),...this.helper.doubleLineOps(b[0],b[1],k[0],k[1],e))}})),n}},S={},ct=class{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},Et=0,tt=1,bt=2,Z={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function et(a,t){return a.type===t}function gt(a){let t=[],s=(function(r){let h=new Array;for(;r!=="";)if(r.match(/^([ \t\r\n,]+)/))r=r.substr(RegExp.$1.length);else if(r.match(/^([aAcChHlLmMqQsStTvVzZ])/))h[h.length]={type:Et,text:RegExp.$1},r=r.substr(RegExp.$1.length);else{if(!r.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];h[h.length]={type:tt,text:`${parseFloat(RegExp.$1)}`},r=r.substr(RegExp.$1.length)}return h[h.length]={type:bt,text:""},h})(a),e="BOD",n=0,o=s[n];for(;!et(o,bt);){let r=0,h=[];if(e==="BOD"){if(o.text!=="M"&&o.text!=="m")return gt("M0,0"+a);n++,r=Z[o.text],e=o.text}else et(o,tt)?r=Z[e]:(n++,r=Z[o.text],e=o.text);if(!(n+r<s.length))throw new Error("Path data ended short");for(let i=n;i<n+r;i++){let l=s[i];if(!et(l,tt))throw new Error("Param not a number: "+e+","+l.text);h[h.length]=+l.text}if(typeof Z[e]!="number")throw new Error("Bad segment: "+e);{let i={key:e,data:h};t.push(i),n+=r,o=s[n],e==="M"&&(e="L"),e==="m"&&(e="l")}}return t}function Ot(a){let t=0,s=0,e=0,n=0,o=[];for(let{key:r,data:h}of a)switch(r){case"M":o.push({key:"M",data:[...h]}),[t,s]=h,[e,n]=h;break;case"m":t+=h[0],s+=h[1],o.push({key:"M",data:[t,s]}),e=t,n=s;break;case"L":o.push({key:"L",data:[...h]}),[t,s]=h;break;case"l":t+=h[0],s+=h[1],o.push({key:"L",data:[t,s]});break;case"C":o.push({key:"C",data:[...h]}),t=h[4],s=h[5];break;case"c":{let i=h.map(((l,c)=>c%2?l+s:l+t));o.push({key:"C",data:i}),t=i[4],s=i[5];break}case"Q":o.push({key:"Q",data:[...h]}),t=h[2],s=h[3];break;case"q":{let i=h.map(((l,c)=>c%2?l+s:l+t));o.push({key:"Q",data:i}),t=i[2],s=i[3];break}case"A":o.push({key:"A",data:[...h]}),t=h[5],s=h[6];break;case"a":t+=h[5],s+=h[6],o.push({key:"A",data:[h[0],h[1],h[2],h[3],h[4],t,s]});break;case"H":o.push({key:"H",data:[...h]}),t=h[0];break;case"h":t+=h[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...h]}),s=h[0];break;case"v":s+=h[0],o.push({key:"V",data:[s]});break;case"S":o.push({key:"S",data:[...h]}),t=h[2],s=h[3];break;case"s":{let i=h.map(((l,c)=>c%2?l+s:l+t));o.push({key:"S",data:i}),t=i[2],s=i[3];break}case"T":o.push({key:"T",data:[...h]}),t=h[0],s=h[1];break;case"t":t+=h[0],s+=h[1],o.push({key:"T",data:[t,s]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=e,s=n}return o}function Lt(a){let t=[],s="",e=0,n=0,o=0,r=0,h=0,i=0;for(let{key:l,data:c}of a){switch(l){case"M":t.push({key:"M",data:[...c]}),[e,n]=c,[o,r]=c;break;case"C":t.push({key:"C",data:[...c]}),e=c[4],n=c[5],h=c[2],i=c[3];break;case"L":t.push({key:"L",data:[...c]}),[e,n]=c;break;case"H":e=c[0],t.push({key:"L",data:[e,n]});break;case"V":n=c[0],t.push({key:"L",data:[e,n]});break;case"S":{let d=0,p=0;s==="C"||s==="S"?(d=e+(e-h),p=n+(n-i)):(d=e,p=n),t.push({key:"C",data:[d,p,...c]}),h=c[0],i=c[1],e=c[2],n=c[3];break}case"T":{let[d,p]=c,u=0,f=0;s==="Q"||s==="T"?(u=e+(e-h),f=n+(n-i)):(u=e,f=n);let g=e+2*(u-e)/3,k=n+2*(f-n)/3,b=d+2*(u-d)/3,M=p+2*(f-p)/3;t.push({key:"C",data:[g,k,b,M,d,p]}),h=u,i=f,e=d,n=p;break}case"Q":{let[d,p,u,f]=c,g=e+2*(d-e)/3,k=n+2*(p-n)/3,b=u+2*(d-u)/3,M=f+2*(p-f)/3;t.push({key:"C",data:[g,k,b,M,u,f]}),h=d,i=p,e=u,n=f;break}case"A":{let d=Math.abs(c[0]),p=Math.abs(c[1]),u=c[2],f=c[3],g=c[4],k=c[5],b=c[6];d===0||p===0?(t.push({key:"C",data:[e,n,k,b,k,b]}),e=k,n=b):(e!==k||n!==b)&&(Tt(e,n,k,b,d,p,u,f,g).forEach((function(M){t.push({key:"C",data:M})})),e=k,n=b);break}case"Z":t.push({key:"Z",data:[]}),e=o,n=r}s=l}return t}function R(a,t,s){return[a*Math.cos(s)-t*Math.sin(s),a*Math.sin(s)+t*Math.cos(s)]}function Tt(a,t,s,e,n,o,r,h,i,l){let c=(d=r,Math.PI*d/180);var d;let p=[],u=0,f=0,g=0,k=0;if(l)[u,f,g,k]=l;else{[a,t]=R(a,t,-c),[s,e]=R(s,e,-c);let T=(a-s)/2,v=(t-e)/2,_=T*T/(n*n)+v*v/(o*o);_>1&&(_=Math.sqrt(_),n*=_,o*=_);let W=n*n,E=o*o,It=W*E-W*v*v-E*T*T,Ct=W*v*v+E*T*T,kt=(h===i?-1:1)*Math.sqrt(Math.abs(It/Ct));g=kt*n*v/o+(a+s)/2,k=kt*-o*T/n+(t+e)/2,u=Math.asin(parseFloat(((t-k)/o).toFixed(9))),f=Math.asin(parseFloat(((e-k)/o).toFixed(9))),a<g&&(u=Math.PI-u),s<g&&(f=Math.PI-f),u<0&&(u=2*Math.PI+u),f<0&&(f=2*Math.PI+f),i&&u>f&&(u-=2*Math.PI),!i&&f>u&&(f-=2*Math.PI)}let b=f-u;if(Math.abs(b)>120*Math.PI/180){let T=f,v=s,_=e;f=i&&f>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,p=Tt(s=g+n*Math.cos(f),e=k+o*Math.sin(f),v,_,n,o,r,0,i,[f,T,g,k])}b=f-u;let M=Math.cos(u),m=Math.sin(u),P=Math.cos(f),x=Math.sin(f),w=Math.tan(b/4),L=4/3*n*w,A=4/3*o*w,V=[a,t],D=[a+L*m,t-A*M],C=[s+L*x,e-A*P],Mt=[s,e];if(D[0]=2*V[0]-D[0],D[1]=2*V[1]-D[1],l)return[D,C,Mt].concat(p);{p=[D,C,Mt].concat(p);let T=[];for(let v=0;v<p.length;v+=3){let _=R(p[v][0],p[v][1],c),W=R(p[v+1][0],p[v+1][1],c),E=R(p[v+2][0],p[v+2][1],c);T.push([_[0],_[1],W[0],W[1],E[0],E[1]])}return T}}var Gt={randOffset:function(a,t){return y(a,t)},randOffsetWithRange:function(a,t,s){return J(a,t,s)},ellipse:function(a,t,s,e,n){let o=At(s,e,n);return lt(a,t,n,o).opset},doubleLineOps:function(a,t,s,e,n){return I(a,t,s,e,n,!0)}};function Dt(a,t,s,e,n){return{type:"path",ops:I(a,t,s,e,n)}}function N(a,t,s){let e=(a||[]).length;if(e>2){let n=[];for(let o=0;o<e-1;o++)n.push(...I(a[o][0],a[o][1],a[o+1][0],a[o+1][1],s));return t&&n.push(...I(a[e-1][0],a[e-1][1],a[0][0],a[0][1],s)),{type:"path",ops:n}}return e===2?Dt(a[0][0],a[0][1],a[1][0],a[1][1],s):{type:"path",ops:[]}}function $t(a,t,s,e,n){return(function(o,r){return N(o,!0,r)})([[a,t],[a+s,t],[a+s,t+e],[a,t+e]],n)}function yt(a,t){if(a.length){let s=typeof a[0][0]=="number"?[a]:a,e=Q(s[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:Q(s[0],1.5*(1+.22*t.roughness),xt(t));for(let o=1;o<s.length;o++){let r=s[o];if(r.length){let h=Q(r,1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:Q(r,1.5*(1+.22*t.roughness),xt(t));for(let l of h)l.op!=="move"&&e.push(l);for(let l of i)l.op!=="move"&&n.push(l)}}return{type:"path",ops:e.concat(n)}}return{type:"path",ops:[]}}function At(a,t,s){let e=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(a/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(s.curveStepCount,s.curveStepCount/Math.sqrt(200)*e)),o=2*Math.PI/n,r=Math.abs(a/2),h=Math.abs(t/2),i=1-s.curveFitting;return r+=y(r*i,s),h+=y(h*i,s),{increment:o,rx:r,ry:h}}function lt(a,t,s,e){let[n,o]=Pt(e.increment,a,t,e.rx,e.ry,1,e.increment*J(.1,J(.4,1,s),s),s),r=K(n,null,s);if(!s.disableMultiStroke&&s.roughness!==0){let[h]=Pt(e.increment,a,t,e.rx,e.ry,1.5,0,s),i=K(h,null,s);r=r.concat(i)}return{estimatedPoints:o,opset:{type:"path",ops:r}}}function mt(a,t,s,e,n,o,r,h,i){let l=a,c=t,d=Math.abs(s/2),p=Math.abs(e/2);d+=y(.01*d,i),p+=y(.01*p,i);let u=n,f=o;for(;u<0;)u+=2*Math.PI,f+=2*Math.PI;f-u>2*Math.PI&&(u=0,f=2*Math.PI);let g=2*Math.PI/i.curveStepCount,k=Math.min(g/2,(f-u)/2),b=vt(k,l,c,d,p,u,f,1,i);if(!i.disableMultiStroke){let M=vt(k,l,c,d,p,u,f,1.5,i);b.push(...M)}return r&&(h?b.push(...I(l,c,l+d*Math.cos(u),c+p*Math.sin(u),i),...I(l,c,l+d*Math.cos(f),c+p*Math.sin(f),i)):b.push({op:"lineTo",data:[l,c]},{op:"lineTo",data:[l+d*Math.cos(u),c+p*Math.sin(u)]})),{type:"path",ops:b}}function wt(a,t){let s=Lt(Ot(gt(a))),e=[],n=[0,0],o=[0,0];for(let{key:r,data:h}of s)switch(r){case"M":o=[h[0],h[1]],n=[h[0],h[1]];break;case"L":e.push(...I(o[0],o[1],h[0],h[1],t)),o=[h[0],h[1]];break;case"C":{let[i,l,c,d,p,u]=h;e.push(...Rt(i,l,c,d,p,u,o,t)),o=[p,u];break}case"Z":e.push(...I(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]]}return{type:"path",ops:e}}function st(a,t){let s=[];for(let e of a)if(e.length){let n=t.maxRandomnessOffset||0,o=e.length;if(o>2){s.push({op:"move",data:[e[0][0]+y(n,t),e[0][1]+y(n,t)]});for(let r=1;r<o;r++)s.push({op:"lineTo",data:[e[r][0]+y(n,t),e[r][1]+y(n,t)]})}}return{type:"fillPath",ops:s}}function G(a,t){return(function(s,e){let n=s.fillStyle||"hachure";if(!S[n])switch(n){case"zigzag":S[n]||(S[n]=new at(e));break;case"cross-hatch":S[n]||(S[n]=new ot(e));break;case"dots":S[n]||(S[n]=new ht(e));break;case"dashed":S[n]||(S[n]=new rt(e));break;case"zigzag-line":S[n]||(S[n]=new it(e));break;default:n="hachure",S[n]||(S[n]=new q(e))}return S[n]})(t,Gt).fillPolygons(a,t)}function xt(a){let t=Object.assign({},a);return t.randomizer=void 0,a.seed&&(t.seed=a.seed+1),t}function _t(a){return a.randomizer||(a.randomizer=new ct(a.seed||0)),a.randomizer.next()}function J(a,t,s,e=1){return s.roughness*e*(_t(s)*(t-a)+a)}function y(a,t,s=1){return J(-a,a,t,s)}function I(a,t,s,e,n,o=!1){let r=o?n.disableMultiStrokeFill:n.disableMultiStroke,h=ut(a,t,s,e,n,!0,!1);if(r)return h;let i=ut(a,t,s,e,n,!0,!0);return h.concat(i)}function ut(a,t,s,e,n,o,r){let h=Math.pow(a-s,2)+Math.pow(t-e,2),i=Math.sqrt(h),l=1;l=i<200?1:i>500?.4:-.0016668*i+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>h&&(c=i/10);let d=c/2,p=.2+.2*_t(n),u=n.bowing*n.maxRandomnessOffset*(e-t)/200,f=n.bowing*n.maxRandomnessOffset*(a-s)/200;u=y(u,n,l),f=y(f,n,l);let g=[],k=()=>y(d,n,l),b=()=>y(c,n,l),M=n.preserveVertices;return o&&(r?g.push({op:"move",data:[a+(M?0:k()),t+(M?0:k())]}):g.push({op:"move",data:[a+(M?0:y(c,n,l)),t+(M?0:y(c,n,l))]})),r?g.push({op:"bcurveTo",data:[u+a+(s-a)*p+k(),f+t+(e-t)*p+k(),u+a+2*(s-a)*p+k(),f+t+2*(e-t)*p+k(),s+(M?0:k()),e+(M?0:k())]}):g.push({op:"bcurveTo",data:[u+a+(s-a)*p+b(),f+t+(e-t)*p+b(),u+a+2*(s-a)*p+b(),f+t+2*(e-t)*p+b(),s+(M?0:b()),e+(M?0:b())]}),g}function Q(a,t,s){if(!a.length)return[];let e=[];e.push([a[0][0]+y(t,s),a[0][1]+y(t,s)]),e.push([a[0][0]+y(t,s),a[0][1]+y(t,s)]);for(let n=1;n<a.length;n++)e.push([a[n][0]+y(t,s),a[n][1]+y(t,s)]),n===a.length-1&&e.push([a[n][0]+y(t,s),a[n][1]+y(t,s)]);return K(e,null,s)}function K(a,t,s){let e=a.length,n=[];if(e>3){let o=[],r=1-s.curveTightness;n.push({op:"move",data:[a[1][0],a[1][1]]});for(let h=1;h+2<e;h++){let i=a[h];o[0]=[i[0],i[1]],o[1]=[i[0]+(r*a[h+1][0]-r*a[h-1][0])/6,i[1]+(r*a[h+1][1]-r*a[h-1][1])/6],o[2]=[a[h+1][0]+(r*a[h][0]-r*a[h+2][0])/6,a[h+1][1]+(r*a[h][1]-r*a[h+2][1])/6],o[3]=[a[h+1][0],a[h+1][1]],n.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(t&&t.length===2){let h=s.maxRandomnessOffset;n.push({op:"lineTo",data:[t[0]+y(h,s),t[1]+y(h,s)]})}}else e===3?(n.push({op:"move",data:[a[1][0],a[1][1]]}),n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[2][0],a[2][1]]})):e===2&&n.push(...ut(a[0][0],a[0][1],a[1][0],a[1][1],s,!0,!0));return n}function Pt(a,t,s,e,n,o,r,h){let i=[],l=[];if(h.roughness===0){a/=4,l.push([t+e*Math.cos(-a),s+n*Math.sin(-a)]);for(let c=0;c<=2*Math.PI;c+=a){let d=[t+e*Math.cos(c),s+n*Math.sin(c)];i.push(d),l.push(d)}l.push([t+e*Math.cos(0),s+n*Math.sin(0)]),l.push([t+e*Math.cos(a),s+n*Math.sin(a)])}else{let c=y(.5,h)-Math.PI/2;l.push([y(o,h)+t+.9*e*Math.cos(c-a),y(o,h)+s+.9*n*Math.sin(c-a)]);let d=2*Math.PI+c-.01;for(let p=c;p<d;p+=a){let u=[y(o,h)+t+e*Math.cos(p),y(o,h)+s+n*Math.sin(p)];i.push(u),l.push(u)}l.push([y(o,h)+t+e*Math.cos(c+2*Math.PI+.5*r),y(o,h)+s+n*Math.sin(c+2*Math.PI+.5*r)]),l.push([y(o,h)+t+.98*e*Math.cos(c+r),y(o,h)+s+.98*n*Math.sin(c+r)]),l.push([y(o,h)+t+.9*e*Math.cos(c+.5*r),y(o,h)+s+.9*n*Math.sin(c+.5*r)])}return[l,i]}function vt(a,t,s,e,n,o,r,h,i){let l=o+y(.1,i),c=[];c.push([y(h,i)+t+.9*e*Math.cos(l-a),y(h,i)+s+.9*n*Math.sin(l-a)]);for(let d=l;d<=r;d+=a)c.push([y(h,i)+t+e*Math.cos(d),y(h,i)+s+n*Math.sin(d)]);return c.push([t+e*Math.cos(r),s+n*Math.sin(r)]),c.push([t+e*Math.cos(r),s+n*Math.sin(r)]),K(c,null,i)}function Rt(a,t,s,e,n,o,r,h){let i=[],l=[h.maxRandomnessOffset||1,(h.maxRandomnessOffset||1)+.3],c=[0,0],d=h.disableMultiStroke?1:2,p=h.preserveVertices;for(let u=0;u<d;u++)u===0?i.push({op:"move",data:[r[0],r[1]]}):i.push({op:"move",data:[r[0]+(p?0:y(l[0],h)),r[1]+(p?0:y(l[0],h))]}),c=p?[n,o]:[n+y(l[u],h),o+y(l[u],h)],i.push({op:"bcurveTo",data:[a+y(l[u],h),t+y(l[u],h),s+y(l[u],h),e+y(l[u],h),c[0],c[1]]});return i}function j(a){return[...a]}function St(a,t=0){let s=a.length;if(s<3)throw new Error("A curve must have at least three points.");let e=[];if(s===3)e.push(j(a[0]),j(a[1]),j(a[2]),j(a[2]));else{let n=[];n.push(a[0],a[0]);for(let h=1;h<a.length;h++)n.push(a[h]),h===a.length-1&&n.push(a[h]);let o=[],r=1-t;e.push(j(n[0]));for(let h=1;h+2<n.length;h++){let i=n[h];o[0]=[i[0],i[1]],o[1]=[i[0]+(r*n[h+1][0]-r*n[h-1][0])/6,i[1]+(r*n[h+1][1]-r*n[h-1][1])/6],o[2]=[n[h+1][0]+(r*n[h][0]-r*n[h+2][0])/6,n[h+1][1]+(r*n[h][1]-r*n[h+2][1])/6],o[3]=[n[h+1][0],n[h+1][1]],e.push(o[1],o[2],o[3])}}return e}function B(a,t){return Math.pow(a[0]-t[0],2)+Math.pow(a[1]-t[1],2)}function jt(a,t,s){let e=B(t,s);if(e===0)return B(a,t);let n=((a[0]-t[0])*(s[0]-t[0])+(a[1]-t[1])*(s[1]-t[1]))/e;return n=Math.max(0,Math.min(1,n)),B(a,z(t,s,n))}function z(a,t,s){return[a[0]+(t[0]-a[0])*s,a[1]+(t[1]-a[1])*s]}function pt(a,t,s,e){let n=e||[];if((function(h,i){let l=h[i+0],c=h[i+1],d=h[i+2],p=h[i+3],u=3*c[0]-2*l[0]-p[0];u*=u;let f=3*c[1]-2*l[1]-p[1];f*=f;let g=3*d[0]-2*p[0]-l[0];g*=g;let k=3*d[1]-2*p[1]-l[1];return k*=k,u<g&&(u=g),f<k&&(f=k),u+f})(a,t)<s){let h=a[t+0];n.length?(o=n[n.length-1],r=h,Math.sqrt(B(o,r))>1&&n.push(h)):n.push(h),n.push(a[t+3])}else{let i=a[t+0],l=a[t+1],c=a[t+2],d=a[t+3],p=z(i,l,.5),u=z(l,c,.5),f=z(c,d,.5),g=z(p,u,.5),k=z(u,f,.5),b=z(g,k,.5);pt([i,p,g,b],0,s,n),pt([b,k,f,d],0,s,n)}var o,r;return n}function qt(a,t){return U(a,0,a.length,t)}function U(a,t,s,e,n){let o=n||[],r=a[t],h=a[s-1],i=0,l=1;for(let c=t+1;c<s-1;++c){let d=jt(a[c],r,h);d>i&&(i=d,l=c)}return Math.sqrt(i)>e?(U(a,t,l+1,e,o),U(a,l,s,e,o)):(o.length||o.push(r),o.push(h)),o}function nt(a,t=.15,s){let e=[],n=(a.length-1)/3;for(let o=0;o<n;o++)pt(a,3*o,t,e);return s&&s>0?U(e,0,e.length,s):e}var O="none",$=class{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,s,e){return{shape:t,sets:s||[],options:e||this.defaultOptions}}line(t,s,e,n,o){let r=this._o(o);return this._d("line",[Dt(t,s,e,n,r)],r)}rectangle(t,s,e,n,o){let r=this._o(o),h=[],i=$t(t,s,e,n,r);if(r.fill){let l=[[t,s],[t+e,s],[t+e,s+n],[t,s+n]];r.fillStyle==="solid"?h.push(st([l],r)):h.push(G([l],r))}return r.stroke!==O&&h.push(i),this._d("rectangle",h,r)}ellipse(t,s,e,n,o){let r=this._o(o),h=[],i=At(e,n,r),l=lt(t,s,r,i);if(r.fill)if(r.fillStyle==="solid"){let c=lt(t,s,r,i).opset;c.type="fillPath",h.push(c)}else h.push(G([l.estimatedPoints],r));return r.stroke!==O&&h.push(l.opset),this._d("ellipse",h,r)}circle(t,s,e,n){let o=this.ellipse(t,s,e,e,n);return o.shape="circle",o}linearPath(t,s){let e=this._o(s);return this._d("linearPath",[N(t,!1,e)],e)}arc(t,s,e,n,o,r,h=!1,i){let l=this._o(i),c=[],d=mt(t,s,e,n,o,r,h,!0,l);if(h&&l.fill)if(l.fillStyle==="solid"){let p=Object.assign({},l);p.disableMultiStroke=!0;let u=mt(t,s,e,n,o,r,!0,!1,p);u.type="fillPath",c.push(u)}else c.push((function(p,u,f,g,k,b,M){let m=p,P=u,x=Math.abs(f/2),w=Math.abs(g/2);x+=y(.01*x,M),w+=y(.01*w,M);let L=k,A=b;for(;L<0;)L+=2*Math.PI,A+=2*Math.PI;A-L>2*Math.PI&&(L=0,A=2*Math.PI);let V=(A-L)/M.curveStepCount,D=[];for(let C=L;C<=A;C+=V)D.push([m+x*Math.cos(C),P+w*Math.sin(C)]);return D.push([m+x*Math.cos(A),P+w*Math.sin(A)]),D.push([m,P]),G([D],M)})(t,s,e,n,o,r,l));return l.stroke!==O&&c.push(d),this._d("arc",c,l)}curve(t,s){let e=this._o(s),n=[],o=yt(t,e);if(e.fill&&e.fill!==O)if(e.fillStyle==="solid"){let r=yt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(r.ops)})}else{let r=[],h=t;if(h.length){let i=typeof h[0][0]=="number"?[h]:h;for(let l of i)l.length<3?r.push(...l):l.length===3?r.push(...nt(St([l[0],l[0],l[1],l[2]]),10,(1+e.roughness)/2)):r.push(...nt(St(l),10,(1+e.roughness)/2))}r.length&&n.push(G([r],e))}return e.stroke!==O&&n.push(o),this._d("curve",n,e)}polygon(t,s){let e=this._o(s),n=[],o=N(t,!0,e);return e.fill&&(e.fillStyle==="solid"?n.push(st([t],e)):n.push(G([t],e))),e.stroke!==O&&n.push(o),this._d("polygon",n,e)}path(t,s){let e=this._o(s),n=[];if(!t)return this._d("path",n,e);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=e.fill&&e.fill!=="transparent"&&e.fill!==O,r=e.stroke!==O,h=!!(e.simplification&&e.simplification<1),i=(function(c,d,p){let u=Lt(Ot(gt(c))),f=[],g=[],k=[0,0],b=[],M=()=>{b.length>=4&&g.push(...nt(b,d)),b=[]},m=()=>{M(),g.length&&(f.push(g),g=[])};for(let{key:x,data:w}of u)switch(x){case"M":m(),k=[w[0],w[1]],g.push(k);break;case"L":M(),g.push([w[0],w[1]]);break;case"C":if(!b.length){let L=g.length?g[g.length-1]:k;b.push([L[0],L[1]])}b.push([w[0],w[1]]),b.push([w[2],w[3]]),b.push([w[4],w[5]]);break;case"Z":M(),g.push([k[0],k[1]])}if(m(),!p)return f;let P=[];for(let x of f){let w=qt(x,p);w.length&&P.push(w)}return P})(t,1,h?4-4*(e.simplification||1):(1+e.roughness)/2),l=wt(t,e);if(o)if(e.fillStyle==="solid")if(i.length===1){let c=wt(t,Object.assign(Object.assign({},e),{disableMultiStroke:!0,roughness:e.roughness?e.roughness+e.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else n.push(st(i,e));else n.push(G(i,e));return r&&(h?i.forEach((c=>{n.push(N(c,!1,e))})):n.push(l)),this._d("path",n,e)}opsToPath(t,s){let e="";for(let n of t.ops){let o=typeof s=="number"&&s>=0?n.data.map((r=>+r.toFixed(s))):n.data;switch(n.op){case"move":e+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":e+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":e+=`L${o[0]} ${o[1]} `}}return e.trim()}toPaths(t){let s=t.sets||[],e=t.options||this.defaultOptions,n=[];for(let o of s){let r=null;switch(o.type){case"path":r={d:this.opsToPath(o),stroke:e.stroke,strokeWidth:e.strokeWidth,fill:O};break;case"fillPath":r={d:this.opsToPath(o),stroke:O,strokeWidth:0,fill:e.fill||O};break;case"fillSketch":r=this.fillSketch(o,e)}r&&n.push(r)}return n}fillSketch(t,s){let e=s.fillWeight;return e<0&&(e=s.strokeWidth/2),{d:this.opsToPath(t),stroke:s.fill||O,strokeWidth:e,fill:O}}_mergedShape(t){return t.filter(((s,e)=>e===0||s.op!=="move"))}},ft=class{constructor(t,s){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new $(s)}draw(t){let s=t.sets||[],e=t.options||this.getDefaultOptions(),n=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(let r of s)switch(r.type){case"path":n.save(),n.strokeStyle=e.stroke==="none"?"transparent":e.stroke,n.lineWidth=e.strokeWidth,e.strokeLineDash&&n.setLineDash(e.strokeLineDash),e.strokeLineDashOffset&&(n.lineDashOffset=e.strokeLineDashOffset),this._drawToContext(n,r,o),n.restore();break;case"fillPath":{n.save(),n.fillStyle=e.fill||"";let h=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,r,o,h),n.restore();break}case"fillSketch":this.fillSketch(n,r,e)}}fillSketch(t,s,e){let n=e.fillWeight;n<0&&(n=e.strokeWidth/2),t.save(),e.fillLineDash&&t.setLineDash(e.fillLineDash),e.fillLineDashOffset&&(t.lineDashOffset=e.fillLineDashOffset),t.strokeStyle=e.fill||"",t.lineWidth=n,this._drawToContext(t,s,e.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,s,e,n="nonzero"){t.beginPath();for(let o of s.ops){let r=typeof e=="number"&&e>=0?o.data.map((h=>+h.toFixed(e))):o.data;switch(o.op){case"move":t.moveTo(r[0],r[1]);break;case"bcurveTo":t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case"lineTo":t.lineTo(r[0],r[1])}}s.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,s,e,n,o){let r=this.gen.line(t,s,e,n,o);return this.draw(r),r}rectangle(t,s,e,n,o){let r=this.gen.rectangle(t,s,e,n,o);return this.draw(r),r}ellipse(t,s,e,n,o){let r=this.gen.ellipse(t,s,e,n,o);return this.draw(r),r}circle(t,s,e,n){let o=this.gen.circle(t,s,e,n);return this.draw(o),o}linearPath(t,s){let e=this.gen.linearPath(t,s);return this.draw(e),e}polygon(t,s){let e=this.gen.polygon(t,s);return this.draw(e),e}arc(t,s,e,n,o,r,h=!1,i){let l=this.gen.arc(t,s,e,n,o,r,h,i);return this.draw(l),l}curve(t,s){let e=this.gen.curve(t,s);return this.draw(e),e}path(t,s){let e=this.gen.path(t,s);return this.draw(e),e}},H="http://www.w3.org/2000/svg",dt=class{constructor(t,s){this.svg=t,this.gen=new $(s)}draw(t){let s=t.sets||[],e=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,o=n.createElementNS(H,"g"),r=t.options.fixedDecimalPlaceDigits;for(let h of s){let i=null;switch(h.type){case"path":i=n.createElementNS(H,"path"),i.setAttribute("d",this.opsToPath(h,r)),i.setAttribute("stroke",e.stroke),i.setAttribute("stroke-width",e.strokeWidth+""),i.setAttribute("fill","none"),e.strokeLineDash&&i.setAttribute("stroke-dasharray",e.strokeLineDash.join(" ").trim()),e.strokeLineDashOffset&&i.setAttribute("stroke-dashoffset",`${e.strokeLineDashOffset}`);break;case"fillPath":i=n.createElementNS(H,"path"),i.setAttribute("d",this.opsToPath(h,r)),i.setAttribute("stroke","none"),i.setAttribute("stroke-width","0"),i.setAttribute("fill",e.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||i.setAttribute("fill-rule","evenodd");break;case"fillSketch":i=this.fillSketch(n,h,e)}i&&o.appendChild(i)}return o}fillSketch(t,s,e){let n=e.fillWeight;n<0&&(n=e.strokeWidth/2);let o=t.createElementNS(H,"path");return o.setAttribute("d",this.opsToPath(s,e.fixedDecimalPlaceDigits)),o.setAttribute("stroke",e.fill||""),o.setAttribute("stroke-width",n+""),o.setAttribute("fill","none"),e.fillLineDash&&o.setAttribute("stroke-dasharray",e.fillLineDash.join(" ").trim()),e.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${e.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,s){return this.gen.opsToPath(t,s)}line(t,s,e,n,o){let r=this.gen.line(t,s,e,n,o);return this.draw(r)}rectangle(t,s,e,n,o){let r=this.gen.rectangle(t,s,e,n,o);return this.draw(r)}ellipse(t,s,e,n,o){let r=this.gen.ellipse(t,s,e,n,o);return this.draw(r)}circle(t,s,e,n){let o=this.gen.circle(t,s,e,n);return this.draw(o)}linearPath(t,s){let e=this.gen.linearPath(t,s);return this.draw(e)}polygon(t,s){let e=this.gen.polygon(t,s);return this.draw(e)}arc(t,s,e,n,o,r,h=!1,i){let l=this.gen.arc(t,s,e,n,o,r,h,i);return this.draw(l)}curve(t,s){let e=this.gen.curve(t,s);return this.draw(e)}path(t,s){let e=this.gen.path(t,s);return this.draw(e)}},Ft={canvas:(a,t)=>new ft(a,t),svg:(a,t)=>new dt(a,t),generator:a=>new $(a),newSeed:()=>$.newSeed()};export{Ft as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t,b as s,c as d,d as o,e as l,g as u,p as c,w as f,y as m}from"./chunk-LT6LXKCR.js";var v=class extends m{static{t(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},b=class extends f{static{t(this,"RailroadAbnfValueConverter")}runConverter(r,e,a){let i=super.runConverter(r,e,a);if(r.name==="TITLE"&&typeof i=="string"){let n=i.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return n.slice(1,-1)}return i}runCustomConverter(r,e,a){if(r.name==="ABNF_STRING")return e.slice(1,-1)}},A={parser:{TokenBuilder:t(()=>new v,"TokenBuilder"),ValueConverter:t(()=>new b,"ValueConverter")}};function C(r=l){let e=o(d(r),u),a=o(s({shared:e}),c,A);return e.ServiceRegistry.register(a),{shared:e,RailroadAbnf:a}}t(C,"createRailroadAbnfServices");export{A as a,C as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as P}from"./chunk-K2KLZU7M.js";import{a as y}from"./chunk-GYT4IYBZ.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){let e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,i){let r=e.x-t.x,o=e.y-t.y,a=i.x-s.x,d=i.y-s.y,u=r*d-o*a;if(u===0)return null;let n=s.x-t.x,c=s.y-t.y,p=(n*d-c*a)/u,l=(n*o-c*r)/u;return p<=R||p>=1-R||l<=R||l>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:l}}y(T,"segmentIntersection");function v(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(v,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;let i=t.points,r=i[e],o=i[e+1];if(!r||!o)return!1;let a=Math.hypot(o.x-r.x,o.y-r.y),d=s*a,u=e>0?L(i[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;let n=e+2<i.length?L(r,o,i[e+2],w):null;return n!==null&&a-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){let e=[];for(let s=0;s<t.length;s++){let i=t[s],r=N(i.points);for(let o=s+1;o<t.length;o++){let a=t[o],d=N(a.points);for(let[u,n]of r.entries())for(let[c,p]of d.entries()){let l=T(n.a,n.b,p.a,p.b);if(!l||B(i,u,l.tA)||B(a,c,l.tB))continue;let g=v(n),S=v(p);(g!==S?g:!1)?e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:u,t:l.tA,point:l.point}):e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:c,t:l.tB,point:l.point})}}}return e}y(C,"findEdgeIntersections");function M(t){let e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){let e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));let s=t.map(o=>({...o})),i=e.arrowTypeStart&&P[e.arrowTypeStart];if(i){let o=t[0],a=t[1],d=Math.atan2(a.y-o.y,a.x-o.x);s[0].x=o.x+i*Math.cos(d),s[0].y=o.y+i*Math.sin(d)}let r=e.arrowTypeEnd&&P[e.arrowTypeEnd];if(r){let o=t.length,a=t[o-2],d=t[o-1],u=Math.atan2(d.y-a.y,d.x-a.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,i,r){let o=t.point.x,a=t.point.y,d={x:o-e*t.r,y:a-s*t.r},u={x:o+e*t.r,y:a+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${i} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,i){let r=e.x-t.x,o=e.y-t.y,a=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(a,d);if(u<O||n<O)return null;let c=r/u,p=o/u,l=a/n,g=d/n,S=c*l+p*g,b=Math.max(-1,Math.min(1,S)),x=Math.acos(b);if(x<O||Math.abs(Math.PI-x)<O)return null;let h=Math.min(i/Math.sin(x/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+l*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){let i=t.points;if(i.length<2)return"";let r=_(i,t),o=t.curve==="rounded",a=N(r),d=new Map;for(let n of e){let c=a[n.segIndex];if(!c)continue;let p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),l=d.get(n.segIndex)??[];l.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,l)}let u=[`M${A(r[0])}`];for(let n=0;n<a.length;n++){let c=a[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),l=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c),b=0;if(o&&n>0){let f=L(r[n-1],r[n],r[n+1]??r[n],w);f&&(b=f.cutLen)}let x=p,h=null;o&&n<a.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(x=p-h.cutLen));let $=s.jumpRadius*Y,m=[...d.get(n)??[]].sort((f,E)=>f.t-E.t).filter(f=>{let E=Math.min(f.d-b,x-f.d)-X;return f.r=Math.min(f.r,E),f.r>=$});for(let f=0;f<m.length-1;f++){let E=m[f+1].d-m[f].d;if(m[f].r+m[f+1].r>E){let I=E/2;m[f].r=Math.min(m[f].r,I),m[f+1].r=Math.min(m[f+1].r,I)}}for(let f of m)f.r<$||u.push(...k(f,l,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{let e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;let i=[];for(let r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&i.push({x:r.x,y:r.y});return i.length>=2?i:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;let i=t.node();if(!i)return;let r=new Map;for(let n of e)r.set(n.id,n);let o=new Map;for(let n of i.querySelectorAll("path[data-id]")){let c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}let a=[];for(let n of e){let c=o.get(n.id);if(!c)continue;let l=j(c.getAttribute("data-points"))??n.points;a.push({...n,points:l})}let d=C(a);if(d.length===0)return;let u=new Map;for(let n of d){let c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(let n of a){let c=u.get(n.id);if(!c||c.length===0)continue;let l=r.get(n.id)?.curve;if(l!==void 0&&!U(l))continue;let g=o.get(n.id);if(!g)continue;if(l===void 0){let m=g.getAttribute("d")??"";if(!J(m))continue}let S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),x=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),x!==null&&h!==null&&typeof g.getTotalLength=="function"){let m=g.getTotalLength(),f=Math.max(0,m-x-h),E=`0 ${x} ${f} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-ZMCB7VP2.js";import{b as u}from"./chunk-R63JUMUK.js";import{e as p,j as k,l as w,m as y,n as L}from"./chunk-K2KLZU7M.js";import{b as c}from"./chunk-JD7ZBJD2.js";import{a as f}from"./chunk-HOPPTA6H.js";import{e as g}from"./chunk-QEEA3KYY.js";import{C as m,O as d}from"./chunk-KT4VPQD5.js";import{b as n}from"./chunk-JRSH5GNS.js";import{a as o}from"./chunk-GYT4IYBZ.js";var v={common:d,getConfig:m,insertCluster:u,insertEdge:y,insertEdgeLabel:k,insertMarkers:L,insertNode:c,interpolateToCurve:g,labelHelper:f,log:n,positionEdgeLabel:w},A=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],a=Object.create(null),$=o(e=>{for(let r of e)a[r.name]=r},"registerLayoutLoaders"),E=o(()=>{let e=o(async()=>await import("./elk-XV6XMXQE-AZ4HLCWI.js"),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...A.map(r=>({name:r,loader:e,algorithm:r}))]},"elkLayoutLoaders"),_=o(()=>{$([{name:"dagre",loader:o(async()=>await import("./dagre-SPEB5RXH-HPGQXBZJ.js"),"loader")},{name:"swimlane",loader:o(async()=>await import("./swimlanes-UMQ2AFYF-LDD74Q2S.js"),"loader")},{name:"cose-bilkent",loader:o(async()=>await import("./cose-bilkent-JH36ORCC-PNM3EYPB.js"),"loader")},...E()])},"registerDefaultLayoutLoaders");_();var x=o(async(e,r)=>{if(!Object.hasOwn(a,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let i of e.nodes){let b=i.domId||i.id;i.domId=`${e.diagramId}-${b}`}let t=a[e.layoutAlgorithm],h=await t.loader();s(r,e.config);let O=await h.render(e,r,v,{algorithm:t.algorithm});return p(r.node()),O},"render"),l="dagre",M=o((e="",{fallback:r=l}={})=>{if(Object.hasOwn(a,e))return e;for(let t of[r,l])if(Object.hasOwn(a,t))return n.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Neither layout algorithm ${e}, ${r}, nor ${l} is registered.`)},"getRegisteredLayoutAlgorithm");export{$ as a,x as b,M as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o,b as d,c,d as i,e as l,g as u,r as v,w as m,y as h}from"./chunk-LT6LXKCR.js";var f=class extends h{static{o(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},R=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let s=e[t];switch(s){case"n":r+=`
|
|
2
|
+
`;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=s}continue}r+=n}return r},"decodeEscapedString"),C=class extends m{static{o(this,"RailroadValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return R(n)}return t}runCustomConverter(a,e,r){if(a.name==="RR_STRING")return R(e)}},p={parser:{TokenBuilder:o(()=>new f,"TokenBuilder"),ValueConverter:o(()=>new C,"ValueConverter")}};function S(a=l){let e=i(c(a),u),r=i(d({shared:e}),v,p);return e.ServiceRegistry.register(r),{shared:e,Railroad:r}}o(S,"createRailroadServices");export{p as a,S as b};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import{d as be,e as we}from"./chunk-ISO77HML.js";import{s as U}from"./chunk-QEEA3KYY.js";import{C as ke,I as G,L as Q,N as xe,O as me}from"./chunk-KT4VPQD5.js";import{b as N,d as R}from"./chunk-JRSH5GNS.js";import{a as g}from"./chunk-GYT4IYBZ.js";function Y(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=Y();function ze(t){S=t}var P={exec:()=>null};function k(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(b.caret,"$1"),n=n.replace(r,i),s},getRegex:()=>new RegExp(n,e)};return s}var et=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},tt=/^(?:[ \t]*(?:\n|$))+/,rt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,st=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,J=/(?:[*+-]|\d{1,9}[.)])/,Ae=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Le=k(Ae).replace(/bull/g,J).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),it=k(Ae).replace(/bull/g,J).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,at=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lt=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ot=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,J).getRegex(),O="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",re=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ct=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",re).replace("tag",O).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=k(ee).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),pt=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_e).getRegex(),ne={blockquote:pt,code:rt,def:lt,fences:nt,heading:st,hr:I,html:ct,lheading:Le,list:ot,newline:tt,paragraph:_e,table:P,text:at},ye=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex(),ht={...ne,lheading:it,table:ye,paragraph:k(ee).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ye).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O).getRegex()},ut={...ne,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",re).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(ee).replace("hr",I).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",Le).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ft=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ee=/^( {2,}|\\)\n(?!\s*$)/,dt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,F=/[\p{P}\p{S}]/u,se=/[\s\p{P}\p{S}]/u,Pe=/[^\s\p{P}\p{S}]/u,kt=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,se).getRegex(),Ie=/(?!~)[\p{P}\p{S}]/u,xt=/(?!~)[\s\p{P}\p{S}]/u,mt=/(?:[^\s\p{P}\p{S}]|~)/u,bt=k(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",et?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Be=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,wt=k(Be,"u").replace(/punct/g,F).getRegex(),yt=k(Be,"u").replace(/punct/g,Ie).getRegex(),Ce="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Tt=k(Ce,"gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,se).replace(/punct/g,F).getRegex(),$t=k(Ce,"gu").replace(/notPunctSpace/g,mt).replace(/punctSpace/g,xt).replace(/punct/g,Ie).getRegex(),St=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,se).replace(/punct/g,F).getRegex(),Rt=k(/\\(punct)/,"gu").replace(/punct/g,F).getRegex(),vt=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),zt=k(re).replace("(?:-->|$)","-->").getRegex(),At=k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",zt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),C=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Lt=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",C).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Me=k(/^!?\[(label)\]\[(ref)\]/).replace("label",C).replace("ref",te).getRegex(),qe=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",te).getRegex(),_t=k("reflink|nolink(?!\\()","g").replace("reflink",Me).replace("nolink",qe).getRegex(),Te=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ie={_backpedal:P,anyPunctuation:Rt,autolink:vt,blockSkip:bt,br:Ee,code:ft,del:P,emStrongLDelim:wt,emStrongRDelimAst:Tt,emStrongRDelimUnd:St,escape:gt,link:Lt,nolink:qe,punctuation:kt,reflink:Me,reflinkSearch:_t,tag:At,text:dt,url:P},Et={...ie,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",C).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",C).getRegex()},K={...ie,emStrongRDelimAst:$t,emStrongLDelim:yt,url:k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Te).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Te).getRegex()},Pt={...K,br:k(Ee).replace("{2,}","*").getRegex(),text:k(K.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},B={normal:ne,gfm:ht,pedantic:ut},L={normal:ie,gfm:K,breaks:Pt,pedantic:Et},It={"&":"&","<":"<",">":">",'"':""","'":"'"},$e=t=>It[t];function T(t,e){if(e){if(b.escapeTest.test(t))return t.replace(b.escapeReplace,$e)}else if(b.escapeTestNoEncode.test(t))return t.replace(b.escapeReplaceNoEncode,$e);return t}function Se(t){try{t=encodeURI(t).replace(b.percentDecode,"%")}catch{return null}return t}function Re(t,e){let n=t.replace(b.findPipe,(a,i,o)=>{let l=!1,c=i;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),s=n.split(b.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(b.slashPipe,"|");return s}function _(t,e,n){let s=t.length;if(s===0)return"";let r=0;for(;r<s;){let a=t.charAt(s-r-1);if(a===e&&!n)r++;else if(a!==e&&n)r++;else break}return t.slice(0,s-r)}function Bt(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function ve(t,e,n,s,r){let a=e.href,i=e.title||null,o=t[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,l}function Ct(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
|
|
3
|
+
`).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[o]=i;return o.length>=r.length?a.slice(r.length):a}).join(`
|
|
4
|
+
`)}var M=class{options;rules;lexer;constructor(t){this.options=t||S}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:_(n,`
|
|
5
|
+
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],s=Ct(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=_(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:_(e[0],`
|
|
6
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=_(e[0],`
|
|
7
|
+
`).split(`
|
|
8
|
+
`),s="",r="",a=[];for(;n.length>0;){let i=!1,o=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))o.push(n[l]),i=!0;else if(!i)o.push(n[l]);else break;n=n.slice(l);let c=o.join(`
|
|
9
|
+
`),p=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
10
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
11
|
+
${c}`:c,r=r?`${r}
|
|
12
|
+
${p}`:p;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,a,!0),this.lexer.state.top=h,n.length===0)break;let u=a.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let d=u,f=d.raw+`
|
|
13
|
+
`+n.join(`
|
|
14
|
+
`),m=this.blockquote(f);a[a.length-1]=m,s=s.substring(0,s.length-d.raw.length)+m.raw,r=r.substring(0,r.length-d.text.length)+m.text;break}else if(u?.type==="list"){let d=u,f=d.raw+`
|
|
15
|
+
`+n.join(`
|
|
16
|
+
`),m=this.list(f);a[a.length-1]=m,s=s.substring(0,s.length-u.raw.length)+m.raw,r=r.substring(0,r.length-d.raw.length)+m.raw,n=f.substring(a.at(-1).raw.length).split(`
|
|
17
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:a,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;t;){let l=!1,c="",p="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;c=e[0],t=t.substring(c.length);let h=e[2].split(`
|
|
18
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,D=>" ".repeat(3*D.length)),u=t.split(`
|
|
19
|
+
`,1)[0],d=!h.trim(),f=0;if(this.options.pedantic?(f=2,p=h.trimStart()):d?f=e[1].length+1:(f=e[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,p=h.slice(f),f+=e[1].length),d&&this.rules.other.blankLine.test(u)&&(c+=u+`
|
|
20
|
+
`,t=t.substring(u.length+1),l=!0),!l){let D=this.rules.other.nextBulletRegex(f),ge=this.rules.other.hrRegex(f),fe=this.rules.other.fencesBeginRegex(f),de=this.rules.other.headingBeginRegex(f),Je=this.rules.other.htmlBeginRegex(f);for(;t;){let H=t.split(`
|
|
21
|
+
`,1)[0],A;if(u=H,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),A=u):A=u.replace(this.rules.other.tabCharGlobal," "),fe.test(u)||de.test(u)||Je.test(u)||D.test(u)||ge.test(u))break;if(A.search(this.rules.other.nonSpaceChar)>=f||!u.trim())p+=`
|
|
22
|
+
`+A.slice(f);else{if(d||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||fe.test(h)||de.test(h)||ge.test(h))break;p+=`
|
|
23
|
+
`+u}!d&&!u.trim()&&(d=!0),c+=H+`
|
|
24
|
+
`,t=t.substring(H.length+1),h=A.slice(f)}}r.loose||(i?r.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(i=!0));let m=null,z;this.options.gfm&&(m=this.rules.other.listIsTask.exec(p),m&&(z=m[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:c,task:!!m,checked:z,loose:!1,text:p,tokens:[]}),r.raw+=c}let o=r.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let l=0;l<r.items.length;l++)if(this.lexer.state.top=!1,r.items[l].tokens=this.lexer.blockTokens(r.items[l].text,[]),!r.loose){let c=r.items[l].tokens.filter(h=>h.type==="space"),p=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));r.loose=p}if(r.loose)for(let l=0;l<r.items.length;l++)r.items[l].loose=!0;return r}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=Re(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
25
|
+
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let i of s)this.rules.other.tableAlignRight.test(i)?a.align.push("right"):this.rules.other.tableAlignCenter.test(i)?a.align.push("center"):this.rules.other.tableAlignLeft.test(i)?a.align.push("left"):a.align.push(null);for(let i=0;i<n.length;i++)a.header.push({text:n[i],tokens:this.lexer.inline(n[i]),header:!0,align:a.align[i]});for(let i of r)a.rows.push(Re(i,a.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[l]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let n=e[1].charAt(e[1].length-1)===`
|
|
26
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=_(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=Bt(e[2],"()");if(a===-2)return;if(a>-1){let i=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,i).trim(),e[3]=""}}let s=e[2],r="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],r=a[3])}else r=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),ve(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[s.toLowerCase()];if(!r){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return ve(n,r,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let r=[...s[0]].length-1,a,i,o=r,l=0,c=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+r);(s=c.exec(e))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(i=[...a].length,s[3]||s[4]){o+=i;continue}else if((s[5]||s[6])&&r%3&&!((r+i)%3)){l+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+l);let p=[...s[0]][0].length,h=t.slice(0,r+s.index+p+i);if(Math.min(r,i)%2){let d=h.slice(1,-1);return{type:"em",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}let u=h.slice(2,-2);return{type:"strong",raw:h,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},w=class X{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new M,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:b,block:B.normal,inline:L.normal};this.options.pedantic?(n.block=B.pedantic,n.inline=L.pedantic):this.options.gfm&&(n.block=B.gfm,this.options.breaks?n.inline=L.breaks:n.inline=L.gfm),this.tokenizer.rules=n}static get rules(){return{block:B,inline:L}}static lex(e,n){return new X(n).lex(e)}static lexInline(e,n){return new X(n).inlineTokens(e)}lex(e){e=e.replace(b.carriageReturn,`
|
|
27
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.options.pedantic&&(e=e.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(i=>(r=i.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let i=n.at(-1);r.raw.length===1&&i!==void 0?i.raw+=`
|
|
28
|
+
`:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
29
|
+
`)?"":`
|
|
30
|
+
`)+r.raw,i.text+=`
|
|
31
|
+
`+r.text,this.inlineQueue.at(-1).src=i.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let i=n.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
32
|
+
`)?"":`
|
|
33
|
+
`)+r.raw,i.text+=`
|
|
34
|
+
`+r.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);continue}let a=e;if(this.options.extensions?.startBlock){let i=1/0,o=e.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},o),typeof l=="number"&&l>=0&&(i=Math.min(i,l))}),i<1/0&&i>=0&&(a=e.substring(0,i+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a))){let i=n.at(-1);s&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
|
|
35
|
+
`)?"":`
|
|
36
|
+
`)+r.raw,i.text+=`
|
|
37
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(r),s=a.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let i=n.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
|
|
38
|
+
`)?"":`
|
|
39
|
+
`)+r.raw,i.text+=`
|
|
40
|
+
`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):n.push(r);continue}if(e){let i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let s=e,r=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)l.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,r.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)a=r[2]?r[2].length:0,s=s.slice(0,r.index+a)+"["+"a".repeat(r[0].length-a-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let i=!1,o="";for(;e;){i||(o=""),i=!1;let l;if(this.options.extensions?.inline?.some(p=>(l=p.call({lexer:this},e,n))?(e=e.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let p=n.at(-1);l.type==="text"&&p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(e,s,o)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),n.push(l);continue}let c=e;if(this.options.extensions?.startInline){let p=1/0,h=e.slice(1),u;this.options.extensions.startInline.forEach(d=>{u=d.call({lexer:this},h),typeof u=="number"&&u>=0&&(p=Math.min(p,u))}),p<1/0&&p>=0&&(c=e.substring(0,p+1))}if(l=this.tokenizer.inlineText(c)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),i=!0;let p=n.at(-1);p?.type==="text"?(p.raw+=l.raw,p.text+=l.text):n.push(l);continue}if(e){let p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}},q=class{options;parser;constructor(t){this.options=t||S}space(t){return""}code({text:t,lang:e,escaped:n}){let s=(e||"").match(b.notSpaceStart)?.[0],r=t.replace(b.endingNewline,"")+`
|
|
41
|
+
`;return s?'<pre><code class="language-'+T(s)+'">'+(n?r:T(r,!0))+`</code></pre>
|
|
42
|
+
`:"<pre><code>"+(n?r:T(r,!0))+`</code></pre>
|
|
43
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
44
|
+
${this.parser.parse(t)}</blockquote>
|
|
45
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
46
|
+
`}hr(t){return`<hr>
|
|
47
|
+
`}list(t){let e=t.ordered,n=t.start,s="";for(let i=0;i<t.items.length;i++){let o=t.items[i];s+=this.listitem(o)}let r=e?"ol":"ul",a=e&&n!==1?' start="'+n+'"':"";return"<"+r+a+`>
|
|
48
|
+
`+s+"</"+r+`>
|
|
49
|
+
`}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+T(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
|
|
50
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
51
|
+
`}table(t){let e="",n="";for(let r=0;r<t.header.length;r++)n+=this.tablecell(t.header[r]);e+=this.tablerow({text:n});let s="";for(let r=0;r<t.rows.length;r++){let a=t.rows[r];n="";for(let i=0;i<a.length;i++)n+=this.tablecell(a[i]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
52
|
+
<thead>
|
|
53
|
+
`+e+`</thead>
|
|
54
|
+
`+s+`</table>
|
|
55
|
+
`}tablerow({text:t}){return`<tr>
|
|
56
|
+
${t}</tr>
|
|
57
|
+
`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
|
58
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${T(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let s=this.parser.parseInline(n),r=Se(t);if(r===null)return s;t=r;let a='<a href="'+t+'"';return e&&(a+=' title="'+T(e)+'"'),a+=">"+s+"</a>",a}image({href:t,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let r=Se(t);if(r===null)return T(n);t=r;let a=`<img src="${t}" alt="${n}"`;return e&&(a+=` title="${T(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:T(t.text)}},ae=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},y=class V{options;renderer;textRenderer;constructor(e){this.options=e||S,this.options.renderer=this.options.renderer||new q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ae}static parse(e,n){return new V(n).parse(e)}static parseInline(e,n){return new V(n).parseInline(e)}parse(e,n=!0){let s="";for(let r=0;r<e.length;r++){let a=e[r];if(this.options.extensions?.renderers?.[a.type]){let o=a,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){s+=l||"";continue}}let i=a;switch(i.type){case"space":{s+=this.renderer.space(i);continue}case"hr":{s+=this.renderer.hr(i);continue}case"heading":{s+=this.renderer.heading(i);continue}case"code":{s+=this.renderer.code(i);continue}case"table":{s+=this.renderer.table(i);continue}case"blockquote":{s+=this.renderer.blockquote(i);continue}case"list":{s+=this.renderer.list(i);continue}case"html":{s+=this.renderer.html(i);continue}case"def":{s+=this.renderer.def(i);continue}case"paragraph":{s+=this.renderer.paragraph(i);continue}case"text":{let o=i,l=this.renderer.text(o);for(;r+1<e.length&&e[r+1].type==="text";)o=e[++r],l+=`
|
|
59
|
+
`+this.renderer.text(o);n?s+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):s+=l;continue}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(e,n=this.renderer){let s="";for(let r=0;r<e.length;r++){let a=e[r];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=o||"";continue}}let i=a;switch(i.type){case"escape":{s+=n.text(i);break}case"html":{s+=n.html(i);break}case"link":{s+=n.link(i);break}case"image":{s+=n.image(i);break}case"strong":{s+=n.strong(i);break}case"em":{s+=n.em(i);break}case"codespan":{s+=n.codespan(i);break}case"br":{s+=n.br(i);break}case"del":{s+=n.del(i);break}case"text":{s+=n.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},E=class{options;block;constructor(t){this.options=t||S}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?w.lex:w.lexInline}provideParser(){return this.block?y.parse:y.parseInline}},Mt=class{defaults=Y();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=y;Renderer=q;TextRenderer=ae;Lexer=w;Tokenizer=M;Hooks=E;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let s of t)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let r=s;for(let a of r.header)n=n.concat(this.walkTokens(a.tokens,e));for(let a of r.rows)for(let i of a)n=n.concat(this.walkTokens(i.tokens,e));break}case"list":{let r=s;n=n.concat(this.walkTokens(r.items,e));break}default:{let r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(a=>{let i=r[a].flat(1/0);n=n.concat(this.walkTokens(i,e))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let a=e.renderers[r.name];a?e.renderers[r.name]=function(...i){let o=r.renderer.apply(this,i);return o===!1&&(o=a.apply(this,i)),o}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[r.level];a?a.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),n.renderer){let r=this.defaults.renderer||new q(this.defaults);for(let a in n.renderer){if(!(a in r))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,o=n.renderer[i],l=r[i];r[i]=(...c)=>{let p=o.apply(r,c);return p===!1&&(p=l.apply(r,c)),p||""}}s.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new M(this.defaults);for(let a in n.tokenizer){if(!(a in r))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,o=n.tokenizer[i],l=r[i];r[i]=(...c)=>{let p=o.apply(r,c);return p===!1&&(p=l.apply(r,c)),p}}s.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new E;for(let a in n.hooks){if(!(a in r))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,o=n.hooks[i],l=r[i];E.passThroughHooks.has(a)?r[i]=c=>{if(this.defaults.async&&E.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await o.call(r,c);return l.call(r,h)})();let p=o.call(r,c);return l.call(r,p)}:r[i]=(...c)=>{if(this.defaults.async)return(async()=>{let h=await o.apply(r,c);return h===!1&&(h=await l.apply(r,c)),h})();let p=o.apply(r,c);return p===!1&&(p=l.apply(r,c)),p}}s.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,a=n.walkTokens;s.walkTokens=function(i){let o=[];return o.push(a.call(this,i)),r&&(o=o.concat(r.call(this,i))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return w.lex(t,e??this.defaults)}parser(t,e){return y.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let s={...n},r={...this.defaults,...s},a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return(async()=>{let i=r.hooks?await r.hooks.preprocess(e):e,o=await(r.hooks?await r.hooks.provideLexer():t?w.lex:w.lexInline)(i,r),l=r.hooks?await r.hooks.processAllTokens(o):o;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let c=await(r.hooks?await r.hooks.provideParser():t?y.parse:y.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(c):c})().catch(a);try{r.hooks&&(e=r.hooks.preprocess(e));let i=(r.hooks?r.hooks.provideLexer():t?w.lex:w.lexInline)(e,r);r.hooks&&(i=r.hooks.processAllTokens(i)),r.walkTokens&&this.walkTokens(i,r.walkTokens);let o=(r.hooks?r.hooks.provideParser():t?y.parse:y.parseInline)(i,r);return r.hooks&&(o=r.hooks.postprocess(o)),o}catch(i){return a(i)}}}onError(t,e){return n=>{if(n.message+=`
|
|
60
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+T(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},$=new Mt;function x(t,e){return $.parse(t,e)}x.options=x.setOptions=function(t){return $.setOptions(t),x.defaults=$.defaults,ze(x.defaults),x};x.getDefaults=Y;x.defaults=S;x.use=function(...t){return $.use(...t),x.defaults=$.defaults,ze(x.defaults),x};x.walkTokens=function(t,e){return $.walkTokens(t,e)};x.parseInline=$.parseInline;x.Parser=y;x.parser=y.parse;x.Renderer=q;x.TextRenderer=ae;x.Lexer=w;x.lexer=w.lex;x.Tokenizer=M;x.Hooks=E;x.parse=x;var Nt=x.options,Gt=x.setOptions,Qt=x.use,Ut=x.walkTokens,Kt=x.parseInline;var Xt=y.parse,Vt=w.lex;function Oe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var s=Array.from(typeof t=="string"?[t]:t);s[s.length-1]=s[s.length-1].replace(/\r?\n([\t ]*)$/,"");var r=s.reduce(function(o,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?o.concat(c.map(function(p){var h,u;return(u=(h=p.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&u!==void 0?u:0})):o},[]);if(r.length){var a=new RegExp(`
|
|
61
|
+
[ ]{`.concat(Math.min.apply(Math,r),"}"),"g");s=s.map(function(o){return o.replace(a,`
|
|
62
|
+
`)})}s[0]=s[0].replace(/^\r?\n/,"");var i=s[0];return e.forEach(function(o,l){var c=i.match(/(?:^|\n)( *)$/),p=c?c[1]:"",h=o;typeof o=="string"&&o.includes(`
|
|
63
|
+
`)&&(h=String(o).split(`
|
|
64
|
+
`).map(function(u,d){return d===0?u:"".concat(p).concat(u)}).join(`
|
|
65
|
+
`)),i+=h+s[l+1]}),i}var oe=typeof performance<"u"&&typeof performance.now=="function",v=g(()=>oe?performance.now():0,"now"),le="\u{1F9DC} ",qt="Mermaid render",Ot="Mermaid",Ft={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},pr=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{g(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,e){if(!this.enabled)return e();let n=v();try{return e()}finally{this.buckets[t]=(this.buckets[t]??0)+(v()-n)}}async tick(t,e){if(!this.enabled)return e();let n=v();try{return await e()}finally{this.buckets[t]=(this.buckets[t]??0)+(v()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let t=this.roots.at(-1),e=this.runLabel??t?.name;return t&&(this.records.push({label:e??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,e)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;let e={name:t,start:v(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(e):this.roots.push(e),this.stack.push(e),oe&&typeof performance.mark=="function")try{performance.mark(`${le}${t} \u25B6`)}catch{}}end(){if(!this.enabled)return;let t=this.stack.pop();if(!t)return;let e=v();if(t.duration=e-t.start,oe&&typeof performance.measure=="function")try{performance.measure(`${le}${t.name}`,{start:t.start,end:e,detail:{devtools:{dataType:"track-entry",track:qt,trackGroup:Ot,color:Ft[t.name]??"primary",tooltipText:`${t.name} \u2014 ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,e){if(!this.enabled)return e();this.begin(t);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),e){if(!t)return;let n=t.duration,s=e&&e!==t.name?`${t.name} [${e}]`:t.name,r=["ms % phase"],a=g((o,l)=>{let c=" ".repeat(l),p=o.duration.toFixed(1).padStart(8),h=n>0?`${(o.duration/n*100).toFixed(0).padStart(3)}%`:" -";r.push(`${p} ${h} ${c}${o.name}`);for(let u of o.children)a(u,l+1);if(o.children.length>0){let u=o.children.reduce((f,m)=>f+m.duration,0),d=o.duration-u;if(d>.5){let f=d.toFixed(1).padStart(8);r.push(`${f} ${c} (self)`)}}},"walk");a(t,0);let i=Object.keys(this.buckets);if(i.length>0){r.push("\u2014\u2014 buckets (summed) \u2014\u2014");for(let o of i)r.push(`${this.buckets[o].toFixed(1).padStart(8)} ${o}`)}console.log(`${le}mermaid render profile \xB7 ${s}
|
|
66
|
+
${r.join(`
|
|
67
|
+
`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};function je(t,{markdownAutoWrap:e}){let s=t.replace(/<br\/>/g,`
|
|
68
|
+
`).replace(/\n{2,}/g,`
|
|
69
|
+
`);return Oe(s)}g(je,"preprocessMarkdown");function We(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(n=>({content:n,type:"normal"}))??[])}g(We,"nonMarkdownToLines");function Ze(t,e={}){let n=je(t,e),s=x.lexer(n),r=[[]],a=0;function i(o,l="normal"){o.type==="text"?o.text.split(`
|
|
70
|
+
`).forEach((p,h)=>{h!==0&&(a++,r.push([])),p.split(" ").forEach(u=>{u=u.replace(/'/g,"'"),u&&r[a].push({content:u,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(c=>{i(c,o.type)}):o.type==="html"&&r[a].push({content:o.text,type:"normal"})}return g(i,"processNode"),s.forEach(o=>{o.type==="paragraph"?o.tokens?.forEach(l=>{i(l)}):o.type==="html"?r[a].push({content:o.text,type:"normal"}):r[a].push({content:o.raw,type:"normal"})}),r}g(Ze,"markdownToLines");function De(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}g(De,"nonMarkdownToHTML");function He(t,{markdownAutoWrap:e}={}){let n=x.lexer(t);function s(r){return r.type==="text"?e===!1?r.text.replace(/\n */g,"<br/>").replace(/ /g," "):r.text.replace(/\n */g,"<br/>"):r.type==="strong"?`<strong>${r.tokens?.map(s).join("")}</strong>`:r.type==="em"?`<em>${r.tokens?.map(s).join("")}</em>`:r.type==="paragraph"?`<p>${r.tokens?.map(s).join("")}</p>`:r.type==="space"?"":r.type==="html"?`${r.text}`:r.type==="escape"?r.text:(N.warn(`Unsupported markdown: ${r.type}`),r.raw)}return g(s,"output"),n.map(s).join("")}g(He,"markdownToHTML");var jt=(function(t){"use strict";var e=function(){},n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(c){return setTimeout(c,16)};function s(){var c=this;c.reads=[],c.writes=[],c.raf=n.bind(t),e("initialized",c)}g(s,"FastDom"),s.prototype={constructor:s,runTasks:g(function(c){e("run tasks");for(var p;p=c.shift();)p()},"runTasks"),measure:g(function(c,p){e("measure");var h=p?c.bind(p):c;return this.reads.push(h),r(this),h},"measure"),mutate:g(function(c,p){e("mutate");var h=p?c.bind(p):c;return this.writes.push(h),r(this),h},"mutate"),clear:g(function(c){return e("clear",c),i(this.reads,c)||i(this.writes,c)},"clear"),extend:g(function(c){if(e("extend",c),typeof c!="object")throw new Error("expected object");var p=Object.create(this);return o(p,c),p.fastdom=this,p.initialize&&p.initialize(),p},"extend"),catch:null};function r(c){c.scheduled||(c.scheduled=!0,c.raf(a.bind(null,c)),e("flush scheduled"))}g(r,"scheduleFlush");function a(c){e("flush");var p=c.writes,h=c.reads,u;try{e("flushing reads",h.length),c.runTasks(h),e("flushing writes",p.length),c.runTasks(p)}catch(d){u=d}if(c.scheduled=!1,(h.length||p.length)&&r(c),u)if(e("task errored",u.message),c.catch)c.catch(u);else throw u}g(a,"flush");function i(c,p){var h=c.indexOf(p);return!!~h&&!!c.splice(h,1)}g(i,"remove");function o(c,p){for(var h in p)p.hasOwnProperty(h)&&(c[h]=p[h])}g(o,"mixin");var l=t.fastdom=t.fastdom||new s;return l})(typeof window<"u"?window:globalThis),Ne={initialize:g(function(){this._tasks=new Map},"initialize"),mutate:g(function(t,e){return ce(this,"mutate",t,e)},"mutate"),measure:g(function(t,e){return ce(this,"measure",t,e)},"measure"),clear:g(function(t){var e=this._tasks,n=e.get(t);this.fastdom.clear(n),e.delete(t)},"clear")};function ce(t,e,n,s){var r=t._tasks,a=t.fastdom,i,o=new Promise(function(l,c){i=a[e](function(){r.delete(o);try{l(s?n.call(s):n())}catch(p){c(p)}},s)});return r.set(o,i),o}g(ce,"create");var{initialize:gr,mutate:fr,measure:dr,clear:kr}=Ne,Wt=Ne,Zt=jt.extend({raf(t){typeof queueMicrotask=="function"?queueMicrotask(t):setTimeout(t,0)}}).extend(Wt),Dt=Zt;function Ge(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}g(Ge,"splitTextToChars");function Qe(t,e){let n=Ge(e.content);return ue(t,[],n,e.type)}g(Qe,"splitWordToFitWidth");function ue(t,e,n,s){if(n.length===0)return[{content:e.join(""),type:s},{content:"",type:s}];let[r,...a]=n,i=[...e,r];return t([{content:i.join(""),type:s}])?ue(t,i,a,s):(e.length===0&&r&&(e.push(r),n.shift()),[{content:e.join(""),type:s},{content:n.join(""),type:s}])}g(ue,"splitWordToFitWidthRecursion");function Ue(t,e){if(t.some(({content:n})=>n.includes(`
|
|
71
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return j(t,e)}g(Ue,"splitLineToFitWidth");function j(t,e,n=[],s=[]){if(t.length===0)return s.length>0&&n.push(s),n.length>0?n:[];let r="";t[0].content===" "&&(r=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},i=[...s];if(r!==""&&i.push({content:r,type:"normal"}),i.push(a),e(i))return j(t,e,n,i);if(s.length>0)n.push(s),t.unshift(a);else if(a.content){let[o,l]=Qe(e,a);n.push([o]),l.content&&t.unshift(l)}return j(t,e,n)}g(j,"splitLineToFitWidthRecursion");function pe(t,e){e&&t.attr("style",e)}g(pe,"applyStyle");var Fe=16384;async function Ke(t,e,n,s,r=!1,a=ke(),i=0){let o=t.append("foreignObject");o.attr("width",`${Math.min(10*n,Fe)}px`),o.attr("height",`${Math.min(10*n,Fe)}px`);let l=o.append("xhtml:div"),c=Q(e.label)?await xe(e.label.replace(me.lineBreakRegex,`
|
|
72
|
+
`),a):G(e.label,a),p=e.isNode?"nodeLabel":"edgeLabel",h=l.append("span");h.html(c),pe(h,e.labelStyle),h.attr("class",`${p} ${s}`),pe(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),n!==Number.POSITIVE_INFINITY&&(l.style("max-width",n+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),r&&l.attr("class","labelBkg");let u=await Dt.measure(()=>l.node().getBoundingClientRect());return u.width===n?(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",n+"px")):u.width<i&&(l.style("display","table"),l.style("width",i+"px"),l.style("text-align","center")),o.node()}g(Ke,"addHtmlSpan");function W(t,e,n,s=!1){let r=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em");return s&&r.attr("text-anchor","middle"),r}g(W,"createTspan");function Xe(t,e,n){let s=t.append("text"),r=W(s,1,e);Z(r,n);let a=r.node().getComputedTextLength();return s.remove(),a}g(Xe,"computeWidthOfText");function Ht(t,e,n){let s=t.append("text"),r=W(s,1,e);Z(r,[{content:n,type:"normal"}]);let a=r.node()?.getBoundingClientRect();return a&&s.remove(),a}g(Ht,"computeDimensionOfText");function Ve(t,e,n,s=!1,r=!1){let i=e.append("g"),o=i.insert("rect").attr("class","background").attr("style","stroke: none"),l=i.append("text").attr("y","-10.1");r&&l.attr("text-anchor","middle");let c=0;for(let p of n){let h=g(d=>Xe(i,1.1,d)<=t,"checkWidth"),u=h(p)?[p]:Ue(p,h);for(let d of u){let f=W(l,c,1.1,r);Z(f,d),c++}}if(s){let p=l.node().getBBox(),h=2;return o.attr("x",p.x-h).attr("y",p.y-h).attr("width",p.width+2*h).attr("height",p.height+2*h),i.node()}else return l.node()}g(Ve,"createFormattedText");function he(t){let e=/&(amp|lt|gt);/g;return t.replace(e,(n,s)=>{switch(s){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return n}})}g(he,"decodeHTMLEntities");function Z(t,e){t.text(""),e.forEach((n,s)=>{let r=t.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");s===0?r.text(he(n.content)):r.text(" "+he(n.content))})}g(Z,"updateTextContentAndStyles");async function Ye(t,e={}){let n=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(r,a,i)=>(n.push((async()=>{let o=`${a}:${i}`;return await be(o)?await we(o,void 0,{class:"label-icon"}):`<i class='${G(r,e).replace(":"," ")}'></i>`})()),r));let s=await Promise.all(n);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>s.shift()??"")}g(Ye,"replaceIconSubstring");var mr=g(async(t,e="",{style:n="",isTitle:s=!1,classes:r="",useHtmlLabels:a=!0,markdown:i=!0,isNode:o=!0,width:l=200,minWidth:c=0,addSvgBackground:p=!1}={},h)=>{if(N.debug("XYZ createText",e,n,s,r,a,o,"addSvgBackground: ",p),a){let u=i?He(e,h):De(e),d=await Ye(U(u),h),f=e.replace(/\\\\/g,"\\"),m={isNode:o,label:Q(e)?f:d,labelStyle:n.replace("fill:","color:")};return await Ke(t,m,l,r,p,h,c)}else{let u=U(e.replace(/<br\s*\/?>/g,"<br/>")),d=i?Ze(u.replace("<br>","<br/>"),h):We(u),f=Ve(l,t,d,e?p:!1,!o);if(o){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));let m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");R(f).attr("style",m)}else{let m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");R(f).select("rect").attr("style",m.replace(/background:/g,"fill:"));let z=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");R(f).select("text").attr("style",z)}return s?R(f).selectAll("tspan.text-outer-tspan").classed("title-row",!0):R(f).selectAll("tspan.text-outer-tspan").classed("row",!0),f}},"createText");export{Oe as a,Ze as b,Dt as c,Ht as d,mr as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as d,c as o,d as a,e as n,g as u,o as i,x as l,y as s}from"./chunk-LT6LXKCR.js";var m=class extends s{static{e(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},v={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function R(c=n){let r=a(o(c),u),t=a(d({shared:r}),i,v);return r.ServiceRegistry.register(t),{shared:r,Radar:t}}e(R,"createRadarServices");export{v as a,R as b};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{a as r}from"./chunk-GYT4IYBZ.js";function $n(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}r($n,"getDefaultExportFromCjs");var P={},Pe={},le={},_n;function Ae(){if(_n)return le;_n=1;function w(d){return typeof d>"u"||d===null}r(w,"isNothing");function x(d){return typeof d=="object"&&d!==null}r(x,"isObject");function _(d){return Array.isArray(d)?d:w(d)?[]:[d]}r(_,"toArray");function k(d,s){if(s){let C=Object.keys(s);for(let t=0,f=C.length;t<f;t+=1){let T=C[t];d[T]=s[T]}}return d}r(k,"extend");function h(d,s){let C="";for(let t=0;t<s;t+=1)C+=d;return C}r(h,"repeat");function A(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return r(A,"isNegativeZero"),le.isNothing=w,le.isObject=x,le.toArray=_,le.repeat=h,le.isNegativeZero=A,le.extend=k,le}r(Ae,"requireCommon");var Be,In;function ye(){if(In)return Be;In=1;function w(_,k){let h="",A=_.reason||"(unknown reason)";return _.mark?(_.mark.name&&(h+='in "'+_.mark.name+'" '),h+="("+(_.mark.line+1)+":"+(_.mark.column+1)+")",!k&&_.mark.snippet&&(h+=`
|
|
2
|
+
|
|
3
|
+
`+_.mark.snippet),A+" "+h):A}r(w,"formatError");function x(_,k){Error.call(this),this.name="YAMLException",this.reason=_,this.mark=k,this.message=w(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return r(x,"YAMLException2"),x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x.prototype.toString=r(function(k){return this.name+": "+w(this,k)},"toString"),Be=x,Be}r(ye,"requireException");var He,kn;function Zn(){if(kn)return He;kn=1;let w=Ae();function x(h,A,d,s,C){let t="",f="",T=Math.floor(C/2)-1;return s-A>T&&(t=" ... ",A=s-T+t.length),d-s>T&&(f=" ...",d=s+T-f.length),{str:t+h.slice(A,d).replace(/\t/g,"\u2192")+f,pos:s-A+t.length}}r(x,"getLine");function _(h,A){return w.repeat(" ",A-h.length)+h}r(_,"padStart");function k(h,A){if(A=Object.create(A||null),!h.buffer)return null;A.maxLength||(A.maxLength=79),typeof A.indent!="number"&&(A.indent=1),typeof A.linesBefore!="number"&&(A.linesBefore=3),typeof A.linesAfter!="number"&&(A.linesAfter=2);let d=/\r?\n|\r|\0/g,s=[0],C=[],t,f=-1;for(;t=d.exec(h.buffer);)C.push(t.index),s.push(t.index+t[0].length),h.position<=t.index&&f<0&&(f=s.length-2);f<0&&(f=s.length-1);let T="",O=Math.min(h.line+A.linesAfter,C.length).toString().length,N=A.maxLength-(A.indent+O+3);for(let q=1;q<=A.linesBefore&&!(f-q<0);q++){let U=x(h.buffer,s[f-q],C[f-q],h.position-(s[f]-s[f-q]),N);T=w.repeat(" ",A.indent)+_((h.line-q+1).toString(),O)+" | "+U.str+`
|
|
4
|
+
`+T}let $=x(h.buffer,s[f],C[f],h.position,N);T+=w.repeat(" ",A.indent)+_((h.line+1).toString(),O)+" | "+$.str+`
|
|
5
|
+
`,T+=w.repeat("-",A.indent+O+3+$.pos)+`^
|
|
6
|
+
`;for(let q=1;q<=A.linesAfter&&!(f+q>=C.length);q++){let U=x(h.buffer,s[f+q],C[f+q],h.position-(s[f]-s[f+q]),N);T+=w.repeat(" ",A.indent)+_((h.line+q+1).toString(),O)+" | "+U.str+`
|
|
7
|
+
`}return T.replace(/\n$/,"")}return r(k,"makeSnippet"),He=k,He}r(Zn,"requireSnippet");var je,Ln;function D(){if(Ln)return je;Ln=1;let w=ye(),x=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_=["scalar","sequence","mapping"];function k(A){let d={};return A!==null&&Object.keys(A).forEach(function(s){A[s].forEach(function(C){d[String(C)]=s})}),d}r(k,"compileStyleAliases");function h(A,d){if(d=d||{},Object.keys(d).forEach(function(s){if(x.indexOf(s)===-1)throw new w('Unknown option "'+s+'" is met in definition of "'+A+'" YAML type.')}),this.options=d,this.tag=A,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(s){return s},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.representName=d.representName||null,this.defaultStyle=d.defaultStyle||null,this.multi=d.multi||!1,this.styleAliases=k(d.styleAliases||null),_.indexOf(this.kind)===-1)throw new w('Unknown kind "'+this.kind+'" is specified for "'+A+'" YAML type.')}return r(h,"Type2"),je=h,je}r(D,"requireType");var Ue,On;function fn(){if(On)return Ue;On=1;let w=ye(),x=D();function _(A,d){let s=[];return A[d].forEach(function(C){let t=s.length;s.forEach(function(f,T){f.tag===C.tag&&f.kind===C.kind&&f.multi===C.multi&&(t=T)}),s[t]=C}),s}r(_,"compileList");function k(){let A={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function d(s){s.multi?(A.multi[s.kind].push(s),A.multi.fallback.push(s)):A[s.kind][s.tag]=A.fallback[s.tag]=s}r(d,"collectType");for(let s=0,C=arguments.length;s<C;s+=1)arguments[s].forEach(d);return A}r(k,"compileMap");function h(A){return this.extend(A)}return r(h,"Schema2"),h.prototype.extend=r(function(d){let s=[],C=[];if(d instanceof x)C.push(d);else if(Array.isArray(d))C=C.concat(d);else if(d&&(Array.isArray(d.implicit)||Array.isArray(d.explicit)))d.implicit&&(s=s.concat(d.implicit)),d.explicit&&(C=C.concat(d.explicit));else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(f){if(!(f instanceof x))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(f.loadKind&&f.loadKind!=="scalar")throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(f.multi)throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),C.forEach(function(f){if(!(f instanceof x))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let t=Object.create(h.prototype);return t.implicit=(this.implicit||[]).concat(s),t.explicit=(this.explicit||[]).concat(C),t.compiledImplicit=_(t,"implicit"),t.compiledExplicit=_(t,"explicit"),t.compiledTypeMap=k(t.compiledImplicit,t.compiledExplicit),t},"extend"),Ue=h,Ue}r(fn,"requireSchema");var Ke,vn;function an(){if(vn)return Ke;vn=1;let w=D();return Ke=new w("tag:yaml.org,2002:str",{kind:"scalar",construct:r(function(x){return x!==null?x:""},"construct")}),Ke}r(an,"requireStr");var We,Mn;function pn(){if(Mn)return We;Mn=1;let w=D();return We=new w("tag:yaml.org,2002:seq",{kind:"sequence",construct:r(function(x){return x!==null?x:[]},"construct")}),We}r(pn,"requireSeq");var Ge,Nn;function sn(){if(Nn)return Ge;Nn=1;let w=D();return Ge=new w("tag:yaml.org,2002:map",{kind:"mapping",construct:r(function(x){return x!==null?x:{}},"construct")}),Ge}r(sn,"requireMap");var Qe,Rn;function hn(){if(Rn)return Qe;Rn=1;let w=fn();return Qe=new w({explicit:[an(),pn(),sn()]}),Qe}r(hn,"requireFailsafe");var Ve,qn;function dn(){if(qn)return Ve;qn=1;let w=D();function x(h){if(h===null)return!0;let A=h.length;return A===1&&h==="~"||A===4&&(h==="null"||h==="Null"||h==="NULL")}r(x,"resolveYamlNull");function _(){return null}r(_,"constructYamlNull");function k(h){return h===null}return r(k,"isNull"),Ve=new w("tag:yaml.org,2002:null",{kind:"scalar",resolve:x,construct:_,predicate:k,represent:{canonical:r(function(){return"~"},"canonical"),lowercase:r(function(){return"null"},"lowercase"),uppercase:r(function(){return"NULL"},"uppercase"),camelcase:r(function(){return"Null"},"camelcase"),empty:r(function(){return""},"empty")},defaultStyle:"lowercase"}),Ve}r(dn,"require_null");var Je,Fn;function mn(){if(Fn)return Je;Fn=1;let w=D();function x(h){if(h===null)return!1;let A=h.length;return A===4&&(h==="true"||h==="True"||h==="TRUE")||A===5&&(h==="false"||h==="False"||h==="FALSE")}r(x,"resolveYamlBoolean");function _(h){return h==="true"||h==="True"||h==="TRUE"}r(_,"constructYamlBoolean");function k(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return r(k,"isBoolean"),Je=new w("tag:yaml.org,2002:bool",{kind:"scalar",resolve:x,construct:_,predicate:k,represent:{lowercase:r(function(h){return h?"true":"false"},"lowercase"),uppercase:r(function(h){return h?"TRUE":"FALSE"},"uppercase"),camelcase:r(function(h){return h?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Je}r(mn,"requireBool");var Xe,Yn;function gn(){if(Yn)return Xe;Yn=1;let w=Ae(),x=D();function _(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}r(_,"isHexCode");function k(t){return t>=48&&t<=55}r(k,"isOctCode");function h(t){return t>=48&&t<=57}r(h,"isDecCode");function A(t){if(t===null)return!1;let f=t.length,T=0,O=!1;if(!f)return!1;let N=t[T];if((N==="-"||N==="+")&&(N=t[++T]),N==="0"){if(T+1===f)return!0;if(N=t[++T],N==="b"){for(T++;T<f;T++){if(N=t[T],N!=="0"&&N!=="1")return!1;O=!0}return O&&isFinite(d(t))}if(N==="x"){for(T++;T<f;T++){if(!_(t.charCodeAt(T)))return!1;O=!0}return O&&isFinite(d(t))}if(N==="o"){for(T++;T<f;T++){if(!k(t.charCodeAt(T)))return!1;O=!0}return O&&isFinite(d(t))}}for(;T<f;T++){if(!h(t.charCodeAt(T)))return!1;O=!0}return O?isFinite(d(t)):!1}r(A,"resolveYamlInteger");function d(t){let f=t,T=1,O=f[0];if((O==="-"||O==="+")&&(O==="-"&&(T=-1),f=f.slice(1),O=f[0]),f==="0")return 0;if(O==="0"){if(f[1]==="b")return T*parseInt(f.slice(2),2);if(f[1]==="x")return T*parseInt(f.slice(2),16);if(f[1]==="o")return T*parseInt(f.slice(2),8)}return T*parseInt(f,10)}r(d,"parseYamlInteger");function s(t){return d(t)}r(s,"constructYamlInteger");function C(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!w.isNegativeZero(t)}return r(C,"isInteger"),Xe=new x("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:s,predicate:C,represent:{binary:r(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:r(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:r(function(t){return t.toString(10)},"decimal"),hexadecimal:r(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Xe}r(gn,"requireInt");var $e,Pn;function An(){if(Pn)return $e;Pn=1;let w=Ae(),x=D(),_=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),k=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h(t){return t===null||!_.test(t)?!1:isFinite(parseFloat(t,10))?!0:k.test(t)}r(h,"resolveYamlFloat");function A(t){let f=t.toLowerCase(),T=f[0]==="-"?-1:1;return"+-".indexOf(f[0])>=0&&(f=f.slice(1)),f===".inf"?T===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:f===".nan"?NaN:T*parseFloat(f,10)}r(A,"constructYamlFloat");let d=/^[-+]?[0-9]+e/;function s(t,f){if(isNaN(t))switch(f){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(f){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(f){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w.isNegativeZero(t))return"-0.0";let T=t.toString(10);return d.test(T)?T.replace("e",".e"):T}r(s,"representYamlFloat");function C(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||w.isNegativeZero(t))}return r(C,"isFloat"),$e=new x("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:A,predicate:C,represent:s,defaultStyle:"lowercase"}),$e}r(An,"requireFloat");var Ze,Dn;function yn(){return Dn||(Dn=1,Ze=hn().extend({implicit:[dn(),mn(),gn(),An()]})),Ze}r(yn,"requireJson");var ze,Bn;function Sn(){return Bn||(Bn=1,ze=yn()),ze}r(Sn,"requireCore");var en,Hn;function Cn(){if(Hn)return en;Hn=1;let w=D(),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function k(d){return d===null?!1:x.exec(d)!==null||_.exec(d)!==null}r(k,"resolveYamlTimestamp");function h(d){let s=0,C=null,t=x.exec(d);if(t===null&&(t=_.exec(d)),t===null)throw new Error("Date resolve error");let f=+t[1],T=+t[2]-1,O=+t[3];if(!t[4])return new Date(Date.UTC(f,T,O));let N=+t[4],$=+t[5],q=+t[6];if(t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}if(t[9]){let Z=+t[10],B=+(t[11]||0);C=(Z*60+B)*6e4,t[9]==="-"&&(C=-C)}let U=new Date(Date.UTC(f,T,O,N,$,q,s));return C&&U.setTime(U.getTime()-C),U}r(h,"constructYamlTimestamp");function A(d){return d.toISOString()}return r(A,"representYamlTimestamp"),en=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:k,construct:h,instanceOf:Date,represent:A}),en}r(Cn,"requireTimestamp");var nn,jn;function Tn(){if(jn)return nn;jn=1;let w=D();function x(_){return _==="<<"||_===null}return r(x,"resolveYamlMerge"),nn=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:x}),nn}r(Tn,"requireMerge");var rn,Un;function wn(){if(Un)return rn;Un=1;let w=D(),x=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8
|
+
\r`;function _(d){if(d===null)return!1;let s=0,C=d.length,t=x;for(let f=0;f<C;f++){let T=t.indexOf(d.charAt(f));if(!(T>64)){if(T<0)return!1;s+=6}}return s%8===0}r(_,"resolveYamlBinary");function k(d){let s=d.replace(/[\r\n=]/g,""),C=s.length,t=x,f=0,T=[];for(let N=0;N<C;N++)N%4===0&&N&&(T.push(f>>16&255),T.push(f>>8&255),T.push(f&255)),f=f<<6|t.indexOf(s.charAt(N));let O=C%4*6;return O===0?(T.push(f>>16&255),T.push(f>>8&255),T.push(f&255)):O===18?(T.push(f>>10&255),T.push(f>>2&255)):O===12&&T.push(f>>4&255),new Uint8Array(T)}r(k,"constructYamlBinary");function h(d){let s="",C=0,t=d.length,f=x;for(let O=0;O<t;O++)O%3===0&&O&&(s+=f[C>>18&63],s+=f[C>>12&63],s+=f[C>>6&63],s+=f[C&63]),C=(C<<8)+d[O];let T=t%3;return T===0?(s+=f[C>>18&63],s+=f[C>>12&63],s+=f[C>>6&63],s+=f[C&63]):T===2?(s+=f[C>>10&63],s+=f[C>>4&63],s+=f[C<<2&63],s+=f[64]):T===1&&(s+=f[C>>2&63],s+=f[C<<4&63],s+=f[64],s+=f[64]),s}r(h,"representYamlBinary");function A(d){return Object.prototype.toString.call(d)==="[object Uint8Array]"}return r(A,"isBinary"),rn=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_,construct:k,predicate:A,represent:h}),rn}r(wn,"requireBinary");var ln,Kn;function xn(){if(Kn)return ln;Kn=1;let w=D(),x=Object.prototype.hasOwnProperty,_=Object.prototype.toString;function k(A){if(A===null)return!0;let d={},s=A;for(let C=0,t=s.length;C<t;C+=1){let f=s[C],T=!1;if(_.call(f)!=="[object Object]")return!1;let O;for(O in f)if(x.call(f,O))if(!T)T=!0;else return!1;if(!T||x.call(d,O))return!1;Object.defineProperty(d,O,{value:!0})}return!0}r(k,"resolveYamlOmap");function h(A){return A!==null?A:[]}return r(h,"constructYamlOmap"),ln=new w("tag:yaml.org,2002:omap",{kind:"sequence",resolve:k,construct:h}),ln}r(xn,"requireOmap");var on,Wn;function bn(){if(Wn)return on;Wn=1;let w=D(),x=Object.prototype.toString;function _(h){if(h===null)return!0;let A=h,d=new Array(A.length);for(let s=0,C=A.length;s<C;s+=1){let t=A[s];if(x.call(t)!=="[object Object]")return!1;let f=Object.keys(t);if(f.length!==1)return!1;d[s]=[f[0],t[f[0]]]}return!0}r(_,"resolveYamlPairs");function k(h){if(h===null)return[];let A=h,d=new Array(A.length);for(let s=0,C=A.length;s<C;s+=1){let t=A[s],f=Object.keys(t);d[s]=[f[0],t[f[0]]]}return d}return r(k,"constructYamlPairs"),on=new w("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_,construct:k}),on}r(bn,"requirePairs");var tn,Gn;function En(){if(Gn)return tn;Gn=1;let w=D(),x=Object.prototype.hasOwnProperty;function _(h){if(h===null)return!0;let A=h;for(let d in A)if(x.call(A,d)&&A[d]!==null)return!1;return!0}r(_,"resolveYamlSet");function k(h){return h!==null?h:{}}return r(k,"constructYamlSet"),tn=new w("tag:yaml.org,2002:set",{kind:"mapping",resolve:_,construct:k}),tn}r(En,"requireSet");var cn,Qn;function De(){return Qn||(Qn=1,cn=Sn().extend({implicit:[Cn(),Tn()],explicit:[wn(),xn(),bn(),En()]})),cn}r(De,"require_default");var Vn;function zn(){if(Vn)return Pe;Vn=1;let w=Ae(),x=ye(),_=Zn(),k=De(),h=Object.prototype.hasOwnProperty,A=1,d=2,s=3,C=4,t=1,f=2,T=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,N=/[\x85\u2028\u2029]/,$=/[,\[\]{}]/,q=/^(?:!|!!|![0-9A-Za-z-]+!)$/,U=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function Z(e){return Object.prototype.toString.call(e)}r(Z,"_class");function B(e){return e===10||e===13}r(B,"isEol");function H(e){return e===9||e===32}r(H,"isWhiteSpace");function Y(e){return e===9||e===32||e===10||e===13}r(Y,"isWsOrEol");function J(e){return e===44||e===91||e===93||e===123||e===125}r(J,"isFlowIndicator");function Ne(e){if(e>=48&&e<=57)return e-48;let i=e|32;return i>=97&&i<=102?i-97+10:-1}r(Ne,"fromHexCode");function Re(e){return e===120?2:e===117?4:e===85?8:0}r(Re,"escapedHexLen");function Se(e){return e>=48&&e<=57?e-48:-1}r(Se,"fromDecimalCode");function fe(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
9
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}r(fe,"simpleEscapeSequence");function qe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}r(qe,"charFromCodepoint");function ae(e,i,a){i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[i]=a}r(ae,"setProperty");let Fe=new Array(256),Ce=new Array(256);for(let e=0;e<256;e++)Fe[e]=fe(e)?1:0,Ce[e]=fe(e);function F(e,i){this.input=e,this.filename=i.filename||null,this.schema=i.schema||k,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.maxDepth=typeof i.maxDepth=="number"?i.maxDepth:100,this.maxTotalMergeKeys=typeof i.maxTotalMergeKeys=="number"?i.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}r(F,"State");function Te(e,i){let a={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return a.snippet=_(a),new x(i,a)}r(Te,"generateError");function E(e,i){throw Te(e,i)}r(E,"throwError");function z(e,i){e.onWarning&&e.onWarning.call(null,Te(e,i))}r(z,"throwWarning");function W(e,i,a){let p=e.anchorMapTransactions;if(p.length!==0){let c=p[p.length-1];h.call(c,i)||(c[i]={existed:h.call(e.anchorMap,i),value:e.anchorMap[i]})}e.anchorMap[i]=a}r(W,"storeAnchor");function Ye(e){e.anchorMapTransactions.push(Object.create(null))}r(Ye,"beginAnchorTransaction");function ee(e){let i=e.anchorMapTransactions.pop(),a=e.anchorMapTransactions;if(a.length===0)return;let p=a[a.length-1],c=Object.keys(i);for(let n=0,l=c.length;n<l;n+=1){let o=c[n];h.call(p,o)||(p[o]=i[o])}}r(ee,"commitAnchorTransaction");function we(e){let i=e.anchorMapTransactions.pop(),a=Object.keys(i);for(let p=a.length-1;p>=0;p-=1){let c=i[a[p]];c.existed?e.anchorMap[a[p]]=c.value:delete e.anchorMap[a[p]]}}r(we,"rollbackAnchorTransaction");function oe(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}r(oe,"snapshotState");function ne(e,i){e.position=i.position,e.line=i.line,e.lineStart=i.lineStart,e.lineIndent=i.lineIndent,e.firstTabInLine=i.firstTabInLine,e.tag=i.tag,e.anchor=i.anchor,e.kind=i.kind,e.result=i.result}r(ne,"restoreState");let xe={YAML:r(function(i,a,p){i.version!==null&&E(i,"duplication of %YAML directive"),p.length!==1&&E(i,"YAML directive accepts exactly one argument");let c=/^([0-9]+)\.([0-9]+)$/.exec(p[0]);c===null&&E(i,"ill-formed argument of the YAML directive");let n=parseInt(c[1],10),l=parseInt(c[2],10);n!==1&&E(i,"unacceptable YAML version of the document"),i.version=p[0],i.checkLineBreaks=l<2,l!==1&&l!==2&&z(i,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:r(function(i,a,p){let c;p.length!==2&&E(i,"TAG directive accepts exactly two arguments");let n=p[0];c=p[1],q.test(n)||E(i,"ill-formed tag handle (first argument) of the TAG directive"),h.call(i.tagMap,n)&&E(i,'there is a previously declared suffix for "'+n+'" tag handle'),U.test(c)||E(i,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch{E(i,"tag prefix is malformed: "+c)}i.tagMap[n]=c},"handleTagDirective")};function j(e,i,a,p){if(i<a){let c=e.input.slice(i,a);if(p)for(let n=0,l=c.length;n<l;n+=1){let o=c.charCodeAt(n);o===9||o>=32&&o<=1114111||E(e,"expected valid JSON character")}else O.test(c)&&E(e,"the stream contains non-printable characters");e.result+=c}}r(j,"captureSegment");function Q(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&E(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}r(Q,"chargeMergeWork");function te(e,i,a,p){w.isObject(a)||E(e,"cannot merge mappings; the provided source object is unacceptable"),Q(e);let c=Object.keys(a);for(let n=0,l=c.length;n<l;n+=1){let o=c[n];Q(e),h.call(i,o)||(ae(i,o,a[o]),p[o]=!0)}}r(te,"mergeMappings");function G(e,i,a,p,c,n,l,o,m){if(Array.isArray(c)){c=Array.prototype.slice.call(c);for(let g=0,y=c.length;g<y;g+=1)Array.isArray(c[g])&&E(e,"nested arrays are not supported inside keys"),typeof c=="object"&&Z(c[g])==="[object Object]"&&(c[g]="[object Object]")}if(typeof c=="object"&&Z(c)==="[object Object]"&&(c="[object Object]"),c=String(c),i===null&&(i={}),p==="tag:yaml.org,2002:merge")if(Array.isArray(n)){n.length>100&&E(e,"abnormal merge sequence size");for(let g=0,y=n.length;g<y;g+=1)te(e,i,n[g],a)}else te(e,i,n,a);else!e.json&&!h.call(a,c)&&h.call(i,c)&&(e.line=l||e.line,e.lineStart=o||e.lineStart,e.position=m||e.position,E(e,"duplicated mapping key")),ae(i,c,n),delete a[c];return i}r(G,"storeMappingPair");function ce(e){let i=e.input.charCodeAt(e.position);i===10?e.position++:i===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):E(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}r(ce,"readLineBreak");function R(e,i,a){let p=0,c=e.input.charCodeAt(e.position);for(;c!==0;){for(;H(c);)c===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),c=e.input.charCodeAt(++e.position);if(i&&c===35)do c=e.input.charCodeAt(++e.position);while(c!==10&&c!==13&&c!==0);if(B(c))for(ce(e),c=e.input.charCodeAt(e.position),p++,e.lineIndent=0;c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);else break}return a!==-1&&p!==0&&e.lineIndent<a&&z(e,"deficient indentation"),p}r(R,"skipSeparationSpace");function K(e){let i=e.position,a=e.input.charCodeAt(i);return!!((a===45||a===46)&&a===e.input.charCodeAt(i+1)&&a===e.input.charCodeAt(i+2)&&(i+=3,a=e.input.charCodeAt(i),a===0||Y(a)))}r(K,"testDocumentSeparator");function ie(e,i){i===1?e.result+=" ":i>1&&(e.result+=w.repeat(`
|
|
10
|
+
`,i-1))}r(ie,"writeFoldedLines");function be(e,i,a){let p,c,n,l,o,m,g=e.kind,y=e.result,u=e.input.charCodeAt(e.position);if(Y(u)||J(u)||u===35||u===38||u===42||u===33||u===124||u===62||u===39||u===34||u===37||u===64||u===96)return!1;if(u===63||u===45){let S=e.input.charCodeAt(e.position+1);if(Y(S)||a&&J(S))return!1}for(e.kind="scalar",e.result="",p=c=e.position,n=!1;u!==0;){if(u===58){let S=e.input.charCodeAt(e.position+1);if(Y(S)||a&&J(S))break}else if(u===35){let S=e.input.charCodeAt(e.position-1);if(Y(S))break}else{if(e.position===e.lineStart&&K(e)||a&&J(u))break;if(B(u))if(l=e.line,o=e.lineStart,m=e.lineIndent,R(e,!1,-1),e.lineIndent>=i){n=!0,u=e.input.charCodeAt(e.position);continue}else{e.position=c,e.line=l,e.lineStart=o,e.lineIndent=m;break}}n&&(j(e,p,c,!1),ie(e,e.line-l),p=c=e.position,n=!1),H(u)||(c=e.position+1),u=e.input.charCodeAt(++e.position)}return j(e,p,c,!1),e.result?!0:(e.kind=g,e.result=y,!1)}r(be,"readPlainScalar");function pe(e,i){let a,p,c=e.input.charCodeAt(e.position);if(c!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=p=e.position;(c=e.input.charCodeAt(e.position))!==0;)if(c===39)if(j(e,a,e.position,!0),c=e.input.charCodeAt(++e.position),c===39)a=e.position,e.position++,p=e.position;else return!0;else B(c)?(j(e,a,p,!0),ie(e,R(e,!1,i)),a=p=e.position):e.position===e.lineStart&&K(e)?E(e,"unexpected end of the document within a single quoted scalar"):(e.position++,H(c)||(p=e.position));E(e,"unexpected end of the stream within a single quoted scalar")}r(pe,"readSingleQuotedScalar");function Ee(e,i){let a,p,c,n=e.input.charCodeAt(e.position);if(n!==34)return!1;for(e.kind="scalar",e.result="",e.position++,a=p=e.position;(n=e.input.charCodeAt(e.position))!==0;){if(n===34)return j(e,a,e.position,!0),e.position++,!0;if(n===92){if(j(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),B(n))R(e,!1,i);else if(n<256&&Fe[n])e.result+=Ce[n],e.position++;else if((c=Re(n))>0){let l=c,o=0;for(;l>0;l--)n=e.input.charCodeAt(++e.position),(c=Ne(n))>=0?o=(o<<4)+c:E(e,"expected hexadecimal character");e.result+=qe(o),e.position++}else E(e,"unknown escape sequence");a=p=e.position}else B(n)?(j(e,a,p,!0),ie(e,R(e,!1,i)),a=p=e.position):e.position===e.lineStart&&K(e)?E(e,"unexpected end of the document within a double quoted scalar"):(e.position++,H(n)||(p=e.position))}E(e,"unexpected end of the stream within a double quoted scalar")}r(Ee,"readDoubleQuotedScalar");function _e(e,i){let a=!0,p,c,n,l=e.tag,o,m=e.anchor,g,y,u,S,b=Object.create(null),I,L,v,M=e.input.charCodeAt(e.position);if(M===91)g=93,S=!1,o=[];else if(M===123)g=125,S=!0,o={};else return!1;for(e.anchor!==null&&W(e,e.anchor,o),M=e.input.charCodeAt(++e.position);M!==0;){if(R(e,!0,i),M=e.input.charCodeAt(e.position),M===g)return e.position++,e.tag=l,e.anchor=m,e.kind=S?"mapping":"sequence",e.result=o,!0;if(a?M===44&&E(e,"expected the node content, but found ','"):E(e,"missed comma between flow collection entries"),L=I=v=null,y=u=!1,M===63){let re=e.input.charCodeAt(e.position+1);Y(re)&&(y=u=!0,e.position++,R(e,!0,i))}p=e.line,c=e.lineStart,n=e.position,V(e,i,A,!1,!0),L=e.tag,I=e.result,R(e,!0,i),M=e.input.charCodeAt(e.position),(u||e.line===p)&&M===58&&(y=!0,M=e.input.charCodeAt(++e.position),R(e,!0,i),V(e,i,A,!1,!0),v=e.result),S?G(e,o,b,L,I,v,p,c,n):y?o.push(G(e,null,b,L,I,v,p,c,n)):o.push(I),R(e,!0,i),M=e.input.charCodeAt(e.position),M===44?(a=!0,M=e.input.charCodeAt(++e.position)):a=!1}E(e,"unexpected end of the stream within a flow collection")}r(_e,"readFlowCollection");function X(e,i){let a,p=t,c=!1,n=!1,l=i,o=0,m=!1,g,y=e.input.charCodeAt(e.position);if(y===124)a=!1;else if(y===62)a=!0;else return!1;for(e.kind="scalar",e.result="";y!==0;)if(y=e.input.charCodeAt(++e.position),y===43||y===45)t===p?p=y===43?T:f:E(e,"repeat of a chomping mode identifier");else if((g=Se(y))>=0)g===0?E(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):n?E(e,"repeat of an indentation width identifier"):(l=i+g-1,n=!0);else break;if(H(y)){do y=e.input.charCodeAt(++e.position);while(H(y));if(y===35)do y=e.input.charCodeAt(++e.position);while(!B(y)&&y!==0)}for(;y!==0;){for(ce(e),e.lineIndent=0,y=e.input.charCodeAt(e.position);(!n||e.lineIndent<l)&&y===32;)e.lineIndent++,y=e.input.charCodeAt(++e.position);if(!n&&e.lineIndent>l&&(l=e.lineIndent),B(y)){o++;continue}if(!n&&l===0&&E(e,"missing indentation for block scalar"),e.lineIndent<l){p===T?e.result+=w.repeat(`
|
|
11
|
+
`,c?1+o:o):p===t&&c&&(e.result+=`
|
|
12
|
+
`);break}a?H(y)?(m=!0,e.result+=w.repeat(`
|
|
13
|
+
`,c?1+o:o)):m?(m=!1,e.result+=w.repeat(`
|
|
14
|
+
`,o+1)):o===0?c&&(e.result+=" "):e.result+=w.repeat(`
|
|
15
|
+
`,o):e.result+=w.repeat(`
|
|
16
|
+
`,c?1+o:o),c=!0,n=!0,o=0;let u=e.position;for(;!B(y)&&y!==0;)y=e.input.charCodeAt(++e.position);j(e,u,e.position,!1)}return!0}r(X,"readBlockScalar");function se(e,i){let a=e.tag,p=e.anchor,c=[],n=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&W(e,e.anchor,c);let l=e.input.charCodeAt(e.position);for(;l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,E(e,"tab characters must not be used in indentation")),l===45);){let o=e.input.charCodeAt(e.position+1);if(!Y(o))break;if(n=!0,e.position++,R(e,!0,-1)&&e.lineIndent<=i){c.push(null),l=e.input.charCodeAt(e.position);continue}let m=e.line;if(V(e,i,s,!1,!0),c.push(e.result),R(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===m||e.lineIndent>i)&&l!==0)E(e,"bad indentation of a sequence entry");else if(e.lineIndent<i)break}return n?(e.tag=a,e.anchor=p,e.kind="sequence",e.result=c,!0):!1}r(se,"readBlockSequence");function he(e,i,a){let p,c,n,l,o=e.tag,m=e.anchor,g={},y=Object.create(null),u=null,S=null,b=null,I=!1,L=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&W(e,e.anchor,g);let v=e.input.charCodeAt(e.position);for(;v!==0;){!I&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,E(e,"tab characters must not be used in indentation"));let M=e.input.charCodeAt(e.position+1),re=e.line;if((v===63||v===58)&&Y(M))v===63?(I&&(G(e,g,y,u,S,null,c,n,l),u=S=b=null),L=!0,I=!0,p=!0):I?(I=!1,p=!0):E(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=M;else{if(c=e.line,n=e.lineStart,l=e.position,!V(e,a,d,!1,!0))break;if(e.line===re){for(v=e.input.charCodeAt(e.position);H(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),Y(v)||E(e,"a whitespace character is expected after the key-value separator within a block mapping"),I&&(G(e,g,y,u,S,null,c,n,l),u=S=b=null),L=!0,I=!1,p=!1,u=e.tag,S=e.result;else if(L)E(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=o,e.anchor=m,!0}else if(L)E(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=o,e.anchor=m,!0}if((e.line===re||e.lineIndent>i)&&(I&&(c=e.line,n=e.lineStart,l=e.position),V(e,i,C,!0,p)&&(I?S=e.result:b=e.result),I||(G(e,g,y,u,S,b,c,n,l),u=S=b=null),R(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===re||e.lineIndent>i)&&v!==0)E(e,"bad indentation of a mapping entry");else if(e.lineIndent<i)break}return I&&G(e,g,y,u,S,null,c,n,l),L&&(e.tag=o,e.anchor=m,e.kind="mapping",e.result=g),L}r(he,"readBlockMapping");function de(e){let i=!1,a=!1,p,c,n=e.input.charCodeAt(e.position);if(n!==33)return!1;e.tag!==null&&E(e,"duplication of a tag property"),n=e.input.charCodeAt(++e.position),n===60?(i=!0,n=e.input.charCodeAt(++e.position)):n===33?(a=!0,p="!!",n=e.input.charCodeAt(++e.position)):p="!";let l=e.position;if(i){do n=e.input.charCodeAt(++e.position);while(n!==0&&n!==62);e.position<e.length?(c=e.input.slice(l,e.position),n=e.input.charCodeAt(++e.position)):E(e,"unexpected end of the stream within a verbatim tag")}else{for(;n!==0&&!Y(n);)n===33&&(a?E(e,"tag suffix cannot contain exclamation marks"):(p=e.input.slice(l-1,e.position+1),q.test(p)||E(e,"named tag handle cannot contain such characters"),a=!0,l=e.position+1)),n=e.input.charCodeAt(++e.position);c=e.input.slice(l,e.position),$.test(c)&&E(e,"tag suffix cannot contain flow indicator characters")}c&&!U.test(c)&&E(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{E(e,"tag name is malformed: "+c)}return i?e.tag=c:h.call(e.tagMap,p)?e.tag=e.tagMap[p]+c:p==="!"?e.tag="!"+c:p==="!!"?e.tag="tag:yaml.org,2002:"+c:E(e,'undeclared tag handle "'+p+'"'),!0}r(de,"readTagProperty");function me(e){let i=e.input.charCodeAt(e.position);if(i!==38)return!1;e.anchor!==null&&E(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position);let a=e.position;for(;i!==0&&!Y(i)&&!J(i);)i=e.input.charCodeAt(++e.position);return e.position===a&&E(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(a,e.position),!0}r(me,"readAnchorProperty");function Ie(e){let i=e.input.charCodeAt(e.position);if(i!==42)return!1;i=e.input.charCodeAt(++e.position);let a=e.position;for(;i!==0&&!Y(i)&&!J(i);)i=e.input.charCodeAt(++e.position);e.position===a&&E(e,"name of an alias node must contain at least one character");let p=e.input.slice(a,e.position);return h.call(e.anchorMap,p)||E(e,'unidentified alias "'+p+'"'),e.result=e.anchorMap[p],R(e,!0,-1),!0}r(Ie,"readAlias");function ge(e,i,a,p){let c=oe(e);return Ye(e),ne(e,i),e.tag=null,e.anchor=null,e.kind=null,e.result=null,he(e,a,p)&&e.kind==="mapping"?(ee(e),!0):(we(e),ne(e,c),!1)}r(ge,"tryReadBlockMappingFromProperty");function V(e,i,a,p,c){let n,l,o=1,m=!1,g=!1,y=null,u,S,b;e.depth>=e.maxDepth&&E(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let I=n=l=C===a||s===a;if(p&&R(e,!0,-1)&&(m=!0,e.lineIndent>i?o=1:e.lineIndent===i?o=0:e.lineIndent<i&&(o=-1)),o===1)for(;;){let L=e.input.charCodeAt(e.position),v=oe(e);if(m&&(L===33&&e.tag!==null||L===38&&e.anchor!==null)||!de(e)&&!me(e))break;y===null&&(y=v),R(e,!0,-1)?(m=!0,l=I,e.lineIndent>i?o=1:e.lineIndent===i?o=0:e.lineIndent<i&&(o=-1)):l=!1}if(l&&(l=m||c),o===1||C===a)if(A===a||d===a?S=i:S=i+1,b=e.position-e.lineStart,o===1)if(l&&(se(e,b)||he(e,b,S))||_e(e,S))g=!0;else{let L=e.input.charCodeAt(e.position);y!==null&&I&&!l&&L!==124&&L!==62&&ge(e,y,y.position-y.lineStart,S)||n&&X(e,S)||pe(e,S)||Ee(e,S)?g=!0:Ie(e)?(g=!0,(e.tag!==null||e.anchor!==null)&&E(e,"alias node should not have any properties")):be(e,S,A===a)&&(g=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&W(e,e.anchor,e.result)}else o===0&&(g=l&&se(e,b));if(e.tag===null)e.anchor!==null&&W(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&E(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let L=0,v=e.implicitTypes.length;L<v;L+=1)if(u=e.implicitTypes[L],u.resolve(e.result)){e.result=u.construct(e.result),e.tag=u.tag,e.anchor!==null&&W(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(h.call(e.typeMap[e.kind||"fallback"],e.tag))u=e.typeMap[e.kind||"fallback"][e.tag];else{u=null;let L=e.typeMap.multi[e.kind||"fallback"];for(let v=0,M=L.length;v<M;v+=1)if(e.tag.slice(0,L[v].tag.length)===L[v].tag){u=L[v];break}}u||E(e,"unknown tag !<"+e.tag+">"),e.result!==null&&u.kind!==e.kind&&E(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result,e.tag)?(e.result=u.construct(e.result,e.tag),e.anchor!==null&&W(e,e.anchor,e.result)):E(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||g}r(V,"composeNode");function ke(e){let i=e.position,a=!1,p;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(p=e.input.charCodeAt(e.position))!==0&&(R(e,!0,-1),p=e.input.charCodeAt(e.position),!(e.lineIndent>0||p!==37));){a=!0,p=e.input.charCodeAt(++e.position);let c=e.position;for(;p!==0&&!Y(p);)p=e.input.charCodeAt(++e.position);let n=e.input.slice(c,e.position),l=[];for(n.length<1&&E(e,"directive name must not be less than one character in length");p!==0;){for(;H(p);)p=e.input.charCodeAt(++e.position);if(p===35){do p=e.input.charCodeAt(++e.position);while(p!==0&&!B(p));break}if(B(p))break;for(c=e.position;p!==0&&!Y(p);)p=e.input.charCodeAt(++e.position);l.push(e.input.slice(c,e.position))}p!==0&&ce(e),h.call(xe,n)?xe[n](e,n,l):z(e,'unknown document directive "'+n+'"')}if(R(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,R(e,!0,-1)):a&&E(e,"directives end mark is expected"),V(e,e.lineIndent-1,C,!1,!0),R(e,!0,-1),e.checkLineBreaks&&N.test(e.input.slice(i,e.position))&&z(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&K(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R(e,!0,-1));return}e.position<e.length-1&&E(e,"end of the stream or a document separator is expected")}r(ke,"readDocument");function ue(e,i){e=String(e),i=i||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
17
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let a=new F(e,i),p=e.indexOf("\0");for(p!==-1&&(a.position=p,E(a,"null byte is not allowed in input")),a.input+="\0";a.input.charCodeAt(a.position)===32;)a.lineIndent+=1,a.position+=1;for(;a.position<a.length-1;)ke(a);return a.documents}r(ue,"loadDocuments");function Le(e,i,a){i!==null&&typeof i=="object"&&typeof a>"u"&&(a=i,i=null);let p=ue(e,a);if(typeof i!="function")return p;for(let c=0,n=p.length;c<n;c+=1)i(p[c])}r(Le,"loadAll2");function Oe(e,i){let a=ue(e,i);if(a.length!==0){if(a.length===1)return a[0];throw new x("expected a single document in the stream, but found more")}}return r(Oe,"load2"),Pe.loadAll=Le,Pe.load=Oe,Pe}r(zn,"requireLoader");var un={},Jn;function ei(){if(Jn)return un;Jn=1;let w=Ae(),x=ye(),_=De(),k=Object.prototype.toString,h=Object.prototype.hasOwnProperty,A=65279,d=9,s=10,C=13,t=32,f=33,T=34,O=35,N=37,$=38,q=39,U=42,Z=44,B=45,H=58,Y=61,J=62,Ne=63,Re=64,Se=91,fe=93,qe=96,ae=123,Fe=124,Ce=125,F={};F[0]="\\0",F[7]="\\a",F[8]="\\b",F[9]="\\t",F[10]="\\n",F[11]="\\v",F[12]="\\f",F[13]="\\r",F[27]="\\e",F[34]='\\"',F[92]="\\\\",F[133]="\\N",F[160]="\\_",F[8232]="\\L",F[8233]="\\P";let Te=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],E=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function z(n,l){if(l===null)return{};let o={},m=Object.keys(l);for(let g=0,y=m.length;g<y;g+=1){let u=m[g],S=String(l[u]);u.slice(0,2)==="!!"&&(u="tag:yaml.org,2002:"+u.slice(2));let b=n.compiledTypeMap.fallback[u];b&&h.call(b.styleAliases,S)&&(S=b.styleAliases[S]),o[u]=S}return o}r(z,"compileStyleMap");function W(n){let l,o,m=n.toString(16).toUpperCase();if(n<=255)l="x",o=2;else if(n<=65535)l="u",o=4;else if(n<=4294967295)l="U",o=8;else throw new x("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+l+w.repeat("0",o-m.length)+m}r(W,"encodeHex");let Ye=1,ee=2;function we(n){this.schema=n.schema||_,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=w.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=z(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?ee:Ye,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}r(we,"State");function oe(n,l){let o=w.repeat(" ",l),m=0,g="",y=n.length;for(;m<y;){let u,S=n.indexOf(`
|
|
18
|
+
`,m);S===-1?(u=n.slice(m),m=y):(u=n.slice(m,S+1),m=S+1),u.length&&u!==`
|
|
19
|
+
`&&(g+=o),g+=u}return g}r(oe,"indentString");function ne(n,l){return`
|
|
20
|
+
`+w.repeat(" ",n.indent*l)}r(ne,"generateNextLine");function xe(n,l){for(let o=0,m=n.implicitTypes.length;o<m;o+=1)if(n.implicitTypes[o].resolve(l))return!0;return!1}r(xe,"testImplicitResolving");function j(n){return n===t||n===d}r(j,"isWhitespace");function Q(n){return n>=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==A||n>=65536&&n<=1114111}r(Q,"isPrintable");function te(n){return Q(n)&&n!==A&&n!==C&&n!==s}r(te,"isNsCharOrWhitespace");function G(n,l,o){let m=te(n),g=m&&!j(n);return(o?m:m&&n!==Z&&n!==Se&&n!==fe&&n!==ae&&n!==Ce)&&n!==O&&!(l===H&&!g)||te(l)&&!j(l)&&n===O||l===H&&g}r(G,"isPlainSafe");function ce(n){return Q(n)&&n!==A&&!j(n)&&n!==B&&n!==Ne&&n!==H&&n!==Z&&n!==Se&&n!==fe&&n!==ae&&n!==Ce&&n!==O&&n!==$&&n!==U&&n!==f&&n!==Fe&&n!==Y&&n!==J&&n!==q&&n!==T&&n!==N&&n!==Re&&n!==qe}r(ce,"isPlainSafeFirst");function R(n){return!j(n)&&n!==H}r(R,"isPlainSafeLast");function K(n,l){let o=n.charCodeAt(l),m;return o>=55296&&o<=56319&&l+1<n.length&&(m=n.charCodeAt(l+1),m>=56320&&m<=57343)?(o-55296)*1024+m-56320+65536:o}r(K,"codePointAt");function ie(n){return/^\n* /.test(n)}r(ie,"needIndentIndicator");let be=1,pe=2,Ee=3,_e=4,X=5;function se(n,l,o,m,g,y,u,S){let b,I=0,L=null,v=!1,M=!1,re=m!==-1,ve=-1,Me=ce(K(n,0))&&R(K(n,n.length-1));if(l||u)for(b=0;b<n.length;I>=65536?b+=2:b++){if(I=K(n,b),!Q(I))return X;Me=Me&&G(I,L,S),L=I}else{for(b=0;b<n.length;I>=65536?b+=2:b++){if(I=K(n,b),I===s)v=!0,re&&(M=M||b-ve-1>m&&n[ve+1]!==" ",ve=b);else if(!Q(I))return X;Me=Me&&G(I,L,S),L=I}M=M||re&&b-ve-1>m&&n[ve+1]!==" "}return!v&&!M?Me&&!u&&!g(n)?be:y===ee?X:pe:o>9&&ie(n)?X:u?y===ee?X:pe:M?_e:Ee}r(se,"chooseScalarStyle");function he(n,l,o,m,g){n.dump=(function(){if(l.length===0)return n.quotingType===ee?'""':"''";if(!n.noCompatMode&&(Te.indexOf(l)!==-1||E.test(l)))return n.quotingType===ee?'"'+l+'"':"'"+l+"'";let y=n.indent*Math.max(1,o),u=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-y),S=m||n.flowLevel>-1&&o>=n.flowLevel;function b(I){return xe(n,I)}switch(r(b,"testAmbiguity"),se(l,S,n.indent,u,b,n.quotingType,n.forceQuotes&&!m,g)){case be:return l;case pe:return"'"+l.replace(/'/g,"''")+"'";case Ee:return"|"+de(l,n.indent)+me(oe(l,y));case _e:return">"+de(l,n.indent)+me(oe(Ie(l,u),y));case X:return'"'+V(l)+'"';default:throw new x("impossible error: invalid scalar style")}})()}r(he,"writeScalar");function de(n,l){let o=ie(n)?String(l):"",m=n[n.length-1]===`
|
|
21
|
+
`,y=m&&(n[n.length-2]===`
|
|
22
|
+
`||n===`
|
|
23
|
+
`)?"+":m?"":"-";return o+y+`
|
|
24
|
+
`}r(de,"blockHeader");function me(n){return n[n.length-1]===`
|
|
25
|
+
`?n.slice(0,-1):n}r(me,"dropEndingNewline");function Ie(n,l){let o=/(\n+)([^\n]*)/g,m=(function(){let S=n.indexOf(`
|
|
26
|
+
`);return S=S!==-1?S:n.length,o.lastIndex=S,ge(n.slice(0,S),l)})(),g=n[0]===`
|
|
27
|
+
`||n[0]===" ",y,u;for(;u=o.exec(n);){let S=u[1],b=u[2];y=b[0]===" ",m+=S+(!g&&!y&&b!==""?`
|
|
28
|
+
`:"")+ge(b,l),g=y}return m}r(Ie,"foldString");function ge(n,l){if(n===""||n[0]===" ")return n;let o=/ [^ ]/g,m,g=0,y,u=0,S=0,b="";for(;m=o.exec(n);)S=m.index,S-g>l&&(y=u>g?u:S,b+=`
|
|
29
|
+
`+n.slice(g,y),g=y+1),u=S;return b+=`
|
|
30
|
+
`,n.length-g>l&&u>g?b+=n.slice(g,u)+`
|
|
31
|
+
`+n.slice(u+1):b+=n.slice(g),b.slice(1)}r(ge,"foldLine");function V(n){let l="",o=0;for(let m=0;m<n.length;o>=65536?m+=2:m++){o=K(n,m);let g=F[o];!g&&Q(o)?(l+=n[m],o>=65536&&(l+=n[m+1])):l+=g||W(o)}return l}r(V,"escapeString");function ke(n,l,o){let m="",g=n.tag;for(let y=0,u=o.length;y<u;y+=1){let S=o[y];n.replacer&&(S=n.replacer.call(o,String(y),S)),(i(n,l,S,!1,!1)||typeof S>"u"&&i(n,l,null,!1,!1))&&(m!==""&&(m+=","+(n.condenseFlow?"":" ")),m+=n.dump)}n.tag=g,n.dump="["+m+"]"}r(ke,"writeFlowSequence");function ue(n,l,o,m){let g="",y=n.tag;for(let u=0,S=o.length;u<S;u+=1){let b=o[u];n.replacer&&(b=n.replacer.call(o,String(u),b)),(i(n,l+1,b,!0,!0,!1,!0)||typeof b>"u"&&i(n,l+1,null,!0,!0,!1,!0))&&((!m||g!=="")&&(g+=ne(n,l)),n.dump&&s===n.dump.charCodeAt(0)?g+="-":g+="- ",g+=n.dump)}n.tag=y,n.dump=g||"[]"}r(ue,"writeBlockSequence");function Le(n,l,o){let m="",g=n.tag,y=Object.keys(o);for(let u=0,S=y.length;u<S;u+=1){let b="";m!==""&&(b+=", "),n.condenseFlow&&(b+='"');let I=y[u],L=o[I];n.replacer&&(L=n.replacer.call(o,I,L)),i(n,l,I,!1,!1)&&(n.dump.length>1024&&(b+="? "),b+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),i(n,l,L,!1,!1)&&(b+=n.dump,m+=b))}n.tag=g,n.dump="{"+m+"}"}r(Le,"writeFlowMapping");function Oe(n,l,o,m){let g="",y=n.tag,u=Object.keys(o);if(n.sortKeys===!0)u.sort();else if(typeof n.sortKeys=="function")u.sort(n.sortKeys);else if(n.sortKeys)throw new x("sortKeys must be a boolean or a function");for(let S=0,b=u.length;S<b;S+=1){let I="";(!m||g!=="")&&(I+=ne(n,l));let L=u[S],v=o[L];if(n.replacer&&(v=n.replacer.call(o,L,v)),!i(n,l+1,L,!0,!0,!0))continue;let M=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024;M&&(n.dump&&s===n.dump.charCodeAt(0)?I+="?":I+="? "),I+=n.dump,M&&(I+=ne(n,l)),i(n,l+1,v,!0,M)&&(n.dump&&s===n.dump.charCodeAt(0)?I+=":":I+=": ",I+=n.dump,g+=I)}n.tag=y,n.dump=g||"{}"}r(Oe,"writeBlockMapping");function e(n,l,o){let m=o?n.explicitTypes:n.implicitTypes;for(let g=0,y=m.length;g<y;g+=1){let u=m[g];if((u.instanceOf||u.predicate)&&(!u.instanceOf||typeof l=="object"&&l instanceof u.instanceOf)&&(!u.predicate||u.predicate(l))){if(o?u.multi&&u.representName?n.tag=u.representName(l):n.tag=u.tag:n.tag="?",u.represent){let S=n.styleMap[u.tag]||u.defaultStyle,b;if(k.call(u.represent)==="[object Function]")b=u.represent(l,S);else if(h.call(u.represent,S))b=u.represent[S](l,S);else throw new x("!<"+u.tag+'> tag resolver accepts not "'+S+'" style');n.dump=b}return!0}}return!1}r(e,"detectType");function i(n,l,o,m,g,y,u){n.tag=null,n.dump=o,e(n,o,!1)||e(n,o,!0);let S=k.call(n.dump),b=m;m&&(m=n.flowLevel<0||n.flowLevel>l);let I=S==="[object Object]"||S==="[object Array]",L,v;if(I&&(L=n.duplicates.indexOf(o),v=L!==-1),(n.tag!==null&&n.tag!=="?"||v||n.indent!==2&&l>0)&&(g=!1),v&&n.usedDuplicates[L])n.dump="*ref_"+L;else{if(I&&v&&!n.usedDuplicates[L]&&(n.usedDuplicates[L]=!0),S==="[object Object]")m&&Object.keys(n.dump).length!==0?(Oe(n,l,n.dump,g),v&&(n.dump="&ref_"+L+n.dump)):(Le(n,l,n.dump),v&&(n.dump="&ref_"+L+" "+n.dump));else if(S==="[object Array]")m&&n.dump.length!==0?(n.noArrayIndent&&!u&&l>0?ue(n,l-1,n.dump,g):ue(n,l,n.dump,g),v&&(n.dump="&ref_"+L+n.dump)):(ke(n,l,n.dump),v&&(n.dump="&ref_"+L+" "+n.dump));else if(S==="[object String]")n.tag!=="?"&&he(n,n.dump,l,y,b);else{if(S==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new x("unacceptable kind of an object to dump "+S)}if(n.tag!==null&&n.tag!=="?"){let M=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21");n.tag[0]==="!"?M="!"+M:M.slice(0,18)==="tag:yaml.org,2002:"?M="!!"+M.slice(18):M="!<"+M+">",n.dump=M+" "+n.dump}}return!0}r(i,"writeNode");function a(n,l){let o=[],m=[];p(n,o,m);let g=m.length;for(let y=0;y<g;y+=1)l.duplicates.push(o[m[y]]);l.usedDuplicates=new Array(g)}r(a,"getDuplicateReferences");function p(n,l,o){if(n!==null&&typeof n=="object"){let m=l.indexOf(n);if(m!==-1)o.indexOf(m)===-1&&o.push(m);else if(l.push(n),Array.isArray(n))for(let g=0,y=n.length;g<y;g+=1)p(n[g],l,o);else{let g=Object.keys(n);for(let y=0,u=g.length;y<u;y+=1)p(n[g[y]],l,o)}}}r(p,"inspectNode");function c(n,l){l=l||{};let o=new we(l);o.noRefs||a(n,o);let m=n;return o.replacer&&(m=o.replacer.call({"":m},"",m)),i(o,0,m,!0,!0)?o.dump+`
|
|
32
|
+
`:""}return r(c,"dump2"),un.dump=c,un}r(ei,"requireDumper");var Xn;function ni(){if(Xn)return P;Xn=1;let w=zn(),x=ei();function _(k,h){return function(){throw new Error("Function yaml."+k+" is removed in js-yaml 4. Use yaml."+h+" instead, which is now safe by default.")}}return r(_,"renamed"),P.Type=D(),P.Schema=fn(),P.FAILSAFE_SCHEMA=hn(),P.JSON_SCHEMA=yn(),P.CORE_SCHEMA=Sn(),P.DEFAULT_SCHEMA=De(),P.load=w.load,P.loadAll=w.loadAll,P.dump=x.dump,P.YAMLException=ye(),P.types={binary:wn(),float:An(),map:sn(),null:dn(),pairs:bn(),set:En(),timestamp:Cn(),bool:mn(),int:gn(),merge:Tn(),omap:xn(),seq:pn(),str:an()},P.safeLoad=_("safeLoad","load"),P.safeLoadAll=_("safeLoadAll","loadAll"),P.safeDump=_("safeDump","dump"),P}r(ni,"requireJsYaml");var ii=ni(),ri=$n(ii),{Type:oi,Schema:ti,FAILSAFE_SCHEMA:ci,JSON_SCHEMA:ui,CORE_SCHEMA:fi,DEFAULT_SCHEMA:ai,load:pi,loadAll:si,dump:hi,YAMLException:di,types:mi,safeLoad:gi,safeLoadAll:Ai,safeDump:yi}=ri;export{ui as a,pi as b};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{a as e}from"./chunk-GYT4IYBZ.js";var l=e(()=>`
|
|
2
|
+
/* Font Awesome icon styling - consolidated */
|
|
3
|
+
.label-icon {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 1em;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
vertical-align: -0.125em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.node .label-icon path {
|
|
11
|
+
fill: currentColor;
|
|
12
|
+
stroke: revert;
|
|
13
|
+
stroke-width: revert;
|
|
14
|
+
}
|
|
15
|
+
`,"getIconStyles");export{l as a};
|