!function(){'use strict';function e(t){return e='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e},e(t)}var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1](e.TagCoreLoaded='attn.tag-core.loaded',e.TagCreativesLoaded='attn.tag-creatives.loaded',e.FetchCreativesStart='attn.fetch-creatives.start',e.FetchCreativesEnd='attn.fetch-creatives.end',e))(E||{});function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,'default')?e.default:e}var w,b={exports:{}};w=function(){function e(){for(var e=0,t={};e(Lt(n)?Lt(n)&&!n[Ot]&&e.push(`${t}=${encodeURIComponent(n.val)}`):'object'==typeof n&&null!=n?e.push(`${t}=${encodeURIComponent(JSON.stringify(n))}`):'string'!=typeof n&&'number'!=typeof n&&'boolean'!=typeof n||e.push(`${t}=${encodeURIComponent(n)}`),e)),[]).join('&')}const Pt={};function kt(e,t){const n={errorCode:e,message:t.message,name:t.name,errorStack:t.stack};if(Pt[e]&&Pt[e].message===t.message&&Pt[e].name===t.name)return null;Pt[e]=n;const r=Nt({...n,[Me]:yt,[Ve]:k}),i=`${R}?${r}`,o=new Image(1,1);return o.src=i,o}const Rt=0,xt=1,Bt=2,Dt=6,Mt=7,Ut=8,Ht=9,Ft='edgetag_user_id';function Vt(e=[]){const t=[{vendor:Rt,id:window.ShopifyAnalytics?.meta?.page?.customerId??null},{vendor:xt,id:new URLSearchParams(window.location.search).get('utm_klaviyo_id')??null},{vendor:Bt,id:T('__attentive_client_user_id')??null},{vendor:Mt,id:window.triggermail?.persist?.read_prop('distinct_id')??T('__attentive_bluecore_id')??null},{vendor:Ut,id:T('_shopify_y')??null},{vendor:Ht,id:T('__cq_uuid')??null}],n=T('__attentive_custom_ids');if(n){JSON.parse(n).forEach((e=>{t.push({vendor:Dt,name:e.name,id:e.value})}))}const r={vendor:Dt,id:window.edgetag?.('getUserId')??null,name:Ft};r.id&&t.push(r);const i=t.filter((t=>t.id&&e.includes(t.vendor)));return i.length?i:null}const jt=/[\s|()-]/g,Gt=/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/,qt=/^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?\d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4}))(\s?#(\d{4}|\d{3}))?$/,Yt=/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*)@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:+))/,$t=/[^.\d]/g,Jt=/\.(.*?\d*)/g,Wt=/^[.,]|[.,]$|\s/g,Kt=(e,t=!1)=>{if('string'!=typeof e)return e;const n=e.replace(jt,''),r=Gt.test(n),i=qt.test(n);return r?n:i?function(e){return'0'===e[0]?e.substring(1):'+44'===e.substring(0,3)?e.substring(3):e}(n):t?null:e.replace($t,'')},Xt=e=>e.replace(Wt,''),zt=e=>{if('string'!=typeof e)return e;let t=e.replace($t,'');const n=t.indexOf('.');return n>=0&&(t=t.substring(0,n+3)),t},Zt=e=>'string'!=typeof e?e:e.replace($t,'').replace(Jt,''),Qt=e=>'string'!=typeof e?e:e.replace('\n','').trim(),en=e=>{if('string'!=typeof e)return e;const t=e.indexOf('#');return(-1===t?e:e.substring(t+1)).trim()},tn=e=>{try{return new URL(function(e){/(^\/\/).*/.test(e)&&(e='https:'+e);return e}(e)).href}catch{return e}};function nn(e){return(t,n,r)=>{const i=e[n.type];'function'==typeof i&&i(t,n,r)}}const rn=function(){const e='_-_';try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}(),on=function(){const e='_-_';try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}();function an(){let e=Date.now()+performance.now();return'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g,(t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),('x'===t?n:3&n|8).toString(16)}))}function cn(e){return/^[0-9a-fA-F]{32}$/.test(e)}function un(e){return function(t,n){return{type:e,data:t,meta:n}}}const sn=un(at),dn=un(st),ln=un(ct),vn=un(ut),fn=un('uc'),pn=un('cd'),gn=un(dt),mn=un(lt);function yn(e){var t,n;return e&&{name:e.name,category:e.category,image:e.productImage,price:null===(t=e.price)||void 0===t?void 0:t.value,currency:null===(n=e.price)||void 0===n?void 0:n.currency,quantity:e.quantity?String(e.quantity):'',productId:e.productId,subProductId:e.productVariantId}}function hn(e){return e&&{items:e.map(yn)}}function _n(e){return e&&{phone:e.phone,email:e.email}}function En(e){return e&&{cartId:e.cartId,cartCoupon:e.cartCoupon}}var Cn='_attn_';function wn(){var e;try{var n=null;if(rn){var r=sessionStorage.getItem(Cn);n=r?JSON.parse(r):null}var i=function(e){if(!e)throw new Error(U);try{return JSON.parse(atob(e))}catch(t){try{return JSON.parse(e)}catch(e){throw new Error(U)}}}(T(Cn)),o=i?Object.keys(i).reduce((function(e,t){var n=JSON.parse(i[t]);return e[t]=function(e){if(!e)return!0;const t=24*e[St]*60*60*1e3;return e[Tt]+txn)throw new Error('timeout is too large, max allowed value is '.concat(xn));var i,o=Number(new Date)+t,a=!1,c=n,u=new Promise((function t(u,s){if(a)return s({reason:Rn});var d=e();d?u({result:d}):Number(new Date)=0)return null;t.push(e);for(var n={},r=0,i=Object.entries(e);r',a=!1,c='',u=0,s=n;u0?c=s.find((function(e){return String(e.id)===i})):s&&s.length>0&&(c=s[0]),{id:u,type:d,selectedVariantId:i,selectedVariant:c||void 0,currency:a}}}return null}());var a=function(){var e;if(function(){var e;return Boolean(null===(e=window.Shopify)||void 0===e?void 0:e.checkout)}())return null===(e=window.Shopify)||void 0===e?void 0:e.checkout}(),c={};if(null!=e&&(c={currency:e.currency,category:e.type,sku:String(e.id),subProductId:e.selectedVariantId},null!=e.selectedVariant)){var u=e.selectedVariant,s=u.id,d=u.price,l=u.name;c=t(t({},c),{name:l,price:cr(d),subProductId:String(s)})}return null!=a&&(c=t({uid:String(a.customer_id),orderId:String(a.order_id),cartTotal:a.total_price,email:a.email,phone:null===(n=a.billing_address)||void 0===n?void 0:n.phone,cartCoupon:null===(r=null==a?void 0:a.discount)||void 0===r?void 0:r.code,cartDiscount:null===(i=null==a?void 0:a.discount)||void 0===i?void 0:i.amount,cartCurrency:null==a?void 0:a.currency,items:null===(o=a.line_items)||void 0===o?void 0:o.map((function(e){return{name:e.title,price:e.price,quantity:String(e.quantity),image:e.image_url,sku:e.product_id,subProductId:e.variant_id}}))},c)),c};var sr=function(){var e,t;if(lr()){var n=(null!==(t=null===(e=window.ShopifyAnalytics)||void 0===e?void 0:e.meta)&&void 0!==t?t:{}).product;if(n){var r=n.variants;if(r&&r.length>0)return r}}return[]},dr=function(e){return e.find((function(e){return!!e}))};function lr(){return Boolean(Xn('ShopifyAnalytics.meta.product')(window))}var vr;function fr(){var e,t,n,r=Boolean(Xn('attn_product')(window))?window.attn_product:void 0,i=function(){if(Boolean(Xn('attn_order')(window)))return window.attn_order}(),o={};return null!=r&&(o={currency:null===(e=r.price)||void 0===e?void 0:e.currency,category:r.category,sku:r.productId,subProductId:r.productVariantId,name:r.name,image:r.productImage,quantity:r.quantity,price:null===(t=r.price)||void 0===t?void 0:t.value}),null!=i&&(o={cartTotal:i.orderTotal,email:i.email,phone:i.phone,orderId:i.orderId,items:null===(n=i.products)||void 0===n?void 0:n.map((function(e){return{sku:e.id,image:e.image,name:e.name,subProductId:e.variantId,price:e.price,quantity:e.quantity}}))}),o}var pr=((vr={}).jld=function(e){var t=e[fe],n=document.querySelectorAll('script[type="application/ld+json"]');if(n.length>0){var r={};return Array.from(n).some((function(e){var t;try{var n=JSON.parse(e.innerHTML);if(n&&'product'===(null===(t=n['@type'])||void 0===t?void 0:t.toLowerCase()))return r=n,!0}catch(e){}return!1})),Object.keys(t).reduce((function(e,n){var i=t[n];if('string'==typeof i){var o=r[i];o&&('object'!=typeof o?e[n]=o:'object'==typeof o&&o[n]&&(e[n]=o[n]))}return e}),{})}return{}},vr.met=function(e){for(var n={},r=Object.entries(t({},e[fe])),i=or('property'),o=or('name'),a=or('itemprop'),c=0,u=r;c=0)n=n.slice(0,a)+c+n.slice(a);else if(-1===a)n=n.slice(a+1)+c;else{var u=n.slice(0,n.length+a),s=n.slice(a);n=u+c+s}}return n}(t,e);case ne:return function(e,t){for(var n=t,r=0,i=e.cfg;r=t||n<0||void 0!==o&&e-d>=o}function f(){const e=Date.now();if(v(e))return p(e);a=setTimeout(f,function(e){const n=e-d,r=t-(e-s);return void 0===o?r:Math.min(r,o-n)}(e))}function p(e){return a&&clearTimeout(a),a=void 0,i&&c?l(e):(c=void 0,u)}function g(...e){const n=Date.now(),i=v(n);return c=e,s=n,i?a?(clearTimeout(a),a=setTimeout(f,t),l(s)):(d=o=s,a=setTimeout(f,t),r?l(o):u):(void 0===a&&(a=setTimeout(f,t)),u);var o}return g.cancel=function(){a&&clearTimeout(a),s=0,d=0,c=void 0,a=void 0},g.flush=function(){return a?p(Date.now()):u},g}function Sr(e,t,n){const r=n?.(e,t);if('boolean'==typeof r)return r;if(e===t)return!0;if((void 0===e||void 0===t||null===e||null===t)&&(e||t))return!1;const i=e?.constructor.name,o=t?.constructor.name;if(i!==o)return!1;if('Array'===i){if(e.length!==t.length)return!1;let r=!0;for(let i=0;i0;){var u=c.shift();if('object'==typeof u&&null!==u){var s=Object.keys(u).find((function(e){return n.includes(e)}));if(s){var d=u[s];if(delete u[s],Array.isArray(d))return d;if('object'==typeof d&&null!==d)return[d]}else for(var o in u)c.push(u[o])}}return[]},Fr=function(e,t,n){var r={};return t.forEach((function(t){var i=n[t]||t;if(null==t?void 0:t.includes('.')){var o=Xn(t)(e);o&&(r[i]=o)}else(null==e?void 0:e[t])&&(r[i]=null==e?void 0:e[t])})),r};function Vr(e){var n=e.pluginConfig,r={category:['item_category'],image:['imageUrl'],name:['title','item_name','productName'],price:['variantPrice','productPrice'],currency:['variantCurrency','productCurrency','currencyCode'],quantity:['orderQuantity'],productId:['id','item_id','product_id'],subProductId:['variantSku','variantId','variant_id','subproduct_id'],cartCoupon:['purchase.actionField.coupon'],cartTotal:['purchase.actionField.subtotal','purchase.actionField.subtotalWithShipping'],cartCurrency:['currency'],orderId:['transaction_id','order_id']},i=n[me],o=Dr(n[we]),a=Mr(i),c=function(e){var t=[];t.push.apply(t,Object.keys(e));for(var n=0,r=Object.keys(e);n>>16)*u&65535)<<16)&4294967295)<<15|i>>>17))*s+(((i>>>16)*s&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(i=0,a){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:n^=i=(65535&(i=(i=(65535&(i^=255&e.charCodeAt(o)))*u+(((i>>>16)*u&65535)<<16)&4294967295)<<15|i>>>17))*s+(((i>>>16)*s&65535)<<16)&4294967295}return n^=e.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0}function Yr(e){var t=document.querySelectorAll('button.tocart');function n(){var n=!1;t.forEach((function(e){var t,r;n=n||'Added'===(null===(r=null===(t=null==e?void 0:e.attributes)||void 0===t?void 0:t.getNamedItem('title'))||void 0===r?void 0:r.value)})),n&&e()}t.forEach((function(e){new MutationObserver(n).observe(e,{attributes:!0})}))}function $r(e){try{fetch('/attentivemobile/cart/get').then((function(e){return e.json()})).then((function(t){var n,r,i,o=t,a=zr(),c=String(qr(JSON.stringify(t)));if(o.entity_id&&(null===(n=a.get(o.entity_id))||void 0===n?void 0:n.cartHash)!==c){for(var u=Qr(o.attentive_cart_items),s=null===(r=a.get(o.entity_id))||void 0===r?void 0:r.cart,d=[],l=[],v=function(n){var r=function(e){var t={};return t.productId=e.product_id,t.quantity=e.qty,t}(n);if(d.push(r),'configurable'!==n.product_type){var i=ei(n,o.attentive_cart_items,o,u);i.currency=t.quote_currency_code,i.cartCurrency=i.currency,l.push(i),(!s||(null==s?void 0:s.filter((function(e){return Sr(e,r)})).length)<1)&&e(mn(i,{dataType:ft,source:z}))}},f=0,p=null!==(i=o.attentive_cart_items)&&void 0!==i?i:[];f0&&(a.quantity=u[0].qty,a.price=u[0].price)}else a.productId=e.product_id,a.quantity=e.qty;var s=null===(i=n.attentive_store)||void 0===i?void 0:i.attentive_secure_base_media_url,d=null===(o=e.attentive_product)||void 0===o?void 0:o.small_image;return s&&d&&(a.image=s+'catalog/product'+d),a.subProductId=e.product_id,a.sku=a.productId,a.name=e.name,a.email=n.customer_email,a.uid=String(n.customer_id),a.cartTotal=n.grand_total,a.cartCoupon=n.coupon_code,a}function ti(){return Boolean(Boolean(window.ShopifyAnalytics)||Boolean(window.Shopify))}var ni,ri=1e3;function ii(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return t=Date.now(),ni&&t-ni<1500?[2]:(e===li&&(ni=Date.now()),[4,fetch('/cart.json')]);case 1:if(!(n=r.sent()).ok)throw new Error(n.statusText);return[4,n.json()];case 2:return[2,r.sent()]}}))}))}var oi='attn_cart',ai='attn_cart_items';function ci(e){return sessionStorage.getItem(e)}function ui(e,t){sessionStorage.setItem(e,t)}function si(e){return''.concat(e.id,':').concat(e.variant_id,':').concat(e.quantity)}function di(e,t){var n=e.items.map(si);ui(oi,t),ui(ai,JSON.stringify(n))}var li=2;function vi(e,t,n){return void 0===t&&(t='USD'),void 0===n&&(n=!0),{category:e.product_type,image:e.image,name:e.product_title||e.title,productId:e.product_id,quantity:String(e.quantity),price:n?cr(e.price):String(e.price),subProductId:e.variant_id,currency:t}}function fi(e,t){return void 0===t&&(t=!0),{products:e.items.map((function(n){return vi(n,e.currency,t)})),cartId:e.token,cartTotal:t?cr(e.total_price):String(e.total_price),cartCurrency:e.currency}}function pi(e,t){return r(this,void 0,void 0,(function(){var n,r,o,a,c,u,s,d,l,v,f;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,ii(t)];case 1:if(!(n=i.sent()))return[2];if(0===n.items.length&&t===li)return function(e){var t=ur();t&&Object.keys(t).length>0&&e(mn(t,{dataType:ft,source:K}))}(e),[2];if(r=function(){var e;return JSON.parse(null!==(e=ci(ai))&&void 0!==e?e:'[]')}(),o=fi(n,!1),a=JSON.stringify(n.items),c=ci(oi),u=String(qr(a)),s=c!==u,!c)return di(n,u),[2];if(r&&s){for(di(n,u),d=0,l=n.items;d1e4)return!1;var a=o?o.toLowerCase().replace(/\n\t/g,'').trim():'',c=e.toLowerCase();return!(!i&&a!==c)}));i&&setTimeout(pi,ri,t,li)}),!0)}var mi,yi,hi=12e4;function _i(e,t){return r(this,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return[4,Bn((function(){var e;return Boolean(null===(e=window.ShopifyAnalytics)||void 0===e?void 0:e.meta)}),hi).catch((function(){}))];case 1:return n.sent(),'product'===Xn('ShopifyAnalytics.meta.page.pageType')(window)?(mi&&clearInterval(mi),mi=window.setInterval((function(){var n,r=function(){var e=document.querySelector('[name=id]');if(e&&'value'in e)return e.value}();r&&r!==yi&&(yi=r,t(pn({},{trigger:(n={id:e[se]},n[Pe]=!0,n),source:K,dataType:gt})))}),500),[2]):[2]}}))}))}var Ei='attn_cart',Ci='attn_cart_items';function wi(e){return sessionStorage.getItem(e)}function bi(e,t){sessionStorage.setItem(e,t)}function Ii(e){return{image:e.image,name:e.name,productId:String(e.product_id),quantity:String(e.quantity),price:e.price,subProductId:String(e.variation_id)}}function Ti(e){return r(this,void 0,void 0,(function(){var t,n,r,o,a,c,u,s,d,l,v,f;return i(this,(function(i){if(!Boolean(Xn('woocommerce_params')(window)))return[2];try{if(!(t=window.attn_cart))return[2];if(n=null===(v=window.attn_cart)||void 0===v?void 0:v.products,r=JSON.stringify(n),o=wi(Ei),a=String(qr(r)),c=n?function(e){return Object.keys(e).map((function(t){return''.concat(e[t].product_id,':').concat(e[t].variation_id,':').concat(e[t].quantity)}))}(n):null,a===o)return[2];if(u=JSON.parse(null!==(f=wi(Ci))&&void 0!==f?f:'[]'),bi(Ci,JSON.stringify(c)),bi(Ei,a),t&&n){if(s=function(e){var t=e.products;return{products:Object.keys(t).map((function(e){return Ii(t[e])})),cartTotal:e.cartTotal}}(t),d=void 0,u.length!==Object.keys(n).length)for(l in n)u.includes(''.concat(n[l].product_id,':').concat(n[l].variation_id,':').concat(n[l].quantity))||(d=Ii(n[l]));d&&e(mn(d,{dataType:ft,source:X})),e(mn(s,{dataType:vt,source:X}))}}catch(e){kt(j,e)}return[2]}))}))}function Ai(e){return function(e){return e[le]===W}(e)||function(e){return e[le]===Y}(e)||function(e){return e[le]===$}(e)||function(e){return e[le]===Z}(e)}function Si(e,t,n){for(var r=0,i=e;r0,o=function(){return t(pn({},{trigger:{id:e[se]},source:J,dataType:e.t}))};r&&(i?(null===(n=e[_e])||void 0===n?void 0:n.filter((function(e){return document.querySelector(e)})).length)&&setTimeout(o,e[Ce]):setTimeout(o,e[Ce]))},Li.oe=function(e,t){var n=e[Se],r=document;document.addEventListener(e.de,(function(i){var o;if(br(e[he],window.location.href)){var a=i.target;n&&(r=null!==(o=a.closest(n))&&void 0!==o?o:r),e[_e].some((function(o){var c,u,s=null;try{u=r.querySelectorAll(o),s=function(e,t){var n=function(e){return'function'==typeof e.composedPath?e.composedPath():[]}(e),r=Array.from(t);return 0===r.length?null:r.find((function(e){return n.includes(e)}))||null}(i,u)}catch(e){}var d=null==a?void 0:a.textContent,l=d?d.toLowerCase().replace(/\n\t/g,'').trim():'',v=o.toLowerCase();if(s||l===v){var f={source:'oe',trigger:{id:e[se]},dataType:e.t},p=pn({},f);if(!n)return t(p),!0;var g=i.target.closest(n);if(g&&(null===(c=null==p?void 0:p.meta)||void 0===c?void 0:c.trigger))return p.meta.trigger[Se]=g,t(p),!0}return!1}))}}),!0)},Li[X]=function(e,t){return r(this,void 0,void 0,(function(){var n,r,o,a,c,u;return i(this,(function(i){switch(i.label){case 0:return Ti(t),n='\\/checkout\\/order-received\\/|\\/order-confirmed\\/',[4,Bn((function(){return Boolean(window.attn_product||window.attn_order)}),12e4).catch((function(){}))];case 1:return i.sent(),r=br(n,window.location.href)&&Boolean(Xn('attn_order')(window)),o=Boolean(Xn('attn_product')(window)),(o||r)&&(a=o?gt:mt,c=fr(),u=function(n){return t(pn(n,{trigger:{id:e[se]},source:X,dataType:a}))},c&&u(c)),[2]}}))}))},Li[z]=function(e,t){return r(this,void 0,void 0,(function(){return i(this,(function(n){return document.getElementById('attentiveMagentoPage')?(document.getElementById('attnProductInfo')&&Wr(e,t),document.getElementById('attnOrderInfo')?Kr(e,t):function(e,t){r(this,void 0,void 0,(function(){return i(this,(function(e){try{Yr((function(){$r(t)})),$r(t)}catch(e){kt(G,e)}return[2]}))}))}(0,t),[2]):[2]}))}))},Li.plt=function(e,t){var n=Date.now(),r=window.scrollY+window.innerHeight,i=Ar((function(){var e=window.scrollY+window.innerHeight;r=Math.max(r,e)}),200);window.addEventListener('scroll',i),window.addEventListener('visibilitychange',(function(){if('hidden'!==document.visibilityState)return r=0,void(n=Date.now());var i=Date.now()-n,o=document.documentElement.scrollHeight,a=r/o*100;t(pn({scrollDepth:Math.min(a,100),timeSpent:i},{trigger:{id:e[se]},source:'plt',dataType:e.t}))}))},Li);function Hi(e,t,n){var r=[],i=e[ae]||[],o=/iPad|iPhone|iPod/.test(navigator.userAgent);i.forEach((function(e){var i=e.pt;if(o&&i===Y){var a=Di(e);r.push(Mi[a.pt](a))}else if(i===$){var c=Bi(e,null==n?void 0:n.ua);r.push(Mi[c.pt](c))}else i in Mi&&Ai(e)?r.push(Mi[i](e)):i in Ui&&Ui[i](e,t)})),function(e,t){if(0!==e.length){var n=0;if(!performance.getEntries||!performance.setResourceTimingBufferSize)throw new Error(D);performance.setResourceTimingBufferSize(600);try{'PerformanceObserver'in window?(r(),new PerformanceObserver((function(n){for(var r=0,i=n.getEntries();rn&&Si(e,o,t),n=o.startTime}}}(r,t)}function Fi(e,t){(e[ae]||[]).forEach((function(e){var n=e.pt;n===J&&Ui[J](e,t),n===K&&function(e,t){r(this,void 0,void 0,(function(){return i(this,(function(n){return wr(e,t),Tr(e,t),[2]}))}))}(e,t),n===X&&Ui[X](e,t),n===z&&Ui[z](e,t)}))}function Vi(e){var n,r,i=[];if(function(e){var t;return Boolean((null===(t=null==e?void 0:e.meta)||void 0===t?void 0:t.dataType)&&[pt,mt,ft,gt,Ct,vt,Et].includes(e.meta.dataType))}(e)){var o=e.data;if(o&&Array.isArray(null==o?void 0:o.items)?o.items.forEach((function(n){var r;delete(r='object'==typeof n?t(t({},e.data),n):t({productId:n},e.data)).items,i.push({type:e.type,data:r,meta:e.meta})})):e&&e.type&&i.push(e),(null===(n=e.meta)||void 0===n?void 0:n.dataType)===mt){var a=function(e){for(var t=0,n=0,r=e;n0)for(;e.length;){var n=e.shift();n&&n.meta&&t(n.data,n.meta)}}(Vi(n),(function(e,t){return a(mn(e,t))}))}},e);return nn(a)};const Xi=['crawl','spider','googlebot','adsbot-google','mediapartners-google','apis-google','bingbot','msnbot','bingpreview','adidxbot','slurp','duckduckbot','baiduspider','yandexbot','yandeximages','yandexmobilebot','sogou spider','sogou web spider','exabot','ia_archiver','applebot','pinterestbot','twitterbot','linkedinbot','facebookexternalhit','facebookcatalog','meta-externalagent','meta-externalfetcher'];const zi='https://t.tnafpt.com/agent?version=3&apiKey=WThcqME9UwT4oh0caZUE',Zi='_attnfp',Qi=1;async function eo(e){const t=(n=Zi,I.getJSON(n));var n;if(t&&t.maxAge===Qi)return t;try{const t=await import(zi),n=await t.load(),r=await n.get(function(e){let t;return e&&(t={linkedId:e}),t}(e));if(!function(e){return null!==e&&'object'==typeof e&&'visitorId'in e&&'requestId'in e}(r))return;return O(Zi,JSON.stringify({...r,maxAge:Qi}),{expires:Qi}),r}catch(e){return}}async function to(e,t){const n=e[et]?.[It];if(!n||function(){if('undefined'==typeof navigator||!navigator.userAgent)return!0;const e=navigator.userAgent.toLowerCase(),t=Xi.some((t=>e.includes(t.toLowerCase())));return t}())return;const r=await eo(t[je]?.val);return r||void 0}const no=(e,t)=>{const n=Kt(e.target.value,!0);n&&t(gn({phone:n},{dataType:Ct,source:'fs'}));const r=(e=>{const t=Xt(e);return Yt.test(t)?e:null})(e.target.value);r&&(!function(e,t){const n=t+':0';try{O('attntv_mstore_'+e,n,{secure:window.location.protocol.includes('https')})}catch(e){kt(M,e)}}('email',r),t(gn({email:r},{dataType:Ct,source:'fs'})))};const ro=(e,t)=>{const n=e.data.clientConfiguration,r=n.ido?.idos;return'off'!==r?.type?function(e){const t=t=>{t.target.matches('input:not([type=password]):not([type=submit]):not([autocomplete^="cc-"])')&&e(t)};return document.addEventListener('focusout',t),()=>{document.removeEventListener('focusout',t)}}((e=>no(e,t))):()=>{}};let io=()=>{};const oo=()=>{let e,t;return nn({[at]:async(n,r,{dispatch:i})=>{io(),e=r.data.clientConfiguration,io=ro(r,i),((e,t,n)=>{const r=e[et]?.[bt];if(!r)return;if(t[Ge]&&t[qe])return;const i={[$e]:!0,[Ge]:T('_fbc'),[qe]:T('_fbp')};n(vn(i))})(e,n,i),((e,t)=>{const n=T('__attentive_id'),r=e?.[je]?.val;n&&cn(n)&&r&&cn(r)&&r===n||t(ln({id:an(),maxAge:21900}))})(n,i),t=await to(e,n)},[dt]:(t,n,{dispatch:r})=>{((e,t)=>{const n=e[et]?.[bt];if(!n)return;const r=an();t(vn({[Ye]:r}))})(e,r)},[lt]:(n,r)=>{((e,t,n)=>{const r=e[et]?.[It];r&&t&&n.meta&&(n.meta.fingerprintRequestId=t.requestId,n.meta.fingerprintVisitorId=t.visitorId,n.meta.fingerprintConfidenceScore=t.confidence.score)})(e,t,r)}})};var ao,co=(e=>(e.ActionButton='ActionButton',e.AgeGating='AgeGating',e.Background='Background',e.BubbleStyles='BubbleStyles',e.CheckoutProduct='CheckoutProduct',e.CloseIcon='CloseIcon',e.CompleteYourSignupSVG='CompleteYourSignupSVG',e.Countdown='Countdown',e.DismissButton='DismissButton',e.OptionalEmailButton='OptionalEmailButton',e.Image='Image',e.Input='Input',e.LegalText='LegalText',e.Logo='Logo',e.SuccessPhoneSVG='SuccessPhoneSVG',e.TextHeader='TextHeader',e.MobileExperience='MobileExperience',e.OfferWheel='OfferWheel',e.BubbleIcon='BubbleIcon',e.PrimaryCTA='PrimaryCTA',e.SMSPrefilledText='SMSPrefilledText',e.CustomCSS='CustomCSS',e.AttributeInputs='AttributeInputs',e.PageTimeout='PageTimeout',e.FeatureFlagCondition='FeatureFlagCondition',e.CustomAlreadySubscribedError='CustomAlreadySubscribedError',e.LandingPageURL='LandingPageURL',e.PageTimeoutRedirectButton='PageTimeoutRedirectButton',e.PreEngagementConsentButton='PreEngagementConsentButton',e.PreEngagementDenyButton='PreEngagementDenyButton',e.ProductHighlight='ProductHighlight',e))(co||{}),uo=(e=>(e.INFO='INFO',e.WARNING='WARNING',e))(uo||{}),so=(e=>(e.PLAIN='PLAIN',e.BLOCK='BLOCK',e.BOLD='BOLD',e))(so||{}),lo=(e=>(e.EST='America/New_York',e.CST='America/Chicago',e.MST='America/Denver',e.PST='America/Los_Angeles',e.GMT='Europe/London',e.NST='America/St_Johns',e.AST='America/Halifax',e.AWT='Australia/Perth',e.ACWT='Australia/Eucla',e.ACT='Australia/Darwin',e.AETB='Australia/Brisbane',e.AET='Australia/Sydney',e.LHT='Australia/Lord_Howe',e.CEST='Europe/Paris',e.AZOST='Atlantic/Azores',e.ACT1='America/Rio_Branco',e.AMT='America/Manaus',e.BRT='America/Sao_Paulo',e.FNT='America/Noronha',e.PT='America/Tijuana',e.MT='America/Hermosillo',e.CT='America/Mexico_City',e.ET='America/Cancun',e.NZDT='Pacific/Auckland',e))(lo||{}),vo=(e=>(e.enUS='en-US',e.enCA='en-CA',e.enGB='en-GB',e.enAU='en-AU',e.enNZ='en-NZ',e.enFR='en-FR',e.enBE='en-BE',e.enBR='en-BR',e.enCH='en-CH',e.enDE='en-DE',e.enDK='en-DK',e.enES='en-ES',e.enIT='en-IT',e.enMX='en-MX',e.enNL='en-NL',e.enNO='en-NO',e.enPL='en-PL',e.enPT='en-PT',e.enSE='en-SE',e.frFR='fr-FR',e.frBE='fr-BE',e.frCA='fr-CA',e.frCH='fr-CH',e.enIE='en-IE',e.itIT='it-IT',e.nlNL='nl-NL',e.ptPT='pt-PT',e.ptBR='pt-BR',e.esES='es-ES',e.esMX='es-MX',e.svSE='sv-SE',e.deDE='de-DE',e.nlBE='nl-BE',e.deCH='de-CH',e.plPL='pl-PL',e.noNO='no-NO',e.daDK='da-DK',e))(vo||{});function fo(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function po(e,t){if(t.length1?'s':'')+' required, but only '+t.length+' present')}function go(t){po(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||'object'===e(t)&&'[object Date]'===n?new Date(t.getTime()):'number'==typeof t||'[object Number]'===n?new Date(t):new Date(NaN)}function mo(t,n){if(po(2,arguments),!n||'object'!==e(n))return new Date(NaN);var r=n.years?fo(n.years):0,i=n.months?fo(n.months):0,o=n.weeks?fo(n.weeks):0,a=n.days?fo(n.days):0,c=n.hours?fo(n.hours):0,u=n.minutes?fo(n.minutes):0,s=n.seconds?fo(n.seconds):0,d=go(t),l=i||r?function(e,t){po(2,arguments);var n=go(e),r=fo(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());return o.setMonth(n.getMonth()+r+1,0),i>=o.getDate()?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}(d,i+12*r):d,v=a||o?function(e,t){po(2,arguments);var n=go(e),r=fo(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(l,a+7*o):l,f=1e3*(s+60*(u+60*c));return new Date(v.getTime()+f)}var yo=(e=>(e.SMS='sms',e.EMAIL='email',e.AGE_GATE='age_gate',e.METADATA_TEXT='metadata_text',e))(yo||{}),ho=(e=>(e.PARTIAL='partial',e.FULLSCREEN='fullscreen',e))(ho||{});vo.enGB,vo.enFR,vo.enBE,vo.enCH,vo.enDE,vo.enDK,vo.enES,vo.enIT,vo.enNL,vo.enNO,vo.enPL,vo.enPT,vo.enSE,vo.frFR,vo.frBE,vo.frCA,vo.frCH,vo.enIE,vo.itIT,vo.nlNL,vo.ptPT,vo.ptBR,vo.esES,vo.svSE,vo.deDE,vo.nlBE,vo.deCH,vo.plPL,vo.noNO,vo.daDK;const _o={backgroundColor:'#000000',backgroundColorInverted:'#FFFFFF',inputBorderColor:'#979797',bubbleBackgroundColor:'#000000',buttonColor:'#E91220',fontColor:'#FFFFFF',fontColorInverted:'#000000',inactive:'rgba(0,0,0,0.3)',placeholderColor:'#767676',transparent:'transparent'},Eo={xs:'1rem',sm:'1.25rem',md:'1.5rem',lg:'4.5rem',bubble:'1.12rem',countdownDisplay:'4rem',countdownSeperator:'2rem',countdownLabel:'1rem',legal:'0.625rem',input:'0.75rem',success:'2.5rem',successMobilePartial:'1.75rem',successMobileFullscreen:'2rem',smsCtaSubheader:'0.9375rem',emailSmsCtaSubheader:'0.8125rem',wheel:'0.5rem'},Co=e=>`%{translationOverride:${e}}`;var wo=(e=>(e.visitor='RELATIVE',e.global='ABSOLUTE',e))(wo||{}),bo=(e=>(e.DAYS='DAYS',e.HOURS='HOURS',e.MINUTES='MINUTES',e.SECONDS='SECONDS',e))(bo||{});lo.EST;_o.fontColorInverted,_o.fontColor,Eo.md,_o.backgroundColor;_o.fontColorInverted,_o.fontColor,Eo.md,_o.backgroundColor;_o.fontColor,_o.backgroundColor,_o.fontColorInverted,_o.fontColor,Eo.md,_o.backgroundColor;_o.fontColor,_o.backgroundColor,Eo.bubble,_o.backgroundColor;_o.fontColorInverted,_o.backgroundColor,Eo.countdownLabel;_o.fontColorInverted,Eo.countdownSeperator,_o.fontColorInverted,Eo.countdownSeperator;var Io=(e=>(e.DESKTOP='DESKTOP',e.ON_SITE='ON_SITE',e.LANDING_PAGE='LANDING_PAGE',e.LEGAL='LEGAL',e.INTEGRATION='INTEGRATION',e.TEXT_TO_JOIN='TEXT_TO_JOIN',e.MANUAL_UPLOAD='MANUAL_UPLOAD',e))(Io||{}),To=(e=>(e.DYNAMIC='DYNAMIC',e.CONVERSATIONAL='CONVERSATIONAL',e.PRIVACY='PRIVACY',e.TERMS='TERMS',e.COUPON_DISPLAY_SCREEN='COUPON_DISPLAY_SCREEN',e.NO_SHOW='NO_SHOW',e.SHOPIFY_CHECKOUT='SHOPIFY_CHECKOUT',e.SHOPIFY_CHECKOUT_TRANSACTIONAL='SHOPIFY_CHECKOUT_TRANSACTIONAL',e.SHOPIFY_CHECKOUT_EMAIL='SHOPIFY_CHECKOUT_EMAIL',e.UNSUBSCRIBE='UNSUBSCRIBE',e.RECHARGE_CHECKOUT='RECHARGE_CHECKOUT',e.RECHARGE_CHECKOUT_TRANSACTIONAL='RECHARGE_CHECKOUT_TRANSACTIONAL',e.AFFILIATE_ENDPOINT='AFFILIATE_ENDPOINT',e.OFFER_DISPLAY='OFFER_DISPLAY',e.CODE='CODE',e.LANDING_PAGE='LANDING_PAGE',e.FULL_SCREEN='FULL_SCREEN',e.EMAIL_FULL_SCREEN='EMAIL_FULL_SCREEN',e.BUBBLE_FULL_SCREEN='BUBBLE_FULL_SCREEN',e.EMAIL_BUBBLE_FULL_SCREEN='EMAIL_BUBBLE_FULL_SCREEN',e.PARTIAL='PARTIAL',e.EMAIL_PARTIAL='EMAIL_PARTIAL',e.BUBBLE_PARTIAL='BUBBLE_PARTIAL',e.EMAIL_BUBBLE_PARTIAL='EMAIL_BUBBLE_PARTIAL',e.BUBBLE='BUBBLE',e.LIGHTBOX='LIGHTBOX',e.LIGHTBOX_BUBBLE='LIGHTBOX_BUBBLE',e.EMAIL_LIGHTBOX='EMAIL_LIGHTBOX',e.EMAIL_WIZARD='EMAIL_WIZARD',e.MANUAL_ENTRY='MANUAL_ENTRY',e.PRODUCT_DISPLAY='PRODUCT_DISPLAY',e))(To||{}),Ao=(e=>(e.LEFT='left',e.CENTER='center',e.RIGHT='right',e.JUSTIFY='justify',e))(Ao||{});Co('defaultTextValues.headers.mobilePartialHeader1'),Eo.sm,_o.fontColor,Co('defaultTextValues.headers.mobilePartialHeader2'),Eo.xs,_o.fontColor,Co('defaultTextValues.headers.desktopPartialHeader1'),Eo.sm,_o.fontColor,Co('defaultTextValues.headers.desktopSmsPartialHeader2'),Eo.xs,_o.fontColor;so.BLOCK,uo.WARNING,Co('defaultTextValues.headers.cdsHeader'),Eo.md,_o.fontColor,Co('defaultTextValues.headers.cdsPrefHeader'),Eo.md,_o.fontColor,Co('defaultTextValues.headers.cdsEmailGateHeader'),Eo.md,_o.fontColor,Co('defaultTextValues.headers.cdsSubHeader'),Eo.xs,_o.fontColor,Eo.xs,_o.fontColor,Co('defaultTextValues.headers.cdsEmailGateSubHeader'),Eo.xs,_o.fontColor;var So=(e=>(e.OPEN='OPEN',e.IMPRESSION='IMPRESSION',e.LEAD='LEAD',e.EMAIL_LEAD='EMAIL_LEAD',e.CLOSE='CLOSE',e.EXPAND='EXPAND',e.SHRINK='SHRINK',e.DETECT_EXIT_INTENT='DETECT_EXIT_INTENT',e.SET_COOKIE='SET_COOKIE',e.RESIZE_FRAME='RESIZE_FRAME',e.CREATIVE_PAGE_VIEW='CREATIVE_PAGE_VIEW',e.ADD_TO_CART='ADD_TO_CART',e))(So||{}),Oo=(e=>(e.GOOGLE_ANALYTICS_4='GOOGLE_ANALYTICS_4',e.GOOGLE_ANALYTICS='GOOGLE_ANALYTICS',e.FACEBOOK_PIXEL='FACEBOOK_PIXEL',e.NORTHBEAM_PIXEL='NORTHBEAM_PIXEL',e.DATALAYER_PUSH='DATALAYER_PUSH',e))(Oo||{});Oo.GOOGLE_ANALYTICS_4,Oo.GOOGLE_ANALYTICS,Oo.FACEBOOK_PIXEL,Oo.NORTHBEAM_PIXEL,Oo.DATALAYER_PUSH,Oo.GOOGLE_ANALYTICS_4,Oo.GOOGLE_ANALYTICS,Oo.FACEBOOK_PIXEL,Oo.NORTHBEAM_PIXEL,Oo.DATALAYER_PUSH;const Lo={[Oo.GOOGLE_ANALYTICS_4]:{[So.IMPRESSION]:{name:'impression',reportPageType:!1},[So.EMAIL_LEAD]:{name:'submitEmail',reportEmail:!1,reportPageType:!1},[So.LEAD]:{name:'submitSMS',reportPageType:!1},[So.CLOSE]:{name:'close',reportPageType:!1},[So.EXPAND]:{name:'expand',reportPageType:!1}},[Oo.GOOGLE_ANALYTICS]:{[So.IMPRESSION]:{name:'impression'},[So.EMAIL_LEAD]:{name:'submitEmail',reportEmail:!1},[So.LEAD]:{name:'submitSMS'},[So.CLOSE]:{name:'close'},[So.EXPAND]:{name:'expand'}},[Oo.FACEBOOK_PIXEL]:{[So.IMPRESSION]:{name:'ViewContent'},[So.EMAIL_LEAD]:{name:'Contact',reportEmail:!1},[So.LEAD]:{name:'Lead'},[So.CLOSE]:{name:'Close'},[So.EXPAND]:{name:'Expand'}},[Oo.NORTHBEAM_PIXEL]:{[So.EMAIL_LEAD]:{name:'submitEmail',reportEmail:!0},[So.LEAD]:{name:'submitSMS',reportPhone:!0}},[Oo.DATALAYER_PUSH]:{[So.IMPRESSION]:{name:'impression'},[So.EMAIL_LEAD]:{name:'submitEmail',reportEmail:!1},[So.LEAD]:{name:'submitSMS'},[So.CLOSE]:{name:'close'},[So.EXPAND]:{name:'expand'}}};function No(e){const t={enabled:!1,id:'',reportCreative:!0,eventOptions:Lo[e]};if(e===Oo.GOOGLE_ANALYTICS)t.eventCategory='Attentive';return t}for(const e in Oo)No(e);var Po=(e=>(e.BUBBLE='bubble',e.FIELD_CAPTURE='field_capture',e.SUCCESS='success',e.COUPON='coupon',e.EMAIL_GATE='email_gate',e.SPIN_TO_WIN='spin_to_win',e.OFFER_WHEEL='offer_wheel',e.EXISTING_SUBSCRIBER='existing_subscriber',e.LIVE_SMS='live_sms',e.PREVIEW_TOOLTIP='preview_tooltip',e.UNSUBSCRIBE='unsubscribe',e.PRE_ENGAGEMENT='pre_engagement',e.MYSTERY_OFFER='mystery_offer',e.EXISTING_SUBSCRIBER_EXPERIMENT='existing_subscriber_experiment',e.SCRATCH_OFF='scratch_off',e))(Po||{});var ko=(e=>(e.LEFT='left',e.RIGHT='right',e))(ko||{}),Ro=(e=>(e.TOP='top',e.BOTTOM='bottom',e))(Ro||{});co.BubbleStyles;const xo={color:_o.fontColor,backgroundColor:_o.backgroundColor,backgroundOpacity:'100%',transparentBackground:!1,size:Eo.legal,font:2,alignment:Ao.JUSTIFY};((e,t)=>{const n=[];if(void 0===e.active||e.active){const r={v:2,styles:{color:e.textConfig?.color,backgroundColor:e.textConfig?.backgroundColor,backgroundOpacity:e.textConfig?.backgroundOpacity,transparentBackground:e.textConfig?.transparentBackground,fontSize:e.textConfig?.size,font:e.textConfig?.font,textAlign:e.textConfig?.alignment??Ao.JUSTIFY,marginTop:e?.marginTop,marginBottom:e?.marginBottom},content:{customContent:e.content?.customContent,optionalLink:e.content?.optionalLink},placement:Boolean(!e.displayBelowInputs)||t?'below-headers':'below-inputs'};e.checkbox?.active&&(r.checkbox={border:e.checkbox?.border,checkColor:e.checkbox?.checkColor,icon:e.checkbox?.icon,active:!0}),n.push(r)}if(e.content?.additionalLegalText){const t={v:2,styles:{color:e.additionalLegalTextConfig?.color||e.textConfig?.color,backgroundColor:e.additionalLegalTextConfig?.backgroundColor||e.textConfig?.backgroundColor,backgroundOpacity:e.additionalLegalTextConfig?.backgroundOpacity||e.textConfig?.backgroundOpacity,transparentBackground:e.additionalLegalTextConfig?.transparentBackground??e.textConfig?.transparentBackground,fontSize:e.additionalLegalTextConfig?.size||e.textConfig?.size,font:e.additionalLegalTextConfig?.font||e.textConfig?.font,textAlign:(e.additionalLegalTextConfig?.alignment||e.textConfig?.alignment)??Ao.JUSTIFY},placement:'below-buttons',content:{customContent:e.content?.additionalLegalText}};n.push(t)}return n})({textConfig:xo,content:{},additionalLegalTextConfig:xo},!0)[0];const Bo={previewTooltipActive:!0,previewTooltipPageRule:{delay:{value:5,enabled:!0}},previewTooltipTargeting:1,tooltipText:'Need help?',displayPageRule:{delay:{value:3,enabled:!0}},displayPageTargeting:2,welcomeMessage:'Have a question for our experts? We\'re here to help.',submitButtonText:'TEXT US FOR HELP',secondarySubmitButtonText:'and to sign up for texts',legalText:{textConfig:{...xo,color:'#3C3C3C',backgroundColor:'#FFFFFF'},content:{}}};var Do;Po.LIVE_SMS,(e=>{const t={...Bo};e&&(t.phoneInput='Your phone number',t.submitButtonText='GET HELP',t.secondarySubmitButtonText='and sign me up for texts')})(Do),yo.SMS;const Mo=e=>e.subType===To.CONVERSATIONAL&&(e.type===Io.ON_SITE||e.type===Io.DESKTOP),Uo=['overlay','support','embedded'],Ho=['immediately','delay','scroll','exitIntent','backInStock','pdpPrice','addToCart'],Fo=e=>!!e&&e.includes('TEXT');var Vo=(e=>(e.SOURCE='source',e.CAMPAIGN='campaign',e.CONTENT='content',e.MEDIUM='medium',e.TERM='term',e))(Vo||{});function jo(e){return'ct'in e&&'canvas'===e.ct}const Go='__attentive_email_creativeFilter';var qo=(e=>(e.OVERLAY_DATA='OVERLAY_DATA',e.EXIT_INTENT='EXIT_INTENT',e))(qo||{});const Yo=e=>{const t=new Date;return t.setTime(t.getTime()+1e3*e),t},$o=()=>Yo(1800),Jo=window;class Wo{MAX_AGE;MAX_AGE_DAYS;userId;__attentive_domain;constructor(){const e=Jo.__attentive_cfg&&Jo.__attentive_cfg.gdpr;this.MAX_AGE=e?33696e3:189216e4,this.MAX_AGE_DAYS=Math.round(this.MAX_AGE/86400),this.userId=null,this.__attentive_domain=Jo.__attentive_domain}getId(){return this.userId||this.setId(),this.userId}rotateId(){this.userId=null,L('__attentive_id'),L('__attentive_cco'),this.setId()}getCookie=e=>document.cookie.replace(new RegExp(`(?:(?:^|.*;\\s*)${e}\\s*=\\s*([^;]*).*$)|^.*$`),'$1');createImg=e=>{new Image(1,1).src=`https://${this.__attentive_domain}${e}`};setId=()=>{const e='__attentive_cco',{getQueryParam:t,getCookie:n,createImg:r}=this,i=n('__attentive_id'),o=n(e),a=t('attn-vid')||t('visitorId'),c=t('attn-sid')||t('subscriberId'),u=t('attn-eid')||t('externalId'),s=t('altid'),d=Boolean(i),l=this.userId;let v=!1;if(o)try{const e=new Date(Number(o)+1e3*this.MAX_AGE),t=new Date;e.valueOf()-t.valueOf()<2592e6&&(v=!0)}catch(e){}d||null==a?i&&a?(this.userId=i,a!==i&&r(`/sv?qid=${a}&cid=${i}`)):on&&null!==localStorage.getItem('__attentive_id')?(this.userId=localStorage.getItem('__attentive_id'),localStorage.removeItem('__attentive_id')):this.userId=!i&&!a||v?an():i:this.userId=a,c?r(`/sv?sid=${c}&cid=${this.userId}`):s?r(u?`/sv?altid=${s}&seid=${u}&cid=${this.userId}`:`/sv?altid=${s}&cid=${this.userId}`):u?r(`/sv?seid=${u}&cid=${this.userId}`):i&&v&&r(`/sv?qid=${i}&cid=${this.userId}`),l!==this.userId&&this.userId&&O('__attentive_id',this.userId,{expires:this.MAX_AGE_DAYS}),o&&!v||O(e,String(Date.now()),{expires:this.MAX_AGE_DAYS})};getQueryParam=e=>{const{queryParams:t}=this;return t(Jo.location.search,e)||t(Jo.location.hash,e)};queryParams(e,t){let n=null;return e.substring(1).split('&').forEach((e=>{const r=e.split('=');r[0]===t&&(n=r[1])})),n}}const Ko={klaviyo:()=>window._learnq&&window._learnq.isIdentified,bouncex:()=>window.bouncex&&window.bouncex.var},Xo={klaviyo:()=>window._learnq&&window._learnq.isIdentified&&window._learnq.isIdentified instanceof Function&&window._learnq.isIdentified(),bouncex:()=>Boolean(window.bouncex&&window.bouncex.vars)&&window.bouncex.vars.email_submitted_attentive};function zo(e){for(const t in e)void 0===e[t]&&delete e[t];return e}const Zo=Jo.__attentive_cfg&&Jo.__attentive_cfg.esms&&Jo.__attentive_cfg.esms in Ko,Qo=Zo&&Ko[Jo.__attentive_cfg.esms],ea=Zo&&Xo[Jo.__attentive_cfg.esms],ta=Zo&&Qo instanceof Function&&ea instanceof Function,na=async()=>{if(ta){const e=async()=>await new Promise((e=>{const t=setInterval((()=>{if(Qo()){clearInterval(t);const n=Go,r=!!ea();O(n,JSON.stringify(r),{expires:$o()}),e()}}),200);setTimeout((()=>{clearInterval(t),e()}),3e3)}));await e()}},ra=e=>-1!==document.cookie.indexOf(e),ia=e=>{return(e=>{if(!e){if(T('__attentive_iss'))return!0;if(window.location.search.includes('externalId='))return O('__attentive_iss','true',{expires:$o()}),!0}return!1})(e.ENABLE_SUBSCRIBER_CREATIVES)||!(!(n=e.REQUIRED_COOKIE)||n.every(ra))||(e=>{if(e){const{key:t,value:n}=e,r=T(t);return void 0!==n?r===n:void 0!==r}return!1})(e.DISALLOWED_COOKIES)||!!(t=e.DISALLOWED_PROPERTIES)&&t()||!!e.SHOULD_BLOCK_PWA_DISPLAY_MODE&&window.matchMedia('(display-mode: standalone)').matches||((e,t)=>{if(window.innerWidth>=760?Boolean(e):Boolean(t))return 0===document.cookie.replace(/(?:(?:^|.*;\s*)__attentive_id\s*=\s*([^;]*).*$)|^.*$/,'$1').length;return!1})(e.BOUNCE_X_DESKTOP_CUSTOMER,e.BOUNCE_X_CUSTOMER);var t,n},oa=e=>new Promise((t=>setTimeout(t,e))),aa=async e=>{if(e){const{thirdPartyVariable:t,timeout:n}=e,r=n||1e3;await(async(e,t)=>{for(;!e();)await oa(t)})(t,r)}};var ca=(e=>(e[e.SHOW=0]='SHOW',e[e.DO_NOT_SHOW=1]='DO_NOT_SHOW',e[e.HIDE_INITIAL=2]='HIDE_INITIAL',e))(ca||{});const ua=(e,t,n)=>!1!==e&&t!==Po.BUBBLE&&n!==ho.PARTIAL,sa='aria-hidden',da=new Map;let la=!1;function va(){for(const[e,t]of Array.from(da.entries()))'attentive_overlay'!==e.id&&(t.processed||(t.processed=!0,e.setAttribute(sa,'true')))}function fa(){for(const[e,t]of Array.from(da.entries()))'attentive_overlay'!==e.id&&t.processed&&(t.processed=!1,t.ariaHidden?e.setAttribute(sa,t.ariaHidden):e.removeAttribute(sa))}const pa=()=>{la=!1,fa()};const ga=new MutationObserver((e=>{for(const t of e)if('attributes'===t.type){if(!la)continue;const e=t.target;if('true'===e.getAttribute(sa))continue;da.delete(e)}const t=Array.from(document?.body?.children??[]);!function(e){for(const t of e)da.has(t)||da.set(t,{ariaHidden:t.getAttribute(sa),processed:!1});la?va():fa()}(t),function(e){for(const t of e)ga.observe(t,{attributeFilter:[sa]})}(t)}));try{document&&ga.observe(document.body,{childList:!0})}catch(e){}const ma=()=>/Safari/.test(navigator.userAgent),ya=(e,t)=>e.slice(0,t.length)===t,ha=()=>{const e={};return document.cookie.split('; ').forEach((t=>{if(ya(t,'__attentive')){const[n,...r]=t.split('=');e[n]=r.join('')}})),e},_a=(e,t)=>{if(t.innerHeight>=t.documentHeight)return!0;const n=(e=>Math.abs(e.top)/(e.documentHeight-e.innerHeight)*100)(t),r=e.value;return r&&n+1>=r},Ea=e=>!!e?.exitIntent?.enabled,Ca=(e,t,n)=>{const r=(e=>e.find((e=>'type'in e&&e.type===Po.BUBBLE)))(e);if(void 0===r)return!1;const i=t&&parseInt(t),o='fields'in r?r?.fields:void 0,a=parseInt(o?.showBubblePV||'');if(void 0===o?.showBubblePV||!i||!n)return!0;const c=i&&n&&Math.abs(i-parseInt(n))+1;return Boolean(c&&c>=a)},wa=e=>{if(!e?.length)return!1;const t=e&&e.find((e=>e.type===Po.BUBBLE)),n=t&&t.fields;return!!(n&&n.countdownSection&&n.countdownSection.active)},ba=(e,t)=>{let n=new Date;switch(e){case bo.DAYS:n=mo(n,{days:Number(t)});break;case bo.HOURS:n=mo(n,{hours:Number(t)});break;case bo.MINUTES:n=mo(n,{minutes:Number(t)});break;case bo.SECONDS:n=mo(n,{seconds:Number(t)})}return n.toISOString()},Ia=e=>{const t='__attentive_timer';if(!T(t)&&e?.enabled&&e?.type===wo.visitor&&e?.durationUnit&&e?.durationValue){O(t,ba(e.durationUnit,e.durationValue))}},Ta=()=>/iPhone|iPad|iPod/.test(navigator.userAgent),Aa=window.matchMedia('(max-width: 480px)'),Sa=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,Oa=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i,La=/android|ipad|playbook|silk/i,Na={nokia:/nokia|lumia/},Pa={genericTab:/tablet/};const ka=window,Ra=()=>{const e=ka?.attn_d0x0b_cfg;if(e){const t=atob(e);return JSON.parse(t).bctu}},xa=(e='default')=>{const t={default:Jo.__attentive_cfg&&Jo.__attentive_cfg.zi,disable:Jo.__attentive_cfg&&Jo.__attentive_cfg.zd,enable:Jo.__attentive_cfg&&Jo.__attentive_cfg.ze};return Jo.__attentive_cfg&&t[e]},Ba=(e,t)=>{const n=document.createElement('div');return n.style.position='fixed',n.style.left='0',n.style.bottom='0',n.style.width='100vw',n.style.height='0',n.style.setProperty('z-index',(e=>{if(e&&e.shouldApplyZIndex&&e.zIndex)return String(e.zIndex);return xa('default')||'9223372036854775807'})(t.CONDITIONAL_Z_INDEX_MAP)||null),n.style.setProperty('color-scheme','none'),n.id=e,n},Da=e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&'hidden'!==Jo.getComputedStyle(e).visibility,Ma=e=>{const t=e||document.documentElement;return{top:t.scrollTop||document.body.scrollTop||window.pageYOffset,documentHeight:t.scrollHeight||document.body.scrollHeight,innerHeight:window.innerHeight}},Ua='__attn_exit_intent_triggered',Ha=()=>void 0!==T(Ua),Fa=()=>{const e=new Date(Date.now()+36e5);O(Ua,'true',{expires:e})},Va=(e,t)=>{const n=r=>{r.clientY>50||(t(),e.removeEventListener('mousemove',n))},r=setTimeout((()=>{e.addEventListener('mousemove',n)}),3e3);return()=>{e.removeEventListener('mousemove',n),clearTimeout(r)}},ja=(e,t,n)=>Math.abs(e)/(t-n)*100,Ga=(e,t,n)=>{let r,i=0;n&&(r=e.querySelector(n)??void 0);const o=Ar((()=>{const{top:n,documentHeight:a,innerHeight:c}=Ma(r);ja(n,a,c)>50&&(0===n&&(i=0),n>i?i=n:ja(n-i,a,c)>3&&(t(),e.removeEventListener('touchmove',o)))}),a=120,{leading:!0,trailing:!0,maxWait:a,...c});var a,c;return e.addEventListener('touchmove',o),()=>e.removeEventListener('touchmove',o)},qa=()=>{const e=(()=>{const e=performance.getEntriesByType('resource').filter((e=>'script'===e.initiatorType&&e.name.includes('dtag.js'))).sort(((e,t)=>e.startTime-t.startTime));if(e.length>0){const t=e[0];return{start:t.fetchStart,end:t.responseEnd}}})(),t=(()=>{const e=performance.getEntriesByType('mark');return{tagLoaded:e.find((e=>e.name===E.TagCoreLoaded)),tagCreativesLoaded:e.find((e=>e.name===E.TagCreativesLoaded))}})(),n={dtagStart:e?.start,dtagEnd:e?.end,tagLoaded:t.tagLoaded?.startTime,tagCreativesLoaded:t.tagCreativesLoaded?.startTime};if(!(()=>{const e=Jo.__attentive_cfg&&Jo.__attentive_cfg.lt&&('1'===Jo.__attentive_cfg.lt||'2'===Jo.__attentive_cfg.lt);return Boolean(e||ta)})()){const e=performance.getEntriesByName(E.FetchCreativesStart,'mark'),t=performance.getEntriesByName(E.FetchCreativesEnd,'mark');if(e.length>1||t.length>1)return{};e.length>0&&(n.fetchCreativesStart=e[0].startTime),t.length>0&&(n.fetchCreativesEnd=t[0].startTime)}return n},Ya=()=>{const e=Jo.__attentive_domain;if(on&&e){const t=Jo.localStorage.getItem('attn_pdp');if(t){const n=JSON.parse(atob(t));if(n[e])return!0===Array.isArray(n[e])?n[e]:[n[e]]}}},$a=function(e){e.preventDefault(),e.stopPropagation()},{toggleScrollLock:Ja,getCurrentValue:Wa}=(()=>{let e,t=!1;return{toggleScrollLock:n=>{if(t=n,n){if(!e){e=window.pageYOffset;try{const t=parseInt(getComputedStyle(document.body).height,10)-(e+window.visualViewport.height);t<0&&window.scrollBy({top:t})}catch{}}document.body.style.overflow='hidden',document.body.style.position='absolute',document.body.style.top=-e+'px',document.body.style.left='0',document.body.style.right='0',document.body.style.bottom='0',document.body.style.height='unset',document.documentElement.style.overflow='hidden',document.documentElement.style.position='absolute',document.documentElement.style.top='0',document.documentElement.style.left='0',document.documentElement.style.right='0',document.documentElement.style.bottom='0'}else document.body.style.removeProperty('overflow'),document.body.style.removeProperty('position'),document.body.style.removeProperty('top'),document.body.style.removeProperty('left'),document.body.style.removeProperty('right'),document.body.style.removeProperty('bottom'),document.body.style.removeProperty('height'),document.documentElement.style.removeProperty('overflow'),document.documentElement.style.removeProperty('position'),document.documentElement.style.removeProperty('top'),document.documentElement.style.removeProperty('left'),document.documentElement.style.removeProperty('right'),document.documentElement.style.removeProperty('bottom'),void 0!==e&&e>=0&&(window.scrollTo({top:e,behavior:'instant'}),e=void 0)},getCurrentValue:()=>t}})();function Ka(e,t){e.ENABLE_SCROLLING_NO_STYLING||(e.ENABLE_SCROLLING_CUSTOM_STYLING_NO_SCROLL_LOCK?e.ENABLE_SCROLLING_CUSTOM_STYLING_NO_SCROLL_LOCK():Wa()&&(Ja(!1),t.style.setProperty('z-index',xa('enable')||'9223372036854775807','important'),e.ENABLE_SCROLLING_CUSTOM_STYLING_WITH_SCROLL_LOCK&&e.ENABLE_SCROLLING_CUSTOM_STYLING_WITH_SCROLL_LOCK())),document.body.removeEventListener('touchmove',$a)}const Xa=async(e,t)=>{if(window.Shopify?.routes?.root){const n={items:[{id:e,quantity:t}]};try{if((await fetch(`${window.Shopify?.routes?.root||'/'}cart/add.js`,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(n)})).ok)return'success'}catch(e){}}};function za(e,t,n){const{action:r,thirdPartyAnalytics:i}=e,o=i&&i[t];if(!o||!o.enabled)return;const a=o.eventOptions?.[r],c=a?.name||Lo[t]?.[So[r]]?.name;if(void 0===c)return;const u=o.reportCreative&&'creativeId'in e?e.creativeId:void 0,s=a&&'reportEmail'in a&&a.reportEmail&&'email'in e?e.email:void 0,d='email'in e?e.email:void 0,l='phone'in e?e.phone:void 0,v='closeType'in e?e.closeType:void 0,f='eventCategory'in o?o.eventCategory:void 0,p=a&&'reportPageType'in a&&a.reportPageType,g=r===So.IMPRESSION&&p&&'pageType'in e?e.pageType:p&&'impressionPageType'in e?e.impressionPageType:void 0;if(t===Oo.GOOGLE_ANALYTICS_4){const e={source:'Attentive',creative_id:u,creative_type:g,email:s};if(Jo.gtag){const t=n.GA4_CUSTOM_EVENT_FORMATTING;Jo.gtag('event',c,zo(t?t(e):e))}else Jo.dataLayer&&Jo.dataLayer.push(zo({...e,event:c}))}t===Oo.GOOGLE_ANALYTICS&&(Jo.ga?Jo.ga((()=>{const e=Jo.ga?.getAll();e&&e.length&&e[0].send('event',f||'Attentive',c,zo({eventLabel:u,dimension1:s,dimension2:v,nonInteraction:r===So.IMPRESSION}))})):Jo.gtag&&Jo.gtag('event',c,zo({event_category:f,event_label:u,dimension1:s,dimension2:v,non_interaction:r===So.IMPRESSION}))),t===Oo.FACEBOOK_PIXEL&&Jo.fbq&&Jo.fbq('track',c,zo({creativeId:u,email:s,closeType:v})),t===Oo.NORTHBEAM_PIXEL&&Jo.Northbeam&&(r===So.EMAIL_LEAD&&d?Jo.Northbeam.fireEmailCaptureEvent(d,'Attentive'):r===So.LEAD&&l&&Jo.Northbeam.fireCustomGoal(`phone_capture: ${l}`,{})),t===Oo.DATALAYER_PUSH&&(Jo.dataLayer=Jo.dataLayer||[],Jo.dataLayer.push(zo({event:c,source:'Attentive',creative_id:u,email:s})))}const Za='__attentive_vf';function Qa(){return T(Za)}const ec={marketing:{overlayElementID:'attentive_overlay',creativeContainerID:'attentive_creative',creativeContainerTitle:'Sign Up via Text for Offers',useCustomEventHandling:!0},'live-sms':{overlayElementID:'attentive_live_sms_overlay',creativeContainerID:'attentive_live_sms_creative',creativeContainerTitle:'Get real-time support via SMS',useCustomEventHandling:!1},backInStock:{overlayElementID:'attentive_overlay',creativeContainerID:'attentive_creative',creativeContainerTitle:'Sign Up via Text for Offers',useCustomEventHandling:!0},topBar:{overlayElementID:'attentive_top_bar_overlay',creativeContainerID:'attentive_top_bar_creative',creativeContainerTitle:'Sign Up via Text for Offers',useCustomEventHandling:!0},pdpPrice:{overlayElementID:'attentive_pdp_price_overlay',creativeContainerID:'attentive_pdp_price_creative',creativeContainerTitle:'Sign Up via Text for Offers',useCustomEventHandling:!0}};class tc{clientConfig;userId;lastElementInFocus=null;email=null;creativeContainer;overlayElement;loaded=!1;shouldResetIFrame;initialBottom=0;requireRepaintOnOpen=!1;shouldDisableScroll=!1;attentiveConfig;#e;useCustomEventHandling=!1;windowEvent;onLoadFunction;constructor(e,t,n,r,i,o){this.clientConfig=e,this.useCustomEventHandling=o,this.userId=t;const a=Ba(n,e),c=((e,t,n)=>{const r=document.createElement('iframe');r.style.width='100%',r.style.height='0',r.style.position='absolute',r.style.bottom='0',r.style.opacity='0',r.style.transition='opacity 500ms',r.style.border='0',r.style.overflow='hidden',r.style.visibility='hidden',r.allowTransparency='true',r.referrerPolicy='origin',r.id=e,r.allow='clipboard-write';const i=n.IFRAME_CLASS;i&&i(r);const o=Jo?.__attentive_cfg?.iframeTitle;return r.title=o||t,r})(r,i,e);var u;a.appendChild(c),this.creativeContainer=c,this.overlayElement=a,this.shouldResetIFrame=Ta()&&ma()&&!!document.querySelector('meta[name=apple-itunes-app]'),this.shouldResetIFrame&&(this.creativeContainer.style.transition='opacity 500ms, bottom 150ms ease-in-out',this.handleIFramePlacement()),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.orientationChangeHandler=this.orientationChangeHandler.bind(this),this.refocusEventListener=this.refocusEventListener.bind(this),this.windowEvent=(u=this.clientConfig?.CUSTOM_WINDOW_EVENTS,u&&document.querySelector(u)||Jo)}creativeEventHandler=async e=>{if(e.data&&Object.prototype.hasOwnProperty.call(e.data,'__attentive')){const t=e.data.__attentive;if(t.creativeId!==this.attentiveConfig?.trackingParams?.creativeId)return;const n=e.ports;!function(e,t){const n=e.thirdPartyAnalytics;for(const r in n){const i=n[r];i?.enabled&&za(e,r,t)}}(t,this.clientConfig);let r=!1;const i=this.attentiveConfig?.trackingParams.creativeId,o=this.attentiveConfig?.trackingParams?.countdownTimerFilter,a=s(),c=m();switch(t.action){case So.OPEN:r=ua(this.clientConfig.ada,t.pageType,t.layout),r&&(la=!0,va()),this.useCustomEventHandling&&this.clientConfig.CUSTOM_OPEN_EVENTS&&this.clientConfig.CUSTOM_OPEN_EVENTS(t),this.openCreative(t);break;case So.CLOSE:this.creativeContainer.style.opacity='0',r=ua(this.clientConfig.ada),setTimeout((()=>{this.hide(i),this.resetFocusOnCreativeClose()}),500),r&&pa(),this.useCustomEventHandling&&this.clientConfig.CUSTOM_CLOSE_EVENTS&&this.clientConfig.CUSTOM_CLOSE_EVENTS(t),t.shouldSetViewFatigueCookie&&(Qa()||O(Za,'true',{expires:Yo(86400)}));break;case So.LEAD:a&&(a.setAttribute('data-signup-complete','true'),l(a)),c&&(c.setAttribute('data-signup-complete','true'),_(c)),this.useCustomEventHandling&&await(async(e,t)=>{e.CUSTOM_LEAD_EVENTS&&await e.CUSTOM_LEAD_EVENTS(t)})(this.clientConfig,t),Jo.__attentive_cfg&&'1'===Jo.__attentive_cfg.sdj&&function({phone:e,creativeId:t}){try{window.sd&&(window.sd.identify('',{phone_number:e}),window.sd.track('registration',{phone_number:e,properties:{creativeId:t}}))}catch(e){}}(t),n?.length&&n[0]&&n[0].postMessage('custom logic completed'),(({phone:e})=>{ka?.edgetag&&Ra()&&e&&ka.edgetag('user','phone',e)})(t);break;case So.ADD_TO_CART:n?.length&&n[0]&&n[0].postMessage({message:'success'===await Xa(t.variantId,t.quantity)?'success':'failure',variantId:t.variantId});break;case So.IMPRESSION:this.useCustomEventHandling&&this.clientConfig.CUSTOM_IMPRESSION_EVENTS&&this.clientConfig.CUSTOM_IMPRESSION_EVENTS(t),this.forwardEmail(t);break;case So.EMAIL_LEAD:this.useCustomEventHandling&&this.clientConfig.CUSTOM_EMAIL_LEAD_EVENTS&&this.clientConfig.CUSTOM_EMAIL_LEAD_EVENTS(t),Jo.__attentive_cfg&&'1'===Jo.__attentive_cfg.klv&&(({email:e})=>{window._learnq&&window._learnq.push(['identify',{$email:e}])})(t),Jo.__attentive_cfg&&'1'===Jo.__attentive_cfg.wpm&&function({email:e}){window.postMessage({func:'wrPush',message:e},'*')}(t),Jo.__attentive_cfg&&'1'===Jo.__attentive_cfg.ges&&window.geq&&window.geq.suppress(),Jo.__attentive_cfg&&'1'===Jo.__attentive_cfg.oma&&(({email:e})=>{window.ometria&&window.ometria.identify&&window.ometria.identify(e)})(t),Jo.__attentive_cfg&&'1'===Jo.__attentive_cfg.lcses&&function({email:e}){try{window.localStorage.setItem('_attn_',JSON.stringify({email:e}))}catch(e){}}(t),Jo.__attentive_cfg&&'1'===Jo.__attentive_cfg.sdes&&function({email:e,creativeId:t}){try{window.sd&&(window.sd.identify('',{email:e}),window.sd.track('registration',{email:e,properties:{creativeId:t}}))}catch(e){}}(t),(({email:e})=>{ka?.edgetag&&Ra()&&e&&ka.edgetag('user','email',e)})(t);break;case So.EXPAND:this.useCustomEventHandling&&this.clientConfig.CUSTOM_EXPAND_EVENTS&&this.clientConfig.CUSTOM_EXPAND_EVENTS(t),o&&(Ia(o),this.sendMessageToCreative(qo.OVERLAY_DATA,{overlayData:this.getOverlayData()}));break;case So.SHRINK:r=ua(this.clientConfig.ada),r&&pa(),this.useCustomEventHandling&&this.clientConfig.CUSTOM_SHRINK_EVENTS&&this.clientConfig.CUSTOM_SHRINK_EVENTS(t);break;case So.DETECT_EXIT_INTENT:Ta()&&ma()&&(this.requireRepaintOnOpen=!0),this.detectExitIntent(t,o);break;case So.SET_COOKIE:(({cookieName:e,cookieValue:t,cookieAttributes:n=[]})=>{const r=[`${ya(e,'__attentive')?'':'__attentive'}${e}=${t}`,'path=/',...n].join('; ');document.cookie=r})(t);break;case So.RESIZE_FRAME:this.applyStylesToIFrame(t.style),this.resetIFrame(t.style?.bottom??'0');break;case So.CREATIVE_PAGE_VIEW:this.useCustomEventHandling&&this.clientConfig.CUSTOM_CREATIVE_PAGE_VIEW_EVENTS&&this.clientConfig.CUSTOM_CREATIVE_PAGE_VIEW_EVENTS(t)}}};orientationChangeHandler(e){e.matches||this.hide()}focus(){this.clientConfig.CUSTOM_SKIP_FOCUS||this.creativeContainer.focus()}refocusEventListener(){this.attentiveConfig?.creativeConfig?.type===Io.DESKTOP&&this.shouldDisableScroll&&Jo.setTimeout((()=>{this.focus()}))}openCreative=e=>{var t,n,r;this.clientConfig.CUSTOM_DISABLE_OPEN_CREATIVE&&this.clientConfig.CUSTOM_DISABLE_OPEN_CREATIVE()||(!this.loaded&&function(){const{userAgent:e}=window.navigator,{width:t}=window.screen,n=new RegExp(Na.nokia),r=new RegExp(Pa.genericTab),i=new RegExp(Sa),o=new RegExp(Oa),a=new RegExp(La);return!r.test(e)&&!(!n.test(e)&&(i.test(e)||o.test(e.substr(0,4))?t>480:(a.test(e),1)))}()&&Aa.addListener(this.orientationChangeHandler),this.shouldDisableScroll=e.pageType!==Po.BUBBLE&&e.layout!==ho.PARTIAL,Jo.removeEventListener('focus',this.refocusEventListener),Jo.addEventListener('focus',this.refocusEventListener),this.applyStylesToIFrame(e.style),this.creativeContainer.style.opacity='1',this.creativeContainer.style.visibility='visible',this.shouldDisableScroll?(t=this.clientConfig,n=this.overlayElement,t.DISABLE_SCROLLING_NO_STYLING||(t.DISABLE_SCROLLING_CUSTOM_STYLING_NO_SCROLL_LOCK?t.DISABLE_SCROLLING_CUSTOM_STYLING_NO_SCROLL_LOCK():(Ja(!0),n.style.setProperty('z-index',xa('disable')||'9223372036854775807','important'),t.DISABLE_SCROLLING_CUSTOM_STYLING_WITH_SCROLL_LOCK&&t.DISABLE_SCROLLING_CUSTOM_STYLING_WITH_SCROLL_LOCK())),document.body.addEventListener('touchmove',$a)):Ka(this.clientConfig,this.overlayElement),this.requireRepaintOnOpen&&(r=this.overlayElement,setTimeout((()=>{'fixed'===r.style.position&&(r.style.position='relative',r.offsetHeight,r.style.position='fixed')}),100)),this.resetIFrame(e.style?.bottom??'0'),e.pageType!==Po.BUBBLE&&this.focus())};applyStylesToIFrame=e=>{const t=this.clientConfig.IFRAME_CLASS;!t?.(this.creativeContainer)&&e&&Object.assign(this.creativeContainer.style,e)};resetIFrame=e=>{this.shouldResetIFrame&&(this.initialBottom=parseInt(e,10)||0,Jo.addEventListener('resize',this.handleIFramePlacement),this.windowEvent.addEventListener('scroll',this.handleIFramePlacement),this.handleIFramePlacement())};handleIFramePlacement=()=>{Jo.innerHeight{this.clientConfig.ADA_COMPLIANT&&(Jo.addEventListener('keydown',(e=>27===e.keyCode&&this.hide()),!1),this.lastElementInFocus=document.activeElement)};resetFocusOnCreativeClose=()=>{if(this.clientConfig.ADA_COMPLIANT)if(this.lastElementInFocus&&'body'!==this.lastElementInFocus.nodeName.toLowerCase()&&Da(this.lastElementInFocus))this.lastElementInFocus.focus();else{const e=document.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');for(const t of e)if(Da(t)){t.focus();break}}};postFrameHandler=Ar((()=>{const e=Math.floor(this.creativeContainer.getBoundingClientRect().bottom)-Jo.innerHeight;this.creativeContainer.clientHeight>=document.body.clientHeight?this.creativeContainer.style.bottom='0':e>0&&(this.creativeContainer.style.bottom=`${e+this.initialBottom}px`)}),250);setEmail(e){this.email=e}load(e){Jo.attnOverlayLoaded=!0;const t=this.clientConfig.TOP_BAR_CONTAINER_TARGET&&this.clientConfig.TOP_BAR_CONTAINER_TARGET(e.attentiveConfig.trackingParams.creativeId),n=this.clientConfig.CONTAINER_TARGET_OVERLAY&&this.clientConfig.CONTAINER_TARGET_OVERLAY(e.attentiveConfig.trackingParams.creativeId);t?t.appendChild(this.creativeContainer):n?n.appendChild(this.overlayElement):document?.body?.appendChild(this.overlayElement),this.loaded=!0}show(e){this.handleADACompliance(),this.loaded||this.load(e),this.populateIframeContent(e),Jo.addEventListener('resize',this.sendOverlayDataToCreative)}generateOnLoadFunction=e=>()=>{const{attentiveConfig:t}=e;this.#e=new MessageChannel,this.creativeContainer.contentWindow?.postMessage('__attentiveInit','*',[this.#e.port2]),this.sendAttentiveConfigToCreative(t)};populateIframeContent=async e=>{const{creativeRendererIndexURL:t,attentiveConfig:n}=e;this.creativeContainer.src=t,this.iframeLoaded(),this.attentiveConfig=n,this.onLoadFunction&&this.creativeContainer.removeEventListener('load',this.onLoadFunction),this.onLoadFunction=this.generateOnLoadFunction(e),this.creativeContainer.addEventListener('load',this.onLoadFunction,{once:!0})};getOverlayData=()=>({vendorIDs:Vt([Rt,xt,Bt,Dt,Mt]),clientWidth:document.documentElement.clientWidth,performanceMetrics:qa(),attentiveCookies:ha(),productViewData:Ya()});sendMessageToCreative=(e,t)=>{this.creativeContainer&&this.creativeContainer.contentWindow&&this.creativeContainer.contentWindow.postMessage({__attentive:{type:e,data:t}},'*')};sendOverlayDataToCreative=Ar((()=>{this.sendMessageToCreative(qo.OVERLAY_DATA,{overlayData:this.getOverlayData()})}),250);sendAttentiveConfigToCreative=e=>{if(!this.#e)return;const t={__attentiveConfig:{...e,overlayData:this.getOverlayData()}};this.#e.port1.postMessage(t)};sendTriggeredExitIntentToCreative=e=>{Ha()||(e&&(Ia(e),this.sendMessageToCreative(qo.OVERLAY_DATA,{overlayData:this.getOverlayData()})),Fa(),this.sendMessageToCreative(qo.EXIT_INTENT,{hasTriggeredExitIntent:!0}))};detectExitIntent=(e,t)=>{const{creativeType:n,isBubbleCreative:r}=e;r&&(Ha()||(n===Io.DESKTOP?Va(document,(()=>this.sendTriggeredExitIntentToCreative(t))):n===Io.ON_SITE&&Ga(document,(()=>this.sendTriggeredExitIntentToCreative(t)),this.clientConfig.CUSTOM_EXIT_INTENT_SCROLL_ELEMENT_SELECTOR||'')))};iframeLoaded(){(e=>{if(e.ANNOUNCE_ADA_POPUP&&-1!==document.cookie.indexOf('attn_ada_test')){const e=document.querySelector('.attentiveButton');e&&e.click()}})(this.clientConfig),Jo&&Jo.getComputedStyle&&'center'===Jo.getComputedStyle(this.overlayElement).textAlign&&(this.overlayElement.style.textAlign='left')}hide(e){if(e&&this.attentiveConfig?.trackingParams.creativeId&&e!==this.attentiveConfig?.trackingParams.creativeId)return;const t=this.clientConfig.TOP_BAR_CONTAINER_TARGET&&e&&this.clientConfig.TOP_BAR_CONTAINER_TARGET(e);t?t.removeChild(this.creativeContainer):this.overlayElement.parentNode&&this.overlayElement.parentNode.removeChild(this.overlayElement),this.creativeContainer.src='',this.creativeContainer.style.visibility='hidden',this.clientConfig.ENABLE_SCROLL_BLACKLIST_SITE||Ka(this.clientConfig,this.overlayElement),Aa.removeListener(this.orientationChangeHandler),Jo.removeEventListener('resize',this.sendOverlayDataToCreative),Jo.removeEventListener('focus',this.refocusEventListener),this.loaded=!1}forwardEmail(e){this.email&&(async e=>{const{domain:t=window.__attentive_domain,creativeId:n,email:r,visitorId:i,impressionPageType:o}=e,a=`https://${t}/track`,c=new URLSearchParams;c.append('s','1'),c.append('a','CLICK'),c.append('id',i),c.append('e',r),o&&c.append('pt',o),n&&c.append('c',n);const u=T('_attn_bopd_');u&&c.append('abs',u);const s=Vt([Rt,xt,Bt,Dt,Mt]);s&&c.append('cui',JSON.stringify(s)),fetch(`${a}?${c}`,{method:'GET',mode:'no-cors'})})({email:this.email,creativeId:e.creativeId,visitorId:`${this.userId}`,impressionPageType:e.pageType})}}const nc='__attn_atc_triggered',rc=({pageView:e,pageviewRuleLowerBound:t,bubbleMultiPage:n,bubbleCanvasPage:r})=>{const i=parseInt(e);let o=0;if(n){const e=n.fields;o=parseInt(e.showBubblePV||'')}r&&(o=parseInt(r.showBubblePV||''));return Math.abs(i-parseInt(t))+1>=o},ic=e=>{const{firstPageDisplayed:t,pageview:n,pageviewRuleLowerBound:r}=e.trackingParams;let i=e.creativeConfig,o=!1;if(e.creativeConfig?.subType===To.DYNAMIC)if(jo(e.creativeConfig)){const a=Object.values(e.creativeConfig.pages).find((e=>'type'in e&&e.type===Po.BUBBLE));if(a)if(t){if(!('BUBBLE'===t)&&a.nextPage){const t=e.creativeConfig,n=a.id,r=a.nextPage;delete t.pages[n],t.firstPageId=r,o=!0,i=t}}else{if(!!!Qa()&&n&&r){const{configWithSkippedBubblePage:t,hasSkippedBubblePage:c}=(({pageView:e,pageviewRuleLowerBound:t,creativeConfig:n,bubblePage:r})=>{const i=n,o=rc({pageView:e,pageviewRuleLowerBound:t,bubbleCanvasPage:r});if(!o&&r.nextPage){const e=r.id,t=r.nextPage;delete i.pages[e],i.firstPageId=t}return{configWithSkippedBubblePage:i,hasSkippedBubblePage:!o}})({pageView:n,pageviewRuleLowerBound:r,creativeConfig:e.creativeConfig,bubblePage:a});o=c,i=t}}}else{const a=e.creativeConfig.pages.find((e=>e.type===Po.BUBBLE));if(a)if(t){if(!('BUBBLE'===t)){const t=e.creativeConfig;t.pages=t.pages.filter((e=>e.type!==Po.BUBBLE)),o=!0,i=t}}else{if(!!!Qa()&&n&&r){const{configWithSkippedBubblePage:t,hasSkippedBubblePage:c}=(({pageView:e,pageviewRuleLowerBound:t,creativeConfig:n,bubblePage:r})=>{const i=n,o=rc({pageView:e,pageviewRuleLowerBound:t,bubbleMultiPage:r});return o||(i.pages=i.pages.filter((e=>e.type!==Po.BUBBLE))),{configWithSkippedBubblePage:i,hasSkippedBubblePage:!o}})({pageView:n,pageviewRuleLowerBound:r,creativeConfig:e.creativeConfig,bubblePage:a});o=c,i=t}}}return{filteredCreativePagesConfig:i,skippedBubblePage:o}},oc=(e,t,n,r)=>{const{overlayElementID:i,creativeContainerID:o,creativeContainerTitle:a,useCustomEventHandling:c}=ec[r];let u,s=-1,v=[];const f=new tc(e,t.getId(),i,o,a,c),p=e=>{const t=parseInt(e.attentiveConfig.trackingParams.creativeId,10);n.registerCreativeMessageHandler(t,f.creativeEventHandler),f.show(e)},m=e=>{const t=parseInt(e.attentiveConfig.trackingParams.creativeId,10);n.registerCreativeMessageHandler(t,f.creativeEventHandler),f.load(e),s=t},h=(r,i={})=>{const o=(a=r,JSON.parse(JSON.stringify(a)));var a;const{email:c,hideInitialView:h,skipLoadingRestrictions:E,previouslyLoaded:C,trigger:w='immediately',initiator:b}=i,I=parseInt(o.attentiveConfig.trackingParams.creativeId,10);(()=>{const e=f.attentiveConfig?.trackingParams?.creativeId;e&&n.unregisterCreativeMessageHandler(parseInt(e,10))})();const{attentiveConfig:A}=o,{filteredCreativePagesConfig:S,skippedBubblePage:O}=ic(A);if(A.creativeConfig=S,A.creativeParams.skippedBubblePage=O,A.creativeParams.displayTrigger=w,A.creativeParams.initiator=b,A.creativeParams.adblockerStatus=T('_attn_bopd_'),void 0!==c&&f.setEmail(c),E)return C?void p(o):(m(o),void(s===I&&p(o)));const L=async()=>{const t=await(async e=>(await Promise.all([na(),aa(e.SHOULD_DELAY_OVERLAY_THIRDPARTY)]),Jo.__attentive_cfg&&'1'===Jo.__attentive_cfg.lt?1:Jo.__attentive_cfg&&'2'===Jo.__attentive_cfg.lt?Jo.attnOverlayHidden?1:2:ia(e)?1:0))(e);t!==ca.DO_NOT_SHOW&&(m(o),s!==I||h||p(o))},N=()=>{const n=o.attentiveConfig.displayRules,r={immediately:()=>{L()},delay:()=>{const e=(e=>{if(e?.delay?.enabled&&Number(e.delay.value))return e?.delay})(n),t=setTimeout(L,1e3*(e?.value??0));v.push((()=>clearTimeout(t)))},scroll:()=>{const t=(e=>{if(e?.scroll?.enabled&&Number(e.scroll.value)>-1)return e?.scroll})(n);if(Number(t?.value)>-1){const n=()=>{const r=e?.CUSTOM_WINDOW_EVENTS&&document.querySelector(e.CUSTOM_WINDOW_EVENTS)||void 0,i=Ma(r);(0===t?.value||t&&i&&_a(t,i))&&(L(),Jo.removeEventListener('scroll',n))};Jo.addEventListener('scroll',n),n(),v.push((()=>Jo.removeEventListener('scroll',n)))}},exitIntent:()=>{const t=Ea(n),r=o.attentiveConfig.trackingParams.countdownTimerFilter;if(t){const t=o.attentiveConfig.creativeConfig,{pageview:n,pageviewRuleLowerBound:i}=o.attentiveConfig.trackingParams,{type:a}=t;let c=!1,u=!1;if(jo(t)){const e=Object.values(t.pages).find((e=>'type'in e&&e.type===Po.BUBBLE));e&&(c=((e,t,n)=>{const r=t&&parseInt(t),i=parseInt(e.showBubblePV);if(!r||!n)return!0;const o=r&&n&&Math.abs(r-parseInt(n))+1;return Boolean(o&&o>=i)})(e,n,i))}else c=Ca(t.pages,n,i),u=wa(t.pages);const s=()=>{if(Fa(),r?.enabled&&r.type===wo.visitor)return Ia(r),void L();L()};if(c)u&&r&&r?.enabled&&r?.type===wo.visitor&&Ia(r),L();else{if(Ha())return;if(a===Io.DESKTOP){const e=Va(document,s);v.push(e)}if(a===Io.ON_SITE){const t=Ga(document,s,e.CUSTOM_EXIT_INTENT_SCROLL_ELEMENT_SELECTOR||'');v.push(t)}}}},backInStock:()=>{const e=o.attentiveConfig.creativeConfig;if('customTrigger'in e&&'backInStock'===e.customTrigger?.type){const n=document.getElementById('attn-waitlist-trigger');if(n){const r=d(e.customTrigger);r.onclick=async()=>{const e=n.getAttribute('data-product-id'),i=n.getAttribute('data-variant-id');if(e&&i){const n=new URLSearchParams;n.append('c',o.attentiveConfig.trackingParams.creativeId),n.append('id',t.getId()??''),fetch(`https://${Jo.__attentive_domain}/user-input-collection?${n.toString()}`,{method:'POST',body:JSON.stringify({waitlistEnrollment:{productId:e,variantId:i}})}),Fo(o.attentiveConfig.trackingParams.subscriberChannels)||'true'===r.getAttribute('data-signup-complete')?l(r):(m(o),p(o))}},n.appendChild(r)}}},pdpPrice:()=>{const e=o.attentiveConfig.creativeConfig;if('customTrigger'in e&&'pdpPrice'===e.customTrigger?.type){const t=document.getElementById(g);if(t){const n=y(e.customTrigger);n.onclick=async()=>{Fo(o.attentiveConfig.trackingParams.subscriberChannels)||'true'===n.getAttribute('data-signup-complete')?_(n):(m(o),p(o))},t.appendChild(n)}}},addToCart:()=>{u=o}};o.attentiveConfig.creativeConfig&&!jo(o.attentiveConfig.creativeConfig)&&((e,t,n)=>{const r=Ea(t),i=e.attentiveConfig.trackingParams.countdownTimerFilter,o=wa(n);if(!r&&i?.enabled&&i?.type===wo.visitor){const{pageview:t,pageviewRuleLowerBound:r}=e.attentiveConfig.trackingParams;n&&t&&r&&Ca(n,t,r)?o&&Ia(i):Ia(i)}})(o,n,o.attentiveConfig.creativeConfig.pages);return r[w](),{triggerAddToCartCreative:r.addToCart}},P=e.SHOULD_DELAY_OVERLAY_CUSTOM;if(P)return void P(N);const{triggerAddToCartCreative:k}=N();return{triggerAddToCartCreative:k}};return{showCreative:h,showCreatives:(e,t)=>{Ho.forEach((n=>{const r=e[n];r&&h(r,{...t,trigger:n})}))},hideCreatives:()=>{f.hide(),v.forEach((e=>e())),v=[]},triggerAddToCartCreative:()=>{const e=u;if(!e)return;let t='page',n=0;const r=e.attentiveConfig.displayRules?.addToCart,{trackingParams:i}=e.attentiveConfig;if(r?.enabled&&r.config&&r.config.firstPage&&r.config.frequency?(t=r.config.frequency,n=parseInt(r.config.firstPage,10)):i.aiCreativeRules&&(t='session',n=8),'session'===t&&void 0!==T(nc))return;if(i.pageview&&parseInt(i.pageview,10){const e=new Date(Date.now()+18e5);O(nc,'true',{expires:e})})()}}},ac=()=>{const e=new Map,t=t=>{if(!(n=t).data||!Object.prototype.hasOwnProperty.call(n.data,'__attentive'))return;var n;const{data:{__attentive:{creativeId:r}}}=t,i=e.get(parseInt(r,10));i&&i(t)};window.removeEventListener('message',t),window.addEventListener('message',t);return{registerCreativeMessageHandler:(t,n)=>{e.set(t,n)},unregisterCreativeMessageHandler:t=>{e.delete(t)},removeEventListener:()=>{window.removeEventListener('message',t)}}},cc=async e=>{if(e){const{interval:t,conditionCheck:n,maxTime:r}=e;await(async(e,t,n)=>{const r=n?ba(bo.SECONDS,n):null;for(;(!r||(new Date).toISOString()<=r)&&!e();)await oa(t)})(n,t,r)}};let uc=e=>new Promise((t=>{setTimeout((()=>{const n=document.createElement('script');n.type='text/javascript',n.src=`https://cdn.attn.tv/growth-tag-assets/client-configs/${e}.js`,n.setAttribute('async','true'),n.onload=()=>{const e=Jo.__attentive_client_cfg;return t(e||null)},n.onerror=()=>t(null);((document.getElementsByTagName('head')||[null])[0]||document.getElementsByTagName('script')[0].parentNode).appendChild(n)}))}));({}).VITE_LOCAL_CLIENT_CONFIG&&(require(`../client-configs/${{}.VITE_LOCAL_CLIENT_CONFIG}`),uc=async e=>Jo.__attentive_client_cfg??{});const sc=async()=>{const e=(()=>{const e={},t=Jo?.attn_d0x0b_cfg;if(t){const n=atob(t),r=JSON.parse(n);e.creativesConfig=r.cc,e.externalCompanyId=r.ceid}return e})();return{...e.externalCompanyId?await(async e=>await uc(e)||{})(e.externalCompanyId):{},...e.creativesConfig}},dc='__attentive_ss_referrer',lc='ORGANIC',vc=()=>{const e=T(dc)??null;if(e)return e;const t=document.referrer||lc;return O(dc,t,{expires:$o()}),t};function fc(e){if(!e.includes('?'))return{};return e.slice(e.indexOf('?')+1).split('&').reduce(((e,t)=>{const[n,r]=t.split('=');return e[n]=r,e}),{})}function pc(e){const t=fc(location.search);return t[e]?t[e]:null}const gc='utm_',mc='__attentive_utm_param_',yc=()=>{const e={};for(const t of Object.values(Vo)){const n=T(`${mc}${t}`);n&&(e[t]=n)}return e},hc=(e,t)=>{const n={};Array.isArray(e.cook)&&e.cook.forEach((e=>{const t=T(e);void 0!==t&&(n[e]=t)}));return{cookies:n,utmParams:yc(),productIds:(()=>{const e=localStorage.getItem('attn_pdp');if(e)try{const t=JSON.parse(atob(e)),n=Object.values(t)[0];return n.map((e=>parseInt(e.sku))).filter((e=>!isNaN(e)))}catch(e){}})(),pd:(()=>{const e={adblocked:1,browser:2,unknown:3}[T('_attn_bopd_')];if(e)return e})(),...t!==lc&&{referrer:t}}},_c='__attentive_pv';function Ec(){const e=parseInt(T(_c)??'',10);return e||0}const Cc=e=>{let t;e&&(t=e());const n=(()=>{if(Zo){const e=T(Go);return!!e&&'false'!==e}})();return n&&(t=n),Boolean(t)},wc=e=>{try{if(e)return e()}catch{return}},bc=e=>{let t;if(e.app)t=(()=>{try{return new URLSearchParams(window.location.search).get('debug')}catch(e){return null}})();else if(e.DEBUG_PASSWORD)return t},Ic=e=>{const{customFilterParam:t,anonymousId:n,creativeID:r,clientConfig:i,userId:o,targets:a,triggers:c}=e,u=new URLSearchParams;u.append('v','4.38.25'),u.append('r',window.top.document.referrer),u.append('id',`${o}`),u.append('pv',`${Ec()}`),u.append('l',window.top.document.location.href);const{deviceWidth:s,deviceHeight:d}=(e=>{let t=window.innerWidth,n=window.innerHeight;if(e){const{width:r,height:i}=e();t=r,n=i}return{deviceWidth:t,deviceHeight:n}})(i.CUSTOM_DEVICE_SIZE);u.append('w',`${s}`),u.append('h',`${d}`);const l=vc();l&&u.append('ss_ref',`${l}`);const v=((e,t)=>{let n;return t&&(n=t()),n=e||n,n})(n,i.ANON_ID_PARAMS);v&&u.append('a',v);const f=((e,t)=>{let n;return t&&(n=t()),n=e||n,n&&'string'==typeof n&&(n=n.replace(/"/g,'')),n})(t,i.GET_CREATIVE_FILTER_PARAM);f&&u.append('s',`${f}`);const p=Cc(i.GET_EMAIL_CREATIVE_FILTER_PARAM);p&&u.append('hasEmail',`${p}`),r&&u.append('force_show_creative',`${r}`);const g=pc('ignore_filters');g&&u.append('ignore_filters',g);const m=(()=>{const e=T('__attentive_timer');if(e&&new Date>new Date(e))return!0;return!1})();m&&u.append('rct_exp',`${m}`),a&&a.forEach((e=>{u.append('ta',e)})),c&&c.forEach((e=>{u.append('tr',e)}));const y=pc('attn-eid')||pc('externalId');y&&u.append('seid',y);const h=pc('altid');h&&u.append('altid',h);const _=bc(i);return _&&u.append('debug',_),u.append('f','2'),u},Tc=e=>decodeURIComponent((e||'').replace(/\+/g,' ')),Ac=(e,t)=>{const n={},r=Jo.__attentive_domain||'',i=e=>{const i=((e,t,n)=>({creativeConfig:e.creativeConfig&&JSON.parse(e.creativeConfig),companyMetadata:{companyName:Tc(e.companyName),displayName:Tc(e.displayName),companyUrl:e.companyUrl,customerPrivacyLink:e.privacyLink,customerTermsLink:e.customerTermsLink,attentivePrivacyLink:e.attentivePrivacyLink,attentiveTermsLink:e.termsLink,allAttentiveTermsLinks:e.allAttentiveTermsLinks||{},emailAddress:e.emailAddress,companyAddress:e.companyAddress,country:e.country,language:e.language,companyPhone:e.companyPhone},displayRules:e.displayRules,creativeParams:{showEmail:e.showEmail?'true':'false'},trackingParams:{attnDomain:t,attentiveAPI:e.attentiveAPI,impressionId:e.impressionId,creativeId:e.creativeId,creativeName:e.creativeConfig&&JSON.parse(e.creativeConfig)?.base?.fields?.creativeName,userId:e.userId,isSubscriber:e.isSubscriber,hasEmail:Cc(n.GET_EMAIL_CREATIVE_FILTER_PARAM),userEmail:wc(n.GET_EMAIL_CREATIVE_PARAM),subscriberChannels:e.subscriberChannels,companyExternalId:e.encodedCompanyExternalId,sourceUrl:e.sourceUrl,environment:e.environment,anonymousId:e.anonymousId,encodedSubscriberExternalId:e.encodedSubscriberExternalId,templateId:'string'==typeof e.templateId?parseInt(e.templateId,10):void 0,pageview:'null'===e.pageview?void 0:e.pageview,pageviewRuleLowerBound:'null'===e.pageviewRuleLowerBound?void 0:e.pageviewRuleLowerBound,countdownTimerFilter:e.countdownTimerFilter,productVariants:e.productVariants,firstPageDisplayed:e.firstPageDisplayed,aiCreativeRules:e.aiCreativeRules},deciders:e.deciders||{},overrides:{}}))(e.renderingFields,r,t),o=Ho.filter((e=>i.displayRules&&i.displayRules[e]?.enabled));o.length||o.push('immediately');const a=(e=>Mo(e.creativeConfig)?'support':['63206','441976'].includes(e.trackingParams.creativeId)?'embedded':'overlay')(i),c=n[a]??{};o.forEach((t=>{c[t]={attentiveConfig:i,creativeRendererIndexURL:e.contentUrl}})),n[a]=c};if((e=>'renderingFields'in e)(e))i(e);else if((e=>'creatives'in e)(e)){const{creatives:{marketing:t,'live-sms':n,topBar:r}}=e;t&&t.length>0&&i(t[0]),n&&n.length>0&&i(n[0]),r&&r.length>0&&i(r[0])}else Uo.forEach((t=>{const n=e.targets[t];n&&Ho.forEach((e=>{const t=n[e];t&&i(t)}))}));return n},Sc=(e,t)=>{const n=JSON.parse(JSON.stringify(e)),r=Object.values(n.pages).find((e=>'type'in e&&e.type===Po.BUBBLE));if(r){const e=r.styles;void 0===e.bottom&&void 0!==e.top||((e,t)=>{switch(t){case ko.LEFT:e.left&&(e.right='5px',e.left=void 0);break;case ko.RIGHT:e.right&&(e.left='5px',e.right=void 0)}})(e,t)}return n},Oc=(e,t)=>{const n=JSON.parse(JSON.stringify(e)),r=n.pages.find((e=>'type'in e&&e.type===Po.BUBBLE));if(r){const e=r.fields.position,n=r.fields.verticalPosition;void 0!==n&&n!==Ro.BOTTOM||e!==t||(r.fields.position=e===ko.LEFT?ko.RIGHT:ko.LEFT)}return n},Lc=e=>{const t=e.support,n=e.overlay,r=e.embedded;if(!t||!n)return e;const i=(e=>Ho.map((t=>{const n=e[t]?.attentiveConfig?.creativeConfig;return n&&Mo(n)?n.base.fields.position:null})).find((e=>null!==e)))(t);return i?(Ho.forEach((e=>{const t=n[e];if(!t)return;const{creativeConfig:r}=t.attentiveConfig;r&&!Mo(r)&&(jo(r)?t.attentiveConfig.creativeConfig=Sc(r,i):t.attentiveConfig.creativeConfig=Oc(r,i),n[e]=t)})),{support:t,overlay:n,embedded:r}):e},Nc=async(e,t)=>{try{const n=vc(),r=await fetch(e,{method:'POST',body:JSON.stringify({...hc(t,n)})});if(t.app?await(async e=>{try{const t=await e.json(),n={status:e.status,body:t};window.postMessage(n,'https://creatives.attn.tv')}catch(e){}})(r.clone()):t.ON_FETCH_CREATIVES&&await t.ON_FETCH_CREATIVES(r.clone()),200!==r.status)return{};return((e,t)=>{const n=Ac(e,t);return Lc(n)})(await r.json(),t)}catch{return{}}},Pc=async(e,t={})=>{const n=(r={clientConfig:e,creativeID:t.creativeID??null,customFilterParam:t.customFilterParam??null,userId:t.userID??null,anonymousId:t.anonymousID??null,triggers:t.triggers,targets:t.targets},`https://${Jo.__attentive_domain}/unrenderedCreative?${Ic(r).toString()}`);var r;return Nc(n,e)},kc='__attentive_dv';function Rc(e){const t=new Date;t.setTime(t.getTime()+60*e*60*1e3),O(kc,'1',{expires:t})}function xc(e){try{void 0===T(kc)&&async function(e){return fetch(`https://${Jo.__attentive_domain}/d/?attn_vid=${e.getId()}`).then((e=>e.text()))}(e).then((t=>{t.includes('true')&&e.rotateId(),Rc(24)})).catch((()=>{Rc(2)}))}catch(e){Rc(2)}}const Bc=async()=>{performance.mark(E.TagCreativesLoaded);const e=new Wo;xc(e),(e=>{const t=fc(e),n=Object.values(Vo);for(const e of Object.keys(t)){const r=e.toLocaleLowerCase(),i=r.substring(4);ya(r,gc)&&n.includes(i)&&O(`${mc}${i}`,t[e],{expires:Date.now()+18e5})}})(Jo.location.search);const t=await sc();(e=>{if(e){const{cookieKey:t,cookiePersistTimeInSeconds:n,getCookieValue:r}=e,i=r();void 0!==i&&O(t,i,{expires:Yo(n)})}})(t.SET_GENERIC_COOKIE),((e,t)=>{if(e&&t){const{key:e,value:n}=t;O(e,n??'true',{expires:$o()})}})(t.SHOULD_BLOCK_WITH_COOKIES,t.DISALLOWED_COOKIES),(e=>{if(e){const t=e.cookieKey||'__attentive_creativeFilter',n=e.getCookieValue();void 0!==n&&O(t,n,{expires:$o()})}})(t.SET_CREATIVE_FILTER_SESSION_COOKIE),(e=>{if(e){const t=e();t&&O('__attentive_client_user_id',t)}})(t.ATTENTIVE_CLIENT_USER_ID);let n={};var r;r=t.ON_TAG_INITIALIZATION,r?.();const i=ac(),o=oc(t,e,i,'marketing'),a=oc(t,e,i,'live-sms'),c=oc(t,e,i,'topBar'),u=async(e={},r={})=>{performance.mark(E.FetchCreativesStart);const i=await Pc(t,e);performance.mark(E.FetchCreativesEnd);const{overlay:u,support:s,embedded:d}=i;u?o.showCreatives(u,r):'2'===Jo.__attentive_cfg?.lt&&n.overlay&&o.showCreatives(n.overlay,r),s&&a.showCreatives(s,{skipLoadingRestrictions:!0}),d&&c.showCreatives(d,{skipLoadingRestrictions:!0}),n=i},s=()=>{o.hideCreatives()},d=async()=>{!function(){const e=Ec();O(_c,`${e+1}`,{expires:$o()})}(),s();const n=(e=>{const t={userID:e.getId()};if(location.href.includes('attn_creative_id=')){const{attn_creative_id:e}=fc(location.href);t.creativeID=parseInt(e,10)}return t.targets=[],t.triggers=[],t})(e),r={email:null,initiator:'attn',skipLoadingRestrictions:Boolean(n.creativeID)||Jo.attn_mobile_app,hideInitialView:'2'===Jo.__attentive_cfg?.lt};await cc(t.SHOULD_DELAY_CREATIVES_FETCH),u(n,r)};((e={})=>{Jo.__attentive?Jo.__attentive={...Jo.__attentive,...e}:Jo.__attentive=e})({show:d,hide:s,trigger:async(t,r,i,o,a)=>{const c={customFilterParam:t,anonymousID:r,creativeID:o,userID:e.getId(),targets:['overlay'],triggers:['standard']},s={email:i,hideInitialView:Boolean(a),skipLoadingRestrictions:!0,previouslyLoaded:'2'===Jo.__attentive_cfg?.lt&&!!n,initiator:'sdk'};u(c,s)}}),d();return{triggerAddToCartCreative:()=>{o.triggerAddToCartCreative()}}};var Dc={evaluateEligibility:function(e){try{var t=e.variantId,n=function(){var e;try{var t=null===(e=f())||void 0===e?void 0:e.innerHTML;return JSON.parse(t||'')}catch(e){return}}();return!!(null==n?void 0:n[t])}catch(e){return!1}}},Mc={shopify:Dc,base:{evaluateEligibility:function(e){try{return null!==document.querySelector('.'.concat('attn-oos'))}catch(e){return!1}}}},Uc=function(){var e;return nn(((e={})[at]=function(e,t,n){var r;n.dispatch;var i=T('__attentive_session_id');O('__attentive_session_id',i?String(i):i=an(),{expires:1/48}),e&&ot in e&&(e[ot]=((r={val:i})[At]=Date.now(),r[Tt]=Date.now(),r[St]=1/48,r))},e))};function Hc(e,t){var n,r;return null!=(null===(n=t.meta)||void 0===n?void 0:n.dataType)&&null!=e[nt]&&e[nt][null===(r=t.meta)||void 0===r?void 0:r.dataType]}function Fc(e,t){Array.isArray(t)&&(t=t.join(','));var n={phone:Kt,price:zt,quantity:Zt,email:Xt,cartTotal:zt,orderId:en,image:tn};return n[e]&&(t=n[e](t)),'string'==typeof t&&(t=Qt(t)),t}function Vc(e){var t=Object.keys(e.data).reduce((function(t,n){var r=e.data[n];if(''!==r&&('number'==typeof r||'string'==typeof r)){var i=Fc(n,r);t[n]=i}return t}),{});for(var n in e.data)if('products'!==n&&'items'!==n||!Array.isArray(e.data[n]))t[n]=jc(n,e.data[n]);else{var r=Object(e.data)[n].map((function(e){var t={};for(var n in e){var r=jc(n,e[n]);null!=r&&(t[n]=r)}return Gc(t),t}));t[n]=JSON.stringify(r)}return Gc(t),function(e,t){var n,r;(null===(n=e.meta)||void 0===n?void 0:n.dataType)!==mt&&(null===(r=e.meta)||void 0===r?void 0:r.dataType)!==vt||t.cartCurrency||t.currency&&(t.cartCurrency=t.currency)}(e,t),t}function jc(e,t){if(''!==t&&('number'==typeof t||'string'==typeof t))return Fc(e,t)}function Gc(e){e.sku?e.productId=e.sku:e.productId&&(e.sku=e.productId)}function qc(e,r,i){var o,a,c=Vc(r);if(!(null===(a=r.meta)||void 0===a?void 0:a.dataType))return null;var u=JSON.stringify(t({source:r.meta.source},c)),s=k+'_'+x,d=function(e,t){var n,r,i=k+'_'+x;return qr((null===(n=e[je])||void 0===n?void 0:n.val)+t.meta.dataType+i+document.referrer+e[Re]+`${(r=new Date).getUTCFullYear()}-${r.getUTCMonth()+1}-${r.getUTCDate()}-${r.getUTCHours()}-${r.getUTCMinutes()}`)}(e,r),l=e,v=rt;l[v];var f=it;l[f];var p=n(l,[v+'',f+'']),g={};r.meta&&r.meta.fingerprintRequestId&&r.meta.fingerprintVisitorId&&(g[Je]=r.meta.fingerprintRequestId,g[We]=r.meta.fingerprintVisitorId,g[Ke]=r.meta.fingerprintConfidenceScore);var m=t(t(t({},p),g),((o={})[Xe]='modern',o[ke]=d,o[Ve]=s,o[Me]=r.meta.dataType,o[Fe]=document.referrer,o[He]=i?function(e){return e.split('?')[0]}(window.location.href):window.location.href,o[Be]=u,o[De]=(new Date).getTime(),o[Qe]=Vt([Rt,xt,Bt,Dt,Mt,Ut,Ht]),o));return'?'.concat(Nt(m))}function Yc(e){return function(t,n){var r;if(!Pn(n)&&Hc(e,n))return'';var i=qc(t,n,null==e?void 0:e.sqp),o=!1;if(i){var a=R+i;if(P&&window.opener)try{var c=JSON.stringify({url:a,state:t,event:n,clientConfig:e});window.opener.postMessage({type:'SERVER_EVENT',payload:c},'*')}catch(e){}if('function'==typeof(null===(r=null===window||void 0===window?void 0:window.navigator)||void 0===r?void 0:r.sendBeacon))try{return o=navigator.sendBeacon(a),a}catch(e){}return o||(new Image(1,1).src=a),a}return''}}var $c=function(e,t){var n,r,i,o,a,c;return e.push({id:(null===(n=t.productId)||void 0===n?void 0:n.toString())||(null===(r=t.sku)||void 0===r?void 0:r.toString()),quantity:t.quantity?parseInt(t.quantity):void 0,item_price:t.price?parseFloat(t.price):void 0,variantId:null===(i=t.subProductId)||void 0===i?void 0:i.toString(),title:null===(o=t.name)||void 0===o?void 0:o.toString(),category:null===(a=t.category)||void 0===a?void 0:a.toString(),image:null===(c=t.image)||void 0===c?void 0:c.toString(),type:'product'}),e},Jc=function(e){return{cartId:e.cartId||void 0,cartCoupon:e.cartCoupon||void 0,cartCurrency:e.cartCurrency||void 0,cartDiscount:e.cartCoupon||void 0}},Wc=function(e){return Array.isArray(e)?e.reduce($c,[]):'object'==typeof e?Object.values(e).reduce($c,[]):void 0};function Kc(e){var r,i,o=null===(r=e[et])||void 0===r?void 0:r[bt],a={},c=null===(i=e[et])||void 0===i?void 0:i[It],u=function(n,r,i,a){var u,s;if(window.edgetag&&a){var d={};o&&(d=t(t({},d),((u={})[Ye]=r[Ye],u[$e]=r[$e],u[Ge]=r[Ge],u[qe]=r[qe],u))),c&&i.meta&&(d=t(t({},d),((s={})[Je]=i.meta.fingerprintRequestId,s[We]=i.meta.fingerprintVisitorId,s[Ke]=i.meta.fingerprintConfidenceScore,s))),Object.keys(d).length>0&&(a.customJson=JSON.stringify(d)),window.edgetag('tag',n,a,{},{destination:e[it]})}};return function(r,i){var o;if(window.edgetag&&(Pn(i)||!Hc(e,i))&&(i.data.blotoutExternalIds=function(e){if(null!==e){var t=null==e?void 0:e.filter((function(e){return e.name!==Ft}));if(t&&t.length>0){var n={};return null==t||t.forEach((function(e){e.vendor===Bt?n.clientUserId=e.id||'':e.vendor===Dt?n[e.name||'customId']=e.id||'':n[e.vendor]=e.id||''})),n}}}(Vt([Rt,xt,Bt,Dt,Mt,Ut,Ht])),null===(o=i.meta)||void 0===o?void 0:o.dataType))switch(i.meta.dataType){case ft:return void u('AddToCart',r,i,function(e){return{currency:e.data.currency||e.data.cartCurrency||void 0,contents:$c([],t(t({},e.data),{quantity:'1'})),customIdentifiers:e.data.blotoutExternalIds}}(i));case pt:return void u('PageView',r,i,function(e){var t={customIdentifiers:e.data.blotoutExternalIds};return t.customIdentifiers?t:{}}(i));case gt:return void u('ViewContent',r,i,function(e){return{currency:e.data.currency||e.data.cartCurrency||void 0,contents:$c([],t(t({},e.data),{quantity:'1'})),customIdentifiers:e.data.blotoutExternalIds}}(i));case mt:return void u('Purchase',r,i,function(e){if(e.data.orderId)return{currency:e.data.currency||e.data.cartCurrency||void 0,contents:$c([],t(t({},e.data),{quantity:'1'})),value:e.data.cartTotal?parseFloat(e.data.cartTotal):void 0,orderId:e.data.orderId,eventId:e.data.orderId,cart:Jc(e.data),customIdentifiers:e.data.blotoutExternalIds}}(i));case vt:return void u('CartUpdated',r,i,function(e){if(e.data.products){var t=Wc(e.data.products),n=Jc(e.data);if(t)return{currency:e.data.currency||e.data.cartCurrency||void 0,contents:t,cart:n,customIdentifiers:e.data.blotoutExternalIds}}}(i));case _t:return void u('OrderConfirmed',r,i,function(e){if(e.data.products&&e.data.orderId){var t=Wc(e.data.products);if(t)return{currency:e.data.currency||e.data.cartCurrency||void 0,contents:t,orderId:e.data.orderId,eventId:e.data.orderId,cart:Jc(e.data),customIdentifiers:e.data.blotoutExternalIds}}}(i));case'i':case Ct:var c=i.data,s=c.phone,d=c.email,l=n(c,['phone','email']);return s&&window.edgetag('user','phone',s),d&&window.edgetag('user','email',d),void(a=t(t({},a),l));default:return}}}var Xc=function(e){var t=localStorage.getItem('attn_load_collect');null===t&&(t=(Math.random()0){var t=null===(e=window.attentive)||void 0===e?void 0:e.analytics;if(!t)return;for(var n=0,r=window.attn_d0x0b_evt;n0&&Xc(i)},e))}()),n.push(Uc()),n.push(function(){var e,t,n=!1,o=!1,a=function(){return r(void 0,void 0,void 0,(function(){var e;return i(this,(function(r){switch(r.label){case 0:return n?[3,2]:(n=!0,[4,Bc()]);case 1:e=r.sent().triggerAddToCartCreative,t=e,r.label=2;case 2:return[2]}}))}))};return nn(((e={})[at]=function(e,t){var n,r=t.data.clientConfiguration;o=!0===(null===(n=r.cc)||void 0===n?void 0:n.pcve),!e||e&&!e[je]||a()},e[ct]=function(){a()},e[dt]=function(e,t){var n,r=t.data,i=t.meta,a=(n=r.items&&Array.isArray(r.items)&&r.items.length>0&&'object'==typeof r.items[0]?r.items[0]:r).sku,c=n.subProductId,u=n.price,d=n.cartCurrency,l=n.image,p=n.name,g=n.productId;if(o&&on&&(null==i?void 0:i.dataType)===gt&&p&&u&&l&&(a||g)){var y={name:p,image:l,price:u,sku:a||g,cartCurrency:d,variantId:c,location:window.location.href},_=window.__attentive_domain,E=window.localStorage.getItem('attn_pdp'),C={};if(E&&(C=JSON.parse(atob(E))),_){var w=(!0===Array.isArray(C[_])?C[_]:[]).filter((function(e){return e.sku!==y.sku}));w.unshift(y),w.length>3&&(w=w.slice(0,3)),C[_]=w,window.localStorage.setItem('attn_pdp',btoa(JSON.stringify(C)))}}var b=v();b&&(null==i?void 0:i.dataType)===gt&&(a||g)&&c&&((0,Mc[f()?'shopify':'base'].evaluateEligibility)({variantId:''.concat(c)})?(function(e,t,n){e.setAttribute('data-product-id',t),e.setAttribute('data-variant-id',n),e.style.display='block'}(b,''.concat(a||g),''.concat(c)),!(I=s())||b.getAttribute('data-product-id')===''.concat(a||g)&&b.getAttribute('data-variant-id')===''.concat(c)||!0!==I.disabled||function(e){const t=e.getAttribute('data-enabled-text');t&&(e.disabled=!1,e.innerText=t)}(I)):function(e){e.removeAttribute('data-product-id'),e.removeAttribute('data-variant-id'),e.style.display='none'}(b));var I,T=h();T&&(function(e,t){e.setAttribute('data-product-price',t),e.style.display='block'}(T,''.concat(u)),(I=m())&&!0===I.disabled&&function(e){const t=e.getAttribute('data-enabled-text');t&&(e.disabled=!1,e.innerText=t)}(I))},e[lt]=function(e,n){var r=n.meta;(null==r?void 0:r.dataType)===ft&&'function'==typeof t&&t()},e))}()),window.attentive=Nn({clientConfiguration:t,services:n}),queueMicrotask(zc)),[3,4];case 3:return o=a.sent(),kt(F,o),[3,4];case 4:return[2]}}))}))}(window.attn_d0x0b_cfg)};function Qc(e){return new Promise((function(t,n){if(e[tt]&&e[ze]){if(eu('enable'))return void t(!0);var r=function(){eu('enable')&&(window.removeEventListener('attn_queued_sdk_event',r),t(!0))};window.addEventListener('attn_queued_sdk_event',r)}else t(!0)}))}function eu(e){var t;return null===(t=null===window||void 0===window?void 0:window.attn_d0x0b_evt)||void 0===t?void 0:t.find((function(t){return t.func===e}))}window.attn_d0x0b_cfg&&('loading'===document.readyState?document.addEventListener('DOMContentLoaded',Zc):Zc())}();