(()=>{{const t=()=>{window.NewfoldRuntime.linkTracker=n()},n=()=>({addUtmParams:e}),e=(t,n={})=>{try{if(["tel:","mailto:"].some(n=>t.startsWith(n)))return t;const e=window.NewfoldRuntime?.plugin?.brand||"bluehost",i=window.location.pathname+window.location.search+window.location.hash;if(!t.startsWith("http")&&!t.startsWith("/")){const n=window.location.pathname.includes("/wp-admin/");t=n?window.NewfoldRuntime?.siteUrl+"/wp-admin/"+t:window.NewfoldRuntime?.siteUrl+"/"+t}const o=new URL(t,window.NewfoldRuntime?.siteUrl),a={channelid:o.pathname.includes("wp-admin")?"P99C100S1N0B3003A151D115E0000V111":"P99C100S1N0B3003A151D115E0000V112",utm_source:i,utm_medium:e+"_plugin"},r={};o.searchParams.forEach((t,n)=>{r[n]=t});const s={...a,...n};return Object.keys(r).forEach(t=>{s.hasOwnProperty(t)&&delete s[t]}),function(t,n){const[e,i]=t.split("#",2),o=new URL(e,window.NewfoldRuntime?.siteUrl);return Object.entries(n).forEach(([t,n])=>{o.searchParams.set(t,n)}),o.toString()+(i?"#"+i:"")}(t,s)}catch(n){return t}};window.addEventListener("DOMContentLoaded",()=>{t()})}})();