/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/web-console-log@0.0.7/dist/web-console-log.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
(()=>{"use strict";const e="linear-gradient(135deg, rgba(240, 240, 240, 0.9), rgba(192, 192, 192, 0.9))",t=()=>{const t=document.createElement("div");t.style.position="fixed",t.style.right="10px",t.style.bottom="10px",t.style.width="30px",t.style.height="30px",t.style.border="2px solid #ccc",t.style.borderRadius="50%",t.style.backgroundColor="rgba(0, 0, 0, 0.9)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.boxShadow="0 0 5px rgba(0, 0, 0, 0.1)",t.style.cursor="pointer",t.style.opacity=.2,t.style.transition="opacity 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out";const o=document.createElement("div");t.appendChild(o),o.style.position="absolute",o.style.background=e,o.style.width="5px",o.style.height="5px",o.style.borderRadius="50%",o.style.top="5px";const n=document.createElement("div");return t.appendChild(n),n.style.position="absolute",n.style.background=e,n.style.width="5px",n.style.height="13px",n.style.bottom="5px",n.style.borderRadius="2px",t.onmouseover=()=>t.style.opacity=1,t.onmouseout=()=>t.style.opacity=.2,t};let o=!1,n=!1,s=!1,l=()=>{},r=null,i=0,a=!1;const c=[];let d="";const p=(e,t,o)=>{if(!a)return void c.push([e,t,o]);if(i>1e3)return;l("error"===t);const n=r.scrollTop+r.offsetHeight>=r.scrollHeight-2,s=document.createElement("div");if(r.append(s),s.style.padding="1.5px 3px",s.style.margin="1.5px 0",s.style.minHeight="1em","error"===t||"warn"===t?(s.style.backgroundColor="error"===t?"rgba(255, 0, 0, 0.3)":"rgba(255, 255, 0, 0.3)",s.style.borderRadius="3px"):s.style.borderBottom="1px solid rgba(255, 255, 255, 0.1)",e.length){for(const t of e.split("\n"))s.append(document.createElement("br"),document.createTextNode(t));s.removeChild(s.firstChild)}if(o){const e=document.createElement("span");e.style.width="13px",e.style.height="13px",e.style.backgroundColor="#e74c3c",e.style.borderRadius="50%",e.style.position="relative",e.style.display="inline-flex",e.style.justifyContent="center",e.style.alignItems="center",e.style.marginTop="1px",e.style.marginRight="3px";for(let t=0;t<2;t++){const o=document.createElement("span");e.appendChild(o),o.style.position="absolute",o.style.width="60%",o.style.height="2px",o.style.backgroundColor="#fff",o.style.transform=`rotate(${45*(1-2*t)}deg)`}s.insertBefore(e,s.firstChild)}d+=`(${t}): ${e}\n`,n&&(r.scrollTop=r.scrollHeight),i++,1e3===i&&p("Too many messages. Logging stopped.","warn",!0)},y=(e,t="info")=>{p(e,t,!1)},u=e=>{p(e,"error",!0)},m=()=>d,g=()=>{const e=location.href.split("/");return e.pop(),e.join("/")+"/"},f=e=>{if("string"==typeof e||"number"==typeof e)return String(e);if("function"==typeof e)return`[Function: ${e.name||"anonymous"}]`;const t=new WeakSet;return JSON.stringify(e,((e,o)=>{if(void 0===o)return"[[undefined]]";if("object"==typeof o&&null!==o){if(t.has(o))return"[[[circular]]]";if(t.add(o),Array.isArray(o)&&o.length>100)return[...o.slice(0,100),`...and ${o.length-100} more items`]}return"function"==typeof o?`[[[Function: ${o.name||"anonymous"}]]]`:o}),2).replace(/"\.\.\.and \d+ more items"/g,(e=>e.replace(/^"/,"").replace(/"$/,""))).replace(/"\[\[.+\]\]"/g,(e=>e.replace(/^"\[\[/,"").replace(/\]\]"$/,"")))},h=e=>{const t=[];for(const o of e.split("\n")){let e,n,s,l;{const e=/^    at (.+):([0-9]+):([0-9]+)$/.exec(o);e&&([,n,s,l]=e)}{const t=/^    at (.+) \((.+):([0-9]+):([0-9]+)\)$/.exec(o);t&&([,e,n,s,l]=t)}{const e=/^@(.+):([0-9]+):([0-9]+)$/.exec(o);e&&([,n,s,l]=e)}{const t=/^(.+)@(.+):([0-9]+):([0-9]+)$/.exec(o);t&&([,e,n,s,l]=t)}n&&t.push({funcname:e,filename:n,lineno:s,colno:l})}return t},x=(e,t)=>{if(t){const o=h(t);if(o[0]&&0!==o[0].filename.indexOf(g()))return;e=[e,...o.map((({funcname:e,filename:t,lineno:o,colno:n})=>(0===t.indexOf(g())&&(t=0===(t=t.substring(g().length)).length?"(index)":"./"+t),e?`    at ${e} (${t}:${o}:${n})`:`    at ${t}:${o}:${n}`)))].join("\n")}u(e.trim())};(()=>{const e=console.log,t=console.warn,o=console.error;console.log=function(t){e.apply(this,arguments);const o=new Error,n=h(o.stack);-1!==n[1]?.filename?.indexOf(g())&&(arguments.length>1&&(t=[...arguments]),y(f(t)))},console.warn=function(e){t.apply(this,arguments);const o=new Error,n=h(o.stack);-1!==n[1]?.filename?.indexOf(g())&&(arguments.length>1&&(e=[...arguments]),y(f(e),"warn"))},console.error=function(e){o.apply(this,arguments);const t=new Error,n=h(t.stack);-1!==n[1]?.filename?.indexOf(g())&&(arguments.length>1&&(e=[...arguments]),y(f(e),"error"))}})(),addEventListener("error",(e=>{x(e.message,e.error?.stack)})),addEventListener("unhandledrejection",(e=>{e.reason instanceof Error?x(`(Unhandled Promise Rejection) ${e.reason.__proto__.name}: ${e.reason.message}`,e.reason.stack):u("(Unhandled Promise Rejection) "+f(e.reason))})),document.addEventListener("DOMContentLoaded",(()=>{const d=(()=>{const o=document.createElement("div");o.style.position="fixed",o.style.flexDirection="column",o.style.display="flex",o.style.bottom="0",o.style.left="0",o.style.right="0",o.style.maxHeight="300px",o.style.height="30%",o.style.background="rgba(0, 0, 0, 0.8)",o.style.borderRadius="10px",o.style.overflow="hidden",o.style.boxShadow="inset 0 0 3px rgba(255, 255, 255, 0.5)",o.style.transition="height 150ms ease-out";const n=document.createElement("div");o.appendChild(n),n.style.background=e,n.style.color="#222",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="space-between",n.style.padding="3px 10px 1px 15px",n.style.fontSize="14px",n.style.fontWeight="bold",n.style.borderBottom="1px solid rgba(255, 255, 255, 0.2)",n.style.fontFamily="Arial, sans-serif",n.style.cursor="pointer";const s=document.createElement("span");n.appendChild(s),s.textContent="web-console-log";const l=document.createElement("button");s.appendChild(l),l.style.marginLeft="15px",l.textContent="copy";const r=document.createElement("button");n.appendChild(r),r.textContent="✕",r.style.background="none",r.style.border="none",r.style.color="#000",r.style.fontSize="16px",r.style.cursor="pointer";const i=document.createElement("div");return o.appendChild(i),i.style.padding="3px 8px",i.style.width="100%",i.style.height="100%",i.style.color="white",i.style.fontSize="14px",i.style.overflow="scroll",i.style.boxSizing="border-box",i.style.whiteSpace="pre-wrap",i.style.fontFamily="Consolas, Menlo, Monaco, 'Courier New', monospace",{iconDiv:t(),consoleRootDiv:o,headerDiv:n,copyButton:l,closeButton:r,contentDiv:i}})();(e=>{const{iconDiv:t,consoleRootDiv:r,headerDiv:i,copyButton:a,closeButton:c}=e,d=()=>{t.style.display=s?"none":"flex",s=!s},p=()=>{r.style.display=n?"none":"flex",n=!n},y=()=>{r.style.height=o?"30%":i.offsetHeight+"px",o=!o},u=document.createElement("div");document.body.appendChild(u),u.append(r,t),n=!1,s=!1,o=!1,t.style.display="none",r.style.display="none",t.onclick=()=>(d(),p(),!1),i.onclick=()=>(y(),!1),a.onclick=async e=>{e.stopPropagation();const t=m(),o=document.createElement("span");try{await navigator.clipboard.writeText(t),o.textContent="copied to the clipboard"}catch(e){o.textContent="unable to copy to the clipboard."}o.style.transition="opacity 150ms ease-out",o.style.position="absolute",o.style.marginLeft="7px",o.style.marginTop="3px",o.style.fontWeight="normal",o.style.opacity=1,a.parentElement.appendChild(o),(async()=>{await new Promise((e=>setTimeout(e,2e3))),o.style.opacity=0,await new Promise((e=>setTimeout(e,150))),o.remove()})()},c.onclick=e=>(e.stopPropagation(),d(),p(),o&&y(),!1),l=e=>{s||n||d(),e&&(t.style.backgroundColor="rgba(255, 0, 0, 0.9)",t.style.borderColor="rgba(204, 0, 0, 0.9)",t.style.opacity=1,t.children[0].style.background="",t.children[0].style.backgroundColor="rgba(150, 30, 30, 0.9)",t.children[1].style.background="",t.children[1].style.backgroundColor="rgba(150, 30, 30, 0.9)",t.onmouseout=t.onmouseover=null)}})(d),(e=>{if(({contentDiv:r}=e),i=0,a=!0,c.length){for(const e of c)p.apply(null,e);c.length=0}})(d)}))})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2ViLWNvbnNvbGUtbG9nLmpzIiwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlcyI6WyJ3ZWItY29uc29sZS1sb2cuanMiXSwic291cmNlc0NvbnRlbnQiOlsiIl0sImlnbm9yZUxpc3QiOlswXX0=