"use strict";(function(e){"use strict";var n=["a","b","blockquote","br","caption","code","del","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","mark","ol","p","pre","q","s","samp","span","strong","sub","sup","table","tbody","td","tfoot","th","thead","tr","ul","var"],a=["href","src","alt","title","class","id","name","colspan","rowspan","align","width","height","lang","dir","start","reversed","type"];function i(t){if(!t||typeof t.sanitize!="function")throw new Error("createMarkdownSanitizer: a DOMPurify instance is required");var s={ALLOWED_TAGS:n,ALLOWED_ATTR:a,FORBID_TAGS:["style","svg","math","script","iframe","object","embed","form"],FORBID_ATTR:["style"],ALLOW_DATA_ATTR:!1,ADD_ATTR:[],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,KEEP_CONTENT:!0};return function(r){return t.sanitize(r==null?"":String(r),s)}}e&&(e.createMarkdownSanitizer=i,e.DOMPurify&&typeof e.DOMPurify.sanitize=="function"&&(e.sanitizeMarkdownHtml=i(e.DOMPurify))),typeof module<"u"&&module.exports&&(module.exports={createMarkdownSanitizer:i,ALLOWED_TAGS:n,ALLOWED_ATTR:a})})(typeof globalThis<"u"?globalThis:typeof window<"u"?window:void 0);
