if(window.addEventListener&&void 0===mmAppLoaded){var mmAppLoaded=!0,undo=[],redo=[],action="",tempMenuObject={},changedMenu=!1,submenuToggled=!1,changingPage=!1,saving=!1,panelOpened=!1,verticalMenuMaxWidth=1e4,selectedMenu,mmClicked,touched,burgerIcon,disableOnClick=!1,globalTouch=!0,onClickOnlyReinit=!1,disableOnScroll=!1,mobileMenuMilliseconds=350,mmMenuUls=[],submenuSizes={},submenuDirections={},submenuColumns={},customHeaderOffset=!1,mmFontSize=0,storeUlCount=-1,storeNavCount=-1,loadMegaMenuTries=100,customMenuUls,defaultFontSelected=!1,forceMobile=!1,previewPanelLoaded=!1,allowMainMenuRecalibration=!0,readyStateCheckInterval,disableThemeScript=!1,mmApplyOnce=!1,initializedSchema=!1,mmSetSmBoundriesOnReinit=!1,mmHorizontalMenus=!1,mmVerticalMenus=!1,livIconsOptions={},livIconsOptionsCache=[],mmDisableVisibleCheck=!1,mmDisableResizeHandler=!1,mmDomChangesInterval=200,mmMobileMenuTreeOffsetLeft=25,mmMinColumnWidth=180,mmInitBuddhaMegaMenuInterval=200,mmInitBuddhaMegaMenuTimeout=10,mmLoadWhenReadyStateIs="interactive,complete",mmAtcPopupSuccess="JUST ADDED TO YOUR CART",mmAtcPopupOutOfStock="OUT OF STOCK",mmAtcPopupViewCart="VIEW CART",mmMenuOverflowAuto=!1,mmMobileOffsets=!1,mmClickToggle=0,mmCLickToggleFilterClicks=!1,mmToggleButtonOnly=!1,mmMenuOpenDelay=0,mmMenuHideDelay=0,mmTranslateLinksForce=!0,mmWireSlices=[1],schemaDesignJSON=[],mmSettingsPage=-1!==window.location.href.indexOf("iframeWebsite"),mmAddStyle=function(e,t){const n=document.createElement("style");if(n.textContent=e,void 0!==t){n.id=t;var m=document.getElementById(t);m&&m.parentNode.removeChild(m)}(document.head||document.getElementsByTagName("head")[0]).appendChild(n)},mmAddLink=function(e,t){const n=document.createElement("link");if(n.href=e,n.type="text/css",n.rel="stylesheet",void 0!==t){n.id=t;var m=document.getElementById(t);m&&m.parentNode.removeChild(m)}document.head.appendChild(n)},mmAddClasses=function(e,t){try{if(t&&"string"==typeof t)for(var n=t.replace(/\s+/g," ").split(" "),m=0;m ";t=i+(t+"").replace(",",","+i,"g"),m=e.parentNode}else m=e;return o=1==n?m.querySelector(t):m.querySelectorAll(t),!a&&e.parentNode&&e.removeAttribute("id"),o},mmNot=function(e,t,n){for(var m=[],o=0;o0||e.offsetWidth>0||"contents"==e.style.display&&e.children&&e.children[0].offsetParent||mmSettingsPage&&"contents"==window.getComputedStyle(e).getPropertyValue("display")&&e.children&&e.children[0].offsetParent)},mmRemove=function(e){for(var t=document.querySelectorAll(e),n=0;nli .mm-list-name>span, .vertical-mega-menu .buddha-menu-item ul.mm-submenu, .vertical-mega-menu .buddha-menu-item ul.mm-submenu li a, .vertical-mega-menu .buddha-menu-item ul.mm-submenu li .mm-title, .buddha-menu-item ul.mm-submenu a, .buddha-menu-item ul.mm-submenu li.mm-contact-column .mm-contact-content, .buddha-menu-item ul.mm-submenu li.mm-contact-column .mm-contact-content button, .buddha-menu-item ul.mm-submenu li.mm-contact-column .mm-contact-content .mm-head, .buddha-menu-item ul.mm-submenu li.mm-contact-column .mm-contact-content span, .buddha-menu-item ul.mm-submenu li.mm-contact-column .mm-contact-content b, .buddha-menu-item ul.mm-submenu li.mm-contact-column .mm-contact-content textarea, .buddha-menu-item ul.mm-submenu li.mm-contact-column .mm-contact-content input {"+e+"}")},mmSupportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){mmSupportsPassive=!0}});window.addEventListener("testPassive",null,opts),window.removeEventListener("testPassive",null,opts)}catch(e){}var mmNumErrors=0,mmErrorLog=function(e){for(var t=!1,n=!1,m=0;m.buddha-menu-item>.mm-submenu",(function(e){if(parseInt(window.getComputedStyle(e).getPropertyValue("top"))>0){var t=e.parentNode;if(e.matches(".mm-submenu.simple,.mm-submenu.tabbed")){var n=!1;if(0==mmMenuOverflowAuto)for(var m=mmParents(t.parentNode),o=0;o400&&(u=document.documentElement.offsetHeight-150),i.height>=u-30?(e.style.maxHeight=u+"px",e.style.overflow="scroll",e.style.overflowX="hidden",e.style.clip="unset",e.style.setProperty("box-shadow","0 10px 20px rgba(0,0,0,.1)","important")):(e.style.maxHeight="none",e.style.overflow="hidden",e.style.removeProperty("clip"),e.style.removeProperty("box-shadow"))}}}))}catch(e){mmErrorLog(e)}},mmInitVarsWaitTime=0,initBuddhaMegaMenu=function(){try{if("undefined"==typeof linkLists||"undefined"==typeof mmWireframe||void 0===mmWireframe.html||!mmSettingsPage&&(mmSettingsPage||-1==mmLoadWhenReadyStateIs.indexOf(document.readyState)))return!1;clearInterval(readyStateCheckInterval),mmWireframe="1"==mmWireframeCompression?decodeURIComponent(LZW_decompress(mmWireframe.html.split(",").map(Number))):mmWireframe.html,mmWireframe=mmWireframe.replace(new RegExp('
',"g"),bestSellersHTML),mmWireframe=mmWireframe.replace(new RegExp('
',"g"),newestProductsHTML);for(var e=Object.keys(productImageAndPrice),t=0;t
',"g"),'
'+productImageAndPrice[e[t]][2]+"
")}var m=null;if(void 0!==mmSchemaTranslation.menuStrings&&1==mmSchemaTranslation.enabled)m=mmShopLocale;else if(void 0!==mmMenuStrings.menuStrings&&void 0!==mmMenuStrings.menuStrings.default&&void 0!==mmMenuStrings.additional)for(var o in mmMenuStrings.menuStrings.default)if(o!=mmMenuStrings.menuStrings.default[o]){mmSchemaTranslation.menuStrings=mmMenuStrings.menuStrings,mmSchemaTranslation.additional=mmMenuStrings.additional,mmSchemaTranslation.enabled=!0,m="default";break}if(null!=m){var a=mmSchemaTranslation.menuStrings[m];if(void 0!==a)for(var o in a){var i=a[o].trim();o=o.trim().replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),""!=i&&(mmWireframe=mmWireframe.replace(new RegExp('"'+o+'"',"g"),'"'+i+'"'),mmWireframe=mmWireframe.replace(new RegExp(">"+o+"<","g"),">"+i+"<"),mmWireframe=mmWireframe.replace(new RegExp(">"+o+" <","g"),">"+i+"<"))}if(void 0!==(a=mmSchemaTranslation.additional[m])){void 0!==a["Add to cart"]&&""!==a["Add to cart"]&&(mmWireframe=mmWireframe.replace(new RegExp(">Add to cart<","g"),">"+a["Add to cart"]+"<")),void 0!==a["Sold out"]&&""!==a["Sold out"]&&(mmWireframe=mmWireframe.replace(new RegExp(">Sold out<","g"),">"+a["Sold out"]+"<")),void 0!==a.Title&&""!==a.Title&&(mmAtcPopupSuccess=a.Title),void 0!==a["Out of Stock Title"]&&""!==a["Out of Stock Title"]&&(mmAtcPopupOutOfStock=a["Out of Stock Title"]),void 0!==a["View Cart"]&&""!==a["View Cart"]&&(mmAtcPopupViewCart=a["View Cart"]),void 0!==a.NEW&&""!==a.NEW&&(mmWireframe=mmWireframe.replace(new RegExp('"mm-label new">NEW<',"g"),'"mm-label new">'+a.NEW+"<")),void 0!==a.HOT&&""!==a.HOT&&(mmWireframe=mmWireframe.replace(new RegExp('"mm-label hot">HOT<',"g"),'"mm-label hot">'+a.HOT+"<")),void 0!==a.SALE&&""!==a.SALE&&(mmWireframe=mmWireframe.replace(new RegExp('"mm-label sale">SALE<',"g"),'"mm-label sale">'+a.SALE+"<")),void 0!==a["Business Info"]&&""!==a["Business Info"]&&(mmWireframe=mmWireframe.replace(new RegExp('
.*?
',"g"),'
'+a["Business Info"]+"
")),void 0!==a.Info&&""!==a.Info&&(mmWireframe=mmWireframe.replace(new RegExp('
.*?
',"g"),'
'+a.Info+"
")),void 0!==a.Address&&""!==a.Address&&(mmWireframe=mmWireframe.replace(new RegExp('
.*?
',"g"),'"));var r=document.querySelector("#mmContactFormHTML");r&&(void 0!==a.Name&&""!==a.Name&&mmForEach(r,".contact-form .mm-name input",(function(e){e.setAttribute("placeholder",a.Name)})),void 0!==a.Email&&""!==a.Email&&mmForEach(r,".contact-form .mm-email input",(function(e){e.setAttribute("placeholder",a.Email)})),void 0!==a.Message&&""!==a.Message&&mmForEach(r,".contact-form .mm-message textarea",(function(e){e.setAttribute("placeholder",a.Message)})),void 0!==a["Send Message"]&&""!==a["Send Message"]&&mmForEach(r,".contact-form .mm-contact-submit",(function(e){e.innerHTML=a["Send Message"]})),void 0!==a["Send Us a Message"]&&""!==a["Send Us a Message"]&&mmForEach(r,".contact-form .mm-head",(function(e){e.innerHTML=a["Send Us a Message"]})),void 0!==a["Message Sent Notification"]&&""!==a["Message Sent Notification"]&&mmForEach(r,".successForm.feedback",(function(e){e.innerHTML=a["Message Sent Notification"]})))}}if(1==mmSchemaTranslation.enabled||1==mmTranslateLinksForce){var u=mmShopLocaleCollectionsRoute.slice(1,-12);if(""!=u){mmWireframe=mmWireframe.replace(new RegExp('"/"',"g"),'"/'+u+'"'),mmWireframe=mmWireframe.replace(new RegExp('"/collections',"g"),'"/'+u+"/collections"),mmWireframe=mmWireframe.replace(new RegExp('"/products',"g"),'"/'+u+"/products"),mmWireframe=mmWireframe.replace(new RegExp('"/pages',"g"),'"/'+u+"/pages"),mmWireframe=mmWireframe.replace(new RegExp('"/blogs',"g"),'"/'+u+"/blogs"),mmWireframe=mmWireframe.replace(new RegExp(buddhaMegaMenuShop+"/collections","g"),buddhaMegaMenuShop+"/"+u+"/collections"),mmWireframe=mmWireframe.replace(new RegExp(buddhaMegaMenuShop+"/products","g"),buddhaMegaMenuShop+"/"+u+"/products"),mmWireframe=mmWireframe.replace(new RegExp(buddhaMegaMenuShop+"/pages","g"),buddhaMegaMenuShop+"/"+u+"/pages"),mmWireframe=mmWireframe.replace(new RegExp(buddhaMegaMenuShop+"/blogs","g"),buddhaMegaMenuShop+"/"+u+"/blogs"),mmWireframe=mmWireframe.replace(new RegExp(buddhaMegaMenuShop+"/account","g"),buddhaMegaMenuShop+"/"+u+"/account"),mmWireframe=mmWireframe.replace(new RegExp(buddhaMegaMenuShop+"/policies","g"),buddhaMegaMenuShop+"/"+u+"/policies");var l=window.location.host;mmWireframe=mmWireframe.replace(new RegExp(l+"/collections","g"),l+"/"+u+"/collections"),mmWireframe=mmWireframe.replace(new RegExp(l+"/products","g"),l+"/"+u+"/products"),mmWireframe=mmWireframe.replace(new RegExp(l+"/pages","g"),l+"/"+u+"/pages"),mmWireframe=mmWireframe.replace(new RegExp(l+"/blogs","g"),l+"/"+u+"/blogs"),mmWireframe=mmWireframe.replace(new RegExp(l+"/account","g"),l+"/"+u+"/account"),mmWireframe=mmWireframe.replace(new RegExp(l+"/policies","g"),l+"/"+u+"/policies"),mmForEach(document,".mm-atc-popup .mm-atc-view-cart",(function(e){e.setAttribute("href","/"+u+"/cart")}))}}"undefined"!=typeof InstantClick&&InstantClick.on("change",(function(e){e||null==document.querySelector(".horizontal-mega-menu,.vertical-mega-menu")&&(mmMenuUls=[],storeUlCount=-1,storeNavCount=-1,preloadBuddhaMegaMenu())}));var s,c=0,d=setInterval((function(){c++,"undefined"!=typeof mutationExceptions&&(mutationExceptions[mutationExceptions.length]=".buddha-menu-item",clearInterval(d)),c>10&&clearInterval(d)}),1e3);if("undefined"!=typeof mmThemeFixesBeforeInit&&0==disableThemeScript&&mmThemeFixesBeforeInit(),"undefined"!=typeof mmCustomerFixesBeforeInit&&(!mmFixesUseJquery||mmFixesUseJquery&&"function"==typeof jQueryBuddha)&&-1==mmCustomerFixesBeforeInit())return void mmRemove("#mmHideOriginalMenuStyle");null==document.querySelector(burgerIcon)&&(burgerIcon=".js-mobile-nav-toggle,.js-drawer-open-left,.js-drawer-open-button-left,#wsnavtoggle,.header__mobile-nav-toggle,#mobileNavBar .menu-toggle,.js-drawer-open-nav,.icon-menu,.js-mobile-menu-icon,.header__mobile__button,.toggle-menu,.slicknav_btn,.Header__Icon,.icon-nav,.site-header__navigation,.mobile-header-controls__menu,.header__icon--menu,.jas-push-menu-btn,.js-slideout-open,.mobile-menu__toggle-button,.item__mobile--hamburger",null==document.querySelector(burgerIcon)&&(burgerIcon="*")),mmClickToggle&&initClickToggle(),mmMenuHideDelay&&initMenuHideDelay(),initSchema();var g=window.innerWidth;window.addEventListener("resize",(function(){try{g==window.innerWidth||mmDisableResizeHandler||(mmForEach(document,".mm-hovering",(function(e){e.classList.remove("mm-hovering")})),clearTimeout(s),s=setTimeout((function(){const e=document.createEvent("Event");e.initEvent("mmWindowResize",!0,!0),document.dispatchEvent(e);var t=!1,n=document.querySelector(".mega-hover");n&&(t=n.getAttribute("itemId"));var m=!1;p=document.querySelectorAll("ul").length,h=document.querySelectorAll("nav").length,p-=document.querySelectorAll(".buddha-menu-item ul,.bcsell-list"+mmDomChangeSkipUl).length,storeUlCount==p&&storeNavCount==h||(storeUlCount=p,storeNavCount=h,m=!0);for(var o=0;oloadMegaMenuTries&&clearInterval(f),p=document.querySelectorAll("ul").length,h=document.querySelectorAll("nav").length,p-=document.querySelectorAll(".buddha-menu-item ul,.bcsell-list"+mmDomChangeSkipUl).length,storeUlCount!=p||storeNavCount!=h){if(storeUlCount=p,storeNavCount=h,void 0!==customMenuUls){for(var e=0,t=customMenuUls.split(","),n=0;n=new Date(t).getTime();o<0&&(o=0);var i=!1;if("undefined"==typeof mmSettingsPageForce||0!=a&&0!=o||(i=!0,a=!0,o=1),1==a&&o>0){var r='
',u=e.querySelector("a>i.mm-angle-down");if(u||(u=e.querySelector("a>.mm-label")),u)u.insertAdjacentHTML("beforebegin",r);else{var l=e.querySelector("a");l&&l.insertAdjacentHTML("beforeend",r)}var s=e.querySelector(".buddha-menu-item-countdown");if(s){var c="HourlyCounter";s.classList.add("HourlyCounter"),(o>172800||i)&&(c="DailyCounter",s.classList.remove("HourlyCounter")),"function"==typeof jQueryBuddha&&"function"==typeof jQueryBuddha.fn.FlipClock&&jQueryBuddha(s.firstElementChild).FlipClock(o,{clockFace:c,countdown:!0})}}}},generateMobileMenuColors=function(e,t){var n="",m=".vertical-mega-menu>"+(1==t?"li":".buddha-menu-item")+">.mm-submenu.height-transition",o=LightenDarkenColor(e,20);if(getBrightness(e)<220)for(var a=1;a<8;a++)n+=m+"{background-color: "+e+" !important;} ",n+=m+">li{background-color: inherit !important;} ",n+=m+">li>a{background-color: inherit !important;} ",n+=m+">li>a>.toggle-menu-btn>.mm-cross{background-color: "+o+" !important;} ",m+=">li>.mm-submenu.height-transition",e=LightenDarkenColor(e,20),o=LightenDarkenColor(o,20);else n+=m+"{background-color: "+e+" !important;} ",n+=m+">li{background-color: inherit !important;} ",n+=m+">li>a{background-color: inherit !important;} ",n+=m+">li>a>.toggle-menu-btn>.mm-cross{background-color: "+o+" !important;} ";return n},shadeColor=function(e,t){var n=parseInt(e.slice(1),16),m=t<0?0:255,o=t<0?-1*t:t,a=n>>16,i=n>>8&255,r=255&n;return"#"+(16777216+65536*(Math.round((m-a)*o)+a)+256*(Math.round((m-i)*o)+i)+(Math.round((m-r)*o)+r)).toString(16).slice(1)},customPropSettingsStyles=function(e,t){var n="";switch(e){case"countdown_background_color":case"vertical_countdown_background_color":var m=".horizontal-mega-menu";"vertical_countdown_background_color"==e&&(m=".vertical-mega-menu");var o=t;n+=m+" .flip-clock-wrapper ul.play li.flip-clock-before .up .shadow, .flip-clock-wrapper ul.play li.flip-clock-active .up .shadow {background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, "+(t=shadeColor(t,-.5))+" 100%) !important;background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, "+t+")) !important;background: linear, top, rgba(0, 0, 0, 0.1) 0%, "+t+" 100% !important;background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, "+t+" 100%) !important;background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, "+t+" 100%) !important;background: linear, to bottom, rgba(0, 0, 0, 0.1) 0%, "+t+" 100% !important;}",n+=m+" .flip-clock-wrapper ul.play li.flip-clock-before .down .shadow, .flip-clock-wrapper ul.play li.flip-clock-active .down .shadow {background: -moz-linear-gradient(top, "+t+" 0%, rgba(0, 0, 0, 0.1) 100%) !important;background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, "+t+"), color-stop(100%, rgba(0, 0, 0, 0.1))) !important;background: linear, top, "+t+" 0%, rgba(0, 0, 0, 0.1) 100% !important;background: -o-linear-gradient(top, "+t+" 0%, rgba(0, 0, 0, 0.1) 100%) !important;background: -ms-linear-gradient(top, "+t+" 0%, rgba(0, 0, 0, 0.1) 100%) !important;background: linear, to bottom, "+t+" 0%, rgba(0, 0, 0, 0.1) 100% !important;}",n+=m+" .buddha-menu-item-countdown .inn { text-shadow: 0 1px 2px "+shadeColor(t,-.3)+" !important; } .buddha-menu-item .flip-clock-wrapper ul li a div.down:after {background-color: "+o+" !important}";break;case"background_color":n+=".horizontal-mega-menu .mm-submenu.tabbed { background-color: "+LightenDarkenColor(t,-5)+" !important; }";break;case"background_hover_color":var a=LightenDarkenColor(t,-5);n+=".horizontal-mega-menu .buddha-menu-item .mm-submenu.tabbed > li.tab-opened { background-color: "+a+" !important; }",2==mmClickToggle&&(n+=".horizontal-mega-menu .buddha-menu-item .mm-submenu.tabbed > li:hover { background-color: "+a+" !important; }");break;case"background_image_text_color":n+=".horizontal-mega-menu .buddha-menu-item ul.mm-submenu.simple.backgroundImage > li .mm-list-name > span {border-bottom: 1px solid "+t+" !important;}";break;case"vertical_text_color":n+=".vertical-mega-menu ul.mm-submenu.simple > li .mm-list-name { border-bottom: 1px solid "+t+" !important; }";break;case"vertical_background_color":mmRemove("#buddhaInitialMobileMenuColors"),n+=generateMobileMenuColors(t,!1);break;case"font_size":n+=".horizontal-mega-menu .buddha-menu-item .mm-description {font-size: "+(parseInt(t)-1)+"px !important;}";break;case"vertical_font_size":n+=".vertical-mega-menu .buddha-menu-item .mm-description {font-size: "+(parseInt(t)-1)+"px !important;}";break;case"addtocart_background_color":"#ffffff"==t&&(t="#000000"),n+=".horizontal-mega-menu .mm-add-to-cart>div {border-color: "+t+" !important;}";break;case"addtocart_enable":n+=1==t||"true"==t?".horizontal-mega-menu .mm-add-to-cart {display: block !important;}":".horizontal-mega-menu .mm-add-to-cart {display: none !important;}";break;case"addtocart_background_hover_color":"#ffffff"==t&&(t="#000000"),n+=".horizontal-mega-menu .buddha-menu-item .mm-submenu .mm-add-to-cart>div:hover {border-color: "+t+" !important;}";break;case"vertical_addtocart_enable":n+=1==t||"true"==t?".vertical-mega-menu .mm-add-to-cart {display: block !important;}":".vertical-mega-menu .mm-add-to-cart {display: none !important;}";break;case"vertical_addtocart_text_color":n+=".vertical-mega-menu .buddha-menu-item .mm-submenu .mm-add-to-cart>div:hover {color: "+LightenDarkenColor(t,-20)+" !important;}";break;case"vertical_addtocart_background_color":n+=".vertical-mega-menu .buddha-menu-item .mm-add-to-cart>div {border-color: "+t+" !important;}",n+=".vertical-mega-menu .buddha-menu-item .mm-submenu .mm-add-to-cart>div:hover {border-color: "+LightenDarkenColor(t,-20)+" !important;background-color: "+LightenDarkenColor(t,-20)+" !important;}";break;case"vertical_price_color":var i=getBrightness(t);n+=".vertical-mega-menu .buddha-menu-item ul.mm-submenu.simple>li .mega-menu-prices span.mega-menu-compare_at_price span {color: "+LightenDarkenColor(t,s=i>190?-40:40)+";}";break;case"contact_left_bg_color":n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info,.horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info a {background: "+t+" !important;}";break;case"contact_left_alt_color":for(var r=!1,u=mmSchemaDesignJSON.length-1;u>=0;u--){var l=mmSchemaDesignJSON[u];if("design"==l.action&&"contact_left_bg_color"==l.setting){"#ffffff"!=l.value&&l.value!=t||(r=!0);break}}var s=(i=getBrightness(t))>190?-60:60;r?(n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info>div>div>i{color: inherit !important;}",n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info .mm-socialmedia>a:hover {background: inherit !important;}",n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info .mm-img {visibility: hidden !important;}"):(n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info>div>div>i{color: "+t+" !important;}",n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info .mm-socialmedia>a:hover {background: "+t+" !important;}",n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info .mm-socialmedia>a:hover>i {color: "+LightenDarkenColor(t,parseInt(2*s))+" !important;}",n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info .mm-img>.mm-large {background: "+t+" !important;}",n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info .mm-img>.mm-small {background: "+LightenDarkenColor(t,s)+"f0 !important;}");break;case"contact_left_text_color":n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info,.horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info a{color: "+t+" !important;}";break;case"contact_right_text_color":n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu.mm-contact>.mm-form {color: "+t+" !important;}";break;case"contact_right_bg_color":n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu.mm-contact {background: "+t+" !important;}",n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu.mm-contact input, .horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu.mm-contact textarea { border-bottom: 1px solid "+LightenDarkenColor(t,-40)+" !important; }",n+=".horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu.mm-contact input:focus, .horizontal-mega-menu>.buddha-menu-item>ul.mm-submenu.mm-contact textarea:focus {border-bottom: 1px solid "+LightenDarkenColor(t,-100)+" !important;}";break;case"vertical_contact_left_alt_color":i=getBrightness(t);n+=".vertical-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info>div>div>i{color: "+t+" !important;}",n+=".vertical-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info .mm-socialmedia>a:hover {background: "+t+" !important;}",n+=".vertical-mega-menu>.buddha-menu-item>ul.mm-submenu li.mm-contact-column.mm-info .mm-socialmedia>a:hover>i {color: "+LightenDarkenColor(t,s=i>190?-120:120)+" !important;}";break;case"contact_right_btn_bg_color":n+=".horizontal-mega-menu ul.mm-submenu li.mm-contact-column button:hover{background: "+(t=LightenDarkenColor(t,-20))+" !important;}";break;case"vertical_contact_right_btn_bg_color":n+=".vertical-mega-menu .buddha-menu-item ul.mm-submenu li.mm-contact-column button:hover{background: "+(t=LightenDarkenColor(t,-20))+" !important;}"}return n},applyMegaMenu=function(e){try{if("undefined"!=typeof mutationExceptions&&(mutationExceptions[mutationExceptions.length]="ul"),"undefined"!=typeof hideOriginalMenuInterval&&clearInterval(hideOriginalMenuInterval),null!=e){var t=[];selectedMenu=e;for(var n=0;n0){selectedMenu=m[n],console.log(selectedMenu);break}}0==mmApplyOnce&&(mmForEach(document,".vertical-mega-menu",(function(e){e.classList.remove("vertical-mega-menu")})),mmForEach(document,".horizontal-mega-menu",(function(e){e.classList.remove("horizontal-mega-menu")})),mmForEach(document,".buddha-disabled",(function(e){e.classList.remove("buddha-disabled")})),mmForEach(document,".buddha-menu-item,#themeScript",(function(e){e.parentNode.removeChild(e)}))),mmMenuUls=[];var a=[],i=Object.keys(linkLists);for(n=0;n0||null!=customMenuUls)||"undefined"!=typeof mmSettingsPageForce){mmForEach(document,customMenuUls||"ul,nav",(function(e){(tempMenuObject={}).u=e,"function"==typeof jQueryBuddha&&(tempMenuObject.ul=jQueryBuddha(e)),tempMenuObject.forceMenu=!1,tempMenuObject.skipCheck=!1,tempMenuObject.elementFits=0;var t=[];if(1==mmApplyOnce&&(e.classList.contains("vertical-mega-menu")||e.classList.contains("horizontal-mega-menu")))return!0;if(("undefined"==typeof mmThemeFixesBefore||0!=disableThemeScript||-1!=mmThemeFixesBefore.call(e))&&(tempMenuObject.skipCheck||mmForEachChild(e,"LI",(function(e){var t=null,n=e.querySelector("a");(n&&(t=n.getAttribute("href")),null==t||null!=t&&("#"==t.substr(0,1)||""==t))&&((m=e.querySelector(document.documentMode?"* + a":"a:nth-child(2)"))&&(t=m.getAttribute("href"),n=m));null!=t&&(null==t||"#"!=t.substr(0,1)&&""!=t)||(m=e.querySelector("a>a"))&&(t=m.getAttribute("href"),n=m);if(null==t||null!=t&&("#"==t.substr(0,1)||""==t))for(var m=e.querySelectorAll("a[href]"),o=0;o0&&tempMenuObject.elementFits!=a.length&&(tempMenuObject.elementFits=0,tempMenuObject.liItems=[],mmForEach(document,".buddha-transparent",(function(e){e.classList.remove("buddha-transparent")})),t==a[0]&&(tempMenuObject.elementFits=1,tempMenuObject.liItems[tempMenuObject.liItems.length]=e,e.classList.add("buddha-transparent")))})),"undefined"==typeof mmCustomerFixesBefore||mmFixesUseJquery&&(!mmFixesUseJquery||"function"!=typeof jQueryBuddha)||-1!=mmCustomerFixesBefore.call(e)))if(tempMenuObject.elementFits>0&&tempMenuObject.elementFits==a.length&&null==tempMenuObject.u.closest(".buddha-disabled")||tempMenuObject.forceMenu){for(var n=getSpecificClasses(tempMenuObject.liClasses),m=getSpecificClasses(tempMenuObject.aClasses),o=0;o.mm-submenu",(function(e){e.setAttribute("style","display: none !important;")}),!0);t=mmForEach(e,".buddha-menu-item",(function(e){var t=e.getAttribute("itemId");t&&(void 0!==submenuSizes[t]&&e.setAttribute("submenu-size",submenuSizes[t]),void 0!==submenuDirections[t]&&e.setAttribute("submenu-direction",submenuDirections[t]),void 0!==submenuColumns[t]&&e.setAttribute("submenu-columns",submenuColumns[t])),mmAddClasses(e,n.common),mmForEachChild(e,"A",(function(e){mmAddClasses(e,m.common)}))}),!0),mmForEach(e,".buddha-menu-item[countdown_start]",(function(e){initCountdown(e)})),mmForEach(e,".buddha-menu-item>a>.mm-label",(function(e){e.classList.add("mm-hidden")})),mmForEach(e,".mm-sold-out",(function(e){var t=e.parentNode.querySelector(".mm-add-to-cart");t&&t.style.setProperty("display","none","important")})),mmForEach(e,".get-collection-image",(function(e){var t=e.getAttribute("data-id");if(null!=collectionImages[t]&&-1==collectionImages[t][0].indexOf("no-image")&&null==e.getAttribute("customimage")){var n=e.closest("li[submenu-columns]"),m=e.closest("li[image-type]");n&&(n=n.getAttribute("submenu-columns")),m&&(m=m.getAttribute("image-type")),n=n||1,null!=m&&-1!=m.indexOf("crop")&&n++;var o=collectionImages[t][0],a=collectionImages[t][1],i=null!=e.closest(".mm-list-image")&&a>.7&&a<1.5?140:[320,640,960,1280,-1,-1][n-1];o=-1!=i?o.replace("_240x.","_"+i+"x.").replace("&width=240","&width="+i):o.replace("_240x.",".").replace("&width=240",""),e.setAttribute("data-src",o),e.setAttribute("aspect-ratio",a)}})),mmForEach(e,".get-product-image",(function(e){var t=e.getAttribute("data-id");if(null!=productImageAndPrice[t]&&-1==productImageAndPrice[t][0].indexOf("no-image")&&null==e.getAttribute("customimage")){var n=e.closest("li[submenu-columns]"),m=e.closest("li[image-type]");n&&(n=n.getAttribute("submenu-columns")),m&&(m=m.getAttribute("image-type")),n=n||1,null!=m&&-1!=m.indexOf("crop")&&n++;var o=productImageAndPrice[t][0],a=productImageAndPrice[t][1],i=null!=e.closest(".mm-list-image")&&a>.7&&a<1.5?80:[320,640,960,1280,-1,-1][n-1];o=-1!=i?o.replace("_240x.","_"+i+"x.").replace("&width=240","&width="+i):o.replace("_240x.",".").replace("&width=240",""),e.setAttribute("data-src",o),e.setAttribute("aspect-ratio",a)}if(null!=productImageAndPrice[t]){var r=e.closest("li");if(r){var u=r.querySelector(".mm-add-to-cart>div");u&&(u.setAttribute("varid",productImageAndPrice[t][3]),u.setAttribute("sellingplan",productImageAndPrice[t][4]))}}})),mmForEach(e,".get-article-image",(function(e){var t=e.getAttribute("data-id");if(null!=articleImages[t]&&-1==articleImages[t][0].indexOf("no-image")&&null==e.getAttribute("customimage")){var n=e.closest("li[submenu-columns]"),m=e.closest("li[image-type]");n&&(n=n.getAttribute("submenu-columns")),m&&(m=m.getAttribute("image-type")),n=n||1,null!=m&&-1!=m.indexOf("crop")&&n++;var o=articleImages[t][0],a=articleImages[t][1],i=null!=e.closest(".mm-list-image")&&a>.7&&a<1.5?80:[320,640,960,1280,-1,-1][n-1];o=-1!=i?o.replace("&width=240","&width="+i):o.replace("&width=240",""),e.setAttribute("data-src",o),e.setAttribute("aspect-ratio",a)}})),mmForEach(e,"img[data-src]",(function(e){var t=e.getAttribute("placeholder");t&&e.setAttribute("data-src",mmExtensionAssetUrl+t),e.classList.add("mmLazyload")}));var u=document.querySelector("#mmContactFormHTML>li");u&&(mmForEach(e,"#contactFormWidget",(function(e){var t=e.parentElement;t.appendChild(u.cloneNode(!0)),t.removeChild(e)})),u.parentElement.addEventListener("click",(function(e){return e.stopImmediatePropagation(),!1})));var l=function(){var e=document.querySelector("#mmContactFormHTML input");e&&e.click()};if(mmForEach(e,".mm-contact-column input,.mm-contact-column textarea",(function(e){e.removeEventListener("focus",l),e.removeEventListener("click",l),e.addEventListener("focus",l),e.addEventListener("click",l)})),mmForEach(e,".mm-contact",(function(e){var t=e.closest(".buddha-menu-item");t&&null==t.getAttribute("submenu-size")&&(e.matches(".mm-no-business-info")?t.setAttribute("submenu-size",700):t.setAttribute("submenu-size",850))})),document.documentMode&&(mmForEach(e,".mm-product-list img",(function(e){var t="url("+e.getAttribute("data-src")+")";e.parentNode.insertAdjacentHTML("beforeend",'
'),e.style.display="none"})),mmAddStyle(".buddha-menu-item .mm-image a {width:100% !important; height: 100% !important;}","mmIE11Fix")),r)for(o=0;oa>.mm-title");if(n){var m,o,a,i=window.getComputedStyle(n).getPropertyValue("color");e.matches(".horizontal-mega-menu")?(m={strokeColor:livIconsOptions.horizontalColor,colorsOnHover:"custom",strokeColorAction:livIconsOptions.horizontalHover,eventOn:"parent"},o={strokeColor:i,eventOn:"parent"},a={strokeColor:livIconsOptions.horizontalBackgroundImageColor,colorsOnHover:"custom",strokeColorAction:livIconsOptions.horizontalHover,eventOn:"parent"}):(o={strokeColor:i,eventOn:"parent"},a=m={strokeColor:livIconsOptions.verticalColor,colorsOnHover:"custom",strokeColorAction:livIconsOptions.verticalHover,eventOn:"parent"});var r=!1,u=JSON.stringify(m),l=JSON.stringify(o),s=JSON.stringify(a),c=mmMenuUls.indexOf(e);void 0===livIconsOptionsCache[c]&&(livIconsOptionsCache[c]={opt:"",optMain:"",optBg:""}),u!=livIconsOptionsCache[c].opt&&(livIconsOptionsCache[c].opt=u,r=!0),l!=livIconsOptionsCache[c].optMain&&(livIconsOptionsCache[c].optMain=l,r=!0),s!=livIconsOptionsCache[c].optBg&&(livIconsOptionsCache[c].optBg=s,r=!0);for(var d=0;da>.mm-icon")?p=o:t[d].closest(".backgroundImage")&&(p=a),t[d].matches(".livicon-evo-holder")){if(r)if(g=t[d].parentElement){var h=g.removeChild(t[d]);g.parentElement&&g.parentElement.matches(".buddha-menu-item")&&h.classList.add("mm-livicons-quickload"),jQueryBuddha(h).addLiviconEvo(p),g.insertBefore(h,g.firstElementChild)}}else if(g=t[d].parentElement){h=g.removeChild(t[d]);g.parentElement&&g.parentElement.matches(".buddha-menu-item")&&h.classList.add("mm-livicons-quickload"),jQueryBuddha(h).addLiviconEvo(p),g.insertBefore(h,g.firstElementChild)}}}}}};"function"==typeof jQueryBuddha&&(void 0!==jQueryBuddha.fn.addLiviconEvo?t():"undefined"!=typeof loadLivIconsBuddha?(loadLivIconsBuddha(jQueryBuddha),t()):setTimeout((function(){"undefined"!=typeof loadLivIconsBuddha?(loadLivIconsBuddha(jQueryBuddha),t()):setTimeout((function(){"undefined"!=typeof loadLivIconsBuddha?(loadLivIconsBuddha(jQueryBuddha),t()):console.log("liv err")}),3e3)}),500))},mmEvtEnterMmi=function(e){var t=e.target;setSubmenuBoundries(t),setContactSubmenuBoundries(t);var n=t.querySelector(".tab-opened");n&&setTabbedSubmenuBoundries(n),mmLoadImages(t)},mmOpenMenuTab=function(e){mmForEach(e.parentNode,".tab-opened",(function(e){e.classList.remove("tab-opened")})),e.classList.add("tab-opened"),setTabbedSubmenuBoundries(e),mmLoadImages(e)},mmEnterTabbedLiTimeout,mmEvtEnterTabbedLi=function(e){mmClickToggle<2&&(0==mmMenuOpenDelay?mmOpenMenuTab(e.target):(clearTimeout(mmEnterTabbedLiTimeout),mmEnterTabbedLiTimeout=setTimeout((function(){mmOpenMenuTab(e.target)}),mmMenuOpenDelay)))},mmLoadImages=function(e){var t=e.querySelector(".tab-opened .mm-submenu");null==t&&(t=e.querySelector(".mm-submenu.simple")),t&&mmForEach(t,"img.mmLazyload,iframe.mmLazyload",(function(e){var t=e.getAttribute("data-src");t&&""!=t?(e.onload=mmLazyloaded,e.src=t,e.classList.remove("mmLazyload"),e.classList.add("mmLazyloading")):(e.classList.remove("mmLazyload"),e.classList.add("mmLazyloaded"))}))},mmLazyLoadedTimeout,mmLazyloaded=function(e){try{var t=e.target;t.classList.remove("mmLazyloading"),t.classList.add("mmLazyloaded");var n=t.closest(".mm-submenu.simple");if(n){var m=t.closest(".mm-image"),o=t.closest(".mm-image-container");if(m&&o){t.removeAttribute("style"),o.removeAttribute("style"),m.removeAttribute("style"),0!=t.width&&0!=t.height&&(t.style.width=t.width+"px",t.style.height=t.height+"px",m.style.height=t.height+"px");var a=m.nextElementSibling;if(a){var i=a.firstElementChild;i&&i.classList.contains("mmHidden")&&(i.classList.remove("mmHidden"),i.classList.add("mmShow"))}setTimeout((function(){try{var e=m.closest("li");if(e){e.getAttribute("image-type")||e.setAttribute("image-type","fit-high"),setImageContainerDimensions(e);var t=n.parentNode,o=t.closest(".mm-submenu.tabbed"),a=n.getAttribute("columns");o&&(a=o.getAttribute("columns")-1),t&&t.parentNode&&setSubmenuRowItemsHeight(t,a)}}catch(e){mmErrorLog(e)}}),20),clearTimeout(mmLazyLoadedTimeout),mmLazyLoadedTimeout=setTimeout((function(){var e=n.parentNode,t=e.closest(".mm-submenu.tabbed"),m=n.getAttribute("columns");t&&(m=t.getAttribute("columns")-1),e.classList.contains("mm-hovering")&&slideDownTransition(n),setSubmenuImageAndHeightBoundries(e,m),t&&e.matches(".tab-opened")&&setTabbedSubmenuBoundries(e)}),200)}else t.setAttribute("style","border-radius: 50%; overflow: hidden;"),t.offsetWidth<25&&(t.style.display="none")}}catch(e){mmErrorLog(e)}},reinitMenus=function(e,t){"string"==typeof e&&(e=document.querySelector(e));var n=e.querySelectorAll(".buddha-menu-item"),m=0!=mmVerticalMenus&&null!=document.querySelector(mmVerticalMenus)&&e.matches(mmVerticalMenus),o=window.innerWidth;if(t=void 0!==t?t:"auto",0!=mmDisableVisibleCheck||0!=mmVerticalMenus&&!m||!(o<=800)||mmIsVisible(e)||"auto"!=t){e.classList.remove("vertical-mega-menu"),e.classList.remove("horizontal-mega-menu");var a=mmForEach(e,".buddha-menu-item>.mm-submenu",(function(e){e.style.setProperty("display","none","important")}),!0),i=1;if(null!=document.querySelector(mmHorizontalMenus)&&e.matches(mmHorizontalMenus))t="horizontal";else if(m)t="vertical";else for(var r,u=0;ur+5||lverticalMenuMaxWidth)&&0==forceMobile&&"vertical"!=t||"horizontal"==t){if(e.classList.add("horizontal-mega-menu"),mmForEach(e,".submenu-opened",(function(e){e.classList.remove("submenu-opened")})),mmForEach(e,".buddha-menu-item > a > .mm-label",(function(e){e.classList.remove("mm-hidden")})),mmClickToggle){e.classList.add("mm-click-toggle"),e.classList.add("mm-priority");var s=".buddha-menu-item,.mm-submenu.tree li";2==mmClickToggle&&(s+=",.mm-submenu.tabbed>li"),mmForEach(e,s,(function(e){if(null!=e.querySelector(".mm-submenu")){for(var t=[e,e.querySelector("a")],n=0;n a > .mm-label",(function(e){null==e.parentNode.parentNode.querySelector(".mm-submenu")&&e.style.setProperty("left","0px","important")})),mmSetSmBoundriesOnReinit&&setTimeout((function(){for(var e=0;eli",(function(e){null==e.parentNode.querySelector(".tab-opened")?(e.classList.add("tab-opened"),mmSetSmBoundriesOnReinit&&setTabbedSubmenuBoundries(e)):e.classList.contains("tab-opened")&&mmSetSmBoundriesOnReinit&&setTabbedSubmenuBoundries(e)})),mmForEach(e,"ul.mm-submenu.tabbed>li",(function(e){e.removeEventListener("mouseenter",mmEvtEnterTabbedLi),e.addEventListener("mouseenter",mmEvtEnterTabbedLi)})),mmForEach(e,"ul.mm-submenu.tabbed>li:first-child",(function(e){null==e.parentNode.querySelector(".tab-opened")&&(e.classList.add("tab-opened"),setTabbedSubmenuBoundries(e))})),mmForEach(e,".contact-form",(function(e){e.setAttribute("action","/contact#contact_form1"),e.id="contact_form1"}));for(u=0;u a .mm-label",(function(e){e.classList.remove("mm-hidden")})),mmForEach(e,".submenu-opened",(function(e){e.classList.remove("submenu-opened"),e.classList.remove("height-transition"),e.removeAttribute("style")})),mmForEach(e,".toggle-menu-btn>.mm-cross",(function(e){e.classList.remove("mm-cross")})),mmForEach(e,".mm-submenu",(function(e){e.style.removeProperty("max-height"),e.style.removeProperty("min-width")})),mmForEach(e,".mm-hovering",(function(e){e.classList.remove("mm-hovering")}));var d=0,g=0,p=0,h=0;if(0!=mmMobileOffsets)d=mmMobileOffsets.liPaddingLeft,g=mmMobileOffsets.aPaddingLeft,p=mmMobileOffsets.aPaddingTop,h=mmMobileOffsets.aPaddingBottom;else if(n.length){var b=window.getComputedStyle(n[0]),f=window.getComputedStyle(n[0].querySelector("a"));d=b.getPropertyValue("padding-left"),g=f.getPropertyValue("padding-left"),p=f.getPropertyValue("padding-top"),h=f.getPropertyValue("padding-bottom")}var v=parseInt(d)+parseInt(g);v<=15&&(v=15);var y=(parseInt(p)-parseInt(h))/2;y=y<0?"top: calc(50% - "+-1*y+"px) !important;":"top: calc(50% + "+y+"px) !important;";var S="",M=v+mmMobileMenuTreeOffsetLeft,k=".vertical-mega-menu>.buddha-menu-item>.mm-submenu.tree";for(u=1;u<8;u++)S+=k+">li>a{margin-left: "+M+"px !important;} ",S+=k+">li{padding-bottom: 5px !important; padding-top: 5px !important; box-sizing: border-box !important;} ",M+=10,k+=">li>.mm-submenu.tree";var L='.vertical-mega-menu[menuIdx="'+c+'"]>li.buddha-menu-item',_="";_+=L+" ul.mm-submenu.tree>li>a>.toggle-menu-btn{right:"+v+"px !important;}",_+=L+" ul.mm-submenu.tree>li>a { padding-right: "+(v+28)+"px !important; }",_+=L+" ul.mm-submenu.tree.mm-last-level>li>a{ padding-right: "+v+"px !important; }",_+=L+" ul.mm-submenu.simple>li.mm-left-item{padding-left:"+v+"px !important;}",_+=L+" ul.mm-submenu.simple>li.mm-right-item{padding-right:"+v+"px !important;}",_+=L+">ul.mm-submenu.tabbed>li{padding-left:"+v+"px !important;padding-right:"+v+"px !important;}",_+=L+">ul.mm-submenu.tabbed>li>ul.mm-submenu>li.mm-left-item {padding-left: 0px !important;}",_+=L+">ul.mm-submenu.tabbed>li>ul.mm-submenu>li.mm-right-item {padding-right: 0px !important;}",_+=L+" ul.mm-submenu.mm-contact>li{padding-left:"+v+"px !important;padding-right:"+v+"px !important;}",_+=L+">ul.mm-submenu.tabbed>li>ul.mm-submenu.simple { padding-left:"+v+"px !important; padding-right:"+v+"px !important; margin-left:-"+v+"px !important; margin-right:-"+v+"px !important; }",_+=L+" > a > .toggle-menu-btn { right:"+v+"px !important;"+y+"}",mmAddStyle(_+=S,"verticalMenuSpacing"+c),mmForEach(e,".tab-opened",(function(e){e.classList.remove("tab-opened")})),forceMobile=!1}if(mmLivIcons&&addUpdateLivIcons(e),"undefined"!=typeof mmReplaceIcons){var w="";Object.keys(mmReplaceIcons).forEach((function(e){var t=mmReplaceIcons[e];w+=".buddha-menu-item .fas"+e+' {\n background-image: url("'+t+'");\n }\n .buddha-menu-item .fas'+e+" {\n background-position: center;\n background-size: contain;\n background-clip: content-box;\n background-repeat: no-repeat;\n }\n .buddha-menu-item .fas"+e+":before {\n content: none !important;\n }"})),mmAddStyle(w,"mmReplaceIconsStyle")}var O=e.querySelector(".flip-clock-label");if(O)try{var E=7/parseInt(getComputedStyle(O).fontSize)*1.1;E<1&&mmAddStyle(".buddha-menu-item .flip-clock-label {transform: scale("+E+") translateX(-7px);}","mmFlipClockFontStyle")}catch(e){}if(panelOpened||mmClickToggle||mmForEach(document,".mega-hover",(function(e){e.classList.remove("mega-hover")})),a)for(u=0;uli>ul.mm-submenu.tabbed>li>ul.mm-submenu li,.horizontal-mega-menu li.buddha-menu-item:hover ul.mm-submenu.simple li:hover, .horizontal-mega-menu li.buddha-menu-item.mega-hover ul.mm-submenu.simple li:hover",attribute:"background"},background_hover_color:{element:".horizontal-mega-menu ul.mm-submenu.tree li:hover, .horizontal-mega-menu ul.mm-submenu.tree li.mega-hover,.horizontal-mega-menu ul.mm-submenu.tabbed>li.tab-opened",attribute:"background"},background_image_text_color:{element:".horizontal-mega-menu ul.mm-submenu.backgroundImage a, .horizontal-mega-menu ul.mm-submenu.backgroundImage li.mm-contact-column span,.horizontal-mega-menu ul.mm-submenu.backgroundImage .mm-contact-content, .horizontal-mega-menu ul.mm-submenu.backgroundImage li",attribute:"color"},text_color:{element:'.horizontal-mega-menu ul.mm-submenu,.horizontal-mega-menu ul.mm-submenu li,.horizontal-mega-menu ul.mm-submenu li.mm-contact-column span,.horizontal-mega-menu ul.mm-submenu li a,.horizontal-mega-menu ul.mm-submenu li a span,.horizontal-mega-menu ul.mm-submenu li.fa, .horizontal-mega-menu ul.mm-submenu.tree li:hover>a[data-href="no-link"], .horizontal-mega-menu ul.mm-submenu.tree li.mega-hover>a[data-href="no-link"], .horizontal-mega-menu ul.mm-submenu.tabbed>li.tab-opened>a[data-href="no-link"], .horizontal-mega-menu ul.mm-submenu li a[data-href="no-link"]:hover, .horizontal-mega-menu ul.mm-submenu li a[data-href="no-link"]:hover > span, .horizontal-mega-menu ul.mm-submenu li:hover a[data-href="no-link"] > span',attribute:"color"},link_hover_color:{element:".horizontal-mega-menu ul.mm-submenu.tree li:hover>a, .horizontal-mega-menu ul.mm-submenu.tree li.mega-hover>a, .horizontal-mega-menu ul.mm-submenu.tabbed>li.tab-opened>a,.horizontal-mega-menu ul.mm-submenu.tabbed>li.tab-opened>a>.mm-title, .horizontal-mega-menu ul.mm-submenu li a:hover,.horizontal-mega-menu ul.mm-submenu li:hover>a, .horizontal-mega-menu ul.mm-submenu li a:hover i, .horizontal-mega-menu ul.mm-submenu li:hover>a>i, .horizontal-mega-menu ul.mm-submenu li a:hover>span, .horizontal-mega-menu ul.mm-submenu li:hover>a>span, .horizontal-mega-menu ul.mm-submenu.tree li.fa:hover:before, .horizontal-mega-menu ul.mm-submenu.tree li.mega-hover.fa:before, .horizontal-mega-menu ul.mm-submenu.tabbed>li.tab-opened.fa:before, .horizontal-mega-menu ul.mm-submenu>li>.mega-menu-item-container>.mm-list-name>span[onclick]:hover",attribute:"color"},font_size:{element:".horizontal-mega-menu ul.mm-submenu,.horizontal-mega-menu ul.mm-submenu a,.horizontal-mega-menu ul.mm-submenu a>span,.horizontal-mega-menu ul.mm-submenu .money",attribute:"font-size"},price_color:{element:".horizontal-mega-menu ul.mm-submenu.simple > li .mega-menu-prices span.mega-menu-price span",attribute:"color"},vertical_text_color:{element:".vertical-mega-menu ul.mm-submenu,.vertical-mega-menu ul.mm-submenu li.mm-contact-column span,.vertical-mega-menu ul.mm-submenu li a, .vertical-mega-menu ul.mm-submenu span, .vertical-mega-menu ul.mm-submenu>li>a>.toggle-menu-btn>.fa",attribute:"color"},vertical_link_hover_color:{element:".vertical-mega-menu ul.mm-submenu>li:hover>a[onclick]:not([data-href='no-link']), .vertical-mega-menu ul.mm-submenu>li:hover>a[onclick]:not([data-href='no-link'])>*, .vertical-mega-menu ul.mm-submenu>li.mm-hovering>a[onclick]:not([data-href='no-link']),.vertical-mega-menu ul.mm-submenu>li.mm-hovering>a[onclick]:not([data-href='no-link'])>*, .vertical-mega-menu ul.mm-submenu.tabbed>li.tab-opened>a[onclick]:not([data-href='no-link']), .vertical-mega-menu ul.mm-submenu.tabbed>li.tab-opened>a[onclick]:not([data-href='no-link'])>*, .vertical-mega-menu ul.mm-submenu li a[onclick]:not([data-href='no-link']):hover, .vertical-mega-menu ul.mm-submenu.tree li:hover>a[onclick]:not([data-href='no-link'])>.toggle-menu-btn>span>span, .vertical-mega-menu ul.mm-submenu.tree li.mm-hovering>a[onclick]:not([data-href='no-link'])>.toggle-menu-btn>span>span, .vertical-mega-menu ul.mm-submenu.tree li.mega-hover>a[onclick]:not([data-href='no-link'])>.toggle-menu-btn>span>span, .vertical-mega-menu ul.mm-submenu.tabbed>li.mm-hovering>a[onclick]:not([data-href='no-link'])>.toggle-menu-btn>span>span, .vertical-mega-menu ul.mm-submenu.tabbed>li:hover>a[onclick]:not([data-href='no-link'])>.toggle-menu-btn>span>span, .vertical-mega-menu ul.mm-submenu>li>.mega-menu-item-container>.mm-list-name>span[onclick]:hover>span, .vertical-mega-menu ul.mm-submenu>li>.mega-menu-item-container .mm-list-info>a[onclick]:not([data-href='no-link']):hover>*",attribute:"color"},vertical_font_size:{element:".vertical-mega-menu ul.mm-submenu,.vertical-mega-menu ul.mm-submenu span, .vertical-mega-menu ul.mm-submenu.simple>li ul.mm-product-list>li .mm-list-info",attribute:"font-size"},vertical_price_color:{element:".vertical-mega-menu ul.mm-submenu.simple > li .mega-menu-prices span.mega-menu-price span",attribute:"color"},font_family:{element:".horizontal-mega-menu ul.mm-submenu,.horizontal-mega-menu ul.mm-submenu li a,.horizontal-mega-menu ul.mm-submenu a>.mm-title,.horizontal-mega-menu ul.mm-submenu .mm-title,.horizontal-mega-menu ul.mm-submenu a,.horizontal-mega-menu ul.mm-submenu li.mm-contact-column span",attribute:"font-family"},vertical_font_family:{element:".vertical-mega-menu ul.mm-submenu,.vertical-mega-menu ul.mm-submenu li a,.vertical-mega-menu ul.mm-submenu a,.vertical-mega-menu ul.mm-submenu a>.mm-title,.vertical-mega-menu ul.mm-submenu .mm-title,.vertical-mega-menu ul.mm-submenu li.mm-contact-column span",attribute:"font-family"},contact_right_btn_bg_color:{element:".horizontal-mega-menu ul.mm-submenu li.mm-contact-column button",attribute:"background"},contact_right_btn_text_color:{element:".horizontal-mega-menu ul.mm-submenu li.mm-contact-column button",attribute:"color"},countdown_color:{element:".horizontal-mega-menu .buddha-menu-item-countdown .inn",attribute:"color"},countdown_background_color:{element:".horizontal-mega-menu .buddha-menu-item-countdown .inn,.horizontal-mega-menu .buddha-menu-item-countdown .up::after,.horizontal-mega-menu .buddha-menu-item-countdown .flip-clock-dot",attribute:"background"},addtocart_text_color:{element:".horizontal-mega-menu .mm-add-to-cart>div",attribute:"color"},addtocart_text_hover_color:{element:".horizontal-mega-menu .buddha-menu-item .mm-submenu .mm-add-to-cart>div:hover",attribute:"color"},addtocart_background_color:{element:".horizontal-mega-menu .mm-add-to-cart>div",attribute:"background"},addtocart_background_hover_color:{element:".horizontal-mega-menu .buddha-menu-item .mm-submenu .mm-add-to-cart>div:hover",attribute:"background"},vertical_contact_right_btn_bg_color:{element:".vertical-mega-menu .buddha-menu-item ul.mm-submenu li.mm-contact-column button",attribute:"background"},vertical_contact_right_btn_text_color:{element:".vertical-mega-menu ul.mm-submenu li.mm-contact-column button",attribute:"color"},vertical_countdown_color:{element:".vertical-mega-menu .buddha-menu-item-countdown .inn",attribute:"color"},vertical_countdown_background_color:{element:".vertical-mega-menu .buddha-menu-item-countdown .inn,.vertical-mega-menu .buddha-menu-item-countdown .up::after,.vertical-mega-menu .buddha-menu-item-countdown .flip-clock-dot",attribute:"background"},vertical_addtocart_text_color:{element:".vertical-mega-menu .buddha-menu-item .mm-add-to-cart>div",attribute:"color"},vertical_addtocart_background_color:{element:".vertical-mega-menu .buddha-menu-item .mm-add-to-cart>div",attribute:"background"},label_text_color_sale:{element:".horizontal-mega-menu .buddha-menu-item .mm-label.sale",attribute:"color"},label_text_color_new:{element:".horizontal-mega-menu .buddha-menu-item .mm-label.new",attribute:"color"},label_text_color_hot:{element:".horizontal-mega-menu .buddha-menu-item .mm-label.hot",attribute:"color"},label_text_color_all:{element:".horizontal-mega-menu .buddha-menu-item .mm-label.sale,.horizontal-mega-menu .buddha-menu-item .mm-label.new,.horizontal-mega-menu .buddha-menu-item .mm-label.hot",attribute:"color"},label_background_color_sale:{element:".horizontal-mega-menu .buddha-menu-item .mm-label.sale",attribute:"background-color"},label_background_color_new:{element:".horizontal-mega-menu .buddha-menu-item .mm-label.new",attribute:"background-color"},label_background_color_hot:{element:".horizontal-mega-menu .buddha-menu-item .mm-label.hot",attribute:"background-color"},label_background_color_all:{element:".horizontal-mega-menu .buddha-menu-item .mm-label.sale,.horizontal-mega-menu .buddha-menu-item .mm-label.new,.horizontal-mega-menu .buddha-menu-item .mm-label.hot",attribute:"background-color"},vertical_label_text_color_sale:{element:".vertical-mega-menu .buddha-menu-item .mm-label.sale",attribute:"color"},vertical_label_text_color_new:{element:".vertical-mega-menu .buddha-menu-item .mm-label.new",attribute:"color"},vertical_label_text_color_hot:{element:".vertical-mega-menu .buddha-menu-item .mm-label.hot",attribute:"color"},vertical_label_text_color_all:{element:".vertical-mega-menu .buddha-menu-item .mm-label.sale,.vertical-mega-menu .buddha-menu-item .mm-label.new,.vertical-mega-menu .buddha-menu-item .mm-label.hot",attribute:"color"},vertical_label_background_color_sale:{element:".vertical-mega-menu .buddha-menu-item .mm-label.sale",attribute:"background-color"},vertical_label_background_color_new:{element:".vertical-mega-menu .buddha-menu-item .mm-label.new",attribute:"background-color"},vertical_label_background_color_hot:{element:".vertical-mega-menu .buddha-menu-item .mm-label.hot",attribute:"background-color"},vertical_label_background_color_all:{element:".vertical-mega-menu .buddha-menu-item .mm-label.sale,.vertical-mega-menu .buddha-menu-item .mm-label.new,.vertical-mega-menu .buddha-menu-item .mm-label.hot",attribute:"background-color"}},liveDesign=function(e,t){try{if(-1!==e.indexOf("main_menu_item_size_")){var n=e.replace("main_menu_item_size_","");(m=document.querySelector('.horizontal-mega-menu>li.mega-hover[itemId="'+n+'"]'))&&("auto"==t?(m.removeAttribute("submenu-size"),delete submenuSizes[n],null==m.querySelector(".mm-contact")?setSubmenuBoundries(m):setContactSubmenuBoundries(m)):(t=parseInt(t),m.setAttribute("submenu-size",t),submenuSizes[n]=t,null==m.querySelector(".mm-contact")?setSubmenuBoundries(m,t):setContactSubmenuBoundries(m,t)))}else if(-1!==e.indexOf("main_menu_item_columns_")){var m;n=e.replace("main_menu_item_columns_","");(m=document.querySelector('.horizontal-mega-menu>li.mega-hover[itemId="'+n+'"]'))&&("auto"==t?(m.removeAttribute("submenu-columns"),delete submenuColumns[n],null==m.querySelector(".mm-contact")?setSubmenuBoundries(m):setContactSubmenuBoundries(m)):(m.setAttribute("submenu-columns",t),submenuColumns[n]=t,null==m.querySelector(".mm-contact")?setSubmenuBoundries(m):setContactSubmenuBoundries(m)))}else{var o="";void 0!==propSettings[e]&&(o+=propSettings[e].element+"{"+propSettings[e].attribute+":"+t+" !important; }"),o+=customPropSettingsStyles(e,t),mmAddStyle(o,"tempStyle")}}catch(e){mmErrorLog(e)}},updateDesign=function(e,t){try{if(mmRemove("#tempStyle"),-1===e.indexOf("main_menu_item_size_")&&-1===e.indexOf("main_menu_item_columns_")||"auto"!=t)(o={}).action="design",o.setting=e,o.value=t,defaultFontSelected=!1,"font_family"==o.setting&&"Default"==o.value&&(defaultFontSelected=!0),mmSchemaDesignJSON.push(o),undo.push(o);else{for(var n=[],m=mmSchemaDesignJSON.length-1;m>=0;m--){var o=mmSchemaDesignJSON[m];"design"==o.action&&o.setting==e||n.push(o)}mmSchemaDesignJSON=n}if(recreateDesign(e),"font_size"!=e&&"font_family"!=e&&-1===e.indexOf("main_menu_item_columns_")||mmForEach(document,".horizontal-mega-menu>.buddha-menu-item.mega-hover>.mm-submenu",(function(t){if(parseInt(window.getComputedStyle(t).getPropertyValue("top"))>0){var n=10;"font_family"!=e&&"font_size"!=e||(n=300),setTimeout((function(){setSubmenuBoundries(t.parentElement),setContactSubmenuBoundries(t.parentElement),t.matches(".tabbed")&&setTabbedSubmenuBoundries(t.querySelector("li.tab-opened"))}),n)}})),-1!==e.indexOf("main_menu_item_columns_")){var a=e.replace("main_menu_item_columns_",""),i=document.querySelector('.horizontal-mega-menu>li.mega-hover[itemId="'+a+'"]');i&&i.querySelector(".mm-submenu.tabbed")&&(o.type="tabbed")}if(redo=[],mmSettingsPage){var r=parent;void 0===parent.postMessage&&(r=top),r.postMessage(["updateToolbar",JSON.stringify(mmSchemaDesignJSON),JSON.stringify(linkLists),JSON.stringify(undo),JSON.stringify(redo),changedMenu],"*")}else previewPanelLoaded&&document.getElementById("mega-menu-iframe").contentWindow.postMessage(["updateToolbar",JSON.stringify(mmSchemaDesignJSON),JSON.stringify(linkLists),JSON.stringify(undo),JSON.stringify(redo),changedMenu],"https://buddhaapps.com")}catch(e){mmErrorLog(e)}},recreateDesign=function(e){var t="",n=[];if(!mmSettingsPage&&"undefined"==typeof mmSettingsPageForce||void 0===e)n=mmSchemaDesignJSON;else for(var m=[],o=mmSchemaDesignJSON.length-1;o>=0;o--){"design"==(a=mmSchemaDesignJSON[o]).action&&-1==m.indexOf(a.setting)?(m[m.length]=a.setting,n.push(a)):"menu-select"==a.action&&n.push(a)}for(o=0;oli.mega-hover[itemId="'+i+'"]');r&&(r.setAttribute("submenu-direction",a.value),submenuDirections[i]=a.value,(mmSettingsPage||"undefined"!=typeof mmSettingsPageForce)&&(null==r.querySelector(".mm-contact")?setSubmenuBoundries(r,!1,a.value):setContactSubmenuBoundries(r,!1,a.value)))}"design"==a.action&&(t+=customPropSettingsStyles(a.setting,a.value))}if(mmAddStyle(t,"previewStyle"),mmLivIcons&&(mmSettingsPage||"undefined"!=typeof mmSettingsPageForce)&&void 0!==typeof e&&"text_color,link_hover_color,vertical_text_color,vertical_link_hover_color,background_image_text_color,".indexOf(e+",")>=0)for(o=0;o.buddha-menu-item")&&(mmForEach(document,".mega-hover",(function(e){e.classList.remove("mega-hover")})),panelOpened&&(t.classList.add("mega-hover"),mmSettingsPage))){var n=parent;void 0===parent.postMessage&&(n=top);var m=t.getAttribute("itemId");n.postMessage(["updateMainMenuItemSelect",m],"*")}},designPanelOpened=function(e){var t=null,n=null;if(mmForEach(document,".horizontal-mega-menu",(function(e){if(mmIsVisible(e))return n=e,-1})),n){if(e&&void 0!==e){if("custom_addtocart"==e){var m=0;e=null,mmForEach(n,".buddha-menu-item",(function(n){var o=n.querySelectorAll(".mm-add-to-cart").length;o>m&&(m=o,e=n.getAttribute("itemId"),t=n.querySelector(".mm-add-to-cart").closest(".mm-submenu.tabbed>li"))}))}else if("custom_labels"==e){m=0;e=null,mmForEach(n,".buddha-menu-item",(function(n){var o=n.querySelectorAll(".mm-label").length;o>m&&(m=o,e=n.getAttribute("itemId"),t=n.querySelector(".mm-label").closest(".mm-submenu.tabbed>li"))}))}else if("custom_contact"==e){(l=n.querySelector(".mm-contact"))&&(e=l.closest(".buddha-menu-item").getAttribute("itemId"))}else if("custom_fonts"==e){var o=n.querySelector(".mm-submenu.simple");null==o&&(o=n.querySelector(".mm-submenu")),o&&(e=o.closest(".buddha-menu-item").getAttribute("itemId"))}else if("price_color"==e){var a=n.querySelector(".mega-menu-prices");a&&(e=a.closest(".buddha-menu-item").getAttribute("itemId"))}if(e&&null!=typeof e){var i=n.querySelector('.buddha-menu-item[itemId="'+e+'"]');if(i&&!i.matches(".mega-hover")&&(mmForEach(document,".mega-hover",(function(e){e.classList.remove("mega-hover")})),i.classList.add("mega-hover"),mmSettingsPage)){var r=parent;void 0===parent.postMessage&&(r=top),r.postMessage(["updateMainMenuItemSelect",e,"true"],"*")}}}else{panelOpened=!0;var u=n.querySelector(".buddha-menu-item>ul.mm-submenu.tabbed");if(u)u.parentElement.classList.add("mega-hover");else{var l,s=n.querySelector(".buddha-menu-item>ul.mm-submenu.simple");if(s)s.parentElement.classList.add("mega-hover");else if(l=n.querySelector(".buddha-menu-item>ul.mm-submenu.contact"))l.parentElement.classList.add("mega-hover");else{var c=n.querySelector(".buddha-menu-item>ul.mm-submenu.tree");c&&c.parentElement.classList.add("mega-hover")}}}var d=document.querySelector(".buddha-menu-item.mega-hover");if(d){if(setSubmenuBoundries(d),setContactSubmenuBoundries(d),t)mmForEach(t.parentElement,".tab-opened",(function(e){e.classList.remove("tab-opened")})),t.classList.add("tab-opened"),setTabbedSubmenuBoundries(t);else{var g=n.querySelector("ul.mm-submenu.tabbed>li.tab-opened");if(g)setTabbedSubmenuBoundries(g);else{var p=n.querySelector("ul.mm-submenu.tabbed>li");p&&(p.classList.add("tab-opened"),setTabbedSubmenuBoundries(p))}}if(!e&&mmSettingsPage){r=parent;void 0===parent.postMessage&&(r=top);var h=d.getAttribute("itemId");r.postMessage(["updateMainMenuItemSelect",h],"*")}}}mmForEach(document,".horizontal-mega-menu>.buddha-menu-item",(function(e){e.removeEventListener("mouseenter",mmEvtMouseEnterPreview),e.addEventListener("mouseenter",mmEvtMouseEnterPreview)}))};window.addEventListener("message",(function(e){(~e.origin.indexOf("megamenu.buddhaapps.com")||~e.origin.indexOf("https://megamenu-new")||~e.origin.indexOf("https://megamenu-dev"))&&("object"==typeof e.data?"applyMegaMenu"==e.data[0]?(window[e.data[0]](e.data[1]),applyOnClick()):-1!==["undoAction","redoAction","clearAction","initSaving","designPanelClosed"].indexOf(e.data[0])?window[e.data[0]]():"designPanelOpened"==e.data[0]?void 0===e.data[1]?window[e.data[0]]():window[e.data[0]](e.data[1]):-1!==["liveDesign","updateDesign"].indexOf(e.data[0])&&window[e.data[0]](e.data[1],e.data[2]):"string"==typeof e.data&&"function"==typeof window[e.data]&&window[e.data]())}));var initSaving=function(){saving=!0},slideUpTransition=function(e){for(var t=parseInt(e.style.maxHeight),n=mmParents(e),m=0;m=n?n:i,2==n&&1==i&&null!=a&&-1!=["best-sellers","newest-products","link-list","link-list-image"].indexOf(a)&&(m+=1),null!=e.closest(".mm-submenu.tree")&&(m+=1);var r=e.nextElementSibling;if(r){var u=r.getAttribute("item-type"),l=r.getAttribute("submenu-columns");l=null==l?1:parseInt(l),2==n&&1==l&&null!=u&&-1!=["best-sellers","newest-products","link-list","link-list-image"].indexOf(u)&&(l+=1),m+l>n&&(m=n)}setTimeout((function(){e.classList.add("mmBounceInUp")}),t),null!=e.closest(".mm-submenu.simple")&&(m-n==0&&e.classList.add("mm-right-item"),o&&(e.classList.add("mm-left-item"),o=!1),m-n==0&&(t+=150,m=0,o=!0))}))},toggleSubmenu=function(e){try{if(!submenuToggled){submenuToggled=!0,setTimeout((function(){submenuToggled=!1}),300),e.matches(".toggle-menu-btn")||(e=e.querySelector(".toggle-menu-btn"));var t=e.closest("li");if(t){var n=e.closest(".vertical-mega-menu"),m=t.querySelector("ul.mm-submenu:not(.hide-menu)");if(m&&n){var o;if(m.classList.contains("submenu-opened"))o=n.clientHeight-parseInt(m.scrollHeight),slideUpTransition(m),mmForEach(t,".toggle-menu-btn>span",(function(e){e.classList.remove("mm-cross")})),setTimeout((function(){mmForEach(t,".mm-hovering",(function(e){e.classList.remove("mm-hovering")})),t.classList.remove("mm-hovering"),mmForEach(t,".submenu-opened",(function(e){e.classList.remove("submenu-opened")})),mmForEach(m,".mmBounceInUp",(function(e){e.classList.remove("mmBounceInUp")}))}),600);else{t.classList.add("mm-hovering");var a=e.querySelector("span");a&&a.classList.add("mm-cross"),m.classList.add("submenu-opened"),m.classList.add("height-transition");m.matches(".simple")&&(setSubmenuBoundries(t),setTimeout((function(){setSubmenuBoundries(t)}),500)),o=n.clientHeight+parseInt(m.scrollHeight)+50,slideDownTransition(m),setTimeout((function(){a.classList.contains("mm-cross")&&slideDownTransition(m)}),600),setSubmenuSpacing(m),mmLoadImages(t)}mmEvtToggleSubmenu.mmMobileHeight=o,mmEvtToggleSubmenu.mmSubmenu=m,document.dispatchEvent(mmEvtToggleSubmenu)}}}}catch(e){mmErrorLog(e)}return"undefined"!=typeof event&&"function"==typeof event.stopImmediatePropagation&&event.stopImmediatePropagation(),!1},initClickToggle=function(){document.addEventListener("click",(function(e){null!=e.target.closest(".buddha-menu-item")||e.target.matches(mmCLickToggleFilterClicks)||mmForEach(document,".mm-click-toggle .buddha-menu-item.mega-hover",(function(e){e.classList.remove("mega-hover")}))})),window.mmAddHover=function(e){if(null!=e.target.closest(".mm-submenu.tree")){for(var t=(m=e.target.closest("li")).parentElement.querySelectorAll(".mega-hover"),n=0;nli>a")){var m=e.target.closest("li");mmForEach(m.parentNode,".tab-opened",(function(e){e.classList.remove("tab-opened")})),m.classList.add("tab-opened"),setTabbedSubmenuBoundries(m),mmLoadImages(m)}}else if(!e.target.closest(".mm-contact")){var o=e.target.closest(".buddha-menu-item"),a=o.matches(".mega-hover");mmForEach(document,".buddha-menu-item.mega-hover",(function(e){e.classList.remove("mega-hover")})),a?o.classList.remove("mega-hover"):o.classList.add("mega-hover"),mmLoadImages(o)}}},initMenuHideDelay=function(){window.mmAddHoverMH=function(e){e.target.classList.add("mega-hover")},window.mmRemoveHoverMH=function(e){document.querySelector(".buddha-menu-item:hover")?e.target.classList.remove("mega-hover"):setTimeout((function(){document.querySelector(".buddha-menu-item:hover")||e.target.classList.remove("mega-hover")}),mmMenuHideDelay)}},mmGoToPage=function(e,t){if(!changingPage&&!submenuToggled&&!mmTouchMoved){var n=window.location.hostname.replace("www.",""),m=n.substr(0,n.indexOf("."))+".",o=e.getAttribute("data-href");if(o&&"no-link"!=o)if(-1!==o.indexOf("http")&&-1===o.indexOf(m)&&-1===o.indexOf("myshopify.com")){changingPage=!0;var a=window.open(o,"_blank");a&&a.focus(),setTimeout((function(){changingPage=!1}),300)}else changingPage=!0,window.location=o,setTimeout((function(){changingPage=!1}),1e3);else t.stopPropagation()}return!1},getImgUrlLowRes=function(e,t){if(null==e)return"";var n={".jpg":"_"+t+".jpg",".JPG":"_"+t+".JPG",".png":"_"+t+".png",".PNG":"_"+t+".PNG"};for(key in n){var m=e.lastIndexOf(key);-1!=m&&(e=e.substring(0,m)+n[key]+e.substring(m+key.length))}return e},mmAddToCartPopup=function(e,t){switch(e){case"hide":document.querySelector(".mm-atc-popup").style.removeProperty("opacity"),document.querySelector(".mm-atc-popup").style.removeProperty("pointer-events"),setTimeout((function(){document.querySelector(".mm-atc-popup").style.removeProperty("display")}),1e3);break;case"show":"function"==typeof monster_refresh&&monster_refresh(),document.querySelector(".mm-atc-popup").style.setProperty("display","flex","important"),setTimeout((function(){document.querySelector(".mm-atc-popup").style.setProperty("opacity",1,"important"),document.querySelector(".mm-atc-popup").style.setProperty("pointer-events","auto","important")}),20);break;case"setproduct":var n=getImgUrlLowRes(t.items[0].image,"70x");document.querySelector(".mm-atc-popup .mm-atc-head>span").innerHTML=mmAtcPopupSuccess,document.querySelector(".mm-atc-popup .mm-atc-view-cart").innerHTML=mmAtcPopupViewCart,""!=n?(document.querySelector(".mm-atc-popup .mm-atc-product-image").src=n,document.querySelector(".mm-atc-popup .mm-atc-product-image").style.setProperty("display","block"),document.querySelector(".mm-atc-popup .mm-atc-product>div").style.removeProperty("padding")):(document.querySelector(".mm-atc-popup .mm-atc-product-image").style.setProperty("display","none"),document.querySelector(".mm-atc-popup .mm-atc-product>div").style.setProperty("padding","0")),document.querySelector(".mm-atc-popup .mm-atc-product").setAttribute("href",t.items[0].url),document.querySelector(".mm-atc-popup .mm-atc-product-name").innerHTML=t.items[0].product_title,document.querySelector(".mm-atc-popup .mm-atc-product-variant").innerHTML=t.items[0].variant_title,"undefined"!=typeof mmAddToCartPopupCallback&&mmAddToCartPopupCallback();break;case"error":document.querySelector(".mm-atc-popup .mm-atc-head>span").innerHTML=mmAtcPopupOutOfStock,document.querySelector(".mm-atc-popup .mm-atc-product-image").style.setProperty("display","none"),document.querySelector(".mm-atc-popup .mm-atc-product>div").style.setProperty("padding","0"),document.querySelector(".mm-atc-popup .mm-atc-product-name").innerHTML=t.description,document.querySelector(".mm-atc-popup .mm-atc-product-variant").innerHTML=""}},mmAddToCartTimeout,mmAddToCart=function(e){var t=e.getAttribute("varid");if(t){clearTimeout(mmAddToCartTimeout);var n=new XMLHttpRequest;n.open("POST","/cart/add.js",!0),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.onreadystatechange=function(){4==n.readyState&&(200==n.status?"undefined"!=typeof HsCartDrawer?HsCartDrawer.getSlideCart():"undefined"!=typeof mmAddToCartAfter?mmAddToCartAfter(JSON.parse(n.responseText)):(mmAddToCartPopup("setproduct",JSON.parse(n.responseText)),mmAddToCartPopup("show"),mmAddToCartTimeout=setTimeout((function(){mmAddToCartPopup("hide")}),6e3)):(mmAddToCartPopup("error",JSON.parse(n.responseText)),mmAddToCartPopup("show"),mmAddToCartTimeout=setTimeout((function(){mmAddToCartPopup("hide")}),6e3)))};var m={items:[{quantity:1,id:t}]},o=e.getAttribute("sellingplan");""!=o&&(m.items[0].selling_plan=o),n.send(JSON.stringify(m))}"undefined"!=typeof buddhaCrosssell&&void 0!==buddhaCrosssell.upsellPopup&&setTimeout((function(){buddhaCrosssell.upsellPopup("show")}),1e3)},setImagePlaceholderSize=function(e){var t=e.getAttribute("columns");t=t||1;var n=e.offsetWidth/t-30;mmForEach(e,".mm-image img",(function(e){if(""==e.style.width&&""==e.closest(".mm-image").style.width&&!e.matches(".mmLazyloaded")){var t=e.closest("li[image-type]");if(t||(t=e.closest("li")),t){var m=e.getAttribute("aspect-ratio");null!=m&&0!=m||(m=30);var o=t.getAttribute("submenu-columns"),a=(t.getAttribute("image-type"),n*(o=o||1)),i=a/m;e.style.width=a+"px",e.style.height=i+"px";var r=e.closest(".mm-image");r&&(r.style.height=i+"px");var u=e.closest(".mm-image-container");u&&u.style.removeProperty("height");var l=t.querySelector(".mm-label");l&&l.classList.add("mmHidden")}}}))},setImageContainerDimensions=function(e){var t=e.querySelector(".mm-image-container img");if(t){var n=e.querySelector(".mm-image-container"),m=e.querySelector(".mm-image"),o=e.getAttribute("image-type");if(n&&m&&o){var a=null!=e.closest(".vertical-mega-menu"),i=t.naturalWidth,r=t.naturalHeight;if(0!==i&&0!==r){if(t.removeAttribute("style"),n.removeAttribute("style"),m.removeAttribute("style"),o.indexOf("crop-")>=0){var u="high",l="";o.indexOf("-full")>=0&&(l="-full"),i>r&&(u="wide"),o="crop-"+u+l,e.setAttribute("image-type",o)}var s=(g=o.indexOf("-full")>=0?n.getBoundingClientRect():m.getBoundingClientRect()).width,c=g.height;if(0!=s&&0!=c){if(o.indexOf("fit-")>=0){var d;if(r>c)i/=d=r/c,r/=d;if(i>s)i/=d=i/s,r/=d}if(o.indexOf("crop-")>=0){var g,p=!1,h=s/c,b=i/r;if(b>3&&a&&(i/2>s&&r/2>=40?(r/=2,i/=2):i/1.5>s&&r/1.5>=40&&(r/=1.5,i/=1.5)),i>s&&(i=s),r>c&&(r=c),b<.9||b>1.1?h>b?"crop-wide-full"==o?(e.setAttribute("image-type","crop-high-full"),p=!0):"crop-wide"==o&&(e.setAttribute("image-type","crop-high"),p=!0):h=0?n.getBoundingClientRect():m.getBoundingClientRect()).width,b>3&&a&&(i/2>s&&r/2>=40?(r/=2,i/=2):i/1.5>s&&r/1.5>=40&&(r/=1.5,i/=1.5)),i>s&&(i=s),r>(c=g.height)&&(r=c)}m.style.width=i+"px",m.style.height=r+"px";var f=e.querySelector(".mm-image-container>.mm-label-wrap"),v=e.querySelector(".mm-description");f&&(f.style.width=i+"px",f.style.height=r+"px"),v&&(v.style.width=i+"px")}}}}else setImageContainerDimensionsVideo(e)},setImageContainerDimensionsVideo=function(e){var t=e.querySelector(".mm-image-container .mm-video-player"),n=e.querySelector(".mm-image-container .mm-image");if(t&&n){t.removeAttribute("style"),n.removeAttribute("style");var m=t.getBoundingClientRect(),o=Math.ceil(m.width),a=Math.ceil(m.height),i=parseInt(n.offsetHeight);if(0!==o&&0!==a){a>i&&(a=i),n.style.width=o+"px",n.style.height=a+"px";var r=e.querySelector(".mm-image-container>.mm-label-wrap"),u=e.querySelector(".mm-description");r&&(r.style.width=o+"px",r.style.height=a+"px"),u&&(u.style.width=o+"px")}}},setSubmenuRowItemsHeight=function(e,t){var n=5,m=null!=e.closest(".vertical-mega-menu");if(m)n=t;else if(e.parentNode&&e.parentNode.matches(".mm-submenu.tabbed[columns]"))n=e.parentNode.getAttribute("columns")-1;else{var o=e.querySelector("ul.mm-submenu.simple[columns]:not(.hide-menu)");o&&(n=o.getAttribute("columns"))}if(n>1){mmForEach(e,"ul.mm-submenu>li .mm-featured-title, ul.mm-submenu>li .mm-list-name, ul.mm-submenu>li .mega-menu-prices",(function(e){e.removeAttribute("style")}));var a=0,i=[],r=[],u=[],l=[],s={},c={},d={},g=0,p=e.querySelector(".mm-submenu:not(.hide-menu)");p&&mmForEachChild(p,"LI",(function(e){var o=e.getAttribute("item-type"),p=e.getAttribute("image-type"),h=e.getAttribute("submenu-columns");if(h=null==h?1:parseInt(h),m?(a+=h>=n?n:h,2==t&&1==a&&null!=o&&-1!=["best-sellers","newest-products","link-list","link-list-image"].indexOf(o)&&(a+=1)):a+=h,void 0===s[h]&&(s[h]=0),void 0===c[h]&&(c[h]=0),void 0===d[h]&&(d[h]=0),o&&p&&-1!=["featured-product","featured-collection","featured-article","featured-custom","video"].indexOf(o)&&-1==["fit-high-full","fit-wide-full","crop-high-full","crop-wide-full"].indexOf(p)){var b=e.querySelector(".mm-featured-title");if(b){var f=b.offsetHeight;c[h]g&&(g=k),l.push(M)}}var L=e.nextElementSibling,_=0;if(L&&(_=null==(_=L.getAttribute("submenu-columns"))?1:parseInt(_),m)){var w=L.getAttribute("item-type");(_>=2||2==t&&1==_&&null!==w&&-1!=["best-sellers","newest-products","link-list","link-list-image"].indexOf(w))&&(_=2)}if(a%n==0||null==L||a+_>n){for(var O=0;Oli"),s=null!=e.closest(".vertical-mega-menu"),c=0;c=2||2==t&&1==d&&null!==g&&-1!=["best-sellers","newest-products","link-list","link-list-image"].indexOf(g))&&(d=2),i+=d,n||1!=r||(n=null!==l[c].getAttribute("haslabel")),1==r&&i<=t&&(m=c),"featured-banner"!=g&&"featured-custom"!=g||-1==["crop-high-full","crop-wide-full"].indexOf(l[c].getAttribute("image-type"))||(o=!0),i>t&&(i=d,o=!1,a=c,u=10*++r),l[c].style.zIndex=u,u--}if(n||!o)for(c=0;c=a&&l[c].style.setProperty("margin-bottom","10px","important")},setSubmenuImageAndHeightBoundries=function(e,t){setSubmenuRowItemsZindex(e,t);for(var n=mmGetChildren(e,".mm-submenu:not(.hide-menu)>li"),m=0;m0&&(a=w)}(1e3==a||r<=768)&&(a=0);var h,b=e.getAttribute("submenu-columns");if(!t||void 0===t)(h=e.getAttribute("submenu-size"))&&(t=h);if(!n||void 0===n)(h=e.getAttribute("submenu-direction"))&&(n=h);if(customHeaderOffset)a=customHeaderOffsetr&&(a=0);var f=r-2*a;if(o){var v=b;if(l.style.setProperty("width",f+"px","important"),"left"!=n&&"right"!=n||(v>4&&r<768||v>3&&r<512||v>2&&r<384)&&(n="auto"),n&&void 0!==n&&"auto"!=n||(v>2&&r<462?v=2:v>3&&r<616?v=3:v>4&&r<768&&(v=4)),l.setAttribute("columns",v),s){var y=mmGetChildren(e,"ul.simple>li");for(g=0;g=S&&M>S&&(y[g].setAttribute("submenu-columns",v),M==v&&y[g].removeAttribute("submenu-original-columns"))}}else if(c)for(y=mmGetChildren(e,"ul.tabbed>li>ul.simple>li"),g=0;g=S&&M>S&&(y[g].setAttribute("submenu-columns",v-1),M==v-1&&y[g].removeAttribute("submenu-original-columns"))}}else{v=5;("left"==n||"right"==n)&&r<768&&(n="auto"),f>=1020?(l.setAttribute("columns",5),v=5):f>=816?(l.setAttribute("columns",4),v=4):f>=612?(l.setAttribute("columns",3),v=3):(l.setAttribute("columns",2),v=2),l.style.setProperty("width",f+"px","important"),l.style.setProperty("min-width","400px","important"),5==v?i=1e3:4==v?i=800:3==v?i=600:2==v&&(i=400)}var k=e.getBoundingClientRect(),L=k.left,_=k.width,w=L-u+_/2;if(n&&void 0!==n&&"auto"!=n){if("right"==n){p=parseInt(window.getComputedStyle(e).getPropertyValue("padding-left"));var O=0;(E=r-(L+p))li>a>i.mm-arrow");for(g=0;gli.tab-opened")}e&&setSubmenuImageAndHeightBoundries(e,v),disableOnScroll&&setTimeout(mmStaticMenuFn,100)}else{var C=e.closest(".vertical-mega-menu");if(C){var I=C.offsetWidth;Ili[submenu-columns="'+(v-1)+'"]',(function(e){e.setAttribute("submenu-columns",5)})),v++);var q=mmMinColumnWidth;v>1&&r<2*q?v=1:v>2&&r<3*q?v=2:v>3&&r<4*q?v=3:v>4&&r<5*q&&(v=4)}for(g=0;gli"),g=0;g=S&&M>S&&(y[g].setAttribute("submenu-columns",v),M==v&&y[g].removeAttribute("submenu-original-columns"))}}else{q=mmMinColumnWidth;var P=e.offsetWidth,N=2;P>=3*q?v=3:P>=2*q?v=2:(v=1,N=1);for(g=0;ga>i.mm-arrow",(function(e){e.classList.remove("mm-angle-down"),e.classList.remove("mm-angle-right"),e.classList.remove("mm-angle-left"),e.closest("li").querySelector(".mm-submenu")&&e.classList.add("mm-angle-right")}))):(mmForEach(e,"ul.mm-submenu.tree",(function(e){e.classList.add("tree-open-left")})),mmForEach(e,"ul.mm-submenu.tree li>a>i.mm-arrow",(function(e){e.classList.remove("mm-angle-down"),e.classList.remove("mm-angle-right"),e.classList.remove("mm-angle-left"),e.closest("li").querySelector(".mm-submenu")&&e.classList.add("mm-angle-left")})))}}}}catch(e){mmErrorLog(e)}},setTabbedSubmenuBoundries=function(e){try{if(e.closest(".horizontal-mega-menu")){allowMainMenuRecalibration&&setSubmenuBoundries(e.closest(".buddha-menu-item"));var t=e.querySelector(".mm-submenu:not(.hide-menu)");if(t){t.removeAttribute("style");var n=t.offsetHeight,m=0,o=e.offsetTop;mmForEachChild(e.parentElement,"LI",(function(e){m+=e.offsetHeight})),m>=n?(t.style.setProperty("height",m+"px","important"),e.parentElement.style.setProperty("height",m+"px","important")):e.parentElement.style.setProperty("height",n+"px","important"),t.style.setProperty("top","-"+o+"px","important")}else e.parentElement.style.setProperty("height","auto")}else{var a=e.closest(".vertical-mega-menu");if(a){var i=a.querySelector(".tab-opened");i&&i.classList.remove("tab-opened"),(t=e.querySelector(".mm-submenu:not(.hide-menu)"))&&(t.style.removeProperty("top"),t.style.removeProperty("height")),e.parentElement.style.removeProperty("height")}}}catch(e){mmErrorLog(e)}},setContactSubmenuBoundries=function(e,t,n){try{var m=window.innerWidth,o=1e3,a=e.querySelector("ul.mm-submenu.mm-contact:not(.hide-menu)");if(a)if(e.closest(".horizontal-mega-menu")){for(var i,r=mmParents(e.parentElement),u=0;u0&&(o=p)}if((1e3==o||m<=768)&&(o=0),!t||void 0===t)(i=e.getAttribute("submenu-size"))&&(t=i);if(!n||void 0===n)(i=e.getAttribute("submenu-direction"))&&(n=i);customHeaderOffset?o=customHeaderOffsetm&&(o=0);var s=m-2*o;("left"==n||"right"==n)&&m<768&&(n="auto");var c=e.getBoundingClientRect(),d=c.left,g=c.width,p=d+g/2,h=768;if(n&&void 0!==n&&"auto"!=n){if("right"==n){l=parseInt(window.getComputedStyle(e).getPropertyValue("padding-left")),f=0;(b=m-(d+l))b&&(s=b),a.style.left=-f+"px",a.style.width=s+"px",a.style.maxWidth=b+"px",a.style.minWidth=h+"px"}else if("left"==n){var b;v=0;(b=m-(m-(d+g)))b&&(s=b),a.style.right=-v+"px",a.style.width=s+"px",a.style.maxWidth=b+"px",a.style.minWidth=h+"px"}}else{var f,v;if(p.toggle-menu-btn");if(n||(n=o.querySelector("a>span>.toggle-menu-btn")),mmToggleButtonOnly&&null==t.closest(".toggle-menu-btn")&&(n=null),n){var m=o.querySelector("a");o.classList.contains("mm-hovering")&&null==t.closest(".toggle-menu-btn")&&"no-link"!=m.getAttribute("data-href")||(e.preventDefault(),e.stopPropagation(),toggleSubmenu(n))}else null!=t.closest(".buddha-menu-item")&&(null!=o.closest(".buddha-menu-item-countdown")?e.preventDefault():o.matches("li[item-type='link-list']")&&null==o.querySelector(".mm-list-name span[onclick]")?(e.preventDefault(),e.stopPropagation()):null!=o.closest(".mm-contact")||null==t.closest(".mm-add-to-cart")&&setTimeout((function(){if(!changingPage){var e=o.querySelector("a");e&&e.click()}}),200))}}else if(null!=t.closest(".horizontal-mega-menu li")){var o;if(o=t.closest("li"))if(o.matches(".buddha-menu-item"))if(o.classList.contains("mega-hover")||null==o.querySelector("ul.mm-submenu")){(m=o.querySelector("a"))&&mmGoToPage(m,e)}else{e.preventDefault(),e.stopPropagation(),mmForEach(document,".mega-hover",(function(e){e.classList.remove("mega-hover")})),o.classList.add("mega-hover"),setSubmenuBoundries(o),setContactSubmenuBoundries(o),mmLoadImages(o);var a=o.querySelector(".tab-opened");a&&(setTabbedSubmenuBoundries(a),mmLoadImages(a))}else if(o.parentNode.matches(".mm-submenu.tabbed")){if(null!=o.querySelector("ul.mm-submenu"))if(o.classList.contains("tab-opened"))(m=o.querySelector("a"))&&mmGoToPage(m,e);else e.preventDefault(),e.stopPropagation(),mmForEachChild(o.parentNode,"LI",(function(e){e.classList.remove("tab-opened")})),o.classList.add("tab-opened"),setTabbedSubmenuBoundries(o),setSubmenuBoundries(o.parentNode.parentNode),mmLoadImages(o)}else if(null!=o.closest(".mm-submenu.tree")&&null!=o.querySelector("ul.mm-submenu"))if(o.classList.contains("mega-hover")){(m=o.querySelector("a"))&&mmGoToPage(m,e)}else{e.preventDefault(),e.stopPropagation(),mmForEachChild(o.parentNode,"LI",(function(e){e.classList.remove("mega-hover")})),mmForEach(o,".mega-hover",(function(e){e.classList.remove("mega-hover")})),o.classList.add("mega-hover");for(var i=mmParents(o,"LI"),r=0;r>16&255)+.7152*(t>>8&255)+.0722*(t>>0&255)},LightenDarkenColor=function(e,t){var n=!1;"#"==e[0]&&(e=e.slice(1),n=!0);var m=parseInt(e,16),o=(m>>16)+t;o>255?o=255:o<0&&(o=0);var a=(m>>8&255)+t;a>255?a=255:a<0&&(a=0);var i=(255&m)+t;return i>255?i=255:i<0&&(i=0),(n?"#":"")+String("000000"+(i|a<<8|o<<16).toString(16)).slice(-6)},preloadBuddhaMegaMenu=function(){"undefined"!=typeof mmCustomerFixesBeforeLoad&&mmCustomerFixesBeforeLoad(),"function"==typeof jQueryBuddha&&("undefined"!=typeof loadFlipClockBuddha&&loadFlipClockBuddha(jQueryBuddha),"undefined"!=typeof loadLivIconsBuddha&&loadLivIconsBuddha(jQueryBuddha)),void 0!==loadBuddhaMegaMenu?loadBuddhaMegaMenu():setTimeout((function(){loadBuddhaMegaMenu()}),1e3)},loadJqueryBuddha=function(){var xhr=new XMLHttpRequest;xhr.onreadystatechange=function(){var done=void 0!==XMLHttpRequest.DONE?XMLHttpRequest.DONE:4;if(xhr.readyState==done){var data=xhr.responseText;window.jQueryBuddha=data.replace(/jQuery/g,"jQueryBuddha"),eval(jQueryBuddha),"undefined"!=typeof jQuery&&void 0!==jQuery.noConflict&&($=jQuery.noConflict()),preloadBuddhaMegaMenu()}},xhr.open("GET","https://code.jquery.com/jquery-3.5.1.slim.min.js",!0),xhr.send(null)},BuddhaMegaMenuMain=function(){if("undefined"!=typeof linkLists&&0==mmLivIcons&&0==mmFlipClock&&0==mmFixesUseJquery)preloadBuddhaMegaMenu();else if("undefined"==typeof jQuery||"undefined"!=typeof jQuery&&(null==jQuery||null!=jQuery&&(void 0===jQuery.fn||void 0!==jQuery.fn&&void 0===jQuery.fn.jquery)))loadJqueryBuddha();else{var e=jQuery.fn.jquery.split(".");1==parseInt(e[0])&&parseInt(e[1])>=7||parseInt(e[0])>1?(window.jQueryBuddha=jQuery,preloadBuddhaMegaMenu()):loadJqueryBuddha()}};if(mmSettingsPage)if("loading"!==document.readyState)BuddhaMegaMenuMain();else{var mmAppLoaded=!1;document.addEventListener("DOMContentLoaded",(function(){0==mmAppLoaded&&(mmAppLoaded=!0,BuddhaMegaMenuMain())})),setTimeout((function(){document.removeEventListener("DOMContentLoaded",BuddhaMegaMenuMain),0==mmAppLoaded&&(mmAppLoaded=!0,BuddhaMegaMenuMain())}),15e3)}else BuddhaMegaMenuMain()}