// Last snippet code update: 2024-07-15
const adgABTestHelper=function(t){const e={enabled:!1,testName:"adg-pbs",trafficRateClientSide:.5},n="enableAdagioS2S",i="adagio";function s(){return function(){try{if(t.top.location.href)return!0}catch(t){return!1}}()?t.top:t.self}function o(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,o)}return{init:function(a){try{const{enabled:r,testName:c,trafficRateClientSide:l,sd:f}=Object.assign({},e,a),d=f||18e5,m=s().localStorage,p=JSON.parse(m.getItem(i)||"{}"),u=Date.now();p.session=p.session||{};const{session:g}=p,y=function(){const t=Math.random();g.new=!0,g.initiator="snippet",g.rnd=t,g.id=o(),g.testName=c,g.testVersion=t<l?"clt":"srv",g.lastActivityTime=u};"boolean"==typeof r&&r?("number"!=typeof g.lastActivityTime||u-g.lastActivityTime>d?y():g.testName?(g.new=!1,g.initiator="snippet",g.lastActivityTime=u):y(),t[n]="srv"===g.testVersion):delete t[n],m.setItem(i,JSON.stringify(p))}catch(t){console.error(t)}}}}(window);

adgABTestHelper.init({
        enabled: true,
        testName: "adg-pbs"
})