import"./modulepreload-polyfill-B5Qt9EMX.js";import{p as c,a as f}from"./content-processor-IWRcpt0Y.js";import{h as l}from"./jszip.min-DpCewD43.js";import"./logger-CvfM-6aa.js";import"./_commonjsHelpers-BosuxZz1.js";chrome.runtime.onMessage.addListener((e,d,a)=>{if(e.type==="PREPROCESS_FOR_PLATFORMS"){const{rawHtml:n,platforms:i,configs:p}=e.payload,o={};for(const t of i){const s=p[t];if(s)o[t]=c(n,s);else{const r=document.createElement("div");r.innerHTML=n,f(r);const m=r.innerHTML;o[t]={html:m,markdown:l(m)}}}a({platformContents:o})}return!1});
