(globalThis.webpackChunktag=globalThis.webpackChunktag||[]).push([[792],{20:(t,e,n)=>{"use strict";n.d(e,{A5:()=>r,h3:()=>o,ho:()=>d,ws:()=>u});var i=n(7386),s=n(2484);function a(t,e,n){const s=((0,i.E)()||{})[`${t}`]||[],a=s.length;return s.map(t=>{const i=function(t,e,n){const i=e||50;return t*(i/100)+(100-i)/n}(t.traffic,n,a),s=function(t,e){return t*((e||100)/100)}(i,e);return{...t,traffic:s}})}function o(t,e,n){return a(t,e,n).filter(({id:t})=>t!==i.Cy)}function r(t,e,n){return a(t,e,n).find(({id:t})=>t===i.Cy)}const c="ABTastyPreviousDynamicAllocation",d=t=>JSON.parse(s.Ks.getItem(s.Sd,c)||"{}")[t]||null,u=(t,e)=>{const n={...JSON.parse(s.Ks.getItem(s.Sd,c)||"{}"),[t]:e};s.Ks.setItem(s.Sd,c,JSON.stringify(n))}},88:(t,e,n)=>{"use strict";n.d(e,{DC:()=>c,Qm:()=>d,Yx:()=>s,fm:()=>a,nf:()=>o,to:()=>r});n(648);var i=n(2484);function s(t,e,n=100){!0===t()?e():setTimeout(()=>{s(t,e,n)},n)}function a(t,e=16,n){let i;return new Promise((s,a)=>{const o=()=>t()?s(!0):i=setTimeout(o,e);o(),n&&setTimeout(()=>{clearTimeout(i),a(!0)},n)})}function o(t,e,n){t===i.b1?sessionStorage.setItem(e,n):localStorage.setItem(e,n)}function r(t,e){return t===i.b1?sessionStorage.getItem(e):localStorage.getItem(e)}function c(t,e){t===i.b1?sessionStorage.removeItem(e):localStorage.removeItem(e)}function d(t){window.addEventListener("pageshow",e=>{e.persisted&&t()})}},108:(t,e)=>{"use strict";var n,i;e.gp=e.Ey=void 0,function(t){t.anyCookie="any_cookie",t.customJs="custom_js",t.didomi="didomi",t.disabled="disabled",t.specificCookie="specific_cookie",t.thirdParty="third_party",t.userAction="user_action",t.customEvent="custom_event"}(n||(e.Ey=n={})),function(t){t[t.test=1]="test",t[t.perso=2]="perso",t[t.redirection=4]="redirection",t[t.aa=8]="aa",t[t.patch=16]="patch"}(i||(e.gp=i={}))},117:(t,e,n)=>{"use strict";n.d(e,{X:()=>o});var i=n(721),s=n(427);const a=(0,i.c)((t,e)=>null==e||e!=e?t:e),o=(0,i.c)((t,e,n)=>a(t,(0,s.A)(e,n)))},427:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=(0,n(721).c)((t,e)=>t.reduce((t,e)=>t?t[e]:void 0,e))},602:(t,e,n)=>{"use strict";n.r(e),n.d(e,{mainTag:()=>c});var i=n(648),s=n(1134),a=n(8353),o=n(6381),r=n(9184);const c=t=>{(new o.k).initCustomEventState();const e=(0,s.yn)();(function(){try{const{accountIframeException:t,identifier:e}=(0,s.F5)();if(!t&&window.top!==window.self&&"object"==typeof window.top?.ABTasty&&window.top.ABTasty.accountData.accountSettings.identifier===e)return!1}catch(t){}return!0})()&&((0,i.fH)("Starting execution...",e),(0,a.FZ)(e),(0,r.Jr)()&&(0,r.i9)()(t))}},721:(t,e,n)=>{"use strict";function i(t,e=[]){return(...n)=>{const s=t.length,a=t=>"__missing__"===t,o=e.map(t=>a(t)&&n.length>0?n.shift():t).concat(n);return o.filter(t=>!a(t)).lengthi})},918:(t,e,n)=>{"use strict";n.d(e,{k:()=>s});var i=n(648);function s(t,{attributes:e,callback:n}={}){if(!t)return void(0,i.vV)('appendScript called with missing "src" parameter');const s=document.getElementsByTagName("head")[0],a=document.createElement("script");return n&&(a.onload=n),a.setAttribute("type","text/javascript"),a.setAttribute("src",t),e&&Object.entries(e).forEach(([t,e])=>{a.setAttribute(t,e)}),s.appendChild(a),a}},977:(t,e)=>{"use strict";var n,i,s,a,o,r;e.SC=e.Vd=e.fH=e.JP=e.qA=e.cz=void 0,function(t){t.aa="aa",t.ab="ab",t.multipage="multipage",t.multivariate="multivariate",t.mastersegment="mastersegment",t.subsegment="subsegment"}(n||(e.cz=n={})),function(t){t.simplePersonalization="sp",t.multipagePersonalization="mpp",t.multiexperiencePersonalization="mep",t.patch="patch",t.multipageTest="mpt",t.multivariate="mvt"}(i||(e.qA=i={})),function(t){t.aaTest="aa",t.redirection="redirection",t.patch="patch"}(s||(e.JP=s={})),function(t){t.any="any",t.once="once",t.oncePerSession="once_per_session",t.regular="regular"}(a||(e.fH=a={})),function(t){t.day="day",t.week="week",t.session="session"}(o||(e.Vd=o={})),function(t){t.all="all",t.some="some"}(r||(e.SC=r={}))},1134:(t,e,n)=>{"use strict";n.d(e,{$E:()=>h,AU:()=>p,B9:()=>y,Bz:()=>f,F5:()=>u,Fc:()=>a,Ut:()=>o,bA:()=>g,cR:()=>m,iN:()=>c,m_:()=>d,pw:()=>l,yn:()=>r});var i=n(9225);const s={accountSettings:{id:54857,identifier:"4b77df91feec73710d1895fadc886258",accountName:"Steve Madden",frameworkVersion:"next",pack:"premium",quota:0,useChina:!1,toleranceParams:[],toleranceRegex:null,omnitureIntegration:0,accountIframeException:!1,runAsThread:!1,addJquery:!1,jqueryVarName:null,ajaxAutoReload:!0,excludeIE:!0,hashMrasnAllowed:!0,globalCodeOnDocReady:!0,customCookieDomain:null,customCookiePath:"/",isSecureCookie:!1,oneVisitorOneTest:!1,cookieLifespan:13,waitForConsent:{data:null,campaignRestrictions:{test:!0,perso:!0,redirection:!0,aa:!0,patch:!0},mode:"disabled"},storageMode:"cookies",datalayerVariable:"dataLayer",datalayerMaxToSend:100,tealiumAccountName:null,tealiumProfileName:null,apiTokenWeborama:null,getAlwaysWeborama:null,kruxNamespace:null,eulerianPixelURL:null,cookielessEnabled:!1,byoidConfig:!1,emotionsAiPack:"light",recoAndMerchId:null,sampling:100,authorizedDomains:["stevemadden.com"],ferAccountId:null},accountRights:{recoAndMerchEnabled:!1},tests:{1493710:{name:"Dropdown vs Multi-cta [redirect test]",traffic:50,type:"ab",sub_type:"ab",parentID:0,dynamicTrafficModulation:50,dynamicTestedTraffic:100,priority:0,size:2,mutationObserverEnabled:!1,displayFrequencyType:"any",codeOnDomReady:!0,isHashAllocationEnabled:!0,m2eStartRange:0,segmentMode:"some",triggerMode:"some",languageState:"legacy",scopes:{urlScope:[{include:!0,condition:40,value:"https://www.stevemadden.com/"}],testId:1493710,qaUrlParameterEnabled:!0},customAnalytics:[{id:1631,enabled:!0}],campaignHash:"0191b73b5a7a09248d41471ba3286bf9",id:1493710,additionalType:"redirection",isAsync:!0,asyncVariationInfoById:{1860033:{id:1860033,traffic:50,name:"Variation 1"}}},1527436:{name:"EAI KPI check",traffic:100,type:"ab",sub_type:"ab",parentID:0,dynamicTrafficModulation:50,dynamicTestedTraffic:100,priority:0,size:2,mutationObserverEnabled:!1,displayFrequencyType:"any",codeOnDomReady:!0,isHashAllocationEnabled:!0,m2eStartRange:0,segmentMode:"some",triggerMode:"some",languageState:"legacy",scopes:{urlScope:[{include:!0,condition:10,value:"https://www.stevemadden.com/"}],ipScope:[{include:!0,to:0,range:!1,from:"1109730330"}],testId:1527436,qaUrlParameterEnabled:!1},customAnalytics:[{id:1631,enabled:!0}],campaignHash:"9360a7fd07814d02b53c0c13b32002f4",id:1527436,additionalType:"aa",isAsync:!0,asyncVariationInfoById:{1903698:{id:1903698,traffic:100,name:"Variation 1"}}},global:{needIPFetch:[],needGeolocFetch:[1527436],needAdBlockDetection:[],needUAParserFetch:[],needDCInfosFetch:[],needModificationEngine:!1,needEngagementLevelFetch:[],needDynamicAlloc:[]}},obsoletes:[1453215,1472160,1475954,1480527,1482526,1483393,1486623,1486640,1488663,1488685,1492214,1500234,1503428],migrationStatus:"NOTFOUND",integrationConnectors:[{id:3,name:"Datalayer",connectorType:"datalayer",js_key:"dataLayer",type:"ct",custom_trackings:[{id:2041603,name:"Add To Cart",matches:"some",conditions:[{id:1,operator:"equals",secondValue:null,type:"string",key:"event",value:"addToCart",is_array:!1}],scope:"all"},{id:1970063,name:"Google Tag Manager sw_addedtowishlist",matches:"some",conditions:[{id:1,operator:"equals",secondValue:null,type:"string",key:"event",value:"sw_addedtowishlist",is_array:!1}],scope:"all"}],transaction_trackings:[],conf:[],instances:[]}]},a=(t=s)=>{const{pack:e,quota:n}=t.accountSettings;return 0===e.indexOf("quota")&&n<=0},o=({accountSettings:t}=s)=>1===Number(t.runAsThread),r=()=>s,c=()=>r().accountLevelTrackings,d=t=>r().tests[t],u=()=>r().accountSettings,l=()=>u().identifier,g=()=>u().id,m=()=>r().crossDomainSettings||[],h=()=>i.Hu.getGlobalCampaignsInfos().needGeolocFetch.length>0,p=()=>"cookies"===u().storageMode,f=()=>r().integrationConnectors,y=()=>u().cookieLifespan||13},1387:(t,e,n)=>{"use strict";n.d(e,{C_:()=>h,K6:()=>p,Ry:()=>m});var i=n(6729),s=n(88),a=n(648),o=n(8987),r=n(6692),c=n(7471),d=n(6257),u=n(1666),l=n(3002),g=n(9225);const m=(t,e)=>({doWhen:s.Yx,jsCookie:o.A,ABTastyCookie:r.bo,ABTastySessionCookie:c.n,ABTastyLocalStorage:d.x,getGeoloc:u.KL,getParsedUserAgent:l.a,campaignId:t,variationId:e,campaign:t?g.Hu.instantiate(t):void 0,getParsedUserAgentAsync:async()=>await(0,l.a)(!0)}),h=(t,e,n,i)=>{const s=void 0!==e?void 0!==n?`Campaign ${e} | Variation ${n}`:`Campaign ${e}`:void 0!==i?`Script fragment: Additional information ${i}`:"Global Script";(0,a.FF)(`${s} - Error during custom code execution (or code targeting)`,t)};async function p(t,e,n,s,a,o){if(void 0===t)return!1;try{const s=await(0,i.W)(),r=m(e,n);let c,d=t;return o||(d=d.replace(/\$\.doWhen/g,"HELPERS.doWhen")),c=void 0!==s||o?new Function("$","jQuery","HELPERS","abResolve",d)(s,s,r,!!a&&a.resolve):new Function("HELPERS","abResolve",d)(r,!!a&&a.resolve),c}catch(t){return h(t,e,n,s),!(!a||!a.reject)&&a.reject(t)}}},1492:(t,e,n)=>{"use strict";n.d(e,{R1:()=>a,X8:()=>s,YQ:()=>i,aE:()=>o,qz:()=>r});let i=function(t){return t.campaign="CAMPAIGN",t.event="EVENT",t.item="ITEM",t.pageview="PAGEVIEW",t.segment="SEGMENT",t.transaction="TRANSACTION",t.visitorevent="VISITOREVENT",t.nps="NPS",t.batch="BATCH",t.datalayer="DATALAYER",t.consent="CONSENT",t.product="PRODUCT",t.usage="USAGE",t.troubleshooting="TROUBLESHOOTING",t.performance="PERFORMANCE",t}({}),s=function(t){return t.CART_ITEM="CART_ITEM",t.CART_TOTAL="CART_TOTAL",t.VIEW="VIEW",t}({}),a=function(t){return t.strict="STRICT_MODE",t.permissive="PERMISSIVE_MODE",t}({}),o=function(t){return t.any_cookie="LOW_COOKIE",t.specific_cookie="COMPLIANT_COOKIE",t.custom_js="MANUAL_CODE",t.third_party="THIRD_PARTY",t.didomi="DIDOMI",t}({}),r=function(t){return t.Boolean="boolean",t.IntegerArray="integer[]",t.Integer="integer",t.FloatArray="float[]",t.Float="float",t.ArrayArray="array[]",t.Array="array",t.ObjectArray="object[]",t.Object="object",t.StringArray="string[]",t.String="string",t}({})},1666:(t,e,n)=>{"use strict";n.d(e,{u$:()=>g,KL:()=>m,q0:()=>p,uA:()=>f,Tt:()=>h});var i=n(3346),s=n(7426),a=n(2484),o=n(3595),r=n(648);const c="ABTastyGeoloc";class d{constructor(t,e){this.name=t,this.state=e,this.createWaitPromise()}resetState(){this.state.wait.reject?.(`${this.name} service state is being reset`),this.state.wait={promise:null,resolve:null,reject:null},this.state.data=null,this.createWaitPromise()}createWaitPromise(){const t=this.state.wait;t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n})}getWaitPromise(){return this.state.wait.promise}getData(){try{return(0,o.g)(this.state.data)?JSON.parse(a.Ks.getItem(a.b1,c)):this.state.data}catch(t){return(0,r.vV)(`Error parsing ${this.name}: ${t}`),null}}setData(t){this.state.data=t,a.Ks.setItem(a.b1,c,JSON.stringify(t))}async fetch(t={weather:!1}){if(!(this.state.isNotFilled||o.g)(this.getData()))return(0,o.g)(this.state.data)&&(this.state.data=JSON.parse(a.Ks.getItem(a.b1,c))),void this.state.wait.resolve?.(!0);this.state.wait.promise||this.createWaitPromise();const e=setTimeout(()=>{(0,o.g)(this.getData())&&this.serviceFailure()},this.state.service.timeout);(0,s.Dk)(this.state.service.timeoutName,e);const n=Object.entries(t).reduce((t,[e,n],i)=>0===i?`?${e}=${n}`:`${t}&${e}=${n}`,"");await(0,i.J)(`${this.state.service.route}${n}`).then(t=>t.json()).then(t=>(this.setData(t),this.state.wait.resolve?.(!0),(0,s.fD)(this.state.service.timeoutName),!0)).catch(t=>(this.serviceFailure(),this.state.wait.reject?.(`An error occurred on ${this.name} service: ${t}`),(0,r.vV)(`Error while fetching ${this.name} data: ${t}`),!1))}serviceFailure(){sessionStorage.setItem(c,""),this.state.wait.reject?.(`${this.name} service failure`),(0,s.fD)(this.state.service.timeoutName)}}const u=new d("geoloc",{wait:{promise:null,resolve:null,reject:null},data:null,isNotFilled:t=>!t?.country_name,service:{timeout:3e3,timeoutName:"geolocFetchLoop",route:"https://dcinfos-cache.abtasty.com/v1/geoip"}}),l=new d("ip",{wait:{promise:null,resolve:null,reject:null},data:null,service:{timeout:3e3,timeoutName:"ipFetchLoop",route:"https://dcinfos-cache.abtasty.com/v1/geoip"}}),g=()=>u.fetch({weather:!1}),m=()=>u.getData(),h=()=>(u.getData()||l.getData())?.ip_address,p=()=>u.getWaitPromise(),f=()=>l.getWaitPromise()},1873:(t,e,n)=>{"use strict";n.d(e,{D0:()=>c,k5:()=>o,wi:()=>r});var i=n(3595),s=n(9700);let a=null;function o(){(0,i.g)(c())||r(),a=(0,s.hw)()}const r=()=>a=null,c=()=>a},2075:(t,e,n)=>{"use strict";n.d(e,{$:()=>s});var i=n(3595);const s=(t,e)=>t.map(t=>{for(const n in t){if("qt"===n)continue;const s=t[n];(0,i.g)(e[n])||e[n]!=s||delete t[n]}return t}).filter(t=>{const e=Object.keys(t);return!(1===e.length&&"qt"===e[0])})},2352:(t,e,n)=>{"use strict";n.d(e,{X:()=>i});class i{setMediator(t){this.mediator=t}}},2484:(t,e,n)=>{"use strict";n.d(e,{Ks:()=>g,Sd:()=>c,b1:()=>d});var i=n(648),s=n(88),a=n(117),o=n(1134),r=n(8009);const c="localStorage",d="sessionStorage";function u(){return!!(new r.NO).haveConsent([r.rv.storage])||(0,o.F5)().waitForConsent&&"disabled"===(0,o.F5)().waitForConsent.mode}function l(t){const e=/^(ab\s?tasty)/i;let n="";for(let i=window[t].length-1;i>=0;i--)n=window[t].key(i),n.match(e)&&(this.data[t][n]=window[t][n],(0,s.DC)(t,n))}const g={state:{inmemory:!0},data:{localStorage:{},sessionStorage:{}},migrate:function(){switch(u()?"browser":"memory"){case"browser":if(!this.state.inmemory)return;Object.keys(this.data).forEach(t=>{Object.keys(this.data[t]).forEach(e=>{(0,s.nf)(t,e,this.data[t][e])})}),this.state.inmemory=!1,(0,i.fH)("Data storage: data has been written in storage thanks to consent validation.");break;case"memory":l.call(this,c),l.call(this,d),this.state.inmemory=!0,(0,i.fH)("Data storage: data has been put in memory due to consent revoked.")}},setItem:function(t,e,n){this.state.inmemory&&u()&&this.migrate(),this.state.inmemory?this.data[t]=Object.assign(this.data[t],{[e]:n}):(0,s.nf)(t,e,n)},getItem:function(t,e){return this.state.inmemory&&u()&&this.migrate(),this.state.inmemory?(0,a.X)(null,[t,e],this.data):(0,s.to)(t,e)||null},removeItem:function(t,e){this.state.inmemory&&u()&&this.migrate(),this.state.inmemory?delete this.data[t][e]:(0,s.DC)(t,e)},clear:function(t=[]){const e=/^(ab\s?tasty)/i;[c,d].forEach(n=>{Object.keys(window[n]).forEach(i=>{!t.includes(i)&&e.test(i)&&this.removeItem(n,i)})})},setState:function(t,e){this.state[t]=e}}},2487:(t,e,n)=>{"use strict";n.d(e,{s:()=>i});let i=function(t){return t.visitorevent="EAI_VISITOREVENT",t.pageview="EAI_PAGEVIEW",t}({})},2492:(t,e,n)=>{"use strict";n.d(e,{E:()=>r});var i=n(88),s=n(2484),a=n(8445),o=n(2075);class r{constructor(){}getItems(t){return(0,i.to)("sessionStorage",t)}addItem(t,e){(0,i.nf)("sessionStorage",t,e)}getHitHistorySession(){return JSON.parse(s.Ks.getItem(s.b1,a.ok.HIT_HISTORY_SESSION)||"{}")}setHitHistorySession(t,e,n){const i=this.getHitHistorySession();if(i[t]?.includes(e))return i;const o=n?i[t]&&i.cst===n?{...i,[t]:[...i[t],e]}:{...i,cst:n,[t]:[e]}:i[t]?{...i,[t]:[...i[t],e]}:{...i,[t]:[e]};return s.Ks.setItem(s.b1,a.ok.HIT_HISTORY_SESSION,JSON.stringify(o)),o}getHitHistorySessionCst(){return this.getHitHistorySession().cst}checkHitHistorySession(t,e){const n=this.getHitHistorySession();return!!n[t]&&n[t]?.includes(e)||!1}cleanHitHistorySession(t){const e=this.getHitHistorySession(),n=Object.entries(e).filter(([e])=>e!==t);Object.keys(n).length>0?s.Ks.setItem(s.b1,a.ok.HIT_HISTORY_SESSION,JSON.stringify(n.reduce((t,[e,n])=>({...t,[e]:n}),{}))):s.Ks.removeItem(s.b1,a.ok.HIT_HISTORY_SESSION)}setCustomSegments(t){if(!t.s&&"object"!=typeof t.s)return;if(t.pa&&"string"!=typeof t.pa)return;let e=JSON.parse(s.Ks.getItem(s.b1,a.ok.CUSTOM_SEGMENTS))||[];const n=t.pa?{...t.s,pa:t.pa}:t.s;e=(0,o.$)(e,n),s.Ks.setItem(s.b1,a.ok.CUSTOM_SEGMENTS,JSON.stringify([...e,{...n,..."qt"in t?{qt:t.qt}:{}}]))}}},2524:(t,e,n)=>{"use strict";n.r(e),n.d(e,{detectDatalayer:()=>f,extractDatalayerToObject:()=>g,getDatalayer:()=>h,putInArrayIfNeeded:()=>m,sendDatalayerIfNeeded:()=>p});var i=n(7643),s=n(1492),a=n(1134),o=n(7862),r=n(7426),c=n(6883);const d="datalayerTimeout",u="hitDatalayerTimeout",l="waitDatalayer";function g(t){const e=t.length!==Object.keys(t).length?{...t}:t,n=Object.entries(e).filter(t=>Array.isArray(t[1]));return n.length>0&&n.forEach(t=>{e[t[0]]=g(t[1])}),e}function m(t,e){return[].concat(null!=t?t:e)}function h(){const{datalayerVariable:t}=(0,a.F5)();if(!t||!window[t])return null;const e=window[t];return Array.isArray(e)&&e.length<1&&Object.keys(e).length>0?g(e):e}function p(){const t=Math.floor((0,a.F5)().datalayerMaxToSend);if((0,c.r)(t)){const t={dlr:h()};(new i.n).setInternalHit(s.YQ.datalayer,t)}}function f(){if(null==window.ABTasty.datalayerEnabled)return new Promise((t,e)=>{const{datalayerVariable:n}=(0,a.F5)();n||e("Data layer variable is not set");const i=setInterval(()=>{const e=h();e&&(Array.isArray(e)&&e.length||Object.keys(e).length)&&((0,r.fD)(d),t())},200);(0,o.X)(l,i);const s=setTimeout(()=>{(0,o.T)(l),e("Data layer variable cannot be found")},2e3);(0,r.Dk)(d,s)}).then(()=>{window.ABTasty.datalayerEnabled=!0;const t=setTimeout(p,5e3);(0,r.Dk)(u,t)}).catch(t=>(window.ABTasty.datalayerEnabled=!1,t)).finally(()=>{(0,r.fD)(d),(0,o.T)(l)})}},2538:(t,e,n)=>{"use strict";n.d(e,{e:()=>s});var i=n(1134);const s=()=>{const{cookielessEnabled:t}=(0,i.F5)();return t}},2852:(t,e,n)=>{"use strict";n.d(e,{l:()=>i});const i=(0,n(721).c)((t,e)=>e.split(t))},3002:(t,e,n)=>{"use strict";n.d(e,{a:()=>l,g:()=>g});var i=n(648),s=n(3346),a=n(427),o=n(7426),r=n(2484);const c="ABTastyUA",d={timeout:3e3,timeoutName:"userAgentFetchLoop",route:"https://dcinfos-cache.abtasty.com/v1/ua-parser"},u=()=>{window.ABTasty.pendingUAParser=!1,sessionStorage.setItem(c,""),(0,o.fD)(d.timeoutName)},l=(t=>{const e={request:void 0,ua:void 0};return(n=!1,s=!1)=>{if(s&&(e.request=void 0,e.ua=void 0,r.Ks.removeItem(r.b1,c)),e.ua)return window.ABTasty.pendingUAParser=!1,e.ua;if(!r.Ks.getItem(r.b1,c)){const i=t=>{t&&r.Ks.setItem(r.b1,c,JSON.stringify(t)),e.ua=t};return n?(e.request||(e.request=t.apply(void 0)),e.request.then(t=>(i(t),t))):(e.request||(e.request=t.apply(void 0,[i])),e.ua)}window.ABTasty.pendingUAParser=!1;try{return e.ua=JSON.parse(r.Ks.getItem(r.b1,c)),e.ua}catch(t){return(0,i.FF)(`Error while parsing UserAgent from sessionStorage: ${t}`),e.ua}}})(async(t=()=>{})=>{window.ABTasty.pendingUAParser=!0;const e=(()=>{try{return new AbortController}catch(t){(0,i.FF)("Could not create AbortController",t)}})(),n=setTimeout(()=>{void 0===l()&&(e?.abort(),u())},d.timeout);return(0,o.Dk)(d.timeoutName,n),await(0,s.J)(d.route,{signal:e?.signal}).then(t=>t.json()).then(e=>(window.ABTasty.pendingUAParser=!1,(0,o.fD)(d.timeoutName),t(e),e)).catch(e=>{u(),(0,i.vV)(`Error while fetching userAgentParser data: ${e}`),t(void 0)})}),g=async(t=!1,e)=>{const n=t?await l(t):l(t);return 0===e.length?[n]:e.map(t=>(0,a.A)(t.split("."),n))}},3026:(t,e,n)=>{"use strict";n.d(e,{L:()=>b,a:()=>v});var i=n(6046),s=n(3002),a=n(648);const o=(0,i.I)();let r=!1;const c=[];let d,u={mousedown:[],click:[],submit:[],focus:[],blur:[],hover:[]};const l={childList:!0,subtree:!0},g=[document],m=[],h=t=>t.includes("[]")?t.split("[]")[2]:t,p=t=>{const e=m.reduce((t,{get:e})=>{const n=e();return null===n||"hidden"===n.visibilityState?t:[...new Set([...t,n])]},[document]);if(e.length&&e.some(t=>!g.includes(t))){g.length=0,g.push(...e);const n=Object.keys(u);for(const e of n)u[e]&&u[e]?.length&&w(t)(e)}return e},f=(t,e)=>c.some(n=>n.root===t&&n.event===e),y=(t,e,n=!1)=>(u[e]||[]).filter(({clicked:e,selector:i})=>{if(n&&!e)return!1;const s=h(i);return t.matches(s)||t.closest(s)}),v=()=>{for(const{root:t,event:e,listener:n}of c)t?.removeEventListener(e,n,!0);c.length=0,d?.disconnect(),u={mousedown:[],click:[],submit:[],focus:[],blur:[],hover:[]},r=!1},w=t=>async e=>{const n=({target:n})=>S(t)(n,e),[i]=await(0,s.g)(!0,["type"]),a=i?.toLowerCase()??null;if(["mousedown","click"].includes(e)&&a&&"desktop"!==a&&"ontouchstart"in document.documentElement)r||(()=>{const t=({target:t})=>{y(t,"mousedown").forEach(t=>t.clicked=!0),y(t,"click").forEach(t=>t.clicked=!0)},e=({target:t})=>{y(t,"mousedown").forEach(t=>t.clicked=!1),y(t,"click").forEach(t=>t.clicked=!1)},n=({target:t})=>{y(t,"mousedown",!0).forEach(e=>{const n=[e.name,null,e.testId??null,t];o?.then(t=>t?.aggregateActionTracking(...n))}),y(t,"click",!0).forEach(e=>{const n=[e.name,null,e.testId??null,t];o?.then(t=>t?.aggregateActionTracking(...n))})};for(const i of g){if(f(i,"touchstart"))continue;const s=[{event:"touchstart",listener:t},{event:"touchmove",listener:e},{event:"touchend",listener:n}];for(const{event:t,listener:e}of s)i.addEventListener(t,e,!0),c.push({root:i,event:t,listener:e})}})();else if("hover"===e&&"desktop"===a)(t=>{let e,n,i=!1;const s=s=>{if(i||!u.hover||!u.hover.length)return;i=!0,setTimeout(()=>i=!1);const a=s.target;for(const{selector:i}of u.hover){const s=h(i);(a.matches?.(s)||a.closest?.(s))&&(n=a,e=setTimeout(()=>{e=null,S(t)(a,"hover")},500))}},a=({target:t})=>{e&&t===n&&(clearTimeout(e),e=null)};for(const t of g){if(f(t,"pointerenter"))continue;const e=[{event:"pointerenter",listener:s},{event:"pointerleave",listener:a}];for(const{event:n,listener:i}of e)t.addEventListener(n,i,!0),c.push({root:t,event:n,listener:i})}})(t);else for(const t of g)f(t,e)||(t.addEventListener(e,n,!0),c.push({root:t,event:e,listener:n}));r||(r=!0)},S=t=>(t,e)=>{if(u[e])for(const{selector:n,name:i,testId:s}of u[e]){const e=h(n);try{if(t.matches(e)||t.closest(e)){const e=[i,null,s??null,t];o?.then(t=>t?.aggregateActionTracking(...e))}}catch(t){(0,a.FF)(`Provided for ${s} test selector ${e} is not valid: ${t}`)}}},A=(t,e,n)=>{for(const i of e)u[t]?.push({...i,testId:n})},T=(t,e)=>{for(const{selector:e}of t){if(!e.includes("[]"))continue;const t=e.split("[]").map(t=>t.trim());if(3!==t.length)continue;const[n,i]=t,s=()=>{const t=document.querySelector(n);if(!t||!(i in t))return null;if("contentDocument"===i){return t.contentDocument}return t[i]};m.push({get:s})}m.length&&(t=>{d??=new MutationObserver(()=>p(t)),d.observe(document.querySelector("body"),l)})(e)},b=t=>(e,n)=>{const i=Object.keys(e);for(const s of i){const i=e[s];T(i,t),p(t),u[s]&&0===u[s]?.length&&w(t)(s),A(s,i,n)}}},3340:(t,e,n)=>{"use strict";n.d(e,{B:()=>i});let i=function(t){return t.accepted="accepted",t.pending="pending",t.rejected="rejected",t.oneVisitorOneTest="one_visitor_one_test",t.traffic="traffic_rejected",t.timeout="timeout",t.checking="currently_checking",t.otherSubsegment="another_subsegment_already_started",t.targetByEventPending="target_by_event_pending",t.acceptedByRedirection="accepted_by_redirection",t.targetPages="target_pages_rejected",t.qaMode="qa_parameters_rejected",t.audience="audience_rejected",t.trigger="trigger_rejected",t.segment="segment_rejected",t.notChecked="master_campaign_not_checked",t.waitingForSubsegmentCheck="other_subsegment_is_checking",t.consent="campaign_type_rejected_by_consent",t.failedLoading="deferred_loading_failed",t.notPrioritizedYet="not_prioritized_yet",t.geoipConsent="geolocation_rejected_by_consent",t.waitingCodeResolution="waiting_code_resolution",t.displayFrequency="display_frequency_rejected",t.redirectDisallowed="redirect_disallowed",t.forceRejected="force_rejected",t.forceAccepted="force_accepted",t.exclusionGroupRejected="exclusion_group_rejected",t}({})},3346:(t,e,n)=>{"use strict";function i(t,e={}){return fetch(t,{method:"GET",mode:"cors",headers:{Origin:document.location.origin},...e})}n.d(e,{J:()=>i})},3410:(t,e,n)=>{"use strict";n.d(e,{EN:()=>c,Om:()=>r,kj:()=>o});var i=n(6552),s=n(1134),a=n(648);const o="abtasty_bypassSampling",r=async t=>{try{const e=await(0,i.w)(t);return e>0&&e<=((0,s.F5)().sampling||100)}catch(t){return(0,a.vV)("Sampling has failed",t),!1}},c=()=>new Promise(t=>{window.addEventListener(o,()=>t())})},3476:(t,e,n)=>{"use strict";n.d(e,{a:()=>s,d:()=>i});let i=function(t){return t.LOCAL_STORAGE="ABTastyData",t.ACTION_TRACKING="ActionTracking",t.CUSTOM_VARIABLE="CV",t.ITEM="items",t.SEGMENT="segments",t.TRANSACTION="transactions",t.VISITED_PAGES="VisitedPages",t.CSAT_VOTES="CsatVotes",t.NPS_VOTES="NpsVotes",t.EMOTIONS_AI="eai",t}({}),s=function(t){return t.CV="cv",t.ECO="eco",t}({})},3595:(t,e,n)=>{"use strict";function i(t){return null==t}n.d(e,{g:()=>i})},3621:(t,e)=>{"use strict";var n;!function(t){t.Cookie="cookie",t.LocalStorage="local_storage",t.JSVariable="js_variable"}(n||(n={}))},3656:(t,e,n)=>{"use strict";n.d(e,{sb:()=>I,WE:()=>E,t$:()=>N,cm:()=>$,VH:()=>S,sJ:()=>B,uo:()=>P,Qo:()=>D,Xb:()=>H,mf:()=>T,M5:()=>O,Dm:()=>V,aW:()=>R,$0:()=>L,$:()=>x,G1:()=>A,GW:()=>b,Gr:()=>j,lV:()=>F});var i=n(81),s=n(918),a=n(7426),o=n(3847);let r=function(t){return t.Windows="Windows",t.WindowsPhone="Windows Phone",t.Android="Android",t.Linux="Linux",t.iOS="iOS",t.Mac="Mac",t.Other="Other",t}({}),c=function(t){return t.Chrome="Chrome",t.Firefox="Firefox",t.Safari="Safari",t.Opera="Opera",t.InternetExplorer="Internet Explorer",t.Other="Other",t}({}),d=function(t){return t.Windows="win",t.WindowsPhone="windows phone",t.Android="android",t.Linux="linux",t.Iphone="iphone",t.Ipad="ipad",t.Mac="mac",t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Opera="opera",t.InternetExplorer="trident",t}({}),u=function(t){return t.Windows="win",t.Linux="linux",t.Mac="mac",t.Android="android",t.Iphone="iphone",t.Ipad="ipad",t.IPod="ipod",t.Pike="pike",t}({});const l="serif",g="Arial",m="Century",h="Courier",p="Lucida",f="Wingdings",y=["monospace",`sans-${l}`,l],v=["Andale Mono",`${g} Black`,`${g} Hebrew`,`${g} Narrow`,`${g} Rounded Mt Bold`,`${g} Unicode Ms`,"Book Antiqua",m,`${m} Schoolbook`,h,`${h} New`,"Geneva","Helvetica Neue",`${p} Grande`,`${p} Handwriting`,`${p} Sans Unicode`,"Monotype Corsiva","Ms Outlook","Myriad Pro","Segoe Ui Light",`${f} 2`,`${f} 3`];function w(t,e){const n=window.document.createElement("span"),{style:i}=n;return i.position="absolute",i.left="-9999px",i.fontSize="72px",i.lineHeight="normal",i.fontFamily=t,n.textContent="mmMwWLliI0O&1",e.appendChild(n),n}function S(){const t=window.document.body,e=window.document.createElement("div"),n=y.map(t=>w(t,e)),i=v.reduce((t,n)=>(t[n]=y.map(t=>w(`'${n}',${t}`,e)),t),{});t.appendChild(e);const{defaultWidth:s,defaultHeight:a}=y.reduce((t,e,i)=>{const{offsetWidth:s,offsetHeight:a}=n[i];return t.defaultWidth[e]=s,t.defaultHeight[e]=a,t},{defaultWidth:{},defaultHeight:{}}),o=v.filter(t=>{const e=i[t];return y.some((t,n)=>{const{offsetWidth:i,offsetHeight:o}=e[n];return i!==s[t]||o!==a[t]})});return t.removeChild(e),o}function A(t=window.navigator.userAgent){return/MSIE [678]/.test(t)}function T(){const t=window.navigator;return t.language||t.userLanguage||t.browserLanguage||t.systemLanguage}function b(){return window.self!==window.top&&"https:"===window.location.protocol}function I(){return new Promise(t=>{if(null!=window.ABTasty.ADBlockEnabled)return void t();const e=setTimeout(()=>{void 0!==window.ABTasty.ADBlockEnabled&&(window.ABTasty.AdBlockDetectionFailed=!0,t("AbBlock detection failed"))},2e3);(0,a.Dk)("adblockDetectionLoop",e);const n=[i.o3.fakeAd1,i.o3.fakeAd2,i.o3.fakeAd3].map(t=>`${t}${i.Y0.javascript}`),r=(e=0)=>{const i=(0,s.k)(`${(0,o.x)()}/${n[e]}`);i.async=!1,i.onload=()=>{e+1{window.ABTasty.ADBlockEnabled=!0,t("AdBlock is enabled")}};r()})}const C="adsbox";function E(){const t=document.createElement("div");t.innerHTML=" ",t.className=C;try{document.body.appendChild(t);const e=document.getElementsByClassName(C).item(0),n=0===e?.offsetHeight;return document.body.removeChild(t),n}catch(t){return!1}}const k=()=>window.document.documentElement,_=()=>window.document.getElementsByTagName("body").item(0);function O(){return[window.innerWidth||k().clientWidth||_()?.clientWidth,window.innerHeight||k().clientHeight||_()?.clientHeight]}function D(){return[window.screen.width,window.screen.height]}function N(){return window.screen.colorDepth}function B(){return window.devicePixelRatio}function P(){return window.navigator.platform}function $(){return window.navigator.doNotTrack??window.navigator.msDoNotTrack??window.doNotTrack}function V(t){const{productSub:e}=window.navigator,n=function(t){const e=t.toLowerCase();return e.indexOf(d.Firefox)>=0?c.Firefox:e.indexOf(d.Opera)>=0||e.indexOf("opr")>=0?c.Opera:e.indexOf(d.Chrome)>=0?c.Chrome:e.indexOf(d.Safari)>=0?c.Safari:e.indexOf(d.InternetExplorer)>=0?c.InternetExplorer:c.Other}(t);if([c.Chrome,c.Safari,c.Opera].includes(n)&&"20030107"!==e)return!0;const i=eval.toString().length;if(37===i&&![c.Safari,c.Firefox,c.Other].includes(n))return!0;if(39===i&&![c.InternetExplorer,c.Other].includes(n))return!0;if(33===i&&![c.Chrome,c.Opera,c.Other].includes(n))return!0;let s;try{throw"a"}catch(t){try{t.toSource(),s=!0}catch(t){s=!1}}return s&&![c.Firefox,c.Other].includes(n)}function R(){const{language:t,languages:e}=window.navigator;if(void 0===e)return!1;try{return e[0].substring(0,2)!==t.substring(0,2)}catch(t){return!0}}function L(t){const{oscpu:e,platform:n}=window.navigator,i=function(t){const e=t.toLowerCase();return e.indexOf(d.WindowsPhone)>=0?r.WindowsPhone:e.indexOf(d.Windows)>=0?r.Windows:e.indexOf(d.Android)>=0?r.Android:e.indexOf(d.Linux)>=0?r.Linux:e.indexOf(d.Iphone)>=0||e.indexOf(d.Ipad)>=0?r.iOS:e.indexOf(d.Mac)>=0?r.Mac:r.Other}(t);if(("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>0)&&![r.WindowsPhone,r.Android,r.iOS,r.Other].includes(i))return!0;if(void 0!==e){const t=e.toLowerCase();if(t.indexOf(u.Windows)>=0&&![r.Windows,r.WindowsPhone].includes(i))return!0;if(t.indexOf(u.Linux)>=0&&![r.Linux,r.Android].includes(i))return!0;if(t.indexOf(u.Mac)>=0&&![r.Mac,r.iOS].includes(i))return!0}const s=n.toLowerCase();return s.indexOf(u.Windows)>=0&&![r.Windows,r.WindowsPhone].includes(i)||((s.indexOf(u.Linux)>=0||s.indexOf(u.Android)>=0||s.indexOf(u.Pike)>=0)&&![r.Linux,r.Android].includes(i)||((s.indexOf(u.Mac)>=0||s.indexOf(u.Ipad)>=0||s.indexOf(u.IPod)>=0||s.indexOf(u.Iphone)>=0)&&![r.Mac,r.iOS].includes(i)||void 0===navigator.plugins&&![r.Windows,r.WindowsPhone].includes(i)))}function x(){const{screen:t}=window;return t.width("hidden"===document.visibilityState&&t(),null);return document.addEventListener(M,e),()=>{document.removeEventListener(M,e)}}},3663:(t,e,n)=>{"use strict";n.d(e,{M:()=>a,a:()=>c});var i=n(648),s=n(7426);const a="c:abtasty2-izjJRMEi",o=["cookies","improve_products","measure_content_performance"];function r(){if("object"==typeof window.Didomi&&"function"==typeof window.Didomi.getUserStatus){const t=window.Didomi.getUserStatus();return t?.consent_string?.length>0}return!1}function c(t,e,n){i.NI("Consent compliance check: Waiting for Didomi loaded and start.");const c=setTimeout(()=>n(),5e3);(0,s.Dk)("didomiTimeout",c);const d=()=>{i.fH("Consent compliance check: Start Didomi consent check."),clearTimeout(c);const s=t||a;!(!window.Didomi.getUserConsentStatusForVendor(s)||!t&&!o.every(t=>!!window.Didomi.getUserConsentStatusForPurpose(t)))?e():n()};window.didomiEventListeners=window.didomiEventListeners||[],r()?d():window.didomiEventListeners.push({event:"sync.ready",listener(){r()&&d()}}),window.didomiEventListeners.push({event:"consent.changed",listener:d})}},3828:(t,e,n)=>{"use strict";n.d(e,{startEmotionsAi:()=>j});var i=n(3595),s=n(9404),a=n(5543);const o="[EmotionsAI]";let r=function(t){return t.COMMUNITY="Community",t.QUALITY="Quality",t.UNDERSTANDING="Understanding",t.SAFETY="Safety",t.COMPETITION="Competition",t.ATTENTION="Attention",t.COMFORT="Comfort",t.IMMEDIACY="Immediacy",t.CHANGE="Change",t.NOTORIETY="Notoriety",t}({});const c=Object.values(r),d="eai",u="eas";var l=n(648),g=(n(1134),n(7643)),m=n(1492);n(3346);function h(t){const e=y(t);(new g.n).setInternalHit(m.YQ.segment,e)}var p=n(6115);function f(t){return!!t&&c.includes(t)}const y=t=>({pa:d,s:{[u]:t}});var v=n(2487),w=n(7550),S=n(3656);let A,T="",b="",I="",C=-1,E=0;function k(t){return t.reduce((t,e)=>t+e.length,0)>2e3}function _(t){const e=`${t}`;return e.substring(e.length-5)}function O(){E=Date.now()}function D(t){const{pageX:e,pageY:n}=t,i=Date.now(),s=i-E;T+=`${n},${e},${_(i)},${s};`,V()}function N(t){const{pageX:e,pageY:n}=t,i=`${n},${e}`;i!==A&&(b+=`${i},${_(Date.now())};`,A=i,k([I,b])&&V())}function B(t){const{clientX:e,clientY:n}=t,{innerHeight:i,innerWidth:s}=window;(n<=0||e<=0||e>=s||n>=i)&&V()}function P(t){const[{clientX:e,clientY:n}]=t.changedTouches,i=`${e},${n},${_(Date.now())};`;b+=i,"touchend"===t.type&&(I+=i,V())}function $(){T="",b="",I=""}function V(){(b.length||T.length||I.length)&&((new g.n).setInternalHit(v.s.visitorevent,{cpo:T,cp:b,spo:I}),$())}function R(){$();const t=(0,S.lV)(V),e=[[document.documentElement,"touchstart",P,!0],[document.documentElement,"touchmove",P,!0],[document.documentElement,"touchend",P,!0],[document,"mousedown",O],[document,"mouseup",D],[document,"mousemove",N],[document,"mouseout",B],[window,"scroll",()=>function(t){const e=document.body.scrollTop||document.documentElement.scrollTop;I+=`${e},${_(Date.now())};`,-1!==C&&clearTimeout(C),C=window.setTimeout(t,100)}(()=>{k([I,b])&&V()}),{passive:!0}]];return(0,w.Q)(()=>{e.forEach(([t,...e])=>t.addEventListener(...e))}),()=>{t(),e.forEach(([t,...e])=>t.removeEventListener(...e))}}const L=(t,e)=>{const n=R();!function(t,e){const n=3e4-(Date.now()-t),i=()=>{(0,s.pK)(a.Y,()=>{e()})};n>0?setTimeout(i,n):i()}(t,()=>{n(),(0,p.y)("collectDone",!0),(0,l.NI)(o,"collect done")})};var x=n(2492);const j=(t,e,n)=>{const s=(0,p.getEmotionsAiData)("collectDone");if(s)return;const a=(0,p.getEmotionsAiData)("segment");if((0,i.g)(a))L(t);else if(f(a)){if(n)h(a);else{const t=y(a);(new x.E).setCustomSegments(t)}!s&&(0,p.y)("collectDone",!0)}}},4349:(t,e,n)=>{"use strict";n.r(e),n.d(e,{addCheckTargetingListener:()=>c,allowedStatus:()=>o,checkTargetingEventName:()=>r});var i=n(9906),s=n(9225),a=n(3340);const o=[a.B.checking,a.B.pending,a.B.qaMode,a.B.targetPages,a.B.trigger,a.B.segment,a.B.rejected,a.B.audience,a.B.targetByEventPending],r="abtasty_checkTargeting",c=(()=>{let t=!1;return(e,n=!1)=>{n&&(t=!1),t||(t=!0,window.addEventListener(r,t=>{if(!t.detail)return;const{campaignId:n,withUrl:a,shouldCheckAll:r}=t.detail;n&&(t=>async(e,n=!1,a=!1)=>{const r=(0,s.iE)(e);r&&o.includes(r.getStatus())&&(a&&(r.data.audienceTrigger&&(0,i.II)(r.data.audienceTrigger),r.data.audienceSegment&&(0,i.II)(r.data.audienceSegment)),(n?await(0,i.S5)(t,r):await(0,i.E2)(t,!0,r))&&await r.executeCampaign(t))})(e)(n,a,r)}))}})()},4502:(t,e,n)=>{"use strict";n.d(e,{jS:()=>r,rh:()=>c});var i=n(8987),s=n(3656),a=n(5437),o=n(1134);function r(t){const{isSecureCookie:e,customCookieDomain:n,customCookiePath:i}=(0,o.F5)();return{expires:t,path:i||"/",domain:n||(0,a.R2)()||void 0,secure:e||(0,s.GW)()||!1,samesite:e||(0,s.GW)()?"none":"lax"}}function c(t,e){const n="ABTastyCookieQuickTest",s=`${t}${n}`;let a=!1;i.A.set(e,s,r(388));try{a=document.cookie.indexOf(n)>-1,t&&a?i.A.set(e,t,r(388)):i.A.remove(e,r(1))}catch(t){i.A.remove(e,r(1))}return a}},4854:(t,e,n)=>{var i={"./custom-analytics-1631.js":8476,"./integration-datalayer-3.js":6388};function s(t){return a(t).then(n)}function a(t){return Promise.resolve().then(()=>{if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]})}s.keys=()=>Object.keys(i),s.resolve=a,s.id=4854,t.exports=s},5066:(t,e,n)=>{"use strict";n.d(e,{h:()=>y});var i=n(977),s=n(3595),a=n(648),o=n(9225),r=n(721),c=n(9076),d=n(20);function u(t){return t.reduce((t,e)=>{const n=t[t.length-1]||0;return[...t,n+e]},[])}const l=(0,r.c)((t,e,{isDynamic:n=!1,testedTraffic:i,modulation:s},o)=>{const r=o[o.length-1];let c=Math.max(...t);if(n){const t=(0,d.A5)(e,i,s);t&&(c=t.traffic)}r+c>100&&(n&&(0,a.vV)(`[addOriginalVariationSlots] The sum of dc infos traffics got greater than 100! We've ignored it but it's weird. Last slot: ${r}. OriginalVariationTraffic: ${c}`),c=100-r);const u=r+c;return[...o,u]});function g(t,e,n){let i=[];const s=function(t,e,{isDynamic:n=!1,testedTraffic:i,modulation:s}){const a=Object.keys(t);let o=t;if(n){const t=(0,d.h3)(e,i,s);t.length&&(o={},t.forEach(({id:t,traffic:e})=>{o[t]={traffic:e}}))}return a.reduce((t,e)=>[...t,o[e].traffic],[])}(t,e,n);return i=(0,c.F)(u,l(s,e,n))(s),i}function m(t,e,n,s,o){let r=[];try{r=g(e,n,s)}catch(t){return(0,a.vV)("Error on function allocateTraffic.",t),-1}return function(t,e,n,s){const a=n.findIndex(e=>e>=t);return-1===a?i.cz.subsegment===s?0:-1:a===n.length-1?0:parseInt(e[a],10)}(t,Object.keys(e),r,o)}var h=n(7765),p=n(7725),f=n(6259);const y=async(t,e,n,r,c,u)=>{const l=(0,p.vm)(),g=t.getId(),y=(0,f.d)(g),v=!(0,s.g)(y),w=!t.isUsingHashAllocation(),S=async()=>{if(w)return Math.floor(100*Math.random()+1);try{const n=((t,e)=>{const n=new TextEncoder;return[i.qA.multipageTest,i.qA.multipagePersonalization].includes(t.getSubType())?n.encode(`${t.data.parentID}.${e}`):n.encode(`${t.data.id}.${e}`)})(t,e);return new Uint16Array(await crypto.subtle.digest("SHA-1",n))[0]%100+1}catch(t){return(0,a.FF)("Check that your website is in https otherwise cookieless allocation won't work"),Math.floor(100*Math.random()+1)}};if(l&&v)return y;if(w||!t.isDynamicAllocation()||(0,s.g)((0,d.ho)(g))){if(w&&r)return r.variationID;if(!w&&v)return y;if(w&&[i.qA.multipageTest,i.qA.multipagePersonalization].includes(t.getSubType())&&t.hasAlreadySeenBrothers(n)){const e=t.getSeenBrothers(n)[0];let i=null;if(e.variationID===o.me.Untracked)return e.variationID;{const n=(0,o.iE)(e.campaignId).getVariation(e.variationID);return i=n?n.masterVariationId:0,(0,s.g)(i)||0===i?o.me.Original:t.getVariationInfoByMasterId(i).id}}if(w&&t.isMultipageChild()&&t.hasSeenMaster(n)){const e=n.getCampaign(c);return n.removeCampaign(c),e.variationID===o.me.Untracked?e.variationID:e.variationID!==o.me.Original?t.getVariationInfoByMasterId(e.variationID).id:o.me.Original}return u&&!(0,s.g)((0,h.kQ)().variationID)?(0,h.kQ)().variationID:t.isAsync()?m(await S(),t.data.asyncVariationInfoById,g,t.getDynamicAllocationProperties(),t.getType()):m(await S(),t.data.variations,g,t.getDynamicAllocationProperties(),t.getType())}return(0,d.ho)(g)}},5437:(t,e,n)=>{"use strict";n.d(e,{y3:()=>j,Yj:()=>V,Cq:()=>b,R2:()=>k,oE:()=>N,NU:()=>_,Vf:()=>B,Uv:()=>D,sd:()=>$,Zo:()=>x,yq:()=>W,wM:()=>q,Pk:()=>O,aQ:()=>M,Dj:()=>P});var i=n(648),s=n(1134),a=n(3595),o=n(6914);const r=t=>t.reduce((t,e)=>{const[n,i]=e;return 2===e.length?Object.assign(t,{[n]:i}):t},{});var c=n(721);const d=(0,c.c)((t,e,n,i)=>t(i)?e(i):n(i));var u=n(8689);const l=t=>t[t.length-1],g=(0,c.c)((t,e)=>e.map(t)),m=(0,c.c)((t,e)=>e.match(t));var h=n(9076);const p=(0,c.c)((t,e)=>e[t]),f=(0,c.c)((t,e)=>e.reduce((e,n)=>t(n)?e:e.concat(n),[]));var y=n(2852),v=n(3656),w=n(9184);function S(t,e=window.location.href){return(0,h.F)(m(t),d(a.g,()=>"",l),(0,y.l)("&"),f(u.I),g((0,y.l)("=")),r)(e)}function A(t){return function(t){return/^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:?[0-9]*)$/.test(t)}(t)||/\[(.)+\]/.test(t)}function T(t){try{const{protocol:e}=t instanceof URL?t:new URL(t);return["http:","https:"].includes(e)}catch(t){return!1}}function b(t=window.location.href){if(!T(t))return(0,i.vV)(`'${t}' is not an http url`),[];const e=_(t);return A(e)?[e]:(0,h.F)(t=>t.split("."),t=>t.reverse(),t=>t.map((e,n)=>{const i=t.reduce((t,e,i)=>i<=n?`${e}.${t}`:t);return`.${i}`}),t=>t.length>1?t.slice(1):t)(e)}function I(t=window.location.href){const e="ABTastyDomainTest=true",n=(0,s.F5)().isSecureCookie||(0,v.GW)()?"Samesite=None;Secure;":"Samesite=Lax;",o=(0,h.F)(t=>b(t),t=>t.find(t=>(document.cookie=`${e};path=/;domain=${t};${n}`,-1!==document.cookie.indexOf(e))))(t);return document.cookie=`${e};expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=${o};${n}`,(0,a.g)(o)||(0,u.I)(o)?((0,i.vV)(`no valid domain found for '${t}'`),null):o}function C(t){return A(t)?1:t.split(".").length}function E(t){if((0,w.lG)(t))return I(t);if(!T(t))return(0,i.vV)(`'${t}' is not an http url (getCookieDomain)`),null;const e=_(t),{authorizedDomains:n=[]}=(0,s.F5)();if(0===n.length)return(0,i.vV)("no authorizedDomains set for the account (getCookieDomain)"),null;if(n.length>1)return I(t);const o=(0,w.aV)(n,e);if(0===o.length)return(0,i.vV)(`no valid domain found for '${t}' (getCookieDomain)`),I(t);const r=function(t){return t.reduce((t,e)=>{const n=C(t)>C(e);return!t||A(e)||n?e:t},"")}(o),c=function(t){return t.split(":")[0]}(r);return(0,a.g)(c)||(0,u.I)(c)?((0,i.vV)(`empty domain found for '${t}' (getCookieDomain)`),null):`.${c}`}const k=function(t=E){const e={};return(n=window.location.href)=>{const i=_(n);return e[i]||(e[i]=t(n)),e[i]}}();function _(t=window.location.href){try{return new URL(t).host||t}catch(e){return t}}function O(t){if(!t.includes("?")&&!t.includes("#"))return t;const e=t.match(/([^#?]+)((?:\?|\#)(?:.+))/i),n=e&&e[2]?e[2].match(/(?:\#|\?)([^#?]+)/gi):[],i=n&&n.reduce((t,e)=>"?"===e[0]?[[...t[0],e],t[1]]:[t[0],[...t[1],e]],[[],[]]).map(t=>t.map(t=>t.substring(1))),s=i&&i[0].length?`?${i[0].join("&")}`:"",a=i&&i[1].length?`#${i[1].join("&")}`:"";return e?`${e[1]}${s}${a}`:t}function D(t=window.location.href){return S(/\?([^#]+)/,t)}function N(t=window.location.href){return S(/#([^?]+)/,t)}function B(t,e=window.location.href){return(0,h.F)(D,p(t))(e)}function P(t,e=window.location.href){return-1!==e.indexOf(t)}function $(t,e=window.location.href){return(0,h.F)(x,p(t))(e)}function V(t,e,n){const i=new URL(n),s=""===i.search?"?":"&";return i.search+=`${s}${t}=${e}`,i.href}const R=(t,e)=>e&&"="===t[1]?t[2]?[`${t[0]}=`,t[2]]:[`${t[0]}=`,""]:t[2]?[t[0],t[2]]:[t[0],""],L=/^([^=]+)(=?)(.*)$/;function x(t,e=!0,n=!1){return t.includes("?")?(0,h.F)(t=>t.match(/\?([^#]+)/),d(a.g,()=>"",t=>t[t.length-1]),(0,y.l)("&"),f(t=>(0,u.I)(t)||!L.test(t)),g(t=>t.match(L).slice(1)),g(t=>R(t,n)),d(()=>e,r,t=>t))(t):e?{}:[]}function j(t){if(null==t||""===t)return"";const e=t.includes("?")?"&":"?",n=x(t),i=x(window.location.href,!1),s=["gclid","cid","utm_source","utm_medium","utm_campaign","utm_term","utm_content","xtor","xts","xtdt","cm_mmc","MKZOID"],a=(0,h.F)((0,o.p)(([t])=>!(t in n)&&s.includes(t)),g(t=>`${t[0]}=${t[1]}`))(i);return 0===a.length?t:t+e+a.join("&")}function H(t){return Object.entries(t).map(([t,e])=>(0,u.I)(e)?t:t.includes("=")?`${t}${e}`:`${t}=${e}`).join("&")}function M(t,e=window.location.href){if(!t.includes("?")&&!e.includes("?"))return t;const n=x(t,!0,!0),i=x(e,!0,!0),s=`?${H(Object.assign({},i,n))}`,o=t.includes("#")?`#${H(function(t=window.location.href,e=!1){return t.includes("#")?(0,h.F)(t=>t.match(/#([^?]+)/),d(a.g,()=>"",t=>t[t.length-1]),(0,y.l)("&"),f(t=>(0,u.I)(t)||"#"===t.replace(/#+/,"#").split("=")[0]||!L.test(t)),g(t=>t.match(L).slice(1)),g(t=>R(t,e)),r)(t):{}}(t,!0))}`:"",c=function(t){return t.includes("?")?t.indexOf("?"):t.includes("#")?t.indexOf("#"):t.length}(t);return`${t.slice(0,c)}${s}${o}`}function F(t,e){if(!t.includes(e))return t;const n=new URL(t);return n.search=n.search.replace(new RegExp(`${e}[^=&#?]*(=[^&#]+)?`,"g"),""),n.hash=n.hash.replace(new RegExp(`${e}[^=&#?]*(=[^&?]+)?`,"g"),""),n.href=n.href.replace(/\?$|\#$|&+$|(\?)&+|(\#)&+|(&)&+|\?(\#)|\#(\?)/g,"$1$2$3$4$5"),/\/[?#]/.test(t)?n.href:n.href.replace(/\/(\?|\#|$)/,"$1")}function U(t){return["tastypreprod","abtasty_qa_assistant"].reduce(F,t)}function G(t){try{return decodeURI(t)}catch(t){}return null}function q(t,e,n=void 0){let s,a;switch(t){case"is":case"simplematch":case"ignore_parameters":return s=function(t){const e=t?new URL(t):window.location,{origin:n,pathname:i}=e;return`${n}${i}`}(n),a=G(s),e===s||`${e}/`===s||e===a||`${e}/`===a;case"exact":case"equals":case"is strictly":return s=U(n||window.location.href),a=G(s),e===s||`${e}/`===s||e===a||`${e}/`===a;case"substring":case"contains":case"contain":return s=U(n||window.location.href),a=G(s),-1!==s.indexOf(e)||-1!==a.indexOf(e);case"regex":case"regexp":s=U(n||window.location.href);try{return new RegExp(e,"i").test(s)}catch(t){const n=`The url check used an invalid regular expression => ${e}`;return(0,i.vV)(n,t),!1}}}function W(t,e=window.location.host){const n=_(e);return!(0,a.g)(t)&&!(0,u.I)(t)&&n.endsWith(t)}},5543:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i});const i="emotionsAiHitSend"},5712:(t,e,n)=>{"use strict";n.d(e,{g:()=>d});var i=n(88),s=n(9225),a=n(1492),o=n(8009),r=n(9578);let c=[];class d{constructor(){d.observers=[],d.hitHistory=[]}subscribe(t,e,n){const i=function(t){let e=0;const n=t.toString().replace(/\s/g,"");for(let t=0;ti!==t.observerId)){const i={fn:t,hitType:e,settings:s};if(d.observers.push(i),n?.withHitHistory&&d.hitHistory.length)for(const n of d.hitHistory)d.hasToSendDataToSubscriber(i,n.data,e)&&t.call(window,n,s)}}unsubscribe(t){d.observers=d.observers.filter(({settings:e})=>e.observerId!==t)}emit(t,e,n){let u=Object.assign({},e);if(t===a.YQ.campaign){const{caid:t,vaid:n}=e,i=(0,s.iE)(Number(t));if(i?.isMultipageChild()){const t=i.getParentId(),e=i.getParentName(),s=i.getVariation?.(Number(n));u={...u,caid:t.toString(),caname:e,vaid:s?.masterVariationId?.toString(),vaname:s?.name}}else u={...u,caname:i?.getName(),vaname:i?.getVariation?.(Number(n))?.name};u.sub_type=i?.data.sub_type,u.parentId=i?.isChild()?i.getParentId().toString():null}const l={type:t,timestamp:n,data:u,doWhen:i.Yx};t===a.YQ.pageview?d.hitHistory=[]:d.hitHistory.push(l);(new o.NO).haveConsent([o.rv.collect])?d.sendEvent(l,u,t):(0===c.length&&window.addEventListener(`abtasty_${r.u.Name.consentValid}`,t=>{const{detail:e}=t;e&&e.consentFor.includes(o.rv.collect)&&(c.forEach(({event:t,hit:e,type:n})=>{d.sendEvent(t,e,n)}),c=[])}),c.push({event:l,hit:u,type:t}))}static sendEvent(t,e,n){d.observers.forEach(i=>{d.hasToSendDataToSubscriber(i,e,n)&&i.fn.call(window,t,i.settings)})}static isAnActiveIntegrationForThisCampaign(t,{instances:e=[]},n){return n!==a.YQ.campaign||!e.length||e.some(({testIds:e})=>e?.includes(Number(t.caid))||e?.includes(Number(t.parentId)))}static getInstance(){return d.instance||(d.instance=new d),d.instance}static hasToSendDataToSubscriber({hitType:t,settings:e},n,i){return d.isAnActiveIntegrationForThisCampaign(n,e,i)&&(!t||t===i)}}},5974:(t,e,n)=>{"use strict";n.d(e,{_:()=>i});n(6361),n(648);const i=async()=>Promise.resolve(null)},6046:(t,e,n)=>{"use strict";n.d(e,{I:()=>a});var i=n(648),s=n(6361);const a=async()=>{try{return await(0,s._)(()=>n.e(153,"low").then(n.bind(n,3144)))}catch(t){return(0,i.vV)("AB Tasty's Tag can't be loaded. Caused by:",t),null}}},6115:(t,e,n)=>{"use strict";n.d(e,{getEmotionsAiData:()=>a,y:()=>s});var i=n(6257);const s=(t,e)=>{(new i.x).setEmotionsAiData(t,e)},a=t=>(new i.x).getEmotionsAiData()[t]??null},6158:(t,e,n)=>{"use strict";e.Xl=e.uK=e.H7=void 0;const i=n(3308);var s,a,o,r,c,d;!function(t){t.loading="loading",t.periodic="periodic",t.custom="custom",t.lastEntry="last_entry"}(s||(s={})),function(t){t[t.lastSession=-1]="lastSession",t[t.pastTwoWeeks=15]="pastTwoWeeks",t[t.pastMonth=30]="pastMonth",t[t.pastYear=390]="pastYear"}(a||(a={})),function(t){t.PRODUCT_NUMBER="product number",t.TOTAL_AMOUNT="total amount"}(o||(o={})),function(t){t.EQUAL="equal",t.GREATER="greater",t.LOWER="lower",t.BETWEEN="between"}(r||(r={})),function(t){t.POSITIVE="positive",t.NEUTRAL="neutral",t.NEGATIVE="negative"}(c||(c={})),function(t){t.EQUALS="equals",t.GREATER="equal_to_or_greater_than",t.LOWER="lower_than_or_equals",t.BETWEEN="between"}(d||(d={})),e.H7=[i.DEVICE,i.BROWSER,i.IP,i.GEOLOCALISATION,i.WEATHER,i.EULERIAN_DMP],e.uK=[i.DEVICE,i.IP,i.GEOLOCALISATION,i.BROWSER_LANGUAGE,i.LANDING_PAGE,i.BROWSER,i.SOURCE_TYPE,i.PREVIOUS_PAGE,i.SCREEN_SIZE,i.SOURCE,i.NUMBER_PAGES_VIEWED,i.SAME_DAY_VISIT,i.WEATHER,i.ECOMMERCE_VARIABLE,i.URL_PARAMETER,i.KEYWORD,i.ADBLOCK,i.PAGE_VIEW,i.PAGES_INTEREST],e.Xl=[i.ENGAGEMENT_LEVEL,i.RETURNING_VISITOR,i.SESSION_NUMBER,i.DAYS_SINCE_FIRST_SESSION,i.DAYS_SINCE_LAST_SESSION,i.GEOLOCALISATION,i.CONTENT_INTEREST,i.DEVICE,i.ABANDONED_CART,i.CSAT,i.NPS]},6211:(t,e,n)=>{var i={"./custom-analytics-1631.js":8476,"./integration-datalayer-3.js":6388};function s(t){return a(t).then(n)}function a(t){return Promise.resolve().then(()=>{if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]})}s.keys=()=>Object.keys(i),s.resolve=a,s.id=6211,t.exports=s},6257:(t,e,n)=>{"use strict";n.d(e,{x:()=>d});var i=n(648),s=n(3595),a=n(8689),o=n(88),r=n(2484),c=n(3476);class d{constructor(){}setEmotionsAiData(t,e){const n=this.getABTastyData();this.updateLocalStorage(c.d.LOCAL_STORAGE,JSON.stringify({...n,[c.d.EMOTIONS_AI]:{...n[c.d.EMOTIONS_AI],[t]:e}}))}getEmotionsAiData(){return this.getABTastyData()[c.d.EMOTIONS_AI]||{}}getABTastyData(){try{return JSON.parse(this.getFromLocalStorage(c.d.LOCAL_STORAGE))||{}}catch(t){return(0,i.FF)("Could not parse ABTastyData.",t),{}}}getItemFromABTastyData(t){return this.getABTastyData()[t]}getActionTrackings(){return this.getABTastyData()&&this.getABTastyData()[c.d.ACTION_TRACKING]}addActionTracking(t){this.addItemToABTastyData(c.d.ACTION_TRACKING,t)}getTransactions(){return this.getABTastyData()&&this.getABTastyData()[c.d.TRANSACTION]}addTransaction(t){this.addItemToABTastyData(c.d.TRANSACTION,t)}getItems(){return this.getABTastyData()&&this.getABTastyData()[c.d.ITEM]}addItem(t){this.addItemToABTastyData(c.d.ITEM,t)}getSegments(){return this.getABTastyData()[c.d.SEGMENT]}addSegment(t){this.addItemToABTastyData(c.d.SEGMENT,t)}setSegments(t){const e=this.getABTastyData();this.updateLocalStorage(c.d.LOCAL_STORAGE,JSON.stringify({...e,[c.d.SEGMENT]:t}))}getCustomVariables(){return this.getABTastyData()&&this.getABTastyData()[c.d.CUSTOM_VARIABLE]}addCustomVariable(t){this.addItemToABTastyData(c.d.CUSTOM_VARIABLE,t)}getVisitedPages(){return this.getABTastyData()&&this.getABTastyData()[c.d.VISITED_PAGES]}editLastVisitedPage(t){const e=this.getVisitedPages();if((0,s.g)(e)||(0,a.I)(e))return;const n=e[e.length-1];e[e.length-1]={...n,...t};const i=this.getABTastyData();this.updateLocalStorage(c.d.LOCAL_STORAGE,JSON.stringify({...i,[c.d.VISITED_PAGES]:e}))}addVisitedPage=t=>(e=document.location.href,n=document.title)=>{const i={url:e,visite:t.getNumberOfSessions(),time:Date.now(),title:n};this.addItemToABTastyData(c.d.VISITED_PAGES,i),(0,a.I)(n)&&(0,o.Yx)(()=>!(0,a.I)(document.title),()=>this.editLastVisitedPage({title:document.title}))};addVote(t){const e="maxScore"in t?c.d.CSAT_VOTES:c.d.NPS_VOTES,n=this.getABTastyData();let i=n[e]||[];const s=i.findIndex(({caid:e})=>e===t.caid);-1===s?i=[...i,t]:i[s]=t,this.updateLocalStorage(c.d.LOCAL_STORAGE,JSON.stringify({...n,[e]:i}))}getVotes(t){return this.getABTastyData()&&this.getABTastyData()[t]}addItemToABTastyData(t,e){const n=this.getABTastyData();n[t]&&Array.isArray(n[t])||(n[t]=[]),n[t].push(e),this.updateLocalStorage(c.d.LOCAL_STORAGE,JSON.stringify(n))}updateLocalStorage(t,e){return r.Ks.setItem(r.Sd,t,e)}getFromLocalStorage(t){return r.Ks.getItem(r.Sd,t)}removeLocalStorage(t){return r.Ks.removeItem(r.Sd,t)}}},6259:(t,e,n)=>{"use strict";n.d(e,{L:()=>r,d:()=>c});var i=n(3595),s=n(2484);const a="ABTastyForcedVariations";function o(){return JSON.parse(s.Ks.getItem(s.b1,a)||"{}")}const r=(t,e)=>function(t,e){const n=o();(0,i.g)(e)?delete n[t]:n[t]=e,s.Ks.setItem(s.b1,a,JSON.stringify(n))}(t,e);function c(t){return o()[t]??null}},6332:(t,e,n)=>{"use strict";n.d(e,{X8:()=>l,j3:()=>u});var i=n(3595),s=n(427),a=n(648),o=n(7643),r=n(1492);var c=n(1134);const d=({deprecate:t,new:e=null,type:n,el:s},d)=>{const u=`${n} ${t} is deprecated`+(e?` - Please use ${e} instead.`:"");if((0,a.FF)(u),d){const e={cid:"b1c05f3030611d124ca247d0cffcf1a4",ec:"Deprecated Usage",ea:(0,c.pw)(),el:(0,i.g)(s)?t.replace("window.",""):s};(new o.n).setInternalHit(r.YQ.event,e)}},u=(()=>{const t={};return e=>{const n=(0,i.g)(e.el)?e.deprecate:`${e.deprecate};${e.el}`;t[n]?d(e,!1):(d(e,!0),t[n]=e)}})(),l=(t,e)=>{try{if(0===t.length||0===e.length)return!1;const n=t.join("."),i=e.join(".");if(i===n||0===i.indexOf(n))throw new Error("Can't deprecate variable from itself");const a=t.length,o=t.slice(0,a-1),r=t[a-1];return Object.defineProperty((0,s.A)(o,window),r,{get:()=>(u({deprecate:`window.${t.join(".")}`,new:`window.${e.join(".")}`,type:"variable"}),(0,s.A)(e,window))}),!0}catch(e){const n=`Failed to deprecate window.${t.join(".")} variable. ${e}`;return(0,a.vV)(n),!1}}},6381:(t,e,n)=>{"use strict";n.d(e,{P:()=>o,k:()=>c});var i=n(9578),s=n(3595),a=n(2352);const o={};let r;class c extends a.X{constructor(){if(r)return r;super(),r=this}resetCustomEventState(){Object.keys(o).forEach(t=>{delete o[t]}),this.notify(["events"])}resetSpecificsCustomEvents(t){t.forEach(t=>{o[t]={status:i.u.Status.loading}}),this.notify(t.map(t=>`events.${t}`))}getStatusCustomEvent(t){return(0,s.g)(o[t])?i.u.Status.loading:o[t].status}initCustomEventState(){Object.keys(i.u.Name).forEach(t=>{(0,s.g)(o[t])&&(o[t]={status:i.u.Status.loading})}),window.ABTasty&&(window.ABTasty.eventState=o)}dispatchCustomEvent(t,e,n="abtasty"){const a=new CustomEvent(`${n}_${t}`,{detail:e});window.dispatchEvent(a),o[t]||this.initCustomEventState(),o[t].status=i.u.Status.complete,!(0,s.g)(e)&&(0,s.g)(o[t].detail)?o[t].detail=[e]:(0,s.g)(e)||(o[t].detail=[...o[t].detail,e]),this.notify([`events.${t}`])}notify(t){for(const e of t)this.mediator?.notify(e)}}},6388:(t,e,n)=>{"use strict";n.d(e,{code:()=>i});const i=(t,e)=>{try{(()=>{const t="some",e="ABT_DATALAYER_INTERVAL_ID",n="ABT_IS_DATALAYER_CHECKED",i="ABT_ALREADY_SENT_CUSTOM_TRACKING",s="event",a="[Integrations][DataLayer][CustomTracking]",o="new_item_pushed_event",r=(t,e,n=100,i=5,s=0)=>{!0===t()?e():s{r(t,e,n,i,s+1)},n)},c=(t,e)=>{if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;let n,i,s;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(i=n;0!=i--;)if(!c(t[i],e[i]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=n;0!=i--;){const n=s[i];if(!c(t[n],e[n]))return!1}return!0}return t!=t&&e!=e},d=t=>Array.isArray(t)||"object"==typeof t&&"number"==typeof t.length&&t.length>=0,u=t=>t.reduce((t,e)=>{const[n,i]=t;return d(e)?n.push(e):i.push(e),[n,i]},[[],[]]),l=(t=[],e)=>{t.forEach(t=>{const n=t.name.trim(),i={ec:"Action Tracking",ea:n,el:n};e.logger.info(`${a}: ${n} sending to the collect`),e.logger.info(`${a}: customTrackingEvent = `,i),window.abtasty.send("event",i)})},g={equals:(t,e)=>{return i=e,("string"!=typeof(n=t)?n.toString():n)===("string"!=typeof i?i.toString():i);var n,i},"does not equals":(t,e)=>t!==e,"is lower than":(t,e)=>parseInt(t,10)parseInt(t,10)>parseInt(e,10),"is included between":(t,e,n)=>parseInt(t,10)>parseInt(e,10)&&parseInt(t,10)"function"==typeof(null==t?void 0:t.includes)&&t.includes(e),"does not contains":(t,e)=>"function"==typeof(null==t?void 0:t.includes)&&!t.includes(e),is_true:t=>!0===t,is_false:t=>!1===t,default:()=>{const t=`${a} This operator is not supported.`;throw console.log(t),new Error(t)}},m=(e,n,i,a)=>"all"!==n&&n!==t?(null==a||a.logger.info("[Datalayer Integration]: VALUE OF MATCHING IS NOT CORRECT",n),!1):"all"===n?!(i===s&&e.length>1)&&e.every(t=>{var e;return d(t)?null===(e=t[t.length-1])||void 0===e?void 0:e.is_success:t.is_success}):e.some(t=>{var e;return d(t)?null===(e=t[t.length-1])||void 0===e?void 0:e.is_success:t.is_success}),h=(t,e)=>{const n=(s=e,(i=t.key.trim(),[...i.matchAll(/"([^"]+)"|([^.]+)/g)].map(t=>t[1]||t[2])).reduce((t,e)=>t&&t[e],s));var i,s;return"is declared"===t.operator?n:"is not declared"===t.operator?!n:![void 0,null].includes(n)&&(g[t.operator]||g.default)(n,t.value,t.secondValue||void 0,t.type||"string")},p=(t,e,n)=>t.filter(t=>{try{return h(e,t)}catch(t){return null==n||n.logger.error(`${a} Failed to find event: `,t.message),!1}}),f=(t,e,n)=>{const[i,s]=e;return t.custom_trackings.filter(e=>{const a=e.conditions.reduce((t,e)=>{if(e.is_array){const s=y(i,e,n);if(s.length){const e=s.map(t=>(t[t.length]={is_success:!0},t.length++,t));return[...t,...e]}return[...t,{length:1,0:{is_success:!1,"gtm.uniqueEventId":crypto.randomUUID()}}]}const a=p(s,e,n);if(a.length){const e=(t=>t.map(t=>Object.assign(Object.assign({},t),{is_success:!0})))(a);return[...t,e.flat()]}return[...t,{is_success:!1,"gtm.uniqueEventId":crypto.randomUUID()}]},[]);return"dataLayer"===t.js_key?m((t=>{const e=new Set;return t.filter(t=>{var n;const i=d(t)?null===(n=t[t.length-1])||void 0===n?void 0:n["gtm.uniqueEventId"]:t["gtm.uniqueEventId"];return!e.has(i)&&(e.add(i),!0)})})(a.flat()),e.matches,e.scope,n):m(a.flat(),e.matches,e.scope,n)})},y=(t,e,n)=>t.filter(t=>{if("object"!=typeof t[e.position]||"string"==typeof t[e.position])return!1;try{const n=t[e.position];return h(e,n)}catch(t){return null==n||n.logger.error("Failed to find event: ",t.message),!1}});class v{constructor(){this.handle=(t,e)=>{try{this.init(t,e),((t,e,n)=>{const i=window[t.js_key];if(!i._isCustomPushDefined)try{const n=i.push.bind(i);i.push=function(i){const s=n(i);return window.dispatchEvent(new CustomEvent(o,{detail:{newItem:i,dataLayerConfig:t,settings:e}})),s},i._isCustomPushDefined=!0}catch(t){e.logger.error(`${n} initDataLayerPush: `,t.message)}})(t,e,a)}catch(t){e.logger.error(`${a}: `,t.message)}},this.init=(t,e)=>{r(()=>{var t;return"true"!==(null===(t=window.sessionStorage)||void 0===t?void 0:t.getItem(n))||!window.isAlreadyChecked},()=>{var i;const s=this.getFilteredCustomTracking(t,e);l(s,e),null===(i=window.sessionStorage)||void 0===i||i.setItem(n,"true"),window.isAlreadyChecked=!0},100)},this.getFilteredCustomTracking=(t,e,n)=>{const i=n?window[t.js_key].slice(n):window[t.js_key],s=u(i);return f(t,s,e)},window._is_ABT_CT_GTM_ALREADY_LISTENING||(window.addEventListener(o,w),window._is_ABT_CT_GTM_ALREADY_LISTENING=!0)}static getInstance(){return v.instance||(v.instance=new v),v.instance}}function w(t){const{detail:{newItem:e,dataLayerConfig:n,settings:i}}=t;v.handleNewValueAdded(e,n,i)}v.handleNewValueAdded=(e,n,i)=>{const a=n.custom_trackings.filter(({id:a,conditions:o,matches:r,scope:c})=>{const l=t=>!!(d(e)?y([e],t,i):p([e],t,i)).length;if(r===t)return o.some(l);const g=o.filter(t=>!1===l(t));return!g.length||g.length!==o.length&&c!==s&&g.every(t=>{const[e,s]=u(window[n.js_key]);return!![...p(s,t,i),...y(e,t,i)].length})});a.length&&l(a,i)};const S=(t,e)=>Object.keys(e).reduce((n,i)=>(c(e[i],t[i])||(n[i]=e[i]),n),{}),A=(e,n,i)=>{const s=(t=>(e,n)=>!!p([n],e,t).length)(i),o=n.custom_trackings.filter(({conditions:o,matches:r,name:c})=>{if(r===t)return o.some(t=>s(t,e));const d=o.filter(t=>!1===s(t,e));return!d.length||d.length!==o.length&&d.every(t=>{try{return!!p([window[n.js_key]],t,i).length}catch(t){return i.logger.error(`${a} findEventsError: `,t.message),!1}})});o.length&&l(o,i)},T=(t,e,n)=>f(t,[[],[e]],n),b=(t,e)=>{var n;const s=null===(n=window.sessionStorage)||void 0===n?void 0:n.getItem(i),o=Object.assign({},window[t.js_key]);if(null==s?void 0:s.trim()){if(JSON.stringify(o)!==s)try{const n=T(t,o,e),i=T(t,JSON.parse(s),e),a=n.filter((t,e)=>!c(i[e],n[e]));l(a,e)}catch(t){e.logger.error(`${a} initialization failed: `,t.message)}}else{const n=T(t,o,e);l(n,e)}},I="abtasty_utag_link",C={dataLayer:v.getInstance().handle,utag_data:(new class{constructor(){this.handle=(t,e)=>{r(()=>{var t;return"function"==typeof(null===(t=window.utag)||void 0===t?void 0:t.track)},()=>{try{let i;this.init(t,e),n=window.utag.track,window.utag.track=function(s,o,r,c){try{i=s,n.call(this,s,o,r,c),window.dispatchEvent(new CustomEvent(I,{detail:{eventData:i,datalayerConfig:t,settings:e}}))}catch(t){e.logger.error(`${a} WrapError:`,t.message)}}}catch(t){e.logger.error(`${a} Wrapped Link error: `,t.message)}var n},500,10)},this.init=(t,e)=>{b(t,e)},this.watchDataLayer=(t,n)=>{var s,o;let r=JSON.parse(JSON.stringify(window[t.js_key])),c=null===(s=window.sessionStorage)||void 0===s?void 0:s.getItem(e);c&&clearInterval(c),c=setInterval(()=>{var e;try{const s=JSON.stringify(Object.assign({},window[t.js_key]));null===(e=window.sessionStorage)||void 0===e||e.setItem(i,s);const a=JSON.parse(s),o=S(r,a);Object.keys(o).length&&(r=a,A(o,t,n))}catch(t){n.logger.error(`${a} Error: `,t.message)}},400),null===(o=window.sessionStorage)||void 0===o||o.setItem(e,String(c))},this.isObject=t=>"object"==typeof t&&!Array.isArray(t)&&null!==t,window.addEventListener(I,t=>{return e=this,i=function*(){r(()=>{var e,n;const{detail:i}=t;return void 0!==(null===(n=null===(e=i.eventData)||void 0===e?void 0:e.data)||void 0===n?void 0:n.tealium_event)},()=>{const{detail:e}=t,n=T(e.datalayerConfig,e.eventData.data,e.settings);n.length&&l(n,e.settings)},1e3,5)},new((n=void 0)||(n=Promise))(function(t,s){function a(t){try{r(i.next(t))}catch(t){s(t)}}function o(t){try{r(i.throw(t))}catch(t){s(t)}}function r(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n(function(t){t(i)})).then(a,o)}r((i=i.apply(e,[])).next())});var e,n,i})}}).handle,tc_vars:(new class{constructor(){this.handle=(t,e)=>{try{this.init(t,e),this.watchDataLayer(t,e)}catch(t){e.logger.error(`${a}: `,t.message)}},this.init=(t,e)=>{b(t,e)},this.watchDataLayer=(t,n)=>{var s,o;let r=JSON.parse(JSON.stringify(Object.assign({},window[t.js_key]))),c=null===(s=window.sessionStorage)||void 0===s?void 0:s.getItem(e);c&&clearInterval(c),c=setInterval(()=>{var e;try{const s=JSON.stringify(Object.assign({},window[t.js_key]));null===(e=window.sessionStorage)||void 0===e||e.setItem(i,s);const a=JSON.parse(s),o=S(r,a);Object.keys(o).length&&(r=a,A(o,t,n))}catch(t){n.logger.error(`${a} Error: `,t.message)}},400),null===(o=window.sessionStorage)||void 0===o||o.setItem(e,String(c))}}}).handle,default:(t,{logger:e})=>e.error(`${a}: This dataLayer is not supported.`)};(()=>{var t;const e=t=>{var e;try{null===(e=window.sessionStorage)||void 0===e||e.setItem(n,String(t))}catch(t){console.warn("[DataLayer] Failed to set session storage:",t)}},i=()=>{window.addEventListener("pageshow",()=>{e(!1)}),document.addEventListener("abtasty_resetActionTracking",()=>{e(!0)})};(null===(t=window.ABTasty.api)||void 0===t?void 0:t.v1.getValue("general","consent",t=>{t&&i()}))&&i()})(),window.ABTastyOnRequest=(t,e)=>{e.logger.info(`${a}: starting execution....`),((t,e,n=12e4)=>{return s=function*(){(yield((t=12e4)=>new Promise(e=>{const n=Date.now(),i=()=>{var s,a,o;try{if(!(null===(o=null===(a=null===(s=window.ABTasty)||void 0===s?void 0:s.api)||void 0===a?void 0:a.v1)||void 0===o?void 0:o.getValue))return Date.now()-n>=t?(console.warn("[DataLayer] ABTasty timeout reached"),void e(!1)):void setTimeout(i,100);if(window.ABTasty.api.v1.getValue("general","consent",t=>{t&&e(!0)}))return void e(!0);if(Date.now()-n>=t)return console.warn("[DataLayer] Consent timeout reached"),void e(!1);setTimeout(i,100)}catch(t){console.warn("[DataLayer] Error checking consent:",t.message),e(!1)}};i()}))(n))&&(yield((t,e=1e4)=>new Promise(n=>{const i=Date.now(),s=()=>{if(!window[t])return Date.now()-i>=e?(console.warn("[DataLayer] Datalayer timeout reached"),void n(!1)):void setTimeout(s,100);n(!0)};s()}))(t,n))&&e()},new((i=void 0)||(i=Promise))(function(t,e){function n(t){try{o(s.next(t))}catch(t){e(t)}}function a(t){try{o(s.throw(t))}catch(t){e(t)}}function o(e){var s;e.done?t(e.value):(s=e.value,s instanceof i?s:new i(function(t){t(s)})).then(n,a)}o((s=s.apply(void 0,[])).next())});var i,s})(t.js_key,()=>{try{(C[t.js_key]||C.default)(t,e)}catch(t){e.logger.error(`${a} main error:`,t.message)}})}})();const n=window.ABTastyOnRequest;delete window.ABTastyOnRequest,n(t,e)}catch(t){console.log("AB Tasty: error while executing connector Datalayer: ",t.message)}}},6552:(t,e,n)=>{"use strict";n.d(e,{w:()=>a});var i=n(648);const s=t=>0===t.length?-1:Math.abs(t.split("").reduce((t,e)=>{const n=(t<<5)-t+e.charCodeAt(0);return n&n},0)),a=async t=>{let e=-1;if(window.isSecureContext)try{e=await(async t=>{const e=(new TextEncoder).encode(t),n=await crypto.subtle.digest("SHA-1",e);return new Uint16Array(n)[0]})(t)}catch(n){(0,i.FF)("Hashing by Crypto API failed, fallback to hashing by bits shifting."),e=s(t)}else e=s(t);return e<0?-1:e%100+1}},6692:(t,e,n)=>{"use strict";n.d(e,{bo:()=>q,H_:()=>M,$K:()=>U});var i=n(977),s=n(5909),a=n(8987),o=n(1134),r=n(7471),c=n(648),d=n(3595),u=n(8689),l=n(2852);const g=(0,n(721).c)((t,e)=>e.join(t));var m=n(5437),h=n(6257),p=n(3847),f=function(t){return t.get="get",t.set="set",t.remove="remove",t}(f||{});const y="ABTasty",v=[],w=(0,p.x)(),S=(0,p.De)(),A=`${w}/cross-domain-iframe.html`,T=`[src*="${A}"]`;function b(){return new Promise((t,e)=>{if(document.querySelectorAll(T).length>0)return void t();window.addEventListener("message",C,!1);const n=document.createElement("iframe");n.src=A,n.onload=function(){t()},n.setAttribute("frameborder","0"),n.style.width="0",n.style.height="0",n.style.display="none";const i=document.body||document.head,s=i.childNodes;i.insertBefore(n,s[s.length-1])})}function I(t,e=null){if(e){const n={resolve:e,name:t.method===f.remove?`${t.key}-${t.method}`:t.key};v.push(n)}document.querySelector(T).contentWindow.postMessage(JSON.stringify(t),"*")}function C(t){if(t.origin.indexOf(S)<0||!t.data||"string"!=typeof t.data||!/^\{.*"key":"ABTasty(-remove)?".*\}$/.test(t.data))return;const e=JSON.parse(t.data),n=v.find(t=>t.resolve&&t.name===e.key);return n&&(n.resolve(e),n.resolve=null),!1}var E=n(3656),k=n(7904),_=n(88),O=n(2484),D=n(4502),N=n(9076);const B=t=>{try{const e=(document.cookie.match(new RegExp(`(^| |;)${q.getCookieName()}=([^;]+)`,"g"))||[]).map(t=>t.replace(new RegExp(`(^| |;)${q.getCookieName()}=`),"")).map(t=>unescape(t));if(e.length>1){const n=e.map(e=>((t,e)=>{const n=e=>{const n=t.find(({key:t})=>t===e);return n?"th"===e?t=>t:n.typeCast:()=>{}};return e.split("&").map(t=>t.split("=")).map(([t,e])=>[t,e]).reduce((t,[e,i])=>({...t,[e]:n(e)(decodeURI(i))}),{})})(t,e)),i={};return t.forEach(({key:t})=>{const e=n.reduce((e,n)=>(0,d.g)(n[t])?e:[...e,n[t]],[]);if(e.every(t=>t===e[0]))i[t]=e[0];else switch(t){case"uid":i[t]=(t=>{t.sort(({fst:t},{fst:e})=>t-e);const e=t.filter(({fst:t})=>t>=0);return e.length>0?e[0].uid:t[0].uid})(n);break;case"pst":const s=e.some(t=>t>=0);i[t]=s?Math.min(...e.filter(t=>t>=0)):e[0];break;case"fst":i[t]=Math.min(...e);break;case"cst":case"ns":case"pvt":case"pvis":i[t]=Math.max(...e);break;case"th":i[t]=(t=>{const e={};return t.forEach(t=>{t.split("_").forEach(t=>{const n=t.split(".")[0];Object.keys(e).indexOf(n)<0&&(e[n]=t)})}),Object.values(e).join("_")})(e)}}),(t=>{const{path:e}=(0,D.jS)(0);(0,N.F)(m.Cq,n=>n.forEach(n=>{a.A.remove(t,{path:e,domain:n})}))(window.location.href)})(q.getCookieName()),Object.entries(i).reduce((t,e,n)=>t+(n>0?"&":"")+e.join("="),"")}return null}catch(t){const e="Handle duplicated ABTasty cookies error.";return c.vV(e),null}};var P=n(8009),$=n(9225),V=n(3340),R=n(9404),L=n(2538),x=n(8445);const j="ABTastyVisitorId";var H=n(7765);const M="cookie-ready";let F,U=function(t){return t.uid="uid",t.fst="fst",t.pst="pst",t.cst="cst",t.ns="ns",t.pvt="pvt",t.pvis="pvis",t.th="th",t}({}),G=function(t){return t.visitorID="visitorID",t.firstSessionTimestamp="firstSessionTimestamp",t.previousSessionTimestamp="previousSessionTimestamp",t.currentSessionTimestamp="currentSessionTimestamp",t.numberOfSessions="numberOfSessions",t.pagesViewedTotal="pagesViewedTotal",t.pagesViewedInSession="pagesViewedInSession",t.testsHistory="testsHistory",t}({});class q{dictionary=[{key:U.uid,humanKey:G.visitorID,value:"",typeCast:t=>String(t),saveable:!0},{key:U.fst,humanKey:G.firstSessionTimestamp,value:0,typeCast:t=>Number(t),saveable:!1},{key:U.pst,humanKey:G.previousSessionTimestamp,value:-1,typeCast:t=>Number(t),saveable:!1},{key:U.cst,humanKey:G.currentSessionTimestamp,value:0,typeCast:t=>Number(t),saveable:!1},{key:U.ns,humanKey:G.numberOfSessions,value:0,typeCast:t=>Number(t),saveable:!1},{key:U.pvt,humanKey:G.pagesViewedTotal,value:0,typeCast:t=>Number(t),saveable:!1},{key:U.pvis,humanKey:G.pagesViewedInSession,value:0,typeCast:t=>Number(t),saveable:!1},{key:U.th,humanKey:G.testsHistory,value:{},typeCast:this.deserializeTestsHistory,saveable:!1}];constructor(){if(F)return F;const{customCookieDomain:t,customCookiePath:e}=(0,o.F5)();this.sessionCookie=new r.n,this.name=q.getCookieName(),this.customDomain=t,this.customPath=e,window.ABTasty.clearCookie=this.clear.bind(this),window.ABTasty.clearAllCookies=this.clearAll.bind(this),F=this;const n=B(this.dictionary);return(0,d.g)(n)||a.A.set(this.name,n,this.getConfig()),F}static build(){return new Promise(async t=>{if(F)return t(F);const e=new q;return e.isCrossDomainUsed()?await new Promise((t,e)=>{b().then(()=>{I({key:y,identifier:(0,o.pw)(),method:f.get},t)})}).then(async t=>await e.crossCookieMerge(t.value,e.sessionCookie)):await e.setUp(e.sessionCookie),"function"!=typeof window.ABTasty.getCampaignHistory&&(window.ABTasty.getCampaignHistory=()=>e.getCampaignHistory()),t(F||e)})}async clearAllStorage(t,e=[]){O.Ks.clear(e),t.resetDictionary(),t.clear(),this.clear(),await(this.isCrossDomainUsed()?new Promise((t,e)=>{b().then(()=>{I({key:y,identifier:(0,o.pw)(),method:f.remove},t)})}):null)}setUp(t,e=null){let n=e;return null!=e&&""!==e.trim()||(n=(new h.x).getFromLocalStorage(this.name),(null===n||(0,E.Gr)()&&(0,k.hL)())&&(n=a.A.get(this.name)||n)),this.assureVisitorId(n).then(async e=>{if(!e&&n){this.load(n,this.getVisitorId());const e=this.calculateExpires();e.getTime()-(new Date).getTime()<=0?(await this.clearAllStorage(t,[j]),this.resetDictionary(),q.resetInstance(),F=await q.build()):this.expires=e}else this.clearAllStorage(t,[j,x.ok.HIT_HISTORY_SESSION]),this.sessionCookie=new r.n(!0),this.sessionCookie.save();return q.cookieReady||(q.cookieReady=!0,(0,R.IF)(M)),!0})}static getCookieName(){return"ABTasty"}static exists(){return!!(0,_.to)(O.Sd,this.getCookieName())||!!a.A.get(this.getCookieName())}static getRawData(){return(0,_.to)(O.Sd,this.getCookieName())||a.A.get(this.getCookieName())}static hasVisitorIdStored(){return q.exists()&&new RegExp(`${U.uid}=[^&]+&`).test(q.getRawData())}async crossCookieMerge(t,e){if(!t||null==t){return void(await this.setUp(e)&&this.save(!0))}let n=(new h.x).getFromLocalStorage(this.name);if((null===n||(0,E.Gr)()&&(0,k.hL)())&&(n=a.A.get(this.name)),!n||null===n){return void(await this.setUp(e,t)&&this.save(!0))}const i=t.split("&").find(t=>"th"===t.split("=")[0]);if(!i)return this.load(n);const s=i.split("=")[1],o=n.split("&").find(t=>"th"===t.split("=")[0])||"";s.split("_").map(t=>{o.indexOf(t.split(".")[0])>=0||(n=n+"_"+t)});await this.setUp(e,n)&&this.save(!0)}matchUrlSettings(){return(0,o.cR)().some(({includeOrExclude:t,url:e,method:n})=>"exclude"!==t&&(0,m.wM)(n,e))}get(t){return this.dictionary.find(e=>e.key===t||e.humanKey===t)}set(t,e,n=null){null==n?this.get(t).value=e:this.get(t).value[n]=e}setSaveable(t,e){t.forEach(t=>{this.get(t).saveable=e})}incr(t,e){const n=this.get(t);n.value=n.value+e}resetDictionary(){this.dictionary.forEach(t=>{const e=(()=>{switch(t.key){case U.pst:return"-1";case U.ns:return"1";default:return""}})();t.value=t.typeCast(e)})}load(t,e){try{unescape(t).split("&").map(t=>t.split("=")).map(([t,n])=>t===U.uid&&e?[t,e]:[t,n]).forEach(([t,e])=>{void 0!==this.get(t)?this.set(t,this.get(t).typeCast(decodeURI(e))):(0,c.FF)(`Cookie key '${t}' is unknown ; removing it from the cookie.${e?` Value attached '${e}'.`:""}`)}),this.removePausedTests()}catch(t){(0,c.vV)(`Error loading the cookie. ${t}`),this.resetDictionary()}}removePausedTests(){const t=(0,o.yn)();if(!t||!t.obsoletes)return[];const e=[];return Object.keys(this.get(G.testsHistory).value).forEach(n=>{t.obsoletes.includes(parseInt(n,10))&&(this.removeCampaign(n),e.push(parseInt(n,10)))}),this.save(),e}getVisitorId(){return this.get(G.visitorID).value}getCampaignHistory(){const t=this.getCampaigns(),e={},n=[4581,8924,47674].includes((0,o.bA)());return Object.keys(t).filter(t=>n||void 0!==(0,o.yn)().tests[t]).filter(e=>t[e].variationID!==$.me.Untracked).map(n=>{const s=(0,o.yn)().tests[n];return void 0!==s&&s.parentID>0&&(0,o.yn)().tests[s.parentID]?.type===i.cz.multipage&&(e[s.parentID]=t[n].variationID!==$.me.Original?String(s.variations[t[n].variationID].masterVariationId):"0"),e[n]=String(t[n].variationID)}),e}getCampaign(t){return this.get(G.testsHistory).value[t]}getCampaigns(){return this.get(G.testsHistory).value}setCampaign(t,e){this.set(G.testsHistory,e,t)}removeCampaign(t){delete this.get(G.testsHistory).value[t]}getFirstSessionTimestamp(){return this.get(G.firstSessionTimestamp).value}getCurrentSessionTimestamp(){return this.get(G.currentSessionTimestamp).value}getPreviousSessionTimestamp(){return this.get(G.previousSessionTimestamp).value}getNumberOfSessions(){return this.get(G.numberOfSessions).value}getPagesViewedInSession(){return this.get(G.pagesViewedInSession).value}hasSeenCampaign(t,e){const n=this.getCampaign(t);return!!n&&((0,d.g)(e)?n.variationID!==$.me.Untracked:n.variationID===e)}isValid(t){return/^uid=.*&fst=[0-9]{13,}&pst=(-1|[0-9]{13,})&cst=[0-9]{13,}&ns=[0-9]\d*&pvt=[1-9]\d*&pvis=[1-9]\d*&th=(\d+\.(-1|\d)+\.[1-9]\d*\.[0-9]\d*\.[1-9]\d*\.[1|0]\.[0-9]{13,}\.[0-9]{13,}\.[1|0]_?)*$/.test(t)}calculateExpires(){const t=(0,o.B9)(),e=this.getFirstSessionTimestamp(),n=e>0?new Date(e):new Date;return new Date(n.setMonth(n.getMonth()+t))}getConfig(){return(0,D.jS)(this.expires||this.calculateExpires())}clear(t=null){delete window.ABTasty.temporaryCookieValues?.[this.name],t===k.rb||(0,d.g)(t)&&(0,k.og)()?(new h.x).removeLocalStorage(this.name):a.A.remove(this.name,this.getConfig())}clearAll(){this.clear(),(new r.n).clear()}static resetInstance(){F=null}static getInstance(){return F}encodeValue(t){return null!=t&&"object"==typeof t?this.serializeTestsHistory(t):encodeURI(t)}async save(t=!1){if(!q.cookieReady&&!t)return;this.setSaveable([G.visitorID],true);const e=this.dictionary.map(t=>t.saveable?[`${t.key}=${this.encodeValue(t.value)}`]:null).filter(t=>!(0,d.g)(t)).join("&");if(!(new P.NO).haveConsent([P.rv.storage]))return(0,d.g)(window.ABTasty.temporaryCookieValues)&&(window.ABTasty.temporaryCookieValues={}),void(window.ABTasty.temporaryCookieValues[this.name]={value:e,config:this.getConfig()});const n=(0,k.og)();e!==(n?(new h.x).getFromLocalStorage(this.name):a.A.get(this.name))&&(n?(new h.x).updateLocalStorage(this.name,e):a.A.set(this.name,e,this.getConfig()),this.isCrossDomainUsed()&&!t&&function(t){new Promise((e,n)=>{b().then(()=>{I({key:y,value:t,identifier:(0,o.pw)(),method:f.set},e)})})}(e),(0,E.Gr)()?n||(new h.x).updateLocalStorage(this.name,e):this.clear(n?k.ai:k.rb),(0,c.SW)("Saving data to "+(n?"localStorage":"cookie"),e))}isFirstSession(){return 0===this.get(G.numberOfSessions).value}isNewSession(){return this.sessionCookie.isNewSession}pageView(){const t=new r.n,e=new h.x;this.incr(G.pagesViewedTotal,1);const n=Date.now();t.isNewSession?(this.isFirstSession()?(this.set(G.firstSessionTimestamp,n),this.assureVisitorId()):this.set(G.previousSessionTimestamp,this.get(G.currentSessionTimestamp).value),(0,L.e)()&&O.Ks.setItem(O.b1,x.ok.SESSION_DATA,JSON.stringify({[x.pi.CURRENT_SESSION_TIMESTAMP]:n})),this.set(G.currentSessionTimestamp,n),this.incr(G.numberOfSessions,1),this.set(G.pagesViewedInSession,1)):(this.incr(G.pagesViewedInSession,1),0===this.getFirstSessionTimestamp()&&this.set(G.firstSessionTimestamp,n),0===this.getCurrentSessionTimestamp()&&((0,L.e)()&&O.Ks.setItem(O.b1,x.ok.SESSION_DATA,JSON.stringify({[x.pi.CURRENT_SESSION_TIMESTAMP]:n})),this.set(G.currentSessionTimestamp,n))),e.addVisitedPage(this)(),this.save()}assureVisitorId(t){return new Promise((e,n)=>e((()=>{if(!(0,u.I)(this.getVisitorId()))return!1;const e=new RegExp(`${U.uid}=([^&]+)`);return!(t?.match(e)?.[1]||q.getRawData()?.match(e)?.[1]||null)&&((0,H.kQ)().visitorId?this.set(G.visitorID,(0,H.kQ)().visitorId):this.set(G.visitorID,(0,s.generateId)()),!0)})()))}campaignView(t,e,n,i=!0){const s=new r.n,a=this.getCampaign(t);[V.B.timeout,V.B.failedLoading].includes(n)||(a?this.setCampaign(t,{variationID:e,nbSeenTotal:a.nbSeenTotal+1,nbSeenInSession:s.isNewSession?1:a.nbSeenInSession+1,nbSessions:s.isNewSession?a.nbSessions+1:a.nbSessions,currentlyApplied:1,firstViewTimestamp:a.firstViewTimestamp,lastViewTimestamp:Date.now(),randomAllocation:a.randomAllocation,lastSessionSeen:this.getNumberOfSessions()}):this.setCampaign(t,{variationID:e,nbSeenTotal:1,nbSeenInSession:1,nbSessions:1,currentlyApplied:1,firstViewTimestamp:Date.now(),lastViewTimestamp:Date.now(),randomAllocation:i?1:0,lastSessionSeen:this.getNumberOfSessions()})),this.save()}serializeTestsHistory(t){return Object.keys(t).map(e=>{const n=t[e];return[e,n.variationID,n.nbSeenTotal,n.nbSeenInSession,n.nbSessions,n.currentlyApplied,n.firstViewTimestamp,n.lastViewTimestamp,n.randomAllocation,n.lastSessionSeen]}).map(g(".")).join("_")}deserializeTestsHistory(t){return t.split("_").filter(t=>!(0,u.I)(t)).map((0,l.l)(".")).reduce((t,e)=>(t[Number(e[0])]={variationID:Number(e[1]),nbSeenTotal:Number(e[2]),nbSeenInSession:Number(e[3]),nbSessions:Number(e[4]),currentlyApplied:Number(e[5]),firstViewTimestamp:Number(e[6]),lastViewTimestamp:Number(e[7]),randomAllocation:Number(e[8]),lastSessionSeen:Number(e[9])},t),{})}isCrossDomainUsed(){return(0,o.cR)().length>0&&this.matchUrlSettings()}}},6729:(t,e,n)=>{"use strict";n.d(e,{W:()=>s});var i=n(1134);async function s(){const{addJquery:t,jqueryVarName:e}=(0,i.F5)();if(t){let t;return""!==e&&null!=e&&(t=e.split(".").reduce((t,e)=>t?t[e]:t,window)),t||window.jQuery||window.$}return window.jQuery}},6804:(t,e,n)=>{"use strict";n.d(e,{F:()=>a});var i=n(6729),s=n(1387);async function a(t,e={},n,a=[]){const{campaign:o,variation:r,fragment:c}=e;try{if("function"!=typeof t)throw new Error("Code parameter is not a function.");const e=await(0,i.W)();return((e,n,i,s)=>t(e,n,i,...s))(e,e,{...(0,s.Ry)(o,r),...n},a)}catch(t){return(0,s.C_)(t,o,r,c),!1}}},6883:(t,e,n)=>{"use strict";n.d(e,{r:()=>i});const i=t=>{if(window.abTastyNoRandomHit)return!0;if(0===t)return!1;return 1===Math.floor(Math.random()*t)+1}},6914:(t,e,n)=>{"use strict";n.d(e,{p:()=>i});const i=(0,n(721).c)((t,e)=>e.reduce((e,n)=>t(n)?[...e,n]:e,[]))},6916:(t,e)=>{"use strict";var n,i;e.q=void 0,function(t){t.PULL="pull",t.PUSH="push",t.DATALAYER="datalayer"}(n||(e.q=n={})),function(t){t.CUSTOM_TRACKING="ct",t.TRANSACTION_TRACKING="tt",t.CUSTOM_AND_TRANSACTION_TRACKING="all"}(i||(i={}))},7177:(t,e,n)=>{"use strict";n.d(e,{getAbandonedCart:()=>g});var i=n(648),s=n(3346),a=n(3595),o=n(7426),r=n(2484);const c="ABTastyAbandonedCart",d=3e3,u="abandonedCartFetch",l="https://dcinfos-cache.abtasty.com/v1/cart",g=(()=>{const t={};return async(e,n,g=!1)=>{if(g&&delete t.abandonedCart,t.abandonedCart)return t.abandonedCart;if(!r.Ks.getItem(r.b1,c)){const g=e=>{(0,a.g)(e)||r.Ks.setItem(r.b1,c,JSON.stringify(e)),t.abandonedCart=e};return await(async(t,e)=>{const n=(()=>{try{return new AbortController}catch(t){(0,i.FF)("Cannot create AbortController.",t)}})(),a=u+Date.now(),r=setTimeout(()=>{n?.abort(),(0,i.FF)("Call to Abandoned cart service timeout. Abandoned cart targeting is going to reject visitor.")},d);(0,o.Dk)(a,r);const c=`${l}?clientId=${t}&fullVisitorId=${e}`;return await(0,s.J)(c,{signal:n?.signal}).then(t=>{switch((0,o.fD)(a),t.status){case 200:return t.json();case 204:return{};default:return}}).catch(t=>{"AbortError"!==t.name&&(0,i.vV)(`Error while fetching Abandoned cart data: ${t}`)})})(e,n).then(t=>(g(t),t))}try{return t.abandonedCart=JSON.parse(r.Ks.getItem(r.b1,c)),t.abandonedCart}catch(e){return(0,i.FF)(`Error while parsing abandoned cart data from sessionStorage: ${e}`),t.abandonedCart}}})()},7386:(t,e,n)=>{"use strict";n.d(e,{Cy:()=>o,E:()=>u,zj:()=>d});n(1134);var i=n(648),s=n(2484);const a="ABTastyAllocation",o="0",r={dynAllocWait:{promise:null,resolve:null,reject:null}};function c(){const t=r.dynAllocWait;t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n})}function d(){return r.dynAllocWait.promise}function u(){let t;try{t=JSON.parse(s.Ks.getItem(s.b1,a))}catch(t){i.vV(`Error parsing allocations data: ${t}`)}return t}c()},7405:(t,e,n)=>{"use strict";n.d(e,{li:()=>w,mn:()=>p,Xp:()=>y,BA:()=>f,z:()=>v,PA:()=>S});var i=n(648),s=n(4721),a=(n(3308),n(9225)),o=n(9906);n(1134),n(6257);!function(){const t={}}();var r=n(3346),c=n(3595),d=n(7426),u=n(2484);const l="ABTastyVisitorHistory",g={timeout:3e3,timeoutName:"visitorHistoryFetch",route:"https://dcinfos-cache.abtasty.com/v1/targetings/clients/{clientID}/visitors/{visitorID}"};(()=>{const t={}})();n(6692),n(8987),n(9578),n(88),n(3621),n(117);n(7471),n(4502),n(8009);n(2538),n(8445),n(9467),n(5066);var m=n(977);const h={};function p(t){return a.Hu.getGlobalCampaignsInfos().needDCInfosFetch.indexOf(t)>-1}function f(t){return a.Hu.getGlobalCampaignsInfos().needIPFetch.indexOf(t)>-1}function y(t){return a.Hu.getGlobalCampaignsInfos().needGeolocFetch.indexOf(t)>-1}function v(t){return a.Hu.getGlobalCampaignsInfos().needUAParserFetch.indexOf(t)>-1}function w(t){return a.Hu.getGlobalCampaignsInfos().needAdBlockDetection.indexOf(t)>-1}const S=t=>async(e,n,i)=>(a.Hu.updatePublicTargetingAudienceMode(e),!i||!i?.length||Promise.all(i.map((n,i)=>A(t)(e,i,n))).then(t=>n===m.SC.some?t.some(t=>t):t.every(t=>t))),A=t=>async(e,n,r)=>{if(void 0===r||null==r.targeting_groups||0===r.targeting_groups.length)return!0;const c=r.is_segment?s.fh:s.ih,d=(await Promise.all(r.targeting_groups.map(async s=>(await Promise.all(s.targetings.map(async d=>{const{targeting_type:u,success:l}=d;let g=void 0===l||l;if(!(0,o.PG)(u)||void 0===l){const l=await(h[u]?.(t));if("function"==typeof l)return g=await l(d,e.id,s.position,s.id),(0,o.uG)(d,g),a.Hu.updatePublicTargetingData(e.id,d,g,c,s.position,n,r.name),g;i.FF("Cannot apply targeting",d),(0,o.uG)(d,g),a.Hu.updatePublicTargetingData(e.id,d,g,c,s.position,n,r.name)}return g}))).every(Boolean)))).some(Boolean);return i.NI("Applying audience",r," for ",e,"result = ",d),d}},7426:(t,e,n)=>{"use strict";n.d(e,{Dk:()=>s,fD:()=>o,sm:()=>a});let i={};function s(t,e){i[t]=e}function a(){Object.keys(i).forEach(t=>clearTimeout(i[t])),i={}}function o(t){clearTimeout(i[t])}},7471:(t,e,n)=>{"use strict";n.d(e,{n:()=>g,t:()=>l});var i=n(8987),s=n(3595),a=n(1134),o=n(648),r=n(4502),c=n(8009);let d,u,l=function(t){return t.mrasn="mrasn",t.referrer="referrer",t.landingPage="lp",t}({});class g{dictionary=[{key:l.mrasn,value:"",typeCast:t=>String(t)}];constructor(t=!1){if(this.dictionary.push({key:l.landingPage,value:window.location.href,typeCast:t=>String(t)}),d&&!t)return d;const{customCookieDomain:e,customCookiePath:n}=(0,a.F5)();this.name=g.getCookieName(),this.customDomain=e,this.customPath=n;const i=this.getCookieValue();return i?(this.isNewSession=!1,void 0===u&&(u=!1),this.load(i)):(this.isNewSession=!0,void 0===u&&(u=!0),this.setLandingPage(this.decodeURIComponentSafely(window.location.href))),d=this,window.ABTasty.clearSessionCookie=this.clear.bind(this),this.save(),d}isEncoded(t){return(t=t||"")!==decodeURIComponent(t)}fullyDecodeURI(t){for(;this.isEncoded(t);)t=decodeURIComponent(t);return t}decodeURIComponentSafely(t){try{return this.fullyDecodeURI(t)}catch(e){try{return this.fullyDecodeURI(decodeURIComponent(t))}catch(e){return t}}}static getCookieName(){return"ABTastySession"}getCookieValue(){return(new c.NO).haveConsent([c.rv.storage])||(0,s.g)(window.ABTasty.temporaryCookieValues)||(0,s.g)(window.ABTasty.temporaryCookieValues[this.name])?i.A.get(this.name):window.ABTasty.temporaryCookieValues[this.name].value}get(t){return this.dictionary.find(e=>e.key===t)}set(t,e){this.get(t).value=e,this.save()}incr(t,e){const n=this.get(t);n.value=n.value+e,this.save()}resetDictionary(){this.dictionary.forEach(t=>{switch(t.key){case l.referrer:t.value=t.typeCast("");break;case l.landingPage:t.value=t.typeCast(window.location.href);break;default:t.value=t.typeCast("")}})}load(t){try{const e=new RegExp(this.dictionary.map(t=>`(${t.key}=.*)`).join("&"));t.match(e).slice(1).map((t,e)=>{const n=new RegExp(`(${this.dictionary[e].key})=(.*)`);return t.match(n).slice(1)}).forEach(([t,e])=>{void 0!==this.get(t)?this.set(t,this.get(t).typeCast(decodeURIComponent(e))):(0,o.FF)(`Session cookie key '${t}' is unknown ; removing it from the cookie.${e?` Value attached '${e}'.`:""}`)})}catch(t){(0,o.vV)("Error loading the session cookie.",t),this.resetDictionary(),this.isNewSession=!0,void 0===u&&(u=!0)}}save(){const t=this.dictionary.map(t=>[`${t.key}=${encodeURIComponent(t.value)}`]).join("&");if(this.isValid(t)){if(!(new c.NO).haveConsent([c.rv.storage]))return(0,s.g)(window.ABTasty.temporaryCookieValues)&&(window.ABTasty.temporaryCookieValues={}),void(window.ABTasty.temporaryCookieValues[this.name]={value:t,config:this.getConfig()});i.A.set(this.name,t,this.getConfig())}else(0,o.vV)("Session cookie cannot be saved, incorrect value",t)}clear(){delete window.ABTasty?.temporaryCookieValues?.[this.name],i.A.remove(this.name,this.getConfig())}isValid(t){return!0}getConfig(){const t=new Date((new Date).getTime()+18e5);return(0,r.jS)(t)}setMrasn(t){this.set(l.mrasn,t)}getMrasn(){return this.get(l.mrasn).value}setLandingPage(t){this.set(l.landingPage,t)}getLandingPage(){return this.get(l.landingPage).value}getReferrer(){return""}isItNewSession(){return u}}},7550:(t,e,n)=>{"use strict";function i(t){const{readyState:e}=document,n="interactive"===e||"complete"===e;if(null==t)return n;if(n)t();else{const e=()=>{document.removeEventListener("DOMContentLoaded",e),t()};document.addEventListener("DOMContentLoaded",e)}}n.d(e,{Q:()=>i})},7643:(t,e,n)=>{"use strict";n.d(e,{n:()=>r});var i=n(9578),s=n(3595),a=n(6381),o=n(6046);class r{static instance=null;data=null;commonDataRefresher=null;constructor(){return(0,s.g)(r.instance)?(r.instance=this,this.data={eventTracking:[],collectHit:[]},this.createMethods(),(new a.k).dispatchCustomEvent(i.u.Name.trackingInitialized),this):r.instance}static reset(){(0,s.g)(r.instance)||(0,s.g)(r.instance.data)||(r.instance.data.eventTracking=[],r.instance.data.collectHit=[])}setEventTracking(t,e,n){if((new a.k).getStatusCustomEvent(i.u.Name.analyticsLoaded)===i.u.Status.complete)return;const s=Date.now(),o=this.data.eventTracking.length;this.data.eventTracking[o]={name:t,data:e,campaignId:n,time:s}}static getEventTracking(){return(0,s.g)(r.instance)||(0,s.g)(r.instance.data)?[]:r.instance.data.eventTracking}setInternalHit(t,e){(new a.k).getStatusCustomEvent(i.u.Name.analyticsLoaded)===i.u.Status.complete&&r.instance?.commonDataRefresher?(0,o.I)().then(n=>n?.dispatchHit(t,e)):this.setCollectHit(t,e)}setCollectHit(t,e){if((new a.k).getStatusCustomEvent(i.u.Name.analyticsLoaded)===i.u.Status.complete)return;const n=Date.now(),s=this.data.collectHit.length;this.data.collectHit[s]={type:t,args:e,time:n}}static getCollectHit(){return(0,s.g)(r.instance)||(0,s.g)(r.instance.data)?[]:r.instance.data.collectHit}static setCommonDataRefresher(t){(0,s.g)(r.instance)||(r.instance.commonDataRefresher=t)}static getCommonDataRefresher(){return(0,s.g)(r.instance)?null:r.instance.commonDataRefresher}createMethods(){const t=(...t)=>this.setCollectHit.apply(this,[...t]);window.abtasty?window.abtasty.send||(window.abtasty.send=t):window.abtasty={send:t};const e=(...t)=>this.setEventTracking.apply(this,[...t]);window.ABTastyClickTracking||(window.ABTastyClickTracking=e),window.ABTastyEvent||(window.ABTastyEvent=e)}}},7707:(t,e,n)=>{"use strict";function i(){return"1bf6decf"}function s(){return`${"1bf6decf".substring(0,5)}`}n.d(e,{i:()=>s,y:()=>i})},7725:(t,e,n)=>{"use strict";n.d(e,{jk:()=>l,vm:()=>m});var i=n(918),s=n(5437),a=n(3410),o=n(648);const r="AB_TASTY_QA_ASSISTANT_ENV",c={abtasty_qa_assistant:"prod",abtasty_qa_assistant_staging:"staging",abtasty_qa_assistant_local:"local"},d={prod:"https://qa-assistant.abtasty.com",staging:"https://staging-qa-assistant.abtasty.com",local:"https://local-qa-assistant.abtasty.com:5000"},u=(Object.keys(c),"bundle.js");function l(){!function(){(0,o.fH)("Listening for keyboard events to launch QA Assistant");const t={q:!1,a:!1},e=Object.keys(t),n=n=>{(n.altKey||n.ctrlKey)&&e.includes(n.key.toLocaleLowerCase())&&(t[n.key.toLocaleLowerCase()]=!0),Object.values(t).every(t=>t)&&h()},i=function(n){e.includes(n.key)&&(t[n.key]=!1)},s=()=>{document.removeEventListener(p,n,!1),document.removeEventListener(f,i,!1)};s(),document.addEventListener(p,n,!1),document.addEventListener(f,i,!1)}(),m()&&h()}function g(){return Object.keys(c).find(t=>!!(0,s.Vf)(t))}function m(){return!(!g()&&!sessionStorage.getItem(r))}function h(){if(!window.frames?.ABTastyQaAssistant){(0,o.Nw)();const t=function(){const t=g();return(()=>{const e=sessionStorage.getItem(r);return e&&[...Object.keys(d)].includes(e)?e:t&&c[t]?c[t]:c.abtasty_qa_assistant})()}(),e=d[t];(0,o.fH)("Loading QA Assistant"),(0,i.k)(`${e}/${u}`,{attributes:{..."local"===t?{crossorigin:"anonymous"}:{}}}),sessionStorage.setItem(r,t),window.dispatchEvent(new CustomEvent(a.kj))}}const p="keydown",f="keyup"},7765:(t,e,n)=>{"use strict";n.d(e,{oT:()=>w,kQ:()=>p,o9:()=>y,oi:()=>v,SL:()=>h,sw:()=>f});const i="ABTastyHidden",s=(t=2e3)=>{const e=document.createElement("style");e.type="text/css";const n=`.${i} { display: none !important }`;e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(e),document.getElementsByTagName("html")[0].setAttribute("class",i),setTimeout(()=>{const t=document.getElementsByTagName("html")[0];t.className=t.className.replace(i,"")},t)};var a=n(3595),o=n(5437),r=n(1134),c=n(1873),d=n(7471),u=n(648),l=n(8009),g=n(6692);const m={testID:null,variationID:null,previousLogicalView:null,visitorId:null},h=()=>{m.testID=null,m.variationID=null,m.previousLogicalView=null,m.visitorId=null,delete window.ABTasty.redirectedFrom,window.ABTasty.pendingRedirection=!1},p=()=>m,f=t=>{const{testID:e}=p();return!(0,a.g)(e)&&e===t},y=()=>{if(v())return!1;if(p().testID)return!0;const t=new d.n,e=((0,o.Vf)(d.t.mrasn)||t.getMrasn()).split(".");if(e.length>=2){const n=e[2]&&e[2].length>0?e[2]:null;let i=null,s=null;return i=e[3]&&e[3].length>0?e[3]:null,s=e[4]?Number(e[4]):null,s&&Date.now()-s>=1e4?!1:(((t,e,n=null,i=null)=>{m.testID=t,m.variationID=e,m.previousLogicalView=n,m.visitorId=i})(Number(e[0]),Number(e[1]),n,i),window.ABTasty.redirectedFrom={...p()},t.setMrasn(""),!0)}return!1},v=()=>!!window.ABTasty.pendingRedirection,w=async(t,e,n)=>{const{ATInternetReferrer:i,transferParameters:m,isRegex:h,target:p,pattern:f}=t[0];if((0,a.g)(p))return void(0,u.FF)(`Couldn't apply redirection of campaign ${e} and variation ${n}`);const w=new RegExp(d.t.mrasn);if(v()||y()||w.test(p))return;s(1e3),window.ABTasty.pendingRedirection=!0;let S=p;if(h&&(S=((t,e)=>{const n=new RegExp(e,"i"),i=window.location.href.replace(n,t);return(0,o.Pk)(i)})(p,f)),m&&(S=(0,o.aQ)(S,window.location.href)),S=(0,o.y3)(S),S=await(async(t,e,n)=>{const i=[e,n,(0,c.D0)()||""],s=(0,l.Vn)("storage");if((0,r.yn)().accountSettings.hashMrasnAllowed){if(!s){const t=await g.bo.build();i.push(t.getVisitorId())}const e=i.filter(t=>t.toString().length>0).join(".");return(0,o.Yj)("mrasn",e,t)}{i.push(""),i.push(Date.now());const t=new d.n;t.setMrasn(i.join(".")),t.save()}return t})(S,e,n),i&&document.referrer){const t=new URL(document.referrer).hostname;S=(0,o.Yj)("xtref",t,S)}/MSIE/.test(navigator.userAgent)&&(S=S.replace("&","&")),window.location.replace(S),s(1)}},7862:(t,e,n)=>{"use strict";n.d(e,{T:()=>a,X:()=>s});const i={};function s(t,e){i[t]=e}function a(t){clearInterval(i[t])}},7904:(t,e,n)=>{"use strict";n.d(e,{BZ:()=>g,Ey:()=>l,ai:()=>d,hL:()=>h,og:()=>m,rb:()=>c});var i=n(8987),s=n(1134),a=n(648),o=n(4502),r=n(6692);const c="local",d="cookies",u=3900;function l(){if((0,s.AU)()){const t=i.A.get(r.bo.getCookieName());if(t&&t.length>=u)return(0,a.FF)("Cookies size is too big, ABTasty tag stopped execution."),!1;if(!(0,o.rh)(t,r.bo.getCookieName())){const{domain:t,path:e,secure:n}=(0,o.jS)(0),i=[t&&!`.${window.location.hostname}`.includes(t)?`domain ${t}`:null,"/"!==e?`path ${e}`:null];return n&&!window.isSecureContext?((0,a.FF)("ABTasty data can't be saved to cookie, ABTasty tag stopped execution. A custom configuration ask to use secure cookie but page context is not secure."),!1):i.find(t=>t)?((0,a.FF)(`ABTasty data can't be saved to cookie, ABTasty tag stopped execution. A custom configuration with ${i.filter(t=>t).join(" and ")} is set for this account. Please check it matches the current URL.`),!1):((0,a.FF)(`ABTasty data can't be saved to cookie on domain ${t} and path ${e}, ABTasty tag stopped execution.`),!1)}}return!0}function g(){const t=(m()&&null!=localStorage&&null!=localStorage.setItem&&null!=localStorage.getItem||h()&&navigator.cookieEnabled)&&null!=sessionStorage&&null!=sessionStorage.setItem&&null!=sessionStorage.getItem;return t||(0,a.FF)("AB Tasty script encountered an error: LocalStorage, SessionStorage & Cache option aren't allowed on this browser. Execution has stopped."),t}function m(){const{storageMode:t}=(0,s.F5)();return t===c}function h(){return(0,s.F5)().storageMode===d}},8009:(t,e,n)=>{"use strict";n.d(e,{NO:()=>C,rv:()=>I,Vn:()=>E,ac:()=>T,T$:()=>k});var i=n(108),s=n(9578),a=n(648),o=n(6381),r=n(1134),c=n(6692),d=n(2484);var u=n(8987),l=n(7862),g=n(642);var m=n(3663);n(81);function h(t,e,n){return a.fH("Consent compliance check: Executing custom code."),new Promise((e,n)=>{try{new Function("abResolve",t.value)(e)}catch(t){n(t)}}).then(t=>{t?e():(a.FF("Consent compliance check: custom code return false"),n())}).catch(t=>{a.vV("Consent compliance check: could not execute custom code",t),n()})}function p(t,e,n){return new Promise(async(i,s)=>{a.fH("Consent compliance check: Executing custom code.");const o=()=>e(),r=async()=>new Function(t.value)();try{if(await r())o(),i();else{const t=setInterval(async()=>{a.NI("Consent compliance check (loop): Executing custom code."),await r()&&(clearInterval(t),o(),i())},500);(0,l.X)("consentCustomJs",t),n()}}catch(t){a.vV("Consent compliance check: could not execute custom code",t),n(),s()}})}const f="abtasty_grantConsent",y="abtasty_revokeConsent";var v=n(7643),w=n(1492),S=n(2352),A=n(9404);const T=200;let b,I=function(t){return t.start="start",t.test="test",t.perso="perso",t.aa="aa",t.patch="patch",t.redirection="redirection",t.storage="storage",t.collect="collect",t.dmp="dmp",t.geoloc="geoloc",t}({});class C extends S.X{constructor(){if(super(),b)return b;const{waitForConsent:{mode:t,campaignRestrictions:e,data:n}}=(0,r.F5)();this.mode=t,this.data=n,this.isStrict=!!Object.keys(e).length&&!Object.values(e).filter(t=>!t).length,this.campaignRestrictions=e,this.consentAtInit=c.bo.exists(),this.isListen=!1,this.isValid=!1,this.setConsentReady(!1),this.consentFor=Object.keys(e).filter(t=>!e[t]).map(t=>t),this.isStrict||this.consentFor.push(I.start),b=this,this.shouldListen()?(d.Ks.setState("inmemory",!this.consentAtInit),this.listen()):this.valid()}static resetInstance(){b=null}haveConsent(t=Object.values(I)){return t.every(t=>this.consentFor.includes(t))}sendConsentHit(t){(async()=>{const e={co:t};(new v.n).setInternalHit(w.YQ.consent,e)})()}emitConsentValidEvent(){const t=new CustomEvent("consentValid");document.dispatchEvent(t),(new o.k).dispatchCustomEvent(s.u.Name.consentValid,{mode:(0,r.F5)().waitForConsent.mode,consentFor:this.consentFor})}valid(t=Object.values(I)){if(this.isValid=!0,this.setConsentReady(!0),this.notify("general.consent"),this.consentFor=[...this.consentFor,...t],(0,a.fH)("Consent compliance check: Consent has been granted."),this.haveConsent([I.storage])){if(c.bo.cookieReady&&c.bo.getInstance()){const t=c.bo.getInstance(),e=t.sessionCookie;t.save(),e.save()}d.Ks.migrate()}!this.consentAtInit&&this.isListen&&this.sendConsentHit(!0),this.emitConsentValidEvent(),this.consentAtInit=c.bo.exists(),this.isListen=!1}revoke(t=Object.values(I)){this.isValid=!1,this.shouldRevoke()&&(this.consentFor=this.consentFor.filter(e=>e===I.start&&!this.isStrict||(Object.keys(this.campaignRestrictions).includes(e)?!this.campaignRestrictions[e]:!t.includes(e))),this.consentFor.length===Object.values(I).length&&(this.isValid=!0),(0,a.fH)("Consent compliance check: Consent has been revoked."),this.haveConsent([I.storage])||(d.Ks.migrate(),c.bo.cookieReady&&c.bo.getInstance()?c.bo.getInstance().clearAll():(0,A.pK)(c.H_,()=>c.bo.getInstance().clearAll()),this.setConsentReady(!1),this.notify("general.consent")),this.sendConsentHit(!1))}shouldRevoke(){return!this.isValid&&c.bo.exists()}shouldListen(){return this.mode===i.Ey.userAction&&!c.bo.exists()||![i.Ey.thirdParty,i.Ey.disabled,i.Ey.userAction].includes(this.mode)}listen(){if(!this.isListen)switch(this.isListen=!0,this.mode){case i.Ey.userAction:!function(t){a.NI("Consent compliance check: Waiting for a visitor's action.");const e=()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchmove",e,!0),window.removeEventListener("scroll",e,!0),t()};document.addEventListener("mousedown",e,!0),document.addEventListener("touchmove",e,!0),window.addEventListener("scroll",e,!0)}(t=>this.valid(t));break;case i.Ey.anyCookie:!function(t){a.NI("Consent compliance check: Waiting for any cookie deposit on the website.");const e=()=>t(),n=()=>document.cookie.length>0;if(n())e();else{const t=setInterval(()=>{n()&&(clearInterval(t),e())},T);(0,l.X)("consentAnyCookie",t)}}(t=>this.valid(t));break;case i.Ey.specificCookie:!function(t,e,n){a.NI(`Consent compliance check: Waiting for "${t.name}" cookie deposit on the website.`);const i=()=>e(),s=()=>{const{condition:e,value:n,name:i}=t,s=u.A.get(i);if(!s)return!1;switch(Number(e)){case g.Wm:return new RegExp(n).test(s);case g.sz:return s.indexOf(n)>-1;case g.UT:default:return s===n}};if(s())i();else{const t=setInterval(()=>{s()&&(clearInterval(t),i())},T);(0,l.X)("consentSpecificCookie",t),n()}}(this.data,t=>this.valid(t),t=>this.revoke(t));break;case i.Ey.didomi:(0,m.a)(this.data,t=>this.valid(t),t=>this.revoke(t));break;case i.Ey.customJs:(this.data.isAsync?h:p)(this.data,t=>this.valid(t),t=>this.revoke(t));break;case i.Ey.customEvent:((t,e)=>{a.NI("Consent compliance check: Waiting for custom event.");const n=()=>(a.NI("Consent compliance check: Custom event triggered. Consent granted"),t()),i=()=>(a.NI("Consent compliance check: Custom event triggered. Consent revoked"),e());!0===window.abtastyGrantConsent&&(a.NI("Consent compliance check: window.abtastyGrantConsent is truthy. Consent granted"),n()),window.addEventListener(f,n),window.addEventListener(y,i)})(t=>this.valid(t),t=>this.revoke(t));break;default:this.valid()}}getConsentReady(){return this.consentReady}setConsentReady(t){this.consentReady=t,window.ABTasty.consentReady=t}notify(t){this.mediator?.notify(t,{started:!0})}}const E=t=>(new C).haveConsent([I[t]]),k=(t,e)=>{const n=`abtasty_${s.u.Name.consentValid}`,i=s=>{const{detail:a}=s;a&&a.consentFor.includes(t)&&(window.removeEventListener(n,i),e(s))};window.addEventListener(n,i)}},8318:(t,e,n)=>{"use strict";n.r(e),n.d(e,{addObservance:()=>c});var i=n(3595);const s=(t,e)=>t&&"BODY"!==t.tagName?t===e||s(t.parentNode,e):t===e,a={observer:null,observances:[]},o={attributes:!0,childList:!0,characterData:!0,subtree:!0,attributeFilter:["checked","class","disabled","form","hidden","href","icon","id","label","max","min","maxLength","minLength","method","name","novalidate","placeholder","readonly","rel","required","selected","size","span","src","target","title","type","value"]},r=(t,e)=>{if(t&&t.length){const n=t.reduce((t,{addedNodes:e,removedNodes:n,target:s,type:a,attributeName:o,oldValue:r})=>{let c=[],d=!0;return c=e.length?[...e]:n.length?[...n]:[s],"attributes"!==a||(0,i.g)(o)||r!==s.getAttribute(o)||(d=!1),d?[...t,...c]:t},[]);a.observances=a.observances.filter(({selector:t,include:i,callback:a})=>{const o=(t=>{if(!t.includes("[]"))return t;const[,,e]=t.split("[]");return e.trim()})(t),r=e.querySelectorAll(o);return i&&((t,e)=>[...e].some(e=>!!e&&t.some(t=>s(e,t)||s(t,e))))(n,r)?(a(),!1):!(!i&&0===r.length)||(a(),!1)})}},c=(t=window.document,e,n,i)=>{const s=a.observances.some(e=>e.root===t);a.observances.push({root:t,selector:e,include:n,callback:i}),s||(t=>{a.observer=new MutationObserver(e=>r(e,t)),a.observer.observe(t,o)})(t)}},8353:(t,e,n)=>{"use strict";n.d(e,{FZ:()=>m,P9:()=>l,kA:()=>g});var i=n(6332),s=n(7707),a=n(1134),o=n(1666),r=n(3002),c=n(9225),d=n(5712);const u="ABTasty",l=()=>{(0,i.X8)([u,"cnilReady"],[u,"consentReady"])},g=t=>{window[u].started=!0,window[u].visitor={id:t}},m=t=>{const e=t.accountSettings.ajaxAutoReload,n=d.g.getInstance(),l={getAccountSettings:()=>(0,a.F5)(),getGeoloc:()=>(0,o.KL)(),getParsedUserAgent:()=>((0,i.j3)({deprecate:"getParsedUserAgent",new:"getParsedUserAgentAsync",type:"function"}),(0,r.a)()),getParsedUserAgentAsync:async()=>await(0,r.a)(!0),getTestsOnPage:c.Hu.getActiveCampaigns,hitServiceNotifierSubscribe:n.subscribe,hitServiceNotifierUnSubscribe:n.unsubscribe},g={accountData:t,consentReady:!1,omnitureProcessed:!1,pendingRedirection:!1,pendingUAParser:!0,results:{},started:!1,tagInfos:{commitHash:(0,s.y)()||"",version:"next",semanticVersion:"4.23.0",enabledFlagshipExperiments:[{name:"tag_lp_url_cookie",value:"true"},{name:"tag_cache_values",value:{identifier:{maxAge:21600,serverMaxAge:21600},initiator:{jsAge:300,maxAge:30,serverMaxAge:86400},manifest:{maxAge:30,serverMaxAge:86400}}},{name:"tag_1domain_lock",value:"true"},{name:"tag_1domain_sampling",value:1e4},{name:"tag_safe_eval",value:"true"},{name:"tag_safe_eval_remove_unused_widget_config_keys",value:"true"},{name:"tag_perf_exec_time_sample",value:1e3},{name:"tag_redirect_with_visitor_id",value:"true"},{name:"tag_redirection_deactivation",value:"true"},{name:"active_clarity_v2",value:"true"},{name:"tag_use_beacon_api",value:"true"}].filter(t=>!1!==t.value)},...e?{urlHistory:{previous:document.referrer,current:window.location.href}}:{}};window[u]=window[u]||{...g,...l}}},8445:(t,e,n)=>{"use strict";n.d(e,{_V:()=>s,ok:()=>i,pi:()=>a});let i=function(t){return t.CUSTOM_IDENTITIES="ABTastyCustomIdentities",t.CUSTOM_SEGMENTS="ABTastyCustomSegments",t.HIT_HISTORY_SESSION="ABTastySessionHitHistory",t.SESSION_DATA="ABTastySession",t.QA_MODE_URL_PARAMETER_CAMPAIGN_IDS="ABTastyQaUrlParameterIds",t.FORCED_CAMPAIGNS="ABTastyForcedCampaigns",t}({}),s=function(t){return t.CURRENT_SESSION_TIMESTAMP="cst",t.CAMPAIGNS="campaigns",t.TROUBLESHOOT="troubleshoot",t.PERFORMANCE="performance",t}({}),a=function(t){return t.CURRENT_SESSION_TIMESTAMP="cst",t}({})},8476:(t,e,n)=>{"use strict";n.d(e,{code:()=>i});const i=(t,e,n)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"experiment_info",ninja:{experiment:`${n.campaignData.campaignId}`,variation:`${n.campaignData.variationId}`}})}},8689:(t,e,n)=>{"use strict";function i(t){return null!=t&&("string"==typeof t?""===t:Array.isArray(t)?0===t.length:"object"==typeof t&&0===Object.keys(t).length)}n.d(e,{I:()=>i})},9076:(t,e,n)=>{"use strict";function i(...t){return(e,...n)=>t.reduce((t,i)=>null!=t?i(t):i(e,...n),void 0)}n.d(e,{F:()=>i})},9184:(t,e,n)=>{"use strict";n.d(e,{aV:()=>Bt,i9:()=>kt,Jr:()=>_t,c1:()=>Pt,lG:()=>Nt,ln:()=>Ot});var i=n(8987),s=n(3656),a=n(5437),o=n(648),r=n(3595),c=n(1134),d=n(2492),u=n(8445),l=n(918);const g={abtasty_editor:"prod",abtasty_editor_local:"local",abtasty_editor_preprod:"preprod"},m={prod:"https://teddytor.abtasty.com",local:"https://local.editorv3.abtasty.com",preprod:"https://preprod-editorv3.abtasty.com"};function h(){return Object.keys(g).find(t=>(0,a.Dj)(t)&&(0,a.Vf)(t))}function p(){const t=h();if(!t)return void(0,o.FF)("The tag could not find which editor to launch");const e=(0,a.Vf)(t);e?(0,l.k)(m[g[t]]+"/dist/main.js",{attributes:{id:"abtasty-editor","data-campaignid":e}}):(0,o.FF)("The tag could not find which testID the editor should use")}function f(){const t=function(){const t=(0,a.sd)("env");return Object.keys(m).find(e=>t===e)}()||"prod";try{const e=(t=>`${m[t]}/dist/variation-preview.js`)(t);(0,l.k)(e)}catch(t){const e="Preview mode error";return(0,o.vV)(e,t),!1}}var y=n(7643),v=n(1492),w=n(4502),S=n(9578),A=n(4721),T=n(9225),b=n(9825),I=n(9498);var C=n(7765),E=n(6692),k=n(8009),_=n(81),O=n(7550),D=n(1387);n(6804);const N=async t=>{(0,o.fH)("Executing account JavaScript code."),(0,D.K6)(t)},B=t=>{t.forEach(async t=>{(0,D.K6)(t.code,void 0,void 0,t.id)})};var P=n(6381),$=n(9403);class V{jsCacheRefreshed=!1;emotionsAiMethods=null;sharedActionTracking=null;constructor(t,e,n,i){this.visitorId=t,this.consent=e,this.started=n,this.lastUpdateDate=i,this.jsCacheRefreshed=(0,$.$)(t=>this.setJsCacheRefreshed(t)),this.dataV1={visitorId:this.visitorId,account:(0,c.F5)(),events:P.P,general:{consent:this.consent.getConsentReady(),started:this.started,jsCacheRefreshed:this.jsCacheRefreshed,lastUpdateDate:i},tagInfos:{version:"next",semanticVersion:"4.23.0",enabledExperiments:[{name:"tag_lp_url_cookie",value:"true"},{name:"tag_cache_values",value:{identifier:{maxAge:21600,serverMaxAge:21600},initiator:{jsAge:300,maxAge:30,serverMaxAge:86400},manifest:{maxAge:30,serverMaxAge:86400}}},{name:"tag_1domain_lock",value:"true"},{name:"tag_1domain_sampling",value:1e4},{name:"tag_safe_eval",value:"true"},{name:"tag_safe_eval_remove_unused_widget_config_keys",value:"true"},{name:"tag_perf_exec_time_sample",value:1e3},{name:"tag_redirect_with_visitor_id",value:"true"},{name:"tag_redirection_deactivation",value:"true"},{name:"active_clarity_v2",value:"true"},{name:"tag_use_beacon_api",value:"true"}].filter(t=>!1!==t.value)}},this.handlers={},this.consent.setMediator(this),(new P.k).setMediator(this)}setStarted(t){this.started=t}setJsCacheRefreshed(t){this.jsCacheRefreshed=t,this.notify("general.jsCacheRefreshed")}setEmotionsAiMethods(t){this.emotionsAiMethods=t}setSharedActionTracking(t){this.sharedActionTracking=t}notify(t,e){if(t.startsWith("general")||t.startsWith("events")){t.startsWith("general")&&e?.started&&this.setStarted(e.started);const n=this.getHandlerCallback(t);n&&this.runCallback(n)}}runCallback(t){const{callbackKey:e,callbacks:n}=t,i=e.split(".");for(const t of n)t(this.getValue(i),i)}getValue(t){if(!t.length)throw new Error("No key is given in argument!");this.dataV1.general={consent:this.consent.getConsentReady(),started:this.started,lastUpdateDate:this.lastUpdateDate,jsCacheRefreshed:this.jsCacheRefreshed},this.dataV1.emotionsAiSegment=this.emotionsAiMethods?.getEmotionsAiSegment()||"";const e=t[t.length-1];if("function"==typeof e){const n=(t=t.slice(0,-1)).join(".");this.handlers[n]=[...this.handlers[n]??[],e]}return t.reduce((t,e)=>{if(t&&void 0!==t[e])return t[e];throw new Error(`Unknown key: ${e}!`)},this.dataV1)}getApi(){const t={v1:{getValue:(...t)=>this.getValue(t)}},e={};return Object.keys(e).length&&(t.internal=e),t}getHandlerCallback(t){const e=this.handlers[t];if(void 0!==e)return{callbackKey:t,callbacks:e};const n=t.split("."),i=n.slice(0,n.length-1);return i.length?this.getHandlerCallback(i.join(".")):null}}var R=n(6332);var L=n(8353),x=n(3410),j=n(7904);let H=document.location.href,M=!1;const F=[];function U(){document.location.href!==H&&((0,o.fH)("Url change detected",`${F.length} callback to apply`),H=document.location.href,F.forEach(t=>t()))}function G(t){F.push(t),M||(M=!0,new MutationObserver(t=>{t.forEach(U)}).observe(window.document,{childList:!0,subtree:!0}))}var q=n(88);var W=n(1666),K=n(3002);var Y=n(7725),J=n(6916),Q=n(3847);const z={[v.YQ.consent]:"onConsent",[v.YQ.campaign]:"onCampaign",[v.YQ.event]:"onEvent",[v.YQ.item]:"onItem",[v.YQ.pageview]:"onPageview",[v.YQ.segment]:"onSegment",[v.YQ.transaction]:"onTransaction",[v.YQ.visitorevent]:"onVisitorevent",[v.YQ.nps]:"onNps",[v.YQ.datalayer]:"onDatalayer",[v.YQ.product]:"onProduct"},X="clarity",Z=t=>{const e=(new E.bo).getNumberOfSessions();return Promise.all(t.map(t=>{const{segmentHash:i,instances:s,id:a,conf:r,name:d}=t,u={id:a,provider:d,conf:r,logger:{info:o.fH,error:o.vV},instances:s};if(d===X)!function(t){const e=t.find(t=>"injectTag"===t.name)?.value;if("string"==typeof e&&0===parseInt(e,10))return void(0,o.fH)(`[${X}] Tag injection disabled`);const n=t.find(t=>"projectId"===t.name)?.value;if(!n)return void(0,o.vV)(`[${X}] Missing projectId`);window[X]=window[X]||function(){(window[X].q=window[X].q||[]).push(arguments)};const i=`https://www.clarity.ms/tag/${n}`,s=new k.NO,a={attributes:{async:"1"},callback:()=>(0,o.fH)(`[${X}] Tag loaded`)};s.haveConsent([k.rv.collect])?(0,l.k)(i,a):((0,o.fH)(`[${X}]: Waiting for consent to initialize Clarity...`),(0,k.T$)(k.rv.collect,()=>(0,l.k)(i,a)))}(r);else if(d===X)return;switch(t.connectorType){case J.q.PULL:return async function(t,e){let i=[];if(e.segmentHash){const t=`${(0,Q.x)()}/${(0,c.pw)()}/integrations/${e.provider.toLowerCase()}.json?${e.segmentHash}`,n=await fetch(t);i=await(n.ok?n.json():Promise.resolve([]))}await async function(t,e){await n(6211)(`./${_.Q$.integration}${J.q.PULL}-${e.id}.js`).then(({code:n})=>n(t,e))}(t,{...e,segmentList:i})}({pv:e},{...u,segmentHash:i},t.code);case J.q.PUSH:return async function(t,e){let i;const{code:s,instances:a}=e,o=a.every(t=>t.config.mp);if(o)return;i=await n(6211)(`./${_.Q$.integration}${J.q.PUSH}-${t.id}.js`).then(({code:t})=>t());i&&Object.keys(i).length&&Object.entries(z).forEach(([e,n])=>{n in i&&window.ABTasty.hitServiceNotifierSubscribe(i[n],e,t)})}(u,t);case J.q.DATALAYER:return async function(t,e){await n(6211)(`./${_.Q$.integration}${J.q.DATALAYER}-${e.id}.js`).then(({code:n})=>n(t,e))}(t,u,t.code);default:return(0,o.vV)(`Unknown integration connector type ${t.connectorType}`),Promise.resolve()}})).catch(t=>(0,o.vV)("Integration connector execution failed with error:",t))};var tt=n(2484);const et=t=>{const e=(t=>!t&&"object"!=typeof t||!Object.values(t).every(t=>"string"==typeof t))(t);if(e)(t=>{o.FF("'CustomIdentities' cannot be set, format is not correct. It should be a dict of {string: string}",t)})(t);else{(t=>{if(!t&&"object"!=typeof t)return;const e=JSON.parse(tt.Ks.getItem(tt.b1,u.ok.CUSTOM_IDENTITIES))||{},n=t;Object.entries(n).forEach(([t,n])=>{(0,r.g)(n)||(e[t]=n)}),tt.Ks.setItem(tt.b1,u.ok.CUSTOM_IDENTITIES,JSON.stringify(e))})(t);const e=S.u.Name.identityAdded;(new P.k).dispatchCustomEvent(e)}};var nt=n(6046),it=n(3026);function st(t=[]){const e=function(t){return t.reduce((t,{method:e,url:n,category:i,action:s})=>(0,a.wM)(e,n)?{...t,[i]:s}:t,{})}(t);if(Object.keys(e).length>0){const t={s:e};(new y.n).setInternalHit(v.YQ.segment,t)}}var at=n(1873),ot=n(7426),rt=n(9906),ct=n(7471),dt=n(5974);var ut=n(9404);const lt="abtasty-execution-started",gt=()=>window.performance.getEntriesByName(lt).length>0,mt="abtasty-execution-ended",ht="executionTime";let pt=!1;const ft=()=>{try{const t=new d.E;if(pt||!gt()||window.performance.getEntriesByName(mt).length>0||t.checkHitHistorySession(u._V.PERFORMANCE,ht))return;window.performance.mark(mt);const e=window.performance.measure("abtasty-execution",lt,mt),n=(()=>{const t=window.performance.getEntries().filter(t=>t.name.includes((0,Q.x)())),e=t.find(t=>t.name.includes(`/${_.o3.manifest}`))?.startTime||-1;return(t=>t.sort((t,e)=>t.startTime-e.startTime).reduce((t,e)=>e.startTime>t.currentEnd?{totalTime:t.totalTime+e.duration,currentEnd:e.responseEnd}:e.responseEnd>t.currentEnd?{totalTime:t.totalTime+e.responseEnd-t.currentEnd,currentEnd:e.responseEnd}:t,{totalTime:0,currentEnd:0}).totalTime)(t.filter(t=>!(e>-1&&[_.o3.initiator,_.o3.main].some(e=>t.name.includes(`/${e}`))&&t.startTime>e)&&[_.o3.initiator,_.o3.commons,_.o3.main,_.o3.modificationEngine,_.o3.jquery].some(e=>t.name.includes(`/${e}`))))})();(new y.n).setInternalHit(v.YQ.performance,{ext:Math.round(e.duration-n)}),t.setHitHistorySession(u._V.PERFORMANCE,ht)}catch(t){(0,o.FF)("Can't send execution time performance measure due to:",t.message)}},yt=(t=!0)=>{pt=t};var vt=n(2487),wt=n(6883);const St=["try.abtasty.com"].concat([]);n(6361);let At=!1;function Tt(t){if(Pt()){if((0,j.BZ)()&&(0,j.Ey)())if(Ot())(0,o.FF)("[ABTasty tag is locked]"),new Promise(t=>{window.unlockABTasty=()=>(delete window.lockABTastyTag,(0,o.fH)("[ABTasty tag is unlocked]"),t(!0)),yt()}).then(()=>bt(t));else if((0,c.Fc)())(0,o.FF)("[ABTasty quota limit reached]");else{if(!(0,c.Ut)())return bt(t);setTimeout(bt,0)}}else(0,o.vV)("Tag has been stopped: Current page domain is not matching with account configuration.")}async function bt(t){(0,o.fH)("Init process started...");const e=new k.NO;let i=!0,s=null;(0,ut.pK)(E.H_,async()=>{s&&clearTimeout(s),i=!1;const a=E.bo.getInstance();e&&a?await async function(t,e,i){const s=new V(e.getVisitorId(),t,!1,i);0;0;window.ABTasty.api=s.getApi(),(0,L.P9)(),!1;0;t.haveConsent([k.rv.start])||((0,o.FF)("Waiting for consent."),yt(),await new Promise(t=>{(0,k.T$)(k.rv.start,()=>t(!0))}));(0,o.fH)("Main process started..."),(0,L.kA)(e.getVisitorId()),s.setStarted(!0);(new P.k).initCustomEventState(),(0,Y.jk)(),await(0,x.Om)(e.getVisitorId())||(0,Y.vm)()||(e.save(),(0,o.FF)("Tag has been stopped caused by sampling configuration."),yt(),await(0,x.EN)(),(0,o.NI)("Tag has been unlocked using sampling bypass event."));e.setSaveable([E.$K.uid,E.$K.cst,E.$K.fst,E.$K.ns,E.$K.pst,E.$K.pvis,E.$K.pvt,E.$K.th],!0),((t,e)=>{window.ABTastyStartTest=T.Hu.abTastyStartTest(t),window.ABTastyReload=()=>{(0,o.fH)("Tag reloading from ABTastyReload"),e(!0)},window.ABTastyPageView=()=>{(0,o.fH)("Tag reloading from ABTastyPageView"),(0,R.j3)({deprecate:"ABTastyPageView",new:"ABTastyReload",type:"function"}),e(!0)}})(e,It(e)),new y.n,Promise.resolve().then(n.bind(n,3828)).then(({startEmotionsAi:t})=>{t(e.getCurrentSessionTimestamp(),e.getVisitorId(),e.isNewSession())});((t,e)=>{(0,K.a)(),(0,c.$E)()&&(0,W.u$)(),Promise.resolve().then(n.bind(n,7177)).then(n=>{window.ABTasty.getAbandonedCart=async(i=t,s=e,a=!1)=>n.getAbandonedCart(i,s,a)})})((0,c.pw)(),e.getVisitorId());n(2524).detectDatalayer();(0,nt.I)().then(t=>t?.setGlobals((t=>()=>({campaignHistory:()=>t.getCampaignHistory(),visitorId:t.getVisitorId(),currentSessionTimestamp:t.getCurrentSessionTimestamp(),numberOfSessions:t.getNumberOfSessions()}))(e))),(0,c.F5)().ajaxAutoReload&&G(()=>{It(e)(!0)});(0,q.Qm)(()=>It(e)(!0)),It(e)(),window.abtasty=window.abtasty||{},window.abtasty.addCustomIdentity=et}(e,a,t):(0,o.vV)("Init process missing consent or cookie",`Consent: ${e}`,`Cookie: ${a}`)}),(0,C.o9)(),await E.bo.build(),i&&(s=setTimeout(()=>{(0,o.vV)("Init process timeout")},2e3))}const It=t=>async(e=!1)=>{(0,nt.I)().then(t=>{t?.dispatchBatch()}),e&&await(async()=>{(0,dt._)().then(t=>t?.rollback()),(0,it.a)(),T.Hu.resetCampaigns(),(0,C.SL)(),(0,at.wi)(),await(0,rt.Q$)().then(t=>{"resetPendingMode"in t&&t.resetPendingMode()}),(0,rt.AG)(null,null,!0),(0,ot.sm)(),new ct.n(!0),(new P.k).resetSpecificsCustomEvents([S.u.Name.executedCampaign,S.u.Name.tagContentExecuted]),window.ABTasty.results={},window.ABTasty.omnitureProcessed=!1,window.ABTasty.urlHistory&&(window.ABTasty.urlHistory={previous:window.ABTasty.urlHistory.current?window.ABTasty.urlHistory.current:document.referrer,current:document.location.href})})().then(()=>{(0,C.o9)()}),document.dispatchEvent(new CustomEvent(A.tv)),(0,at.k5)(),At||(At=!0,Ct(t))};async function Ct(t){const{accountSettings:{globalCode:e="",globalCodeOnDocReady:i},globalCodeFragments:s,customVariables:a}=(0,c.yn)();if(!E.bo.cookieReady)return void setTimeout(()=>Ct(t),A.K6);At=!1,t.pageView(),(new y.n).setInternalHit(v.YQ.pageview,{}),Promise.resolve().then(n.bind(n,6115)).then(({getEmotionsAiData:t})=>{!t("collectDone")&&(new y.n).setInternalHit(vt.s.pageview,{})});const r=(0,c.Bz)()||[];(0,o.fH)("Integration connectors::",r),r&&r.length&&await Z(r),a&&st(a),async function(t,e,n){const i=""!==t,s=n&&n.length>0;if((i||s)&&(i&&(e?(0,O.Q)(()=>N(t)):await N(t)),s)){const t=n.filter(t=>t.onDocumentReady),e=n.filter(t=>!t.onDocumentReady);t.length>0&&(0,O.Q)(()=>B(t)),e.length>0&&B(e)}}(e,i,s),await(async t=>{const{getCampaignsDatas:e,getCampaignsSortedByPrio:n}=T.Hu,i=e(),s=n(await(0,I.sC)(i,t.getVisitorId())),a=(0,b.tP)(t.getCampaignHistory(),s);await(0,b.Mm)(t,s,a)})(t),function(t){const e=(0,c.iN)();e&&(0,it.L)(t)(e)}(t),(0,O.Q)(()=>{(()=>{{const t=(0,Q.De)(),e=St.some(e=>t.includes(e)),n=t.includes("localhost")||"null"===t,i=t.includes(".");!e&&!n&&i&&(0,wt.r)(1e5)&&(new y.n).setInternalHit(v.YQ.usage,{cv:{selfHost:"true",tagOrigin:t}})}})(),(new P.k).dispatchCustomEvent(S.u.Name.tagContentExecuted),ft()})}const Et="ABTastyOptout",kt=()=>h()?p:function(){const t=(0,a.Zo)(window.location.href,!0);return t.ab_project&&["preview","variation-preview"].includes(t.ab_project)}()?f:Tt,_t=()=>!!h()||!window.ABTasty.started&&!(()=>{if((0,s.G1)())return!0;const{abtastyeditorlock:t,abtastyoptout:e}=(0,a.oE)();let n=!1;try{n=!(0,r.g)(t)||!(0,r.g)(window.top?.ABTASTY_S)}catch(t){}return(0,r.g)(e)?Boolean(i.A.get(Et))||n:(i.A.set(Et,"1",(0,w.jS)(388)),!0)})(),Ot=()=>window.lockABTastyTag||!1,Dt=["localhost","127.0.0.1"],Nt=(t=window.location.host)=>{const e=(0,a.NU)(t);return Dt.some(t=>e.includes(t))},Bt=(t,e=window.location.host)=>t.filter(t=>(0,a.yq)(t,e));const Pt=()=>{const{authorizedDomains:t=[]}=(0,c.F5)(),e=Bt(t).length>0,n=Nt()||e;if(!n&&t.length>0){const e=new d.E;return!e.checkHitHistorySession(u._V.TROUBLESHOOT,"domainNotAuthorized")&&(0,wt.r)(1e4)&&(0,ut.pK)(E.H_,()=>function(t,e){const n={cv:{detectedDomain:`${window.location.origin.replace(/^https?:\/\//,"")}`,expectedDomain:`${t.slice(0,5).join(",").concat(t.length>5?",...":"").toString()}`}};(new y.n).setInternalHit(v.YQ.usage,n),e.setHitHistorySession(u._V.TROUBLESHOOT,"domainNotAuthorized")}(t,e)),(0,o.FF)("Domain restriction configuration: the current domain is not matching with the domain set in the account configuration. Please check your settings to avoid any service disruption in the future."),!0}return n}},9225:(t,e,n)=>{"use strict";n.d(e,{Hu:()=>it,FJ:()=>nt,me:()=>X,iE:()=>et});var i=n(977),s=n(9578),a=n(81),o=n(3340),r=n(1134),c=n(9076),d=n(3595),u=n(8689),l=n(6914),g=n(721);const m=(0,g.c)((t,e)=>e.map(e=>e[t])),h=(0,g.c)((t,e,n)=>n[t]===e),p=(0,g.c)((t,e)=>{const n={};for(const i in e)t(e[i],i,e)&&(n[i]=e[i]);return n}),f=(0,g.c)((t,e)=>Object.keys(e).reduce((n,i)=>(n[i]=t(e[i],i,e),n),{}));var y=n(648),v=n(7765);const w=["addCSS","addImage","addLink","addParagraph","addHTML","changeImage","changeSvgImage","changeLink","copy","copyAfter","copyBefore","cut","cutAfter","cutBefore","editAttributes","editHtml","editPicture","editText","editDirect","hideContent","sort","editStyleCSS","hideByClassCSS","hideCSS"];var S=n(7550),A=n(1387),T=n(6804),b=n(5974);n(6361);const I=(0,b._)().then(t=>t?.start),C=["editStyleCSS","sort","changeLink","addLink","editAttributes","addCSS","editPicture"],E=t=>t.filter(({type:t,value:e})=>w.includes(t)&&null!=e).map(t=>{const e=t;return C.includes(t.type)&&"string"==typeof t.value&&(e.value=(t=>{try{return JSON.parse(t)}catch(e){return t}})(t.value)),e}),k=async(t,e,n,i,s,a)=>{(0,u.I)(s)||await(0,A.K6)(s,e,n)},_=async(t,e=null,n=void 0,i=void 0,s=void 0,a=!0,o,r=!1)=>{if(o?.aborted)return void(0,y.NI)(`Campaign instance is outdated. Campaign ${n}`);if((0,d.g)(t))return;const c="string"==typeof e&&""!==e;let u=document,l=e;if(c&&e.includes("[]")){const t=e.split("[]").map(t=>t.trim()),[n,i,s]=t;u=document.querySelector(n)?.[i],u&&(l=s)}c&&u&&Boolean(u.querySelector(l))?await k(0,n,i,0,t):c?setTimeout(async()=>await _(t,e,n,i,s,a,o,r),50):a?(0,S.Q)(async()=>{o?.aborted?(0,y.NI)(`Campaign instance is outdated. Campaign ${n}`):await k(0,n,i,0,t)}):await k(0,n,i,0,t)},O=async(t,e,n,i,s,a=!1)=>{const o=await I,r=E(t);r.length>0&&o&&o(r);const c=(t=>t.filter(({type:t})=>-1===w.indexOf(t)))(t);c.length>0&&await Promise.all(c.map(async t=>{const{type:o}=t;["customScriptNew","changeWithAI"].includes(o)?await _(t.oldValue,t.selector,e,n,t.id,i,s,a):/plugin_/.test(o)&&(0,y.FF)("Ignoring old plugin modification.")}))};class D{constructor(t,{id:e,name:n,traffic:i,modifications:s,widgets:a,components:o,redirections:r},c,d){this.testId=t,this.id=e,this.name=n,this.traffic=i,this.modifications=s,this.codeOnDomReady=c,this.widgets=a,this.components=o,this.redirections=r,this.isDeferred=d}async apply(t){(0,y.fH)(`applying modifications (campaign ${this.testId} - variation ${this.id})`,this.modifications),!(0,d.g)(this.redirections)&&this.redirections.length>0?(0,v.oT)(this.redirections,this.testId,this.id):((0,d.g)(this.modifications)||O(this.modifications,this.testId,this.id,this.codeOnDomReady,t,this.isDeferred),["widgets","components"].forEach(async(t,e)=>{(0,d.g)(this[t])}))}}var N=n(6381);n(3002);const B={};const P=async(t,e,i)=>{(0,y.fH)(`applying analytics (campaign ${e.campaignId})`),(0,d.g)(t)||(async(t,e)=>{t.forEach(({name:t,wave:n,tracker:i,implementation:s,functionName:a})=>{const o=B[t];o?o(e,n,i,s,a):(0,y.FF)("Analytics tool is not supported by AB Tasty: ",t,`(for campaign ${e.campaignId})`)})})(t,e),(0,d.g)(i)||(async(t,e)=>{await Promise.all(t.map(async({id:t})=>{await n(4854)(`./${a.Q$.customAnalytics}${t}.js`).then(({code:t})=>{(0,T.F)(t,{campaign:e.campaignId},{campaignData:{...e,campaignId:e.campaignId.toString(),variationId:e.variationId.toString()}})})}))})(i,e)};var $=n(3026),V=n(7643),R=n(6046),L=n(1492),x=n(3308),j=n(4721),H=n(3346),M=n(7426),F=n(3847);const U="_taginfo";var G=n(9906),q=n(8009),W=n(5066),K=n(9825);var Y=n(9467),J=n(20),Q=n(9498),z=n(6259);let X=function(t){return t[t.Original=0]="Original",t[t.Untracked=-1]="Untracked",t[t.Timeout=-2]="Timeout",t}({});const Z={id:0,name:"Original",masterVariationId:0},tt={},et=t=>tt[t],nt=[o.B.checking,o.B.waitingForSubsegmentCheck,o.B.pending,o.B.waitingCodeResolution];class it{abortController=new AbortController;constructor(t){const{id:e}=t;if(et(e))return et(e);this.data=t,this.forceUntracking=!1,this.rejectedByM2E=!1,tt[e]=this,this.initPublicData(),this.hasBeenChecked=this.memoizeHasBeenChecked()}static resetCampaigns(){Object.keys(tt).forEach(t=>{const e=et(Number(t));e.abortController.abort("Campaign has been reset."),e.chosenVariation=null,e.updatePublicData({id:null,name:null}),e.setStatus(o.B.pending),e.data.audienceTrigger&&(0,G.II)(e.data.audienceTrigger),e.data.audienceSegment&&(0,G.II)(e.data.audienceSegment),e.rejectedByM2E=!1,delete tt[t]})}getType(){return this.data.type}getSubType(){if(this.isMultipageChild())return i.qA.multipageTest;if(this.isMultivariateChild())return i.qA.multivariate;if(this.isPersonalisationChild()){const t=it.instantiate(this.data.parentID);return!!t&&t.data.sub_type||i.cz.subsegment}return this.isAA()?i.cz.aa:this.data.sub_type||i.cz.ab}getAdditionalType(){return this.data.additionalType||null}getConsentType(){return this.getAdditionalType()?this.getAdditionalType():this.isPersonalisation()||this.isPersonalisationChild()?"perso":this.isAA()?"aa":this.isMultipagePatch()?"patch":"test"}getChildren(){return this.data.children||[]}getId(){return this.data.id}getName(){return this.data.name}getChosenVariation(){return this.chosenVariation}static instantiate(t){const e=it.getCampaignData(t);if(e)return new it(e)}static getActiveCampaigns(t=null){return(0,c.F)(p(({status:e,variationID:n},i)=>(null!==t&&t===Number(i)||null===t)&&[o.B.accepted,o.B.acceptedByRedirection,o.B.forceAccepted].includes(e)&&null!==n&&n!==X.Untracked),f((t,e)=>({...t,testDatas:et(e).data})))(window.ABTasty.results)}static getCampaignData(t){return(0,r.yn)().tests[t]}static getCampaignsDatas(t){const e=t||(0,r.yn)(),{global:n,...i}=e.tests;return Object.values(i)}static sortCampaignsParentsByPrioASC(t,e=!0){return t.sort((t,e)=>Number(t.priority)-Number(e.priority)).reduce((t,n)=>{const{priority:i,parentID:s}=n,a=0!==s,r=it.instantiate(n.id);if(a)return r.isPersonalisationChild()&&e&&r.setStatus(o.B.notPrioritizedYet),t;r.isPersonalisation()&&e&&r.setStatus(o.B.notChecked);const c=void 0!==t[i]?[...t[i],n]:[n];return{...t,[i]:c}},{})}static getGlobalCampaignsInfos(t){const e=t||(0,r.yn)(),{global:n}=e.tests;return n}static getParentCampaignsIDs=t=>(0,c.F)((0,l.p)(h("parentID",0)),m("id"))(t);static getCampaignsSortedByPrio=(t,e=!0)=>it.sortCampaignsParentsByPrioASC(t,e);static filterCampaignByPrio=(t,e)=>t[e];getVariation(t){return t===X.Original?Z:this.data.variations[t]}getVariationInfoByMasterId(t){return this.isAsync()?Object.values(this.data.asyncVariationInfoById).find(e=>this.data.variations[e.id].masterVariationId===t):Object.values(this.data.variations).find(e=>e.masterVariationId===t)}getMasterVariationId(t){return this.getVariation(t).masterVariationId}getParent(){const t=it.getCampaignData(this.data.parentID);return new it(t)}getParentId(){return this.getParent().data.id}getParentName(){return this.getParent().data.name}getStatus(){return this.data.status||o.B.pending}getAbortSignal(){return this.abortController.signal}getSeenBrothers(t){const{parentID:e,siblings:n}=this.data;return 0===e||null==n||0===n.length?null:n.map(e=>{const n=t.getCampaign(e);return n?{campaignId:e,...n}:null}).filter(t=>!(0,d.g)(t))}setStatus(t){this.data.status=t,(0,d.g)(window.ABTasty.results[this.data.id])&&this.initPublicData(),this.hasBeenCheckedResolve&&!nt.includes(t)&&this.hasBeenCheckedResolve(t),window.ABTasty.results[this.data.id].status=t}setRejectedByM2E(t){this.rejectedByM2E=t}memoizeHasBeenChecked(){let t=null;return()=>t||(t=new Promise(t=>{this.hasBeenCheckedResolve=t}),t)}isRejectedByM2E(){return this.rejectedByM2E}isAA(t,e){return(t||this.data.type)===i.cz.aa||(e||this.getAdditionalType())===i.JP.aaTest}isContainer(){return[i.cz.multipage,i.cz.multivariate,i.cz.mastersegment].includes(this.data.type)}isChild(){return this.isMultipageChild()||this.isMultivariateChild()||this.isPersonalisationChild()}isMultivariate(){return this.data.type===i.cz.multivariate}isMultipage(){return this.data.type===i.cz.multipage}isMultipagePatch(t,e){return(t||this.data.type)===i.cz.multipage&&(e||this.data.sub_type)===i.qA.patch}isPersonalisation(){return this.data.type===i.cz.mastersegment}isPatch(t,e){return(t||this.data.sub_type)===i.qA.patch||(e||this.data.additionalType)===i.JP.patch}isMultivariateChild(){if(0===this.data.parentID)return!1;return it.instantiate(this.data.parentID).isMultivariate()}isMultipageChild(){if(0===this.data.parentID)return!1;return it.instantiate(this.data.parentID).isMultipage()}isPersonalisationChild(){if(0===this.data.parentID)return!1;return it.instantiate(this.data.parentID).isPersonalisation()}isDynamicAllocation(){return null!=this.data.dynamicTrafficGoalId&&""!==this.data.dynamicTrafficGoalId}isUsingHashAllocation(){return this.isChild()?this.getParent()?.data.isHashAllocationEnabled:this.data.isHashAllocationEnabled}getDynamicAllocationProperties(){return{isDynamic:this.isDynamicAllocation(),testedTraffic:this.data.dynamicTestedTraffic,modulation:this.data.dynamicTrafficModulation}}getTargetingDisplayFrequency(){const t={type:this.data.displayFrequencyType};return this.data.displayFrequencyUnit&&(t.unit=this.data.displayFrequencyUnit),this.data.displayFrequencyUnit&&(t.value=this.data.displayFrequencyValue),t}isAsync(){return this.data.isAsync||!1}isTargetByEvent(){return Boolean(this.data.scopes.urlScope?.find(({value:t})=>t===j.Is))}isUsingCodeOnDomReady(){return this.isChild()?it.instantiate(this.data.parentID).data.codeOnDomReady:this.data.codeOnDomReady}alreadySeenOneTest=t=>e=>{const n=(0,r.m_)(e);if((0,d.g)(n))return!1;const i=t.getCampaigns();return Object.entries(i).some(([t,i])=>{const s=(0,r.m_)(Number(t));if((0,d.g)(s))return!1;const a=i.variationID===X.Untracked,o=["mastersegment","subsegment"].includes(s.type),c=this.isPatch(s.sub_type,s.additionalType)||this.isMultipagePatch(s.type,s.sub_type),u=this.isAA(s.type,s.additionalType),l=(n.siblings||[]).indexOf(Number(t))>=0,g=(n.children||[]).indexOf(Number(t))>=0,m=Number(t)===e;return!(o||c||u||l||g||m||a)})};initPublicData(){const{id:t,name:e,type:n,status:i}=this.data,s={name:e,type:n,sub_type:this.getSubType(),additional_type:this.getAdditionalType(),status:i,variationID:this.chosenVariation,variationName:null,targetings:{[j.vw]:{},[j.l$]:{}}};window.ABTasty.results&&(window.ABTasty.results[t]=window.ABTasty.results[t]??s)}static updatePublicTargetingData(t,e,n,i=j.fS,s=null,a,o){const r=window.ABTasty.results[t];if(void 0===r||!e)return;let c=r.targetings[i];if([j.ih,j.fh].indexOf(i)>-1){c=c||[];const t={success:n,conditions:e.conditions,targeting_type:e.targeting_type,operator:e.operator,name:Object.keys(x).find(t=>x[t]===e.targeting_type),group:s,audiencePosition:a,audienceName:o};c=c.filter(e=>e.targeting_type!==t.targeting_type||e.group!==t.group||e.audiencePosition!==t.audiencePosition),c.push(t),c.sort((t,e)=>t.audiencePosition-e.audiencePosition)}else c=c||{},c[e.targeting_type]={...c[e.targeting_type],conditions:e.conditions,success:n},i===j.fS&&(c[e.targeting_type]={...c[e.targeting_type],operator:e.operator,name:Object.keys(x).find(t=>x[t]===e.targeting_type)});r.targetings[i]=c,window.ABTasty.results[t]=r}static updatePublicTargetingAudienceMode(t){const e=t.id,n=window.ABTasty.results[e];t&&e&&(n[j.xu]=t.segmentMode,n[j.Mz]=t.triggerMode),window.ABTasty.results[e]=n}updatePublicData({id:t,name:e}){window.ABTasty.results[this.data.id].variationID=t,window.ABTasty.results[this.data.id].variationName=e}hasSeenMaster(t){const{parentID:e}=this.data;return 0===e?null:!(0,d.g)(t.getCampaign(e))}hasBrotherAlreadyStarted(){const{parentID:t,siblings:e}=this.data;return 0!==t&&(null!=e&&0!==e.length&&e.some(t=>it.instantiate(t).getStatus()===o.B.accepted))}hasAlreadySeenBrothers(t){const e=this.getSeenBrothers(t);return!(0,d.g)(e)&&!(0,u.I)(e)}isCheckingOtherCampaigns(){if(this.isPersonalisation()||this.isPersonalisationChild())return!1;return it.getCampaignsDatas().filter(({id:t})=>{const e=et(t);return t!==this.data.id&&!(0,d.g)(e)&&(!(e.isPersonalisation()||e.isMultipage()||e.isMultivariate())&&t!==this.data.id&&e.getStatus()===o.B.checking)}).length>0}isOneVisitorOneTestDone(t){const{oneVisitorOneTest:e}=(0,r.F5)(),{id:n,type:s,parentID:a}=this.data;if(e&&s!==i.cz.subsegment&&!this.isPatch()&&!this.isAA()){let e=n;return s===i.cz.ab&&this.isMultipageChild()&&(e=a),this.alreadySeenOneTest(t)(e)}return!1}static abTastyStartTest=t=>async(e,n=null)=>{const i=et(e);if(void 0!==i){if(i&&(0,Q.KK)(i.data))return void(0,y.FF)(`the campaign ${e} hasn't been executed through ABTastyStartTest() method since it's part of an exclusion group`);if(n===X.Untracked)return void i.setStatus(o.B.traffic);if(n===X.Timeout)return void i.setStatus(o.B.timeout);const s=t.getCampaign(e);if(!(0,d.g)(n)&&(0,d.g)(s)){i.isUsingHashAllocation()?(0,z.L)(e,n):t.campaignView(e,n,o.B.accepted,!0)}await i.executeCampaign(t)}};async updateCampaign(t,e){if(!this.isAsync()||t===X.Timeout||t===X.Untracked)return;const n=await Promise.all(e.map(async t=>await async function(t,e,n){const i=`${(0,F.x)()}/${(0,r.pw)()}/${t}.${e}.json?${n}`;let s=!1;const a=(()=>{try{return new AbortController}catch(t){(0,y.FF)("Cannot create AbortController",t)}})(),o=setTimeout(()=>{s||(a?.abort(),(0,y.FF)(`Modifications can't be fetched for ${t}`))},3e3);return(0,M.Dk)(`modifiationsFetchLoop_${t}`,o),(0,H.J)(i,{signal:a?.signal}).then(t=>t.json()).then(t=>(clearTimeout(o),t&&t[U]&&delete t[U],s=!0,[t,null])).catch(t=>(clearTimeout(o),[null,t]))}(this.data.id,Number(t),this.data.campaignHash))),i=n.map(([t])=>t),s=n.map(([,t])=>t),a=i.find(e=>e?.id===t);s.every(t=>null===t)?(0,u.I)(a)||(this.data.variations={[t]:a}):s.some(t=>"AbortError"===t?.name)?this.setStatus(o.B.timeout):this.forceUntracking=!0}sendExecutedCampaignEvent(t){(new N.k).dispatchCustomEvent(s.u.Name.executedCampaign,{campaignId:this.data.id,variationId:this.getVariation(t).id,status:this.getStatus(),type:this.getSubType()})}async applyGlobalCode(t=void 0,e,n,i){(0,y.NI)(`Executing campaign ${e} JavaScript code.`);const s=async()=>{if(this.getAbortSignal().aborted)return(0,y.NI)(`Campaign instance is outdated. Campaign ${e}`),!1;(0,d.g)(t)||(0,u.I)(t)||(0,A.K6)(t,e,n)};i?(0,S.Q)(async()=>await s()):await s()}async executeCampaign(t,e=!1){if(this.getAbortSignal().aborted)return(0,y.NI)(`Campaign instance is outdated. Campaign ${this.getId()}`),!1;const n=t.getVisitorId(),i=this.data.id,a=this.data.parentID,r=t.getCampaign(i);let c=await(0,W.h)(this,n,t,r,a,(0,v.sw)(this.getId()));const u=c===X.Untracked,l=e&&u;return l&&(c=Number(this.data.asyncVariationInfoById?Object.keys(this.data.asyncVariationInfoById)[0]:Object.keys(this.data.variations)[0])),this.updateCampaign(c,this.data.asyncVariationInfoById?Object.keys(this.data.asyncVariationInfoById):[]).then(async()=>{const{id:n,parentID:i,status:a,name:r,variations:g,globalCode:m,widgets:h,analytics:p,customAnalytics:f,actionTrackings:w}=this.data;if(this.getAbortSignal().aborted)return(0,y.NI)(`Campaign instance is outdated. Campaign ${n}`),!1;a===o.B.timeout?c=X.Timeout:this.forceUntracking&&this.isAsync()?(c=X.Timeout,this.setStatus(o.B.failedLoading)):(0,v.sw)(n)?this.setStatus(o.B.acceptedByRedirection):e?this.setStatus(o.B.forceAccepted):this.setStatus(o.B.accepted),this.isDynamicAllocation()&&this.isUsingHashAllocation()&&(0,J.ws)(n,c),(0,y.fH)("Campaign Viewed =",n,c),t.campaignView(n,c,this.data.status,!this.isUsingHashAllocation());const A=this.isUsingCodeOnDomReady(),T=c===X.Timeout,b=g?.[c]||c===X.Original;if(!l&&(T||u||!b))return this.forceUntracking&&c===X.Timeout?(this.setStatus(o.B.failedLoading),!1):c===X.Timeout?(this.setStatus(o.B.timeout),!1):(this.setStatus(o.B.traffic),!1);{const e={caid:String(n),vaid:String(c)};if((0,Y.d)(t.getCurrentSessionTimestamp(),this.getId()))(0,R.I)().then(t=>{if(this.getAbortSignal().aborted)return(0,y.NI)(`Campaign instance is outdated. Campaign ${n}`),!1;t?.notifyHit(L.YQ.campaign,e,Date.now())});else{(new V.n).setInternalHit(L.YQ.campaign,e)}A||this.applyGlobalCode(m,this.getId(),c,!1),c===X.Original||(0,v.sw)(n)||(this.chosenVariation=new D(n,g[c],A,this.isAsync()),await this.chosenVariation.apply(this.getAbortSignal())),(0,S.Q)(async()=>{if(this.getAbortSignal().aborted)return(0,y.NI)(`Campaign instance is outdated. Campaign ${n}`),!1;A&&this.applyGlobalCode(m,this.getId(),c,!0),w&&((0,d.g)(w)||(0,$.L)(t)(w,n));const e=this.getVariation(c),i=this.isChild()?this.getParent().data.analytics:void 0,a=!(0,d.g)(i)&&i.length>0?i:p;if(!(0,d.g)(a)||!(0,d.g)(f)){const t={campaignName:r,campaignId:n,variationName:e.name,variationId:e.id},i=()=>{(new q.NO).haveConsent([q.rv.collect])?P(a,t,f):window.addEventListener(`abtasty_${s.u.Name.consentValid}`,t=>{const{detail:e}=t;e&&e.consentFor.includes(q.rv.collect)&&i()})};(0,v.oi)()||i()}return this.updatePublicData(e),(0,v.oi)()||(0,Y.H)(t,this.getId()),this.sendExecutedCampaignEvent(c),!0})}})}async apply(t){const{id:e}=this.data;let n=!1;if((0,v.sw)(e))return this.executeCampaign(t),!0;const s=(0,G.S5)(t,this);return await Promise.race([s,new Promise(t=>setTimeout(()=>{n=!0,t(!1)},j.nc))])&&this.getStatus()!==o.B.forceAccepted?(await this.executeCampaign(t),!0):(n&&s.then(e=>{if((t=>e=>{const{id:n,type:s}=e.data;if(e.getAbortSignal().aborted)return(0,y.NI)(`Campaign instance is outdated. Campaign ${n}`),!1;if(s===i.cz.subsegment&&e.hasBrotherAlreadyStarted())return e.setStatus(o.B.otherSubsegment),!1;if(e.isOneVisitorOneTestDone(t))return e.setStatus(o.B.oneVisitorOneTest),!1;const a=e.isChild()?e.getParent().data.priority:e.data.priority;return!(a>0&&(0,K.nU)([a]).length>0&&(e.setStatus(o.B.notPrioritizedYet),1))})(t)(this)&&e)return this.executeCampaign(t)}),!1)}}},9404:(t,e,n)=>{"use strict";n.d(e,{IF:()=>a,pK:()=>s});const i={},s=(t,e)=>{i[t]?i[t].push(e):i[t]=[e]},a=t=>{i[t]&&(i[t].forEach(t=>t()),delete i[t])}},9467:(t,e,n)=>{"use strict";n.d(e,{H:()=>o,d:()=>a});var i=n(2492),s=n(8445);const a=(t,e)=>{const n=new i.E;return n.getHitHistorySessionCst()===t?n.checkHitHistorySession(s._V.CAMPAIGNS,e):(n.cleanHitHistorySession(s._V.CAMPAIGNS),n.cleanHitHistorySession(s._V.CURRENT_SESSION_TIMESTAMP),!1)},o=(t,e)=>(new i.E).setHitHistorySession(s._V.CAMPAIGNS,e,t.getCurrentSessionTimestamp())},9498:(t,e,n)=>{"use strict";n.d(e,{KK:()=>l,sC:()=>d});var i=n(6552),s=n(3340),a=n(7725),o=n(2484),r=n(3595),c=n(9225);const d=async(t,e)=>{const n=[],i=(0,a.vm)(),d=i?JSON.parse(o.Ks.getItem(o.b1,"ABTastyForcedM2eCampaigns")||"{}"):{},m=t.reduce((t,e,n)=>(0!==e.parentID&&(t[e.parentID]?t[e.parentID].push(n):t[e.parentID]=[n]),{...t}),{}),h=e=>{m[e]?.forEach(e=>n.push(t[e]))};for(const a of t)if(!u(a))if(l(a))if(i&&!(0,r.g)(d[a.exclusionGroupId])){if(d[a.exclusionGroupId]!==a.id){c.Hu.instantiate(a.id).setRejectedByM2E(!0)}n.push(a),h(a.id)}else{const[t,o]=[a.m2eStartRange,a.m2eStartRange+a.m2eCoefficient],r=await g(a.exclusionGroupId,e);if(r>=t&&r<=o)n.push(a),h(a.id);else{const t=c.Hu.instantiate(a.id);t.setRejectedByM2E(!0),i?(n.push(a),h(a.id)):t.setStatus(s.B.exclusionGroupRejected)}}else n.push(a),h(a.id);return n},u=t=>0!==t.parentID,l=t=>!!t?.exclusionGroupId,g=(t,e)=>(0,i.w)(`${t}.${e}`)},9578:(t,e,n)=>{"use strict";let i;n.d(e,{u:()=>i}),function(t){let e=function(t){return t.consentValid="consentValid",t.executedCampaign="executedCampaign",t.tagContentExecuted="tagContentExecuted",t.trackingInitialized="trackingInitialized",t.identityAdded="identityAdded",t.analyticsLoaded="analyticsLoaded",t.recosLoaded="recosLoaded",t}({});t.Name=e;let n=function(t){return t.loading="loading",t.complete="complete",t}({});t.Status=n}(i||(i={}))},9700:(t,e,n)=>{"use strict";n.d(e,{a2:()=>a,hw:()=>r,qF:()=>o});var i=n(4423),s=n(3595);function a(t){let e,n=t;return(0,s.g)(t)&&t.indexOf(":eq")>-1&&(n=t.replace(/html:eq\([0-9]+\)/g,"html"),n.match(/:eq\([0-9]+\)/g).forEach(t=>{e=Number(t.replace(":eq(","").replace(")",""))+1,n=n.replace(t,`:nth-of-type(${e})`)})),n}function o(t){if(void 0===t)return;const e=t.split(".");return 256*(256*(256*+e[0]+ +e[1])+ +e[2])+ +e[3]}function r(t=8){return(0,i.d_)("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t)()}},9825:(t,e,n)=>{"use strict";n.d(e,{Mm:()=>m,nU:()=>l,tP:()=>g});var i=n(977),s=n(9225),a=n(648),o=n(9578),r=n(8009);const c=t=>async(e,n,i)=>{e.setStatus(i);const s=i=>{const{detail:c}=i;e.getAbortSignal().aborted?(window.removeEventListener(`abtasty_${o.u.Name.consentValid}`,s),(0,a.NI)(`Campaign instance is outdated. Campaign ${e.getId()}`)):c&&c.consentFor.includes(r.rv[n])&&(window.removeEventListener(`abtasty_${o.u.Name.consentValid}`,s),t())};return window.addEventListener(`abtasty_${o.u.Name.consentValid}`,s),!1};n(7405);var d=n(3340);const u=t=>async e=>{(0,a.fH)(`Starting ${e.length} campaigns: ${e}`);const i=e.map(s.Hu.instantiate);Promise.resolve().then(n.bind(n,4349)).then(e=>{e.addCheckTargetingListener(t)});const o=i.reduce((e,n)=>{if(n.isContainer()){n.setStatus(d.B.notChecked);const i=n.getChildren().map(s.Hu.instantiate).map(e=>{const n=()=>e.apply(t);return(0,r.Vn)(e.getConsentType())?((0,a.fH)("----- child campaign::",e.getType()),e.apply(t)):c(n)(e,e.getConsentType(),d.B.consent)});return[...e,...i]}{const i=()=>n.apply(t);return(0,r.Vn)(n.getConsentType())?((0,a.fH)("campaign::",n),[...e,n.apply(t)]):[...e,c(i)(n,n.getConsentType(),d.B.consent)]}},[]);return Promise.all(o).then(t=>t.some(t=>!!t))},l=t=>{const e=s.Hu.getCampaignsDatas(),n=s.Hu.getActiveCampaigns();return Object.values(n).filter(n=>{const i=n.testDatas.parentID>0?e.find(({id:t})=>t===n.testDatas.parentID)?.priority||0:n.testDatas.priority;return 0!==i&&!t?.includes(i)})};function g(t,e){const n=Object.keys(t);return Object.keys(e).sort((t,e)=>Number(t)-Number(e)).reduce((t,s)=>{if("0"===s)return t;const a=e[Number(s)].reduce((t,e)=>{const s=e.children;if(s){const a=s.some(t=>n.includes(t.toString())&&e.sub_type&&[i.qA.multipagePersonalization,i.qA.multiexperiencePersonalization].includes(e.sub_type));return a?[...t,e.id]:t}return t},[]);return a.length&&t.set(Number(s),a),t},new Map)}const m=async(t,e,n=new Map)=>{const i=[];if(n.size)for(const[e,s]of n){if(await u(t)(s)){i.push(...s);break}}for(const[n,s]of Object.entries(e)){const e=s.map(t=>t.id);if("0"===n)await u(t)([...e]);else{const n=await u(t)(e),s=e.length>0&&n;if(i.length&&i.some(t=>e.includes(t)))break;if(s)break}}}},9906:(t,e,n)=>{"use strict";n.d(e,{Zo:()=>rt,E2:()=>Q,S5:()=>z,Ux:()=>st,z1:()=>it,PG:()=>Z,Q$:()=>et,recheckTargetingByHit:()=>c,AG:()=>tt,II:()=>at,uG:()=>ot,_S:()=>ft,xs:()=>pt});var i=n(3308),s=n(3595),a=n(4349),o=n(9225);const r=(t,e,n)=>n.filter(({id:n,audienceTrigger:i,audienceSegment:r})=>{const c=(0,o.iE)(n);return!(!c||!a.allowedStatus.includes(c.getStatus()))&&("segment"===e&&!(0,s.g)(r)&&Array.isArray(r)?rt(r,t):!("trigger"!==e||(0,s.g)(i)||!Array.isArray(i))&&rt(i,t))}).map(({id:t})=>t),c=(t,e)=>{const n=o.Hu.getCampaignsDatas(),s=[];switch(t.toUpperCase()){case"EVENT":const{ec:t}=e;"eco"===t?s.push(...r(i.ECOMMERCE_VARIABLE,"trigger",n)):"Action Tracking"===t&&s.push(...r(i.ACTION_TRACKING,"segment",n));break;case"CAMPAIGN":s.push(...r(i.CAMPAIGN_EXPOSITION,"segment",n));break;case"TRANSACTION":case"ITEM":s.push(...r(i.LAST_PURCHASE,"segment",n)),s.push(...r(i.PURCHASE_FREQUENCY,"segment",n));break;case"SEGMENT":s.push(...r(i.CUSTOM_VARIABLE,"segment",n)),s.push(...r(i.PROVIDERS,"segment",n))}s.forEach(t=>{const e=new CustomEvent(a.checkTargetingEventName,{detail:{campaignId:t,shouldCheckAll:!0,withUrl:!0}});window.dispatchEvent(e)})};var d=n(648),u=n(1134),l=n(7405),g=n(5437),m=n(642);const h={[m.UT]:"equals",[m.sz]:"contains",[m.Wm]:"regexp",[m.W8]:"ignore_parameters"};function p({value:t,condition:e}){return(0,g.wM)(h[e],t)}n(81);var f=n(3340),y=n(1387),v=n(6804);var w=n(6729),S=n(9700);async function A({value:t,include:e},i=!1,s){const a=(0,w.W)();let o=(0,S.a2)(t),r=document;const c=t.includes("[]");if(c){const e=t.split("[]").map(t=>t.trim()),[n,i,s]=e,a=(0,S.a2)(n),c=document.querySelector(a)?.[i];c&&(r=c,o=(0,S.a2)(s))}return a.then(async e=>void 0===e||c?Promise.resolve(Boolean(r.querySelector(o))):(await e(t).promise()).length>0).then(async a=>{const o=e?a:!a;return i&&s&&!o&&Promise.all([Promise.resolve().then(n.bind(n,4349)),Promise.resolve().then(n.bind(n,8318))]).then(([n,i])=>{i.addObservance(r,t,e,()=>{const t={campaignId:s},e=new CustomEvent(n.checkTargetingEventName,{detail:t});window.dispatchEvent(e)})}),o})}async function T(t,e,n){try{const i=await async function(t,e,n){return Promise.all(t.reduce((t,{value:i,include:s})=>{if(i.includes("[]")){const a=i.split("[]").map(t=>t.trim()),[o]=a;t.push(A({value:o,include:s},e,n))}return t.push(A({value:i,include:s},e,n)),t},[]))}(t,n,e);return i.some(t=>t)}catch(e){const n="Scope error (selector)";return d.vV(n,t),!1}}var b=n(8987);function I({name:t,value:e,include:n}){const i=b.A.get(t);let s=!1;return(i||""===i)&&(s=!0,null!=e&&(s=null!==i.match(new RegExp(e.toString(),"i")))),n?s:!s}function C(t){return void 0!==t.favorite_url_id}function E({url:t,operator:e},n){return(0,g.wM)(e,t,n)}function k({favorite_url_id:t},e){return function(t,e){const n=t.filter(({include:t})=>!t),i=t.filter(({include:t})=>t);return!n.some(t=>E(t,e))&&(!!i.some(t=>E(t,e))||0===i.length)}(e.filter(({favorite_url_id:e})=>e===t))}var _=n(4721),O=n(2484),D=n(8445);const N="abtasty_qa_assistant_campaign_id";function B(t,e){try{const n=(0,o.iE)(e);return((t,e)=>{if(!t)return!1;const n=D.ok.QA_MODE_URL_PARAMETER_CAMPAIGN_IDS,i=O.Ks.getItem(O.b1,n);let s=[];try{s=i?JSON.parse(i):[]}catch(t){d.vV("Cannot parse session storage key:",n,t)}const a=(0,g.Dj)(N)&&Number((0,g.Vf)(N))===e,o=s.includes(e);return a?(o||(s.push(e),O.Ks.setItem(O.b1,n,JSON.stringify(s))),!0):o})(t,n.isChild()?n.getParentId():e)}catch(e){const n="Scope error (QA URL PARAMETER ENABLED)";return d.vV(n,t),!1}}const P=(0,n(721).c)((t,e)=>{const n={};return e.forEach(e=>{const i=t(e);n[i]=n[i]||[],n[i].push(e)}),n});var $=n(1666);const V=t=>({range:e,from:n,to:i})=>e?t>=Number(n)&&t<=Number(i):t===Number(n);const R=t=>t,L={url_scope:{method:t=>Promise.resolve(function(t){try{const e=t.filter(({include:t})=>!t),n=t.filter(({include:t})=>t);return!(e.some(p)||!n.some(p)&&0!==n.length)}catch(e){const n="Scope error (currentUrl)";return d.vV(n,t),!1}}(t)),group:_.vw},favorite_url_scope:{method:t=>Promise.resolve(function({urlScopes:t,favoriteUrlScopeConditions:e}){try{const n=t.filter(({include:t})=>!t),i=t.filter(({include:t})=>t);return!(n.some(t=>C(t)?k(t,e):p(t))||!i.some(t=>C(t)?k(t,e):p(t))&&0!==i.length)}catch(e){const n="Scope error (CurrentFavoriteUrlCondition)";return d.vV(n,t),!1}}(t)),group:_.vw},code_scope:{method:async function(t,e){const n=e=>function(t,e){d.vV("Scope error (code)",e)}(0,t);return Promise.all(t.map(({id:t,value:i,isAsync:s})=>((t,e,n,i)=>async({value:s,isAsync:a})=>{if(a)return i.setStatus(f.B.waitingCodeResolution),new Promise(async(e,i)=>{const a={resolve:e,reject:i};try{n?await n().then(({code:e})=>(0,v.F)(e,{campaign:t},void 0,[a.resolve])).catch(t=>i(t)):await!!(0,y.K6)(s,t,void 0,void 0,a)}catch(t){i(t)}}).then(t=>t).catch(t=>(e(t),!1));try{return n?n().then(({code:e})=>(0,v.F)(e,{campaign:t})).catch(t=>(e(t),!1)):(0,y.K6)(s,t)}catch(t){return e(t),Promise.resolve(!1)}})(e,n,undefined,s?(0,o.iE)(e):void 0)({id:t,value:i,isAsync:s}))).then(t=>t.every(t=>!!t))},group:_.vw},selector_scope:{method:(t,e,n)=>Promise.resolve(T(t,e,n)),group:_.vw},cookie_scope:{method:t=>Promise.resolve(function(t){try{return t.some(I)}catch(e){const n="Scope error (cookie)";return d.vV(n,t),!1}}(t)),group:_.l$},ip_scope:{method:t=>Promise.resolve(function({conditions:t}){try{const{exclusions:e,inclusions:n}=P(({include:t})=>t?"inclusions":"exclusions",t),i=(0,S.qF)((0,$.Tt)());return!(e&&e.some(V(i))||(!n||!n.some(V(i)))&&n)}catch(e){const n="Targeting error (IP)";return d.vV(n,t),!1}}({conditions:t})),group:_.l$},qa_url_parameter_enabled:{method:(t,e)=>Promise.resolve(B(t,e)),group:_.l$}};async function x(t,e,n){const{id:i,mutationObserverEnabled:s}=n,a=L[e].method,r=L[e].group,c=await a(t,i,s);return d.fH("Applying scope",e," for ",n,"result = ",c),o.Hu.updatePublicTargetingData(i,{conditions:t,targeting_type:e},c,r),c}async function j({codeScope:t,selectorScope:e}={},n){const i=[!t?.length||x(t,"code_scope",n).catch(t=>t),!e?.length||x(e,"selector_scope",n).catch(t=>t)];return Promise.all(i).then(t=>t.every(R))}async function H({cookieScope:t,ipScope:e,qaUrlParameterEnabled:n}={},i){const s=[!t?.length||x(t,"cookie_scope",i).catch(t=>t),!e?.length||x(e,"ip_scope",i).catch(t=>t),!n||x(n,"qa_url_parameter_enabled",i).catch(t=>t)];return Promise.all(s).then(t=>t.every(R))}var M=n(7386),F=n(977);const U=t=>(e,{oneVisitorOneTest:n})=>{const{id:i,status:s,type:a}=e.data;return s&&s===f.B.accepted?((0,d.fH)(`campaign:: Campaign ${i} has already been accepted`),!1):s&&s===f.B.checking?((0,d.fH)(`campaign:: Campaign ${i} is already in checking state`),!1):a===F.cz.subsegment&&e.hasBrotherAlreadyStarted()?(e.setStatus(f.B.otherSubsegment),!1):!e.isOneVisitorOneTestDone(t)||(e.setStatus(f.B.oneVisitorOneTest),!1)};var G=n(7725);const q={0:f.B.forceRejected,1:f.B.forceAccepted},W=t=>{const e=O.Ks.getItem(O.b1,D.ok.FORCED_CAMPAIGNS)??"{}";try{const n=((t,e)=>JSON.parse(t)[e])(e,t);if(void 0===n)return;return q[n]}catch(t){(0,d.vV)(`Error occurred retrieving forced campaign status (${t})`)}},K=864e5,Y=t=>{const e=new Date;return e.setUTCHours(t.getUTCHours()),e.setUTCMinutes(t.getUTCMinutes()),e.setUTCSeconds(t.getUTCSeconds()),e.setUTCMilliseconds(t.getUTCMilliseconds()),e},J=(t,e)=>{const n=e.getCampaign(t.data.id);if(!n)return!0;const{lastSessionSeen:i,lastViewTimestamp:s}=n,{type:a,unit:o,value:r}=t.getTargetingDisplayFrequency();switch(a){case F.fH.any:break;case F.fH.once:return!s;case F.fH.oncePerSession:if(s)return i!==e.getNumberOfSessions();case F.fH.regular:if(s)switch(o){case F.Vd.session:return i===e.getNumberOfSessions()||i+r<=e.getNumberOfSessions();case F.Vd.day:return((t,e)=>{const n=new Date(t),i=(Y(n).getTime()-t)/K;return 0===i||i/e>=1})(s,r);case F.Vd.week:return((t,e)=>{const n=new Date(t),i=Y(n);for(;i.getUTCDay()!==n.getUTCDay();)i.setUTCDate(i.getUTCDate()-1);const s=(i.getTime()-t)/K/7;return 0===s||s/e>=1})(s,r)}}return!0},Q=async(t,e=!0,n)=>{const{oneVisitorOneTest:i}=(0,u.F5)();if(e&&!U(t)(n,{oneVisitorOneTest:i}))return!1;n.setStatus(f.B.checking);const s=await(t=>{const{scopes:e}=t.data;return Promise.all([j(e,t.data),H(e,t.data)])})(n);if(s.every(t=>t)){const e=await((t,e)=>{const{audienceTrigger:n,audienceSegment:i,segmentMode:s,triggerMode:a}=e.data;return Promise.all([(0,l.PA)(t)(e.data,a,n).catch(t=>t),(0,l.PA)(t)(e.data,s,i).catch(t=>t)])})(t,n);return e.every(t=>t)?it(n):st(e,[f.B.trigger,f.B.segment],t,n)}return st(s,[f.B.targetPages,f.B.qaMode],t,n)},z=async(t,e)=>{const{oneVisitorOneTest:n,hashMrasnAllowed:i}=(0,u.F5)(),{id:a,audienceTrigger:r,scopes:c}=e.data;if(!(t=>(e,{oneVisitorOneTest:n,hashMrasnAllowed:i})=>e.isTargetByEvent()?(e.setStatus(f.B.targetByEventPending),!1):i||e.getAdditionalType()!==F.JP.redirection?U(t)(e,{oneVisitorOneTest:n}):((0,d.FF)(`campaign:: Campaign ${e.getId()} is a redirection campaign and can't be run due to account settings.`),e.setStatus(f.B.redirectDisallowed),!1))(t)(e,{oneVisitorOneTest:n,hashMrasnAllowed:i}))return!1;if(e.setStatus(f.B.checking),await ft(r),await pt(a),e.isDynamicAllocation())try{await(0,M.zj)()}catch(t){(0,d.FF)(`Allocation fetch failed (campaign ${a} will not be able to run corectly)`)}if(e.isPersonalisationChild()&&e.data.siblings&&e.data.siblings.length>0){e.setStatus(f.B.waitingForSubsegmentCheck);const t=[e.data.id,...e.data.siblings].sort(),n=await(async(t,e)=>{const n=e.map(e=>{const n=(0,o.iE)(e);return t.data.priority>1&&n.data.priority!!t);return Promise.all(n.map(t=>o.FJ.includes(t.getStatus())?t.hasBeenChecked():Promise.resolve(t.getStatus())))})(e,t).then(t=>t.includes(f.B.accepted));if(n)return e.setStatus(f.B.otherSubsegment),!1}const l=void 0!==c&&await async function({urlScope:t,favoriteUrlScope:e,favoriteUrlScopeConditions:n},i){const a=e?.length;if(a){const a=(0,s.g)(t)?e:[...t,...e];return await x({urlScopes:a,favoriteUrlScopeConditions:n},"favorite_url_scope",i)}{const e=await x(t,"url_scope",i);return!t?.length||e}}(c,e.data);if(l){const n=await(async(t,e)=>{if((0,G.vm)()){const n=t.getId(),i=W(n);if(i===f.B.forceAccepted)return await t.executeCampaign(e,!0),(0,d.SW)(`Campaign ${n} is forced accepted`),!0;if(i===f.B.forceRejected)return t.setStatus(i),(0,d.fH)(`Campaign ${n} is forced rejected`),!1}})(e,t);if(void 0!==n)return n}if(e.isRejectedByM2E())return e.setStatus(f.B.exclusionGroupRejected),!1;return!!l&&J(e,t)?Q(t,!1,e):((0,d.fH)("Targeting rejected."),e.setStatus(l?f.B.displayFrequency:f.B.targetPages),!1)};var X=n(6158);const Z=t=>{const e=[...X.H7,...X.uK,...X.Xl];return!(0,s.g)(t)&&e.includes(t)},tt=(()=>{const t={};return(e,n,i=!1)=>{i&&Object.keys(t).forEach(e=>delete t[e]),(0,s.g)(e)||(0,s.g)(n)||(t[`${e}`]?t[`${e}`].push(n):(t[`${e}`]=[n],(e=>{setTimeout(()=>{const n=t[e];delete t[e],n&&n.forEach(t=>t())},e)})(e)))}})(),et=()=>Promise.resolve({});var nt=n(7550);const it=async t=>{const{id:e}=t.data;return t.getAbortSignal().aborted?((0,d.NI)(`Campaign instance is outdated. Campaign ${e}`),!1):((0,d.SW)(`Targeting OK (campaign ${e})`),!0)},st=async(t,e,n,i)=>{if(i.getAbortSignal().aborted)return(0,d.NI)(`Campaign instance is outdated. Campaign ${i.getId()}`),!1;const{audienceTrigger:s,audienceSegment:a,scopes:o}=i.data;[s,a].flat().filter(t=>void 0!==t);if(!(0,nt.Q)())return(0,d.NI)("Targeting waiting for DOM Ready."),i.setStatus(f.B.pending),(0,nt.Q)(async()=>{await Q(n,!0,i)&&await i.executeCampaign(n)}),!1;return(0,d.fH)("Targeting rejected."),t.some((t,n)=>(t||i.setStatus(e[n]),!t)),!1},at=t=>{t.forEach(t=>{t.targeting_groups.forEach(t=>{t.targetings.forEach(t=>{delete t.success})})})},ot=(t,e)=>{t.success=e},rt=(t,e)=>{const n=t?.map(t=>t.targeting_groups).flat();return n&&n.some(t=>t.targetings&&t.targetings.some(t=>t.targeting_type===e))};var ct=n(3656),dt=n(88);const ut="DCInfos",lt={dcInfosWait:{promise:null,resolve:null,reject:null},dcInfosData:null};function gt(){return lt.dcInfosWait.promise}function mt(){try{const t=sessionStorage.getItem(ut);return!(0,s.g)(t)&&t.length>0?JSON.parse(t):window.ABTasty.DCInfos}catch(t){return d.vV("Error parsing dcinfos",t),null}}!function(){const t=lt.dcInfosWait;t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n})}();var ht=n(3002);const pt=async t=>{const e=`fetch failed (campaign ${t} will not be able to be checked)`,n=async(t,n,i)=>{if(t())try{return await n(),!0}catch(t){return(0,d.FF)(`${i} ${e}`),!1}return Promise.resolve(!1)},i=[n(()=>(0,l.mn)(t)&&(0,s.g)(mt()),gt,"DCInfos"),n(()=>(0,l.BA)(t),$.uA,"IP"),n(()=>(0,l.Xp)(t),$.q0,"Geolocation"),n(()=>(0,l.z)(t),async()=>await(0,ht.a)(!0),"Parsed UserAgent")];(0,l.li)(t)&&i.push((0,ct.sb)()),await Promise.all(i)},ft=async t=>{if("boolean"!=typeof window.ABTasty.datalayerEnabled&&t&&rt(t,i.DATALAYER))return await(0,dt.fm)(()=>"boolean"==typeof window.ABTasty.datalayerEnabled)}}}]);