(({window:e,document:t,googletag:n})=>{const o={},c=(e,t)=>{t&&(n.pubads().setTargeting(e,t),o[e]=t)},a=e=>Object.entries(e).forEach(([e,t])=>c(e,t));n?.cmd&&n.cmd.push(async()=>{const n=(()=>{let e=t.currentScript;return e?.dataset?.pub?e.dataset.pub:(e=t.querySelector("script[data-pub]"),e?.dataset?.pub?e.dataset.pub:void 0)})();c("WY_PUB",n);const r=encodeURIComponent(e.location.href);await fetch(`https://api.elevate14r.com/int?pub=${n}&ref=${r}`,{credentials:"include"}).then(e=>e.json()).then(t=>{a({WY_SYMBOL:t.symbol,WY_SYMBOL_FOUND:t.symbol?"Y":"N",WY_GROUPS:t.in?.join("/")||null,WY_V:t.vTrigger,WY_VC:t.vChg}),t.recent?.length&&a({WY_RECENT:t.recent[0],WY_RGROUPS:t.inRecent?.join("/")||null,WY_RQ:t.recent.join("/")}),a(Object.fromEntries(t.in?.map(e=>[`WY_SYMBOL_${e.toUpperCase()}`,"Y"])||[])),a(Object.fromEntries(t.inRecent?.map(e=>[`WY_R${e.toUpperCase()}`,"Y"])||[])),c("WY_ARRAY",Object.entries(o).map(([e,t])=>`${e}:${t}`).join("|")),e.$show_wy=()=>console.log(o)})})})({window:window,document:document,googletag:googletag});
