"use strict";var _slicedToArray=function(){function t(t,e){var n=[],i=!0,o=!1,r=undefined;try{for(var a,d=t[Symbol.iterator]();!(i=(a=d.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&d["return"]&&d["return"]()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),function(){function t(){b=window.vtkData(),o=null,r=0,a={},s=null,h=null,d=0,l=0,u=b.product_options,p=b.app_setting.collection_title_selector,b.app_setting.template,f=b.app_setting.template_compiled?b.app_setting.template_compiled:["{product_title}","{variant_name}"],g=0,_=10,v=!1,m=0,w=!1,S=undefined,y=b.app_setting.value_seperator}function e(t){for(var n=arguments.length<=1||arguments[1]===undefined?[]:arguments[1],i=0;i0?e(t[i].children,n):n.push(t[i]);return n}function n(t){var e=window.location.pathname.replace(/\/$/,"");return("undefined"==typeof window[t]||window[t]!=e)&&(window[t]=e,!0)}function i(t){var e=t.split("/");return(e=(e=e[e.length-1]).split(RegExp("\\?|\\#","gi")))[0]}var o=undefined,r=undefined,a=undefined,d=undefined,l=undefined,u=undefined,c=undefined,p=undefined,s=undefined,f=(undefined,undefined),h=undefined,g=undefined,_=undefined,v=undefined,m=undefined,w=undefined,S=undefined,y=undefined,b=undefined,A=function(t){window.VariantTitleKingLogs&&console.log("Variant Title King:",t)};if("undefined"==typeof window.isVariantTitleKingRunning){window.isVariantTitleKingRunning=!0,A("Loaded");var T=function(t,e){return null==t||t==undefined?"":""==t.trim()||t.length<1?"":e?""+y.replaceAll("{space}"," ")+t:t},k=function(t){if(null!=o&&"undefined"!=typeof o[r]){var n=null,i=o[r][t];if(l=t,void 0!==i){if(c='.main-product h1, .product__section-title h1, .product__title, .product__title h1, .product-block h1, .product-blocks__block--title h1, .product-details .product-form-block h1, .title h1, .type-title h2, [data-name="title"] h3, [data-name="title"] h3.font-heading, #main-product h1.m5, h1.break-words, h1.f-product-single__title, h1.font-heading, h1.h2, h1.main-product__title, h1.page-title, h1.PageHeader__Title, h1.product__heading, h1.product__section-title, h1.product__title, h1.product_name a, h1.product_title, h1.product-area__details__title, h1.product-block__title, h1.product-description-header, h1.product-detail__title, h1.product-details-product-title, h1.product-form__title, h1.product-header, h1.product-info__title, h1.product-info-heading, h1.product-meta__title, h1.product-page--heading, h1.product-single__title, h1.product-title, h1.product-title-block, h1.product-title-pdp, h1.ProductMeta__Title, h1.section__title-text, h1.spanHeader, h1.title, h1.title--large, h1.type__heading, h1[class*="#product-title"], h1[class="#hero-heading heading-font"], h2.h1, h2.product__title, h2.product-page--heading, h2.product-title span, h2.yv-product-detail-title, h3.product__title',null!=(s=[])&&0==s.length)for(var a=e(document.querySelectorAll("h1, h2, h3, h4, h5, h6")),d=0;d0&&(1==p.length?p[0].innerHTML=i:p.length>1&&Object.entries(p).forEach(function(t){var e=_slicedToArray(t,2),n=e[0],o=e[1];"length"!=n&&(o.innerHTML=i)}))}else 1==(n=null!=s&&s.length>0?s:document.querySelectorAll(c)).length?n[0].innerText=i:n.length>1&&Object.entries(n).forEach(function(t){var e=_slicedToArray(t,2),n=e[0],o=e[1];"length"!=n&&(o.innerText=i)})}}},E=function(){var t=undefined,e={};if(document.location.search.substr(1).split("&").forEach(function(t){var n=t.split("=");try{e[n[0].toString()]=n[1].toString()}catch(i){}}),isNaN(e.variant)){var n=document.querySelector('[name="id"]');n&&(t=n.value)}else if(e.variant)t=e.variant;else{var i=document.querySelector("select option[value='"+d+"']");i&&(t=i.parentNode.value)}return t?("undefined"==typeof o[r]&&(o[r]={}),t=o[r][t]?t:d):d},D=function J(t,e){var n=t.options,i=t.variants;if(h=t.title,e&&(r=t.id),null!=n&&n!=undefined&&null!=i&&i!=undefined){for(var a={option1:!0,option2:!0,option3:!0},l=0;l=0&&c]+)>)/i)(o)||"class"===o||"style"===o||o.includes("<"))break;n[d]=T(n[d],u)}}),null==o&&(o={}),"undefined"==typeof o[t.id]&&(o[t.id]={}),o[t.id][i[e].id]=n.join("")};for(l=0;l