UNPKG

mermaid

Version:

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

2 lines (1 loc) • 458 B
import{a as c}from"./chunk-V3YWWTDH.mjs";function p(i){let o=new WeakMap;function r(n){if(n===null||typeof n!="object")return n;let s=o.get(n);if(s!==void 0)return s;if(Array.isArray(n)){let t=new Array(n.length);return o.set(n,t),n.forEach((f,k)=>{t[k]=r(f)}),t}let e={};o.set(n,e);for(let t of Object.keys(n))t==="__proto__"||t==="constructor"||t==="prototype"||(e[t]=r(n[t]));return e}return c(r,"sanitize"),r(i)}c(p,"stripPrototypeKeys");export{p as a};