const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/port-client-B6dQGCr3.js","assets/port-types-DtzQBpiV.js"])))=>i.map(i=>d[i]);
const y="modulepreload",C=function(t){return"/"+t},m={},E=function(e,r,u){let f=Promise.resolve();if(r&&r.length>0){let a=function(n){return Promise.all(n.map(c=>Promise.resolve(c).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),b=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));f=a(r.map(n=>{if(n=C(n),n in m)return;m[n]=!0;const c=n.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${l}`))return;const i=document.createElement("link");if(i.rel=c?"stylesheet":y,c||(i.as="script"),i.crossOrigin="",i.href=n,b&&i.setAttribute("nonce",b),document.head.appendChild(i),c)return new Promise((w,x)=>{i.addEventListener("load",w),i.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${n}`)))})}))}function h(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return f.then(a=>{for(const o of a||[])o.status==="rejected"&&h(o.reason);return e().catch(h)})},s="🚀 HY-TKSHOP 🚀";function d(){const t=new Date,e=(r,u=2)=>r.toString().padStart(u,"0");return`${e(t.getHours())}:${e(t.getMinutes())}:${e(t.getSeconds())}.${e(t.getMilliseconds(),3)}`}const $={log:(...t)=>{console.log(`%c ${s} %c${d()}`,"font-weight:bold;padding: 3px;border:1px solid pink;border-radius: 3px;color: white;background: pink;","font-weight:normal;color:#888;background:transparent;padding:3px;",...t)},info:(...t)=>{console.log(`%c ${s} %c${d()}`,"font-weight:bold;padding: 3px;border:1px solid #00b5ff;border-radius: 3px;color: white;background: #00b5ff;","font-weight:normal;color:#888;background:transparent;padding:3px;",...t)},warn:(...t)=>{console.log(`%c ${s} %c${d()}`,"font-weight:bold;padding: 3px;border:1px solid #e59d00;border-radius: 3px;color: white;background: #e59d00;","font-weight:normal;color:#888;background:transparent;padding:3px;",...t)},error:(...t)=>{console.log(`%c ${s} %c${d()}`,"font-weight:bold;padding: 3px;border:1px solid #e52300;border-radius: 3px;color: white;background: #e52300;","font-weight:normal;color:#888;background:transparent;padding:3px;",...t)},debug:(...t)=>{console.log(`%c ${s} %c${d()}`,"font-weight:bold;padding: 3px;border:1px solid #6f6f6f;border-radius: 3px;color: white;background: #6f6f6f;","font-weight:normal;color:#888;background:transparent;padding:3px;",...t)}};let p=null;async function g(){if(!p){const{getContentScriptPortClient:t}=await E(async()=>{const{getContentScriptPortClient:e}=await import("./port-client-B6dQGCr3.js");return{getContentScriptPortClient:e}},__vite__mapDeps([0,1]));p=t()}return p}const k={log:(...t)=>{t.forEach(async e=>{try{(await g()).notify("RPA_LOG",{level:"debug",message:String(e)})}catch{}})},error:(...t)=>{t.forEach(async e=>{try{(await g()).notify("RPA_LOG",{level:"err",message:String(e)})}catch{}})},print:(...t)=>{t.forEach(async e=>{try{(await g()).notify("RPA_LOG",{level:"print",message:String(e)})}catch{}})},printError:(...t)=>{t.forEach(async e=>{try{(await g()).notify("RPA_LOG",{level:"printError",message:String(e)})}catch{}})}};export{E as _,$ as c,k as r};
