jekyll-obsidian-site 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +133 -0
  4. data/website/_config.yml +21 -0
  5. data/website/_includes/website/archive-timeline.html +8 -0
  6. data/website/_includes/website/blog-ledger.html +19 -0
  7. data/website/_includes/website/blog-navigation.html +7 -0
  8. data/website/_includes/website/comments.html +22 -0
  9. data/website/_includes/website/contact-icon.html +14 -0
  10. data/website/_includes/website/context-tags.html +7 -0
  11. data/website/_includes/website/context.html +3 -0
  12. data/website/_includes/website/dialogs.html +71 -0
  13. data/website/_includes/website/docs-navigation.html +7 -0
  14. data/website/_includes/website/docs-tree.html +8 -0
  15. data/website/_includes/website/footer.html +14 -0
  16. data/website/_includes/website/github-icon.html +3 -0
  17. data/website/_includes/website/head.html +41 -0
  18. data/website/_includes/website/header.html +35 -0
  19. data/website/_includes/website/language-switcher.html +16 -0
  20. data/website/_includes/website/local-graph.html +25 -0
  21. data/website/_includes/website/note-header.html +35 -0
  22. data/website/_includes/website/outline.html +9 -0
  23. data/website/_includes/website/page-actions.html +34 -0
  24. data/website/_includes/website/portfolio-grid.html +36 -0
  25. data/website/_includes/website/portfolio-topics.html +4 -0
  26. data/website/_includes/website/post-cards.html +16 -0
  27. data/website/_includes/website/related-articles.html +7 -0
  28. data/website/_includes/website/relations.html +16 -0
  29. data/website/_includes/website/source-actions.html +28 -0
  30. data/website/_includes/website/system-page.html +31 -0
  31. data/website/_includes/website/tab-collection.html +28 -0
  32. data/website/_includes/website/tag-filter.html +12 -0
  33. data/website/_layouts/website-docs.html +20 -0
  34. data/website/_layouts/website-minimal.html +93 -0
  35. data/website/_layouts/website-redirect.html +17 -0
  36. data/website/assets/chunks/abnfDiagram-N423BO3Z-TSORAEI2.js +1 -0
  37. data/website/assets/chunks/architecture-TIHT7OUA-OUC5PEC7.js +1 -0
  38. data/website/assets/chunks/architectureDiagram-T3A2C74G-6P5MB2DJ.js +36 -0
  39. data/website/assets/chunks/blockDiagram-VBNYF7ZC-ZWINYROZ.js +132 -0
  40. data/website/assets/chunks/c4Diagram-5PPSVZJV-R5RMEAOT.js +10 -0
  41. data/website/assets/chunks/chunk-22DRK7VS.js +1 -0
  42. data/website/assets/chunks/chunk-25REBZ7M.js +2 -0
  43. data/website/assets/chunks/chunk-2RQCUDTG.js +1 -0
  44. data/website/assets/chunks/chunk-34FHPXU4.js +1 -0
  45. data/website/assets/chunks/chunk-57XXJOQN.js +10 -0
  46. data/website/assets/chunks/chunk-6DCNDVBX.js +2 -0
  47. data/website/assets/chunks/chunk-6DHFEWGX.js +1 -0
  48. data/website/assets/chunks/chunk-6VQ47JJS.js +2 -0
  49. data/website/assets/chunks/chunk-7CSIRG7W.js +127 -0
  50. data/website/assets/chunks/chunk-A43YELH5.js +1 -0
  51. data/website/assets/chunks/chunk-AIX6IH4O.js +1 -0
  52. data/website/assets/chunks/chunk-B3K7RH5O.js +88 -0
  53. data/website/assets/chunks/chunk-CBGUD2NP.js +1 -0
  54. data/website/assets/chunks/chunk-D3WOCELE.js +1 -0
  55. data/website/assets/chunks/chunk-D6FURU6X.js +1 -0
  56. data/website/assets/chunks/chunk-DGEGT77F.js +1 -0
  57. data/website/assets/chunks/chunk-DN52R6U7.js +1 -0
  58. data/website/assets/chunks/chunk-E3T3IFAC.js +1 -0
  59. data/website/assets/chunks/chunk-EIBFAW37.js +1 -0
  60. data/website/assets/chunks/chunk-ERWOH47R.js +1 -0
  61. data/website/assets/chunks/chunk-ETOVTYWF.js +1 -0
  62. data/website/assets/chunks/chunk-GHD3PFWA.js +231 -0
  63. data/website/assets/chunks/chunk-GMBKQ7NZ.js +1 -0
  64. data/website/assets/chunks/chunk-GQM25EPP.js +156 -0
  65. data/website/assets/chunks/chunk-GSOU4UTT.js +1 -0
  66. data/website/assets/chunks/chunk-HEMELP7J.js +1 -0
  67. data/website/assets/chunks/chunk-HZ5I5NJO.js +1 -0
  68. data/website/assets/chunks/chunk-IP56FOSI.js +70 -0
  69. data/website/assets/chunks/chunk-L7BMR7WL.js +1 -0
  70. data/website/assets/chunks/chunk-LGUG3SQB.js +1 -0
  71. data/website/assets/chunks/chunk-LOMHZYS2.js +1 -0
  72. data/website/assets/chunks/chunk-MII4VZEB.js +3 -0
  73. data/website/assets/chunks/chunk-MYMJLHQL.js +62 -0
  74. data/website/assets/chunks/chunk-NBH7YOBD.js +15 -0
  75. data/website/assets/chunks/chunk-NCOVM3YF.js +1 -0
  76. data/website/assets/chunks/chunk-OAGTSILX.js +1 -0
  77. data/website/assets/chunks/chunk-OCX5OCIU.js +321 -0
  78. data/website/assets/chunks/chunk-OE3NOVIH.js +1 -0
  79. data/website/assets/chunks/chunk-PLP5XUTJ.js +1 -0
  80. data/website/assets/chunks/chunk-PNOERP6G.js +1 -0
  81. data/website/assets/chunks/chunk-QBPQ7DPE.js +1 -0
  82. data/website/assets/chunks/chunk-RWFFDL53.js +1 -0
  83. data/website/assets/chunks/chunk-SEGIW3MP.js +1 -0
  84. data/website/assets/chunks/chunk-SZDMZNUS.js +1 -0
  85. data/website/assets/chunks/chunk-T2QBAPVT.js +1 -0
  86. data/website/assets/chunks/chunk-UE533OZ7.js +1 -0
  87. data/website/assets/chunks/chunk-UTWOJE2A.js +1 -0
  88. data/website/assets/chunks/chunk-VOCDYA3H.js +1 -0
  89. data/website/assets/chunks/chunk-VYZZPKGK.js +161 -0
  90. data/website/assets/chunks/chunk-WWLZIRS6.js +1 -0
  91. data/website/assets/chunks/chunk-XNXYDBKX.js +32 -0
  92. data/website/assets/chunks/chunk-XQUIO562.js +1 -0
  93. data/website/assets/chunks/chunk-Y2XVFW7T.js +2 -0
  94. data/website/assets/chunks/chunk-YORIST7Z.js +1 -0
  95. data/website/assets/chunks/chunk-Z2WBQPVY.js +206 -0
  96. data/website/assets/chunks/classDiagram-JCYQIIEL-OFDVDDIM.js +1 -0
  97. data/website/assets/chunks/classDiagram-v2-OCEON4UE-E36B6BGQ.js +1 -0
  98. data/website/assets/chunks/cose-bilkent-JH36ORCC-CBAW64AB.js +1 -0
  99. data/website/assets/chunks/cynefin-VYW2F7L2-CBO6DLNV.js +1 -0
  100. data/website/assets/chunks/cynefinDiagram-MW4NZA55-DFINLOUY.js +62 -0
  101. data/website/assets/chunks/dagre-VZM6K2ZE-BZFBSZAH.js +4 -0
  102. data/website/assets/chunks/diagram-7IWD3JNH-XQHTVOU2.js +30 -0
  103. data/website/assets/chunks/diagram-B4RE2ZJO-FTSXBZJR.js +3 -0
  104. data/website/assets/chunks/diagram-LBJQPF4R-ZSZW4OLH.js +24 -0
  105. data/website/assets/chunks/diagram-Q27KOJAE-2IV5TVCJ.js +24 -0
  106. data/website/assets/chunks/diagram-UB23O5K3-D6PDUTFL.js +41 -0
  107. data/website/assets/chunks/ebnfDiagram-BXEA7PRR-C6MAER3M.js +1 -0
  108. data/website/assets/chunks/erDiagram-JOGREHBK-EDAD2H5M.js +85 -0
  109. data/website/assets/chunks/eventmodeling-45OFAUF4-4K577DMF.js +1 -0
  110. data/website/assets/chunks/flowDiagram-UKHOOZJN-545F4YX3.js +1 -0
  111. data/website/assets/chunks/ganttDiagram-PKOTCBZU-7A7EKMY3.js +292 -0
  112. data/website/assets/chunks/gitGraph-TEB2WS4Q-3WUB7WYQ.js +1 -0
  113. data/website/assets/chunks/gitGraphDiagram-DS77QQ5N-A5UWV5FF.js +106 -0
  114. data/website/assets/chunks/info-DKCQHKI2-EOOHI7XS.js +1 -0
  115. data/website/assets/chunks/infoDiagram-6WML65LV-CWIOOWJP.js +2 -0
  116. data/website/assets/chunks/ishikawaDiagram-WSZJBQD7-CEASQVDL.js +70 -0
  117. data/website/assets/chunks/journeyDiagram-NVQOT4AX-LYG3S2AW.js +139 -0
  118. data/website/assets/chunks/kanban-definition-27J2QSJJ-HCC6KAYI.js +89 -0
  119. data/website/assets/chunks/katex-F4MQ6FB3.js +257 -0
  120. data/website/assets/chunks/mindmap-definition-FAOFIHXS-JMGSM3RE.js +96 -0
  121. data/website/assets/chunks/packet-7NZHBO7P-W3SJA3MY.js +1 -0
  122. data/website/assets/chunks/pegDiagram-VL7TDLO6-4JO3Y3Z3.js +1 -0
  123. data/website/assets/chunks/pie-RZYD4A2V-YOIQBTY7.js +1 -0
  124. data/website/assets/chunks/pieDiagram-7S7Q4E2Y-VFQ7SE46.js +39 -0
  125. data/website/assets/chunks/quadrantDiagram-CIZ2JOQS-JISDI2S6.js +7 -0
  126. data/website/assets/chunks/radar-I7S5WNFK-NMKP5AZO.js +1 -0
  127. data/website/assets/chunks/railroad-3IZDKUUU-7MOIV7CI.js +1 -0
  128. data/website/assets/chunks/railroad-abnf-AHOZXSZD-HXNH5SLO.js +1 -0
  129. data/website/assets/chunks/railroad-ebnf-EBAXGLYW-OWDJEWMK.js +1 -0
  130. data/website/assets/chunks/railroad-peg-LSFZ7HO6-ASSINGP5.js +1 -0
  131. data/website/assets/chunks/railroadDiagram-AXF67PYL-AFV5VP5F.js +1 -0
  132. data/website/assets/chunks/requirementDiagram-LRYGKXZP-RNRPEHHN.js +84 -0
  133. data/website/assets/chunks/sankeyDiagram-W5VNT64P-O54R2L3E.js +40 -0
  134. data/website/assets/chunks/sequenceDiagram-SI44F4Z6-42WISKJ7.js +162 -0
  135. data/website/assets/chunks/sizeCapture-X5ZJPWSS-LRN2Q37T.js +1 -0
  136. data/website/assets/chunks/stateDiagram-OKZ733FA-BWIBJXIR.js +1 -0
  137. data/website/assets/chunks/stateDiagram-v2-UEYNNEHI-L73LHL3L.js +1 -0
  138. data/website/assets/chunks/swimlanes-SLNWSIFB-ECOAE7LQ.js +1 -0
  139. data/website/assets/chunks/swimlanesDiagram-ULZ7WXOC-3CKKKFZZ.js +8 -0
  140. data/website/assets/chunks/timeline-definition-Z64GVDOM-HR2OL5G7.js +120 -0
  141. data/website/assets/chunks/treeView-QDETBFTQ-C6D5WFJA.js +1 -0
  142. data/website/assets/chunks/treemap-6X3UGDF4-JFCDMSCA.js +1 -0
  143. data/website/assets/chunks/vennDiagram-T6HMQDX7-62WAAPTF.js +34 -0
  144. data/website/assets/chunks/wardley-OPB4EBWU-RQIOII7I.js +1 -0
  145. data/website/assets/chunks/wardleyDiagram-T6FBY63Y-KUXO3NHV.js +78 -0
  146. data/website/assets/chunks/xychartDiagram-ELKLHX3M-I54W4HJ7.js +7 -0
  147. data/website/assets/color-scheme-bootstrap-4H4ZR4BW.js +1 -0
  148. data/website/assets/docs-3WBBQT6K.css +1 -0
  149. data/website/assets/docs-W3D5DWQF.js +1 -0
  150. data/website/assets/docs-navigation-75ALFYBA.js +1 -0
  151. data/website/assets/graph-QWL54LWD.js +1 -0
  152. data/website/assets/manifest.json +314 -0
  153. data/website/assets/math-7JTH4OWZ.js +21 -0
  154. data/website/assets/mermaid-RXC6URG4.js +10 -0
  155. data/website/assets/minimal-3NPTDWQX.js +1 -0
  156. data/website/assets/minimal-E2VATXXS.css +1 -0
  157. data/website/assets/previews-FMHOX7UX.js +1 -0
  158. data/website/assets/search-BH73JZDU.js +1 -0
  159. data/website/assets/search-worker-SM4IM4J7.js +1 -0
  160. data/website/exe/jekyll-obsidian +5 -0
  161. data/website/lib/jekyll_obsidian/adapter.rb +733 -0
  162. data/website/lib/jekyll_obsidian/built_in_themes.rb +855 -0
  163. data/website/lib/jekyll_obsidian/cli.rb +84 -0
  164. data/website/lib/jekyll_obsidian/content_policy.rb +194 -0
  165. data/website/lib/jekyll_obsidian/destination_registry.rb +39 -0
  166. data/website/lib/jekyll_obsidian/directory_indexes.rb +30 -0
  167. data/website/lib/jekyll_obsidian/external_media.rb +371 -0
  168. data/website/lib/jekyll_obsidian/front_matter.rb +453 -0
  169. data/website/lib/jekyll_obsidian/github_markdown.rb +664 -0
  170. data/website/lib/jekyll_obsidian/html_publication.rb +206 -0
  171. data/website/lib/jekyll_obsidian/initializer.rb +68 -0
  172. data/website/lib/jekyll_obsidian/localized_compiler.rb +1044 -0
  173. data/website/lib/jekyll_obsidian/media_policy.rb +41 -0
  174. data/website/lib/jekyll_obsidian/ofm_scanner.rb +493 -0
  175. data/website/lib/jekyll_obsidian/output_text.rb +13 -0
  176. data/website/lib/jekyll_obsidian/preview.rb +93 -0
  177. data/website/lib/jekyll_obsidian/published_markdown.rb +32 -0
  178. data/website/lib/jekyll_obsidian/raw_html_manifest.rb +66 -0
  179. data/website/lib/jekyll_obsidian/runtime.rb +197 -0
  180. data/website/lib/jekyll_obsidian/site_compilation.rb +147 -0
  181. data/website/lib/jekyll_obsidian/site_navigation.rb +517 -0
  182. data/website/lib/jekyll_obsidian/url_builder.rb +163 -0
  183. data/website/lib/jekyll_obsidian/value_objects.rb +198 -0
  184. data/website/lib/jekyll_obsidian/vault_compiler.rb +2771 -0
  185. data/website/lib/jekyll_obsidian/version.rb +6 -0
  186. data/website/lib/jekyll_obsidian/workspace_layout.rb +104 -0
  187. data/website/lib/jekyll_obsidian.rb +22 -0
  188. data/website/scripts/audit-site.rb +120 -0
  189. data/website/scripts/templates/pages.yml +55 -0
  190. data/website/scripts/verify-site-urls.rb +585 -0
  191. metadata +319 -0
@@ -0,0 +1,10 @@
1
+ import{c as q}from"./chunk-MYMJLHQL.js";import{a as bt}from"./chunk-YORIST7Z.js";import{c as mt,d as ut}from"./chunk-QBPQ7DPE.js";import{a as R,b as Q,c as at,d as wt}from"./chunk-XQUIO562.js";import{a as gt}from"./chunk-GSOU4UTT.js";import{c as xt}from"./chunk-IP56FOSI.js";import{p as H,t as yt}from"./chunk-6DCNDVBX.js";import{_ as U,u as E,y as tt}from"./chunk-7CSIRG7W.js";import{b as x}from"./chunk-ERWOH47R.js";import{a as p}from"./chunk-EIBFAW37.js";import{$ as pt,J as j,K as nt,M as st,N as ot,O as rt,S as it,V as ct,Z as lt,_ as dt,aa as ht,ba as ft,ca as kt,e as W}from"./chunk-LGUG3SQB.js";var Yt=p((r,t,a,e,o,n=!1,s)=>{t.arrowTypeStart&&Mt(r,"start",t.arrowTypeStart,a,e,o,n,s),t.arrowTypeEnd&&Mt(r,"end",t.arrowTypeEnd,a,e,o,n,s)},"addEdgeMarkers"),Ht={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Bt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Mt=p((r,t,a,e,o,n,s=!1,i)=>{let l=Ht[a],m=l&&Bt.includes(l.type);if(!l){x.warn(`Unknown arrow type: ${a}`);return}let c=l.type,d=`${o}_${n}-${c}${t==="start"?"Start":"End"}${s&&m?"-margin":""}`;if(i&&i.trim()!==""){let g=i.replace(/[^\dA-Za-z]/g,"_"),y=`${d}_${g}`;if(!document.getElementById(y)){let f=document.getElementById(d);if(f){let w=f.cloneNode(!0);w.id=y,w.querySelectorAll("path, circle, line").forEach(B=>{B.setAttribute("stroke",i),l.fill&&B.setAttribute("fill",i)}),f.parentNode?.appendChild(w)}}r.attr(`marker-${t}`,`url(${e}#${y})`)}else r.attr(`marker-${t}`,`url(${e}#${d})`)},"addEdgeMarker"),Tt=p(r=>typeof r=="string"?r:U()?.flowchart?.curve,"resolveEdgeCurveType"),F=new Map,L=new Map,Lr=p(()=>{F.clear(),L.clear()},"clear"),I=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),_r=p(async(r,t)=>{let a=U(),e=tt(a),{labelStyles:o}=ut(t);t.labelStyle=o;let n=r.insert("g").attr("class","edgeLabel"),s=n.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",m=await xt(r,t.label,{style:I(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);s.node().appendChild(m),x.info("abc82",t,t.labelType);let c=m.getBBox(),u=c;if(e){let d=m.children[0],g=W(m);c=d.getBoundingClientRect(),u=c,g.attr("width",c.width),g.attr("height",c.height)}else{let d=W(m).select("text").node();d&&typeof d.getBBox=="function"&&(u=d.getBBox())}s.attr("transform",R(u,e)),F.set(t.id,n),t.width=c.width,t.height=c.height;let h;if(t.startLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(g,t.startLabelLeft,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startLeft=d,Z(h,t.startLabelLeft)}if(t.startLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(g,t.startLabelRight,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startRight=d,Z(h,t.startLabelRight)}if(t.endLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(d,t.endLabelLeft,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endLeft=d,Z(h,t.endLabelLeft)}if(t.endLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(d,t.endLabelRight,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endRight=d,Z(h,t.endLabelRight)}return m},"insertEdgeLabel");function Z(r,t){tt(U())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}p(Z,"setTerminalWidth");var vr=p((r,t)=>{x.debug("Moving label abc88 ",r.id,r.label,F.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,e=U(),{subGraphTitleTotalMargin:o}=gt(e);if(r.label){let n=F.get(r.id),s=r.x,i=r.y;if(a){let l=H.calcLabelPosition(a);x.debug("Moving label "+r.label+" from (",s,",",i,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,i=l.y)}n.attr("transform",`translate(${s}, ${i+o/2})`)}if(r.startLabelLeft){let n=L.get(r.id).startLeft,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.startLabelRight){let n=L.get(r.id).startRight,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelLeft){let n=L.get(r.id).endLeft,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelRight){let n=L.get(r.id).endRight,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}},"positionEdgeLabel"),Ct=p((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,o=Math.abs(e.x-a.x),n=Math.abs(e.y-a.y);return o<.001||n<.001?t:n>=o?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),zt=p((r,t)=>{let a=r.x,e=r.y,o=Math.abs(t.x-a),n=Math.abs(t.y-e),s=r.width/2,i=r.height/2;return o>=s||n>=i},"outsideNode"),At=p((r,t,a)=>{x.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(a)}
4
+ node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,o=r.y,n=Math.abs(e-a.x),s=r.width/2,i=a.x<t.x?s-n:s+n,l=r.height/2,m=Math.abs(t.y-a.y),c=Math.abs(t.x-a.x);if(Math.abs(o-t.y)*s>Math.abs(e-t.x)*l){let u=a.y<t.y?t.y-l-o:o-l-t.y;i=c*u/m;let h={x:a.x<t.x?a.x+i:a.x-c+i,y:a.y<t.y?a.y+m-u:a.y-m+u};return i===0&&(h.x=t.x,h.y=t.y),c===0&&(h.x=t.x),m===0&&(h.y=t.y),x.debug(`abc89 top/bottom calc, Q ${m}, q ${u}, R ${c}, r ${i}`,h),h}else{a.x<t.x?i=t.x-s-e:i=e-s-t.x;let u=m*i/c,h=a.x<t.x?a.x+c-i:a.x-c+i,d=a.y<t.y?a.y+u:a.y-u;return x.debug(`sides calc abc89, Q ${m}, q ${u}, R ${c}, r ${i}`,{_x:h,_y:d}),i===0&&(h=t.x,d=t.y),c===0&&(h=t.x),m===0&&(d=t.y),{x:h,y:d}}},"intersection"),Lt=p((r,t)=>{x.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],o=!1;return r.forEach(n=>{if(x.info("abc88 checking point",n,t),!zt(t,n)&&!o){let s=At(t,e,n);x.debug("abc88 inside",n,e,s),x.debug("abc88 intersection",s,t);let i=!1;a.forEach(l=>{i=i||l.x===s.x&&l.y===s.y}),a.some(l=>l.x===s.x&&l.y===s.y)?x.warn("abc88 no intersect",s,a):a.push(s),o=!0}else x.warn("abc88 outside",n,e),e=n,o||a.push(n)}),x.debug("returning points",a),a},"cutPathAtIntersect");function vt(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let o=r[e-1],n=r[e],s=r[e+1];(o.x===n.x&&n.y===s.y&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-o.y)>5||o.y===n.y&&n.x===s.x&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-s.y)>5)&&(t.push(n),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}p(vt,"extractCornerPoints");var _t=p(function(r,t,a){let e=t.x-r.x,o=t.y-r.y,n=Math.sqrt(e*e+o*o),s=a/n;return{x:t.x-s*e,y:t.y-s*o}},"findAdjacentPoint"),Rt=p(function(r){let{cornerPointPositions:t}=vt(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let o=r[e-1],n=r[e+1],s=r[e],i=_t(o,s,5),l=_t(n,s,5),m=l.x-i.x,c=l.y-i.y;a.push(i);let u=Math.sqrt(2)*2,h={x:s.x,y:s.y};if(Math.abs(n.x-o.x)>10&&Math.abs(n.y-o.y)>=10){x.debug("Corner point fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));let d=5;s.x===i.x?h={x:m<0?i.x-d+u:i.x+d-u,y:c<0?i.y-u:i.y+u}:h={x:m<0?i.x-u:i.x+u,y:c<0?i.y-d+u:i.y+d-u}}else x.debug("Corner point skipping fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));a.push(h,l)}else a.push(r[e]);return a},"fixCorners"),Pt=p((r,t,a)=>{let e=r-t-a,o=2,n=2,s=o+n,i=Math.floor(e/s),l=Array(i).fill(`${o} ${n}`).join(" ");return`0 ${t} ${l} ${a}`},"generateDashArray"),Sr=p(function(r,t,a,e,o,n,s,i=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:l,layout:m}=U(),c=t.points,u=!1,h=o;var d=n;let g=[];for(let b in t.cssCompiledStyles)mt(b)||g.push(t.cssCompiledStyles[b]);if(m==="swimlane"){if(d.intersect&&h.intersect&&Array.isArray(c)&&c.length>=2)if(c.length===2)c=[h.intersect(c[0]),d.intersect(c[1])];else{let b=c.slice(1,-1),$=b[0],v=b[b.length-1],S=.5,C=Math.abs(c[c.length-1].x-v.x)<S&&Math.abs(c[c.length-1].y-v.y)<S,X=h.intersect($),Y=C?v:d.intersect(v),z=Math.abs(Y.x-v.x)<S&&Math.abs(Y.y-v.y)<S,Wt=Math.abs(X.x-$.x)<S&&Math.abs(X.y-$.y)<S?[]:[X],Xt=z?[]:[Y];c=[...Wt,...b,...Xt]}c=Ct(t,c)}else d.intersect&&h.intersect&&!i&&(c=c.slice(1,t.points.length-1),c.unshift(h.intersect(c[0])),c.push(d.intersect(c[c.length-1])));let y=btoa(JSON.stringify(c));t.toCluster&&(x.info("to cluster abc88",a.get(t.toCluster)),c=Lt(t.points,a.get(t.toCluster).node),u=!0),t.fromCluster&&(x.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(c,null,2)),c=Lt(c.reverse(),a.get(t.fromCluster).node).reverse(),u=!0);let f=c.filter(b=>!Number.isNaN(b.y)),w=Tt(t.curve);w!=="rounded"&&(f=Rt(f));let k=j;switch(w){case"linear":k=j;break;case"basis":k=rt;break;case"cardinal":k=it;break;case"bumpX":k=st;break;case"bumpY":k=ot;break;case"catmullRom":k=ct;break;case"monotoneX":k=lt;break;case"monotoneY":k=dt;break;case"natural":k=pt;break;case"step":k=ht;break;case"stepAfter":k=kt;break;case"stepBefore":k=ft;break;case"rounded":k=j;break;default:k=rt}let{x:B,y:J}=wt(t),P=nt().x(B).y(J).curve(k),_;switch(t.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-invisible";break;default:_="edge-thickness-normal"}switch(t.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed";break;default:_+=" edge-pattern-solid"}let M,N=w==="rounded"?St(Ot(f,t),5):P(f),O=Array.isArray(t.style)?t.style:[t.style],V=O.find(b=>b?.startsWith("stroke:")),T="";t.animate&&(T="edge-animation-fast"),t.animation&&(T="edge-animation-"+t.animation);let G=!1;if(t.look==="handDrawn"){let b=bt.svg(r);Object.assign([],f);let $=b.path(N,{roughness:.3,seed:l});_+=" transition",M=W($).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(T?" "+T:"")).attr("style",O?O.reduce((S,C)=>S+";"+C,""):"");let v=M.attr("d");M.attr("d",v),r.node().appendChild(M.node())}else{let b=g.join(";"),$=O?O.reduce((z,A)=>z+A+";",""):"",v=(b?b+";"+$+";":$)+";"+(O?O.reduce((z,A)=>z+";"+A,""):"");M=r.append("path").attr("d",N).attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(T?" "+T:"")).attr("style",v),V=v.match(/stroke:([^;]+)/)?.[1],G=t.animate===!0||!!t.animation||b.includes("animation");let S=M.node(),C=typeof S.getTotalLength=="function"?S.getTotalLength():0,X=at[t.arrowTypeStart]||0,Y=at[t.arrowTypeEnd]||0;if(t.look==="neo"&&!G){let A=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Pt(C,X,Y):`0 ${X} ${C-X-Y} ${Y}`}; stroke-dashoffset: 0;`;M.attr("style",A+M.attr("style"))}}M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",y),M.attr("data-look",yt(t.look)),t.showPoints&&f.forEach(b=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",b.x).attr("cy",b.y)});let D="";(U().flowchart.arrowMarkerAbsolute||U().state.arrowMarkerAbsolute)&&(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,D=D.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),x.info("arrowTypeStart",t.arrowTypeStart),x.info("arrowTypeEnd",t.arrowTypeEnd);let $t=!G&&t?.look==="neo";Yt(M,t,D,s,e,$t,V);let Et=Math.floor(c.length/2),Ut=c[Et];H.isLabelCoordinateInPath(Ut,M.attr("d"))||(u=!0);let K={};return u&&(K.updatedPath=c),K.originalPath=t.points,K},"insertEdge");function St(r,t){if(r.length<2)return"";let a="",e=r.length,o=1e-5;for(let n=0;n<e;n++){let s=r[n],i=r[n-1],l=r[n+1];if(n===0)a+=`M${s.x},${s.y}`;else if(n===e-1)a+=`L${s.x},${s.y}`;else{let m=s.x-i.x,c=s.y-i.y,u=l.x-s.x,h=l.y-s.y,d=Math.hypot(m,c),g=Math.hypot(u,h);if(d<o||g<o){a+=`L${s.x},${s.y}`;continue}let y=m/d,f=c/d,w=u/g,k=h/g,B=y*w+f*k,J=Math.max(-1,Math.min(1,B)),P=Math.acos(J);if(P<o||Math.abs(Math.PI-P)<o){a+=`L${s.x},${s.y}`;continue}let _=Math.min(t/Math.sin(P/2),d/2,g/2),M=s.x-y*_,N=s.y-f*_,O=s.x+w*_,V=s.y+k*_;a+=`L${M},${N}`,a+=`Q${s.x},${s.y} ${O},${V}`}}return a}p(St,"generateRoundedPath");function et(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}p(et,"calculateDeltaAndAngle");function Ot(r,t){let a=r.map(o=>({...o}));if(r.length>=2&&Q[t.arrowTypeStart]){let o=Q[t.arrowTypeStart],n=r[0],s=r[1],{angle:i}=et(n,s),l=o*Math.cos(i),m=o*Math.sin(i);a[0].x=n.x+l,a[0].y=n.y+m}let e=r.length;if(e>=2&&Q[t.arrowTypeEnd]){let o=Q[t.arrowTypeEnd],n=r[e-1],s=r[e-2],{angle:i}=et(s,n),l=o*Math.cos(i),m=o*Math.sin(i);a[e-1].x=n.x-l,a[e-1].y=n.y-m}return a}p(Ot,"applyMarkerOffsetsToPoints");var qt=p((r,t,a,e)=>{t.forEach(o=>{pr[o](r,a,e)})},"insertMarkers"),Qt=p((r,t,a)=>{x.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),It=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Zt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Nt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Vt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Dt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),jt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Ft=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),Jt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Gt=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{transitionColor:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),Kt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),tr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),rr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ar=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),er=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),nr=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n,mainBkg:s}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let l=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),sr=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),or=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n,mainBkg:s}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let l=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),ir=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},"requirement_arrow"),cr=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
8
+ L20,10
9
+ M20,10
10
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),lr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),dr=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n}=o,s=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),pr={extension:Qt,composition:It,aggregation:Zt,dependency:Nt,lollipop:Vt,point:Dt,circle:jt,cross:Ft,barb:Jt,barbNeo:Gt,only_one:Kt,zero_or_one:tr,one_or_more:rr,zero_or_more:ar,only_one_neo:er,zero_or_one_neo:nr,one_or_more_neo:sr,zero_or_more_neo:or,requirement_arrow:ir,requirement_contains:lr,requirement_arrow_neo:cr,requirement_contains_neo:dr},Or=qt;export{F as a,L as b,Lr as c,_r as d,vr as e,Sr as f,Or as g};
@@ -0,0 +1,2 @@
1
+ import{a as pt}from"./chunk-22DRK7VS.js";import{A as E,D as dr,N,h as or,l as gr}from"./chunk-7CSIRG7W.js";import{b as w}from"./chunk-ERWOH47R.js";import{a}from"./chunk-EIBFAW37.js";import{$ as Nr,J as xr,M as br,N as Ar,O as wr,P as Or,Q as Br,R as Sr,S as Ir,T as Pr,U as Mr,V as Wr,W as Er,X as Lr,Y as Dr,Z as $r,_ as Rr,aa as Fr,ba as jr,ca as Tr,e as hr}from"./chunk-LGUG3SQB.js";import{b as at}from"./chunk-6DHFEWGX.js";function h(r){return r==null||typeof r!="object"&&typeof r!="function"}function d(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var F="[object RegExp]",O="[object String]",B="[object Number]",S="[object Boolean]",I="[object Arguments]",j="[object Symbol]",T="[object Date]",z="[object Map]",_="[object Set]",v="[object Array]";var U="[object ArrayBuffer]",k="[object Object]";var H="[object DataView]",q="[object Uint8Array]",K="[object Uint8ClampedArray]",V="[object Uint16Array]",X="[object Uint32Array]";var Y="[object Int8Array]",G="[object Int16Array]",J="[object Int32Array]";var Z="[object Float32Array]",Q="[object Float64Array]";function zr(r){return Array.isArray(r)}function P(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}function x(r){return P(r)}function ct(r){if(h(r))return r;let t=d(r);if(!ut(r))return{};if(zr(r)){let e=Array.from(r);return r.length>0&&typeof r[0]=="string"&&Object.hasOwn(r,"index")&&(e.index=r.index,e.input=r.input),e}if(x(r)){let e=r,n=e.constructor;return new n(e.buffer,e.byteOffset,e.length)}if(t==="[object ArrayBuffer]")return new ArrayBuffer(r.byteLength);if(t==="[object DataView]"){let e=r,n=e.buffer,m=e.byteOffset,o=e.byteLength,f=new ArrayBuffer(o),s=new Uint8Array(n,m,o);return new Uint8Array(f).set(s),new DataView(f)}if(t==="[object Boolean]"||t==="[object Number]"||t==="[object String]"){let e=r.constructor,n=new e(r.valueOf());return t==="[object String]"?lt(n,r):nr(n,r),n}if(t==="[object Date]")return new Date(Number(r));if(t==="[object RegExp]"){let e=r,n=new RegExp(e.source,e.flags);return n.lastIndex=e.lastIndex,n}if(t==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(r));if(t==="[object Map]"){let e=r,n=new Map;return e.forEach((m,o)=>{n.set(o,m)}),n}if(t==="[object Set]"){let e=r,n=new Set;return e.forEach(m=>{n.add(m)}),n}if(t==="[object Arguments]"){let e=r,n={};return nr(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}let i={};return gt(i,r),nr(i,r),yt(i,r),i}function ut(r){switch(d(r)){case I:case v:case U:case H:case S:case T:case Z:case Q:case Y:case G:case J:case z:case B:case k:case F:case _:case O:case j:case q:case K:case V:case X:return!0;default:return!1}}function nr(r,t){for(let i in t)Object.hasOwn(t,i)&&(r[i]=t[i])}function yt(r,t){let i=Object.getOwnPropertySymbols(t);for(let e=0;e<i.length;e++){let n=i[e];Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}}function lt(r,t){let i=t.valueOf().length;for(let e in t)Object.hasOwn(t,e)&&(Number.isNaN(Number(e))||Number(e)>=i)&&(r[e]=t[e])}function gt(r,t){let i=Object.getPrototypeOf(t);i!==null&&typeof t.constructor=="function"&&Object.setPrototypeOf(r,i)}function C(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){let i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let t=r;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function _r(){}function rr(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}var mr=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function M(r){return typeof mr.Buffer<"u"&&mr.Buffer.isBuffer(r)}function vr(r){return Number.isSafeInteger(r)&&r>=0}function tr(r){return r!=null&&typeof r!="function"&&vr(r.length)}function Ur(r){return r==="__proto__"}function kr(r,t){return W(r,void 0,r,new Map,t)}function W(r,t,i,e=new Map,n=void 0){let m=n?.(r,t,i,e);if(m!==void 0)return m;if(h(r))return r;if(e.has(r))return e.get(r);if(Array.isArray(r)){let o=new Array(r.length);e.set(r,o);for(let f=0;f<r.length;f++)o[f]=W(r[f],f,i,e,n);return Object.hasOwn(r,"index")&&(o.index=r.index),Object.hasOwn(r,"input")&&(o.input=r.input),o}if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp){let o=new RegExp(r.source,r.flags);return o.lastIndex=r.lastIndex,o}if(r instanceof Map){let o=new Map;e.set(r,o);for(let[f,s]of r)o.set(f,W(s,f,i,e,n));return o}if(r instanceof Set){let o=new Set;e.set(r,o);for(let f of r)o.add(W(f,void 0,i,e,n));return o}if(M(r))return r.subarray();if(P(r)){let o=new(Object.getPrototypeOf(r)).constructor(r.length);e.set(r,o);for(let f=0;f<r.length;f++)o[f]=W(r[f],f,i,e,n);return o}if(r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);if(r instanceof DataView){let o=new DataView(r.buffer.slice(0),r.byteOffset,r.byteLength);return e.set(r,o),u(o,r,i,e,n),o}if(typeof File<"u"&&r instanceof File){let o=new File([r],r.name,{type:r.type});return e.set(r,o),u(o,r,i,e,n),o}if(typeof Blob<"u"&&r instanceof Blob){let o=new Blob([r],{type:r.type});return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof Error){let o=structuredClone(r);return e.set(r,o),o.message=r.message,o.name=r.name,o.stack=r.stack,o.cause=r.cause,o.constructor=r.constructor,u(o,r,i,e,n),o}if(r instanceof Boolean){let o=new Boolean(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof Number){let o=new Number(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(r instanceof String){let o=new String(r.valueOf());return e.set(r,o),u(o,r,i,e,n),o}if(typeof r=="object"&&dt(r)){let o=Object.create(Object.getPrototypeOf(r));return e.set(r,o),u(o,r,i,e,n),o}return r}function u(r,t,i=r,e,n){let m=[...Object.keys(t),...rr(t)];for(let o=0;o<m.length;o++){let f=m[o],s=Object.getOwnPropertyDescriptor(r,f);(s==null||s.writable)&&(r[f]=W(t[f],f,i,e,n))}}function dt(r){switch(d(r)){case I:case v:case U:case H:case S:case T:case Z:case Q:case Y:case G:case J:case z:case B:case k:case F:case _:case O:case j:case q:case K:case V:case X:return!0;default:return!1}}function Hr(r,t){return kr(r,(i,e,n,m)=>{let o=t?.(i,e,n,m);if(o!==void 0)return o;if(typeof r=="object"){if(d(r)==="[object Object]"&&typeof r.constructor!="function"){let f={};return m.set(r,f),u(f,r,n,m),f}switch(Object.prototype.toString.call(r)){case B:case O:case S:{let f=new r.constructor(r?.valueOf());return u(f,r),f}case I:{let f={};return u(f,r),f.length=r.length,f[Symbol.iterator]=r[Symbol.iterator],f}default:return}}})}function fr(r){return Hr(r)}function L(r){return r!==null&&typeof r=="object"&&d(r)==="[object Arguments]"}function D(r){return typeof r=="object"&&r!==null}function qr(r){return D(r)&&tr(r)}function Kr(r){let t=r?.constructor;return r===(typeof t=="function"?t.prototype:Object.prototype)}function b(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");let i=function(...e){let n=t?t.apply(this,e):e[0],m=i.cache;if(m.has(n))return m.get(n);let o=r.apply(this,e);return i.cache=m.set(n,o)||m,o};return i.cache=new(b.Cache||Map),i}b.Cache=Map;function Vr(r){if(h(r))return r;if(Array.isArray(r)||P(r)||r instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer)return r.slice(0);let t=Object.getPrototypeOf(r);if(t==null)return Object.assign(Object.create(t),r);let i=t.constructor;if(r instanceof Date||r instanceof Map||r instanceof Set)return new i(r);if(r instanceof RegExp){let e=new i(r);return e.lastIndex=r.lastIndex,e}if(r instanceof DataView)return new i(r.buffer.slice(0));if(r instanceof Error){let e;return r instanceof AggregateError?e=new i(r.errors,r.message,{cause:r.cause}):e=new i(r.message,{cause:r.cause}),e.stack=r.stack,Object.assign(e,r),e}return typeof File<"u"&&r instanceof File?new i([r],r.name,{type:r.type,lastModified:r.lastModified}):typeof r=="object"?Object.assign(Object.create(t),r):r}function Xr(r,...t){let i=t.slice(0,-1),e=t[t.length-1],n=r;for(let m=0;m<i.length;m++){let o=i[m];n=er(n,o,e,new Map)}return n}function er(r,t,i,e){if(h(r)&&(r=Object(r)),t==null||typeof t!="object")return r;if(e.has(t))return Vr(e.get(t));if(e.set(t,r),Array.isArray(t)){t=t.slice();for(let m=0;m<t.length;m++)t[m]=t[m]??void 0}let n=[...Object.keys(t),...rr(t)];for(let m=0;m<n.length;m++){let o=n[m];if(Ur(o))continue;let f=t[o],s=r[o];if(L(f)&&(f={...f}),L(s)&&(s={...s}),M(f)&&(f=fr(f)),Array.isArray(f))if(Array.isArray(s)){let y=[],c=Reflect.ownKeys(s);for(let g=0;g<c.length;g++){let l=c[g];y[l]=s[l]}s=y}else if(qr(s)){let y=[];for(let c=0;c<s.length;c++)y[c]=s[c];s=y}else s=[];let p=i(s,f,o,r,t,e);p!==void 0?r[o]=p:Array.isArray(f)||D(s)&&D(f)&&(C(s)||C(f)||x(s)||x(f))?r[o]=er(s,f,i,e):s==null&&C(f)?r[o]=er({},f,i,e):s==null&&x(f)?r[o]=fr(f):(s===void 0||f!==void 0)&&(r[o]=f)}return r}function sr(r,...t){return Xr(r,...t,_r)}function ht(r){if(r==null)return!0;if(tr(r))return typeof r.splice!="function"&&typeof r!="string"&&!M(r)&&!x(r)&&!L(r)?!1:r.length===0;if(typeof r=="object"||typeof r=="function"){if(r instanceof Map||r instanceof Set)return r.size===0;let t=Object.keys(r);return Kr(r)?t.filter(i=>i!=="constructor").length===0:t.length===0}return!0}var Jr=at(pt(),1);var xt="\u200B",bt={curveBasis:wr,curveBasisClosed:Or,curveBasisOpen:Br,curveBumpX:br,curveBumpY:Ar,curveBundle:Sr,curveCardinalClosed:Pr,curveCardinalOpen:Mr,curveCardinal:Ir,curveCatmullRomClosed:Er,curveCatmullRomOpen:Lr,curveCatmullRom:Wr,curveLinear:xr,curveLinearClosed:Dr,curveMonotoneX:$r,curveMonotoneY:Rr,curveNatural:Nr,curveStep:Fr,curveStepAfter:Tr,curveStepBefore:jr},At=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,wt=a(function(r,t){let i=Zr(r,/(?:init\b)|(?:initialize\b)/),e={};if(Array.isArray(i)){let o=i.map(f=>f.args);gr(o),e=or(e,[...o])}else e=i.args;if(!e)return;let n=dr(r,t),m="config";return e[m]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),e[n]=e[m],delete e[m]),e},"detectInit"),Zr=a(function(r,t=null){try{let i=new RegExp(`[%]{2}(?![{]${At.source})(?=[}][%]{2}).*
2
+ `,"ig");r=r.trim().replace(i,"").replace(/'/gm,'"'),w.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${r}`);let e,n=[];for(;(e=E.exec(r))!==null;)if(e.index===E.lastIndex&&E.lastIndex++,e&&!t||t&&e[1]?.match(t)||t&&e[2]?.match(t)){let m=e[1]?e[1]:e[2],o=e[3]?e[3].trim():e[4]?JSON.parse(e[4].trim()):null;n.push({type:m,args:o})}return n.length===0?{type:r,args:null}:n.length===1?n[0]:n}catch(i){return w.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${r}'`),{type:void 0,args:null}}},"detectDirective"),mi=a(function(r){return r.replace(E,"")},"removeDirectives"),Ot=a(function(r,t){for(let[i,e]of t.entries())if(e.match(r))return i;return-1},"isSubstringInArray");function Qr(r,t){if(!r)return t;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return bt[i]??t}a(Qr,"interpolateToCurve");function Cr(r,t){let i=r.trim();if(i)return t.securityLevel!=="loose"?(0,Jr.sanitizeUrl)(i):i}a(Cr,"formatUrl");var Bt=a((r,...t)=>{let i=r.split("."),e=i.length-1,n=i[e],m=window;for(let o=0;o<e;o++)if(m=m[i[o]],!m){w.error(`Function name: ${r} not found in window`);return}m[n](...t)},"runFunc");function ar(r,t){return!r||!t?0:Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}a(ar,"distance");function rt(r){let t,i=0;r.forEach(n=>{i+=ar(n,t),t=n});let e=i/2;return pr(r,e)}a(rt,"traverseEdge");function tt(r){return r.length===1?r[0]:rt(r)}a(tt,"calcLabelPosition");var Yr=a((r,t=2)=>{let i=Math.pow(10,t);return Math.round(r*i)/i},"roundNumber"),pr=a((r,t)=>{let i,e=t;for(let n of r){if(i){let m=ar(n,i);if(m===0)return i;if(m<e)e-=m;else{let o=e/m;if(o<=0)return i;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:Yr((1-o)*i.x+o*n.x,5),y:Yr((1-o)*i.y+o*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),St=a((r,t,i)=>{w.info(`our points ${JSON.stringify(t)}`),t[0]!==i&&(t=t.reverse());let n=pr(t,25),m=r?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),f={x:0,y:0};return f.x=Math.sin(o)*m+(t[0].x+n.x)/2,f.y=-Math.cos(o)*m+(t[0].y+n.y)/2,f},"calcCardinalityPosition");function et(r,t,i){let e=structuredClone(i);w.info("our points",e),t!=="start_left"&&t!=="start_right"&&e.reverse();let n=25+r,m=pr(e,n),o=10+r*.5,f=Math.atan2(e[0].y-m.y,e[0].x-m.x),s={x:0,y:0};return t==="start_left"?(s.x=Math.sin(f+Math.PI)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f+Math.PI)*o+(e[0].y+m.y)/2):t==="end_right"?(s.x=Math.sin(f-Math.PI)*o+(e[0].x+m.x)/2-5,s.y=-Math.cos(f-Math.PI)*o+(e[0].y+m.y)/2-5):t==="end_left"?(s.x=Math.sin(f)*o+(e[0].x+m.x)/2-5,s.y=-Math.cos(f)*o+(e[0].y+m.y)/2-5):(s.x=Math.sin(f)*o+(e[0].x+m.x)/2,s.y=-Math.cos(f)*o+(e[0].y+m.y)/2),s}a(et,"calcTerminalLabelPosition");function it(r){let t="",i="";for(let e of r)e!==void 0&&(e.startsWith("color:")||e.startsWith("text-align:")?i=i+e+";":t=t+e+";");return{style:t,labelStyle:i}}a(it,"getStylesFromArray");var Gr=0,It=a(()=>(Gr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Gr),"generateId");function ot(r){let t="",i="0123456789abcdef",e=i.length;for(let n=0;n<r;n++)t+=i.charAt(Math.floor(Math.random()*e));return t}a(ot,"makeRandomHex");var Pt=a(r=>ot(r.length),"random"),Mt=a(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Wt=a(function(r,t){let i=t.text.replace(N.lineBreakRegex," "),[,e]=ur(t.fontSize),n=r.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",e),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);let m=n.append("tspan");return m.attr("x",t.x+t.textMargin*2),m.attr("fill",t.fill),m.text(i),n},"drawSimpleText"),Et=b((r,t,i)=>{if(!r||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),N.lineBreakRegex.test(r)))return r;let e=r.split(" ").filter(Boolean),n=[],m="";return e.forEach((o,f)=>{let s=$(`${o} `,i),p=$(m,i);if(s>t){let{hyphenatedStrings:g,remainingWord:l}=Lt(o,t,"-",i);n.push(m,...g),m=l}else p+s>=t?(n.push(m),m=o):m=[m,o].filter(Boolean).join(" ");f+1===e.length&&n.push(m)}),n.filter(o=>o!=="").join(i.joinWith)},(r,t,i)=>`${r}${t}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Lt=b((r,t,i="-",e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},e);let n=[...r],m=[],o="";return n.forEach((f,s)=>{let p=`${o}${f}`;if($(p,e)>=t){let c=s+1,g=n.length===c,l=`${p}${i}`;m.push(g?p:l),o=""}else o=p}),{hyphenatedStrings:m,remainingWord:o}},(r,t,i="-",e)=>`${r}${t}${i}${e.fontSize}${e.fontWeight}${e.fontFamily}`);function nt(r,t){return cr(r,t).height}a(nt,"calculateTextHeight");function $(r,t){return cr(r,t).width}a($,"calculateTextWidth");var cr=b((r,t)=>{let{fontSize:i=12,fontFamily:e="Arial",fontWeight:n=400}=t;if(!r)return{width:0,height:0};let[,m]=ur(i),o=["sans-serif",e],f=r.split(N.lineBreakRegex),s=[],p=hr("body");if(!p.remove)return{width:0,height:0,lineHeight:0};let y=p.append("svg");for(let g of o){let l=0,A={width:0,height:0,lineHeight:0};for(let st of f){let yr=Mt();yr.text=st||xt;let lr=Wt(y,yr).style("font-size",m).style("font-weight",n).style("font-family",g),R=(lr._groups||lr)[0][0].getBBox();if(R.width===0&&R.height===0)throw new Error("svg element not in render tree");A.width=Math.round(Math.max(A.width,R.width)),l=Math.round(R.height),A.height+=l,A.lineHeight=Math.round(Math.max(A.lineHeight,l))}s.push(A)}y.remove();let c=isNaN(s[1].height)||isNaN(s[1].width)||isNaN(s[1].lineHeight)||s[0].height>s[1].height&&s[0].width>s[1].width&&s[0].lineHeight>s[1].lineHeight?0:1;return s[c]},(r,t)=>`${r}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Dt=class{constructor(r=!1,t){this.count=0,this.count=t?t.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},ir,$t=a(function(r){return ir=ir||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ir.innerHTML=r,unescape(ir.textContent)},"entityDecode");function Rt(r){return"str"in r}a(Rt,"isDetailedError");var Nt=a((r,t,i,e)=>{if(!e)return;let n=r.node()?.getBBox();n&&r.append("text").text(e).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-i).attr("class",t)},"insertTitle"),ur=a(r=>{if(typeof r=="number")return[r,r+"px"];let t=parseInt(r??"",10);return Number.isNaN(t)?[void 0,void 0]:r===String(t)?[t,r+"px"]:[t,r]},"parseFontSize");function mt(r,t){return sr({},r,t)}a(mt,"cleanAndMerge");var fi={assignWithDepth:or,wrapLabel:Et,calculateTextHeight:nt,calculateTextWidth:$,calculateTextDimensions:cr,cleanAndMerge:mt,detectInit:wt,detectDirective:Zr,isSubstringInArray:Ot,interpolateToCurve:Qr,calcLabelPosition:tt,calcCardinalityPosition:St,calcTerminalLabelPosition:et,formatUrl:Cr,getStylesFromArray:it,generateId:It,random:Pt,runFunc:Bt,entityDecode:$t,insertTitle:Nt,isLabelCoordinateInPath:ft,parseFontSize:ur,InitIDGenerator:Dt},si=a(function(r){let t=r;return t=t.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),t=t.replace(/#\w+;/g,function(i){let e=i.substring(1,i.length-1);return/^\+?\d+$/.test(e)?"\uFB02\xB0\xB0"+e+"\xB6\xDF":"\uFB02\xB0"+e+"\xB6\xDF"}),t},"encodeEntities"),ai=a(function(r){return r.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),pi=a((r,t,{counter:i=0,prefix:e,suffix:n},m)=>m||`${e?`${e}_`:""}${r}_${t}_${i}${n?`_${n}`:""}`,"getEdgeId");function Ft(r){return r??null}a(Ft,"handleUndefinedAttr");function ft(r,t){let i=Math.round(r.x),e=Math.round(r.y),n=t.replace(/(\d+\.\d+)/g,m=>Math.round(parseFloat(m)).toString());return n.includes(i.toString())||n.includes(e.toString())}a(ft,"isLabelCoordinateInPath");export{ct as a,ht as b,xt as c,mi as d,Qr as e,it as f,It as g,Pt as h,Et as i,nt as j,$ as k,cr as l,Rt as m,ur as n,mt as o,fi as p,si as q,ai as r,pi as s,Ft as t};
@@ -0,0 +1 @@
1
+ var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>{try{return a||b((a={exports:{}}).exports,a),a.exports}catch(c){throw a=0,c}};var l=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&f(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b};var n=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?f(c,"default",{value:b,enumerable:!0}):c,b));export{m as a,n as b};
@@ -0,0 +1,2 @@
1
+ import{a as o,b as d,c,d as i,e as l,g as u,s as v,w as g,y as m}from"./chunk-VYZZPKGK.js";var p=class extends m{static{o(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},h=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"),f=class extends g{static{o(this,"RailroadPegValueConverter")}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 h(n)}return t}runCustomConverter(a,e,r){if(a.name==="PEG_STRING")return h(e)}},C={parser:{TokenBuilder:o(()=>new p,"TokenBuilder"),ValueConverter:o(()=>new f,"ValueConverter")}};function R(a=l){let e=i(c(a),u),r=i(d({shared:e}),v,C);return e.ServiceRegistry.register(r),{shared:e,RailroadPeg:r}}o(R,"createRailroadPegServices");export{C as a,R as b};