var loadScriptTag=function(t){return new Promise(function(e,n){var o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,e())}:o.onload=function(){e()},o.onerror=function(){n(Error("Failed to load script with src: "+t))},o.src=t,document.getElementsByTagName("head")[0].appendChild(o)})},myFrontendJavascriptUN=function(t){function e(){var e=this;this.shopId=this.urlPrefix=this.namespace=null,this.configure=function(){e.urlPrefix=f.getAnalyticsApiUrl(),e.namespace="/analytics/events/",e.shopId=window.un.datastore.shop.id,e.shopTimezone=window.un.datastore.shop.timezone},this.track=function(n,o){f.log("track event: "+n+", with properties: "+JSON.stringify(o));var i=this.urlPrefix+this.namespace+n,r={shop_id:e.shopId,shop_timezone:e.shopTimezone};t.ajax({cache:!1,type:"POST",url:i,data:t.extend({},r,o),dataType:"json"}).done(function(t){f.log("POST to "+i+" successful")})}}function n(){var e=this,n=function(t){"undefined"==typeof un.debug&&(un.debug=[]),un.debug.push(t)},o=function(t){return"string"==typeof t&&""!==t},i=function(t){return void 0!==t&&null!=t&&!1!==t},r=function(t){return void 0!==t&&null!=t&&t.length>0},a=function(t,e){function n(t,e){return void 0===t?e:t}function o(t,e,o,i){if(e=n(e,2),o=n(o,","),i=n(i,"."),isNaN(t)||null==t)return 0;var r=(t=(t/100).toFixed(e)).split("."),a,c;return r[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+o)+(r[1]?i+r[1]:"")}if(void 0===t||null==t)return"";if("string"==typeof t&&0==t.length)return"";var i=/\{\{\s*(\w+)\s*\}\}/;"string"==typeof t&&(t=t.replace(".",""));var r="";switch(e.match(i)[1]){case"amount":r=o(t,2);break;case"amount_no_decimals":r=o(t,0);break;case"amount_no_decimals_with_comma_separator":r=o(t,0,".",",");break;case"amount_with_comma_separator":r=o(t,2,".",",")}return e.replace(i,r)},c=function(t){return Math.round(100*t)+"%"},u=function(){for(var t=document.getElementsByTagName("script"),n="",o="",i=0;i<t.length;i++)if((n=t[i].getAttribute("src"))&&(n=n.match(/^(.*)widget\/javascript(\?\s*(.+))?\s*/))){o=n[3].match(/shop=(.+).myshopify.com/)[1];break}return".myshopify.com"===(o+=".myshopify.com")&&e.objectChecker(window.Shopify)&&e.objectChecker(window.Shopify.shop)&&(o=window.Shopify.shop),".myshopify.com"===o&&console.log("UN: unable to get shop domain"),o},s=function(){return e.stringChecker(_.primary_domain)?_.primary_domain:_.shopify_domain},d=function(){return window.un.datastore.APP_URL},l=function(){return window.un.datastore.ANALYTICS_URL},p=function(){return!("undefined"==typeof window.un||"undefined"==typeof window.un.datastore)},h=function(){return m()&&y().length>0},g=function(t){return o(t.continue_button_text)||(t.continue_button_text="Continue"),t},m=function(){return!(!p()||"undefined"==typeof window.un.datastore.shop)&&g(window.un.datastore.shop)},y=function(){return p()&&"undefined"!=typeof window.un.datastore.offers?window.un.datastore.offers:[]},C=function(){return"undefined"!=typeof window.un&&"undefined"!=typeof window.un.offers?window.un.offers:[]},k=function(n){var o=!1,i=e.getOfferObjects();return f.arrayChecker(i)&&t.each(i,function(t,e){n===e.id&&(o=e)}),o},w=function(){return-1!==window.location.href.replace("https://","").indexOf("/products")},S=function(){return-1!==window.location.href.replace("https://","").indexOf("/cart")},O=function(){return-1!==window.location.href.indexOf("/collections/")&&-1===window.location.href.indexOf("/products/")},T=function(){return"/"===window.location.pathname},j=function(){return window.un.datastore.shop.enabled_on_homepage},D=function(){return window.un.datastore.shop.enabled_on_collection_pages},F=function(){return f.onHomePage()&&f.enabledOnHomePage()||f.onCollectionPage()&&f.enabledOnCollectionPage()||!f.onHomePage()&&!f.onCollectionPage()},A=function(){var e=1;return t('form[action="/cart/add"]:first').find("input[name=quantity]:visible").length>0&&(e=t('form[action="/cart/add"]:first').find("input[name=quantity]:visible").val()),Number(e)},L=function(){var n=window.un.datastore.theme_setting,i=window.un.datastore.shop,r=[["cart_subtotal_selector","cart_subtotal_selector"],["checkout_button_selector","checkout_button_selector"],["add_to_cart_form_selector","add_to_cart_form_selector"],["add_to_cart_button_selector","add_to_cart_button_selector"],["quantity_selector","quantity_selector"],["cart_form_selector","cart_form_selector"],["quantity_button_selector","quantity_button_selector"],["variant_selector","variant_selector"],["swatch_selector","swatch_selector"],["mutation_ids","mutation_ids"],["mutation_classes","mutation_classes"],["cart_bar_placement_selector","cart_bar_placement_selector"],["cart_bar_placement_position","cart_bar_placement_position"],["cart_bar_ajax_placement_selector","cart_bar_ajax_placement_selector"],["ajax_cart_line_item_element_with_key_class","ajax_cart_line_item_element_with_key_class"],["ajax_cart_line_item_key_property_name","ajax_cart_line_item_key_property_name"],["ajax_cart_line_item_unit_price_class","ajax_cart_line_item_unit_price_class"],["ajax_cart_line_item_total_price_class","ajax_cart_line_item_total_price_class"]];t.each(r,function(t,o){i[o[0]]=e.mergeValues(i[o[0]],n[o[1]])}),null==i.custom_css&&(i.custom_css=""),i.custom_css+="."+x+"{border:none;background:none;opacity:0;position:absolute;z-index:999;cursor:pointer;}",i.add_to_cart_button_selector=i.add_to_cart_button_selector+", ."+P,i.checkout_button_selector=i.checkout_button_selector+", ."+I,o(n.custom_css)&&(i.custom_css=i.custom_css+"\r\n"+n.custom_css),o(i.custom_css)&&t("head").append('<style type="text/css">'+i.custom_css+"</style>"),window.un.datastore.shop=i,window.un.addedToCart={}},q=function(t,e){return o(t)?t:e},Q=function(t,e,n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var i="expires="+o.toUTCString();document.cookie=t+"="+e+";"+i+";path=/"},R=function(t){var e=new Date;e.setTime(e.getTime()-2592e6);var n="expires="+e.toUTCString();document.cookie=t+"=;"+n+";path=/"},B=function(t){for(var e=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(e))return i.substring(e.length,i.length)}return""},E=function(t){for(var e=[],n=t,o=document.cookie.split(";"),i=0;i<o.length;i++){for(var r=o[i];" "==r.charAt(0);)r=r.substring(1);0==r.indexOf(n)&&e.push(r)}return e},N=function(){var e=location.search.match(/variant=([0-9]+)/);return null!=e?e[1]:"radio"===t(_.add_to_cart_form_selector).find('select[name="id"], input[name="id"]').attr("type")?t(_.add_to_cart_form_selector).find('input[name="id"]:checked').val():t(_.add_to_cart_form_selector).find('select[name="id"], input[name="id"]').val()},M=function(){if(!e.onProductPage())return null;if(void 0!==e.getCurrentVariantId()){var t=window.un.product.variants.find(function(t){return t.id.toString()===e.getCurrentVariantId().toString()});return void 0===t?(f.log("Unable to find current variant because current variant ID isn't matching a variant in un.product.variants object. Returning first variant in product object."),window.un.product.variants[0]):t}return f.log("Unable to find current variant because getCurrentVariantId() is returning undefined. Returning first variant in product object."),window.un.product.variants[0]},V=function(t){var n=e.getCookie("_un_discounted_line_item_"+t);return""!==n&&(n.indexOf("_")>-1?parseInt(n.split("_")[0]):parseInt(n))},U=function(t){var n=e.getCookie("_un_discounted_line_item_"+t);return""!==n&&(n.indexOf("_")>-1&&parseInt(n.split("_")[1]))},H=function(e){var n;if("function"==typeof Spinner){var o=new Spinner({top:"-50px",left:"50%",position:"relative"}).spin().el;t(e).first().after(o)}},K=function(){t(".spinner").remove()},W=function(e){t(e).css("background","#EEEEEE"),t(e).css("color","#FFFFFF"),t(e).css("border","1px solid #DDDDDD")},z=function(t){return!t.available},G=function(e,n,o){f.stringChecker(o)&&t(e).css(n,o)},J=function(){return window.location.href.indexOf("upsell-now-debug")<0},Y=function(t){return t<0?0:t},$=function(t,e){return this.checkMutationIds(t,e)||this.checkMutationClasses(t,e)},X=function(e,n){var o=[],i=!1;return"ajaxCart"===n&&(o=["drawer","cart-drawer__item-list","cart-item__qty","mm-opened","cart-sidebar","opened","cart-preview","ajaxcart__inner","cart--is-visible"]),t.each(o,function(t,n){"undefined"!=typeof e.target.classList&&e.target.classList.contains(n)&&(i=!0)}),i},Z=function(t,e){var n=[];return"ajaxCart"===e&&(n=["ajaxifyCart","cart-loading","AjaxifyCart","layer-addcart-modal"]),n.indexOf(t.target.id)>-1},tt=function(t){if("string"==typeof t){var e=[];return e.push(t),e}return t},et=function(){var t=f.getCookiesWithPartialName("_un_discounted_line_item_");return t=t.filter(function(t){return t.indexOf(b)<0&&t.indexOf(v)<0})},nt=function(e,n){var o=["display","border","background","margin","padding","font-family","font-size","font-weight","height","width","text-transform","font-style","letter-spacing","flex","color","line-height","text-decoration","text-align","vertical-align","white-space","border-radius","cursor","position"];t.each(o,function(o,i){t(n).css(i,t(e).css(i))})},ot=function(t){var e=t.substring(t.indexOf("?")),n=t.substring(0,t.indexOf("?")),o=n.lastIndexOf("."),i,r;return n.substring(0,o)+"_medium"+n.substring(o)+e};this.stringChecker=o,this.objectChecker=i,this.arrayChecker=r,this.unFormatCents=a,this.unFormatPercent=c,this.getShopifyDomain=u,this.getPrimaryDomain=s,this.getServerAddress=d,this.getAnalyticsApiUrl=l,this.checkDatastore=p,this.checkSettingsInDatastore=h,this.getShopInDatastore=m,this.getOffersInDatastore=y,this.getOfferObjects=C,this.onProductPage=w,this.onCartPage=S,this.onCollectionPage=O,this.onHomePage=T,this.enabledOnHomePage=j,this.enabledOnCollectionPage=D,this.getProductPageQuantityValue=A,this.mergeThemeAndShopSettings=L,this.mergeValues=q,this.setCookie=Q,this.expireCookie=R,this.getCookie=B,this.getCookiesWithPartialName=E,this.getOfferIdForItemKeyFromCookie=V,this.getQuantityForItemKeyFromCookie=U,this.enableSpinner=H,this.disableSpinner=K,this.applyDisabledStyles=W,this.outOfStock=z,this.applyStyle=G,this.log=n,this.notInDebugMode=J,this.noNegative=Y,this.enabledOnCurrentPage=F,this.getCurrentVariant=M,this.getCurrentVariantId=N,this.checkMutations=$,this.checkMutationClasses=X,this.checkMutationIds=Z,this.arrayify=tt,this.getDiscountedLineItemsFromCookies=et,this.getOfferById=k,this.cloneStyles=nt,this.getMediumImageURL=ot}function o(){var e=this,n=function(){e.checkBundleIntegrity()},o=function(){h.updateCart(function(){e.switchTempOriginalProductLinksToLineItemKeys(),e.clearOldLineItemKeys(),_.remove_upsell_products_if_original_product_removed&&(f.log("Checking for original products"),e.initAjaxCartMutationObserver(),e.disableRemoveButtonClickListeners(),e.createRemoveButtonClickEventListener(),e.checkIfOriginalProductStillInCart()),_.remove_upsell_products_if_trigger_products_removed&&(f.log("Checking for trigger product requirements"),e.checkTriggerProductRequirements()),_.prevent_upsell_product_qty_change&&(f.log("Checking for upsell product quantity changes"),e.checkUpsellProductQtys())})},i=function(){var e=f.getDiscountedLineItemsFromCookies(),n=[];t.each(e,function(t,e){var o=e.substring(0,e.indexOf("=")),i=o.substring(o.lastIndexOf("_")+1),r=f.getOfferIdForItemKeyFromCookie(i);if(r){var a=f.getOfferById(r);a&&(a.checkIfTriggerProductsInCart()||(f.log("Trigger products req not met for "+r+". Removing associated upsell items."),n.push(i)))}}),n.length>0&&(f.log("Removing line items:"+n),h.removeLineItemKeysFromCart(n,!0))},r=function(){var e=f.getDiscountedLineItemsFromCookies();t.each(e,function(t,e){var n=e.substring(0,e.indexOf("=")),o=n.substring(n.lastIndexOf("_")+1);h.hasLineItemKey(o)||f.expireCookie(n)})},a=function(){var e=f.getDiscountedLineItemsFromCookies();t.each(e,function(t,e){var n=e.substring(0,e.indexOf("=")),o=n.substring(n.lastIndexOf("_")+1),i=f.getQuantityForItemKeyFromCookie(o),r;i!==h.getLineItemQuantity(o)&&(f.log("Upsell product quantity changed for: "+o+". Resetting quantity."),h.changeQuantity(o,i,!0))})},c=function(){var e=f.getCookiesWithPartialName(v);t.each(e,function(t,e){var n=e.substring(e.lastIndexOf("_")+1,e.indexOf("=")),o=e.substring(e.indexOf("=")+1).split(",");h.hasLineItemKey(n)?f.log("Original product line item key found in cart."):(f.log("Original product line item key missing from cart. Removing upsell items."),o=f.arrayify(o),f.expireCookie(e.substring(0,e.indexOf("="))),h.removeLineItemKeysFromCart(o,!0))})},u=function(){var t=e.generateOriginalProductVariantIdToUpsellKeyMap();e.setOriginalProductLineItemKeyToUpsellItemKeysCookie(t),e.clearTempOriginalProductLinkCookies()},s=function(){var e=f.getCookiesWithPartialName(b),n={};return t.each(e,function(t,e){var o=e.substring(b.length,e.indexOf("=")),i=e.substring(e.indexOf("=")+1,e.length);f.objectChecker(n[i])||(n[i]=[]),n[i].push(o)}),n},d=function(e){t.each(Object.keys(e),function(t,n){var o=h.getLastLineItemKeyForVariantId(n);if(o){var i=e[n].join(",");f.stringChecker(i)&&f.stringChecker(o)&&f.setCookie(v+o,i,30)}})},l=function(){var e=f.getCookiesWithPartialName(b);t.each(e,function(t,e){var n=e.substring(0,e.indexOf("="));f.expireCookie(n)})},p=function(){t(document).on("click",C,function(t){return t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation(),h.updateCart(function(){e.switchTempOriginalProductLinksToLineItemKeys(),e.handleRemoveButtonClick(t)}),!1})},g=function(){var t=!1,n=new MutationObserver(function(n){n.forEach(function(n){!t&&f.checkMutations(n,"ajaxCart")&&(setTimeout(function(){f.log("Ajax cart mutation triggered."),e.disableRemoveButtonClickListeners(),e.checkBundleIntegrity()},250),t=!0)}),setTimeout(function(){t=!1},2e3)}),o={attributes:!0,childList:!0,characterData:!0,subtree:!0},i=document.body;n.observe(i,o)},m=function(){t(".cart-item__remove, .cart-drawer__item-delete").removeAttr("data-cart-item-delete"),t.each(t(".cart-item__remove"),function(e,n){t(n).replaceWith(t(n).clone().removeClass("cart-item__remove").addClass("un-remove-btn"))})},y=function(t){var n=e.getRemovedLineItemKeyFromLink(t);if(n){var o=f.getCookie(v+n);if(f.stringChecker(o))f.log("Found upsell cookie, displaying warning"),e.showUpsellProductRemovalWarning(n,o);else{f.log("Couldn't find upsell item cookie for removed item.");var i=[];i.push(n),h.removeLineItemKeysFromCart(i,!0)}}else f.log("Couldn't find line item key for removed item.")},k=function(n,o){var i=e.convertProductKeysToProductNames(n)[0],r=o.split(","),a=e.convertProductKeysToProductNames(r);if(a.length>0){var c=a.join(", "),u=_.removing_original_product_will_remove_upsell_products_warning.replace("{{original_product}}",i).replace("{{upsell_products}}",c),s,d;if(u=t("<div/>").html(u).text(),confirm(u))(d=[]).push(n),d=d.concat(r),f.expireCookie(v+n),h.removeLineItemKeysFromCart(d,!0)}else{var d;f.log("No upsell items associated with line item key. Clearing cookie and removing item from cart."),(d=[]).push(n),f.expireCookie(v+n),h.removeLineItemKeysFromCart(d,!0)}},w=function(e){var n=[];if("string"==typeof e){var o=h.getProductTitleFromLineItemKey(e);f.stringChecker(o)&&n.push(o)}else"object"==typeof e&&t.each(e,function(t,e){var o=h.getProductTitleFromLineItemKey(e);f.stringChecker(o)&&n.push(o)});return n},P=function(e){var n=!1,o=t(e.target).attr("href");if(f.stringChecker(o)||(o=t(e.target).parent().attr("href")),f.stringChecker(o)&&o.indexOf("line=")>=0){var i=/line=([0-9]+)/g.exec(o)[1]-1;n=un.cart.items[i].key}else n=t(e.target).parents(".cart-drawer__item").data("cart-item-id");return f.stringChecker(n)||(n=t(e.target).parents(".cart-row").data("id")),n};this.startBundleEnforcer=n,this.switchTempOriginalProductLinksToLineItemKeys=u,this.createRemoveButtonClickEventListener=p,this.handleRemoveButtonClick=y,this.clearTempOriginalProductLinkCookies=l,this.generateOriginalProductVariantIdToUpsellKeyMap=s,this.setOriginalProductLineItemKeyToUpsellItemKeysCookie=d,this.getRemovedLineItemKeyFromLink=P,this.showUpsellProductRemovalWarning=k,this.convertProductKeysToProductNames=w,this.initAjaxCartMutationObserver=g,this.disableRemoveButtonClickListeners=m,this.checkBundleIntegrity=o,this.checkIfOriginalProductStillInCart=c,this.checkUpsellProductQtys=a,this.clearOldLineItemKeys=r,this.checkTriggerProductRequirements=i}function i(){var e=this,n=function(){e.checkIfItemsWereAddedViaUpsellPopup(),e.updateCartPageWithDiscounts(),e.initRefreshCartPageEventHandler()},o=function(){e.updateDiscountedSubtotal(),e.updateDiscountsInLineItemsWithCartKeys(),setInterval(e.updateDiscountedSubtotal,3e3),setInterval(e.updateDiscountsInLineItemsWithCartKeys,3e3),e.updateWrappedLineItemPrices(),e.updateWrappedLineItemTotals(),_.cart_bar_enabled&&f.objectChecker(un.cart.un_total_discount)&&un.cart.un_total_discount>0&&e.showCartBar(),_.hide_express_checkout_buttons&&f.objectChecker(un.cart.un_total_discount)&&un.cart.un_total_discount>0&&(t("head").append('<style type="text/css">.additional-checkout-buttons,.google-wallet-button-holder,.amazon-payments-pay-button,.shopify-payment-button{\ndisplay:none !important;\n}</style>'),t(".additional-checkout-buttons, .google-wallet-button-holder,.amazon-payments-pay-button,.shopify-payment-button").css("display","none"))},i=function(){0===t("#un-cart-bar-page").length&&e.addBarToPage(_.cart_bar_placement_selector,_.cart_bar_placement_position,"un-cart-bar-page"),0===t("#un-cart-bar-ajax").length&&_.ajax_cart_integration_enabled&&e.addBarToPage(_.cart_bar_ajax_placement_selector,_.cart_bar_ajax_placement_position,"un-cart-bar-ajax"),e.applyBarStyles()},r=function(){f.stringChecker(_.cart_bar_font_family)&&(t("head").append('<link href="https://fonts.googleapis.com/css?family='+_.cart_bar_font_family+'" rel="stylesheet">'),t(".un-cart-bar").css("font-family",_.cart_bar_font_family.replace(/\+/g," ")+", sans-serif")),f.applyStyle(".un-cart-bar","background-color",_.cart_bar_bg_color),f.applyStyle(".un-cart-bar","color",_.cart_bar_text_color),f.applyStyle(".un-cart-bar","padding",_.cart_bar_padding),f.applyStyle(".un-cart-bar","font-size",_.cart_bar_font_size),f.applyStyle(".un-cart-bar","border-radius",_.cart_bar_border_radius)},a=function(e,n,o){var i='<div class="un-cart-bar" style="display: none;" id="'+o+'">'+_.cart_bar_text+"</div>",r=_.cart_bar_fade_in_duration||0,a=_.cart_bar_fade_out_duration||0,c=_.cart_bar_display_duration||0;f.stringChecker(n)&&"after"!==n?"before"===n?t(e).before(i):"prepend"===n?t(e).prepend(i):"append"===n&&t(e).append(i):t(e).after(i),t(".un-cart-bar").fadeIn(1e3*r),c>0&&setTimeout(function(){t(".un-cart-bar").fadeOut(1e3*a)},1e3*c)},c=function(){f.stringChecker(_.cart_form_selector)&&(f.stringChecker(_.quantity_selector)&&t(document).on("change",_.quantity_selector,function(e){setTimeout(function(){t(_.cart_form_selector).submit()},1500)}),f.stringChecker(_.quantity_button_selector)&&t(document).on("click",_.quantity_button_selector,function(e){setTimeout(function(){t(_.cart_form_selector).submit()},1500)}))},s=function(){var e=d();t(_.cart_subtotal_selector).html(f.unFormatCents(e,_.money_with_currency_format))},d=function(){var e=0;return t.each(un.cart.items,function(t,n){f.objectChecker(n.un_total_discount_value)&&(e+=n.un_total_discount_value)}),un.cart.un_total_discount=e,un.cart.total_price-e},l=function(){if(f.stringChecker(_.ajax_cart_line_item_element_with_key_class)&&f.stringChecker(_.ajax_cart_line_item_key_property_name)&&f.stringChecker(_.ajax_cart_line_item_unit_price_class)){var n=document.getElementsByClassName(_.ajax_cart_line_item_element_with_key_class);t.each(un.cart.items,function(o,i){t.each(n,function(t,n){n.getAttribute(_.ajax_cart_line_item_key_property_name)===i.key&&e.updateSingleLineItemDiscounts(n,i)})})}},p=function(e,n){if(f.objectChecker(n.un_discount_value)){if(t(e).find(_.ajax_cart_line_item_unit_price_class).html(f.unFormatCents(n.un_discounted_price,_.money_format)),f.stringChecker(_.ajax_cart_line_item_total_price_class)){var o=n.line_price-n.un_total_discount_value;t(e).find(_.ajax_cart_line_item_total_price_class).html(f.unFormatCents(o,_.money_format))}}else t(e).find(_.ajax_cart_line_item_unit_price_class).html(f.unFormatCents(n.price,_.money_format)),f.stringChecker(_.ajax_cart_line_item_total_price_class)&&t(e).find(_.ajax_cart_line_item_total_price_class).html(f.unFormatCents(n.line_price,_.money_format))},g=function(){var e=t(k);t.each(un.cart.items,function(n,o){f.objectChecker(o.un_discount_value)&&t.each(e,function(e,n){t(n).data("id")===o.key&&t(n).html(f.unFormatCents(o.un_discounted_price,_.money_format))})})},m=function(){var e=t(w);t.each(un.cart.items,function(n,o){f.objectChecker(o.un_discount_value)&&t.each(e,function(e,n){if(t(n).data("id")===o.key){var i=o.line_price-o.un_total_discount_value;t(n).html(f.unFormatCents(i,_.money_format))}})})},y=function(){f.objectChecker(window.un.cart.items)&&t.each(window.un.cart.items,function(t,n){var o=f.getOfferIdForItemKeyFromCookie(n.key);if(o){var i=u.getActiveOfferById(o);f.objectChecker(i)&&e.applyOfferDiscountToItem(n,i)}})},v=function(t,n){"percentage_discount"===n.discountType?(t.appliedDiscount=e.percentageDiscountHash(t,n),t.un_discount_value=100*t.appliedDiscount.discount_amount,t.un_total_discount_value=100*t.appliedDiscount.total_discount_amount,t.un_discounted_price=t.price-t.un_discount_value):"fixed_amount_discount"===n.discountType?(t.appliedDiscount=e.fixedAmountDiscountHash(t,n),t.un_discount_value=n.discountFixedAmount,t.un_total_discount_value=t.appliedDiscount.total_discount_amount,t.un_discounted_price=t.price-n.discountFixedAmount):"set_price"===n.discountType&&(t.appliedDiscount=e.setPriceDiscountHash(t,n),t.un_discount_value=t.price-n.discountPrice,t.un_total_discount_value=t.appliedDiscount.total_discount_amount,t.un_discounted_price=n.discountPrice)},b=function(t,e){var n=Math.floor(e.discountFixedAmount),o={};return n>t.price&&(n=t.price),o.discount_amount=n,o.total_discount_amount=n*t.quantity,o.value_type="fixed_amount",o.description=_.discount_title,o.title=_.discount_title,o.value=n/100,o.amount=n*t.quantity/100,o},C=function(t,e){var n={},o=t.price/100;return n.value=Math.floor(e.discountPercent),n.discount_amount=Math.floor(o*n.value)/100,n.total_discount_amount=Math.floor(o*n.value*t.quantity)/100,n.value_type="percentage",n.description=_.discount_title,n.title=_.discount_title,n.amount=Math.floor(o*n.value*t.quantity)/100,n},P=function(t,e){var n=Math.floor(t.price-e.discountPrice),o={};return o.discount_amount=n,o.total_discount_amount=n*t.quantity,o.value_type="fixed_amount",o.description=_.discount_title,o.title=_.discount_title,o.value=n/100,o.amount=n*t.quantity/100,o},I=function(t){var e=["ajaxifyCart","cart-loading","AjaxifyCart","layer-addcart-modal"];if(f.stringChecker(_.mutation_ids)){var n,o=_.mutation_ids.replace(/ /g,"").split(",");e=e.concat(o)}return-1!==e.indexOf(t.target.id)},x=function(e){var n=["drawer","cart-drawer__item-list","ajaxcart__footer--fixed","cart-item__qty","mm-opened","cart-sidebar","opened","cart-preview","mfp-ready"];if(f.stringChecker(_.mutation_classes)){var o,i=_.mutation_classes.replace(/ /g,"").split(",");n=n.concat(i)}var r=!1;return t.each(n,function(t,n){"undefined"!=typeof e.target.classList&&e.target.classList.contains(n)&&(r=!0)}),r},S=function(t){return I(t)||x(t)},O=function(){var t=!1,e=new MutationObserver(function(e){e.forEach(function(e){!t&&S(e)&&(setTimeout(function(){h.updateCart(function(){u.createCheckoutEventListener()})},250),t=!0)}),setTimeout(function(){t=!1},2e3)}),n={attributes:!0,childList:!0,characterData:!0,subtree:!0},o=document.body;e.observe(o,n)};this.applyOfferDiscountsToCart=n,this.checkIfItemsWereAddedViaUpsellPopup=y,this.applyOfferDiscountToItem=v,this.updateDiscountedSubtotal=s,this.updateWrappedLineItemPrices=g,this.updateWrappedLineItemTotals=m,this.updateDiscountsInLineItemsWithCartKeys=l,this.updateSingleLineItemDiscounts=p,this.fixedAmountDiscountHash=b,this.percentageDiscountHash=C,this.setPriceDiscountHash=P,this.updateCartPageWithDiscounts=o,this.initRefreshCartPageEventHandler=c,this.initAjaxCartObserver=O,this.showCartBar=i,this.addBarToPage=a,this.applyBarStyles=r}function r(){var e=this,n=function(e,n,o,i){window.un.addedToCart[e]=!0;var r={quantity:n,id:e},a={_un_special_offer:o.id};r.properties=t.extend({},a);var c=o.getLineItemDiscountPropertyArray();c.length>0&&(r.properties=t.extend({},r.properties,c[0])),t.ajax({cache:!1,type:"POST",url:"/cart/add.js",data:r,dataType:"json"}).done(function(t){i(t)})},o=function(t){return"undefined"==typeof window.un.addedToCart[t]||!window.un.addedToCart[t]},i=function(e){t.ajax({cache:!1,type:"GET",url:"https://"+window.location.hostname+"/cart?view=upsell-now-cart",success:function(t){window.un.cart=JSON.parse(t),m.applyOfferDiscountsToCart(),e()}})},r=function(){var n={};return n.line_items=JSON.stringify(e.getLineItemsHash()),n.order_notes="",t("#CartSpecialInstructions:visible").length>0&&(n.order_notes=t("#CartSpecialInstructions:visible").val()),t("#cartSpecialInstructions:visible").length>0&&(n.order_notes+=t("#cartSpecialInstructions:visible").val()),t("#cartSpecialInstructionsFromPopup:visible").length>0&&(n.order_notes+=t("#cartSpecialInstructionsFromPopup:visible").val()),""===n.order_notes&&t("textarea[name='note']:visible:first").length>0&&(n.order_notes+=t("textarea[name='note']:visible:first").val()),n},a=function(){var n=[];return t.each(window.un.cart.items,function(t,o){n.push(e.getLineItemHash(o))}),n},c=function(t){var n={};return n.title=t.title,n.variant_id=t.variant_id,n.product_id=t.product_id,n.image=t.image,n.quantity=t.quantity,n.grams=t.grams,n.requires_shipping=t.requires_shipping,n.price=t.price/100,n.properties=e.getLineItemPropertiesArray(t),f.objectChecker(t.appliedDiscount)&&(n.applied_discount=t.appliedDiscount),n},u=function(e){var n=[];return null!=e.properties&&t.each(Object.keys(e.properties),function(t,o){var i={};i.name=o,i.value=e.properties[o],n.push(i)}),n},s=function(){var e=!1;return t.each(window.un.cart.items,function(t,n){f.objectChecker(n.appliedDiscount)&&(e=!0)}),e},d=function(e){t.ajax({cache:!1,type:"POST",url:f.getServerAddress()+"/get_checkout_url?shopify_domain="+f.getShopifyDomain(),data:JSON.stringify(e),dataType:"json",contentType:"application/json; charset=utf-8",success:function(t){t.invoice_url?window.location.href=t.invoice_url.replace("checkout.shopify.com",_.primary_domain):alert("An error occured, and we're unable to process your order at this time. Please contact customer service for assistance. ")}})},l=function(){var t=e.cloneUnCart();return e.addCurrentProductPageVariantAsLineItem(t),t},p=function(){return JSON.parse(JSON.stringify(window.un.cart))},h=function(t){if(!f.onProductPage())return t;var e=f.getCurrentVariantId(),n=t.items.find(function(t){return t.variant_id==e});return"object"==typeof n?n.quantity+=f.getProductPageQuantityValue():((n={}).quantity=f.getProductPageQuantityValue(),n.price=f.getCurrentVariant().price,n.collection_ids=window.un.product_collections,n.product_id=window.un.product.id,n.variant_id=Number(e),t.items.push(n)),t.total_price=t.items.reduce(function(t,e){return t+e.price*e.quantity},0),t.original_total_price=t.total_price,t},g=function(n){var o=!1,i=e.cloneWithCurrentProductPageVariantAsLineItem();return t.each(i.items,function(t,e){e.product_id.toString()===n.toString()&&(o=!0)}),o},y=function(e){var n=!1;return t.each(un.cart.items,function(t,o){o.key===e&&(n=!0)}),n},v=function(e){var n=!1;return t.each(un.cart.items,function(t,o){o.key===e&&(n=o)}),n},b=function(t){var n=e.getLineItem(t);return!!n&&n.quantity},C=function(e){var n=!1,o=un.cart.items.reverse();return t.each(o,function(t,o){o.variant_id.toString()===e.toString()&&(n=o.key)}),n},k=function(e){var n=!1;return t.each(un.cart.items,function(t,o){o.key.toString()===e&&(n=o.title)}),n},w=function(n,o){var i=e.createUpdateQtyHash(n,0);t.ajax({cache:!1,type:"POST",url:"/cart/update.js",data:{updates:i},dataType:"json"}).done(function(t){f.log(t),o&&e.redirectToCartPage()})},P=function(n,o,i){var r=f.arrayify(n),a=e.createUpdateQtyHash(r,o);t.ajax({cache:!1,type:"POST",url:"/cart/update.js",data:{updates:a},dataType:"json"}).done(function(t){i&&e.redirectToCartPage()})},I=function(e,n){var o={};return t.each(e,function(t,e){o[e]=n}),o},x=function(){setTimeout(function(){window.location.href="/cart"},250)},S=function(e,n){var o=t(e.items).filter(function(t){return t.variant_id===n});return f.objectChecker(o)?o.quantity:1};this.getVariantQuantityFromCartJSON=S,this.updateCart=i,this.changeQuantity=P,this.addToCart=n,this.createDraftOrder=r,this.getLineItemsHash=a,this.getLineItemHash=c,this.getLineItemPropertiesArray=u,this.hasDiscounts=s,this.getAndSendToCheckoutUrl=d,this.cloneWithCurrentProductPageVariantAsLineItem=l,this.cloneUnCart=p,this.addCurrentProductPageVariantAsLineItem=h,this.inCart=g,this.notYetAddedToCart=o,this.getLastLineItemKeyForVariantId=C,this.getProductTitleFromLineItemKey=k,this.removeLineItemKeysFromCart=w,this.redirectToCartPage=x,this.createUpdateQtyHash=I,this.hasLineItemKey=y,this.getLineItem=v,this.getLineItemQuantity=b}function a(e){var n=this,o="_un_closed_offer_"+e.id.toString(),i=!0,a=function(){g.track("popup_views",{offer_id:e.id}),t("#un-modal-title").text(e.popupTitle),t("#un-modal-description").text(e.popupDescription),t("#upsell-popup-close-link").text(_.no_thanks_text),t("#upsell-popup-continue-button").text(_.continue_button_text),t("#upsell-product-table").html(""),2===parseInt(_.account_settings.popup_version)&&(n.initializeRemoveButtons(),"checkout"!==n.offer.triggerEvent&&n.printOriginalProductRow(window.un.product)),n.printProductRows(),t("#un-modal-background").addClass("un-manual-modal-container"),n.initializeAddToCartButtons(),n.initializeVariantFields(),n.initializeCloseButtons(),n.applyStyles(),n.makeVariantFieldWidthsUniform()},c=function(){t(window).click(function(t){!n.fullsizeImageModalOpenedOnPage()&&t.target.classList.contains("un-manual-modal-container")&&n.close(),n.closeImagePopupOnClickOutside()}),t("#un-modal-close-btn, #upsell-popup-close-link, #upsell-popup-continue-button").click(function(){n.close()}),n.initializeAddToCartButtons(),n.initializeVariantFields(),n.initializeQuantityFields(),n.applyStyles()},u=function(){t("#un-modal-background").removeClass("un-manual-modal-container"),window.un.atcPopupClosed||(window.un.atcPopupClosed=!0,t(_.add_to_cart_button_selector).trigger("click"),"honu-au.myshopify.com"===f.getShopifyDomain()&&setTimeout(function(){window.location.href="/cart"},1250)),_.hide_offer_if_already_declined&&f.setCookie(o,e.id,_.num_days_before_showing_offer_again)},s=function(){n.fullsizeImageModalOpenedOnPage()&&(t("#un-modal-background-for-full-img").hasClass("opened")?(t("#un-modal-background-for-full-img").removeClass("opened"),t("#un-modal-background-for-full-img").removeClass("un-manual-modal-container")):t("#un-modal-background-for-full-img").addClass("opened"))},d=function(){t("#un-modal-background").removeClass("un-manual-modal-container"),window.un.checkoutPopupClosed=!0,_.hide_offer_if_already_declined&&f.setCookie(o,e.id,_.num_days_before_showing_offer_again),r.checkoutEventHandler()},l=function(o){var i=f.getCurrentVariant(),r=o.imgSrc;i.featured_image&&i.featured_image.src?r=f.getMediumImageURL(i.featured_image.src):f.stringChecker(r)&&(r=f.getMediumImageURL(r.replace("_small","")));var a=t("#upsell-popup-original-product-row").html(),c=n.getOriginalProductPrices(i.compare_at_price,i.price),u,s,d,l,p={upsell_product_img_src:r,upsell_product_title:t("<div/>").html(o.title).text(),upsell_product_original_price:t("<div/>").html(c[0]).text(),upsell_product_price:t("<div/>").html(c[1]).text(),upsell_product_link:n.getProductLink(o),product_links_enabled:e.productLinksEnabled},_,h=unHandleBars.compile(a)(p);h=h.replace(/undefined/g," "),t("#upsell-product-table").append(h)},p=function(){t.each(e.productsForPopup,function(o,i){var r=t("#upsell-popup-product-row").html(),a=n.getPrices(i.originalPrice,i.price),c=f.outOfStock(i),u=t("<div/>").html(i.title).text(),s=t("<div/>").html(a[0]).text(),d=t("<div/>").html(a[1]).text(),l="",p=n.getVariantFieldHTML(i),h=n.getProductLink(i),g=e.showVariantField,m=n.getUpsellProductQty(i,e),y=n.getProductImageSetting(e.productImageSetting),v=n.showFullSizeProductImage(e);i.variants.length<2&&(g=!1),a[2]&&(l=n.getSavingsText(a[2]));var b={show_product_image:y,upsell_product_img_src:i.imgSrc,upsell_product_title:u,upsell_product_qty:m,upsell_product_original_price:s,upsell_product_price:d,upsell_product_id:i.productId,upsell_variant_id:i.variantId,
upsell_product_out_of_stock:c,upsell_product_in_stock:!c,upsell_product_add_to_cart_text:_.add_to_cart_button_text,upsell_product_sold_out_text:_.sold_out_button_text,upsell_show_quantity_field:e.showQuantityField,upsell_hide_quantity_field:!e.showQuantityField&&m>1,upsell_show_variant_field:g,upsell_product_variants:p,upsell_product_link:h,product_links_enabled:e.productLinksEnabled,show_full_product_image:v,upsell_show_savings:a[2],upsell_product_savings:l},C,k=unHandleBars.compile(r)(b);k=k.replace(/undefined/g," "),t("#upsell-product-table").append(k)})},m=function(t,e){var n=[];return"number"==typeof parseInt(t)&&parseInt(t)>parseInt(e)?n[0]=f.unFormatCents(t,_.money_format):n[0]=!1,n[1]=f.unFormatCents(e,_.money_format),n},y=function(t,o){var i=[];return"no_discount"!==e.discountType&&0!==e.discountType?(i[0]=f.unFormatCents(o,_.money_format),i[1]=f.unFormatCents(n.getDiscountedPrice(o),_.money_format),i[2]=f.unFormatCents(o-n.getDiscountedPrice(o),_.money_format)):("number"==typeof parseInt(t)&&parseInt(t)>parseInt(o)?(i[0]=f.unFormatCents(t,_.money_format),i[2]=f.unFormatCents(t-o,_.money_format)):(i[0]=!1,i[2]=!1),i[1]=f.unFormatCents(o,_.money_format)),i},v=function(t){var n=0,o=e.discountType;return"percentage_discount"===o?n=t-Math.floor(t*e.discountPercent/100):"fixed_amount_discount"===o?n=t-e.discountFixedAmount:"set_price"===o&&(n=e.discountPrice),(n<0||""===n)&&(n=0),n},b=function(e,n){t(e).text(_.added_to_cart_button_text).val(_.added_to_cart_button_text),t(e).addClass("disabled")},C=function(e,n){t(n).text(_.added_to_cart_button_text).val(_.added_to_cart_button_text);var o=t(e).parents(".upsell-product-list-item"),i=t(o).find(".checkmark");o.hasClass("added")||(o.find("select,input").attr("disabled",!0),o.find(".upsell-remove-button").fadeIn(300),o.addClass("added"),t(i).fadeIn(300))},k=function(n,o,i){var r=1;return r=t("#upsell-now-qty-"+o).length>0?t("#upsell-now-qty-"+o).val():e.showQuantityField?t(".upsell-now-quantity-field[data-product-id='"+i+"']").val():t(n).data("quantity")},w=function(e,n,o){t(e).length>0&&(t(e).attr("data-cart-key",n),t(e).attr("data-cart-quantity",o))},P=function(t,n){var o=f.getCurrentVariantId();f.setCookie("_un_discounted_line_item_"+t,e.id.toString()+"_"+n,30),f.setCookie("_un_discounted_line_item_original_product_link_temp_"+t,o,30)},I=function(t,o,i){var r=t.quantity-o,a=t.key;n.addAttributesToRemoveButton(i,a,r),n.setLineItemCookie(a,o),e.closePopupOnATC&&n.close()},x=function(e){var n={};return(t(e).is("svg")||t(e).is("path"))&&(e=t(e).parents("button")),n.targetButton=t(e),n.targetSpan=t(e),n.targetRemoveButton=t(e).parents(".upsell-product-cart-fields").find(".upsell-remove-button"),n.targetQuantity=t(e).parents(".upsell-product-cart-fields").find(".upsell-now-quantity-field"),n.targetVariant=t(e).parents(".upsell-product-cart-fields").find(".upsell-product-variant-field"),t(n.targetButton).is("span")?n.targetButton=t(n.targetButton).parents("button"):t(n.targetButton).is("button")&&t(n.targetButton).find("span").length>0&&(n.targetSpan=t(n.targetButton).find("span")),n.variantId=t(n.targetButton).data("id"),n.productId=t(n.targetButton).data("product-id"),n},S=function(){t(document).on("click",".upsell-product-add-to-cart",function(t){t.stopPropagation(),t.preventDefault();var o=n.getProductRowFields(t.target);if(h.notYetAddedToCart(o.variantId)){n.popupVersionSpecificATCHandler(o.targetButton,o.targetSpan);var i=n.getUpsellProductQtyFromProductRowInPopup(o.targetButton,o.variantId,o.productId);n.trackAddToCart(o,i),h.addToCart(o.variantId,i,e,function(t){n.upsellAddToCartHandler(t,i,o.targetRemoveButton)})}})},O=function(t,o){var r,a=e.productsForPopup.find(function(e){return e.productId===t.productId.toString()}).variants.find(function(e){return e.id===t.variantId.toString()}),c="no_discount"===e.discountType?a.price:n.getDiscountedPrice(a.price);g.track("add_to_carts",{offer_id:e.id,variant_id:t.variantId,first_add_to_cart:i,price:c,quantity:o}),i=!1},T=function(){t(document).on("click",".upsell-remove-button",function(e){var n=t(e.target).parents(".upsell-product-list-item"),o=t(n).find(".upsell-remove-button"),i=t(n).find(".upsell-product-add-to-cart").data("id"),r=t(n).find(".checkmark"),a=t(o).attr("data-cart-key"),c=t(o).attr("data-cart-quantity");window.un.addedToCart[i]=!1,n.hasClass("added")&&(n.find("select,input").attr("disabled",!1),n.find(".upsell-product-add-to-cart span").text(_.add_to_cart_button_text),n.removeClass("added"),t(r).fadeOut(300),n.find(".upsell-remove-button").hide(),h.changeQuantity(a,c,!1))})},j=function(){f.stringChecker(_.add_to_cart_button_font_family)&&(t("head").append('<link href="https://fonts.googleapis.com/css?family='+_.add_to_cart_button_font_family+'" rel="stylesheet">'),t("body #upsell-product-table .upsell-product-add-to-cart").css("font-family",_.add_to_cart_button_font_family.replace(/\+/g," ")+", sans-serif")),f.stringChecker(_.popup_font_family)&&(t("head").append('<link href="https://fonts.googleapis.com/css?family='+_.popup_font_family+'" rel="stylesheet">'),t("body #un-modal-content").css("font-family",_.popup_font_family.replace(/\+/g," ")+", sans-serif")),f.applyStyle("#upsell-product-table .upsell-product-add-to-cart","background-color",_.add_to_cart_button_bg_color),f.applyStyle("#upsell-product-table .upsell-product-add-to-cart","color",_.add_to_cart_button_text_color),f.applyStyle("#upsell-product-table .upsell-product-add-to-cart","border-color",_.add_to_cart_button_border_color),f.applyStyle("#upsell-popup-close-link","color",_.no_thanks_text_color),f.applyStyle(".upsell-product-title","color",_.product_title_text_color),f.applyStyle(".upsell-product-original-price","color",_.regular_price_text_color),f.applyStyle(".upsell-product-price","color",_.sale_price_text_color),f.applyStyle("#un-modal-content","background-color",_.popup_bg_color),f.applyStyle("#un-modal-title","color",_.popup_title_text_color),f.applyStyle("#un-modal-description","color",_.popup_description_text_color),f.applyStyle("#upsell-popup-continue-button","background-color",_.continue_button_bg_color),f.applyStyle("#upsell-popup-continue-button","border-color",_.continue_button_border_color),f.applyStyle("#upsell-popup-continue-button","color",_.continue_button_text_color)},D=function(e){var o="",i=!0,r="";return n.offer.showVariantField&&e.variants.length>1&&(o='<select class="upsell-product-variant-field" data-id="'+e.productId+'">',t.each(e.variants,function(t,e){e.available&&i?(r="SELECTED",i=!1):r="",o+='<option value="'+e.id+'" '+r+">"+e.title+"</option>"}),o+="</select>"),o},F=function(){n.offer.showVariantField&&t(document).on("change",".upsell-product-variant-field",function(e){var o=t(e.target).data("id").toString(),i=t(e.target).find(":selected").val(),r=n.offer.getPopupProductVariantData(o,i);!1!==r&&(n.swapPricesInRow(o,r),n.swapButtonIdAndStatusInRow(o,r),n.swapProductImageInRow(o,r),n.validateQuantityFieldOnChangeOfVariant(o,r)),e.preventDefault(),e.stopPropagation()})},A=function(){var e=0;t(".upsell-product-variant-field").each(function(){t(this).width()>e&&(e=t(this).width())}),t(".upsell-product-variant-field").width(e)},L=function(){n.offer.showQuantityField&&t(document).on("change",".upsell-now-quantity-field",function(e){var o=t(this),i=t(this).data("product-id").toString(),r=n.getVariantId(i),a=n.offer.getPopupProductVariantData(i,r);!1!==a&&(n.variantPresentInCart(r,a)?n.cartAndInventoryStocklimitChecker(r,o,a):n.verifyIsUpsellQtyGreaterThanInventoryQty(o,a,r))})},q=function(e){var n,o=t("#upsell-product-"+e+" .upsell-product-add-to-cart").data("id");return t("#upsell-product-"+e+" .upsell-product-variant-field").length>0&&(o=t(".upsell-product-variant-field[data-id='"+e+"']").val()),o.toString()},Q=function(e,o){var i=n.getPrices(o.originalPrice,o.price),r=t("<div/>").html(i[0]).text(),a=t("<div/>").html(i[1]).text();if(t("#upsell-product-"+e+" .upsell-product-original-price").html(r),t("#upsell-product-"+e+" .upsell-product-price").html(a),i[2]){var c=n.getSavingsText(i[2]);t("#upsell-product-"+e+" .upsell-product-savings").html(c),t("#upsell-product-"+e+" .upsell-product-savings").show()}else t("#upsell-product-"+e+" .upsell-product-savings").hide()},R=function(e){if(f.stringChecker(_.savings_tag_text))var n=_.savings_tag_text;else var n="Save {{savings_amount}}";return n=n.replace("{{savings_amount}}",e),n=t("<div/>").html(n).text()},B=function(e,n){f.stringChecker(n.featured_image)&&t("#upsell-product-"+e+" .upsell-product-image").attr("src",n.featured_image)},E=function(e,o){var i=t("#upsell-product-"+e+" .upsell-product-add-to-cart"),r=n.getProductRowFields(i);t(r.targetButton).data("id",o.id),o.available?(t(r.targetSpan).text(_.add_to_cart_button_text),t(r.targetButton).removeClass("disabled"),t(r.targetButton).prop("disabled",!1),t(r.targetButton).find("svg").show(),t(r.targetQuantity).removeClass("disabled"),t(r.targetQuantity).prop("disabled",!1)):(t(r.targetSpan).text(_.sold_out_button_text),t(r.targetButton).addClass("disabled"),t(r.targetButton).prop("disabled",!0),t(r.targetButton).find("svg").hide(),t(r.targetQuantity).addClass("disabled"),t(r.targetQuantity).prop("disabled",!0))},N=function(e,o){var i=o.id,r=t(".upsell-now-quantity-field[data-product-id='"+e+"']");n.hideInsufficientStockWarning(r),n.variantPresentInCart(i,o)?n.cartAndInventoryStocklimitChecker(i,r,o):n.verifyIsUpsellQtyGreaterThanInventoryQty(r,o,i)},M=function(t){return"show_product_image"===t},V=function(t){return"https://"+window.Shopify.shop+"/products/"+t.handle},U=function(t){return"show_product_image_with_zoom"===t.productImageSetting&&(n.initalizeFullSizeImageModal(),!0)},H=function(e){t(document).on("click","#un-modal-background img",function(){var e=t(this).attr("src").replace("100x100","600x600").replace("_medium.","_large.");t(".upsell-product-image-for-full-img").attr("src",e),t("#un-modal-background-for-full-img").addClass("un-manual-modal-container")}),t("#un-modal-close-btn-for-full-img, #upsell-popup-close-link-for-full-img").click(function(){t("#un-modal-background-for-full-img").removeClass("un-manual-modal-container"),t("#un-modal-background-for-full-img").removeClass("opened")})},K=function(){var t=document.getElementById("un-modal-background-for-full-img");return null!==t&&t.classList.contains("un-manual-modal-container")},W=function(e,o,i){var r=parseInt(o.val());t.each(un.cart.items,function(t,a){if(a.variant_id===parseInt(e)){var c=a.quantity+r;if(n.isUpsellQtyGreaterThanInventoryAndCartQty(c,i)){var u=f.noNegative(parseInt(i.inventoryQuantity)-a.quantity);n.showInsufficientStockWarning(i,o,u,e)}else n.hideInsufficientStockWarning(o);return!1}})},z=function(t,e){return t>parseInt(e.inventoryQuantity)&&f.stringChecker(e.inventoryManagement)&&!(f.stringChecker(e.inventoryPolicy)&&"continue"===e.inventoryPolicy)},G=function(t,e,o,i){var r,a=_.insufficient_stock_message.replace("{quantity}",o);n.hideInsufficientStockWarning(e),e.after("<span class='qty-alert-popup-field upsell-now-qty-alert-"+e.data("product-id")+"'>"+a+"</span>"),e.val(o)},J=function(e,o){var i=o.upsellQty;return!o.showQuantityField||!f.stringChecker(e.inventoryManagement)||f.stringChecker(e.inventoryPolicy)&&"continue"===e.inventoryPolicy||(i>parseInt(e.inventoryQuantity)&&(i=f.noNegative(parseInt(e.inventoryQuantity))),t.each(un.cart.items,function(t,r){if(parseInt(e.variantId)===r.variant_id){var a=o.upsellQty+r.quantity;return n.isUpsellQtyGreaterThanInventoryAndCartQty(a,e)&&(i=f.noNegative(parseInt(e.inventoryQuantity)-r.quantity)),!1}})),i},Y=function(e){t(".upsell-now-qty-alert-"+e.data("product-id")).remove()},$=function(e){var n=!1;return t.each(un.cart.items,function(t,o){if(o.variant_id===parseInt(e))return n=!0,!1}),n},X=function(t,e,o){if(parseInt(t.val())>e.inventoryQuantity&&f.stringChecker(e.inventoryManagement)&&(!f.stringChecker(e.inventoryPolicy)||"continue"!==e.inventoryPolicy)){var i=f.noNegative(parseInt(e.inventoryQuantity));n.showInsufficientStockWarning(e,t,i,o)}else n.hideInsufficientStockWarning(t)};this.offer=e,this.show=a,"add_to_cart"===e.triggerEvent?this.close=u:"checkout"===e.triggerEvent&&(this.close=d),1===parseInt(_.account_settings.popup_version)?this.popupVersionSpecificATCHandler=b:this.popupVersionSpecificATCHandler=C,this.getProductRowFields=x,this.upsellAddToCartHandler=I,this.setLineItemCookie=P,this.addAttributesToRemoveButton=w,this.getUpsellProductQtyFromProductRowInPopup=k,this.printOriginalProductRow=l,this.printProductRows=p,this.getPrices=y,this.getOriginalProductPrices=m,this.getDiscountedPrice=v,this.initializeAddToCartButtons=S,this.initializeRemoveButtons=T,this.trackAddToCart=O,this.applyStyles=j,this.getVariantFieldHTML=D,this.initializeVariantFields=F,this.makeVariantFieldWidthsUniform=A,this.initializeQuantityFields=L,this.swapPricesInRow=Q,this.swapProductImageInRow=B,this.swapButtonIdAndStatusInRow=E,this.getProductImageSetting=M,this.getProductLink=V,this.cartAndInventoryStocklimitChecker=W,this.getUpsellProductQty=J,this.showInsufficientStockWarning=G,this.validateQuantityFieldOnChangeOfVariant=N,this.hideInsufficientStockWarning=Y,this.variantPresentInCart=$,this.verifyIsUpsellQtyGreaterThanInventoryQty=X,this.isUpsellQtyGreaterThanInventoryAndCartQty=z,this.getVariantId=q,this.showFullSizeProductImage=U,this.initalizeFullSizeImageModal=H,this.fullsizeImageModalOpenedOnPage=K,this.initializeCloseButtons=c,this.closeImagePopupOnClickOutside=s,this.getSavingsText=R}function c(e,n){var o=this,i=function(t,e,n,i,r){o.productHandles=t,o.shopifyDomain=r,o.collectionHandles=e,o.maxNumberOfProducts=n,o.maxNumberOfProductsPerCollection=i,o.productsArray=[],t.length>0?(f.log("Getting upsell products for offer "+o.offer.id),o.ajaxCallToGetProduct(0)):o.getProductsFromSelectedCollections()},r=function(e){var n=o.productHandles[e];o.inProductCache(n.shopify_product_id)?o.processProductData(o.getCachedProduct(n.shopify_product_id),e):t.ajax({cache:!0,type:"GET",url:"https://"+o.shopifyDomain+"/products/"+n.handle+"?view=upsell-now-product",success:function(t){o.setCachedProduct(t,n.shopify_product_id),o.processProductData(t,e)},error:function(){o.processProductData(!1,e)}})},a=function(t,e){t=JSON.parse(t);var n=o.createNewProduct(t);n&&f.outOfStock(n)&&o.offer.hideOutOfStockProducts&&(n=!1,f.log("Not adding "+n.title+" to popup for offer "+o.offer.id+" because it's out of stock and hide out of stock products is enabled.")),n&&h.inCart(n.productId)&&o.offer.hideProductsAlreadyInCart&&(n=!1,f.log("Not adding "+n.title+" to popup for offer "+o.offer.id+" because it's in the cart and hide products in cart is enabled.")),n&&(f.log("Adding "+n.title+" to popup for offer "+o.offer.id+"."),o.productsArray.push(n)),o.productsArray.length===o.maxNumberOfProducts?o.callback(o.productsArray):e<o.productHandles.length-1?(e+=1,o.ajaxCallToGetProduct(e)):o.productsArray.length<o.maxNumberOfProducts&&e===o.productHandles.length-1&&o.getProductsFromSelectedCollections()},c=function(){o.collectionHandles.length>0?(f.log("Getting upsell products from upsell collections for offer "+o.offer.id),o.ajaxCallToGetCollection(0)):o.callback(this.productsArray)},u=function(e){var n=o.collectionHandles[e];o.inCollectionCache(n.shopify_collection_id)?o.processCollectionData(o.getCachedCollection(n.shopify_collection_id),e):t.ajax({cache:!0,type:"GET",url:"https://"+o.shopifyDomain+"/collections/"+n.handle+"?view=upsell-now-collection",success:function(t){o.setCachedCollection(t,n.shopify_collection_id),o.processCollectionData(t,e)}})},s=function(e,n){e=JSON.parse(e);var i=0;t.each(e,function(t,e){if(!o.inProductsArray(e)&&o.productsArray.length<o.maxNumberOfProducts&&i<o.maxNumberOfProductsPerCollection){var n=o.createNewProduct(e);n&&f.outOfStock(n)&&o.offer.hideOutOfStockProducts&&(n=!1,f.log("Not adding "+n.title+" to popup for offer "+o.offer.id+" because it's out of stock and hide out of stock products is enabled.")),n&&h.inCart(n.productId)&&o.offer.hideProductsAlreadyInCart&&(n=!1,f.log("Not adding "+n.title+" to popup for offer "+o.offer.id+" because it's in the cart and hide products in cart is enabled.")),n&&(f.log("Adding "+n.title+" to popup for offer "+o.offer.id+"."),o.productsArray.push(n),i+=1)}});var r=o.productsArray.length===o.maxNumberOfProducts,a=n===o.collectionHandles.length-1,c=n<o.collectionHandles.length-1;r||a?o.callback(o.productsArray):c&&u(n+=1)},d=function(e){var n=!1;return t.each(o.productsArray,function(t,o){e.handle===o.handle&&(n=!0)}),n},l=function(t){if(!1===t)return!1;var e={};return e.title=t.title,e.originalPrice=t.original_price,e.price=t.price,e.variantId=t.variant_id,e.inventoryQuantity=t.inventory_quantity,e.inventoryManagement=t.inventory_management,e.inventoryPolicy=t.inventory_policy,e.productId=t.id,e.available=t.available,e.handle=t.handle,e.variants=p(t.variants),null!=t.img?"wld-pch.myshopify.com"===f.getShopifyDomain()?e.imgSrc=t.img.replace("_100x100","_400x"):t.img.indexOf("_100x100")>-1?e.imgSrc=t.img.replace("_100x100","_medium"):e.imgSrc=t.img:e.imgSrc=!1,e},p=function(e){var n=[];return t.each(e,function(t,e){var o={};o.originalPrice=e.original_price,o.price=e.price,o.title=e.variant_title,o.id=e.variant_id,o.inventoryQuantity=e.inventory_quantity,o.inventoryPolicy=e.inventory_policy,o.inventoryManagement=e.inventory_management,o.available=e.available,f.stringChecker(e.featured_image)&&(o.featured_image=e.featured_image),n.push(o)}),n},_=function(t){return"undefined"!=typeof window.un.cache.collections[t]},g=function(t){return window.un.cache.collections[t]},m=function(t,e){f.objectChecker(window.un.cache)&&f.objectChecker(window.un.cache.collections)&&(window.un.cache.collections[e]=t)},y=function(t){return"undefined"!=typeof window.un.cache.products[t]},v=function(t){return window.un.cache.products[t]},b=function(t,e){f.objectChecker(window.un.cache)&&f.objectChecker(window.un.cache.products)&&(window.un.cache.products[e]=t)};this.getProducts=i,this.ajaxCallToGetProduct=r,this.processProductData=a,this.getProductsFromSelectedCollections=c,this.ajaxCallToGetCollection=u,this.processCollectionData=s,this.createNewProduct=l,this.inProductsArray=d,this.createVariantArray=p,this.inCollectionCache=_,this.getCachedCollection=g,this.setCachedCollection=m,this.inProductCache=y,this.getCachedProduct=v,this.setCachedProduct=b,this.callback=e,this.offer=n}function u(e){var n=this,o=function(){var t="checkout"===n.triggerEvent||f.onProductPage(),e=n.withinStartEndDate(),o=!n.disabledForCustomers(),i=!("add_to_cart"===n.triggerEvent&&f.onProductPage()&&!n.checkIfOnSelectedProductPage());return!t&&f.log("Offer "+n.id+" not qualified because is ATC and we're not on a product page."),!e&&f.log("Offer "+n.id+" not qualified because outside start/end date."),!o&&f.log("Offer "+n.id+" not qualified because customer is logged in and offer disabled for logged-in customers."),!i&&f.log("Offer "+n.id+" not qualified because not on selected product or collection page."),t&&e&&o&&i},i=function(){return n.disableForLoggedInCustomers&&f.objectChecker(window.un.customer_id)},r=function(){return!n.beforeStartDate()&&!n.afterEndDate()},a=function(){if(f.stringChecker(n.startDate)){var t=new Date(n.startDate),e;return new Date<t}return!1},u=function(){if(f.stringChecker(n.endDate)){var t=new Date(n.endDate),e;return new Date>t}return!1},s=function(){var t=h.cloneWithCurrentProductPageVariantAsLineItem(),e=n.checkIfTriggerProductsInCart(t),o=n.checkIfRequiredCartValueMet(t),i=n.checkIfOnSelectedProductPage(),r="Upsell offer reqs failed because:";return!e&&(r+=" trigger products not in cart,"),!o&&(r+=" required cart value not met,"),!i&&(r+=" not on selected product page,"),"Upsell offer reqs failed because:"!==r&&f.log(r),e&&i&&o},d=function(t){f.objectChecker(t)||(t=h.cloneUnCart());var e=0;"undefined"!=typeof t.un_total_discount&&(Number.isNaN(t.un_total_discount)||(e=t.un_total_discount));var o=n.requiredMinimumCartValue<=t.total_price-e;return message=o?"Required cart value met: "+n.requiredMinimumCartValue+" <= "+(t.total_price-e):"Required cart value not met: "+n.requiredMinimumCartValue+" > "+(t.total_price-e),f.log(message),o},l=function(){var t=!1;if("checkout"===n.triggerEvent||f.onCartPage())t=!0;else if(0===n.productPages.length&&0===n.collectionPages.length)t=!0;else if(f.objectChecker(un.product)&&f.objectChecker(un.product_collections)){var e={};e.product_id=un.product.id,e.collection_ids=un.product_collections,t=n.itemInProductArray(e,n.productPages)||n.itemInCollectionArray(e,n.collectionPages)}return t},p=function(e){f.objectChecker(e)||(e=h.cloneUnCart());var o=!1;return 0===n.triggerProducts.length&&0===n.triggerCollections.length?o=!0:(n.triggerQty>1&&f.log("Offer "+n.id+" requires shoppers to have at least "+n.triggerQty+" of the trigger products in cart!"),t.each(e.items,function(t,e){e.quantity>=n.triggerQty&&(m(e,n.triggerProducts)||y(e,n.triggerCollections))&&(o=!0)})),o},g=function(t){return n.itemInProductArray(t,n.upsellProducts)||n.itemInCollectionArray(t,n.upsellCollections)},m=function(e,n){var o=!1;return t.each(n,function(t,n){e.product_id===n.shopify_product_id&&(o=!0)}),o},y=function(e,n){var o=!1;return t.each(e.collection_ids,function(e,i){t.each(n,function(t,e){i===e.shopify_collection_id&&(o=!0)})}),o},v=function(){var e=[],o={};if("percentage_discount"===n.discountType)o[_.line_item_message_key]=_.line_item_discount_amount_message.replace("{{discount_amount}}",f.unFormatPercent(n.discountPercent/100)),e.push(o);else if("fixed_amount_discount"===n.discountType){var i=t("<div/>").html(f.unFormatCents(n.discountFixedAmount,_.money_format)).text();o[_.line_item_message_key]=_.line_item_discount_amount_message.replace("{{discount_amount}}",i),e.push(o)}else if("set_price"===n.discountType){var r=t("<div/>").html(f.unFormatCents(n.discountPrice,_.money_format)).text();o[_.line_item_message_key]=_.line_item_set_price_message.replace("{{set_price}}",r),e.push(o)}return e},b=function(t){n.productsForPopup=t},C=function(){n.productGetter.getProducts(n.upsellProducts,n.upsellCollections,_.max_products_to_show,_.max_products_per_category_to_show,f.getPrimaryDomain())},k=function(){var t=!0;return!0===_.hide_offer_if_already_declined&&""!==n.getCookie("_un_closed_offer_"+n.id.toString())&&(t=!1),t},w=function(t){for(var e=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(e))return i.substring(e.length,i.length)}return""},P=function(){return n.productsForPopup.length>0},I=function(e,o){var i=!1;return t.each(n.productsForPopup,function(n,r){r.productId===e&&t.each(r.variants,function(t,e){e.id===o&&(i=e)})}),i};this.upsellProducts=e.upsell_products||[],this.upsellCollections=e.upsell_collections||[],this.triggerProducts=e.trigger_products||[],this.triggerCollections=e.trigger_collections||[],this.productPages=e.product_pages||[],this.collectionPages=e.collection_pages||[],this.id=e.id||0,this.offerEnabled=e.offer_enabled||!1,this.productLinksEnabled=e.product_links_enabled||!1,this.offerName=e.offer_name||"",this.discountType=e.discount_type||0,this.discountFixedAmount=e.discount_fixed_amount||"",this.discountPrice=e.discount_price||"",this.discountPercent=e.discount_percent||"",this.triggerEvent=e.trigger_event||"",this.popupTitle=e.popup_title||"",this.popupDescription=e.popup_description||"",this.popupSuccessMessage=e.popup_success_message||"",this.startDate=e.start_date||"",this.endDate=e.end_date||"",this.disableForLoggedInCustomers=e.disable_for_logged_in_customers||!1,this.upsellQty=e.upsell_qty||1,this.triggerQty=e.trigger_qty||0,this.requiredMinimumCartValue=e.required_minimum_cart_value||0,this.productsForPopup=[],this.hideOutOfStockProducts=e.hide_out_of_stock_products||!1,this.hideProductsAlreadyInCart=e.hide_products_already_in_cart||!1,this.showQuantityField=e.show_quantity_field||!1,this.showVariantField=e.show_variant_field,this.closePopupOnATC=e.close_popup_on_atc||!1,this.productImageSetting=e.product_image_setting||"show_product_image",this.storeProductsCallback=b,this.triggerProductRequirementsMet=s,this.appliesToItem=g,this.getLineItemDiscountPropertyArray=v,this.getProductsForPopup=C,this.itemInProductArray=m,this.itemInCollectionArray=y,this.checkIfTriggerProductsInCart=p,this.checkIfOnSelectedProductPage=l,this.notDeclined=k,this.getCookie=w,this.beforeStartDate=a,this.afterEndDate=u,this.withinStartEndDate=r,this.disabledForCustomers=i,this.baseRequirementsMet=o,this.checkIfRequiredCartValueMet=d,this.hasEligibleUpsellProductsToShow=P,this.getPopupProductVariantData=I,this.baseRequirementsMet()&&this.notDeclined()?(f.log("Loading products for offer: "+this.id),this.productGetter=new c(n.storeProductsCallback,n),this.getProductsForPopup()):f.log("Requirements check failed. Not loading products for offer: "+this.id)}function s(){u.createOfferObjects()&&(d(),g.configure(),f.onProductPage()&&l(),h.updateCart(p))}function d(){t.getScript("https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js")}function l(){t.each(window.un.offers,function(t,e){"add_to_cart"===e.triggerEvent&&e.baseRequirementsMet()&&window.un.qualifyingATCOffers.push(e)}),window.un.qualifyingATCOffers.length>0&&u.createATCEventListener()}function p(){t.each(window.un.offers,function(t,e){"checkout"===e.triggerEvent&&e.baseRequirementsMet()&&window.un.qualifyingCheckoutOffers.push(e)}),u.createCheckoutEventListener(),m.applyOfferDiscountsToCart(),y.startBundleEnforcer(),_.ajax_cart_integration_enabled&&m.initAjaxCartObserver()}var f=new n,_=f.getShopInDatastore(),h=new r,g=new e,m=new i,y=new o,v="_un_discounted_line_item_original_product_link_perm_",b="_un_discounted_line_item_original_product_link_temp_",C=".btn-link, .remove, form a:contains(emove), .cart__remove a, .cart-drawer__item-delete, [data-cart-item-delete], .un-remove-btn, [data-cart-remove]",k=".un-line-item-unit-price",w=".un-line-item-total",P="un-add-to-cart-overlay",I="un-checkout-overlay",x="un-transparent-overlay";r.checkoutEventHandler=function(){h.updateCart(function(){if(y.startBundleEnforcer(),window.un.cartCheckedForDiscounts=!0,f.notInDebugMode())if(h.hasDiscounts()||"asoflattetest.myshopify.com"===f.getShopifyDomain()){f.enableSpinner(_.checkout_button_selector),f.stringChecker(_.redirecting_to_checkout_text)&&t(_.checkout_button_selector).after("<span id='un-checkout-redirect-msg'>"+_.redirecting_to_checkout_text+"</span>");var e=h.createDraftOrder();h.getAndSendToCheckoutUrl(e)}else"the-screen-surgery.myshopify.com"===f.getShopifyDomain()?window.location.href="/checkout":t(_.checkout_button_selector).trigger("click")})},u.createOfferObjects=function(){return window.un.offers=[],window.un.qualifyingATCOffers=[],window.un.qualifyingCheckoutOffers=[],t.each(f.getOffersInDatastore(),function(t,e){!0===e.offer_enabled?window.un.offers.push(new u(e)):f.log("One offer disabled - not creating offer object for it")}),f.arrayChecker(window.un.offers)},u.createATCEventListener=function(){0===t(_.add_to_cart_button_selector).length&&(f.log("WARNING: Add to cart button selector does not match any elements on page."),f.log(_.add_to_cart_button_selector)),f.notInDebugMode()||(console.log("UN found these add to cart buttons for selector: "+_.add_to_cart_button_selector),console.log(t(_.add_to_cart_button_selector)));var e="click";_.enable_transparent_overlay_for_atc&&(e="mouseup touchend",t(document).on("mousedown touchstart",_.add_to_cart_button_selector,{eventType:"add-to-cart"},u.createTransparentOverlay)),t(document).on(e,_.add_to_cart_button_selector,function(){if(t("."+x).remove(),"undefined"==typeof un.atcPopupClosed)return f.log("ATC event triggered"),u.atcEventHandler(),!1})},u.createTransparentOverlay=function(e){if("add-to-cart"!==e.data.eventType||"undefined"==typeof un.atcPopupClosed){t(this).before('<div class="'+x+'"></div>');var n=t("."+x);n.css("width",t(this).css("width")),n.css("height",t(this).css("height")),n.css("margin-top",t(this).offset().top-n.offset().top),n.css("margin-left",t(this).offset().left-n.offset().left),n.addClass("un-"+e.data.eventType+"-overlay")}},u.createCheckoutEventListener=function(){0===t(_.checkout_button_selector).length&&(f.log("WARNING: Checkout button selector does not match any elements on page."),f.log(_.checkout_button_selector)),f.notInDebugMode()||(console.log("UN found these checkout buttons for selector: "+_.checkout_button_selector),console.log(t(_.checkout_button_selector)));var e="click";_.enable_transparent_overlay_for_checkout&&(e="mouseup touchend",t(document).on("mousedown touchstart",_.checkout_button_selector,{eventType:"checkout"},u.createTransparentOverlay)),t(document).on(e,_.checkout_button_selector,function(){if(t("."+x).remove(),"undefined"==typeof un.checkingOut&&(f.log("Checkout event triggered"),un.checkingOut=!0,f.applyDisabledStyles(_.checkout_button_selector),t(_.checkout_button_selector).addClass("un-disabled-btn"),"undefined"==typeof un.checkoutPopupClosed))return u.checkoutEventHandler(),!1})},u.atcEventHandler=function(){var e=u.getFirstActiveOffer(window.un.qualifyingATCOffers),n;e?(f.log("Showing ATC popup for offer "+e.id),new a(e).show()):f.notInDebugMode()&&(window.un.atcPopupClosed||(window.un.atcPopupClosed=!0,t(_.add_to_cart_button_selector).trigger("click")))},u.checkoutEventHandler=function(){var t=u.getFirstActiveOffer(window.un.qualifyingCheckoutOffers),e;t?(f.log("Showing checkout popup for offer "+t.id),new a(t).show()):f.notInDebugMode()&&(window.un.checkoutPopupClosed=!0,r.checkoutEventHandler())},u.getFirstActiveOffer=function(e){var n=!1;return t.each(e,function(t,e){f.log("Examining offer "+e.id+" ("+e.triggerEvent+").");var o=e.triggerProductRequirementsMet(),i=e.notDeclined(),r=e.hasEligibleUpsellProductsToShow();if(o&&i&&r)return n=e,f.log("Offer "+e.id+" passed."),!1;var a="Offer "+e.id+" failed because:";!o&&(a+=" upsell offer reqs not met,"),!i&&(a+=" offer has been previously declined,"),!r&&(a+=" no eligible upsell products to show in popup,"),f.log(a)}),n?f.log("Returning offer "+n.id.toString()):f.log("No valid offers"),n},u.getOfferForItem=function(e,n){var o=!1;return t.each(n,function(t,n){n.triggerProductRequirementsMet()&&n.appliesToItem(e)&&(o=n)}),o},u.getActiveOfferById=function(e){var n=!1;return t.each(un.offers,function(t,o){o.id.toString()===e.toString()&&(n=o)}),n},t(document).ready(function(){f.objectChecker(window.un)&&"undefined"==typeof window.un.running&&(window.un.running=!0,f.checkSettingsInDatastore()&&(f.mergeThemeAndShopSettings(),f.enabledOnCurrentPage()&&s()))})};window.loadjQuery321=loadScriptTag("//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js").then(function(){window.jQuery321=jQuery.noConflict(!0)}),window.loadjQuery321.then(function(){myFrontendJavascriptUN(jQuery321)});