"use strict";(self.webpackChunktag=self.webpackChunktag||[]).push([[153],{206:(e,t,n)=>{n.r(t),n.d(t,{AT_HIT_LABEL:()=>me,aggregateActionTracking:()=>we,dispatchBatch:()=>z,dispatchHit:()=>be,getCurrentScrollPercent:()=>ve,notifyHit:()=>he,setGlobals:()=>qe});var a=n(648),r=n(9578),o=n(8009),i=n(1492);const s="[Hit]";let c=null,l=null,p=[];async function d(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://ariane.abtasty.com";if((new o.NO).haveConsent([o.rv.collect])||function(e){const t=e.h;return!!Array.isArray(t)&&t.some((e=>e.t===i.YQ.consent&&"no"===e.co))}(e))if(t)!function(e,t){navigator.sendBeacon(e,JSON.stringify(t))}(n,e);else{let t={};if(!l)try{l=new AbortController,t={signal:l.signal}}catch(e){a.vV(`${s} cannot create AbortController`,e)}c={args:e,endpoint:n},await fetch(n,{...t,mode:"no-cors",method:"POST",headers:{"Content-type":"text/plain"},cache:"no-store",body:JSON.stringify(e)}).then((()=>{c=null})).catch((e=>{a.vV(`${s} cannot send data to ${n}:`,e)}))}else{if(0===p.length){const e=()=>{p.forEach((e=>{d(e.args,e.sync,e.endpoint)})),p=[]};window.addEventListener(`abtasty_${r.u.Name.consentValid}`,(t=>{const{detail:n}=t;n&&n.consentFor.includes(o.rv.collect)&&e()}))}p.push({args:e,sync:t,endpoint:n})}}function y(e,t,n){a.FF(`${s} incorrect format for '${e}' hit`,...t,n)}var u=n(5437),g=n(7471),m=n(1134),f=n(1873),h=n(7725);function b(e){const t=function(e){const t=(0,m.F5)().toleranceParams;if(!t||!t.length||!e)return e;try{const n=e,a=e.split("?")[0],r=(0,u.Uv)(e);return 0===Object.keys(r).length?n:(t.forEach((e=>{delete r[e]})),`${a}?${Object.keys(r).map((e=>void 0===r[e]?"":`${e}=${r[e]}`)).join("&")}`)}catch(t){return(0,a.FF)("[ABTasty]: Sensitive data restriction can't be applied",t),e}}(e);return function(e){const t=(0,m.F5)().toleranceRegex,n=e;if(!t)return n;try{const e=new RegExp(t).exec(n);if(e)return e.shift(),e.join("")}catch(e){(0,a.FF)(`[ABTasty] The sensitive data regexp "${t}" can't be applied`,e)}return n}(t)}function w(e){const{campaignHistory:t,visitorId:n,currentSessionTimestamp:a,numberOfSessions:r}=e,o=new g.n;let i=o.getReferrer();!i&&o.isItNewSession()&&(i=document.referrer);const s={c:t?.()||{},cid:(0,m.pw)(),vid:n,dr:encodeURIComponent(b(i)),pt:encodeURIComponent(document.title),de:encodeURIComponent(document.characterSet),dl:encodeURIComponent(b(document.location.href)),cst:a,sn:r,lv:(0,f.D0)(),tsv:"4.8.0"};return(0,h.vm)()&&(s.qa=!0),s}var v=n(7643),q=n(7707);let E,T=[];const S=e=>{T.push(e),function(){E&&"number"==typeof E&&clearTimeout(E);E=setTimeout((()=>{z()}),500)}(),JSON.stringify(T).length>=40960&&z()};const z=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=v.n.getCommonDataRefresher();if(t){const n=t();if(!T||!T.length)return void(e&&l&&(l.abort(),c&&d(c.args,!0,c.endpoint)));T.map((e=>{e.qt=Date.now()-e.qt}));const r={...w(n),tv:"latest",tch:(0,q.i)(),h:T,t:i.YQ.batch};d(r,e),(0,a.NI)("A batch hit has been sent. Data:",r),T=[]}else(0,a.FF)("[CollectFacade] common data refresher is not set")};var A=n(3595),C=n(8689);const Q={t:{label:"Hit Type",required:!0,types:[{type:i.qz.String}],allowedValues:Object.values(i.YQ)},ib:{label:"Is a bot",required:!1,types:[{type:i.qz.Boolean}]}};function Y(e,t){const{type:n,condition:a,model:r,allowEmpty:o=!0,strict:s}=t,c=typeof e;switch(n){case i.qz.Boolean:return c===n||!s&&["number","string"].some((e=>e===c))&&[0,1,"true","false","0","1"].includes(e);case i.qz.IntegerArray:return Array.isArray(e)&&(!o&&e.length>0||o)&&e.every((e=>Y(e,{type:i.qz.Integer,condition:a})));case i.qz.Integer:return"boolean"!==c&&!isNaN(e)&&Number(e)%1==0&&(!a||a&&a(Number(e)));case i.qz.FloatArray:return Array.isArray(e)&&(!o&&e.length>0||o)&&e.every((e=>Y(e,{type:i.qz.Float,condition:a})));case i.qz.Float:return"boolean"!==c&&!isNaN(e)&&(!a||a&&a(Number(e)));case i.qz.ArrayArray:return Array.isArray(e)&&(!o&&e.length>0||o)&&e.every((e=>Y(e,{type:i.qz.Array,condition:a})));case i.qz.Array:return Array.isArray(e)&&(!o&&e.length>0||o)&&(!a||a?.(e));case i.qz.ObjectArray:return Array.isArray(e)&&(!o&&e.length>0||o)&&e.every((e=>Y(e,{type:i.qz.Object,model:r,condition:a,allowEmpty:o})));case i.qz.Object:return c===n&&!Array.isArray(e)&&(!(!o&&Object.keys(e).length<=0)&&(!r||Object.entries(e).every((e=>{let[t,n]=e;return Y(t,r.key)&&Y(n,r.value)}))));case i.qz.StringArray:return Array.isArray(e)&&(!o&&e.length>0||o)&&e.every((e=>Y(e,{type:i.qz.String,condition:a})));case i.qz.String:return(c===n||!s&&["number","boolean"].some((e=>e===c))&&!isNaN(e))&&!(0,A.g)(e)&&(!o&&(""+e).length>0||o)&&(!a||a&&a(""+e));default:return c===n}}function I(e,t){const n={...Q,...t};return Object.keys(n).reduce(((t,a)=>{const r=n[a];if(r){const{label:n,required:o,types:i,maxLength:s,allowedValues:c}=r,l=e[a];if(o&&((0,A.g)(l)||(0,C.I)(l)))t.push(`Argument '${a}' (${n}) is missing`);else if(void 0!==l&&i&&i.length>0){const r=i.map((t=>{const r=e[a],o=typeof r;if(!Y(r,t))return`Argument '${a}' (${n}) is of wrong type ${o} (expected ${JSON.stringify(t)})`;switch(t.type.toLowerCase()){case"boolean":e[a]=!["0","false",0,!1].includes(r)&&!!r;break;case"integer":case"float":e[a]=Number(r);break;case"string":!["number","boolean"].some((e=>e===o))||isNaN(r)||void 0===r||(0,A.g)(r)||(e[a]=""+r)}}));r.every((e=>e&&e.length>0))&&r.forEach((e=>t.push(e)))}if(null!=l&&c&&-1===c.indexOf(l)){const e=c.map((e=>`"${e}"`)).join(", ");t.push(`Argument '${a}' (${n}) value is not allowed (expected one of ${e}, received ${l})`)}null!=l&&s&&l.length>s&&t.push(`Argument '${a}' (${n}) is too long (length of ${l.length}, expected ${s})`)}return t}),[])}var k=n(7765);const $=e=>{const t={};(0,k.o9)()&&!(0,A.g)((0,k.kQ)().previousLogicalView)&&(t.pea="INVALIDATE",t.pev=(0,k.kQ)().previousLogicalView);const n={...e,...t,t:i.YQ.pageview},r=function(e){return I(e,{pea:{label:"PostEdit Action",required:!1,types:[{type:i.qz.String,allowEmpty:!1}]},pev:{label:"PostEdit LogicalView",required:!1,types:[{type:i.qz.String,allowEmpty:!1}]}})}(n);r.length?y(i.YQ.pageview,r,n):(S(n),(0,a.NI)("Pageview hit has been aggregated. Data:",n))};const N=e=>{const t=window.ABTasty.results,n=e.caid&&t&&t[e.caid]&&Object.keys(t[e.caid].targetings.qaParameters).length>0||(0,h.vm)(),r={...e,t:i.YQ.campaign};n&&(r.qa=!0);const o=function(e){return I(e,{caid:{label:"Campaign ID",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},vaid:{label:"Variation ID",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]}})}(r);o.length?y(i.YQ.campaign,o,r):(S(r),(0,a.NI)("Campaign hit has been aggregated. Data:",r))};var O=n(6257),D=n(2484),P=n(8445);const x=(e,t)=>e.map((e=>{for(const n in e){if("qt"===n)continue;const a=e[n];(0,A.g)(t[n])||t[n]!=a||delete e[n]}return e})).filter((e=>{const t=Object.keys(e);return!(1===t.length&&"qt"===t[0])}));const F=e=>{const t={...e,t:i.YQ.segment},n=function(e){return I(e,{s:{label:"Segments",required:!0,types:[{type:i.qz.Object,model:{key:{type:i.qz.String},value:{type:i.qz.String}}}]},pa:{label:"Provider",required:!1,types:[{type:i.qz.String,required:!1}]}})}(t);n.length?y(i.YQ.segment,n,t):(Array.isArray(t.s)?t.s.forEach((t=>{const n={...e,t:i.YQ.segment};n.s=t,S(n)})):S(t),function(e){if(!e.s&&"object"!=typeof e.s)return;if(e.pa&&"string"!=typeof e.pa)return;const t=new O.x;let n=t.getSegments()||[];const a=e.pa?{...e.s,pa:e.pa}:e.s;n=x(n,a),t.setSegments([...n,{...a,qt:e.qt}])}(e),(e=>{if(!e.s&&"object"!=typeof e.s)return;if(e.pa&&"string"!=typeof e.pa)return;let t=JSON.parse(D.Ks.getItem(D.b1,P.ok.CUSTOM_SEGMENTS))||[];const n=e.pa?{...e.s,pa:e.pa}:e.s;t=x(t,n),D.Ks.setItem(D.b1,P.ok.CUSTOM_SEGMENTS,JSON.stringify([...t,{...n,qt:e.qt}]))})(e),(0,a.fH)("Segment hit has been aggregated. Data:",t))};n(88);const j=e=>{const t={...e,t:i.YQ.event},n=function(e){return I(e,{ec:{label:"Event Category",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},ea:{label:"Event Action",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},el:{label:"Event Label",required:!1,types:[{type:i.qz.String,allowEmpty:!0}]},ev:{label:"Event Value",required:!1,types:[{type:i.qz.Integer,condition:e=>e>=0}]},caid:{label:"Campaign Id",required:!1,types:[{type:i.qz.String,allowEmpty:!1}]},vaid:{label:"Variation Id",required:!1,types:[{type:i.qz.String,allowEmpty:!1}]}})}(t);if(n.length)y(i.YQ.event,n,t);else{if(S(t),"csat"===t.ec&&t.ev){const e={...t.vaid?{vaid:`${t.vaid}`}:{},...t.caid?{caid:`${t.caid}`}:{},score:t.ev,maxScore:Number((t.cv&&t.cv[2]||"").replace(/\D/g,""))};(new O.x).addVote(e)}const e=t.ec===me;if(e){const e={name:t.ea,value:0,time:t.qt||Date.now()};(new O.x).addActionTracking(e)}e&&t.caid?(0,a.fH)(`Event of category "${t.ec}" has been aggregated for campaign ${t.caid} and variation ${t.vaid}. Data:`,t):(0,a.fH)(`Event of category "${t.ec}" has been aggregated. Data:`,t)}};const V=e=>{const t={...e,t:i.YQ.transaction},n=function(e){return I(e,{tid:{label:"Transaction ID",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},ta:{label:"Transaction Affiliation",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},tr:{label:"Transaction Revenue",required:!1,types:[{type:i.qz.Float,condition:e=>e>=0}]},ts:{label:"Transaction Shipping",required:!1,types:[{type:i.qz.Float,condition:e=>e>=0}]},tt:{label:"Transaction Tax",required:!1,types:[{type:i.qz.Float,condition:e=>e>=0}]},tc:{label:"Transaction Currency",required:!1,types:[{type:i.qz.String,allowEmpty:!0}],maxLength:10},tcc:{label:"Transaction Coupon Code",required:!1,types:[{type:i.qz.String,allowEmpty:!0}]},pm:{label:"Transaction Payment Method",required:!1,types:[{type:i.qz.String,allowEmpty:!0}]},sm:{label:"Transaction Shipping Method",required:!1,types:[{type:i.qz.String,allowEmpty:!0}]},icn:{label:"Transaction Number of Items",required:!1,types:[{type:i.qz.Integer,condition:e=>e>=0}]}})}(t);n.length?y(i.YQ.transaction,n,t):(S(t),function(e){const t={id:e.tid||e.id,value:e.tr,shipping:e.sm,payment:e.pm,coupon:e.tcc,tax:e.tt,shipping_cost:e.ts,currency:e.tc,name:e.name,quantity:e.quantity,affiliation:e.ta,time:e.time||(new Date).getTime()};(new O.x).addTransaction(t)}(e),(0,a.fH)(`Transaction "${t.ta}" has been aggregated. Data:`,t))};const L=e=>{const t={...e,t:i.YQ.item},n=function(e){return I(e,{tid:{label:"Transaction ID",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},in:{label:"Item Name",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},ip:{label:"Item Price",required:!1,types:[{type:"float"}]},iq:{label:"Item Quantity",required:!1,types:[{type:"integer"}]},ic:{label:"Item Code",required:!1,types:[{type:i.qz.String,allowEmpty:!0}],maxLength:500},iv:{label:"Item Category",required:!1,types:[{type:i.qz.String,allowEmpty:!0}],maxLength:500}})}(t);n.length?y(i.YQ.item,n,t):(S(t),function(e){const t={transactionId:e.tid,name:e.in,quantity:e.iq,revenue:e.iq&&e.ip?e.iq*e.ip:0,local_revenue:e.iq&&e.ip?e.iq*e.ip:0,sku:e.ic,category:e.iv,time:(new Date).getTime()};(new O.x).addItem(t)}(e),(0,a.fH)("Item hit has been aggregated. Data:",t))};var B=n(108),H=n(3663),M=n(642);const R={[M.UT]:"==",[M.sz]:"=@",[M.Wm]:"=~"};const _=e=>t=>{let{qt:n,...r}=t;const{waitForConsent:o}=(0,m.F5)(),s=(e=>{let{mode:t,data:n}=e;switch(t){case B.Ey.customJs:return"custom";case B.Ey.didomi:return"string"==typeof n&&n?n:H.M;case B.Ey.specificCookie:if("object"==typeof n){const{name:e,value:t,condition:a}=n;return`${e}${a&&R[a]?R[a]:R[M.UT]}${t}`}return"";default:return""}})(o),c=(e=>{let{campaignRestrictions:t}=e;return Object.keys(t).length>0&&0===Object.values(t).filter((e=>e)).length?i.R1.strict:i.R1.permissive})(o),l=(e=>{let{mode:t}=e;return Object.keys(i.aE).includes(t)?i.aE[t]:void 0})(o),p=(e=>{let{campaignRestrictions:t}=e;return Object.keys(t).filter((e=>t[e])).reduce(((e,t)=>e+B.gp[t]),0)})(o),u=Date.now(),g={...r,qt:u-n,me:s,om:c,sco:`${p}`,t:i.YQ.consent,ts:u};l&&(g.op=l);const f=function(e){return I(e,{co:{label:"Consent",required:!0,types:[{type:i.qz.Boolean,allowEmpty:!1}]}})}(g),h={...w(e),tv:"latest",tch:(0,q.i)(),h:[g],t:i.YQ.batch};f.length?y(i.YQ.consent,f,g):(d(h),(0,a.NI)("Consent hit has been sent. Data:",g))},U={ps:{label:"Product SKU",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},pn:{label:"Product name",required:!1,types:[{type:i.qz.String,allowEmpty:!1}]},pq:{label:"Product quantity",required:!0,types:[{type:i.qz.Integer,allowEmpty:!1}]},pp:{label:"Product price",required:!0,types:[{type:i.qz.Float,allowEmpty:!1}]},pcid:{label:"Product cart Id",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]}},X={pq:{label:"Product quantity",required:!0,types:[{type:i.qz.Integer,allowEmpty:!1}]},pp:{label:"Product price",required:!0,types:[{type:i.qz.Float,allowEmpty:!1}]},pcid:{label:"Product cart Id",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]}},J={pp:{label:"Product price",required:!1,types:[{type:i.qz.Float,allowEmpty:!1}]},ps:{label:"Product SKU",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},pn:{label:"Product name",required:!1,types:[{type:i.qz.String,allowEmpty:!1}]}},K=[i.X8.CART_ITEM,i.X8.CART_TOTAL,i.X8.VIEW];const W=e=>{const t={...e,t:i.YQ.product},n=function(e){return I(e,{pit:{label:"Product interaction type",required:!0,types:[{type:"string",allowEmpty:!1,value:K,condition:e=>K.some((t=>t===e))}]},...e.pit===i.X8.CART_ITEM?U:{},...e.pit===i.X8.CART_TOTAL?X:{},...e.pit===i.X8.VIEW?J:{}})}(t);n.length>0?y(i.YQ.product,n,t):(S(t),(0,a.fH)("Product hit has been aggregated. Data:",t))};function G(e){if(!(e instanceof Element))return null;const t=[];let n=e;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let e=n.nodeName.toLowerCase();if(n.id){e+="#"+n.id,t.unshift(e);break}{let t=n,a=1;for(;t=t.previousElementSibling;)t.nodeName.toLowerCase()===e&&a++;a>1&&(e+=":nth-of-type("+a+")")}t.unshift(e),n=n.parentNode}return t.join(" > ")}const Z=Object.keys({click:"click",over:"over",scroll:"scroll"});function ee(e,t){const n={};if(e&&e!==document){const a=t.elementsMap.get(e);n.tecp=encodeURIComponent(G(e)),e.id&&(n.teid=e.id),a&&a.enterTime&&(n.otbe=Date.now()-a.enterTime),n.tc=e.getAttribute("class")||"";const{left:r,top:o,width:i,height:s}=function(e){const t=e.getBoundingClientRect(),n=document.body,a=document.documentElement,r=window.pageYOffset||a.scrollTop||n.scrollTop,o=window.pageXOffset||a.scrollLeft||n.scrollLeft,i=a.clientTop||n.clientTop||0,s=a.clientLeft||n.clientLeft||0,c=t.top+r-i,l=t.left+o-s;return{top:Math.round(c),left:Math.round(l),width:Math.round(t.width),height:Math.round(t.height)}}(e);n.tes=`${i}x${s}`,n.tep=`${r}x${o}`,n.tcec=e.childElementCount||0,n.tet=e.tagName}return n}const te=(e,t,n)=>{const{pageX:a,pageY:r}=t.mouse,o=void 0!==n.pageX?`${n.pageX}x${n.pageY}`:`${a}x${r}`,s={...ee(n.target,t),esp:ve(),cp:o,...e,t:i.YQ.visitorevent},c=function(e){return I(e,{et:{label:"Event Type",required:!0,types:[{type:i.qz.String}],allowedValues:Z}})}(s);c.length?y(i.YQ.visitorevent,c,s):S(s)};const ne=e=>{let{caid:t,vaid:n,...r}=e;const o={...r,...t?{caid:`${t}`}:{},...n?{vaid:`${n}`}:{},t:i.YQ.nps},s=function(e){return I(e,{ns:{label:"The NPS score ranging from -100 to 100",required:!0,types:[{type:i.qz.Integer}]},nf:{label:"The NPS feedbacks from visitors",required:!1,types:[{type:i.qz.String,allowEmpty:!0}]}})}(o);if(s.length)y(i.YQ.nps,s,o);else{if(r.ns){const e={...o.vaid?{vaid:o.vaid}:{},...o.caid?{caid:o.caid}:{},score:r.ns};(new O.x).addVote(e)}S(o),(0,a.NI)("NPS hit has been aggregated. Data:",o)}};const ae=e=>t=>{const n={...w(e),...t,t:i.YQ.datalayer},r=function(e){return I(e,{dlr:{label:"Datalayer content",required:!0,types:[{type:i.qz.Object},{type:i.qz.Array}]}})}(n);r.length?y(i.YQ.datalayer,r,n):(d(n,null,"https://ariane.abtasty.com/datalayer"),(0,a.NI)("Datalayer hit has been send. Data:",n))},re=e=>t=>{if(window.Cypress)return Promise.resolve();const n={...w(e),...t,t:i.YQ.usage},a=I(n,{cv:{label:"Custom values",required:!0,types:[{type:i.qz.Object}]}});return a.length?(y(i.YQ.usage,a,n),Promise.resolve()):d(n,!1,"https://ariane.abtasty.com/analytics")};var oe=n(3476),ie=n(6332);const se=e=>{(0,ie.j3)({deprecate:"window._abtasty.push()",el:`push-${e}`,type:"function"})};const ce=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._abtasty;await Promise.all(e.map((async e=>{if(Array.isArray(e)&&Object.keys(e).length)switch(e[0].toString().toLowerCase()){case"transaction":await(async e=>{const t=e[1].toString(),n={tid:e[2],tr:(0,A.g)(e[3])?0:parseFloat(e[3].toString().replace(",",".")),icn:Number(e[4])||0,ta:t};await be(i.YQ.transaction,n)})(e),se("transaction");break;case"cv":await(async e=>{const t=e[1]||"",n=e[2]||"";if("string"!=typeof t||""===t||("string"!=typeof n||""===n)&&"number"!=typeof n)return void(0,a.FF)("CV informations are not valid, please, check that your second and third argument are not empty strings");const r={category:oe.a.CV,action:t,value:"string"==typeof n?n.substring(0,65):n,time:Date.now()};(new O.x).addCustomVariable(r);const o={[t]:"string"==typeof n?n.substring(0,65):n};await be(i.YQ.segment,{s:o})})(e),se("cv");break;case"eco":await(async e=>{const t=e[1]||"",n=e[2]||"";if("string"!=typeof t||""===t||("string"!=typeof n||""===n)&&"number"!=typeof n)return void(0,a.FF)("ECO information are not valid, please, check that your second and third argument are not empty strings");const r={action:t,category:oe.a.ECO,value:"string"==typeof n?n.substring(0,65):n,time:Date.now()};(new O.x).addCustomVariable(r);const o={ec:"eco",ea:t,el:n};await be(i.YQ.event,o)})(e),se("eco");break;default:(0,a.vV)("Wrong format to push (nothing was sent)",e)}else(0,a.vV)("Please give at least one parameter for the/these arrays !",e)}))),window._abtasty=[],window._abtasty.push=function(){return ce([arguments[0]]),Array.prototype.push.apply(this,arguments)}};var le=n(6381),pe=n(5712);const de=e=>t=>{if(window.Cypress)return Promise.resolve();const n={cv:t.cv,t:i.YQ.troubleshooting,cid:(0,m.pw)(),vid:e.visitorId},a=I(n,{cv:{label:"Custom values",required:!0,types:[{type:i.qz.Object}]}});return a.length?(y(i.YQ.troubleshooting,a,n),Promise.resolve()):d(n,!1,"https://ariane.abtasty.com/troubleshooting")};const ye=e=>{try{const t={...e,tv:"latest",tch:(0,q.i)(),tsv:"4.8.0",t:i.YQ.performance},n=function(e){return I(e,{tv:{label:"Tag Version",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},tch:{label:"Tag commit hash",required:!0,types:[{type:i.qz.String,allowEmpty:!1}]},tsv:{label:"Tag Semantic Version",required:!0,types:[{type:i.qz.String,allowEmpty:!1,condition:e=>/^[0-9]+\.[0-9]+\.[0-9]+(\-[0-9a-z]+(\.[0-9]+)?)?$/.test(e)}]},ext:{label:"Execution Time",required:!0,types:[{type:i.qz.Integer,allowEmpty:!1}]}})}(t);n.length?y(i.YQ.performance,n,t):(S(t),(0,a.fH)("Performance hit has been aggregated. Data:",t))}catch(e){(0,a.vV)("Performance hit can't be aggregated. Error:",e.message)}};var ue=n(2487),ge=n(3656);const me="Action Tracking",fe={elementsMap:new Map,mouse:{pageX:0,pageY:0}},he=function(e,t,a,r,o){if(Promise.resolve().then(n.bind(n,9906)).then((n=>{let{recheckTargetingByHit:a}=n;a(e,t)})),window.frames.ABTastyQaAssistant){const n={...t,qt:a,event:r,path:o,name:"ABTasty_event",type:e.toUpperCase()};window.postMessage(n,document.location.origin),window.frames.ABTastyQaAssistant.postMessage(n,"*")}pe.g.getInstance().emit(e.toUpperCase(),t,a)},be=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const s=v.n.getCommonDataRefresher();if(s){const a=t.qt||Date.now();Object.keys(ue.s).includes(e)||he(e,t,a,n,r,o);const c=(await(async e=>({[i.YQ.consent]:_(e),[i.YQ.campaign]:N,[i.YQ.event]:j,[i.YQ.item]:L,[i.YQ.pageview]:$,[i.YQ.segment]:F,[i.YQ.transaction]:V,[i.YQ.visitorevent]:te,[i.YQ.nps]:ne,[i.YQ.datalayer]:ae(e),[i.YQ.product]:W,[i.YQ.usage]:re(e),[i.YQ.troubleshooting]:de(e),[i.YQ.performance]:ye}))(s()))[e.toUpperCase()];c?.({...t,qt:a},{...fe},n)}else(0,a.FF)("[CollectFacade] common data refresher is not set")},we=function(e,t,n,a,r,o,s){let c=!(arguments.length>7&&void 0!==arguments[7])||arguments[7];const l=G(a),p={ec:me,ea:e,qt:r};n&&(p.caid=n.toString()),o&&(p.el=o),s&&(p.ev=s),be(i.YQ.event,p,void 0,l,c)};function ve(){const e=100*(document.body.scrollTop||document.documentElement.scrollTop)/(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight);return Math.round(e)}const qe=e=>{v.n.setCommonDataRefresher(e),(()=>{if(window.abtasty){const e=window.abtasty.send;window.abtasty.send=(t,n)=>{be(t,n),e&&e(t,n)}}else window.abtasty={send:(e,t)=>{be(e,t)}};if("function"==typeof window.ABTastyClickTracking){const e=window.ABTastyClickTracking;window.ABTastyClickTracking=(t,n,a)=>{we(t,n,a,null),e(t,n,a)}}else window.ABTastyClickTracking=we;if("function"==typeof window.ABTastyEvent){const e=window.ABTastyEvent;window.ABTastyEvent=(t,n,a)=>{we(t,n,a,null),e(t,n,a)}}else window.ABTastyEvent=we})(),async function(){window._abtasty=window._abtasty||[],await ce(window._abtasty)}(),(0,ge.lV)((()=>z(!0))),v.n.getCollectHit().forEach((e=>{be(e.type,{qt:e.time,...e.args},void 0,void 0)})),v.n.getEventTracking().forEach((e=>{we(e.name,e.data,e.campaignId,void 0,e.time)})),(new le.k).dispatchCustomEvent(r.u.Name.analyticsLoaded)}}}]);