seedchat / .output /public /assets /@agoose77-BV03DAuW.js
github-actions[bot]
Update from GitHub Actions
b1a7fc9
import{m as e}from"./mermaid-Do0HRPun.js";import"./dayjs-DOPU4UI6.js";import"./@braintree-DgpeZQRe.js";import"./d3-transition-swcnLnsT.js";import"./d3-zoom-D4Vc87xO.js";import"./dompurify-B5jhUdWW.js";import"./dagre-d3-es-FtH4B9px.js";function t(t,r){e.initialize(Object.assign({securityLevel:"loose"},r));let i=t.renderer.rules.fence;t.renderer.rules.fence=function(t,r,n,m,s){let d=t[r],o=d.info.trim(),a=o?function(e){return e.split(/\s+/g)[0]}(o):"";if(-1===["mermaid","{mermaid}"].indexOf(a))return void 0!==i?i(t,r,n,m,s):"";let l="",c=[];const u=document.createElement("div");document.body.appendChild(u);try{const t="mermaid-container";e.mermaidAPI.render(t,d.content,(e=>{let r=document.getElementById(t);null!==r&&c.push(["style",`max-width:${r.style.maxWidth};max-height:${r.style.maxHeight}`]),l=e}),u)}catch(p){return`<div class="alert alert-danger">${p}</div>`}finally{u.remove()}return c.push(["src",`data:image/svg+xml,${encodeURIComponent(l)}`]),`<img ${s.renderAttrs({attrs:c})}>`}}export{t as m};