// All rights reserved by Omnisend Ltd. Look, but don't touch. // https://www.omnisend.com/ // v4.0.1 if(void 0===window.OMNISEND_LAUNCHER_LOADED){window.OMNISEND_LAUNCHER_LOADED=!0;try{window._omnisend=(e=>(e.config={snippetVersion:"4.0.1",snippetHost:"https://omnisnippet1.com/",appHost:"https://app.omnisend.com/",pickerAPIHost:"https://app.omnisend.com/",customEventsHost:"https://api.omnisend.com/",wtAPIHost:"https://wt.omnisendlink.com/",pnHost:"https://pn.soundestlink.com/",allowedOrigins:["https://app.omnisend.com"],shopifyAppId:"186001"},e))(window._omnisend||{}),(()=>{var e;null===document.getElementById("omnisend-dynamic-container")&&((e=document.createElement("div")).id="omnisend-dynamic-container",e.style.overflow="hidden",e.style.height="0px",document.body.appendChild(e))})(),window.soundestInShop=window.soundestInShop||{},window.SOUNDEST=window.SOUNDEST||{},window.SOUNDEST.external=window.SOUNDEST.external||{},window.SOUNDEST_EVENTS=window.SOUNDEST_EVENTS||[],window.soundest=window.soundest||[],window._omnisend=window._omnisend||{},window.omnisend=window.omnisend||[],((e,n,t)=>{for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i],t[i]=n[i]);for(i in e)e.hasOwnProperty(i)&&(n[i]=e[i],t[i]=e[i])})(window.soundestInShop,window.SOUNDEST,window._omnisend),window._omnisend=(e=>(e.globalVersion="2",e))(window._omnisend||{}),!function(e,n){var t,i;t=this,i=function(){var n=Object.prototype.toString,j=Array.isArray||function(e){return"[object Array]"===n.call(e)};function u(e){return"function"==typeof e}function A(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function p(e,n){return null!=e&&"object"==typeof e&&n in e}var t=RegExp.prototype.test;var i=/\S/;function N(e){return!t.call(i,e)}var o={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var F=/\s*/,U=/\s+/,x=/\s*=/,V=/\s*\}/,L=/#|\^|\/|>|\{|&|=|!/;function r(e,n){if(!e)return[];var t,i,o,s=!1,r=[],c=[],a=[],d=!1,u=!1,p="",l=0;function f(){if(d&&!u)for(;a.length;)delete c[a.pop()];else a=[];u=d=!1}function m(e){if("string"==typeof e&&(e=e.split(U,2)),!j(e)||2!==e.length)throw new Error("Invalid tags: "+e);t=new RegExp(A(e[0])+"\\s*"),i=new RegExp("\\s*"+A(e[1])),o=new RegExp("\\s*"+A("}"+e[1]))}m(n||R.tags);for(var h,w,g,y,D,v,S=new H(e);!S.eos();){if(h=S.pos,g=S.scanUntil(t))for(var I=0,b=g.length;I{for(var n,t,i=[],o=0,s=e.length;o"===r?c=this.renderPartial(s,n,t,o):"&"===r?c=this.unescapedValue(s,n):"name"===r?c=this.escapedValue(s,n,o):"text"===r&&(c=this.rawValue(s)),void 0!==c&&(a+=c);return a},e.prototype.renderSection=function(e,n,t,i,o){var s=this,r="",c=n.lookup(e[1]);if(c){if(j(c))for(var a=0,d=c.length;a"'`=\/]/g,function(e){return o[e]})},R.Scanner=H,R.Context=s,R.Writer=e,R},"object"==typeof e&&"undefined"!=typeof module?module.exports=i():"function"==typeof n&&n.amd?n(i):(t=t||self).Mustache=i()}.apply(window._omnisend);var __omnisendCookieConsent=(()=>{var s=Object.defineProperty,r=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,e={};function d(){let i={},o={on:(e,n)=>{var t;return i[e]=(null!=(t=i[e])?t:[]).concat([n]),()=>o.off(e,n)},off:(e,n)=>{var t;i[e]=(null!=(t=i[e])?t:[]).filter(e=>e!==n),i[e]&&!i[e].length&&delete i[e]},getKeys:()=>Object.keys(i),emit:(e,n)=>{e=i[e];e&&e.forEach(e=>e(n))}};return o}function u(e){return null!=(e=e)&&"object"==typeof e&&"function"==typeof e.on&&"function"==typeof e.emit}((e,n)=>{for(var t in n)s(e,t,{get:n[t],enumerable:!0})})(e,{getConsentAPI:()=>function(e={}){var n;let o=f(e);if(!o)return null;let s=null!=(n=e.namespaceKey)?n:l;if(!e.wait)return m(o,s);let r=null!=(n=e.interval)?n:50,c=null!=(n=e.timeout)?n:1e4;return new Promise(n=>{let t=Date.now(),i=()=>{var e=m(o,s);e?n(e):Date.now()-t>=c?n(null):setTimeout(i,r)};i()})},initConsentAPI:()=>function(e={}){var n=f(e);if(!n)return null;var t=null!=(t=e.namespaceKey)?t:l,i=m(n,t);if(i)return i;i=e.eventBus&&u(e.eventBus)?e.eventBus:d(),e=(e=>{if(null!==(e=null!=e?e:null)&&!u(e))return null;let t=null!=e?e:d(),i=null;return{setConsent:function(e){var n=i;i=e,t.emit(p.CONSENT_CHANGE,{prev:n,next:i})},subscribeConsent:function(n){return t.on(p.CONSENT_CHANGE,e=>n(e.next))},getConsent:function(){return i},EVENTS:p,eventBus:t}})(i);if(!e)return null;var o=((t,e)=>({consentManager:t,eventBus:e,hasConsent:e=>{var n=t;return!(!n||!(n=n.getConsent())||"necessary"!==e&&!0!==(n=n[e]))}}))(e,i),i=Object.freeze({api:o,eventBus:i,consentManager:e}),e={consent:i};return n[t]=Object.freeze(e),o}});var p={CONSENT_CHANGE:"omnisend:consent:change"};var l="__omnisend_api";function f(e){e=null!=(e=null==e?void 0:e.target)?e:"undefined"!=typeof globalThis&&"window"in globalThis?globalThis.window:void 0;return null!=e?e:null}function m(e,n){var t,e=e[n];return null!=e&&"object"==typeof e&&(n=e.consent,null!=(e=n))&&"object"==typeof e&&null!=(t=t=e.consentManager)&&"object"==typeof t&&"function"==typeof t.setConsent&&"function"==typeof t.getConsent&&"function"==typeof t.subscribeConsent&&u(e.eventBus)&&"object"==typeof e.api&&null!=e.api&&"function"==typeof e.api.hasConsent?n.api:null}return e=e,((n,t,i,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let e of c(t))a.call(n,e)||e===i||s(n,e,{get:()=>t[e],enumerable:!(o=r(t,e))||o.enumerable});return n})(s({},"__esModule",{value:!0}),e)})();window._omnisend=(o=>{o.utils={};var n=/^[0-9a-fA-F]{24}$/,t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return o.utils.isDefined=function(e){return void 0!==e},o.utils.isObjectEmpty=function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},o.utils.isNull=function(e){return null===e},o.utils.isArray=function(e){return"[object Array]"==={}.toString.call(e)},o.utils.isInteger=function(e){return"[object Number]"==={}.toString.call(e)&&Math.floor(e)===e},o.utils.isFloat=function(e){return"[object Number]"==={}.toString.call(e)&&Math.floor(e)!==e},o.utils.isHTMLCollection=function(e){return"[object HTMLCollection]"==={}.toString.call(e)},o.utils.isValidUrl=function(e){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)},o.utils.isNodeList=function(e){return"[object NodeList]"==={}.toString.call(e)},o.utils.isFunction=function(e){return"[object Function]"==={}.toString.call(e)},o.utils.isString=function(e){return"[object String]"==={}.toString.call(e)},o.utils.isObject=function(e){var n=typeof e;return"function"==n||"object"==n&&!!e},o.utils.inArray=function(e,n){return-1!==e.indexOf(n)},o.utils.forEach=function(e,n){var t,i;if(o.utils.isArray(e)||o.utils.isHTMLCollection(e)||o.utils.isNodeList(e))for(t=0;ts&&(clearInterval(t),e(!1)),i()&&(clearInterval(t),e(!0))},o)})},o})(window._omnisend),window._omnisend=((e,i)=>(e.params={},e.params.getJSON=function(e){var n={},e=(e=i.isDefined(e)?e:window.location.href).split("#");if(i.isDefined(e[1]))try{n=i.jsonParse(decodeURIComponent(e[1]))}catch(e){}return n},e.params.getQuery=function(e){var n,t={};return i.isDefined(e)||(e=window.location.href),n=e.split("#"),i.isDefined(n[0])&&(n=n[0].split("?"),i.isDefined(n[1])?(n=n[1].split("&"),i.forEach(n,function(e){n=e.split("="),i.isDefined(n[0])&&i.isDefined(n[1])&&(t[n[0]]=decodeURIComponent(n[1]))})):(n=n[0].split("&"),i.forEach(n,function(e){n=e.split("="),i.isDefined(n[0])&&i.isDefined(n[1])&&(t[n[0]]=decodeURIComponent(n[1]))}))),t},e))(window._omnisend,window._omnisend.utils),window._omnisend=((i,o)=>{function s(e,n,t){var i=this;return i.elements=[],o.isNull(e)?o.isNull(n)||o.isNull(t)?o.isNull(t)||o.forEach(document.querySelectorAll(t),function(e){i.elements.push(e)}):o.forEach(n.elements,function(e){o.forEach(e.querySelectorAll(t),function(e){i.elements.push(e)})}):i.elements.push(e),i}return s.prototype.first=function(){return new s(this.elements[0],null,null)},s.prototype.clone=function(e){return new s(this.elements[0].cloneNode(e),null,null)},s.prototype.parent=function(){return new s(this.elements[0].parentNode,null,null)},s.prototype.val=function(e){var n=null;return o.isDefined(e)?o.isDefined(this.elements[0])&&(this.elements[0].value=e):o.isDefined(this.elements[0])&&(n=this.elements[0].value),n},s.prototype.find=function(e){return new s(null,this,e)},s.prototype.html=function(n){return o.forEach(this.elements,function(e){e.innerHTML=n}),this},s.prototype.size=function(){return this.elements.length},s.prototype.attr=function(n,t){var e=null;return o.isDefined(t)?o.forEach(this.elements,function(e){e.setAttribute(n,t)}):o.isDefined(this.elements[0])&&(e=this.elements[0].getAttribute(n)),e},s.prototype.removeAttr=function(n){return o.forEach(this.elements,function(e){e.removeAttribute(n)}),this},s.prototype.prop=function(n,t){var e=null;return o.isDefined(t)?o.forEach(this.elements,function(e){e[n]=t}):o.isDefined(this.elements[0])&&(e=this.elements[0][n]),e},s.prototype.empty=function(){return o.forEach(this.elements,function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}),this},s.prototype.submit=function(){o.isDefined(this.elements[0])&&this.elements[0].submit()},s.prototype.reset=function(){o.isDefined(this.elements[0])&&this.elements[0].reset()},s.prototype.height=function(){var e=0;return e=o.isDefined(this.elements[0])?this.elements[0].offsetHeight:e},s.prototype.width=function(){var e=0;return e=o.isDefined(this.elements[0])?this.elements[0].clientWidth:e},s.prototype.offsetWidth=function(){var e=0;return e=o.isDefined(this.elements[0])?this.elements[0].offsetWidth:e},s.prototype.prependTo=function(e){var t=[];return e instanceof s?t=e.elements:o.isString(e)&&(t=new s(null,null,e).elements),e=this.elements,o.forEach(e,function(n){o.forEach(t,function(e){e.insertBefore(n,e.firstChild)})}),this},s.prototype.appendTo=function(e){var t=[];return e instanceof s?t=e.elements:o.isString(e)&&(t=new s(null,null,e).elements),e=this.elements,o.forEach(e,function(n){o.forEach(t,function(e){e.appendChild(n)})}),this},s.prototype.appendAfter=function(e){var t=[];return e instanceof s?t=e.elements:o.isString(e)&&(t=new s(null,null,e).elements),e=this.elements,o.forEach(e,function(n){o.forEach(t,function(e){e.parentNode.insertBefore(n,e.nextSibling)})}),this},s.prototype.addClass=function(n){return o.forEach(this.elements,function(e){o.isDefined(e.classList)?e.classList.add(n):e.className+=" "+n}),this},s.prototype.removeClass=function(n){return o.forEach(this.elements,function(e){o.isDefined(e.classList)?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")}),this},s.prototype.hasClass=function(e){var n=!1;return n=o.isDefined(this.elements[0])?o.isDefined(this.elements[0].classList)?this.elements[0].classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(this.elements[0].className):n},s.prototype.closest=function(e){var n=new s(null,null,null);if(o.isDefined(this.elements[0])){for(var t=this.elements[0],i=new s(t,null,null);!i.hasClass(e)&&t;)i=new s(t=t.parentNode,null,null);i.hasClass(e)&&(n=i)}return n},s.prototype.visible=function(){var n=[];return o.isArray(this.elements)&&o.forEach(this.elements,function(e){e.offsetWidth&&e.offsetHeight&&e.getClientRects().length&&n.push(e)}),this.elements=n,this},s.prototype.css=function(e){return o.forEach(this.elements,function(t){o.isString(e)?t.styleSheet?t.styleSheet.cssText=e:(t.innerHTML="",t.appendChild(document.createTextNode(e))):o.forEach(e,function(e,n){t.style[n]=e})}),this},s.prototype.setStyle=function(n,t,i){return o.forEach(this.elements,function(e){e.style.setProperty(n,t,i)}),this},s.prototype.show=function(){return o.forEach(this.elements,function(e){e.style.display="block"}),this},s.prototype.softShow=function(){return o.forEach(this.elements,function(e){e.style.height="auto",e.style.opacity="1",e.style.position="initial",e.style.zIndex="initial"}),this},s.prototype.hide=function(){return o.forEach(this.elements,function(e){e.style.display="none"}),this},s.prototype.softHide=function(){return o.forEach(this.elements,function(e){e.style.height="0",e.style.opacity="0",e.style.position="absolute",e.style.zIndex="-1"}),this},s.prototype.each=function(t){var i=this;return o.forEach(i.elements,function(e,n){t(new s(e,null,null),n,i)}),i},s.prototype.on=function(n,t){return o.forEach(this.elements,function(e){o.isDefined(e.addEventListener)?e.addEventListener(n,t,!1):e.attachEvent("on"+n,function(){t.call(e)})}),this},s.prototype.done=function(n){return o.isFunction(n)&&o.forEach(this.elements,function(e){e.addEventListener?e.addEventListener("load",n):e.onreadystatechange=function(){e.elementreadyState in{loaded:1,complete:1}&&(e.onreadystatechange=null,n())}}),this},s.prototype.error=function(n){return o.isFunction(n)&&o.forEach(this.elements,function(e){e.addEventListener&&e.addEventListener("error",n)}),this},o.isDefined(i.dom)||(i.dom={},i.dom.find=function(e){return new s(null,null,e)},i.dom.findElement=function(e){return new s(e,null,null)},i.dom.create=function(e,n){var t=document.createElement(e);return o.isDefined(n)&&o.forEach(n,function(e,n){t.setAttribute(n,e)}),new s(t,null,null)},i.dom.window=new s(window,null,null),i.dom.document=new s(document,null,null),i.dom.getOffsetX=function(){var e=o.isDefined(window.pageXOffset),n="CSS1Compat"===(document.compatMode||"");return e?window.pageXOffset:(n?document.documentElement:document.body).scrollLeft},i.dom.getOffsetY=function(){var e=o.isDefined(window.pageYOffset),n="CSS1Compat"===(document.compatMode||"");return e?window.pageYOffset:(n?document.documentElement:document.body).scrollTop},i.dom.getWidth=function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},i.dom.getHeight=function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},i.dom.getScrollPercent=function(){var e=document.documentElement,n=document.body,t="scrollTop",i="scrollHeight",t=(e[t]||n[t])/((e[i]||n[i])-e.clientHeight)*100;return t=isNaN(t)?0:t},i.dom.onReady=function(e){"loading"!==document.readyState?e():document.addEventListener?document.addEventListener("DOMContentLoaded",e):document.attachEvent("onreadystatechange",function(){"loading"!==document.readyState&&e()})},i.dom.onLeave=function(n){i.dom.window.on("mouseout",function(e){e=e||window.event,e=e.relatedTarget||e.toElement;e&&"HTML"!==e.nodeName||n()})},i.dom.onLeaveTop=function(n){i.dom.window.on("mouseout",function(e){(e||window.event).y<=0&&n()})},i.dom.injectScript=function(e,n,t){i.dom.create("script",{type:"text/javascript",async:!0,src:e}).error(t).done(n).appendTo("head")},i.dom.injectLink=function(e,n,t){i.dom.create("link",{rel:"stylesheet",type:"text/css",href:e}).error(t).done(n).appendTo("head")},i.dom.removeElement=function(e){var n=[];e instanceof s?n=e.elements:o.isString(e)&&(n=new s(null,null,e).elements),o.forEach(n,function(e){e.parentNode.removeChild(e)})}),i})(window._omnisend,window._omnisend.utils),window._omnisend=((e,o)=>{var s,r,c;return o.isDefined(e.getID)||(s=[],r=/-|:|T/gi,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e.getID=function(e){var n,t="",i={excludeTime:!1,excludeHash:!1,hashLength:49,delimiter:"-",isReverse:!1};o.extend(i,e);do{if(t="",!1===i.excludeTime&&(t+=(new Date).toISOString().replace(r,"").slice(0,14)),!1===i.excludeTime&&!1===i.excludeHash&&(t+=i.delimiter),!1===i.excludeHash)for(n=1;n<=i.hashLength;n+=1)t+=c.charAt(Math.floor(Math.random()*c.length));if(!0===i.isReverse){if(t="",!1===i.excludeHash)for(n=1;n<=i.hashLength;n+=1)t+=c.charAt(Math.floor(Math.random()*c.length));!1===i.excludeTime&&!1===i.excludeHash&&(t+=i.delimiter),!1===i.excludeTime&&(t+=(new Date).toISOString().replace(r,"").slice(0,14))}}while(o.inArray(s,t));return s.push(t),t}),e})(window._omnisend,window._omnisend.utils),window._omnisend=((s,r)=>{var o;return r.isDefined(s.cookies)||(s.cookies={},o=location.hostname.replace(/^www\./i,""),s.cookies.SECOND=1e3,s.cookies.MINUTE=6e4,s.cookies.HOUR=36e5,s.cookies.DAY=864e5,s.cookies.set=function(e,n,t){var i=e+"="+n+"; path=/; domain=."+o;/mybigcommerce.com/.test(location.hostname)&&r.isDefined(s.shopID)&&(i=e+"-"+s.shopID+"="+n+"; path=/; domain=.mybigcommerce.com"),r.isDefined(t)&&(e=new Date,(n=new Date).setTime(e.getTime()+t),i+="; expires="+n.toUTCString()),document.cookie=i},s.cookies.get=function(e){var n,t,i,o=document.cookie.split(";");for(/mybigcommerce.com/.test(location.hostname)&&r.isDefined(s.shopID)&&(e=e+"-"+s.shopID),i=0;i{e.psst=e.psst||{};var n="[OMNISEND]",t=window.location.href;return e.psst={info:function(e){console&&console.info&&console.info([n,e,t].join(" "))},warn:function(e){console&&console.warn&&console.warn([n,e,t].join(" "))},error:function(e){console&&console.error&&console.error([n,e,t].join(" "))}},e})(window._omnisend),window._omnisend=((e,o,s)=>(e.request=e.request||{},o.isDefined(e.request.pixel)||(s.create("div",{id:"omnisend-pixel-container"}).appendTo("#omnisend-dynamic-container"),e.request.pixel=function(e,n,t){var i=["timestamp="+(new Date).getTime()],e=(o.isDefined(e.data)&&o.forEach(e.data,function(e,n){o.isArray(e)||o.isObject(e)?i.push(n+"="+encodeURIComponent(o.jsonStringify(e))):i.push(n+"="+encodeURIComponent(e))}),s.create("img",{src:e.url+"?"+i.join("&"),alt:"",role:"presentation","aria-hidden":"true"}));o.isFunction(n)&&e.on("load",n),o.isFunction(t)&&e.on("error",t),e.appendTo("#omnisend-pixel-container")}),e))(window._omnisend,window._omnisend.utils,window._omnisend.dom),window._omnisend=((s,r,c)=>{function a(e,n,t){r.isDefined(e)&&r.isDefined(e.success)&&(!0===e.success?r.isFunction(n)&&n(e):r.isFunction(t)&&t(e))}return s.request=s.request||{},r.isDefined(s.request.jsonp)||(c.create("div",{id:"omnisend-jsonp-container"}).appendTo("#omnisend-dynamic-container"),s.request.jsonp=function(e,n,t){var i="OMNISEND_"+s.getID({excludeTime:!0,hashLength:36}),o=[];r.isDefined(e.callback)?i=e.callback:window[i]=function(e){delete window[i],a(e,n,t)},o.push("callback="+i),o.push("responseType=jsonp"),r.isDefined(e.data)&&r.forEach(e.data,function(e,n){r.isArray(e)||r.isObject(e)?o.push(n+"="+encodeURIComponent(r.jsonStringify(e))):o.push(n+"="+encodeURIComponent(e))}),-1!==e.url.indexOf("?")?e.url+="&":e.url+="?",c.create("script",{src:e.url+o.join("&")}).on("error",function(){a({success:!1,statusCode:500,data:{}},n,t)}).appendTo("#omnisend-jsonp-container")}),s})(window._omnisend,window._omnisend.utils,window._omnisend.dom),window._omnisend=((i,o)=>(i.localStorage={isSupported:function(){try{var e;return"localStorage"in window?(e="_omnisend_localStorage",localStorage.setItem(e,e),localStorage.removeItem(e),!0):!1}catch(e){return!1}},load:function(e){var n,t={};return localStorage.getItem("_omnisend")&&(t=o.jsonParse(localStorage.getItem("_omnisend"))),e&&t[e]&&(n=t[e]),n=e?n:t},save:function(e,n){var t;n&&e&&((t=i.localStorage.load())[e]=n,localStorage.setItem("_omnisend",o.jsonStringify(t)))}},i))(window._omnisend,window._omnisend.utils),window._omnisend=((t,i)=>{var o="_omnisend_temp_contact_id";return t.sessionStorage={isSupported:function(){try{var e;return"sessionStorage"in window?(e="_omnisend_sessionStorage",sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0):!1}catch(e){return!1}},setOmnisendTempContactId:function(e){try{var n;t.sessionStorage.isSupported()&&i.isDefined(e)&&(n=String(e).trim(),i.isObjectId(n))&&sessionStorage.setItem(o,i.jsonStringify({ts:Date.now(),value:n}))}catch(e){}},getOmnisendTempContactId:function(){try{if(t.sessionStorage.isSupported()){var e=sessionStorage.getItem(o);if(i.isDefined(e)){var n=i.jsonParse(e);if(i.isDefined(n)&&i.isDefined(n.value)&&i.isObjectId(n.value))return n.value}}return null}catch(e){return null}},clearOmnisendTempContactId:function(){try{t.sessionStorage.isSupported()&&sessionStorage.removeItem(o)}catch(e){}}},t})(window._omnisend,window._omnisend.utils),window._omnisend=(e=>(e.helpers=e.helpers||{},e.helpers.dataStructures=e.helpers.dataStructures||[],e.helpers.dataStructures={product:{productID:{type:"string",isRequired:!0},variantID:{type:"string",isRequired:!0},currency:{type:"string",isRequired:!0},price:{type:"int",isRequired:!0},oldPrice:{type:"int",isRequired:!1},title:{type:"string",isRequired:!0},description:{type:"string",isRequired:!1},imageUrl:{type:"string",isUrl:!0,isRequired:!0},productUrl:{type:"string",isUrl:!0,isRequired:!0},vendor:{type:"string",isRequired:!1},customFields:{type:"object",isRequired:!1}},productViewed:{$productID:{type:"string",isRequired:!0}}},e))(window._omnisend),window._omnisend=(e=>(e.helpers=e.helpers||{},e.helpers.apiLinks=e.helpers.apiLinks||[],e.helpers.apiLinks={productPicker:{snippet:"https://api-docs.omnisend.com/v3/product-picker/product-picker-snippet"},webTracking:{jsapi:"https://api-docs.omnisend.com/v3/overview-javascript/"}},e))(window._omnisend),window._omnisend=((e,n)=>{var t;return e.shopBaseURL=window.location.protocol+"//"+window.location.hostname+"/",e.shopHostname=window.location.hostname,n.isDefined(e.version)||(e.version=(new Date).toISOString().slice(0,13)),n.isDefined(e.shopType)||(e.shopType="api"),n.isDefined(e.shopType)&&"shopify"===e.shopType&&(n.isDefined(__st)&&n.isDefined(__st.s)&&(t=__st.s.split("-"),n.isDefined(t[0]))&&"products"===t[0]&&n.isDefined(t[1])&&(e.productID=t[1]),n.isDefined(__st)&&n.isDefined(__st.rid)&&n.isDefined(__st.rtyp)&&"product"===__st.rtyp&&(e.productID=__st.rid),n.isDefined(__st))&&n.isDefined(__st.a)&&(e.shopID=__st.a),n.isDefined(e.globalVersion)&&"1"===e.globalVersion&&e.sendLog({message:"Global version is 1",brandID:e.accountID,shopID:e.shopID,shopType:e.shopType,shopHostname:e.shopHostname}),e})(window._omnisend,window._omnisend.utils),window._omnisend=((e,n)=>{var t=e.params.getQuery();return n.isDefined(t.omnisendContactID)&&n.isDefined(e.sessionStorage)&&e.sessionStorage.setOmnisendTempContactId(t.omnisendContactID),e})(window._omnisend,window._omnisend.utils),window._omnisend=((t,e,i)=>{function o(e,n){i.isArray(e)&&(n=i.isDefined(n)?n:1)<30&&(i.isDefined(t.external)&&i.isDefined(t.external[e[0]])&&i.isDefined(t.external[e[0]][e[1]])?t.external[e[0]][e[1]](e[2]):setTimeout(function(){o(e,n+1)},1e3))}return i.isDefined(t.events)||(t.events={},i.forEach(e,function(e){o(e)}),e.push=function(e){o(e)}),t})(window._omnisend,window.SOUNDEST_EVENTS,window._omnisend.utils),window._omnisend=((n,e,i,t)=>{var o,s,r;return i.isDefined(n.api)||(n.api={},o=[],s=[],r=function(n){i.forEach(s,function(e){e(n)})},n.api.registerCallback=function(n){i.isFunction(n)&&(s.push(n),i.forEach(o,function(e){n(e)}))},n.api.getSettings=function(n){var t=null;return i.isDefined(n)?i.forEach(o,function(e){i.isDefined(e[0])&&i.isDefined(e[1])&&e[0]===n?t=e[1]:i.isDefined(e[0])&&e[0]===n&&(t=!0)}):(t={},i.forEach(o,function(e){i.isDefined(e[0])&&i.isDefined(e[1])?t[e[0]]=e[1]:i.isDefined(e[0])&&(t[e[0]]=!0)})),t},e.push=function(e){r(e),o[o.length]=e},t.push=function(e){r(e),o[o.length]=e},t.identifyContact=function(e){e.email||e.phone||e.externalID?(n.brandSettings&&n.brandSettings.brandID?e.brandID=n.brandSettings.brandID:n.accountID?e.brandID=n.accountID:n.sendLog&&n.sendLog({function:"api.js: identifyContact",hostname:n.shopHostname,log:"failed to get brandID fallback to shopID and shopType"}),e.shopType=n.shopType,fetch(n.config.wtAPIHost+"REST/inShop/v1/identifyContact?"+new URLSearchParams(Object.assign({},e,{responseType:"json"}))).then(function(e){200===e.status&&e.json().then(function(e){e&&e.data&&e.data.contactID&&n.initContact(e.data.contactID)})})):console.error("Email or phone is required to identify contact")},i.isDefined(e)&&i.isDefined(e.length)&&i.forEach(e,function(e){i.isArray(e)&&o.push(e)}),i.isDefined(t)&&i.isDefined(t.length)&&i.forEach(t,function(e){i.isArray(e)&&o.push(e)})),n})(window._omnisend,window.soundest,window._omnisend.utils,window.omnisend),window._omnisend=((s,i)=>{var r=3,o=["$productViewed","$pageViewed","viewed product"],c=function(n,t){var e,i,o={};o.eventName=n,t&&(i=s&&s.cookies&&s.cookies.get("omnisendContactID")&&{ID:s.cookies.get("omnisendContactID")},e=s&&s.brandSettings&&s.brandSettings.brandID,o.contact=(e=>{if(e&&"object"==typeof e&&!e.ID&&e.id){e.ID=e.id;try{delete e.id}catch(e){}}return e})(t.contact||i),o.properties=t.properties,o.brandID=t.brandID||e,o.origin=t.origin,o.eventID=t.eventID,o.eventVersion=t.eventVersion,o.eventTimestamp=t.eventTimestamp instanceof Date?t.eventTimestamp.toISOString():void 0),(i=o.contact)&&(i.ID||i.id||i.email)&&fetch(s.config.customEventsHost+"track",{method:"POST",body:s.utils.jsonStringify(o)}).catch(function(e){e.status<400||(console.log(e),0!==r&&setTimeout(function(){r-=1,c(n,t)},3e3))})};return i.isFetchAPISupported()&&s.api.registerCallback(function(e){var n,t;Array.isArray(e)&&(n=e[0],t=e[1],e=e[2],i.isDefined(n))&&"track"===n&&i.isDefined(t)&&!o.includes(t)&&c(t,e)}),s})(window._omnisend,window._omnisend.utils),window._omnisend=((r,c)=>{function a(n){c.forEach(t,function(e){e(n)})}r.log=r.log||{},r.log.logs=r.log.logs||[];var t=[];return r.log={info:function(e,n,t,i){var o=new Date,e={type:"info",info:!0,name:e,feature:t,time:c.formatTime(o,"hh:mm:ss.SSS")};n||i&&i.length?e.isExtendable=!0:e.isExtendable=!1,i&&(e.errors=i),n&&(e.data=JSON.stringify(n)),c.isArray(r.log.logs)||(r.log.logs=[]),r.log.logs.push(e),a(e)},warn:function(e,n,t,i){var o=new Date,e={type:"warn",warn:!0,name:e,feature:t,time:c.formatTime(o,"hh:mm:ss.SSS")};n||i&&i.length?e.isExtendable=!0:e.isExtendable=!1,i&&(e.errors=i),n&&(e.data=JSON.stringify(n)),c.isArray(r.log.logs)||(r.log.logs=[]),r.log.logs.push(e),a(e)},error:function(e,n,t,i,o){var s=new Date,e={type:"error",error:!0,name:e,feature:t,time:c.formatTime(s,"hh:mm:ss.SSS")};n||i&&i.length?e.isExtendable=!0:e.isExtendable=!1,i&&(e.errors=i),o&&(e.docLink=r.helpers.apiLinks[t][o]),n&&(e.data=JSON.stringify(n)),c.isArray(r.log.logs)||(r.log.logs=[]),r.log.logs.push(e),a(e)}},r.log.getErrors=function(e,t){var i=[];return c.forEach(r.helpers.dataStructures[e],function(e,n){!t[n]&&e.isRequired?i.push({isRequired:!0,fieldID:n,items:[n]}):t[n]&&c.getVariableType(t[n])!==e.type?i.push({isType:!0,fieldID:n,fieldDataType:e.type,defaultType:c.getVariableType(t[n]),items:[n,e.type,c.getVariableType(t[n])]}):e.isUrl&&!c.isValidUrl(t[n])&&i.push({isNotValidUrl:!0,fieldID:n,items:[n]})}),i},r.log.isDataValid=function(e,n){var t=!0;return t=0(e.loadForm=function(){n.injectScript(e.config.snippetHost+"forms/main.js?v="+e.version,function(){},function(){})},e))(window._omnisend,window._omnisend.dom),window._omnisend=((e,n)=>(e.loadPublicScriptsMonitoring=function(){n.injectScript(e.config.snippetHost+"monitoring/monitoring.js?v="+e.version,function(){},function(){})},e))(window._omnisend,window._omnisend.dom),window._omnisend=((i,o,s)=>(i.loadProductPicker=function(){i.activeComponents=i.activeComponents||[];var e={},n=i.params.getJSON(),t=i.params.getQuery(),n=(s.isDefined(n.inShopID)?(e.inShopID=n.inShopID,s.isDefined(n.type)&&(e.type=n.type)):s.isDefined(n.pickerID)?(e.inShopID=n.pickerID,s.isDefined(n.pickerShopType)&&(e.type=n.pickerShopType),s.isDefined(n.pickerVersion)&&(e.version=n.pickerVersion)):s.isDefined(t.pickerID)&&(e.inShopID=t.pickerID,s.isDefined(t.pickerShopType)&&(e.type=t.pickerShopType),s.isDefined(t.pickerVersion))&&!isNaN(parseInt(t.pickerVersion))&&(e.version=parseInt(t.pickerVersion)),void 0!==i.cookies.getVariable("product-picker","inShopID")),t=void 0!==e.inShopID;(n||t)&&((!n&&t||t&&i.cookies.getVariable("product-picker","inShopID")!==e.inShopID)&&(i.cookies.clearVariable("product-picker","products"),i.cookies.clearVariable("product-picker","type"),i.cookies.setVariable("product-picker","inShopID",e.inShopID),i.cookies.setVariable("product-picker","locale","en"),s.isDefined(e.type)&&i.cookies.setVariable("product-picker","type",e.type),s.isDefined(e.version))&&i.cookies.setVariable("product-picker","version",e.version),i.activeComponents.push("picker"),o.injectScript(i.config.snippetHost+"inShop/product-picker.js?v="+i.version,function(){},function(){}))},i))(window._omnisend,window._omnisend.dom,window._omnisend.utils),window._omnisend=((o,s)=>{function i(e){return null==e||""===e}function r(e,n){var t,i;s.isDefined(e)&&(e=e.cookieConsentFlow,e=s.isDefined(e)&&"opt_out"!==e,n=null!=n?(t=(n=c(n)).marketing,i=n.analytics,n.preferences):i=t=!e,s.isDefined(o.consentAPI))&&s.isDefined(o.consentAPI.consentManager)&&s.isFunction(o.consentAPI.consentManager.setConsent)&&o.consentAPI.consentManager.setConsent({necessary:!0,marketing:t,analytics:i,preferences:n})}var c=function(e){return{marketing:!0===e.marketing,analytics:!0===e.analytics,preferences:!0===e.preferences}};return o.initShopifyCustomerPrivacy=function(e){var n,t,e=e||o.brandSettings;n=e,o.shopifyVisitorConsentListenerAdded||(document.addEventListener("visitorConsentCollected",function(e){e=s.isDefined(e.detail)?e.detail:null,e=e&&"object"==typeof e&&!i(e.marketingAllowed)&&!i(e.analyticsAllowed)&&!i(e.preferencesAllowed)?{marketing:!!e.marketingAllowed,analytics:!!e.analyticsAllowed,preferences:!!e.preferencesAllowed}:null;r(n,e)}),o.shopifyVisitorConsentListenerAdded=!0),t=e,s.isDefined(window.Shopify)&&s.isFunction(window.Shopify.loadFeatures)&&s.isDefined(t)&&window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],function(){var e=null,e=(e=window.Shopify.customerPrivacy&&s.isFunction(window.Shopify.customerPrivacy.currentVisitorConsent)?window.Shopify.customerPrivacy.currentVisitorConsent():e)&&"object"==typeof e&&!i(e.marketing)&&!i(e.analytics)&&!i(e.preferences)?{marketing:"yes"===e.marketing,analytics:"yes"===e.analytics,preferences:"yes"===e.preferences}:null;r(t,e)})},o})(window._omnisend,window._omnisend.utils),window._omnisend=((o,s)=>(o.processShopifyCartContact=function(e){var n,t,i;"shopify"===o.shopType&&(s.isFetchAPISupported()?o.cookies&&o.brandSettings&&o.brandSettings.brandID&&(n=o.cookies.get("omnisendContactID"))&&(t=(t=o.cookies.get("cart"))?decodeURIComponent(t).split("?")[0]:"")&&(i=o.cookies.get("_shopify_y"),fetch(o.config.appHost+"shopify/"+o.brandSettings.brandID+"/carts/contacts",{method:"POST",body:JSON.stringify({brandID:o.brandSettings.brandID,contactID:n,cartToken:t,shopifyClientID:i}),keepalive:e.keepalive})):console.log("fetch is not supported"))},window.addEventListener("beforeunload",function(){o.processShopifyCartContact({keepalive:!0})}),o))(window._omnisend,window._omnisend.utils),window._omnisend=((n,t)=>(n.identifyShopifyCustomer=function(){var e;"shopify"===n.shopType&&n.brandSettings&&n.brandSettings.brandID&&(e=__st.cid,!n.cookies.get("omnisendContactID"))&&e&&t.identifyContact&&t.identifyContact({externalID:e,brandID:n.brandSettings.brandID})},n))(window._omnisend,window.omnisend),window._omnisend=(r=>{var i=null,c=null,a="compare_at_price",t="featured_image";function d(e,n){if(e[t]){if(e[t].src)return e[t].src;if("string"==typeof e[t])return e[t]}if(n[t]){if(n[t].src)return n[t].src;if("string"==typeof n[t])return n[t]}e=(n.images||[]).sort(function(e,n){return e.position-n.position})[0]||"";return e.src||e}function u(e){return e&&e.startsWith("//")?"https:"+e:e}function e(e){return i?Promise.resolve(i):(t=window.Shopify&&window.Shopify.routes&&window.Shopify.routes.root,t=(t?"/"===t.charAt(t.length-1)?t:t+"/":location.origin+"/")+"products/"+e+".js",n=n||{},fetch(t+"?"+new URLSearchParams(n).toString(),{headers:{accept:"application/json"}}).then(function(n){return n.json().then(function(e){return{data:e,status:n.status}})}).then(function(e){return i=e.data}));var n,t}function n(){e(location.pathname.split("/").filter(function(e){return e.trim()}).at(-1)).then(function(e){var n,t,i,o,s;e&&e.id&&(o=e,n=new URLSearchParams(location.search).get("variant"),s=document.querySelector("variant-selection"),t="",s&&(t=s.getAttribute("variant")),n=s=!(s=n||t||window.ShopifyAnalytics&&window.ShopifyAnalytics.meta&&window.ShopifyAnalytics.meta.selectedVariantId||"")&&o&&o.variants&&1===o.variants.length?String(o.variants[0].id):s,c!==n)&&(i=c=n,(t=(t=e)||{}).prices||(t.prices={}),t.images||(t.images=[]),o=(t.variants||[]).find(function(e){return String(e.id)===i})||{},s=("available"in o?o:t).available,n={id:String(t.id),currency:Shopify.currency.active,price:("number"==typeof o.price?o:t).price,oldPrice:("number"==typeof o[a]?o:t)[a],title:o.name||t.title,description:t.description,imageUrl:u(d(o,t)),url:location.href,status:s?"inStock":"outOfStock",variantId:o.id?String(o.id):"",productTitle:t.title,productImageUrl:u(d({},t)),productUrl:window.location.origin+window.location.pathname},r.setProductInfo({properties:{product:n}}),window.Shopify)&&window.Shopify.analytics&&window.Shopify.analytics.publish("omnisend_viewed_product",n)})}return r.initShopifyViewedProductEvents=function(){"product"===(window.ShopifyAnalytics&&window.ShopifyAnalytics.meta&&window.ShopifyAnalytics.meta.page&&window.ShopifyAnalytics.meta.page.pageType)&&setInterval(function(){n()},1e3)},r})(window._omnisend),window._omnisend=(n=>(n.initShopifyVisitorTracking=function(){window.addEventListener("omnisendForms",function(e){"omnisendForms"===e.type&&e.detail&&"formSubscriberIdentified"===e.detail.name&&(e={email:e.detail.email,phone:e.detail.phone},window.Shopify)&&window.Shopify.analytics&&window.Shopify.analytics.visitor&&(e.email||e.phone)&&window.Shopify.analytics.visitor(e,{appId:n.config.shopifyAppId})})},n))(window._omnisend),window._omnisend=((n,t)=>(n.initShopify=function(e){"shopify"===n.shopType&&(t.isFunction(n.initShopifyCustomerPrivacy)&&n.initShopifyCustomerPrivacy(e),n.identifyShopifyCustomer&&n.identifyShopifyCustomer(),n.initShopifyCartEvents&&n.initShopifyCartEvents(),n.processShopifyCartContact&&n.processShopifyCartContact({keepalive:!1}),n.initShopifyVisitorTracking&&n.initShopifyVisitorTracking(),n.initShopifyViewedProductEvents())},n))(window._omnisend,window._omnisend.utils),window._omnisend=((n,t)=>(n.loadPushNotifications=function(e){"serviceWorker"in navigator&&"PushManager"in window&&n.localStorage.isSupported()&&e.pushNotifications&&e.pushNotifications.enabled&&(n.pushNotifications=e.pushNotifications,t.injectScript(n.config.snippetHost+"inShop/push-notifications.js?v="+n.version,function(){},function(){}))},n))(window._omnisend,window._omnisend.dom),window._omnisend=((n,t)=>{var i="omnisendSessionID",o=30*n.cookies.MINUTE;return n.setSessionID=function(e){e=e,t.isDefined(n.user)&&(n.user.sessionID=e),t.isDefined(n.cookies)&&t.isFunction(n.cookies.set)&&n.cookies.set(i,e,o)},n.ensureSessionID=function(){if(t.isDefined(n.cookies)&&t.isFunction(n.cookies.get)&&t.isFunction(n.cookies.set)&&t.isDefined(n.cookies.MINUTE)){var e=n.cookies.get(i);if(t.isString(e)&&64===e.length&&(n.cookies.clear(i),e=void 0),!t.isDefined(e)){if(!t.isDefined(n.getID)||!t.isFunction(n.getID))return;e=n.getID({hashLength:14,isReverse:!0})}t.isDefined(e)&&t.isString(e)&&0{var o="omnisendContactID",s=365*t.cookies.DAY;return i.isDefined(t.contactIdentified)||(t.contactIdentified=!1),t.initContact=function(e){var n;i.isDefined(e)&&i.isObjectId(e)&&(i.isDefined(t.cookies.get(o))&&e===t.cookies.get(o)?t.sessionStorage.clearOmnisendTempContactId():(n=t.consentAPI&&t.consentAPI.consentManager,(!i.isDefined(n)||!i.isFunction(n.subscribeConsent)||!!i.isFunction(n.getConsent)&&(n=n.getConsent(),i.isDefined(n))&&null!==n&&i.isDefined(n.marketing)&&n.marketing)&&t.cookies.set(o,e,s),t.sessionStorage.clearOmnisendTempContactId(),t.contactIdentified=!0))},t.cleanupContactCookie=function(){i.isDefined(t.cookies)&&i.isFunction(t.cookies.clear)&&t.cookies.clear(o)},t.initContactFromStoredTempId=function(){var e;i.isDefined(t.sessionStorage)&&i.isFunction(t.sessionStorage.getOmnisendTempContactId)&&(e=t.sessionStorage.getOmnisendTempContactId(),i.isDefined(e))&&i.isFunction(t.initContact)&&t.initContact(e)},t})(window._omnisend,window._omnisend.utils),window._omnisend=((t,i)=>{function o(e){i.isDefined(e)&&null!==e&&(i.isDefined(e.marketing)&&e.marketing?(i.isFunction(t.ensureSessionID)&&t.ensureSessionID(),i.isFunction(t.initContactFromStoredTempId)&&t.initContactFromStoredTempId()):(i.isFunction(t.clearSessionID)&&t.clearSessionID(),i.isFunction(t.cleanupContactCookie)&&t.cleanupContactCookie(),i.isDefined(t.sessionStorage)&&i.isFunction(t.sessionStorage.clearOmnisendTempContactId)&&t.sessionStorage.clearOmnisendTempContactId(),"shopify"===t.shopType&&(i.isFunction(t.cleanupOmnisendShopifyCartCookie)&&t.cleanupOmnisendShopifyCartCookie(),i.isFunction(t.disableShopifyCartEvents))&&t.disableShopifyCartEvents(),"bigcommerce"===t.shopType&&(i.isFunction(t.cleanupOmnisendBigcommerceCartCookie)&&t.cleanupOmnisendBigcommerceCartCookie(),i.isFunction(t.disableBigcommerceCartEvents))&&t.disableBigcommerceCartEvents()))}return t.initConsentAPIListener=function(){var e,n=t.consentAPI,n=n&&n.consentManager;i.isDefined(n)&&i.isFunction(n.subscribeConsent)&&(i.isFunction(n.getConsent)&&null!==(e=n.getConsent())&&i.isDefined(e)&&o(e),n.subscribeConsent(o))},t})(window._omnisend,window._omnisend.utils),window._omnisend=((r,o)=>{function s(s){var e;"shopify"===r.shopType&&!1!==r.shopifyCartEventsEnabled&&(o.isFetchAPISupported()?r.cookies&&fetch(((e=window.Shopify&&window.Shopify.routes&&window.Shopify.routes.root)?"/"===e.charAt(e.length-1)?e:e+"/":location.origin+"/")+"cart.js").then(function(e){return e.json()}).then(function(n){var t,i,o,e=(()=>{try{return JSON.parse(r.cookies.get("omnisendShopifyCart")||"{}")}catch(e){return r.sendLog({function:"cart-event.js: getOmnisendShopifyCart() - error",brandID:r&&r.brandSettings&&r.brandSettings.brandID,error:e}),{}}})(),e=(t=e,(e=n)&&e.items?(i=[],e.items.forEach(function(e){var n=t[e.id]||0;n(e.initWoocommerce=function(){!window.OMNISEND_WOOCOMMERCE_LOADED&&e.brandSettings.brandData&&"woocommerce"===e.brandSettings.brandData.platformName&&n.injectScript(e.config.snippetHost+"platforms/woocommerce.js?v="+e.version+"&fromInshop=true",function(){},function(){})},e))(window._omnisend,window._omnisend.dom),window._omnisend=((t,i)=>{function e(){var e=window.__omnisendCookieConsent;i.isDefined(e)&&i.isFunction(e.initConsentAPI)&&(e=e.initConsentAPI())&&(t.consentAPI=e,i.isFunction(t.initConsentAPIListener))&&t.initConsentAPIListener()}function n(e){var n;i.isDefined(e)&&"object"==typeof e&&((n=(t.brandSettings=e).pushNotifications)&&n.enabled&&i.isFunction(t.loadPushNotifications)&&t.loadPushNotifications(t.brandSettings),i.isFunction(t.loadForm)&&t.loadForm(),n=e,i.isDefined(n))&&i.isDefined(n.brandID)&&(i.isFunction(t.initShopify)&&t.initShopify(n),i.isFunction(t.initBigcommerce)&&t.initBigcommerce(),i.isFunction(t.initWoocommerce)&&t.initWoocommerce(),"shopify"!==t.shopType)&&r(n)}t.activeComponents=t.activeComponents||[],t.brandSettings=t.brandSettings||{},t.defaultCallback=function(){},t.ensureConsentAPI=function(){i.isDefined(t.consentAPI)||e()};var o,s,r=function(e){i.isDefined(e)&&(e=e.cookieConsentFlow,i.isDefined(e)&&"opt_out"!==e||i.isDefined(t.consentAPI)&&i.isDefined(t.consentAPI.consentManager)&&i.isFunction(t.consentAPI.consentManager.setConsent)&&t.consentAPI.consentManager.setConsent({necessary:!0,marketing:!0,analytics:!0,preferences:!0}))};function c(e){return i.isDefined(e)&&!i.isNull(e)}return t.getSettings=function(e){fetch(t.config.wtAPIHost+"REST/inShop/v1/getSettings?"+new URLSearchParams(Object.assign({},e,{responseType:"json"}))).then(function(e){200===e.status&&e.json().then(function(e){e&&e.data&&n(e.data)})})},t.setBrandSettings=function(){var e={shopHostname:t.shopHostname||"",shopType:t.shopType||"api"};i.isDefined(t.shopID)&&(e.shopID=t.shopID),i.isDefined(t.accountID)?e.brandID=t.accountID:i.isDefined(t.brandID)&&(e.brandID=t.brandID),t.getSettings(e)},o=t.api.getSettings("accountID"),s=t.api.getSettings("brandID"),(c(o)||c(s)||i.isDefined(t.productID)||"api"===t.shopType||"shopify"===t.shopType&&i.isDefined(__st)&&i.isDefined(__st.a))&&(c(o)?(t.accountID=o,t.brandID=o):c(s)&&(t.accountID=s,t.brandID=s),t.loadPublicScriptsMonitoring(),e(),t.setBrandSettings(),t.loadProductPicker()),t})(window._omnisend,window._omnisend.utils),window._omnisend=((t,i)=>{function o(e){return!!(i.isDefined(e.url)&&i.isDefined(e.sessionID)&&i.isDefined(e.contactID))}function s(e){var e=Object.assign({},c,e),n=(()=>{var e,n={};return i.isDefined(t.brandID)&&i.isObjectId(t.brandID)&&(n.brandID=t.brandID),i.isDefined(t.accountID)&&i.isObjectId(t.accountID)&&(n.brandID=t.accountID),i.isDefined(t.shopType)&&(n.shopType=t.shopType),i.isDefined(t.shopID)&&(n.shopID=t.shopID.toString()),i.isDefined(t.shopHostname)&&(n.shopHostname=t.shopHostname),!i.isDefined(window.location.href)||-1!==window.location.href.indexOf("file:///")||/(\d+)\/orders\/([a-f0-9]{32})/.test(window.location.href)||/(\d+)\/checkouts\/([a-f0-9]{32})/.test(window.location.href)||(n.url=window.location.href,e=t.params.getQuery(window.location.href),0{function p(e){var n=e&&e.properties.page&&e.properties.page.url,t=e.contact&&(e.contact.ID||e.contact.id||e.contact.email||e.contact.phone),e=e&&e.properties&&e.properties.product&&e.properties.product.id;return n&&t&&e}function l(e){d.productData={productID:e.properties.product.id,variantID:e.properties.product.variantId,status:e.properties.product.status,currency:e.properties.product.currency,description:e.properties.product.description,imageUrl:e.properties.product.imageUrl,price:e.properties.product.price,oldPrice:e.properties.product.oldPrice,title:e.properties.product.title,url:e.properties.product.url,productTitle:e.properties.product.productTitle,productImageUrl:e.properties.product.productImageUrl,productUrl:e.properties.product.productUrl},e=new CustomEvent("omnisend-viewed-product",{detail:d.productData}),document.dispatchEvent(e)}function f(e){fetch(d.config.wtAPIHost+"REST/webTracking/v2/event",{method:"POST",body:d.utils.jsonStringify(e)}).then(function(e){if(400