"use strict";(()=>{var t=document.createElement("div");t.style.display="none";t.id="__EXTENSION_INSTALLED";document.body.appendChild(t);var l=chrome.runtime.connect({name:"knockknock"});window.addEventListener("message",function(o){if(o.source!==window)return;let{data:a}=o,{type:n,id:e,data:s}=a;if(n&&n==="EXTENSION_IN"&&e){let{type:r,data:d}=s;switch(r){case"CALL":chrome.runtime.sendMessage(d,c=>{chrome.runtime.lastError?console.log(chrome.runtime.lastError.message):window.postMessage({type:"EXTENSION_OUT",id:e,data:c})});break;case"PING":window.postMessage({type:"EXTENSION_OUT",id:e,data:!0});break;default:throw new Error("not supported")}}},!1);var m=null;})();
