importScripts("./mt-main-and-worker.js","./beautify-html.min.js"),TVR_DEV_MODE=self.name&&0===self.name.indexOf("TVR_DEV_MODE"),function(){var s=MTMainAndWorker;onmessage=function(e){var a=e.data,t=a.taskName;if(!n[t])return postMessage({log:"Task does not exist",success:!1}),!1;s.startT("worker_task_"+t),a.delay?setTimeout(function(){n[t](a,e),s.endT("worker_task_"+t,1)},a.delay):(n[t](a,e),s.endT("worker_task_"+t,1))};var n={postMessage:function(e,a){e.channel=a.channel,e.taskName=a.taskName,e.workerID=a.workerID,e.cb=a.cb,e.mainThreadData=a.mainThreadData,e.terminateOnCompletion=a.terminateOnCompletion,postMessage(e)},formatHTML:function(e,a){n.postMessage({log:"We will process the HTML",html:s.formatHTMLString(e.html,e.custom,e.hasPseudo,self.html_beautify)},e)}}}();