import{c as e,f as t,o as n,r}from"./main-D027d2Op.js";function i(t,n){let r=[];return n.forEach(n=>{let i=[];n.uri.forEach(n=>{i.push(e(t,n))}),i.includes(!0)&&n.matchItem.forEach(e=>{r.push({collectionName:n.name,collectionId:n.id,strictPort:n.strictPort,...e})})}),r}function a(e){return new URL(n(e)).hostname}async function o(e){let n=new r(e).buildTargetURL();chrome.runtime?(chrome.runtime.sendMessage({action:t.UpdateTabURL,url:n}),window.close()):window.location.href=n}export{a as n,o as r,i as t};
//# sourceMappingURL=match-s30QP-MK.js.map