@diffohq/diffo 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +163 -39
- package/dist/client/assets/{abnfDiagram-O67JEVCF-Dh4is2Nj.js → abnfDiagram-O67JEVCF-DBlSJW53.js} +1 -1
- package/dist/client/assets/{arc-CMN0Gb1g.js → arc-BZZ_ET2N.js} +1 -1
- package/dist/client/assets/architecture-7GRP2DOG-Cds-sOVr.js +1 -0
- package/dist/client/assets/{architectureDiagram-NJMV4G6O-DxVGDSE1.js → architectureDiagram-NJMV4G6O-CmS7e2K4.js} +1 -1
- package/dist/client/assets/{blockDiagram-BEXU5L5S-T1F9hSwZ.js → blockDiagram-BEXU5L5S-Kj8H2ODF.js} +1 -1
- package/dist/client/assets/{c4Diagram-YGBWAQC7-DC6zwYuX.js → c4Diagram-YGBWAQC7-CixbFJxb.js} +1 -1
- package/dist/client/assets/channel-BI4dhOPo.js +1 -0
- package/dist/client/assets/{chunk-3FUC2YCW-D0PAoCRl.js → chunk-3FUC2YCW-CRdo0Gw5.js} +1 -1
- package/dist/client/assets/{chunk-5DYCD2WN-NqHzOtt0.js → chunk-5DYCD2WN-Bw9n6qPh.js} +1 -1
- package/dist/client/assets/{chunk-742MDFTN-B9Y5HHB7.js → chunk-742MDFTN-BsvOSyDz.js} +1 -1
- package/dist/client/assets/{chunk-7INBJB4K-CBOWlj91.js → chunk-7INBJB4K-ie7EoCoW.js} +1 -1
- package/dist/client/assets/{chunk-7M6MHVWA-D2dZ_rQI.js → chunk-7M6MHVWA-DJlbYDLH.js} +1 -1
- package/dist/client/assets/{chunk-7PRAP22T-7dilu8x-.js → chunk-7PRAP22T-Hs5y39V8.js} +1 -1
- package/dist/client/assets/{chunk-GTNCS2PH-at0ENjhB.js → chunk-GTNCS2PH-DNq6Ojc7.js} +1 -1
- package/dist/client/assets/{chunk-GWA4HPMP-C06n_37U.js → chunk-GWA4HPMP-vgn0kxbp.js} +1 -1
- package/dist/client/assets/{chunk-MBY4JIJT-DuowBunG.js → chunk-MBY4JIJT-C7fMuqSl.js} +1 -1
- package/dist/client/assets/{chunk-NETBCI7D-ClNA7QFH.js → chunk-NETBCI7D-ZJtjvGwt.js} +1 -1
- package/dist/client/assets/{chunk-O7XYJQB3-BjcjInBL.js → chunk-O7XYJQB3-DESjnZZT.js} +1 -1
- package/dist/client/assets/{chunk-UA2S7LBM-B-PAn1hd.js → chunk-UA2S7LBM-Cmf087s8.js} +1 -1
- package/dist/client/assets/{chunk-WEXAMYUT-Br84uK4B.js → chunk-WEXAMYUT-U1TW5ZAF.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-BbBZykgX.js → chunk-XXDRQBXY-D1B1IYm1.js} +1 -1
- package/dist/client/assets/{chunk-Z7XXMR3K-CQ-grwfe.js → chunk-Z7XXMR3K-D3BUH0qv.js} +1 -1
- package/dist/client/assets/{chunk-ZIGJFQKS-CLwfE-hs.js → chunk-ZIGJFQKS-Bx6yZhwg.js} +1 -1
- package/dist/client/assets/{classDiagram-v2-NBCMYWYE-DD-bcOHO.js → classDiagram-v2-NBCMYWYE-sjiBGJdD.js} +1 -1
- package/dist/client/assets/{core-BADyutHL.js → core-6IJUkucC.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-fuMg3J_l.js → cose-bilkent-JH36ORCC-xaMCCs4V.js} +1 -1
- package/dist/client/assets/{cynefin-OW5HDTMX-DwFXJ_x8.js → cynefin-OW5HDTMX-C5k9L5NF.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-VND7K2PF-cGL_k8gj.js → cynefinDiagram-VND7K2PF-BqiILl4G.js} +1 -1
- package/dist/client/assets/{dagre-6A5THRUB-BetgCBn9.js → dagre-6A5THRUB-BtgX5KvU.js} +1 -1
- package/dist/client/assets/{diagram-22UHCM2B-C7qT2Ix2.js → diagram-22UHCM2B-BcDIKY8C.js} +1 -1
- package/dist/client/assets/{diagram-3UASUU5V-DGUO9DWV.js → diagram-3UASUU5V-C-DrBJ6K.js} +1 -1
- package/dist/client/assets/{diagram-ATOU4E4O-f520gjx5.js → diagram-ATOU4E4O-B0W6FX6y.js} +1 -1
- package/dist/client/assets/{diagram-CDSNMT55-Dhrm4GzB.js → diagram-CDSNMT55-D1O9NYQ3.js} +1 -1
- package/dist/client/assets/{diagram-MLGK6HIB-Di0aRiuU.js → diagram-MLGK6HIB-WC8izmk2.js} +1 -1
- package/dist/client/assets/{diagram-MPIPVDR6-BHhVZUxI.js → diagram-MPIPVDR6-D5ko9V-k.js} +1 -1
- package/dist/client/assets/{dist-Cezvykkn.js → dist-BBmACywa.js} +1 -1
- package/dist/client/assets/{dist-CbdYocyN.js → dist-Bss8uvIz.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-ZINNZB2B-CQA0eib_.js → ebnfDiagram-ZINNZB2B-BFIYDkrv.js} +1 -1
- package/dist/client/assets/{elk-276RUBZZ-CZKKVSu0.js → elk-276RUBZZ-WsSc0CyB.js} +1 -1
- package/dist/client/assets/{engine-oniguruma-B68c_YAs.js → engine-oniguruma-DmL6leO7.js} +1 -1
- package/dist/client/assets/{erDiagram-OPXOYQCR-DcNnfq_S.js → erDiagram-OPXOYQCR-CjaKeGKh.js} +1 -1
- package/dist/client/assets/eventmodeling-NTZA5JFV-DE5ql6lo.js +1 -0
- package/dist/client/assets/flowDiagram-KWPJA3E3-CObKVtKJ.js +1 -0
- package/dist/client/assets/{ganttDiagram-FUAMR5RP-Dteh33ci.js → ganttDiagram-FUAMR5RP-22OFMoat.js} +1 -1
- package/dist/client/assets/{gitGraph-4MIJSDKK-DMTE1jTV.js → gitGraph-4MIJSDKK-BP0idayz.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-X574FWY7-EV_0IPok.js → gitGraphDiagram-X574FWY7-Cx5rPzjc.js} +1 -1
- package/dist/client/assets/{index-B__poZ2b.js → index-DXMhk4ok.js} +11 -11
- package/dist/client/assets/{info-A6RAGUB7-WkHzxEDS.js → info-A6RAGUB7-BvZZu8IY.js} +1 -1
- package/dist/client/assets/{infoDiagram-VRGFBTTK-BcH5U5G2.js → infoDiagram-VRGFBTTK-Bbk1aZco.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-OU5B5YK6-Z8vZnj1l.js → ishikawaDiagram-OU5B5YK6-DbyWrUBY.js} +1 -1
- package/dist/client/assets/{journeyDiagram-ZHPQQLJL-Cn-m-UYg.js → journeyDiagram-ZHPQQLJL-Ka7zlagO.js} +1 -1
- package/dist/client/assets/{kanban-definition-PNTS6WVX-DLOrUOML.js → kanban-definition-PNTS6WVX-Q_NAEdRt.js} +1 -1
- package/dist/client/assets/{line-DhKwT3E3.js → line-SDAA9fEr.js} +1 -1
- package/dist/client/assets/{linear-DvwuMCFu.js → linear-BPf2OGUv.js} +1 -1
- package/dist/client/assets/{mermaid-parser.core-CwcOI9nG.js → mermaid-parser.core-BjLzFSoy.js} +3 -3
- package/dist/client/assets/{mermaid.core-BabKb2iQ.js → mermaid.core-vvUsQbpX.js} +4 -4
- package/dist/client/assets/{mindmap-definition-NLK3R4M7-D7wpNtz6.js → mindmap-definition-NLK3R4M7-DuVzu_4M.js} +1 -1
- package/dist/client/assets/{packet-AYTQ26CC-BJablqte.js → packet-AYTQ26CC-A66za-wc.js} +1 -1
- package/dist/client/assets/{pegDiagram-GJSIUBJH-EAlXAkUz.js → pegDiagram-GJSIUBJH-ClH92MDY.js} +1 -1
- package/dist/client/assets/{pie-WAS4IAKB-BAAbtIiO.js → pie-WAS4IAKB-sJ2H2jF4.js} +1 -1
- package/dist/client/assets/{pieDiagram-5QR66LMP-b1pYP4ES.js → pieDiagram-5QR66LMP-BmlcB4fD.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-O4NWA36T-B_LJNNdE.js → quadrantDiagram-O4NWA36T-BUdNHhtc.js} +1 -1
- package/dist/client/assets/{radar-RG4KPBEZ-BKldNRRC.js → radar-RG4KPBEZ-B3MRkz7l.js} +1 -1
- package/dist/client/assets/{railroad-74A4TZTK-LvULpHpQ.js → railroad-74A4TZTK-CPQddZw9.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-CijG3JBn.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-CNgXgJgc.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-BkwGmMtj.js +1 -0
- package/dist/client/assets/{railroadDiagram-XR7U4H2S-kp6LeaeM.js → railroadDiagram-XR7U4H2S-B2wicmNk.js} +1 -1
- package/dist/client/assets/{requirementDiagram-PLB6GJNP-Br-OgP6b.js → requirementDiagram-PLB6GJNP-4fGmNry2.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-IPEJSGJF-DSIbAxcK.js → sankeyDiagram-IPEJSGJF-ByuhL9nO.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-PO4LG4MO-uVv8u8VI.js → sequenceDiagram-PO4LG4MO-CHeFXNrS.js} +1 -1
- package/dist/client/assets/{src-Bmfs-TFn.js → src-DuEx6MBc.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-GCMORJYK-Crql1z4d.js → stateDiagram-v2-GCMORJYK-Dsfly8rU.js} +1 -1
- package/dist/client/assets/{swimlanes-2SLR337P-CnpU7AM-.js → swimlanes-2SLR337P-DDb1xXAV.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-TC7HE7FX-DXpYpXP-.js +8 -0
- package/dist/client/assets/{timeline-definition-EJHVYXUP-CqzGi-Sd.js → timeline-definition-EJHVYXUP-iC4lxMiK.js} +1 -1
- package/dist/client/assets/{treeView-Q6P3EWNA-N_EzEUvg.js → treeView-Q6P3EWNA-zXF3RWVa.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-BYeVgP-v.js → treemap-WGGIJYW6-BvA719M0.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-POWQR4AR-Dyeq2Zcy.js → usecaseDiagram-POWQR4AR-CXzh5cdW.js} +1 -1
- package/dist/client/assets/{vennDiagram-UO4OBE2U-CuCjJaOo.js → vennDiagram-UO4OBE2U-BuMQeNKp.js} +1 -1
- package/dist/client/assets/{wardley-WFR3VGLG-AV0-dO_Z.js → wardley-WFR3VGLG-m1zZI6-6.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VNRHLVJA-f0dVm2LA.js → wardleyDiagram-VNRHLVJA-DiB2QtGU.js} +1 -1
- package/dist/client/assets/{xychartDiagram-PMCCYNJV-BNjSW7P1.js → xychartDiagram-PMCCYNJV-CKRPoaV8.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +8 -8
- package/plugin.json +1 -1
- package/dist/client/assets/architecture-7GRP2DOG-DaIFNiR2.js +0 -1
- package/dist/client/assets/channel-Ci5ZF5xD.js +0 -1
- package/dist/client/assets/eventmodeling-NTZA5JFV-C61pKQjq.js +0 -1
- package/dist/client/assets/flowDiagram-KWPJA3E3-BolWtw3C.js +0 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-CORGw4Le.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-BXCX4hkl.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-C6BQUpjn.js +0 -1
- package/dist/client/assets/swimlanesDiagram-TC7HE7FX-Crca2YKi.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t,p as n}from"./src-DuEx6MBc.js";import{A as r,F as i,b as a,s as o,z as s}from"./chunk-O7XYJQB3-DESjnZZT.js";import{a as c}from"./chunk-ZIGJFQKS-Bx6yZhwg.js";import{n as l,t as u}from"./chunk-742MDFTN-BsvOSyDz.js";function d(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var f=d();function p(e){f=e}var m={exec:()=>null};function h(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(_.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var g=(()=>{try{return!0}catch{return!1}})(),_={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+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},ee=/^(?:[ \t]*(?:\n|$))+/,te=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ne=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,v=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,re=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,y=/(?:[*+-]|\d{1,9}[.)])/,ie=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ae=h(ie).replace(/bull/g,y).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(),oe=h(ie).replace(/bull/g,y).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(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,se=/^[^\n]+/,x=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ce=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,x).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),le=h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y).getRegex(),S=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|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`,C=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ue=h(`^ {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`,C).replace(`tag`,S).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),de=h(b).replace(`hr`,v).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`,S).getRegex(),w={blockquote:h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,de).getRegex(),code:te,def:ce,fences:ne,heading:re,hr:v,html:ue,lheading:ae,list:le,newline:ee,paragraph:de,table:m,text:se},fe=h(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,v).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`,S).getRegex(),pe={...w,lheading:oe,table:fe,paragraph:h(b).replace(`hr`,v).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,fe).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`,S).getRegex()},me={...w,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,C).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:m,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(b).replace(`hr`,v).replace(`heading`,` *#{1,6} *[^
|
|
2
2
|
]`).replace(`lheading`,ae).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},he=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ge=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_e=/^( {2,}|\\)\n(?!\s*$)/,ve=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,T=/[\p{P}\p{S}]/u,E=/[\s\p{P}\p{S}]/u,ye=/[^\s\p{P}\p{S}]/u,be=h(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,E).getRegex(),xe=/(?!~)[\p{P}\p{S}]/u,Se=/(?!~)[\s\p{P}\p{S}]/u,Ce=/(?:[^\s\p{P}\p{S}]|~)/u,we=h(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,g?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Te=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ee=h(Te,`u`).replace(/punct/g,T).getRegex(),De=h(Te,`u`).replace(/punct/g,xe).getRegex(),Oe=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,ke=h(Oe,`gu`).replace(/notPunctSpace/g,ye).replace(/punctSpace/g,E).replace(/punct/g,T).getRegex(),Ae=h(Oe,`gu`).replace(/notPunctSpace/g,Ce).replace(/punctSpace/g,Se).replace(/punct/g,xe).getRegex(),je=h(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ye).replace(/punctSpace/g,E).replace(/punct/g,T).getRegex(),Me=h(/\\(punct)/,`gu`).replace(/punct/g,T).getRegex(),Ne=h(/^<(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(),Pe=h(C).replace(`(?:-->|$)`,`-->`).getRegex(),Fe=h(`^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`,Pe).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),D=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ie=h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,D).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Le=h(/^!?\[(label)\]\[(ref)\]/).replace(`label`,D).replace(`ref`,x).getRegex(),Re=h(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,x).getRegex(),ze=h(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Le).replace(`nolink`,Re).getRegex(),Be=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,O={_backpedal:m,anyPunctuation:Me,autolink:Ne,blockSkip:we,br:_e,code:ge,del:m,emStrongLDelim:Ee,emStrongRDelimAst:ke,emStrongRDelimUnd:je,escape:he,link:Ie,nolink:Re,punctuation:be,reflink:Le,reflinkSearch:ze,tag:Fe,text:ve,url:m},Ve={...O,link:h(/^!?\[(label)\]\((.*?)\)/).replace(`label`,D).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,D).getRegex()},k={...O,emStrongRDelimAst:Ae,emStrongLDelim:De,url:h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Be).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:h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Be).getRegex()},He={...k,br:h(_e).replace(`{2,}`,`*`).getRegex(),text:h(k.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},A={normal:w,gfm:pe,pedantic:me},j={normal:O,gfm:k,breaks:He,pedantic:Ve},Ue={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},We=e=>Ue[e];function M(e,t){if(t){if(_.escapeTest.test(e))return e.replace(_.escapeReplace,We)}else if(_.escapeTestNoEncode.test(e))return e.replace(_.escapeReplaceNoEncode,We);return e}function Ge(e){try{e=encodeURI(e).replace(_.percentDecode,`%`)}catch{return null}return e}function Ke(e,t){let n=e.replace(_.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(_.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(_.slashPipe,`|`);return n}function N(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function qe(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Je(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Ye(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
3
3
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
4
4
|
`)}var P=class{options;rules;lexer;constructor(e){this.options=e||f}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:N(e,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{o as t}from"./chunk-Z7XXMR3K-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{o as t}from"./chunk-Z7XXMR3K-D3BUH0qv.js";var n=5,r=1e-5,i=2,a=.6,o=1e-6;function s(e){let t=[];for(let n=0;n<e.length-1;n++)t.push({a:e[n],b:e[n+1]});return t}e(s,`buildSegmentList`);function c(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,s=r.x-n.x,c=r.y-n.y,l=i*c-a*s;if(l===0)return null;let u=n.x-e.x,d=n.y-e.y,f=(u*c-d*s)/l,p=(u*a-d*i)/l;return f<=o||f>=1-o||p<=o||p>=1-o?null:{point:{x:e.x+f*i,y:e.y+f*a},tA:f,tB:p}}e(c,`segmentIntersection`);function l(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}e(l,`isHorizontalSeg`);function u(e,t,r){if(e.curve!==`rounded`)return!1;let i=e.points,a=i[t],o=i[t+1];if(!a||!o)return!1;let s=Math.hypot(o.x-a.x,o.y-a.y),c=r*s,l=t>0?_(i[t-1],a,o,n):null;if(l&&c<l.cutLen)return!0;let u=t+2<i.length?_(a,o,i[t+2],n):null;return u!==null&&s-c<u.cutLen}e(u,`crossingSitsInRoundedCorner`);function d(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=s(r.points);for(let a=n+1;a<e.length;a++){let n=e[a],o=s(n.points);for(let[e,a]of i.entries())for(let[i,s]of o.entries()){let o=c(a.a,a.b,s.a,s.b);if(!o||u(r,e,o.tA)||u(n,i,o.tB))continue;let d=l(a);d!==l(s)&&d?t.push({jumpEdgeId:r.id,otherEdgeId:n.id,segIndex:e,t:o.tA,point:o.point}):t.push({jumpEdgeId:n.id,otherEdgeId:r.id,segIndex:i,t:o.tB,point:o.point})}}}return t}e(d,`findEdgeIntersections`);function f(e){return`${Math.round(e*1e3)/1e3}`}e(f,`fmt`);function p(e){return`${f(e.x)},${f(e.y)}`}e(p,`pointToString`);function m(e){let t=e.b.x-e.a.x,n=e.b.y-e.a.y;return Math.abs(t)>=Math.abs(n)?+(t>=0):+(n>=0)}e(m,`getArcSweepFlag`);function h(e,n){if(e.length<2)return e.map(e=>({...e}));let r=e.map(e=>({...e})),i=n.arrowTypeStart&&t[n.arrowTypeStart];if(i){let t=e[0],n=e[1],a=Math.atan2(n.y-t.y,n.x-t.x);r[0].x=t.x+i*Math.cos(a),r[0].y=t.y+i*Math.sin(a)}let a=n.arrowTypeEnd&&t[n.arrowTypeEnd];if(a){let t=e.length,n=e[t-2],i=e[t-1],o=Math.atan2(i.y-n.y,i.x-n.x);r[t-1].x=i.x-a*Math.cos(o),r[t-1].y=i.y-a*Math.sin(o)}return r}e(h,`applyMarkerOffsets`);function g(e,t,n,r,i){let a=e.point.x,o=e.point.y,s={x:a-t*e.r,y:o-n*e.r},c={x:a+t*e.r,y:o+n*e.r},l=[`L${p(s)}`];return i===`arc`?l.push(`A${f(e.r)},${f(e.r)} 0 0 ${r} ${p(c)}`):l.push(`M${p(c)}`),l}e(g,`emitJump`);function _(e,t,n,i){let a=t.x-e.x,o=t.y-e.y,s=n.x-t.x,c=n.y-t.y,l=Math.hypot(a,o),u=Math.hypot(s,c);if(l<r||u<r)return null;let d=a/l,f=o/l,p=s/u,m=c/u,h=d*p+f*m,g=Math.acos(Math.max(-1,Math.min(1,h)));if(g<r||Math.abs(Math.PI-g)<r)return null;let _=Math.min(i/Math.sin(g/2),l/2,u/2);return{startX:t.x-d*_,startY:t.y-f*_,endX:t.x+p*_,endY:t.y+m*_,ctrlX:t.x,ctrlY:t.y,cutLen:_}}e(_,`computeRoundedCorner`);function v(e,t,r){let o=e.points;if(o.length<2)return``;let c=h(o,e),l=e.curve===`rounded`,u=s(c),d=new Map;for(let e of t){let t=u[e.segIndex];if(!t)continue;let n=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),i=d.get(e.segIndex)??[];i.push({t:e.t,point:e.point,d:e.t*n,r:r.jumpRadius}),d.set(e.segIndex,i)}let v=[`M${p(c[0])}`];for(let e=0;e<u.length;e++){let t=u[e],o=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),s=o===0?0:(t.b.x-t.a.x)/o,h=o===0?0:(t.b.y-t.a.y)/o,y=m(t),b=0;if(l&&e>0){let t=_(c[e-1],c[e],c[e+1]??c[e],n);t&&(b=t.cutLen)}let x=o,S=null;l&&e<u.length-1&&(S=_(c[e],c[e+1],c[e+2]??c[e+1],n),S&&(x=o-S.cutLen));let C=r.jumpRadius*a,w=[...d.get(e)??[]].sort((e,t)=>e.t-t.t).filter(e=>{let t=Math.min(e.d-b,x-e.d)-i;return e.r=Math.min(e.r,t),e.r>=C});for(let e=0;e<w.length-1;e++){let t=w[e+1].d-w[e].d;if(w[e].r+w[e+1].r>t){let n=t/2;w[e].r=Math.min(w[e].r,n),w[e+1].r=Math.min(w[e+1].r,n)}}for(let e of w)e.r<C||v.push(...g(e,s,h,y,r.jumpStyle));l&&S?(v.push(`L${f(S.startX)},${f(S.startY)}`),v.push(`Q${f(S.ctrlX)},${f(S.ctrlY)} ${f(S.endX)},${f(S.endY)}`)):v.push(`L${p(t.b)}`)}return v.join(` `)}e(v,`rewriteEdgePath`);function y(e){return/^[\d\s+,.LMelm-]*$/.test(e)}e(y,`isStraightPath`);function b(e){return!e||e===`linear`||e===`rounded`||e===`step`||e===`stepBefore`||e===`stepAfter`}e(b,`curveSupportsLineHops`);function x(e){if(!e)return null;try{let t=typeof atob==`function`?atob(e):Buffer.from(e,`base64`).toString(),n=JSON.parse(t);if(!Array.isArray(n))return null;let r=[];for(let e of n)e&&typeof e.x==`number`&&typeof e.y==`number`&&r.push({x:e.x,y:e.y});return r.length>=2?r:null}catch{return null}}e(x,`decodeDataPoints`);function S(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let a=new Map;for(let e of r.querySelectorAll(`path[data-id]`)){let t=e.getAttribute(`data-id`);t!==null&&!a.has(t)&&a.set(t,e)}let o=[];for(let e of t){let t=a.get(e.id);if(!t)continue;let n=x(t.getAttribute(`data-points`))??e.points;o.push({...e,points:n})}let s=d(o);if(s.length===0)return;let c=new Map;for(let e of s){let t=c.get(e.jumpEdgeId)??[];t.push(e),c.set(e.jumpEdgeId,t)}for(let e of o){let t=c.get(e.id);if(!t||t.length===0)continue;let r=i.get(e.id)?.curve;if(r!==void 0&&!b(r))continue;let o=a.get(e.id);if(!o||r===void 0&&!y(o.getAttribute(`d`)??``))continue;let s=o.getAttribute(`style`)??``,l=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),u=l?Number.parseFloat(l[1]):null,d=l?Number.parseFloat(l[2]):null,f=v(e,t,n);if(o.setAttribute(`d`,f),u!==null&&d!==null&&typeof o.getTotalLength==`function`){let e=o.getTotalLength(),t=`0 ${u} ${Math.max(0,e-u-d)} ${d}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,`;`);o.setAttribute(`style`,n)}}}e(S,`applyLineJumpsToSvg`);export{S as t};
|