!function(){var e,t=window.location.search.substring(1),o=(e=t)&&""!==e?JSON.parse('{"'+e.replace(/^(.*)\?/,"").split(/[&;]\s?/g).map((function(e){return e.replace(/=/,'":"')})).join('","')+'"}',(function(e,t){return""===e?t:decodeURIComponent(t)})):{},r={};document.cookie&&document.cookie.split(/\s*;\s*/).forEach((function(e){e=e.split(/\s*=\s*/),r[e[0]]=e.splice(1).join("=")})),o.StoreGuid&&(r._storeID=o.StoreGuid,document.cookie="_storeID="+o.StoreGuid+"; path=/;");var n="true"===r._showThemeAsDraft?"true":"false",s=window.location.href;s.endsWith("/")||(s+="/");var[,,c]=s.toLowerCase().includes("ustorethemes")?/(.*?\/ustorethemes\/.*?\/\d+)(\/[a-z]{2}-[a-z]+[?/]|$)/i.exec(s):/(.*?)(\/[a-z]{2}-[a-z]+[?/]|$)/i.exec(s);if(c=c.replace(/\//g,""),s&&c&&s.length>0){var a=c;window.onload=function(){fetch("/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(s)+"&type=5&cultureCode="+a+"&isDraft=false").then((function(e){return e.text()})).then((function(e){const t=e.match(/UA-[0-9]*-[0-9]/),o=e.match(/<script(.*)<\/script>/s);if(t&&t.length>0)r=window,n=document,s="script",c="ga",r.GoogleAnalyticsObject=c,r[c]=r[c]||function(){(r[c].q=r[c].q||[]).push(arguments)},r[c].l=1*new Date,a=n.createElement(s),i=n.getElementsByTagName(s)[0],a.async=1,a.src="https://www.google-analytics.com/analytics.js",i.parentNode.insertBefore(a,i),window.ga("create",t[0],"auto"),window.ga("send","pageview",window.location.asPath);else if(o&&o.length>0){const e=(new DOMParser).parseFromString(o[0],"text/html").getElementsByTagName("script"),t=document.getElementsByTagName("script")[0];Array.from(e).forEach((e=>{const o=document.createElement("script");Array.from(e.attributes).forEach((e=>{o.setAttribute(e.name,e.value)})),o.textContent=e.textContent,t.parentNode.insertBefore(o,t)}))}var r,n,s,c,a,i}))},document.writeln('<script type="application/javascript" src="'+window.uStoreConfig.uStoreRemoteServerUrl+"/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(s)+"&type=1&cultureCode="+a+'&isDraft=false"><\/script>'),document.writeln('<script type="application/javascript" src="'+window.uStoreConfig.uStoreRemoteServerUrl+"/uStoreRestAPI/v1/store/resourceByUrl?url="+encodeURIComponent(s)+"&type=6&cultureCode="+a+"&isDraft="+n+'"><\/script>')}}();