/*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ !function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('
');t&&s.append("

"+t+"

"),o&&s.append("

"+o+"

"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e(''):e(''),v=c.theme?e(''):e(''),c.theme&&h?(w='"):c.theme?(w='"):w=h?'':'',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}() ;var wc_add_to_cart_params={"ajax_url":"\/wp-admin\/admin-ajax.php","wc_ajax_url":"\/?wc-ajax=%%endpoint%%","i18n_view_cart":"Ver carrito","cart_url":"https:\/\/ataicr.com\/cart\/","is_cart":"","cart_redirect_after_add":"no"} ;jQuery(function(t){if("undefined"==typeof wc_add_to_cart_params)return!1;var a=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),this.$liveRegion=this.createLiveRegion(),t(document.body).on("click",".add_to_cart_button:not(.wc-interactive)",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",{addToCartHandler:this},this.onAddedToCart).on("removed_from_cart",{addToCartHandler:this},this.onRemovedFromCart).on("ajax_request_not_sent.adding_to_cart",this.updateButton)};a.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},a.prototype.run=function(){var a=this,e=a.requests[0].complete;a.requests[0].complete=function(){"function"==typeof e&&e(),a.requests.shift(),a.requests.length>0&&a.run()},t.ajax(this.requests[0])},a.prototype.onAddToCart=function(a){var e=t(this);if(e.is(".ajax_add_to_cart")){if(!e.attr("data-product_id"))return!0;if(a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),e.removeClass("added"),e.addClass("loading"),!1===t(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[e]))return t(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,e]),!0;var r={};t.each(e.data(),function(t,a){r[t]=a}),t.each(e[0].dataset,function(t,a){r[t]=a}),t(document.body).trigger("adding_to_cart",[e,r]),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:r,success:function(a){a&&(a.error&&a.product_url?window.location=a.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?t(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,e]):window.location=wc_add_to_cart_params.cart_url)},dataType:"json"})}},a.prototype.onRemoveFromCart=function(a){var e=t(this),r=e.closest(".woocommerce-mini-cart-item");a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),r.block({message:null,overlayCSS:{opacity:.6}}),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:e.data("cart_item_key")},success:function(a){a&&a.fragments?t(document.body).trigger("removed_from_cart",[a.fragments,a.cart_hash,e]):window.location=e.attr("href")},error:function(){window.location=e.attr("href")},dataType:"json"})},a.prototype.updateButton=function(a,e,r,d){if(d=void 0!==d&&d){if(d.removeClass("loading"),e&&d.addClass("added"),e&&!wc_add_to_cart_params.is_cart&&0===d.parent().find(".added_to_cart").length){var o=document.createElement("a");o.href=wc_add_to_cart_params.cart_url,o.className="added_to_cart wc-forward",o.title=wc_add_to_cart_params.i18n_view_cart,o.textContent=wc_add_to_cart_params.i18n_view_cart,d.after(o)}t(document.body).trigger("wc_cart_button_updated",[d])}},a.prototype.updateFragments=function(a,e){e&&(t.each(e,function(a){t(a).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),t.each(e,function(a,e){t(a).replaceWith(e),t(a).stop(!0).css("opacity","1").unblock()}),t(document.body).trigger("wc_fragments_loaded"))},a.prototype.alertCartUpdated=function(t,a,e,r){if(r=void 0!==r&&r){var d=r.data("success_message");if(!d)return;t.data.addToCartHandler.$liveRegion.delay(1e3).text(d).attr("aria-relevant","all")}},a.prototype.createLiveRegion=function(){var a=t(".widget_shopping_cart_live_region");return a.length?a:t('
').appendTo("body")},a.prototype.onAddedToCart=function(t,a,e,r){t.data.addToCartHandler.updateButton(t,a,e,r),t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},a.prototype.onRemovedFromCart=function(t,a,e,r){t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},new a}) ;/*! js-cookie v3.0.5 | MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t=0&&parseFloat(e(this).val())'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").append(''),e(".show-password-input").on("click",function(){e(this).hasClass("display-password")?e(this).removeClass("display-password"):e(this).addClass("display-password"),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password")}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})})}),document.addEventListener("DOMContentLoaded",on_document_ready) ;if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){document.getElementsByTagName('html')[0].className+=" no-touch"} ;!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js') ;fbq('init','721791943500032',{},{"agent":"woocommerce-9.6.0-3.3.2"});fbq('track','PageView',{"source":"woocommerce","version":"9.6.0","pluginVersion":"3.3.2"});document.addEventListener('DOMContentLoaded',function(){document.body.insertAdjacentHTML('beforeend','')},!1) ;if(window.$us===undefined){window.$us={}} $us.canvasOptions=($us.canvasOptions||{});$us.canvasOptions.disableEffectsWidth=900;$us.canvasOptions.columnsStackingWidth=600;$us.canvasOptions.backToTopDisplay=100;$us.canvasOptions.scrollDuration=1000;$us.langOptions=($us.langOptions||{});$us.langOptions.magnificPopup=($us.langOptions.magnificPopup||{});$us.langOptions.magnificPopup.tPrev='Previous (Left arrow key)';$us.langOptions.magnificPopup.tNext='Next (Right arrow key)';$us.langOptions.magnificPopup.tCounter='%curr% of %total%';$us.navOptions=($us.navOptions||{});$us.navOptions.mobileWidth=900;$us.navOptions.togglable=!0;$us.ajaxLoadJs=!0;$us.ajaxUrl='https://ataicr.com/wp-admin/admin-ajax.php';$us.templateDirectoryUri='https://ataicr.com/wp-content/themes/Impreza';$us.responsiveBreakpoints={"default":0,"laptops":1380,"tablets":1024,"mobiles":600} ;if(window.$us===undefined)window.$us={};$us.headerSettings={"default":{"options":{"custom_breakpoint":!1,"breakpoint":"","orientation":"hor","sticky":!0,"sticky_auto_hide":!1,"scroll_breakpoint":"1px","transparent":"","width":"300px","elm_align":"center","shadow":"thin","top_show":1,"top_height":"40px","top_sticky_height":"0px","top_fullwidth":1,"top_centering":!1,"top_bg_color":"#f6f6f8","top_text_color":"_content_heading","top_text_hover_color":"#1d72f2","top_transparent_bg_color":"_header_top_transparent_bg","top_transparent_text_color":"_header_top_transparent_text","top_transparent_text_hover_color":"_header_top_transparent_text_hover","middle_height":"90px","middle_sticky_height":"74px","middle_fullwidth":1,"middle_centering":1,"elm_valign":"top","bg_img":"","bg_img_wrapper_start":"","bg_img_size":"cover","bg_img_repeat":"repeat","bg_img_position":"top left","bg_img_attachment":!0,"bg_img_wrapper_end":"","middle_bg_color":"_header_middle_bg","middle_text_color":"_header_middle_text","middle_text_hover_color":"_footer_heading","middle_transparent_bg_color":"_header_transparent_bg","middle_transparent_text_color":"_header_transparent_text","middle_transparent_text_hover_color":"_header_transparent_bg","bottom_show":1,"bottom_height":"50px","bottom_sticky_height":"0px","bottom_fullwidth":1,"bottom_centering":!1,"bottom_bg_color":"_header_middle_text","bottom_text_color":"_chrome_toolbar","bottom_text_hover_color":"_header_middle_text_hover","bottom_transparent_bg_color":"_header_transparent_bg","bottom_transparent_text_color":"_header_transparent_text","bottom_transparent_text_hover_color":"_header_transparent_text_hover"},"layout":{"top_left":["socials:1"],"top_center":[],"top_right":["hwrapper:1"],"middle_left":["image:2","dropdown:1"],"middle_center":[],"middle_right":["hwrapper:2"],"bottom_left":["menu:1"],"bottom_center":[],"bottom_right":[],"hidden":["btn:3"],"hwrapper:1":["text:2","text:3","text:1"],"hwrapper:2":["html:1","cart:1","btn:1"]}},"laptops":{"options":{"custom_breakpoint":!1,"breakpoint":"1380px","orientation":"hor","sticky":!0,"sticky_auto_hide":!1,"scroll_breakpoint":"1px","transparent":!1,"width":"300px","elm_align":"center","shadow":"thin","top_show":1,"top_height":"40px","top_sticky_height":"40px","top_fullwidth":!1,"top_centering":!1,"top_bg_color":"_header_top_bg","top_text_color":"_header_top_text","top_text_hover_color":"_header_top_text_hover","top_transparent_bg_color":"_header_top_transparent_bg","top_transparent_text_color":"_header_top_transparent_text","top_transparent_text_hover_color":"_header_top_transparent_text_hover","middle_height":"120px","middle_sticky_height":"60px","middle_fullwidth":!1,"middle_centering":1,"elm_valign":"top","bg_img":"","bg_img_wrapper_start":"","bg_img_size":"cover","bg_img_repeat":"repeat","bg_img_position":"top left","bg_img_attachment":!0,"bg_img_wrapper_end":"","middle_bg_color":"_header_middle_bg","middle_text_color":"_header_middle_text","middle_text_hover_color":"_header_middle_text_hover","middle_transparent_bg_color":"_header_transparent_bg","middle_transparent_text_color":"_header_transparent_text","middle_transparent_text_hover_color":"_header_transparent_text_hover","bottom_show":!0,"bottom_height":"50px","bottom_sticky_height":"50px","bottom_fullwidth":!1,"bottom_centering":!1,"bottom_bg_color":"_header_middle_bg","bottom_text_color":"_header_middle_text","bottom_text_hover_color":"_header_middle_text_hover","bottom_transparent_bg_color":"_header_transparent_bg","bottom_transparent_text_color":"_header_transparent_text","bottom_transparent_text_hover_color":"_header_transparent_text_hover"},"layout":{"top_left":["socials:1"],"top_center":[],"top_right":["hwrapper:1"],"middle_left":["image:2","dropdown:1"],"middle_center":[],"middle_right":["hwrapper:2"],"bottom_left":["menu:1"],"bottom_center":[],"bottom_right":[],"hidden":["btn:3"],"hwrapper:1":["text:2","text:3","text:1"],"hwrapper:2":["html:1","cart:1","btn:1"]}},"tablets":{"options":{"custom_breakpoint":!1,"breakpoint":"1024px","orientation":"hor","sticky":!0,"sticky_auto_hide":!1,"scroll_breakpoint":"1px","transparent":!1,"width":"300px","elm_align":"center","shadow":"thin","top_show":!1,"top_height":"40px","top_sticky_height":"40px","top_fullwidth":!1,"top_centering":!1,"top_bg_color":"_header_top_bg","top_text_color":"_header_top_text","top_text_hover_color":"_header_top_text_hover","top_transparent_bg_color":"_header_top_transparent_bg","top_transparent_text_color":"_header_top_transparent_text","top_transparent_text_hover_color":"_header_top_transparent_text_hover","middle_height":"60px","middle_sticky_height":"60px","middle_fullwidth":!1,"middle_centering":!1,"elm_valign":"top","bg_img":"","bg_img_wrapper_start":"","bg_img_size":"cover","bg_img_repeat":"repeat","bg_img_position":"top left","bg_img_attachment":!0,"bg_img_wrapper_end":"","middle_bg_color":"_header_middle_bg","middle_text_color":"_header_middle_text","middle_text_hover_color":"_header_middle_text_hover","middle_transparent_bg_color":"_header_transparent_bg","middle_transparent_text_color":"_header_transparent_text","middle_transparent_text_hover_color":"_header_transparent_text_hover","bottom_show":!0,"bottom_height":"50px","bottom_sticky_height":"50px","bottom_fullwidth":!1,"bottom_centering":!1,"bottom_bg_color":"_header_middle_bg","bottom_text_color":"_header_middle_text","bottom_text_hover_color":"_header_middle_text_hover","bottom_transparent_bg_color":"_header_transparent_bg","bottom_transparent_text_color":"_header_transparent_text","bottom_transparent_text_hover_color":"_header_transparent_text_hover"},"layout":{"top_left":[],"top_center":[],"top_right":[],"middle_left":["image:2","dropdown:1"],"middle_center":[],"middle_right":[],"bottom_left":["menu:1"],"bottom_center":[],"bottom_right":["hwrapper:2"],"hidden":["hwrapper:1"],"hwrapper:1":["socials:1","text:2","text:3","text:1","btn:3"],"hwrapper:2":["html:1","cart:1","btn:1"]}},"mobiles":{"options":{"custom_breakpoint":!1,"breakpoint":"600px","orientation":"hor","sticky":!0,"sticky_auto_hide":!1,"scroll_breakpoint":"1px","transparent":!1,"width":"300px","elm_align":"center","shadow":"thin","top_show":!1,"top_height":"40px","top_sticky_height":"40px","top_fullwidth":!1,"top_centering":!1,"top_bg_color":"_header_top_bg","top_text_color":"_header_top_text","top_text_hover_color":"_header_top_text_hover","top_transparent_bg_color":"_header_top_transparent_bg","top_transparent_text_color":"_header_top_transparent_text","top_transparent_text_hover_color":"_header_top_transparent_text_hover","middle_height":"50px","middle_sticky_height":"0px","middle_fullwidth":!1,"middle_centering":1,"elm_valign":"top","bg_img":"","bg_img_wrapper_start":"","bg_img_size":"cover","bg_img_repeat":"repeat","bg_img_position":"top left","bg_img_attachment":!0,"bg_img_wrapper_end":"","middle_bg_color":"_header_middle_bg","middle_text_color":"_header_middle_text","middle_text_hover_color":"_header_middle_text_hover","middle_transparent_bg_color":"_header_transparent_bg","middle_transparent_text_color":"_header_transparent_text","middle_transparent_text_hover_color":"_header_transparent_text_hover","bottom_show":!0,"bottom_height":"50px","bottom_sticky_height":"50px","bottom_fullwidth":!1,"bottom_centering":!1,"bottom_bg_color":"_header_middle_bg","bottom_text_color":"_header_middle_text","bottom_text_hover_color":"_header_middle_text_hover","bottom_transparent_bg_color":"_header_transparent_bg","bottom_transparent_text_color":"_header_transparent_text","bottom_transparent_text_hover_color":"_header_transparent_text_hover"},"layout":{"top_left":[],"top_center":[],"top_right":[],"middle_left":["dropdown:1"],"middle_center":[],"middle_right":["image:2"],"bottom_left":["menu:1"],"bottom_center":[],"bottom_right":["hwrapper:2"],"hidden":["hwrapper:1"],"hwrapper:1":["socials:1","text:2","text:3","text:1","btn:3"],"hwrapper:2":["html:1","cart:1","btn:1"]}},"header_id":"6"} ;var cffajaxurl="https://ataicr.com/wp-admin/admin-ajax.php";var cfflinkhashtags="true" ;(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2";fjs.parentNode.insertBefore(js,fjs)}(document,'script','facebook-jssdk')) ;window.addEventListener('sfsi_functions_loaded',function(){if(typeof sfsi_responsive_toggle=='function'){sfsi_responsive_toggle(0)}}) ;window.addEventListener('sfsi_functions_loaded',function(){if(typeof sfsi_plugin_version=='function'){sfsi_plugin_version(2.77)}});function sfsi_processfurther(ref){var feed_id='a2lmTmszY1Fya3VwdnlHa09ycThtUngxZUxDTW0rdWdpSUxjVS9pREhoVU5UblBINHUyWlU1Q3EzZ0JEQkZGWUs4UHlFK1ZOWnppVHpYUXdTOFBBOTlhakZtdkxqSHBVTlUrbVNnVm1raENoa0hsR3hpOElycWkvNlZIRG5kMUJ8Y1JzRWVSS25mcmxWaTRTWDVkak82Y1UxYTNNdHBMbHFKQWo1Rll4N29uVT0=';var feedtype=8;var email=jQuery(ref).find('input[name="email"]').val();var filter=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if((email!="Enter your email")&&(filter.test(email))){if(feedtype=="8"){var url="https://api.follow.it/subscription-form/"+feed_id+"/"+feedtype;window.open(url,"popupwindow","scrollbars=yes,width=1080,height=760");return!0}}else{alert("Please enter email address");jQuery(ref).find('input[name="email"]').focus();return!1}} ; ;var sbiajaxurl="https://ataicr.com/wp-admin/admin-ajax.php" ;(function(){var c=document.body.className;c=c.replace(/woocommerce-no-js/,'woocommerce-js');document.body.className=c})() ;/*! This file is auto-generated */ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>P,addAction:()=>A,addFilter:()=>m,applyFilters:()=>w,applyFiltersAsync:()=>I,createHooks:()=>h,currentAction:()=>x,currentFilter:()=>T,defaultHooks:()=>f,didAction:()=>j,didFilter:()=>z,doAction:()=>g,doActionAsync:()=>k,doingAction:()=>O,doingFilter:()=>S,filters:()=>Z,hasAction:()=>_,hasFilter:()=>v,removeAction:()=>p,removeAllActions:()=>F,removeAllFilters:()=>b,removeFilter:()=>y});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=a:t.splice(e,0,a),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[a],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n,r){return function(o,...i){const s=t[e];s[o]||(s[o]={handlers:[],runs:0}),s[o].runs++;const c=s[o].handlers;if(!c||!c.length)return n?i[0]:void 0;const l={name:o,currentIndex:0};return(r?async function(){try{s.__current.add(l);let t=n?i[0]:void 0;for(;l.currentIndex0:Array.from(r.__current).some((t=>t.name===n))}};const u=function(t,e){return function(n){const o=t[e];if(r(n))return o[n]&&o[n].runs?o[n].runs:0}};class d{constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=i(this,"actions"),this.removeFilter=i(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=i(this,"actions",!0),this.removeAllFilters=i(this,"filters",!0),this.doAction=c(this,"actions",!1,!1),this.doActionAsync=c(this,"actions",!1,!0),this.applyFilters=c(this,"filters",!0,!1),this.applyFiltersAsync=c(this,"filters",!0,!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=a(this,"actions"),this.doingFilter=a(this,"filters"),this.didAction=u(this,"actions"),this.didFilter=u(this,"filters")}}const h=function(){return new d},f=h(),{addAction:A,addFilter:m,removeAction:p,removeFilter:y,hasAction:_,hasFilter:v,removeAllActions:F,removeAllFilters:b,doAction:g,doActionAsync:k,applyFilters:w,applyFiltersAsync:I,currentAction:x,currentFilter:T,doingAction:O,doingFilter:S,didAction:j,didFilter:z,actions:P,filters:Z}=f;(window.wp=window.wp||{}).hooks=e})() ;/*! This file is auto-generated */ (()=>{var t={2058:(t,e,r)=>{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,o,s,l,u,p,c,f,d=1,h=t.length,g="";for(n=0;n=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,l=s.width&&p>0?u.repeat(p):"",g+=s.align?f+r+l:"0"===u?f+l+r:l+f+r)}return g}(function(t){if(s[t])return s[t];var e,r=t,n=[],a=0;for(;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var o=[],l=e[2],u=[];if(null===(u=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=i.key_access.exec(l)))o.push(u[1]);else{if(null===(u=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function o(t,e){return a.apply(null,[t].concat(e||[]))}var s=Object.create(null);e.sprintf=a,e.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(e,r,e,t))||(t.exports=n))}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__:()=>F,_n:()=>j,_nx:()=>L,_x:()=>S,createI18n:()=>x,defaultI18n:()=>_,getLocaleData:()=>v,hasTranslation:()=>D,isRTL:()=>T,resetLocaleData:()=>w,setLocaleData:()=>m,sprintf:()=>a,subscribe:()=>k});var t=r(2058),e=r.n(t);const i=function(t,e){var r,n,i=0;function a(){var a,o,s=r,l=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(o=0;o":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],l={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var p={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};function c(t){var e=function(t){for(var e,r,n,i,a=[],p=[];e=t.match(u);){for(r=e[0],(n=t.substr(0,e.index).trim())&&a.push(n);i=p.pop();){if(l[r]){if(l[r][0]===i){r=l[r][1]||r;break}}else if(s.indexOf(i)>=0||o[i]1===t?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,x=(t,e,r)=>{const n=new d({}),i=new Set,a=()=>{i.forEach((t=>t()))},o=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...h,...n.data[e]?.[""]},delete n.pluralForms[e]},s=(t,e)=>{o(t,e),a()},l=(t="default",e,r,i,a)=>(n.data[t]||o(void 0,t),n.dcnpgettext(t,e,r,i,a)),u=(t="default")=>t,p=(t,e,n)=>{let i=l(n,e,t);return r?(i=r.applyFilters("i18n.gettext_with_context",i,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),i,t,e,n)):i};if(t&&s(t,e),r){const t=t=>{g.test(t)&&a()};r.addAction("hookAdded","core/i18n",t),r.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:s,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...h,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],a()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},s(t,e)},subscribe:t=>(i.add(t),()=>i.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:p,_n:(t,e,n,i)=>{let a=l(i,void 0,t,e,n);return r?(a=r.applyFilters("i18n.ngettext",a,t,e,n,i),r.applyFilters("i18n.ngettext_"+u(i),a,t,e,n,i)):a},_nx:(t,e,n,i,a)=>{let o=l(a,i,t,e,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,t,e,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+u(a),o,t,e,n,i,a)):o},isRTL:()=>"rtl"===p("ltr","text direction"),hasTranslation:(t,e,i)=>{const a=e?e+""+t:t;let o=!!n.data?.[null!=i?i:"default"]?.[a];return r&&(o=r.applyFilters("i18n.has_translation",o,t,e,i),o=r.applyFilters("i18n.has_translation_"+u(i),o,t,e,i)),o}}},y=window.wp.hooks,b=x(void 0,void 0,y.defaultHooks),_=b,v=b.getLocaleData.bind(b),m=b.setLocaleData.bind(b),w=b.resetLocaleData.bind(b),k=b.subscribe.bind(b),F=b.__.bind(b),S=b._x.bind(b),j=b._n.bind(b),L=b._nx.bind(b),T=b.isRTL.bind(b),D=b.hasTranslation.bind(b)})(),(window.wp=window.wp||{}).i18n=n})() ;wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']}) ;(()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{add_to_cart:()=>w,begin_checkout:()=>f,purchase:()=>b,remove_from_cart:()=>g,search:()=>v,select_content:()=>y,view_item:()=>h,view_item_list:()=>p});const o=window.wp.i18n,n=window.wp.hooks,c=(t,e)=>{var o;const n={};t.variation&&(n.item_variant=t.variation);const c={item_id:d(t),item_name:t.name,...u(t),quantity:null!==(o=t.quantity)&&void 0!==o?o:e,price:i(t.totals?.line_total||t.prices.price,t.prices.currency_minor_unit),...n};return t?.price_after_coupon_discount({item_id:d(t),item_name:t.name,item_list_name:e,...u(t),price:i(t.prices.price,t.prices.currency_minor_unit)}),i=(t,e=2)=>parseInt(t,10)/10**e,a=(t,e,o)=>{(0,n.removeAction)(t,e),(0,n.addAction)(t,e,o)},d=t=>{const e=t.extensions?.woocommerce_google_analytics_integration?.identifier;return void 0!==e?e:"product_sku"===window.ga4w?.settings?.identifier?t.sku?t.sku:"#"+t.id:t.id},s=t=>t.coupons[0]?.code?{coupon:t.coupons[0]?.code}:{},u=t=>"categories"in t&&t.categories.length?_(t.categories):{},_=t=>Object.fromEntries(t.slice(0,5).map(((t,e)=>[m(e),t.name]))),m=t=>"item_category"+(t>0?t+1:""),l=(t,e,o)=>{var n;return null!==(n=e?.find((({id:e})=>e===t)))&&void 0!==n?n:o?.items?.find((({id:e})=>e===t))},p=({products:t,listName:e=(0,o.__)("Product List","woocommerce-google-analytics-integration")})=>0!==t.length&&{item_list_id:"engagement",item_list_name:(0,o.__)("Viewing products","woocommerce-google-analytics-integration"),items:t.map(((t,o)=>({...r(t,e),index:o+1})))},w=({product:t,quantity:e=1})=>({items:t?[c(t,e)]:[]}),g=({product:t,quantity:e=1})=>({items:t?[c(t,e)]:[]}),f=({storeCart:t})=>({currency:t.totals.currency_code,value:i(t.totals.total_price,t.totals.currency_minor_unit),...s(t),items:t.items.map(c)}),y=({product:t})=>!!t&&{content_type:"product",content_id:d(t)},v=({searchTerm:t})=>({search_term:t}),h=({product:t,listName:e=(0,o.__)("Product List","woocommerce-google-analytics-integration")})=>!!t&&{items:[r(t,e)]},b=({order:t})=>void 0!==t&&{transaction_id:t.id,affiliation:t.affiliation,currency:t.totals.currency_code,value:i(t.totals.total_price,t.totals.currency_minor_unit),tax:i(t.totals.tax_total,t.totals.currency_minor_unit),shipping:i(t.totals.shipping_total,t.totals.currency_minor_unit),items:t.items.map(c)},k="woocommerce-google-analytics",A="experimental__woocommerce_blocks";(0,n.removeAction)(`${A}-checkout-submit`,k),(0,n.removeAction)(`${A}-checkout-set-email-address`,k),(0,n.removeAction)(`${A}-checkout-set-phone-number`,k),(0,n.removeAction)(`${A}-checkout-set-billing-address`,k),(0,n.removeAction)(`${A}-cart-set-item-quantity`,k),(0,n.removeAction)(`${A}-product-search`,k),(0,n.removeAction)(`${A}-store-notice-create`,k);const E={statistics:["analytics_storage"],marketing:["ad_storage","ad_user_data","ad_personalization"]};function C(){(({tracker_function_name:t})=>{if("function"==typeof wp_has_consent){void 0===window.wp_consent_type&&(window.wp_consent_type="optin");const e={};for(const[t,o]of Object.entries(E))if(""!==consent_api_get_cookie(window.consent_api.cookie_prefix+"_"+t)){const n=wp_has_consent(t)?"granted":"denied";o.forEach((t=>{e[t]=n}))}Object.keys(e).length>0&&window[t]("consent","update",e)}})(window.ga4w.settings),(({tracker_function_name:t})=>{document.addEventListener("wp_listen_for_consent_change",(e=>{const o={},n=E[Object.keys(e.detail)[0]],c="allow"===Object.values(e.detail)[0]?"granted":"denied";void 0!==n&&(n.forEach((t=>{o[t]=c})),Object.keys(o).length>0&&window[t]("consent","update",o))}))})(window.ga4w.settings);const t=function({events:t,tracker_function_name:o}){return function(n){const c=e[n];if("function"!=typeof c)throw new Error(`Event ${n} is not supported.`);return function(e){const r=c(e);t.includes(n)&&r&&window[o]("event",n,r)}}}(window.ga4w.settings);!function(t,{events:e,cart:o,products:n,product:c,added_to_cart:r,order:i}){Object.values(null!=e?e:{}).forEach((e=>{"add_to_cart"===e?t(e)({product:r}):t(e)({storeCart:o,products:n,product:c,order:i})}));const a=document.body.onadded_to_cart;document.body.onadded_to_cart=function(e,r,i,d){"function"==typeof a&&a.apply(this,arguments);const s=parseInt(d?.[0]?.dataset.product_id||d?.[0]?.value);if(Number.isNaN(s))throw new Error("Google Analytics for WooCommerce: Could not read product ID from the button given in `added_to_cart` event. Check whether WooCommerce Core events or elements are malformed by other extensions.");const u=c?.id===s?c:l(s,n,o);u&&t("add_to_cart")({product:u})};const d=()=>{document.querySelectorAll(".woocommerce-cart-form .woocommerce-cart-form__cart-item .remove[data-product_id]").forEach((t=>t.addEventListener("click",s)))};function s(e){const c=parseInt(e.target?.dataset.product_id);if(Number.isNaN(c))throw new Error("Google Analytics for WooCommerce: Could not read product ID from the target element given to remove from cart event. Check whether WooCommerce Core events or elements are malformed by other extensions.");t("remove_from_cart")({product:l(c,n,o)})}d();const u=document.body.onupdated_wc_div;document.body.onupdated_wc_div=function(){"function"==typeof u&&u.apply(this,arguments),d()};const _=document.body.onremoved_from_cart;document.body.onremoved_from_cart=function(t,e,o,n){"function"==typeof _&&_.apply(this,arguments),s({target:n?.[0]})},document.querySelectorAll(".products .product:not(.wp-block-post)")?.forEach((e=>{const c=e.querySelector("a[data-product_id]")?.getAttribute("data-product_id");c&&e.addEventListener("click",(e=>{const r=e.target.closest(".woocommerce-loop-product__link"),i=e.target.classList.contains("button")&&e.target.hasAttribute("data-product_id"),a=e.target.classList.contains("add_to_cart_button")&&!e.target.classList.contains("product_type_variable");(r||i&&!a)&&t("select_content")({product:l(parseInt(c),n,o)})}))})),document.querySelectorAll(".products-block-post-template .product, .wc-block-product-template .product")?.forEach((e=>{const c=e.querySelector("[data-product_id]")?.getAttribute("data-product_id");c&&e.addEventListener("click",(e=>{const r=e.target,i=r.closest(".wc-block-components-product-image a"),a=r.closest(".wp-block-post-title a"),d=r.closest(".wc-block-components-product-button [data-product_id]");d&&d.classList.contains("add_to_cart_button")&&!d.classList.contains("product_type_variable")?t("add_to_cart")({product:l(parseInt(c),n,o)}):(i||d||a)&&t("select_content")({product:l(parseInt(c),n,o)})}))}))}(t,window.ga4w.data),(t=>{a(`${A}-product-render`,k,t("view_item")),a(`${A}-cart-remove-item`,k,t("remove_from_cart")),a(`${A}-checkout-render-checkout-form`,k,t("begin_checkout")),a(`${A}-cart-add-item`,k,(({product:e})=>{t("add_to_cart")({product:e})})),a(`${A}-product-list-render`,k,t("view_item_list")),a(`${A}-product-view-link`,k,t("select_content"))})(t)}function $(){window.ga4w||console.warn("Google Analytics for WooCommerce: Configuration and tracking data not found after the page was fully loaded. Make sure the `woocommerce-google-analytics-integration-data` script gets eventually loaded.")}window.ga4w?C():(document.addEventListener("ga4w:ready",C),"complete"===document.readyState?$():window.addEventListener("load",$))})() ;(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?[a-z][-a-z0-9_:]*)(?(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&6t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?[a-z]+)\/(?[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).lengtht.trim())).filter((t=>""!==t));if(parseInt(this.threshold)t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&it.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&tt.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold{t instanceof File&&(i+=t.size)})),i{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})() ;var wpcf7={"api":{"root":"https:\/\/ataicr.com\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":1} ;(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`${a}`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})() ;/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}) ;/*! jQuery UI - v1.13.3 - 2024-04-26 * https://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3", /*! * jQuery UI :data 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}), /*! * jQuery UI Disable Selection 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), /*! * jQuery UI Focusable 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)}, /*! * jQuery UI Form Reset Mixin 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), /*! * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license * */ x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}), /*! * jQuery UI Keycode 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}, /*! * jQuery UI Labels 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o
")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0o?0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o',a,""].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.csstransforms=function(){return!!F("transform")},q.csstransforms3d=function(){var a=!!F("perspective");return a&&"webkitPerspective"in g.style&&w("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},q.csstransitions=function(){return F("transition")};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,e.prefixed=function(a,b,c){return b?F(a,b,c):F(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document) ;!function(t){"function"==typeof define&&define.amd?define(["jquery","modernizr"],t):t(window.jQuery,window.Modernizr)}(function(t,i,e){"use strict";if("object"!=typeof i)throw new Error("Shuffle.js requires Modernizr.\nhttp://vestride.github.io/Shuffle/#dependencies");var s,n=i.prefixed("transition"),r=i.prefixed("transitionDelay"),o=i.prefixed("transitionDuration"),a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],l=i.prefixed("transform"),h=(s=l)?s.replace(/([A-Z])/g,function(t,i){return"-"+i.toLowerCase()}).replace(/^ms-/,"-ms-"):"",u=i.csstransforms&&i.csstransitions,f=i.csstransforms3d;var d=0,c=function(i,e){e=e||{},t.extend(this,c.options,e,c.settings),this.$el=t(i),this.$window=t(window),this.unique="shuffle_"+d++,this._fire(c.EventType.LOADING),this._init(),setTimeout(t.proxy(function(){this.initialized=!0,this._fire(c.EventType.DONE)},this),16)};return c.EventType={LOADING:"loading",DONE:"done",SHRINK:"shrink",SHRUNK:"shrunk",FILTER:"filter",FILTERED:"filtered",SORTED:"sorted",LAYOUT:"layout",REMOVED:"removed"},c.prototype={_init:function(){var i,e,s=this,r=t.proxy(s._onResize,s),o=s.throttle?s.throttle(r,s.throttleTime):r,a=s.initialSort?s.initialSort:null;s._layoutList=[],s._shrinkList=[],s._setVars(),s._resetCols(),s._addClasses(),s._initItems(),s.$window.on("resize.shuffle."+s.unique,o),i=s.$el.css(["paddingLeft","paddingRight","position"]),e=s._getOuterWidth(s.$el[0]),"static"===i.position&&(s.$el[0].style.position="relative"),s.offset={left:parseInt(i.paddingLeft,10)||0,top:parseInt(i.paddingTop,10)||0},s._setColumns(parseInt(e,10)),s.shuffle(s.group,a),s.supported&&setTimeout(function(){s._setTransitions(),s.$el[0].style[n]="height "+s.speed+"ms "+s.easing},0)},_addClasses:function(){this.$el.addClass("shuffle"),this.$items.addClass("shuffle-item filtered")},_setVars:function(){var i=this.columnWidth;this.$items=this._getItems(),0===i&&null!==this.sizer&&(i=this.sizer),"string"==typeof i?this.$sizer=this.$el.find(i):i&&i.nodeType&&1===i.nodeType?this.$sizer=t(i):i&&i.jquery&&(this.$sizer=i),this.$sizer&&this.$sizer.length&&(this.useSizer=!0,this.sizer=this.$sizer[0])},_filter:function(i,s){var n=this,r=s!==e?s:n.$items,o=t();return i=i||n.lastFilter,n._fire(c.EventType.FILTER),t.isFunction(i)?r.each(function(){var e=t(this);i.call(e[0],e,n)&&(o=o.add(e))}):(n.group=i,"all"===i?o=r:r.each(function(){var e=t(this),s=e.data("groups"),r=n.delimeter&&!t.isArray(s)?s.split(n.delimeter):s;t.inArray(i,r)>-1&&(o=o.add(e))})),n._toggleFilterClasses(r,o),r=null,s=null,o},_toggleFilterClasses:function(i,e){i.filter(e).each(function(){var i=t(this);i.hasClass("concealed")&&i.removeClass("concealed"),i.hasClass("filtered")||i.addClass("filtered")}),i.not(e).each(function(){var i=t(this);i.hasClass("concealed")||i.addClass("concealed"),i.hasClass("filtered")&&i.removeClass("filtered")})},_initItems:function(t){(t=t||this.$items).css(this.itemCss).data("position",{x:0,y:0})},_updateItemCount:function(){this.visibleItems=this.$items.filter(".filtered").length},_setTransition:function(t){t.style[n]=h+" "+this.speed+"ms "+this.easing},_setTransitions:function(t){var i=this;(t=t||i.$items).each(function(){i._setTransition(this)})},_setSequentialDelay:function(i){var e=this;e.supported&&t.each(i,function(i,s){s.style[r]="0ms,"+(i+1)*e.sequentialFadeDelay+"ms",t(s).on(a+"."+e.unique,function(i){var s=i.currentTarget;s===i.target&&(s.style[r]="0ms",t(s).off(a+"."+e.unique))})})},_getItems:function(){return this.$el.children(this.itemSelector)},_getPreciseDimension:function(i,e){var s;return s=window.getComputedStyle?window.getComputedStyle(i,null)[e]:t(i).css(e),parseFloat(s)},_getOuterWidth:function(i,e){var s=i.offsetWidth;if(e){var n=t(i).css(["marginLeft","marginRight"]);s+=(parseFloat(n.marginLeft)||0)+(parseFloat(n.marginRight)||0)}return s},_getOuterHeight:function(i,e){var s=i.offsetHeight;if(e){var n=t(i).css(["marginTop","marginBottom"]);s+=(parseFloat(n.marginTop)||0)+(parseFloat(n.marginBottom)||0)}return s},_getColumnSize:function(i,e){var s;return 0===(s=t.isFunction(this.columnWidth)?this.columnWidth(e):this.useSizer?this._getPreciseDimension(this.sizer,"width"):this.columnWidth?this.columnWidth:this.$items.length>0?this._getOuterWidth(this.$items[0],!0):e)&&(s=e),s+i},_getGutterSize:function(i){return t.isFunction(this.gutterWidth)?this.gutterWidth(i):this.useSizer?this._getPreciseDimension(this.sizer,"marginLeft"):this.gutterWidth},_setColumns:function(t){var i=t||this._getOuterWidth(this.$el[0]),e=this._getGutterSize(i),s=this._getColumnSize(e,i),n=(i+e)/s;Math.abs(Math.round(n)-n)<.03&&(n=Math.round(n)),this.cols=Math.max(Math.floor(n),1),this.containerWidth=i,this.colWidth=s},_setContainerSize:function(){this.$el.css("height",Math.max.apply(Math,this.colYs))},_fire:function(t,i){this.$el.trigger(t+".shuffle",i&&i.length?i:[this])},_layout:function(i,e,s){var n=this;e=e||n._filterEnd,t.each(i,function(i,r){var o=t(r),a=o.data(),l=a.position,h=n._getItemPosition(o);if(o.data("position",h),h.x!==l.x||h.y!==l.y||1!==a.scale){var u={$item:o,x:h.x,y:h.y,scale:1};s?(u.skipTransition=!0,u.opacity=0):(u.opacity=1,u.callback=e),n.styleQueue.push(u),n._layoutList.push(o[0])}}),n._processStyleQueue(),n._setContainerSize()},_resetCols:function(){var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0)},_reLayout:function(){this._resetCols(),this.lastSort?this.sort(this.lastSort,!0):this._layout(this.$items.filter(".filtered").get(),this._filterEnd)},_getItemPosition:function(t){var i=this._getOuterWidth(t[0],!0)/this.colWidth;Math.abs(Math.round(i)-i)<.03&&(i=Math.round(i));var e=Math.min(Math.ceil(i),this.cols);if(1===e)return this._placeItem(t,this.colYs);var s,n,r=this.cols+1-e,o=[];for(n=0;n=e-this.buffer&&i[n]<=e+this.buffer){s=n;break}var o={x:Math.round(this.colWidth*s+this.offset.left),y:Math.round(e+this.offset.top)},a=e+this._getOuterHeight(t[0],!0),l=this.cols+1-r;for(n=0;n0&&t.inArray(e,this._layoutList)>-1?(this._fire(c.EventType.LAYOUT),i.call(this),this._layoutList.length=0):this._shrinkList.length>0&&t.inArray(e,this._shrinkList)>-1&&(i.call(this),this._shrinkList.length=0),s||(e.style.visibility="hidden")},_processStyleQueue:function(){var i=this;t.each(this.styleQueue,function(t,e){e.skipTransition?i._skipTransition(e.$item[0],function(){e.$item.css(i._getStylesForTransition(e))}):i._transition(e)}),i.styleQueue.length=0},_shrinkEnd:function(){this._fire(c.EventType.SHRUNK)},_filterEnd:function(){this._fire(c.EventType.FILTERED)},_sortEnd:function(){this._fire(c.EventType.SORTED)},_skipTransition:function(i,e,s){var n=i.style[o];i.style[o]="0ms",t.isFunction(e)?e():i.style[e]=s;i.offsetWidth;i.style[o]=n},_addItems:function(t,i,s){this.supported||(i=!1),t.addClass("shuffle-item"),this._initItems(t),this._setTransitions(t),this.$items=this._getItems(),t.css("opacity",0);var n=this._filter(e,t),r=n.get();this._updateItemCount(),i?(this._layout(r,null,!0),s&&this._setSequentialDelay(n),this._revealAppended(n)):this._layout(r)},_revealAppended:function(i){var e=this;setTimeout(function(){i.each(function(i,s){e._transition({$item:t(s),opacity:1,scale:1})})},e.revealAppendedDelay)},shuffle:function(t,i){this.enabled&&(t||(t="all"),this._filter(t),this.lastFilter=t,this._updateItemCount(),this._shrink(),i&&(this.lastSort=i),this._reLayout())},sort:function(t,i){var e=this,s=e.$items.filter(".filtered").sorted(t);i||e._resetCols(),e._layout(s,function(){i&&e._filterEnd(),e._sortEnd()}),e.lastSort=t},resized:function(t){this.enabled&&(t||this._setColumns(),this._reLayout())},layout:function(){this.update(!0)},update:function(t){this.resized(t)},appended:function(t,i,e){i=!1!==i,e=!1!==e,this._addItems(t,i,e)},disable:function(){this.enabled=!1},enable:function(t){this.enabled=!0,!1!==t&&this.update()},remove:function(t){if(t.length&&t.jquery){return this._shrink(t,function(){var i=this;t.remove(),setTimeout(function(){i.$items=i._getItems(),i.layout(),i._updateItemCount(),i._fire(c.EventType.REMOVED,[t,i]),t=null},0)}),this._processStyleQueue(),this}},destroy:function(){this.$window.off("."+this.unique),this.$el.removeClass("shuffle").removeAttr("style").removeData("shuffle"),this.$items.removeAttr("style").removeClass("concealed filtered shuffle-item"),this.$window=null,this.$items=null,this.$el=null,this.$sizer=null,this.sizer=null,this.destroyed=!0}},c.options={group:"all",speed:250,easing:"ease-out",itemSelector:"",sizer:null,gutterWidth:0,columnWidth:0,delimeter:null,buffer:0,initialSort:null,throttle:function(i,e,s){var n,r,o,a=null,l=0;s=s||{};var h=function(){l=!1===s.leading?0:t.now(),a=null,o=i.apply(n,r),n=r=null};return function(){var u=t.now();l||!1!==s.leading||(l=u);var f=e-(u-l);return n=this,r=arguments,f<=0||f>e?(clearTimeout(a),a=null,l=u,o=i.apply(n,r),n=r=null):a||!1===s.trailing||(a=setTimeout(h,f)),o}},throttleTime:300,sequentialFadeDelay:150,supported:u},c.settings={$sizer:null,useSizer:!1,itemCss:{position:"absolute",top:0,left:0},offset:{top:0,left:0},revealAppendedDelay:300,enabled:!0,destroyed:!1,initialized:!1,styleQueue:[]},t.fn.shuffle=function(i){var e=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),n=s.data("shuffle");n||(n=new c(s,i),s.data("shuffle",n)),"string"==typeof i&&n[i]&&n[i].apply(n,e)})},t.fn.sorted=function(i){var s=t.extend({},t.fn.sorted.defaults,i),n=this.get(),r=!1;return n.length?s.randomize?t.fn.sorted.randomize(n):(s.by!==t.noop&&null!==s.by&&s.by!==e&&n.sort(function(i,n){if(r)return 0;var o=s.by(t(i)),a=s.by(t(n));return o===e&&a===e?(r=!0,0):"sortFirst"===o||"sortLast"===a?-1:"sortLast"===o||"sortFirst"===a?1:oa?1:0}),r?this.get():(s.reverse&&n.reverse(),n)):[]},t.fn.sorted.defaults={reverse:!1,by:null,randomize:!1},t.fn.sorted.randomize=function(t){var i,e,s=t.length;if(!s)return t;for(;--s;)i=t[e=Math.floor(Math.random()*(s+1))],t[e]=t[s],t[s]=i;return t},c}) ;window.Manipulator=function(e){"use strict";var t=window.console&&typeof window.console.log==="function";var n=function(t){var n=this;n.$el=e(t);n.init()};n.prototype.init=function(){var e=this;e.initShuffle();e.setupEvents()};n.prototype.initShuffle=function(){this.$el.shuffle({itemSelector:".shuffeldiv",speed:250,easing:"ease",columnWidth:function(t){return parseInt(e(".shuffeldiv").css("width"))},gutterWidth:function(t){return parseInt(e(".shuffeldiv").css("margin-left"))}});this.shuffle=this.$el.data("shuffle")};n.prototype.setupEvents=function(){var n=this;e("#sfsi_wDiv").on("click",e.proxy(n.onRandomize,n));n.$el.on("removed.shuffle",function(e,n,r){if(!t){return}})};n.prototype.onAddClick=function(){var t=this,n=5,r=document.createDocumentFragment(),i=t.$el[0],s=[],o,u=["w2","h2","w3"],a,f,l,c;for(f=0;f.8){c=Math.floor(Math.random()*3);a.className=a.className+" "+u[c]}s.push(a);r.appendChild(a)}i.appendChild(r);o=e(s);t.shuffle.appended(o)};n.prototype.getRandomInt=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};n.prototype.onRemoveClick=function(){var t=this,n=t.shuffle.visibleItems,r=Math.min(3,n),i=[],s=0,o=e();if(!n){return}for(;s."+t).html(i),SFSI(".tab"+e+">."+t).show(),SFSI(".tab"+e+">."+t).effect("highlight",{},5e3),setTimeout(function(){SFSI("."+t).slideUp("slow")},5e3),!1} function beForeLoad(){SFSI(".loader-img").show(),SFSI(".save_button >a").html("Saving..."),SFSI(".save_button >a").css("pointer-events","none")} function sfsi_make_popBox(){var s=0;SFSI(".sfsi_sample_icons >li").each(function(){"none"!=SFSI(this).css("display")&&(s=1)}),0==s?SFSI(".sfsi_Popinner").hide():SFSI(".sfsi_Popinner").show(),""!=SFSI('input[name="sfsi_popup_text"]').val()?(SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()),SFSI(".sfsi_Popinner >h2").show()):SFSI(".sfsi_Popinner >h2").hide(),SFSI(".sfsi_Popinner").css({"border-color":SFSI('input[name="sfsi_popup_border_color"]').val(),"border-width":SFSI('input[name="sfsi_popup_border_thickness"]').val(),"border-style":"solid"}),SFSI(".sfsi_Popinner").css("background-color",SFSI('input[name="sfsi_popup_background_color"]').val()),SFSI(".sfsi_Popinner h2").css("font-family",SFSI("#sfsi_popup_font").val()),SFSI(".sfsi_Popinner h2").css("font-style",SFSI("#sfsi_popup_fontStyle").val()),SFSI(".sfsi_Popinner >h2").css("font-size",parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),SFSI(".sfsi_Popinner >h2").css("color",SFSI('input[name="sfsi_popup_fontColor"]').val()+" !important"),"yes"==SFSI('input[name="sfsi_popup_border_shadow"]:checked').val()?SFSI(".sfsi_Popinner").css("box-shadow","12px 30px 18px #CCCCCC"):SFSI(".sfsi_Popinner").css("box-shadow","none")} function sfsi_stick_widget(s){0==initTop.length&&(SFSI(".sfsi_widget").each(function(s){initTop[s]=SFSI(this).position().top}));var i=SFSI(window).scrollTop(),e=[],t=[];SFSI(".sfsi_widget").each(function(s){e[s]=SFSI(this).position().top,t[s]=SFSI(this)});var n=!1;for(var o in e){var a=parseInt(o)+1;e[o]i&&a1&&(c=e.length-2),initTop[r]=0&&SFSI(t[c]).css({position:"",top:initTop[c]})):(SFSI(t[r]).css({position:"",top:initTop[r]}),c>=0&&e[c]0?(window.removeEventListener("scroll",i),a-=r*o,SFSI("#sfsi_floater").css({top:Math.round((a+t).toString())+"px",transition:"all 0.6s ease 0s"}),setTimeout(i,n)):window.addEventListener("scroll",i,!1)} function e(){var documentheight=SFSI("#sfsi_floater").attr("data-top");var fltrhght=parseInt(SFSI("#sfsi_floater").height());var fltrtp=parseInt(SFSI("#sfsi_floater").css("top"));if(parseInt(fltrhght)+parseInt(fltrtp)<=documentheight){window.addEventListener("scroll",i,!1)}else{window.removeEventListener("scroll",i);SFSI("#sfsi_floater").css("top",documentheight+"px")}} if("center"==s){var t=(SFSI(window).height()-SFSI("#sfsi_floater").height())/2}else if("bottom"==s){var t=window.innerHeight-(SFSI("#sfsi_floater").height()+parseInt(SFSI('#sfsi_floater').css('margin-bottom')))}else{var t=parseInt(s)} var n=50,o=.1,a=0,r=0;SFSI("#sfsi_floater");var prev_onscroll=window.onscroll;window.onscroll=function(){if('function'===typeof prev_onload){prev_onload(),e()}else{e()}}} function sfsi_shuffle(){var $=window.jQuery;return SFSI('.sfsi_wDiv').each(function(index,container){var s=[];s=SFSI(container).find(".sfsi_wicons ");s=Shuffle(s);SFSI(container).html("");for(var i=0;i'),SFSI("head").append(''),SFSI("head").append(''),SFSI(document).click(function(s){var i=SFSI(".sfsi_FrntInner"),e=SFSI(".sfsi_wDiv"),t=SFSI("#at15s");i.is(s.target)||0!==i.has(s.target).length||e.is(s.target)||0!==e.has(s.target).length||t.is(s.target)||0!==t.has(s.target).length||i.fadeOut()}),SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function(){SFSI(this).css("opacity","0.9")}),SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function(){SFSI(this).css("opacity","1")}),SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function(){SFSI(this).css("opacity","0.9")}),SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function(){SFSI(this).css("opacity","1")}),SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function(){SFSI(this).css("opacity","0.9")}),SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function(){SFSI(this).css("opacity","1")}),SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function(){SFSI(this).css("opacity","0.9")}),SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function(){SFSI(this).css("opacity","1")}),SFSI(".pop-up").on("click",function(){("fbex-s2"==SFSI(this).attr("data-id")||"linkex-s2"==SFSI(this).attr("data-id"))&&(SFSI("."+SFSI(this).attr("data-id")).hide(),SFSI("."+SFSI(this).attr("data-id")).css("opacity","1"),SFSI("."+SFSI(this).attr("data-id")).css("z-index","1000")),SFSI("."+SFSI(this).attr("data-id")).show("slow")}),SFSI(document).on("click",'#close_popup',function(){SFSI(".read-overlay").hide("slow")});var e=0;sfsi_make_popBox(),SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup",sfsi_make_popBox),SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus",sfsi_make_popBox),SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change",sfsi_make_popBox),SFSI(document).on("click",'.radio',function(){var s=SFSI(this).parent().find("input:radio:first");"sfsi_popup_border_shadow"==s.attr("name")&&sfsi_make_popBox()}),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?SFSI(document).on("click",'img.sfsi_wicon',function(s){if(SFSI(s.target).parent().attr('href')==""){s.preventDefault()} if(!SFSI(this).hasClass('sfsi_click_wicon')){s.stopPropagation&&s.stopPropagation()} var i=SFSI("#sfsi_floater_sec").val();SFSI("div.sfsi_wicons").css("z-index","0"),SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),SFSI(this).parent().parent().parent().parent().siblings("li").length>0&&(SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index","0"),SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),SFSI(this).parent().parent().parent().css("z-index","1000000"),SFSI(this).parent().parent().css({"z-index":"999"}),SFSI(this).attr("data-effect")&&"fade_in"==SFSI(this).attr("data-effect")&&(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("data-effect")&&"scale"==SFSI(this).attr("data-effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10}),SFSI(this).parent().css("opacity","1")),SFSI(this).attr("data-effect")&&"combo"==SFSI(this).attr("data-effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parent().css("opacity","1"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10})),("top-left"==i||"top-right"==i||"center-top"==i)&&SFSI(this).parent().parent().parent().parent("#sfsi_floater").length>0&&"sfsi_floater"==SFSI(this).parent().parent().parent().parent().attr("id")?(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":10,"bottom":"auto"}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()):(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":1e3}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show())}):SFSI(document).on("mouseenter","img.sfsi_wicon",function(){var s=SFSI("#sfsi_floater_sec").val();SFSI(this).parent().parent().parent().parent().siblings("li").length>0&&(SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index","0"),SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide());SFSI(this).parent().css({"opacity":"1"});SFSI(this).attr("data-effect")&&"fade_in"==SFSI(this).attr("data-effect")&&(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":1e8}),SFSI(this).parent().css("opacity","1"));SFSI(this).attr("data-effect")&&"scale"==SFSI(this).attr("data-effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":1e8}),SFSI(this).parent().css("opacity","1"));SFSI(this).attr("data-effect")&&"combo"==SFSI(this).attr("data-effect")&&(SFSI(this).parent().addClass("scale"),SFSI(this).parent().css("opacity","1"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":1e8}));("top-left"==s||"top-right"==s||"center-top"==s)&&SFSI(this).parent().parent().parent().parent("#sfsi_floater").length>0&&"sfsi_floater"==SFSI(this).parent().parent().parent().parent().attr("id")?(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":1e8,"bottom":"auto"}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()):(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({opacity:1,"z-index":1e8}),SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show())});SFSI(document).on("mouseleave","div.sfsi_wicons",function(){SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect")&&"fade_in"==SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect")&&SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity","0.6"),SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect")&&"scale"==SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect")&&SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect")&&"combo"==SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect")&&SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale").css("opacity","0.6"),SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display","none"),SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("opacity","0")});SFSI(document).on("mouseenter","div.sfsi_tool_tip_2",function(){SFSI(this).find("div.sfsi_tool_tip_2").css({"z-index":1e8,"opacity":1})});SFSI("body").on("click",function(e){var target=SFSI(e.target);if(!target.is(".sfsi_wicon")){SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide()}});SFSI(".adminTooltip >a").on("hover",function(){SFSI(this).offset().top,SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity","1"),SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show()});SFSI(".adminTooltip").on("mouseleave",function(){"none"!=SFSI(".gpls_tool_bdr").css("display")&&0!=SFSI(".gpls_tool_bdr").css("opacity")?SFSI(".pop_up_box ").on("click",function(){SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity","0"),SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide()}):(SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity","0"),SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide())});SFSI(".expand-area").on("click",function(){"Read more"==SFSI(this).text()?(SFSI(this).siblings("p").children("label").fadeIn("slow"),SFSI(this).text("Collapse")):(SFSI(this).siblings("p").children("label").fadeOut("slow"),SFSI(this).text("Read more"))});SFSI(".sfsi_wDiv").length>0&&setTimeout(function(){var s=parseInt(SFSI(".sfsi_wDiv").height())+15+"px";SFSI(".sfsi_holders").each(function(){SFSI(this).css("height",s);SFSI(".sfsi_widget")})},200);SFSI('.usm-widget__footer-text-link').on('click',function(){SFSI(this).parents('.usm-widget').toggle('usm-widget--open');SFSI.ajax({type:"post",dataType:"json",url:sfsi_icon_ajax_object.ajax_url,data:{nonce:sfsi_icon_ajax_object.nonce,action:"sfsi_hide_admin_forum_notification"},success:function(){SFSI('.usm-widget').remove()}})});SFSI('.usm-widget__toggle-btn').on('click',function(){var currentThis=SFSI(this);currentThis.parents('.usm-widget').toggleClass('usm-widget--open');var toggleStatus='';if(currentThis.parents('.usm-widget').hasClass('usm-widget--open')){toggleStatus='hide'}else{toggleStatus='show'} SFSI.ajax({type:"post",dataType:"json",url:sfsi_icon_ajax_object.ajax_url,data:{action:"sfsi_default_hide_admin_notification",status:toggleStatus,nonce:sfsi_icon_ajax_object.unonce},success:function(){currentThis.addClass('sfsi-first-click-enabled')}})})});function sfsihidemepopup(){SFSI(".sfsi_FrntInner_chg").fadeOut()} var initTop=new Array();function close_overlay(selector){if(typeof selector==="undefined"){selector='.sfsi_overlay'} jQuery(selector).removeClass('show').addClass('hide').hide()} function sfsi_wechat_share(url){if(jQuery('.sfsi_wechat_follow_overlay').length==0){jQuery('body').append("
×
\"Scan QR Code\" in WeChat and press ··· to share!
");new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0],encodeURI(decodeURI(window.location.href))) jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin','nopin')}else{jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show()}} function sfsi_mobile_wechat_share(url){if(jQuery('.sfsi_wechat_follow_overlay').length==0){jQuery('body').append("
")}else{jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show')}} function sfsi_copy_text_parent_input(event){var target=jQuery(event.target);input_target=target.parent().parent().parent().find('input');input_target.select();document.execCommand('copy')} function sfsi_responsive_toggle(){jQuery(document).scroll(function($){var y=jQuery(this).scrollTop();if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){if(jQuery(window).scrollTop()+jQuery(window).height()>=jQuery(document).height()-100){jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+"px",position:"absolute"});jQuery('.sfsi_outr_div').fadeIn(200);jQuery('.sfsi_FrntInner_chg').fadeIn(200)}else{jQuery('.sfsi_outr_div').fadeOut();jQuery('.sfsi_FrntInner_chg').fadeOut()}}else{if(jQuery(window).scrollTop()+jQuery(window).height()>=jQuery(document).height()-3){jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+200+"px",position:"absolute"});jQuery('.sfsi_outr_div').fadeIn(200);jQuery('.sfsi_FrntInner_chg').fadeIn(200)}else{jQuery('.sfsi_outr_div').fadeOut();jQuery('.sfsi_FrntInner_chg').fadeOut()}}})} function createCookie(name,value,expires,path,domain){var cookie=name+"="+escape(value)+";";if(expires){if(expires instanceof Date){if(isNaN(expires.getTime())) expires=new Date()}else expires=new Date(new Date().getTime()+parseInt(expires)*1000*60*60*24);cookie+="expires="+expires.toGMTString()+";"} if(path) cookie+="path="+path+";";if(domain) cookie+="domain="+domain+";";document.cookie=cookie} function sfsi_time_pop_up(time_popUp){jQuery(document).ready(function($){try{if(document.cookie.indexOf('sfsi_popup')!==-1){return} createCookie('sfsi_popup',new Date.getTime(),30,'/')}catch(Exception){} setTimeout(function(){jQuery('.sfsi_outr_div').css({'z-index':'1000000',opacity:1});jQuery('.sfsi_outr_div').fadeIn(200);jQuery('.sfsi_FrntInner_chg').fadeIn(200)},time_popUp)})} function sfsi_social_pop_up(time_popUp){jQuery(document).ready(function($){try{if(document.cookie.indexOf('sfsi_socialPopUp')!==-1){return} createCookie('sfsi_popup',new Date.getTime(),30,'/')}catch(Exception){} setTimeout(function(){jQuery('.sfsi_outr_div').css({'z-index':'1000000',opacity:1});jQuery('.sfsi_outr_div').fadeIn()},time_popUp)})} function sfsi_plugin_version(pluginVersion){jQuery(document).ready(function(e){jQuery("body").addClass("sfsi_"+pluginVersion)})} function sfsi_widget_set(){jQuery(".sfsi_widget").each(function(index){if(jQuery(this).attr("data-position")=="widget"){var wdgt_hght=jQuery(this).children(".norm_row.sfsi_wDiv").height();var title_hght=jQuery(this).parent(".widget.sfsi").children(".widget-title").height();var totl_hght=parseInt(title_hght)+parseInt(wdgt_hght);jQuery(this).parent(".widget.sfsi").css("min-height",totl_hght+"px")}})} SFSI(window).on('load',function(){SFSI('.sfsi_pinterest_sm_click').on('click touchstart',function(){sfsi_pinterest_modal_images(e)})});function sfsi_pinterest_modal_images(event,url,title){event&&event.preventDefault();var imgSrc=[];var page_title;page_title=SFSI('meta[property="og:title"]').attr('content');if(undefined==page_title){page_title=SFSI('head title').text()} if(undefined==title){title=page_title} if(undefined==url){url=window.location.href} SFSI('body img').each(function(index){var src=SFSI(this).attr('src')||"";var height=SFSI(this).height();var width=SFSI(this).width();var image_title=SFSI(this).attr('title')||"";var alt=SFSI(this).attr('alt')||"";var no_pin=SFSI(this).attr('data-pin-nopin')||"";var no_pin_old=SFSI(this).attr('nopin')||"";if(src!==""&&!src.startsWith("javascript")&&height>100&&width>100&&no_pin_old!=="nopin"&&no_pin!=="true"){imgSrc.push({src:src,title:title&&""!==title?title:(image_title&&""!==image_title?image_title:alt)})}});sfsi_pinterest_modal();if(imgSrc.length==0){var meta_img=SFSI('meta[property="og:image"]').attr('content');if(undefined==meta_img){meta_img=""} SFSI('.sfsi_flex_container').append('
')}else{SFSI.each(imgSrc,function(index,val){SFSI('.sfsi_flex_container').append('
')})} event.preventDefault()} function sfsi_pinterest_modal(imgs){jQuery('body').append("
"+"
"+'×'+"
"+"

Pin It on Pinterest

"+"
"+"
"+"
"+"
"+"
")} var sfsi_functions_loaded=new CustomEvent('sfsi_functions_loaded',{detail:{"abc":"def"}});window.dispatchEvent(sfsi_functions_loaded);function showSuccessAlert(){var alert=document.getElementById("success-alert");alert.style.display="block";alert.style.animation="intro-animation 1s";setTimeout(function(){alert.style.animation="fade-out 2s";setTimeout(function(){alert.style.display="none";alert.style.animation="none"},2000)},3000)} function sfsi_copyLink(str){try{const el=document.createElement('textarea');el.value=str;el.setAttribute('readonly','');el.style.position='absolute';el.style.left='-9999px';document.body.appendChild(el);el.select();document.execCommand('copy');document.body.removeChild(el);showSuccessAlert();return!0}catch(e){console.log(e);return!1}} document.querySelectorAll('a.sfsi_copylink').forEach(function(anchor){anchor.addEventListener('click',function(e){e.preventDefault();sfsi_copyLink(window.location.href)})}) ;var cff_js_exists=void 0!==cff_js_exists;if(!cff_js_exists){if(jQuery("#cff.cff-masonry-js").length){function cffAddMasonry(t){var e=jQuery.Event("cffbeforemasonry");if(e.$self=t,jQuery(window).trigger(e),"function"==typeof t.masonry){var i=jQuery(window).width(),n=!1;if(i>800?t.hasClass("masonry-1-desktop")?t.addClass("cff-disable-masonry"):(n=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")):i>480?t.hasClass("masonry-2-tablet")||t.hasClass("masonry-3-tablet")||t.hasClass("masonry-4-tablet")||t.hasClass("masonry-5-tablet")||t.hasClass("masonry-6-tablet")?(n=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")):t.addClass("cff-disable-masonry"):t.hasClass("masonry-2-mobile")||t.hasClass("masonry-3-mobile")?(n=!0,t.addClass("cff-masonry cff-masonry-js").removeClass("cff-disable-masonry")):t.addClass("cff-disable-masonry"),n&&t.find(".cff-item").length){t.find(".cff-posts-wrap").masonry({itemSelector:".cff-new, .cff-item, .cff-likebox"}),t.find(".cff-item").each((function(){jQuery(this).css("margin-bottom","15px")}))}}}!function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function o(e,i){t.fn[e]=function(o){if("string"==typeof o){for(var u=n.call(arguments,1),s=0,a=this.length;a>s;s++){var f=this[s],c=t.data(f,e);if(c)if(t.isFunction(c[o])&&"_"!==o.charAt(0)){var h=c[o].apply(c,u);if(void 0!==h)return h}else r("no such method '"+o+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; attempted to call '"+o+"'")}return this}return this.each((function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))}))}}if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),o(t,e)},t.bridget}}var n=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i("object"==typeof exports?require("jquery"):t.jQuery)}(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(n=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var o=function(){};i.removeEventListener?o=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(o=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var r={bind:n,unbind:o};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:t.eventie=r}(window),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,o=this,r=o.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp)for(i in e={},n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i]);else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;eo;o++)if(e=i[o]+t,"string"==typeof n[e])return e}}var i="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],(function(){return e})):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t);return-1===t.indexOf("%")&&!isNaN(e)&&e}function i(i){function r(){if(!c){c=!0;var o=t.getComputedStyle;if(s=function(){var t=o?function(t){return o(t,null)}:function(t){return t.currentStyle};return function(e){var i=t(e);return i||n("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),a=i("boxSizing")){var r=document.createElement("div");r.style.width="200px",r.style.padding="1px 2px 3px 4px",r.style.borderStyle="solid",r.style.borderWidth="1px 2px 3px 4px",r.style[a]="border-box";var u=document.body||document.documentElement;u.appendChild(r);var h=s(r);f=200===e(h.width),u.removeChild(r)}}}function u(e,i){if(t.getComputedStyle||-1===i.indexOf("%"))return i;var n=e.style,o=n.left,r=e.runtimeStyle,u=r&&r.left;return u&&(r.left=e.currentStyle.left),n.left=i,i=n.pixelLeft,n.left=o,u&&(r.left=u),i}var s,a,f,c=!1;return function(t){if(r(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var i=s(t);if("none"===i.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=o.length;i>e;e++)t[o[e]]=0;return t}();var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var c=n.isBorderBox=!(!a||!i[a]||"border-box"!==i[a]),h=0,d=o.length;d>h;h++){var l=o[h],p=i[l];p=u(t,p);var m=parseFloat(p);n[l]=isNaN(m)?0:m}var y=n.paddingLeft+n.paddingRight,g=n.paddingTop+n.paddingBottom,v=n.marginLeft+n.marginRight,A=n.marginTop+n.marginBottom,C=n.borderLeftWidth+n.borderRightWidth,F=n.borderTopWidth+n.borderBottomWidth,E=c&&f,B=e(i.width);!1!==B&&(n.width=B+(E?0:y+C));var b=e(i.height);return!1!==b&&(n.height=b+(E?0:g+F)),n.innerWidth=n.width-(y+C),n.innerHeight=n.height-(g+F),n.outerWidth=n.width+v,n.outerHeight=n.height+A,n}}}var n="undefined"==typeof console?function(){}:function(t){console.error(t)},o=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],i):"object"==typeof exports?module.exports=i(require("desandro-get-style-property")):t.getSize=i(t.getStyleProperty)}(window),function(t){function e(t){"function"==typeof t&&(e.isReady?t():u.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==r.readyState;e.isReady||i||n()}function n(){e.isReady=!0;for(var t=0,i=u.length;i>t;t++){(0,u[t])()}}function o(o){return"complete"===r.readyState?n():(o.bind(r,"DOMContentLoaded",i),o.bind(r,"readystatechange",i),o.bind(t,"load",i)),e}var r=t.document,u=[];e.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],o):"object"==typeof exports?module.exports=o(require("eventie")):t.docReady=o(t.eventie)}(window),function(t){function e(t,e){return t[o](e)}function i(t){t.parentNode||document.createDocumentFragment().appendChild(t)}var n,o=function(){if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0,n=e.length;n>i;i++){var o=e[i]+"MatchesSelector";if(t[o])return o}}();if(o){var r=e(document.createElement("div"),"div");n=r?e:function(t,n){return i(t),e(t,n)}}else n=function(t,e){i(t);for(var n=t.parentNode.querySelectorAll(e),o=0,r=n.length;r>o;o++)if(n[o]===t)return!0;return!1};"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],(function(){return n})):"object"==typeof exports?module.exports=n:window.matchesSelector=n}(Element.prototype),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],(function(i,n){return e(t,i,n)})):"object"==typeof exports?module.exports=e(t,require("doc-ready"),require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.docReady,t.matchesSelector)}(window,(function(t,e,i){var n={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},o=Object.prototype.toString;n.isArray=function(t){return"[object Array]"==o.call(t)},n.makeArray=function(t){var e=[];if(n.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0,o=t.length;o>i;i++)e.push(t[i]);else e.push(t);return e},n.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},n.removeFrom=function(t,e){var i=n.indexOf(t,e);-1!=i&&t.splice(i,1)},n.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},n.setText=function(){var t;return function(e,i){e[t=t||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=i}}(),n.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,i(t,e))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,e){for(var o=[],r=0,u=(t=n.makeArray(t)).length;u>r;r++){var s=t[r];if(n.isElement(s))if(e){i(s,e)&&o.push(s);for(var a=s.querySelectorAll(e),f=0,c=a.length;c>f;f++)o.push(a[f])}else o.push(s)}return o},n.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout((function(){n.apply(r,e),delete r[o]}),i||100)}},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()};var r=t.console;return n.htmlInit=function(i,o){e((function(){for(var e=n.toDashed(o),u=document.querySelectorAll(".js-"+e),s="data-"+e+"-options",a=0,f=u.length;f>a;a++){var c,h=u[a],d=h.getAttribute(s);try{c=d&&JSON.parse(d)}catch(t){r&&r.error("Error parsing "+s+" on "+h.nodeName.toLowerCase()+(h.id?"#"+h.id:"")+": "+t);continue}var l=new i(h,c),p=t.jQuery;p&&p.data(h,o,l)}}))},n})),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],(function(i,n,o,r){return e(t,i,n,o,r)})):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(t.Outlayer={},t.Outlayer.Item=e(t,t.EventEmitter,t.getSize,t.getStyleProperty,t.fizzyUIUtils))}(window,(function(t,e,i,n,o){function r(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var u=t.getComputedStyle,s=u?function(t){return u(t,null)}:function(t){return t.currentStyle},a=n("transition"),f=n("transform"),c=a&&f,h=!!n("perspective"),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[a],l=["transform","transition","transitionDuration","transitionProperty"],p=function(){for(var t={},e=0,i=l.length;i>e;e++){var o=l[e],r=n(o);r&&r!==o&&(t[o]=r)}return t}();o.extend(r.prototype,e.prototype),r.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.getSize=function(){this.size=i(this.element)},r.prototype.css=function(t){var e=this.element.style;for(var i in t){e[p[i]||i]=t[i]}},r.prototype.getPosition=function(){var t=s(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,o=parseInt(t[i?"left":"right"],10),r=parseInt(t[n?"top":"bottom"],10);o=isNaN(o)?0:o,r=isNaN(r)?0:r;var u=this.layout.size;o-=i?u.paddingLeft:u.paddingRight,r-=n?u.paddingTop:u.paddingBottom,this.position.x=o,this.position.y=r},r.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={},n=e.isOriginLeft?"paddingLeft":"paddingRight",o=e.isOriginLeft?"left":"right",r=e.isOriginLeft?"right":"left",u=this.position.x+t[n];u=e.percentPosition&&!e.isHorizontal?u/t.width*100+"%":u+"px",i[o]=u,i[r]="";var s=e.isOriginTop?"paddingTop":"paddingBottom",a=e.isOriginTop?"top":"bottom",f=e.isOriginTop?"bottom":"top",c=this.position.y+t[s];c=e.percentPosition&&e.isHorizontal?c/t.height*100+"%":c+"px",i[a]=c,i[f]="",this.css(i),this.emitEvent("layout",[this])};var m=h?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};r.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),u=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),!u||this.isTransitioning){var s=t-i,a=e-n,f={},c=this.layout.options;s=c.isOriginLeft?s:-s,a=c.isOriginTop?a:-a,f.transform=m(s,a),this.transition({to:f,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},r.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},r.prototype.moveTo=c?r.prototype._transitionTo:r.prototype.goTo,r.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},r.prototype._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},r.prototype._transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var y=f&&o.toDashed(f)+",opacity";r.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:y,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(d,this,!1))},r.prototype.transition=r.prototype[a?"_transition":"_nonTransition"],r.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},r.prototype.onotransitionend=function(t){this.ontransitionend(t)};var g={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};r.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=g[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},r.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(d,this,!1),this.isTransitioning=!1},r.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var v={transitionProperty:"",transitionDuration:""};return r.prototype.removeTransitionStyles=function(){this.css(v)},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},r.prototype.remove=function(){if(a&&parseFloat(this.layout.options.transitionDuration)){var t=this;this.once("transitionEnd",(function(){t.removeElem()})),this.hide()}else this.removeElem()},r.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},r.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},r.prototype.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},r.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},r.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},r.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},r})),function(t,e){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],(function(i,n,o,r,u){return e(t,i,n,o,r,u)})):"object"==typeof exports?module.exports=e(t,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.eventie,t.EventEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,(function(t,e,i,n,o,r){function u(t,e){var i=o.getQueryElement(t);if(i){this.element=i,a&&(this.$element=a(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++c;this.element.outlayerGUID=n,h[n]=this,this._create(),this.options.isInitLayout&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}var s=t.console,a=t.jQuery,f=function(){},c=0,h={};return u.namespace="outlayer",u.Item=r,u.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},o.extend(u.prototype,i.prototype),u.prototype.option=function(t){o.extend(this.options,t)},u.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},u.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},u.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0,r=e.length;r>o;o++){var u=new i(e[o],this);n.push(u)}return n},u.prototype._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},u.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},u.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},u.prototype._init=u.prototype.layout,u.prototype._resetLayout=function(){this.getSize()},u.prototype.getSize=function(){this.size=n(this.element)},u.prototype._getMeasurement=function(t,e){var i,r=this.options[t];r?("string"==typeof r?i=this.element.querySelector(r):o.isElement(r)&&(i=r),this[t]=i?n(i)[e]:r):this[t]=0},u.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},u.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i];o.isIgnored||e.push(o)}return e},u.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var i=[],n=0,o=t.length;o>n;n++){var r=t[n],u=this._getItemLayoutPosition(r);u.item=r,u.isInstant=e||r.isLayoutInstant,i.push(u)}this._processLayoutQueue(i)}},u.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},u.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},u.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},u.prototype._postLayout=function(){this.resizeContainer()},u.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},u.prototype._getContainerSize=f,u.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},u.prototype._emitCompleteOnItems=function(t,e){function i(){o.emitEvent(t+"Complete",[e])}function n(){++u===r&&i()}var o=this,r=e.length;if(e&&r)for(var u=0,s=0,a=e.length;a>s;s++){e[s].once(t,n)}else i()},u.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},u.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},u.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},u.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var n=t[e];o.removeFrom(this.stamps,n),this.unignore(n)}},u.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)):void 0},u.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},u.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},u.prototype._manageStamp=f,u.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t);return{left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom}},u.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},u.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},u.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var t=this;this.resizeTimeout=setTimeout((function(){t.resize(),delete t.resizeTimeout}),100)},u.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.prototype.needsResizeLayout=function(){var t=n(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},u.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},u.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},u.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},u.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,i=0;e&&e>i;i++){t[i].reveal()}},u.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,i=0;e&&e>i;i++){t[i].hide()}},u.prototype.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},u.prototype.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},u.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},u.prototype.getItems=function(t){for(var e=[],i=0,n=(t=o.makeArray(t)).length;n>i;i++){var r=t[i],u=this.getItem(r);u&&e.push(u)}return e},u.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var i=0,n=e.length;n>i;i++){var r=e[i];r.remove(),o.removeFrom(this.items,r)}},u.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){this.items[e].destroy()}this.unbindResize();var n=this.element.outlayerGUID;delete h[n],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},u.data=function(t){var e=(t=o.getQueryElement(t))&&t.outlayerGUID;return e&&h[e]},u.create=function(t,e){function i(){u.apply(this,arguments)}return Object.create?i.prototype=Object.create(u.prototype):o.extend(i.prototype,u.prototype),i.prototype.constructor=i,i.defaults=o.extend({},u.defaults),o.extend(i.defaults,e),i.prototype.settings={},i.namespace=t,i.data=u.data,i.Item=function(){r.apply(this,arguments)},i.Item.prototype=new r,o.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i},u.Item=r,u})),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,(function(t,e,i){var n=t.create("masonry");return n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,u=n-o%n;r=Math[u&&1>u?"round":"floor"](r),this.cols=Math.max(r,1)},n.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=Math[e&&1>e?"round":"ceil"](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),r=Math.min.apply(Math,o),u=i.indexOf(o,r),s={x:this.columnWidth*u,y:r},a=r+t.size.outerHeight,f=this.cols+1-o.length,c=0;f>c;c++)this.colYs[u+c]=a;return s},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},n.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this.options.isOriginLeft?n.left:n.right,r=o+i.outerWidth,u=Math.floor(o/this.columnWidth);u=Math.max(0,u);var s=Math.floor(r/this.columnWidth);s-=r%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var a=(this.options.isOriginTop?n.top:n.bottom)+i.outerHeight,f=u;s>=f;f++)this.colYs[f]=Math.max(a,this.colYs[f])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},n}))}function cff_init(){function t(){jQuery(".cff-visual-header.cff-has-cover").each((function(){var t=jQuery(this).find(".cff-header-hero").innerHeight(),e=jQuery(this).find(".cff-header-hero img").innerHeight(),i=jQuery(this).find(".cff-header-hero").innerWidth(),n=jQuery(this).find(".cff-header-hero img").innerWidth()/e,o=i/t]*>)/g),u=0;full_text_arr=o.split(r);for(var s=0,a=full_text_arr.length;sn){var f=u-n;full_text_arr[s]=full_text_arr[s].slice(0,-f),u=n,o.length>n&&t.find(".cff-expand").show()}}var c=full_text_arr.join("");function h(){var e=t.find(".cff-text").html(),i=t.find(".cff-post-desc").html(),n=/(^|\s)#(\w*[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]+\w*)/gi,o=t.find(".cff-text").attr("data-color");function r(t){var e=jQuery.trim(t);return/^#[0-9A-F]{6}$/i.test(e)?e:' '+e+""}if("undefined"==typeof cfflinkhashtags&&(cfflinkhashtags="true"),"true"==cfflinkhashtags){var u=t.find(".cff-text");u.length>0&&0==u.find(".cff-post-text-link").length&&(e=e.replace(/
/g,"
"),u.html(e.replace(n,r)))}t.find(".cff-post-desc").length>0&&t.find(".cff-post-desc").html(i.replace(n,r))}"<"==(c=c.replace(/(<(?!\/)[^>]+>)+(<\/[^>]+>)/g,"")).substr(c.length-1)&&(c=c.substring(0,c.length-1)),c=(c=c.replace(/(
\s*)+$/,"")).replace(/(\s*)+$/,""),i.html(c),t.find(".cff-expand").on("click",(function(n){n.preventDefault();var r=jQuery(this),u=r.find(".cff-more"),s=r.find(".cff-less");0==e?(i.html(o),e=!0,u.hide(),s.show()):(i.html(c),e=!1,u.show(),s.hide()),h(),i.find("a").attr("target","_blank"),t.closest(".cff").hasClass("cff-masonry-js")&&!t.closest(".cff").hasClass("cff-masonry-css")&&cffAddMasonry(t.closest(".cff"))})),i.find("a").add(t.find(".cff-post-desc a")).attr({target:"_blank",rel:"nofollow"}),$sharedLink=t.find(".cff-shared-link"),""==$sharedLink.text()&&$sharedLink.remove(),h(),t.find(".cff-text a").add(t.find(".cff-post-desc a")).attr({target:"_blank",rel:"nofollow noopener noreferrer"}),t.find(".cff-share-link").on("click",(function(e){e.preventDefault();var i=t.find(".cff-share-tooltip");if(i.is(":visible"))i.hide().find("a").removeClass("cff-show");else{i.show();var n=0;i.find("a").each((function(){var t=jQuery(this);setTimeout((function(){t.addClass("cff-show")}),n),n+=20}))}}))})),jQuery(".cff-wrapper").each((function(){var t=jQuery(this).find("#cff"),e=jQuery(this);if(setTimeout((function(){checkConsent(e)?addFullFeatures(e):(jQuery(".cff-gdpr-notice").css({display:"inline-block"}),e.find(".cff-visual-header").length&&e.find(".cff-header-text").closest(".cff-visual-header").addClass("cff-no-consent"))}),250),void 0!==t.attr("data-nummobile")){var i=void 0!==t.attr("data-pag-num")&&""!==t.attr("data-pag-num")?parseInt(t.attr("data-pag-num")):1,n=void 0!==t.attr("data-nummobile")&&""!==t.attr("data-nummobile")?parseInt(t.attr("data-nummobile")):i,o=t.find(".cff-item").length?".cff-item":".cff-album-item";jQuery(window).width()<480?n-1,n=(e.indexOf("overrideBlockCDN"),!1);if(n||!i)return!0;if(void 0!==window.cookieyes)void 0!==window.cookieyes._ckyConsentStore.get&&(n="yes"===window.cookieyes._ckyConsentStore.get("functional"));else if("undefined"!=typeof CLI_Cookie)null!==CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)&&(null!==CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")&&(n="yes"===CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")),null!==CLI_Cookie.read("cookielawinfo-checkbox-necessary")&&(n="yes"===CLI_Cookie.read("cookielawinfo-checkbox-necessary")));else if(void 0!==window.cnArgs){var o=("; "+document.cookie).split("; cookie_notice_accepted=");if(2===o.length)n="true"===o.pop().split(";").shift()}else void 0!==window.complianz||void 0!==window.cookieconsent?n="allow"===cffCmplzGetCookie("cmplz_marketing"):void 0!==window.Cookiebot?n=Cookiebot.consented:void 0!==window.BorlabsCookie&&(n=window.BorlabsCookie.checkCookieConsent("facebook"));return n}function cffCmplzGetCookie(t){for(var e=t+"=",i=window.document.cookie.split(";"),n=0;n-1&&jQuery(".cff-wrapper").each((function(t){afterConsentToggled(!0,jQuery(this))}))}),1e3)})),t(document).on("cmplzEnableScripts",(function(t){"marketing"===t.detail&&jQuery(".cff-wrapper").each((function(t){afterConsentToggled(!0,jQuery(this))}))})),t(document).on("cmplzFireCategories",(function(t){"marketing"===t.detail.category&&jQuery(".cff-wrapper").each((function(t){afterConsentToggled(!1,jQuery(this))}))})),t(document).on("borlabs-cookie-consent-saved",(function(t){jQuery(".cff-wrapper").each((function(t){afterConsentToggled(!0,jQuery(this))}))})),t(".cff-list-container").length){var e=cffGetFeedLocatorDataArray();t.ajax({url:cffajaxurl,type:"POST",data:{action:"feed_locator",feedLocatorData:e}})}}))} ;!function($,undefined){"use strict";var _window=window,_document=document,_navigator=navigator,_undefined=undefined,isPlainObject=$.isPlainObject;var max=Math.max,min=Math.min,pow=Math.pow;if(isPlainObject(_window.$ush)){return} _window.$ush=_window.$ush||{};var ua=_navigator.userAgent.toLowerCase(),base64Chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',fromCharCode=String.fromCharCode;$ush.ua=ua;$ush.isMacOS=/(Mac|iPhone|iPod|iPad)/i.test(_navigator.platform);$ush.isFirefox=ua.indexOf('firefox')>-1;$ush.isSafari=/^((?!chrome|android).)*safari/i.test(ua);$ush.isTouchend=('ontouchend' in _document);$ush.safariVersion=function(){var self=this;if(self.isSafari){return self.parseInt((ua.match(/version\/([\d]+)/i)||[])[1])} return 0} $ush.fn=function(fn){if($.isFunction(fn)){fn()}};$ush.isUndefined=function(value){return''+_undefined===''+value};$ush.isRtl=function(){return this.toString(_document.body.className).split(/\p{Zs}/u).indexOf('rtl')>-1};$ush.isNode=function(node){return!!node&&node.nodeType};$ush.uniqid=function(prefix){return(prefix||'')+Math.random().toString(36).substr(2,9)};$ush.utf8Decode=function(data){var tmp_arr=[],i=0,ac=0,c1=0,c2=0,c3=0;data+='';while(i191&&c1<224){c2=data.charCodeAt(i+1);tmp_arr[ac ++]=fromCharCode(((c1&31)<<6)|(c2&63));i+=2}else{c2=data.charCodeAt(i+1);c3=data.charCodeAt(i+2);tmp_arr[ac ++]=fromCharCode(((c1&15)<<12)|((c2&63)<<6)|(c3&63));i+=3}} return tmp_arr.join('')};$ush.utf8Encode=function(data){if(data===null||this.isUndefined(data)){return''} var string=(''+data),utftext='',start,end,stringl=0;start=end=0;stringl=string.length;for(var n=0;n127&&c1<2048){enc=fromCharCode((c1>>6)|192)+fromCharCode((c1&63)|128)}else{enc=fromCharCode((c1>>12)|224)+fromCharCode(((c1>>6)&63)|128)+fromCharCode((c1&63)|128)} if(enc!==null){if(end>start){utftext+=string.slice(start,end)} utftext+=enc;start=end=n+1}} if(end>start){utftext+=string.slice(start,stringl)} return utftext};$ush.base64Decode=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,dec='',tmp_arr=[],self=this;if(!data){return data} data+='';do{h1=base64Chars.indexOf(data.charAt(i ++));h2=base64Chars.indexOf(data.charAt(i ++));h3=base64Chars.indexOf(data.charAt(i ++));h4=base64Chars.indexOf(data.charAt(i ++));bits=h1<<18|h2<<12|h3<<6|h4;o1=bits>>16&0xff;o2=bits>>8&0xff;o3=bits&0xff;if(h3==64){tmp_arr[ac ++]=fromCharCode(o1)}else if(h4==64){tmp_arr[ac ++]=fromCharCode(o1,o2)}else{tmp_arr[ac ++]=fromCharCode(o1,o2,o3)}}while(i>18&0x3f;h2=bits>>12&0x3f;h3=bits>>6&0x3f;h4=bits&0x3f;tmp_arr[ac ++]=base64Chars.charAt(h1)+base64Chars.charAt(h2)+base64Chars.charAt(h3)+base64Chars.charAt(h4)}while(i]+)>)/ig,'').replace('"','"')};$ush.rawurldecode=function(str){return decodeURIComponent(''+str)};$ush.rawurlencode=function(str){return encodeURIComponent(''+str).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A')};$ush.timeout=function(fn,delay){var handle={},start=new Date().getTime(),requestAnimationFrame=_window.requestAnimationFrame;function loop(){var current=new Date().getTime(),delta=current-start;delta>=delay?fn.call():handle.value=requestAnimationFrame(loop)} handle.value=requestAnimationFrame(loop);return handle};$ush.clearTimeout=function(handle){if(isPlainObject(handle)){handle=handle.value} if($.isNumeric(handle)){_window.cancelAnimationFrame(handle)}};$ush.throttle=function(fn,wait,no_trailing,debounce_mode){var self=this;if(!$.isFunction(fn)){return $.noop} if(!$.isNumeric(wait)){wait=0} if(typeof no_trailing!=='boolean'){no_trailing=_undefined} var last_exec=0,timeout,context,args;return function(){context=this;args=arguments;var elapsed=+new Date()-last_exec;function exec(){last_exec=+new Date();fn.apply(context,args)} function clear(){timeout=_undefined} if(debounce_mode&&!timeout){exec()} timeout&&self.clearTimeout(timeout);if(self.isUndefined(debounce_mode)&&elapsed>wait){exec()}else if(no_trailing!==!0){timeout=self.timeout(debounce_mode?clear:exec,self.isUndefined(debounce_mode)?wait-elapsed:wait)}}};$ush.debounce=function(fn,wait,at_begin){var self=this;return self.isUndefined(at_begin)?self.throttle(fn,wait,_undefined,!1):self.throttle(fn,wait,at_begin!==!1)};$ush.debounce_fn_1ms=$ush.debounce($ush.fn,1);$ush.debounce_fn_10ms=$ush.debounce($ush.fn,10);$ush.parseInt=function(value){value=parseInt(value,10);return!isNaN(value)?value:0};$ush.parseFloat=function(value){value=parseFloat(value);return!isNaN(value)?value:0};$ush.limitValueByRange=function(value,minValue,maxValue){return $ush.parseFloat(min(maxValue,max(minValue,value)))};$ush.toArray=function(data){try{data=[].slice.call(data||[])}catch(err){console.error(err);data=[]} return data};$ush.toString=function(value){var self=this;if(self.isUndefined(value)||value===null){return''}else if(isPlainObject(value)||$.isArray(value)){return self.rawurlencode(JSON.stringify(value))} return''+value};$ush.toPlainObject=function(value){var self=this;try{value=JSON.parse(self.rawurldecode(''+value)||'{}')}catch(err){} if(!isPlainObject(value)){value={}} return value};$ush.toLowerCase=function(value){return(''+value).toLowerCase()};$ush.clone=function(_object,_default){return $.extend(!0,{},_default||{},_object||{})};$ush.escapePcre=function(value){return this.toString(value).replace(/[.*+?^${}()|\:[\]\\]/g,'\\$&')};$ush.removeSpaces=function(text){return(''+text).replace(/\p{Zs}/gu,'')};$ush.$rect=function(node){return this.isNode(node)?node.getBoundingClientRect():{}};$ush.setCaretPosition=function(node,position){var self=this;if(!self.isNode(node)){return} if(self.isUndefined(position)){position=node.value.length} if(node.createTextRange){var range=node.createTextRange();range.move('character',position);range.select()}else{if(node.selectionStart){node.focus();node.setSelectionRange(position,position)}else{node.focus()}}};$ush.copyTextToClipboard=function(text){var self=this;try{var textarea=_document.createElement('textarea');textarea.value=self.toString(text);textarea.setAttribute('readonly','');textarea.setAttribute('css','position:absolute;top:-9999px;left:-9999px');_document.body.append(textarea);textarea.select();_document.execCommand('copy');if(_window.getSelection){_window.getSelection().removeAllRanges()}else if(_document.selection){_document.selection.empty()} textarea.remove();return!0}catch(err){return!1}};$ush.storage=function(namespace){if(namespace=$ush.toString(namespace)){namespace+='_'} var _localStorage=_window.localStorage;return{set:function(key,value){_localStorage.setItem(namespace+key,value)},get:function(key){return _localStorage.getItem(namespace+key)},remove:function(key){_localStorage.removeItem(namespace+key)}}};$ush.setCookie=function(name,value,expiry){var date=new Date() date.setTime(date.getTime()+(expiry*86400000));_document.cookie=name+'='+value+';expires='+date.toUTCString()+';path=/'};$ush.getCookie=function(name){name+='=' var decodedCookie=decodeURIComponent(_document.cookie),cookies=decodedCookie.split(';');for(var i=0;i2||!$.isArray(extraParams))?[].slice.call(args,1):extraParams;for(var i=0;ia?pow(2,20*a-10)/2:(2-pow(2,-20*a+10))/2}});var _document=document,_navigator=navigator,_undefined=undefined,_window=window;_window.$ush=_window.$ush||{};_window.$us=_window.$us||{};$us.iOS=(/^iPad|iPhone|iPod/.test(_navigator.platform)||(_navigator.userAgent.indexOf('Mac')>-1&&_navigator.maxTouchPoints>1&&$ush.isTouchend));$us.mobileNavOpened=0;$us.header={};['getCurrentHeight','getHeaderInitialPos','getHeight','getScrollDirection','getScrollTop','isFixed','isHidden','isHorizontal','isStatic','isSticky','isStickyAutoHidden','isStickyAutoHideEnabled','isStickyEnabled','isTransparent','isVertical','on'].map(function(name){$us.header[name]=jQuery.noop});jQuery.fn.usMod=function(mod,value){var self=this;if(self.length==0)return self;if(value===_undefined){var pcre=new RegExp('^.*?'+mod+'\_([a-zA-Z0-9\_\-]+).*?$');return(pcre.exec(self.get(0).className)||[])[1]||!1} self.each(function(_,item){item.className=item.className.replace(new RegExp('(^| )'+mod+'\_[a-zA-Z0-9\_\-]+( |$)'),'$2');if(value!==!1){item.className+=' '+mod+'_'+value}});return self};$us.toBool=function(value){if(typeof value=='boolean'){return value} if(typeof value=='string'){value=value.trim();return(value.toLocaleLowerCase()=='true'||value=='1')} return!!parseInt(value)};$us.getScript=function(url,callback){if(!$us.ajaxLoadJs){callback();return!1} if($us.loadedScripts===_undefined){$us.loadedScripts={};$us.loadedScriptsFunct={}} if($us.loadedScripts[url]==='loaded'){callback();return}else if($us.loadedScripts[url]==='loading'){$us.loadedScriptsFunct[url].push(callback);return} $us.loadedScripts[url]='loading';$us.loadedScriptsFunct[url]=[];$us.loadedScriptsFunct[url].push(callback) var complete=function(){for(var i=0;i<$us.loadedScriptsFunct[url].length;i ++){if(typeof $us.loadedScriptsFunct[url][i]==='function'){$us.loadedScriptsFunct[url][i]()}} $us.loadedScripts[url]='loaded'};var options={dataType:'script',cache:!0,url:url,complete:complete};return jQuery.ajax(options)};$us.getAnimationName=function(animationName,defaultAnimationName){if(jQuery.easing.hasOwnProperty(animationName)){return animationName} return defaultAnimationName?defaultAnimationName:jQuery.easing._default};$us.mixins={};$us.mixins.Events={on:function(eventType,handler){var self=this;if(self.$$events===_undefined){self.$$events={}} if(self.$$events[eventType]===_undefined){self.$$events[eventType]=[]} self.$$events[eventType].push(handler);return self},off:function(eventType,handler){var self=this;if(self.$$events===_undefined||self.$$events[eventType]===_undefined){return self} if(handler!==_undefined){var handlerPos=jQuery.inArray(handler,self.$$events[eventType]);if(handlerPos!=-1){self.$$events[eventType].splice(handlerPos,1)}}else{self.$$events[eventType]=[]} return self},trigger:function(eventType,extraParameters){var self=this;if(self.$$events===_undefined||self.$$events[eventType]===_undefined||self.$$events[eventType].length==0){return self} var args=arguments,params=(args.length>2||!jQuery.isArray(extraParameters))?Array.prototype.slice.call(args,1):extraParameters;params.unshift(self);for(var index=0;index1));!function($){$us.$window=$(_window);$us.$document=$(_document);$us.$html=$('html');$us.$body=$('.l-body:first');$us.$htmlBody=$us.$html.add($us.$body);$us.$canvas=$('.l-canvas:first');$us.usbPreview=function(){return $us.$body.hasClass('usb_preview')};if($us.iOS){$us.$html.removeClass('no-touch').addClass('ios-touch')}else if($.isMobile||$ush.isTouchend){$us.$html.removeClass('no-touch').addClass('touch')}else{}}(jQuery);!function($){$us.getCurrentState=function(){return''+$us.$body.usMod('state')};$us.currentStateIs=function(state){if(!state){return!1} if(!$.isArray(state)){state=[''+state]} return $.inArray($us.getCurrentState(),state)!==-1};$us.getAdminBarHeight=function(){return(_document.getElementById('wpadminbar')||{}).offsetHeight||0}}(jQuery);!function($,undefined){"use strict";function USCanvas(options){var self=this;var defaults={disableEffectsWidth:900,backToTopDisplay:100};self.options=$.extend({},defaults,options||{});self.$header=$('.l-header',$us.$canvas);self.$main=$('.l-main',$us.$canvas);self.$sections=$('> *:not(.l-header) .l-section',$us.$canvas);self.$firstSection=self.$sections.first();self.$secondSection=self.$sections.eq(1);self.$stickySections=self.$sections.filter('.type_sticky:visible');self.$fullscreenSections=self.$sections.filter('.full_height');self.$topLink=$('.w-toplink');self.type=$us.$canvas.usMod('type');self._headerPos=self.$header.usMod('pos');self.headerPos=self._headerPos;self.headerBg=self.$header.usMod('bg');self.rtl=$us.$body.hasClass('rtl');self.isScrolling=!1;self.isAndroid=/Android/i.test(_navigator.userAgent);if($us.$body.hasClass('us_iframe')){$('a:not([target])').each(function(){$(this).attr('target','_parent')});$(function($){var $framePreloader=$('.l-popup-box-content .g-preloader',_window.parent.document);$framePreloader.hide()})} if(self.hasStickyFirstSection()){$us.$body.addClass('sticky_first_section')} $us.$window.on('scroll',self._events.scroll.bind(self)).on('resize load',self._events.resize.bind(self)).on('scroll resize load',self._events.toggleClassIsSticky.bind(self));$ush.timeout(self._events.resize.bind(self),25);$ush.timeout(self._events.resize.bind(self),75)} USCanvas.prototype={getOffsetTop:function(){var top=Math.ceil($us.$canvas.offset().top);if($us.currentStateIs('mobiles')){top-=$us.getAdminBarHeight()} return top},isStickySection:function(){var self=this;return!!self.$stickySections.length},hasStickySection:function(){var self=this;if(self.isStickySection()){return self.$stickySections.hasClass('is_sticky')} return!1},hasPositionStickySections:function(){var self=this;if(self.isStickySection()){return self.$stickySections.filter(function(){return $(this).css('position')=='sticky'}).length} return!1},getStickySectionHeight:function(){var self=this,stickySectionHeight=0;if(self.isStickySection()){var header=$us.header,$stickySection=self.$stickySections.first();stickySectionHeight=$stickySection.outerHeight(!0);if(self.hasStickyFirstSection()&&header.isHorizontal()&&!header.isStatic()){stickySectionHeight-=header.getCurrentHeight()}} return stickySectionHeight},hasStickyFirstSection:function(){var self=this,$first=self.$stickySections.first();return self.isStickySection()&&$first.index()===0&&$first.hasClass('is_sticky')},isAfterStickySection:function(node){var $node=$(node);if(!$node.length){return!1} if(!$node.hasClass('l-section')){$node=$node.closest('.l-section')} return $node.index()>this.$stickySections.index()},getHeightFirstSection:function(){return this.$firstSection.length?parseFloat(this.$firstSection.outerHeight(!0)):0},_events:{scroll:function(){var self=this,scrollTop=parseInt($us.$window.scrollTop());self.$topLink.toggleClass('active',(scrollTop>=self.winHeight*self.options.backToTopDisplay/100));if(self.isAndroid){if(self.pid){$ush.clearTimeout(self.pid)} self.isScrolling=!0;self.pid=$ush.timeout(function(){self.isScrolling=!1},100)}},resize:function(){var self=this;self.winHeight=parseInt($us.$window.height());self.winWidth=parseInt($us.$window.width());$us.$body.toggleClass('disable_effects',(self.winWidth0&&$(_window.parent).height()>outerHeight){$frameContent.css('height',outerHeight)}else{$frameContent.css('height','')}} self._events.scroll.call(self)},toggleClassIsSticky:function(){var self=this;if(!self.isStickySection()){return} self.$stickySections.each(function(_,section){var $section=$(section),offsetTop=section.getBoundingClientRect().top-parseInt($section.css('top'));$section.toggleClass('is_sticky',(parseInt(offsetTop)===0&&$section.css('position')=='sticky'))})}}};$us.canvas=new USCanvas($us.canvasOptions||{})}(jQuery);!function($){$.fn.resetInlineCSS=function(){var self=this,args=[].slice.call(arguments);if(args.length&&$.isArray(args[0])){args=args[0]} for(var index=0;index=2){self.resetInlineCSS('transition');prevTimers.map(clearTimeout);self.removeData('animation-timers')} return self};$.fn.performCSSTransition=function(css,duration,onFinish,easing,delay){duration=duration||250;delay=delay||25;easing=easing||'ease';var self=this,transition=[];self.clearPreviousTransitions();for(var attr in css){if(!css.hasOwnProperty(attr)){continue} transition.push(attr+' '+(duration/1000)+'s '+easing)} transition=transition.join(', ');self.css({transition:transition});var timer1=setTimeout(function(){self.css(css)},delay);var timer2=setTimeout(function(){self.resetInlineCSS('transition');if($.isFunction(onFinish)){onFinish()}},duration+delay);self.data('animation-timers',timer1+','+timer2)};$.fn.slideDownCSS=function(duration,onFinish,easing,delay){var self=this;if(self.length==0){return} self.clearPreviousTransitions();self.resetInlineCSS('padding-top','padding-bottom');var timer1=setTimeout(function(){var paddingTop=parseInt(self.css('padding-top')),paddingBottom=parseInt(self.css('padding-bottom'));self.css({visibility:'hidden',position:'absolute',height:'auto','padding-top':0,'padding-bottom':0,display:'block'});var height=self.height();self.css({overflow:'hidden',height:'0px',opacity:0,visibility:'',position:''});self.performCSSTransition({opacity:1,height:height+paddingTop+paddingBottom,'padding-top':paddingTop,'padding-bottom':paddingBottom},duration,function(){self.resetInlineCSS('overflow').css('height','auto');if(typeof onFinish=='function'){onFinish()}},easing,delay)},25);self.data('animation-timers',timer1+',null')};$.fn.slideUpCSS=function(duration,onFinish,easing,delay){var self=this;if(self.length==0){return} self.clearPreviousTransitions();self.css({height:self.outerHeight(),overflow:'hidden','padding-top':self.css('padding-top'),'padding-bottom':self.css('padding-bottom')});self.performCSSTransition({height:0,opacity:0,'padding-top':0,'padding-bottom':0},duration,function(){self.resetInlineCSS('overflow','padding-top','padding-bottom').css({display:'none'});if(typeof onFinish=='function'){onFinish()}},easing,delay)};$.fn.fadeInCSS=function(duration,onFinish,easing,delay){var self=this;if(self.length==0){return} self.clearPreviousTransitions();self.css({opacity:0,display:'block'});self.performCSSTransition({opacity:1},duration,onFinish,easing,delay)};$.fn.fadeOutCSS=function(duration,onFinish,easing,delay){var self=this;if(self.length==0){return} self.performCSSTransition({opacity:0},duration,function(){self.css('display','none');if($.isFunction(onFinish)){onFinish()}},easing,delay)}}(jQuery);jQuery(function($){"use strict";if(_document.cookie.indexOf('us_cookie_notice_accepted=true')!==-1){$('.l-cookie').remove()}else{$us.$document.on('click','#us-set-cookie',function(e){e.preventDefault();e.stopPropagation();var d=new Date();d.setFullYear(d.getFullYear()+1);_document.cookie='us_cookie_notice_accepted=true; expires='+d.toUTCString()+'; path=/;';if(location.protocol==='https:'){_document.cookie+=' secure;'} $('.l-cookie').remove()})} var USPopupLink=function(context,options){var $links=$('a[ref=magnificPopup][class!=direct-link]:not(.inited)',context||_document),defaultOptions={fixedContentPos:!0,mainClass:'mfp-fade',removalDelay:300,type:'image'};if($links.length){$us.getScript($us.templateDirectoryUri+'/common/js/vendor/magnific-popup.js',function(){$links.addClass('inited').magnificPopup($.extend({},defaultOptions,options||{}))})}};$.fn.wPopupLink=function(options){return this.each(function(){$(this).data('wPopupLink',new USPopupLink(this,options))})};$us.$document.wPopupLink();(function(){var $footer=$('.l-footer');if($us.$body.hasClass('footer_reveal')&&$footer.length&&$footer.html().trim().length){var usFooterReveal=function(){var footerHeight=$footer.innerHeight();if(_window.innerWidth>parseInt($us.canvasOptions.columnsStackingWidth)-1){$us.$canvas.css('margin-bottom',Math.round(footerHeight)-1)}else{$us.$canvas.css('margin-bottom','')}};usFooterReveal();$us.$window.on('resize load',usFooterReveal)}})();var $usYTVimeoVideoContainer=$('.with_youtube, .with_vimeo');if($usYTVimeoVideoContainer.length){$us.$window.on('resize load',function(){$usYTVimeoVideoContainer.each(function(){var $container=$(this),$frame=$container.find('iframe').first(),cHeight=$container.innerHeight(),cWidth=$container.innerWidth(),fWidth='',fHeight='';if(cWidth/cHeight<16/9){fWidth=cHeight*(16/9);fHeight=cHeight}else{fWidth=cWidth;fHeight=fWidth*(9/16)} $frame.css({'width':Math.round(fWidth),'height':Math.round(fHeight),})})})}});(function($,undefined){"use strict";function USWaypoints(){var self=this;self.waypoints=[];$us.$canvas.on('contentChange',self._countAll.bind(self));$us.$window.on('resize load',self._events.resize.bind(self)).on('scroll scroll.waypoints',self._events.scroll.bind(self));$ush.timeout(self._events.resize.bind(self),75);$ush.timeout(self._events.scroll.bind(self),75)} USWaypoints.prototype={_events:{scroll:function(){var self=this,scrollTop=parseInt($us.$window.scrollTop());scrollTop=(scrollTop>=0)?scrollTop:0;for(var i=0;i *:first',self.$container);self.contentHeight=self.$container.data('content-height')||200;self.$container.on('click','.collapsible-content-more, .collapsible-content-less',self._events.toggleContent.bind(self));if(!self.$container.closest('.owl-carousel').length){self.initHeightCheck.call(self)}},initHeightCheck:function(){var self=this;var height=self.$firstElm.css('height',self.contentHeight).height();self.$firstElm.css('height','');var elmHeight=self.$firstElm.height();if(elmHeight&&elmHeight<=height){$('.toggle-links',self.$container).hide();self.$firstElm.css('height','');self.$container.removeClass('with_collapsible_content')}else{$('.toggle-links',self.$container).show();self.$firstElm.css('height',self.contentHeight)}},_isVisible:function(){var self=this;if(!self.$container.length){return!1} var w=_window,d=_document,rect=self.$container[0].getBoundingClientRect(),containerPosition={top:w.pageYOffset+rect.top,left:w.pageXOffset+rect.left,right:w.pageXOffset+rect.right,bottom:w.pageYOffset+rect.bottom},windowPosition={top:w.pageYOffset,left:w.pageXOffset,right:w.pageXOffset+d.documentElement.clientWidth,bottom:w.pageYOffset+d.documentElement.clientHeight};return(containerPosition.bottom>windowPosition.top&&containerPosition.topwindowPosition.left&&containerPosition.left-1||href.indexOf('#')<0||(href.substr(0,2)=='/#'&&_location.search&&_pathname=='/')||(hasProtocol&&href.indexOf(_location.origin)!==0)||(hasPageId&&href.indexOf((_location.search.match(patternPageId)||[])[1])==-1)||(href.charAt(0)=='/'&&!hasPageId&&!patternPathname.test(href))){return} if(hash!=''&&hash!='#'){if(self.blocks[hash]===_undefined){var $target=$(hash),$type='';if($target.length==0){return} if($target.hasClass('g-cols')&&$target.parent().children().length==1){$target=$target.closest('.l-section')} if($target.hasClass('w-tabs-section')){var $newTarget=$target.closest('.w-tabs');if(!$newTarget.hasClass('accordion')){$target=$newTarget} $type='tab'}else if($target.hasClass('w-tabs')){$type='tabs'} self.blocks[hash]={target:$target,type:$type};self._countPosition(hash)} if($anchor.parent().length>0&&$anchor.parent().hasClass('menu-item')){var $menuIndicator=$anchor.closest('.menu-item');self.blocks[hash].menuItems=(self.blocks[hash].menuItems||$()).add($menuIndicator);var $menuAncestors=$menuIndicator.parents('.menu-item-has-children');if($menuAncestors.length>0){self.blocks[hash].menuAncestors=(self.blocks[hash].menuAncestors||$()).add($menuAncestors)}}else{self.blocks[hash].buttons=(self.blocks[hash].buttons||$()).add($anchor)}} $anchor.on('click',function(event){event.preventDefault();if($anchor.hasClass('w-nav-anchor')&&$anchor.closest('.menu-item').hasClass('menu-item-has-children')&&$anchor.closest('.w-nav').hasClass('type_mobile')){var menuOptions=$anchor.closest('.w-nav').find('.w-nav-options:first')[0].onclick()||{},dropByLabel=$anchor.parents('.menu-item').hasClass('mobile-drop-by_label'),dropByArrow=$anchor.parents('.menu-item').hasClass('mobile-drop-by_arrow');if(dropByLabel||(menuOptions.mobileBehavior&&!dropByArrow)){return!1}} if($anchor.attr('href')==='#'&&$anchor.closest('.w-popup-wrap').length){return!1} self.scrollTo(hash,!0);if(typeof self.blocks[hash]!=='undefined'){var block=self.blocks[hash];if($.inArray(block.type,['tab','tabs'])!==-1){var $linkedSection=block.target.find('.w-tabs-section[id="'+hash.substr(1)+'"]');if(block.type==='tabs'){$linkedSection=block.target.find('.w-tabs-section:first')}else if(block.target.hasClass('w-tabs-section')){$linkedSection=block.target} if($linkedSection.length){$linkedSection.find('.w-tabs-section-header').trigger('click')}}else if(block.menuItems!==_undefined&&$us.currentStateIs(['mobiles','tablets'])&&$us.$body.hasClass('header-show')){$us.$body.removeClass('header-show')}}})})},getPlacePosition:function(place){var self=this,data={newY:0,type:''};if(place===''||place==='#'){data.newY=0;data.placeType='top'}else if(self.blocks[place]!==_undefined){self._countPosition(place);data.newY=self.blocks[place].top;data.placeType='hash';place=self.blocks[place].target}else if(place instanceof $){if(place.hasClass('w-tabs-section')){var newPlace=place.closest('.w-tabs');if(!newPlace.hasClass('accordion')){place=newPlace}} data.newY=place.offset().top;data.placeType='element'}else{data.newY=place} if($us.canvas.isStickySection()&&$us.canvas.hasPositionStickySections()&&!$(place).hasClass('type_sticky')&&$us.canvas.isAfterStickySection(place)){data.newY-=$us.canvas.getStickySectionHeight()} return data},scrollTo:function(place,animate){var self=this,$place=$(place);if($place.closest('.w-popup-wrap').length){self.scrollToPopupContent(place);return!0} var offset=self.getPlacePosition.call(self,place),indicateActive=function(){if(offset.type==='hash'){self._indicatePosition(place)}else{self.scroll()}};if(animate){if(navigator.userAgent.match(/iPad/i)!=null&&$('.us_iframe').length&&offset.type=='hash'){$place[0].scrollIntoView({behavior:"smooth",block:"start"})} var scrollTop=$us.$window.scrollTop(),scrollDirections=scrollTop=0)?scrollTop:0;if(!self.isScrolling){var activeHash;for(var hash in self.blocks){if(!self.blocks[hash]){continue} var top=self.blocks[hash].top,$target=self.blocks[hash].target;if(!$us.header.isHorizontal()){top-=$us.canvas.getOffsetTop()}else{if($us.header.isStickyEnabled()){top-=$us.header.getCurrentHeight(!0)} if($us.canvas.hasStickySection()){top-=$us.canvas.getStickySectionHeight()}} top=$ush.parseInt(top.toFixed(0));if(scrollTop>=top&&scrollTop<=(top+$target.outerHeight(!1))){activeHash=hash}} $ush.debounce_fn_1ms(self._indicatePosition.bind(self,activeHash))}},resize:function(){var self=this;$ush.timeout(function(){self._countAllPositions();self.scroll()},150);self._countAllPositions();self.scroll()}};$(function(){$us.scroll=new USScroll($us.scrollOptions||{})})}(jQuery);(function($){"use strict";var USAnimate=function(container){var self=this;self.$container=$(container);self.$items=$('[class*="us_animate_"]:not(.off_autostart)',self.$container);self.$items.each(function(_,item){var $item=$(item);if($item.data('_animate_inited')||$item.hasClass('off_autostart')){return} $item.data('_animate_inited',!0);$us.waypoints.add($item,'12%',function($node){if(!$node.hasClass('start')){$ush.timeout(function(){$node.addClass('start')},20)}});$item.one('us_startAnimate',function(){if(!$item.hasClass('start')){$item.addClass('start')}})})};window.USAnimate=USAnimate;new USAnimate(document);$('.wpb_animate_when_almost_visible').each(function(){$us.waypoints.add($(this),'12%',function($node){if(!$node.hasClass('wpb_start_animation')){$ush.timeout(function(){$node.addClass('wpb_start_animation')},20)}})})})(jQuery);!function($){"use strict";$us.CommnentsForm=function(container,options){this.init(container,options)};$us.CommnentsForm.prototype={init:function(container,options){this.$container=$(container);this.$form=this.$container.find('form.comment-form');if(!this.$form.length){return} this.$jsonContainer=this.$container.find('.us-comments-json');if(!this.$jsonContainer.length){return} this.jsonData=this.$jsonContainer[0].onclick()||{};this.$jsonContainer.remove();this.$fields={content:{field:this.$form.find('textarea'),msg:this.jsonData.no_content_msg||'Please enter a Message'},name:{field:this.$form.find('.for_text input[type="text"]'),msg:this.jsonData.no_name_msg||'Please enter your Name'},email:{field:this.$form.find('.for_email input[type="email"]'),msg:this.jsonData.no_email_msg||'Please enter a valid email address.'}};this._events={formSubmit:this.formSubmit.bind(this)};this.$form.on('submit',this._events.formSubmit)},formSubmit:function(event){this.$form.find('.w-form-row.check_wrong').removeClass('check_wrong');this.$form.find('.w-form-state').html('');for(var i in this.$fields){if(this.$fields[i].field.length==0){continue} if(this.$fields[i].field.val()==''&&this.$fields[i].field.attr('data-required')){this.$fields[i].field.closest('.w-form-row').toggleClass('check_wrong');this.$fields[i].field.closest('.w-form-row').find('.w-form-row-state').html(this.$fields[i].msg);event.preventDefault()}}}};$.fn.CommnentsForm=function(options){return this.each(function(){$(this).data('CommnentsForm',new $us.CommnentsForm(this,options))})};$(function(){$('.w-post-elm.post_comments.layout_comments_template').CommnentsForm();$('.l-section.for_comments').CommnentsForm()})}(jQuery);(function($){"use strict";$.fn.wDropdown=function(){return this.each(function(){var $self=$(this),$current=$self.find('.w-dropdown-current'),$anchors=$self.find('a'),openEventName='click',closeEventName='mouseup touchstart mousewheel DOMMouseScroll touchstart',justOpened=!1;if($self.hasClass('open_on_hover')){openEventName='mouseenter';closeEventName='mouseleave'} var closeList=function(){$self.removeClass('opened');$us.$window.off(closeEventName,closeListEvent)};var closeListEvent=function(e){if(closeEventName!='mouseleave'&&$self.has(e.target).length!==0){return} e.stopPropagation();e.preventDefault();closeList()};var openList=function(){$self.addClass('opened');if(closeEventName=='mouseleave'){$self.on(closeEventName,closeListEvent)}else{$us.$window.on(closeEventName,closeListEvent)} justOpened=!0;$ush.timeout(function(){justOpened=!1},500)};var openListEvent=function(e){if(openEventName=='click'&&$self.hasClass('opened')&&!justOpened){closeList();return} openList()};$current.on(openEventName,openListEvent);$anchors.on('focus.upsolution',openList);$self.on('click','a[href$="#"]',function(e){e.preventDefault()}).on('keydown',function(e){var keyCode=e.keyCode||e.which;if(keyCode==9){var $target=$(e.target)||{},index=$anchors.index($target);if(e.shiftKey){if(index===0){closeList()}}else{if(index===$anchors.length-1){closeList()}}} if(keyCode==27){closeList()}})})};$(function(){$('.w-dropdown').wDropdown()})})(jQuery);!function($,undefined){var _window=window,_document=document,_undefined=undefined;_window.$us=_window.$us||{};$us.WForm=function(container){var self=this;self.$form=$(container);if(!self.$form.hasClass('for_cform')){self.$form=$('.w-form.for_cform',container)} self.$dateFields=$('.w-form-row.for_date input',self.$form);self.$message=$('.w-form-message',self.$form);self.$submit=$('.w-btn',self.$form);self.options={};self.isFileValid=!0;self.pickerOptions={};var $formJson=$('.w-form-json',self.$form);if($formJson.is('[onclick]')){self.options=$formJson[0].onclick()||{};if(!$us.usbPreview()){$formJson.remove()}} if(self.$dateFields.length){$(function(){self._initDateField()})} $('input[type=text],\ input[type=email],\ input[type=tel],\ input[type=number],\ input[type=date],\ input[type=search],\ input[type=url],\ input[type=password],\ textarea',self.$form).each(function(_,input){var $input=$(input),$row=$input.closest('.w-form-row');if($input.attr('type')==='hidden'){return} $row.toggleClass('not-empty',$input.val()!='');$input.on('input change',function(){$row.toggleClass('not-empty',$input.val()!='')})});self._events={changeFile:self._changeFile.bind(self),submit:self._submit.bind(self)};self.$form.on('change','input[type=file]:visible',self._events.changeFile).on('submit',self._events.submit)};$.extend($us.WForm.prototype,{getExtension:function(name){return(''+name).split('.').pop()},_validExtension:function(file,accepts){if(!accepts){return!0} var self=this;accepts=(''+accepts).split(',');for(var i in accepts){var accept=(''+accepts[i]).trim();if(!accept){continue} if(accept.indexOf('/')>-1){var acceptMatches=accept.split('/');if(file.type===accept||(acceptMatches[1]==='*'&&(''+file.type).indexOf(acceptMatches[0])===0)){return!0}}else if(self.getExtension(file.name)===accept.replace(/[^A-z\d]+/,'')){return!0}} return!1},_requiredValidation:function(){var self=this;var errors=0;$('[data-required=true]',self.$form).each(function(_,input){var $input=$(input),isEmpty=$input.is('[type=checkbox]')?!$input.is(':checked'):$input.val()=='',$row=$input.closest('.w-form-row');if($row.hasClass('for_checkboxes')){return!0} if(input.type==='file'){isEmpty=isEmpty||!self.isFileValid} $row.toggleClass('check_wrong',isEmpty);if(isEmpty){errors ++}});$('.for_checkboxes.required',self.$form).each(function(_,elm){var $input=$('input[type=checkbox]',elm),$row=$input.closest('.w-form-row'),isEmpty=!$input.is(':checked');$row.toggleClass('check_wrong',isEmpty);if(isEmpty){errors ++}});return!errors},_initDateField:function(){var self=this;$.each(self.$dateFields,function(_,input){var $input=$(input);self.pickerOptions.dateFormat=$input.data('date-format');self.pickerOptions.onClose=function(){$input.closest('.w-form-row').removeClass('focused')};try{$input.datepicker(self.pickerOptions);if($input.closest('.w-popup-wrap').length){$input.on('click',function(e){let $datepicker=$('#ui-datepicker-div'),datepickerHeight=$datepicker.outerHeight(),inputBounds=e.currentTarget.getBoundingClientRect();if(_window.innerHeight-(inputBounds.bottom+datepickerHeight)>0){$datepicker.css({position:'fixed',left:inputBounds.left,top:(inputBounds.top+inputBounds.height)})}else{$datepicker.css({position:'fixed',left:inputBounds.left,top:(inputBounds.top-datepickerHeight),})}})}}catch(e){}})},_changeFile:function(e){var self=this,errMessage='',input=e.target,$input=$(input),accept=$input.attr('accept')||'',maxSize=$input.data('max_size')||$input.data('std')||0;if(input.files.length){for(var i in input.files){if(errMessage){break} var file=input.files[i];if(!(file instanceof File)){continue} if(!self._validExtension(file,accept)){errMessage=(self.options.messages.err_extension||'').replace('%s',self.getExtension(file.name))} if(!errMessage&&file.size>(parseFloat(maxSize)*1048576)){errMessage=(self.options.messages.err_size||'').replace('%s',maxSize)}}} $input.closest('.for_file').toggleClass('check_wrong',!(self.isFileValid=!errMessage)).find('.w-form-row-state').html(errMessage||self.options.messages.err_empty)},_submit:function(e){e.preventDefault();var self=this;self.$message.usMod('type',!1).html('');if(self.$submit.hasClass('loading')||!self._requiredValidation()||!self.isFileValid){return} self.$submit.addClass('loading');$.ajax({type:'POST',url:self.options.ajaxurl,data:_window.FormData?new FormData(self.$form[0]):self.$form.serialize(),cache:!1,processData:!1,contentType:!1,dataType:'json',success:function(res){$('.w-form-row.check_wrong',self.$form).removeClass('check_wrong');if(res.success){self.$message.usMod('type','success').html(res.data);$('.w-form-row.not-empty',self.$form).removeClass('not-empty');$('input[type=text], input[type=email], textarea',self.$form).val('');self.$form.trigger('usCformSuccess',res).get(0).reset()}else{if($.isPlainObject(res.data)){for(var fieldName in res.data){if(fieldName==='empty_message'){$resultField.usMod('type','error');continue} $('[name="'+fieldName+'"]',self.$form).closest('.w-form-row').addClass('check_wrong').find('.w-form-row-state').html(res.data[fieldName].error_message||'')}}else{self.$message.usMod('type','error').html(res.data)}}},complete:function(){self.$submit.removeClass('loading')}})}});$.fn.wForm=function(){return this.each(function(){$(this).data('wForm',new $us.WForm(this))})};$('.w-form.for_cform').wForm();$(_document).on('focus blur','.w-form-row-field:not(.for_date) input, .w-form-row-field textarea',function(e){$(e.target).closest('.w-form-row').toggleClass('focused',e.type=='focusin')})}(jQuery);(function($,undefined){"use strict";var _document=document,_undefined=undefined,_window=window;$us.WGrid=function(container,options){this.init(container,options)};$us.WGrid.prototype={init:function(container,options){this.$container=$(container);this.$filters=$('.g-filters-item',this.$container);this.$list=$('.w-grid-list',this.$container);this.$loadmore=$('.g-loadmore',this.$container);this.$pagination=$('> .pagination',this.$container);this.$preloader=$('.w-grid-preloader',this.$container);this.$style=$('> style:first',this.$container);this.loading=!1;this.changeUpdateState=!1;this.gridFilter=null;this.curFilterTaxonomy='';this.paginationType=this.$pagination.length?'regular':(this.$loadmore.length?'ajax':'none');this.filterTaxonomyName=this.$list.data('filter_taxonomy_name')?this.$list.data('filter_taxonomy_name'):'category';if(this.$container.data('gridInit')==1){return} this.$container.data('gridInit',1);var $jsonContainer=$('.w-grid-json',this.$container);if($jsonContainer.length&&$jsonContainer.is('[onclick]')){this.ajaxData=$jsonContainer[0].onclick()||{};if(!$us.usbPreview())$jsonContainer.remove()}else{this.ajaxData={};this.ajaxUrl=''} this.carouselSettings=this.ajaxData.carousel_settings;this.breakpoints=this.ajaxData.carousel_breakpoints||{};if(this.$list.hasClass('owl-carousel')){$us.getScript($us.templateDirectoryUri+'/common/js/vendor/owl.carousel.js',function(){this.carouselOptions={autoHeight:this.carouselSettings.autoHeight,autoplay:this.carouselSettings.autoplay,autoplayHoverPause:!0,autoplayTimeout:this.carouselSettings.timeout,center:this.carouselSettings.center,dots:this.carouselSettings.dots,items:parseInt(this.carouselSettings.items),loop:this.carouselSettings.loop,mouseDrag:!jQuery.isMobile,nav:this.carouselSettings.nav,navElement:'button',navText:['',''],responsive:{},rewind:!this.carouselSettings.loop,rtl:$('.l-body').hasClass('rtl'),slideBy:this.carouselSettings.slideby,slideTransition:this.carouselSettings.transition,smartSpeed:this.carouselSettings.speed};if(this.carouselSettings.smooth_play==1){this.carouselOptions.slideTransition='linear';this.carouselOptions.autoplaySpeed=this.carouselSettings.timeout;this.carouselOptions.smartSpeed=this.carouselSettings.timeout;this.carouselOptions.slideBy=1} if(this.carouselSettings.carousel_fade){$.extend(this.carouselOptions,{animateOut:'fadeOut',animateIn:'fadeIn',})} $.each(this.breakpoints,function(breakpointWidth,breakpointArgs){if(breakpointArgs!==_undefined&&breakpointArgs.items!==_undefined){this.carouselOptions.responsive[breakpointWidth]=breakpointArgs;this.carouselOptions.responsive[breakpointWidth].items=parseInt(breakpointArgs.items)}}.bind(this));this.$list.on('initialized.owl.carousel',function(e){var $list=this.$list,$toggleLinks=$('[data-content-height]',e.currentTarget);$toggleLinks.each(function(_,item){var $item=$(item),collapsibleContent=$item.data('usCollapsibleContent');if(collapsibleContent===_undefined){$item.usCollapsibleContent();collapsibleContent=$item.data('usCollapsibleContent')} if(collapsibleContent instanceof $us.collapsibleContent){collapsibleContent.initHeightCheck();$ush.timeout(function(){$list.trigger('refresh.owl.carousel')},1)}});if($.isMobile&&$list.closest('.w-tabs-section.active').length){$ush.timeout(function(){$list.trigger('refresh.owl.carousel')},50)} if(this.carouselSettings.autoHeight){$toggleLinks.on('toggleContent',function(){$list.trigger('refresh.owl.carousel')})}}.bind(this)).on('mousedown.owl.core',function(){var $target=$(this);if($('[data-content-height]',$target).length&&!jQuery.isMobile){var owlCarousel=$target.data('owl.carousel');owlCarousel.$stage.off('mousedown.owl.core')}});this.$list.owlCarousel(this.carouselOptions);var owlCarousel=this.$list.data('owl.carousel');if(owlCarousel&&this.carouselSettings.smooth_play){this.$list.trigger('next.owl.carousel')} if(owlCarousel&&this.carouselSettings.aria_labels.prev&&this.carouselSettings.aria_labels.next){owlCarousel.$element.find('.owl-prev').attr('aria-label',this.carouselSettings.aria_labels.prev);owlCarousel.$element.find('.owl-next').attr('aria-label',this.carouselSettings.aria_labels.next)}}.bind(this))} if(this.$container.hasClass('open_items_in_popup')&&!this.$container.hasClass('us_product_list')&&!$ush.isUndefined(this.ajaxData)){this.lightboxOpened=!1;this.lightboxTimer=null;this.originalURL=_window.location.href;this.$popup=$('.l-popup',this.$container);this.$popupBox=$('.l-popup-box',this.$popup);this.$popupContentPreloader=$('.l-popup-box-content .g-preloader',this.$popup);this.$popupContentFrame=$('.l-popup-box-content-frame',this.$popup);this.$popupNextArrow=$('.l-popup-arrow.to_next',this.$popup);this.$popupPrevArrow=$('.l-popup-arrow.to_prev',this.$popup);$us.$body.append(this.$popup);if(this.$list.hasClass('owl-carousel')){$us.getScript($us.templateDirectoryUri+'/common/js/vendor/owl.carousel.js',this.initLightboxAnchors.bind(this))}else{this.initLightboxAnchors()} this.$popup.on('click','.l-popup-closer',this.hideLightbox.bind(this)).on('click','.l-popup-box',this.hideLightbox.bind(this)).on('click','.l-popup-box-content',function(e){e.stopPropagation()});$us.$window.on('resize',function(){if(this.lightboxOpened&&$us.$window.width()<$us.canvasOptions.disableEffectsWidth){this.hideLightbox()}}.bind(this))} if(this.$list.hasClass('owl-carousel')){return} if(this.paginationType!='none'||this.$filters.length){if(this.ajaxData==_undefined){return} this.templateVars=this.ajaxData.template_vars||{};if(this.filterTaxonomyName){this.initialFilterTaxonomy=this.$list.data('filter_default_taxonomies')?this.$list.data('filter_default_taxonomies').toString().split(','):'';this.curFilterTaxonomy=this.initialFilterTaxonomy} this.curPage=this.ajaxData.current_page||1;this.infiniteScroll=this.ajaxData.infinite_scroll||0} if(this.$container.hasClass('with_isotope')){$us.getScript($us.templateDirectoryUri+'/common/js/vendor/isotope.js',function(){this.$list.imagesLoaded(function(){var smallestItemSelector,isotopeOptions={itemSelector:'.w-grid-item',layoutMode:(this.$container.hasClass('isotope_fit_rows'))?'fitRows':'masonry',isOriginLeft:!$('.l-body').hasClass('rtl'),transitionDuration:0};if(this.$list.find('.size_1x1').length){smallestItemSelector='.size_1x1'}else if(this.$list.find('.size_1x2').length){smallestItemSelector='.size_1x2'}else if(this.$list.find('.size_2x1').length){smallestItemSelector='.size_2x1'}else if(this.$list.find('.size_2x2').length){smallestItemSelector='.size_2x2'} if(smallestItemSelector){smallestItemSelector=smallestItemSelector||'.w-grid-item';isotopeOptions.masonry={columnWidth:smallestItemSelector}} this.$list.on('layoutComplete',function(){if(_window.USAnimate){$('.w-grid-item.off_autostart',this.$list).removeClass('off_autostart');new USAnimate(this.$list)} $us.$window.trigger('scroll.waypoints')}.bind(this));this.$list.isotope(isotopeOptions);if(this.paginationType=='ajax'){this.initAjaxPagination()} $us.$canvas.on('contentChange',function(){this.$list.imagesLoaded(function(){this.$list.isotope('layout')}.bind(this))}.bind(this))}.bind(this))}.bind(this))}else if(this.paginationType=='ajax'){this.initAjaxPagination()} this.$filters.each(function(index,filter){var $filter=$(filter),taxonomy=$filter.data('taxonomy');$filter.on('click',function(){if(taxonomy!=this.curFilterTaxonomy){if(this.loading){return} this.setState(1,taxonomy);this.$filters.removeClass('active');$filter.addClass('active')}}.bind(this))}.bind(this));if(this.$container.closest('.l-main').length){$us.$body.on('us_grid.updateState',this._events.updateState.bind(this)).on('us_grid.updateOrderBy',this._events.updateOrderBy.bind(this))} this.$list.on('click','[ref=magnificPopup]',this._events.initMagnificPopup.bind(this))},_events:{updateState:function(e,params,page,gridFilter){var $container=this.$container;if(!$container.is('[data-filterable="true"]')||!$container.hasClass('used_by_grid_filter')||(!$container.is(':visible')&&!$container.hasClass('hidden'))){return} page=page||1;this.changeUpdateState=!0;this.gridFilter=gridFilter;if(this.ajaxData===_undefined){this.ajaxData={}} if(!this.hasOwnProperty('templateVars')){this.templateVars=this.ajaxData.template_vars||{query_args:{}}} this.templateVars.us_grid_filter_params=params;if(this.templateVars.query_args!==!1){this.templateVars.query_args.paged=page} this.templateVars.filters_args=gridFilter.filtersArgs||{};this.setState(page);if(this.paginationType==='regular'&&/page(=|\/)/.test(location.href)){var url=location.href.replace(/(page(=|\/))(\d+)(\/?)/,'$1'+page+'$2');if(history.replaceState){history.replaceState(_document.title,_document.title,url)}}},updateOrderBy:function(e,orderby,page,gridOrder){if(!this.$container.is('[data-filterable="true"]')||!this.$container.hasClass('used_by_grid_order')){return} page=page||1;this.changeUpdateState=!0;if(!this.hasOwnProperty('templateVars')){this.templateVars=this.ajaxData.template_vars||{query_args:{}}} if(this.templateVars.query_args!==!1){this.templateVars.query_args.paged=page} this.templateVars.grid_orderby=orderby;this.setState(page)},initMagnificPopup:function(e){e.stopPropagation();e.preventDefault();var $target=$(e.currentTarget);if($target.data('magnificPopup')===_undefined){$target.magnificPopup({type:'image',mainClass:'mfp-fade'});$target.trigger('click')}}},initLightboxAnchors:function(){var self=this;$('.w-grid-item-anchor:not(.lightbox_init)',self.$list).on('click',function(e){var $item=$(e.target).closest('.w-grid-item'),url=$('.w-grid-item-anchor',$item).attr('href');if(!$item.hasClass('custom-link')){if($us.$window.width()>=$us.canvasOptions.disableEffectsWidth){e.stopPropagation();e.preventDefault();self.openLightboxItem(url,$item);$item.addClass('lightbox_init')}}})},initAjaxPagination:function(){this.$loadmore.on('click',function(){if(this.curPage *',$result),$items=$container.children(),smallestItemSelector;this.$container.toggleClass('hidden',!$items.length);$container.imagesLoaded(function(){this.beforeAppendItems($items);$items.appendTo(this.$list);$container.html('');var $sliders=$items.find('.w-slider');if(isotope){isotope.insert($items);isotope.reloadItems()} if($sliders.length){$us.getScript($us.templateDirectoryUri+'/common/js/vendor/royalslider.js',function(){$sliders.each(function(index,slider){$(slider).wSlider().find('.royalSlider').data('royalSlider').ev.on('rsAfterInit',function(){if(isotope){this.$list.isotope('layout')}})}.bind(this))}.bind(this))} if(isotope){if(this.$list.find('.size_1x1').length){smallestItemSelector='.size_1x1'}else if(this.$list.find('.size_1x2').length){smallestItemSelector='.size_1x2'}else if(this.$list.find('.size_2x1').length){smallestItemSelector='.size_2x1'}else if(this.$list.find('.size_2x2').length){smallestItemSelector='.size_2x2'} if(isotope.options.masonry){isotope.options.masonry.columnWidth=smallestItemSelector||'.w-grid-item'} this.$list.isotope('layout');this.$list.trigger('layoutComplete')} var $tabs=$('.w-tabs',$items);if($tabs.length>0){$tabs.wTabs()} if(this.paginationType=='ajax'){var $video=$('.w-video',$items);if($video.length>0){$video.wVideo()} if(page==1){var $jsonContainer=$result.find('.w-grid-json');if($jsonContainer.length){var ajaxData=$jsonContainer[0].onclick()||{};this.ajaxData.max_num_pages=ajaxData.max_num_pages||this.ajaxData.max_num_pages}else{this.ajaxData.max_num_pages=1}} if(this.templateVars.query_args.paged>=this.ajaxData.max_num_pages||!$items.length){this.$loadmore.addClass('done')}else{this.$loadmore.removeClass('done').removeClass('loading')} if(this.infiniteScroll){$us.waypoints.add(this.$loadmore,'-70%',function(){if(!this.loading){this.$loadmore.click()}}.bind(this))}else if(Math.round(this.prevScrollTop)!=Math.round($us.$window.scrollTop())){$us.$window.scrollTop(this.prevScrollTop)}}else if(this.paginationType==='regular'&&this.changeUpdateState){$('a[href]',$pagination).each(function(_,item){var $item=$(item),pathname=location.pathname.replace(/((\/page.*)?)\/$/,'');$item.attr('href',pathname+$item.attr('href'))});this.$pagination.html($pagination)} if(this.$container.hasClass('open_items_in_popup')){this.initLightboxAnchors()} var $result_none=$result.next('.w-grid-none');if(this.changeUpdateState&&$result_none.length){var $none=this.$container.next('.w-grid-none');if($none.length){$none.removeClass('hidden')}else{this.$container.after($result_none)} var $nextGrid=$('.w-grid:first',this.$container.next('.w-grid-none'));if($nextGrid.length){$nextGrid.wGrid()} this.none=!0} if(this.changeUpdateState&&this.gridFilter){var $jsonData=$result.filter('.w-grid-filter-json-data:first');if($jsonData.length){this.gridFilter.trigger('us_grid_filter.update-items-amount',$jsonData[0].onclick()||{})} $jsonData.remove()} var customStyles=$('style#grid-post-content-css',$result).html()||'';if(customStyles){if(!this.$style.length){this.$style=$('');this.$container.append(this.$style)} this.$style.text(this.$style.text()+customStyles)} $us.$canvas.resize();this.$preloader.removeClass('active');if(_window.USAnimate&&this.$container.hasClass('with_css_animation')){new USAnimate(this.$container)}}.bind(this));this._scrollToGrid();this.loading=!1;this.$container.trigger('USGridItemsLoaded')}.bind(this),error:function(){this.$loadmore.removeClass('loading')}.bind(this)});this.curPage=page;this.curFilterTaxonomy=taxonomy},_scrollToGrid:function(){var self=this;if(self.curPage!==1){return} var gridPos=$ush.parseInt(this.$container.offset().top),scrollTop=$us.$window.scrollTop();if(scrollTop>=gridPos||gridPos>=(scrollTop+_window.innerHeight)){$us.$htmlBody.stop(!0,!1).animate({scrollTop:(gridPos-$us.header.getCurrentHeight())},500)}},_hasScrollbar:function(){return _document.documentElement.scrollHeight>_document.documentElement.clientHeight},_getScrollbarSize:function(){if($us.scrollbarSize===_undefined){var scrollDiv=_document.createElement('div');scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';_document.body.appendChild(scrollDiv);$us.scrollbarSize=scrollDiv.offsetWidth-scrollDiv.clientWidth;_document.body.removeChild(scrollDiv)} return $us.scrollbarSize},openLightboxItem:function(itemUrl,$item){this.showLightbox();var prevIndex,nextIndex,currentIndex=0,items=$('.w-grid-item:visible:not(.custom-link)',this.$container).toArray();for(var i in items){if($item.is(items[i])){currentIndex=parseInt(i);break}} if(currentIndex>0){prevIndex=currentIndex-1} if(currentIndex0){this.$popupNextArrow.removeClass('hidden');this.$popupNextArrow.attr('title',$nextItem.find('.w-grid-item-title').text());this.$popupNextArrow.off('click').click(function(e){var $nextItemAnchor=$nextItem.find('.w-grid-item-anchor'),nextItemUrl=$nextItemAnchor.attr('href');e.stopPropagation();e.preventDefault();this.openLightboxItem(nextItemUrl,$nextItem)}.bind(this))}else{this.$popupNextArrow.attr('title','');this.$popupNextArrow.addClass('hidden')} if($prevItem.length>0){this.$popupPrevArrow.removeClass('hidden');this.$popupPrevArrow.attr('title',$prevItem.find('.w-grid-item-title').text());this.$popupPrevArrow.off('click').on('click',function(e){var $prevItemAnchor=$prevItem.find('.w-grid-item-anchor'),prevItemUrl=$prevItemAnchor.attr('href');e.stopPropagation();e.preventDefault();this.openLightboxItem(prevItemUrl,$prevItem)}.bind(this))}else{this.$popupPrevArrow.attr('title','');this.$popupPrevArrow.addClass('hidden')} if(itemUrl.indexOf('?')!==-1){this.$popupContentFrame.attr('src',itemUrl+'&us_iframe=1')}else{this.$popupContentFrame.attr('src',itemUrl+'?us_iframe=1')} if(history.replaceState){history.replaceState(null,null,itemUrl)} this.$popupContentFrame.off('load').on('load',function(){this.lightboxContentLoaded()}.bind(this))},lightboxContentLoaded:function(){this.$popupContentPreloader.css('display','none');this.$popupContentFrame.contents().find('body').off('keyup.usCloseLightbox').on('keyup.usCloseLightbox',function(e){if($ush.toLowerCase(e.key)==='escape'){this.hideLightbox()}}.bind(this))},showLightbox:function(){clearTimeout(this.lightboxTimer);this.$popup.addClass('active');this.lightboxOpened=!0;this.$popupContentPreloader.css('display','block');$us.$html.addClass('usoverlay_fixed');if(!$.isMobile){this.windowHasScrollbar=this._hasScrollbar();if(this.windowHasScrollbar&&this._getScrollbarSize()){$us.$html.css('margin-right',this._getScrollbarSize())}} this.lightboxTimer=setTimeout(function(){this.afterShowLightbox()}.bind(this),25)},afterShowLightbox:function(){clearTimeout(this.lightboxTimer);this.$container.on('keyup',function(e){if(this.$container.hasClass('open_items_in_popup')){if($ush.toLowerCase(e.key)==='escape'){this.hideLightbox()}}}.bind(this));this.$popupBox.addClass('show');$us.$canvas.trigger('contentChange');$us.$window.trigger('resize')},hideLightbox:function(){clearTimeout(this.lightboxTimer);this.lightboxOpened=!1;this.$popupBox.removeClass('show');if(history.replaceState){history.replaceState(null,null,this.originalURL)} this.lightboxTimer=setTimeout(function(){this.afterHideLightbox()}.bind(this),500)},afterHideLightbox:function(){this.$container.off('keyup');clearTimeout(this.lightboxTimer);this.$popup.removeClass('active');this.$popupContentFrame.attr('src','about:blank');$us.$html.removeClass('usoverlay_fixed');if(!$.isMobile){if(this.windowHasScrollbar){$us.$html.css('margin-right','')}}},beforeAppendItems:function($items){if($('[data-content-height]',$items).length){var handle=$ush.timeout(function(){$('[data-content-height]',$items).usCollapsibleContent();$ush.clearTimeout(handle)},1)}}};$.fn.wGrid=function(options){return this.each(function(){$(this).data('wGrid',new $us.WGrid(this,options))})};$(function(){$('.w-grid').wGrid()});$('.w-grid-list').each(function(){var $list=$(this);if(!$list.find('[ref=magnificPopupGrid]').length){return} $us.getScript($us.templateDirectoryUri+'/common/js/vendor/magnific-popup.js',function(){var delegateStr='a[ref=magnificPopupGrid]:visible',popupOptions;if($list.hasClass('owl-carousel')){delegateStr='.owl-item:not(.cloned) a[ref=magnificPopupGrid]'} popupOptions={type:'image',delegate:delegateStr,gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:$us.langOptions.magnificPopup.tPrev,tNext:$us.langOptions.magnificPopup.tNext,tCounter:$us.langOptions.magnificPopup.tCounter},removalDelay:300,mainClass:'mfp-fade',fixedContentPos:!0,callbacks:{beforeOpen:function(){var owlCarousel=$list.data('owl.carousel');if(owlCarousel&&owlCarousel.settings.autoplay){$list.trigger('stop.owl.autoplay')}},beforeClose:function(){var owlCarousel=$list.data('owl.carousel');if(owlCarousel&&owlCarousel.settings.autoplay){$list.trigger('play.owl.autoplay')}}}};$list.magnificPopup(popupOptions);if($list.hasClass('owl-carousel')){$list.on('initialized.owl.carousel',function(initEvent){var $currentList=$(initEvent.currentTarget),items={};$('.owl-item:not(.cloned)',$currentList).each(function(_,item){var $item=$(item),id=$item.find('[data-id]').data('id');if(!items.hasOwnProperty(id)){items[id]=$item}});$currentList.on('click','.owl-item.cloned',function(e){e.preventDefault();e.stopPropagation();var id=$('[data-id]',e.currentTarget).data('id');if(items.hasOwnProperty(id)){$('a[ref=magnificPopupGrid]',items[id]).trigger('click')}})})}})})})(jQuery);!function($,undefined){"use strict";var _document=document,_undefined=undefined;var abs=Math.abs;function usGridFilter(container,options){var self=this;self.filtersArgs={};self.options={filterPrefix:'filter',gridNotFoundMessage:!1,gridPaginationSelector:'.w-grid-pagination',gridSelector:'.w-grid[data-filterable="true"]:first',layout:'hor',mobileWidth:600,use_grid:'first'};self.$container=$(container);self.$filtersItem=$('.w-filter-item',container);if(self.$container.is('[onclick]')){$.extend(self.options,self.$container[0].onclick()||{});if(!$us.usbPreview()){self.$container.removeAttr('onclick')}} if(self.options.use_grid!=='first'){var $use_grid=$(self.options.use_grid);if($use_grid.length&&$use_grid.hasClass('w-grid')){self.$grid=$use_grid}} if($ush.isUndefined(self.$grid)){self.$grid=$('.l-main '+self.options.gridSelector,$us.$canvas)} var $filtersArgs=$('.w-filter-json-filters-args:first',self.$container);if($filtersArgs.length){self.filtersArgs=$filtersArgs[0].onclick()||{};$filtersArgs.remove()} if(!self.$grid.length&&self.options.gridNotFoundMessage){self.$container.prepend('
'+self.options.gridNotFoundMessage+'
')} self._events={changeFilter:self._changeFilter.bind(self),filterListCloser:self._filterListCloser.bind(self),filterOpener:self._filterOpener.bind(self),hideItem:self._hideItem.bind(self),loadPageNumber:self._loadPageNumber.bind(self),resetItem:self._resetItem.bind(self),resize:self._resize.bind(self),showHideAccordionItem:self._showHideAccordionItem.bind(self),showItem:self._showItem.bind(self),toggleItemValue:self._toggleItemValue.bind(self),updateItemsAmount:self._updateItemsAmount.bind(self),woocommerceOrdering:self._woocommerceOrdering.bind(self),};self.$grid.addClass('used_by_grid_filter');self.$container.on('click','.w-filter-opener',self._events.filterOpener).on('click','.w-filter-list-closer, .w-filter-list-panel > .w-btn',self._events.filterListCloser);self.$filtersItem.on('change','input, select',self._events.changeFilter).on('click','.w-filter-item-reset',self._events.resetItem);$(self.options.gridPaginationSelector,self.$grid).on('click','.page-numbers',self._events.loadPageNumber);$us.$window.on('resize load',$ush.debounce(self._events.resize,10));self.on('changeItemValue',self._events.toggleItemValue);if(self.$container.hasClass('show_on_click')){self.$filtersItem.on('click','.w-filter-item-title',self._events.showItem);$(_document).mouseup(self._events.hideItem)} $('form.woocommerce-ordering',$us.$canvas).off('change','select.orderby').on('change','select.orderby',self._events.woocommerceOrdering);$('.ui-slider',self.$container).each(function(_,node){var $node=$(node),$parent=$node.parent(),valueFormat=function(value){value=$ush.toString(value);if(options.priceFormat){var priceFormat=$ush.toPlainObject(options.priceFormat),decimals=$ush.parseInt(abs(priceFormat.decimals));if(decimals){value=$ush.toString($ush.parseFloat(value).toFixed(decimals)).replace(/^(\d+)(\.)(\d+)$/,'$1'+priceFormat.decimal_separator+'$3')} value=value.replace(/\B(?=(\d{3})+(?!\d))/g,priceFormat.thousand_separator)} return $ush.toString(options.unitFormat).replace('%d',value)},showRangeResult=function(e,ui){$('.for_min_value',$parent).html(valueFormat(ui.values[0]));$('.for_max_value',$parent).html(valueFormat(ui.values[1]))};var options=$.extend(!0,{slider:{animate:!0,max:100,min:0,range:!0,step:1,values:[0,100],},unitFormat:'%d',priceFormat:null,},node.onclick()||{});$node.data('defautlValues',[options.slider.min,options.slider.max].join('-')).removeAttr('onclick').slider($.extend(options.slider,{slide:showRangeResult,change:$ush.debounce(function(e,ui){showRangeResult(e,ui);$('input[type=hidden]',$parent).val(ui.values.join('-')).trigger('change')}),}))});self.checkItemValues();self.$container.toggleClass('active',self.$filtersItem.hasClass('has_value'));self.on('us_grid_filter.update-items-amount',self._events.updateItemsAmount);self._events.resize();if(self.$container.hasClass('togglable')){self.$filtersItem.on('click','.w-filter-item-title',self._events.showHideAccordionItem)}};$.extend(usGridFilter.prototype,$us.mixins.Events,{isMobile:function(){return $ush.parseInt($us.$window.width())<=$ush.parseInt(this.options.mobileWidth)},_changeFilter:function(e){var self=this,$target=$(e.currentTarget),$item=$target.closest('.w-filter-item'),type=$ush.toString($item.usMod('type'));$item.removeClass('disabled');self.$filtersItem.not($item).addClass('disabled');if(['radio','checkbox'].indexOf(type)>-1){if(type==='radio'){$('.w-filter-item-value',$item).removeClass('selected')} $target.closest('.w-filter-item-value').toggleClass('selected',$target.is(':checked '))}else if(type==='range'){var $inputs=$('input[type!=hidden]',$item),rangeValues=[];$inputs.each(function(i,input){var $input=$(input),value=$ush.parseInt(input.value),handle=$ush.toString(input.dataset.handle);if(!value&&handle==['min_value','max_value'][i]&&rangeValues.length==i){value=$input.attr('placeholder')} rangeValues.push($ush.parseInt(value))});rangeValues=rangeValues.join('-');$('input[type="hidden"]',$item).val(rangeValues!=='0-0'?rangeValues:'')}else if(type==='slider'){var $input=$('input[type="hidden"]',$item);if($input.val()==$ush.toString($('.ui-slider',$item).data('defautlValues'))){$input.val('')}} var value=self.getValue();$ush.debounce_fn_1ms(self.URLSearchParams.bind(self,value));self.triggerGrid('us_grid.updateState',[value,1,self]);self.trigger('changeItemValue',$item);self.$container.toggleClass('active',self.$filtersItem.hasClass('has_value'))},_loadPageNumber:function(e){e.preventDefault();e.stopPropagation();var self=this,$target=$(e.currentTarget),href=$ush.toString($target.attr('href')),page=$ush.parseInt((href.match(/page(=|\/)(\d+)(\/?)/)||[])[2]||1);history.replaceState(_document.title,_document.title,href);self.triggerGrid('us_grid.updateState',[self.getValue(),page,self])},_resetItem:function(e){e.preventDefault();e.stopPropagation();var self=this,$item=$(e.currentTarget).closest('.w-filter-item'),type=$ush.toString($item.usMod('type'));if(!type){return} if(['checkbox','radio'].indexOf(type)>-1){$('input:checked',$item).prop('checked',!1);$('input[value="*"]:first',$item).each(function(_,input){$(input).prop('checked',!0).closest('.w-filter-item').addClass('selected')})} if(type==='range'){$('input',$item).val('')} if(type==='dropdown'){$('option',$item).prop('selected',!1)} if(type==='slider'){var $uiSlider=$('.ui-slider',$item);$uiSlider.slider('values',$ush.toString($uiSlider.data('defautlValues')).split('-'))} $('.w-filter-item-value',$item).removeClass('selected');self.trigger('changeItemValue',$item);self.$container.toggleClass('active',self.$filtersItem.hasClass('has_value'));var value=self.getValue();$ush.debounce_fn_1ms(self.URLSearchParams.bind(self,value));self.URLSearchParams(value);self.triggerGrid('us_grid.updateState',[value,1,self])},_toggleItemValue:function(_,item){var self=this,$item=$(item),title='',hasValue=!1,type=$ush.toString($item.usMod('type')),$selected=$('input:not([value="*"]):checked',$item);if(!type){return} if(['checkbox','radio'].indexOf(type)>-1){hasValue=$selected.length;if(self.options.layout=='hor'){var title='';if($selected.length===1){title+=': '+$selected.nextAll('.w-filter-item-value-label:first').text()}else if($selected.length>1){title+=': '+$selected.length}}} if(type==='dropdown'){var value=$('select:first',$item).val();hasValue=(value!=='*')?value:''} if(type==='range'){var value=$('input[type="hidden"]:first',$item).val();hasValue=value;if(self.options.layout=='hor'&&value){title+=': '+value}} if(type==='slider'){var value=$('input[type="hidden"]:first',$item).val();hasValue=value&&value!=$ush.toString($('.ui-slider',$item).data('defautlValues'))} $item.toggleClass('has_value',!!hasValue);if(self.$container.hasClass('togglable')&&hasValue){$item.addClass('open')} $('> .w-filter-item-title > span:not(.w-filter-item-reset)',item).html(title)},_resize:function(){var self=this;self.$container.usMod('state',self.isMobile()?'mobile':'desktop');if(!self.isMobile()){$us.$body.removeClass('us_filter_open');self.$container.removeClass('open')}},_filterOpener:function(){$us.$body.addClass('us_filter_open');this.$container.addClass('open')},_filterListCloser:function(){$us.$body.removeClass('us_filter_open');this.$container.removeClass('open')},_showItem:function(e){$(e.currentTarget).closest('.w-filter-item').addClass('show')},_hideItem:function(e){var self=this;if(self.$filtersItem.hasClass('show')){self.$filtersItem.filter('.show').each(function(_,node){var $node=$(node);if(!$node.is(e.target)&&$node.has(e.target).length===0){$node.removeClass('show')}})}},_showHideAccordionItem:function(e){$(e.currentTarget).closest('.w-filter-item').toggleClass('open')},_woocommerceOrdering:function(e){e.stopPropagation();var self=this,$form=$(e.currentTarget).closest('form');$('input[name^="'+self.options.filterPrefix+'"]',$form).remove();$.each(self.getValue().split('&'),function(_,value){value=value.split('=');if(value.length===2){$form.append('')}});$form.trigger('submit')},_updateItemsAmount:function(_,data){var self=this;self.$filtersItem.removeClass('disabled');$.each((data.taxonomies_query_args||{}),function(key,items){var $item=self.$filtersItem.filter('[data-source="'+key+'"]'),type=$ush.toString($item.usMod('type')),showCount=0;$.each(items,function(value,amount){var disabled=!amount;if(!disabled){showCount++} if(type==='dropdown'){var $option=$('select:first option[value="'+value+'"]',$item),template=$option.data('template')||'';if(template){template=template.replace('%s',(amount?'('+amount+')':''));$option.text(template)} $option.prop('disabled',disabled).toggleClass('disabled',disabled)}else{var $input=$('input[value="'+value+'"]',$item);$input.prop('disabled',disabled).nextAll('.w-filter-item-value-amount').text(amount);$input.closest('.w-filter-item-value').toggleClass('disabled',disabled);if(disabled&&$input.is(':checked')){$input.prop('checked',!1)}}});if(!showCount&&self.options.hideDisabledValues){$item.addClass('disabled')}});if(data.hasOwnProperty('wc_min_max_price')&&data.wc_min_max_price instanceof Object){var $price=self.$filtersItem.filter('[data-source$="|_price"]');$.each((data.wc_min_max_price||{}),function(name,value){var $input=$('input.type_'+name,$price);$input.attr('placeholder',value?value:$input.attr('aria-label'))})} if(!$.isEmptyObject(data)){if(self.handle){$ush.clearTimeout(self.handle)} self.handle=$ush.timeout(function(){$ush.debounce_fn_1ms(self.URLSearchParams.bind(self,self.getValue()));self.checkItemValues()},100)}},triggerGrid:function(eventType,extraParams){$ush.debounce_fn_10ms(function(){$us.$body.trigger(eventType,extraParams)})},checkItemValues:function(){var self=this;self.$filtersItem.each(function(_,node){self.trigger('changeItemValue',node)})},getValue:function(){var value='',filters={};$.each(this.$container.serializeArray(),function(_,filter){if(filter.value==='*'||!filter.value){return} if(!filters.hasOwnProperty(filter.name)){filters[filter.name]=[]} filters[filter.name].push(filter.value)});for(var k in filters){if(value){value+='&'} if($.isArray(filters[k])){value+=k+'='+filters[k].join(',')}} return encodeURI(value)},URLSearchParams:function(params){var url=location.origin+location.pathname+(location.pathname.slice(-1)!='/'?'/':''),search=location.search.replace(new RegExp(this.options.filterPrefix+"(.+?)(&|$)","g"),'');if(!search||search.substr(0,1)!=='?'){search+='?'}else if('?&'.indexOf(search.slice(-1))===-1){search+='&'} if(!params&&'?&'.indexOf(search.slice(-1))!==-1){search=search.slice(0,-1)} history.replaceState(_document.title,_document.title,url+search+params)}});$.fn.usGridFilter=function(options){return this.each(function(){$(this).data('usGridFilter',new usGridFilter(this,options))})};$(function(){$('.w-filter',$us.$canvas).usGridFilter()})}(jQuery);!function($,undefined){"use strict";var _window=window,_undefined=undefined;_window.$ush=_window.$ush||{};_window.$us.canvas=_window.$us.canvas||{};function USHeader(settings){var self=this;self.$container=$('.l-header',$us.$canvas);self.$showBtn=$('.w-header-show:first',$us.$body);self.settings=settings||{};self.state='default';self.$elms={};self.canvasOffset=0;self.bodyHeight=$us.$body.height();self.adminBarHeight=0;self._states={init_height:0,scroll_direction:'down',sticky:!1,sticky_auto_hide:!1,vertical_scrollable:!1};if(self.$container.length===0){return} self._states.init_height=self.getHeight();self.$places={hidden:$('.l-subheader.for_hidden',self.$container)};self.breakpoints={laptops:1280,tablets:1024,mobiles:600};for(var k in self.breakpoints){self.breakpoints[k]=parseInt(((settings[k]||{}).options||{}).breakpoint)||self.breakpoints[k]} $('.l-subheader-cell',self.$container).each(function(_,place){var $place=$(place),key=$place.parent().parent().usMod('at')+'_'+$place.usMod('at');self.$places[key]=$place});$('[class*=ush_]',self.$container).each(function(_,elm){var $elm=$(elm),matches=/(^| )ush_([a-z_]+)_([0-9]+)(\s|$)/.exec(elm.className);if(!matches){return} var id=matches[2]+':'+matches[3];self.$elms[id]=$elm;if($elm.is('.w-vwrapper, .w-hwrapper')){self.$places[id]=$elm}});$us.$window.on('scroll',$ush.debounce(self._events.scroll.bind(self),1)).on('resize load',$ush.debounce(self._events.resize.bind(self),1));self.$container.on('contentChange',self._events.contentChange.bind(self));self.$showBtn.on('click',self._events.showBtn.bind(self));self.on('changeSticky',self._events._changeSticky.bind(self)).on('swichVerticalScrollable',self._events._swichVerticalScrollable.bind(self));self.setState('default',!0);self._events.resize.call(self);if(self.isStickyAutoHideEnabled()){self.$container.addClass('sticky_auto_hide')} self.$container.on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',$ush.debounce(function(){self.trigger.call(self,'transitionEnd')},1))} $.extend(USHeader.prototype,$us.mixins.Events,{prevScrollTop:0,currentStateIs:function(state){var self=this;return(state&&(['default'].concat(Object.keys(self.breakpoints))).indexOf(state)!==-1&&self.state===state)},isVertical:function(){return this.orientation==='ver'},isHorizontal:function(){return this.orientation==='hor'},isFixed:function(){return this.pos==='fixed'},isStatic:function(){return this.pos==='static'},isTransparent:function(){return this.bg==='transparent'},_isWithinScrollBoundaries:function(scrollTop){scrollTop=Math.ceil(scrollTop);return(scrollTop+_window.innerHeight>=$us.$document.height())||scrollTop<=0},isHidden:function(){return!!$us.header.settings.is_hidden},isStickyEnabled:function(){var self=this;return((self.settings[self.state]||{}).options||{}).sticky||!1},isStickyAutoHideEnabled:function(){var self=this;return self.isStickyEnabled()&&(((self.settings[self.state]||{}).options||{}).sticky_auto_hide||!1)},isSticky:function(){return this._states.sticky||!1},isStickyAutoHidden:function(){return this._states.sticky_auto_hide||!1},getHeaderInitialPos:function(){return $us.$body.usMod('headerinpos')||''},getScrollDirection:function(){return this._states.scroll_direction||'down'},getHeight:function(){var self=this;if(!self.$container.length){return 0} var beforeContent=getComputedStyle(self.$container.get(0),':before').content,height=0;if(beforeContent&&['none','auto'].indexOf(beforeContent)===-1){height=beforeContent.replace(/[^+\d]/g,'')} if(!height){height=self.$container.outerHeight()} return!isNaN(height)?$ush.parseFloat(height):0},getInitHeight:function(){var self=this;return parseInt(self._states.init_height)||self.getHeight()},getCurrentHeight:function(adminBar){var self=this,height=0;if(adminBar&&self.isHorizontal()&&(!self.currentStateIs('mobiles')||(self.adminBarHeight&&self.adminBarHeight>=self.getScrollTop()))){height+=self.adminBarHeight} if(!self.isStickyAutoHidden()){height+=self.getHeight()} return height},getScrollTop:function(){return $us.$window.scrollTop()||this.prevScrollTop},prevOffsetTop:0,getOffsetTop:function(){var self=this;var top=parseFloat(self.$container.css('top')||0);return(self.prevOffsetTop=Math.max(self.prevOffsetTop,top))},isScrollAtTopPosition:function(){return $ush.parseInt($us.$window.scrollTop())===0},setState:function(state,force){var self=this;if(!force&&self.currentStateIs(state)){return} var options=(self.settings[state]||{}).options||{},orientation=options.orientation||'hor',pos=($us.toBool(options.sticky)?'fixed':'static'),bg=($us.toBool(options.transparent)?'transparent':'solid'),shadow=options.shadow||'thin';if(orientation==='ver'){pos='fixed';bg='solid'} self._setOrientation(orientation);self._setPos(pos);self._setBg(bg);self._setShadow(shadow);self._setLayout((self.settings[state]||{}).layout||{});$us.$body.usMod('state',self.state=state);if(self.currentStateIs('default')||self.currentStateIs('laptops')){$us.$body.removeClass('header-show')} if($us.nav!==_undefined){$us.nav.resize()} if(self.isStickyAutoHideEnabled()){self.$container.removeClass('down')}},_setPos:function(pos){var self=this;if(pos===self.pos){return} self.$container.usMod('pos',self.pos=pos);if(self.pos==='static'){self.trigger('changeSticky',!1)}},_setBg:function(bg){var self=this;if(bg!=self.bg){self.$container.usMod('bg',self.bg=bg)}},_setShadow:function(shadow){var self=this;if(shadow!=self.shadow){self.$container.usMod('shadow',self.shadow=shadow)}},_setLayout:function(layout){var self=this;for(var place in layout){if(!layout[place]||!self.$places[place]){if(place.indexOf('wrapper')>-1){self.$places[place]=self.$places.hidden}else{continue}} self._placeElements(layout[place],self.$places[place])}},_setOrientation:function(orientation){var self=this;if(orientation!=self.orientation){$us.$body.usMod('header',self.orientation=orientation)}},_placeElements:function(elms,$place){var self=this;for(var i=0;icanvasHeight){self.trigger('swichVerticalScrollable',!0)}else if(self._states.vertical_scrollable){self.trigger('swichVerticalScrollable',!1)} if(headerHeight>documentHeight){self.$container.css({position:'absolute',top:0})}}else if(self._states.vertical_scrollable){self.trigger('swichVerticalScrollable',!1)}},_events:{_swichVerticalScrollable:function(_,state){var self=this;self.$container.toggleClass('scrollable',self._states.vertical_scrollable=!!state);if(!self._states.vertical_scrollable){self.$container.resetInlineCSS('position','top','bottom');delete self._headerScrollRange}},_changeSticky:function(_,state){var self=this;self._states.sticky=!!state;var currentHeight=self.getCurrentHeight(!0),resetCss=['position','top','bottom'];if($us.canvas.hasStickyFirstSection()&&self.getHeaderInitialPos()=='bottom'&&!self.isStickyAutoHideEnabled()){resetCss=resetCss.filter(function(value){return value!=='top'})} self.$container.toggleClass('sticky',self._states.sticky).resetInlineCSS(resetCss);if(currentHeight==self.getCurrentHeight(!0)){self.trigger('transitionEnd')}},contentChange:function(){var self=this;self._isVerticalScrollable.call(self)},showBtn:function(e){var self=this;if($us.$body.hasClass('header-show')){return} e.stopPropagation();$us.$body.addClass('header-show').on(($.isMobile?'touchstart':'click'),self._events.hideMobileVerticalHeader.bind(self))},hideMobileVerticalHeader:function(e){var self=this;if($.contains(self.$container[0],e.target)){return} $us.$body.off(($.isMobile?'touchstart':'click'),self._events.hideMobileVerticalHeader.bind(self));$ush.timeout(function(){$us.$body.removeClass('header-show')},10)},scroll:function(){var self=this,scrollTop=self.getScrollTop(),headerAbovePosition=(self.getHeaderInitialPos()==='above');if(self.prevScrollTop!=scrollTop){self._states.scroll_direction=(self.prevScrollTop<=scrollTop)?'down':'up'} self.prevScrollTop=scrollTop;if(self.isScrollAtTopPosition()){self._states.scroll_direction='up'} if(self.isStickyAutoHideEnabled()&&self.isSticky()&&!self._isWithinScrollBoundaries(scrollTop)&&!headerAbovePosition){self._states.sticky_auto_hide=(self.getScrollDirection()==='down');self.$container.toggleClass('down',self._states.sticky_auto_hide)} if(!self.isFixed()){return} var headerAttachedFirstSection=['bottom','below'].indexOf(self.getHeaderInitialPos())!==-1;if(self.isHorizontal()&&(headerAbovePosition||(headerAttachedFirstSection&&(self.currentStateIs('tablets')||self.currentStateIs('mobiles')))||!headerAttachedFirstSection)){if(self.isStickyEnabled()){var scrollBreakpoint=parseInt(((self.settings[self.state]||{}).options||{}).scroll_breakpoint)||100,isSticky=Math.ceil(scrollTop)>=scrollBreakpoint;if(isSticky!=self.isSticky()){self.trigger('changeSticky',isSticky)}} if(self.isSticky()){if(!$us.$window.scrollTop()){self.trigger('changeSticky',!1)}}} if(self.isHorizontal()&&headerAttachedFirstSection&&!headerAbovePosition&&(self.currentStateIs('default')||self.currentStateIs('laptops'))){var top=($us.canvas.getHeightFirstSection()+self.adminBarHeight);if(self.getHeaderInitialPos()=='bottom'){top-=self.getInitHeight()} if(self.isStickyEnabled()){var isSticky=scrollTop>=top;if(isSticky!=self.isSticky()){self.trigger('changeSticky',isSticky)}} if(!self.isSticky()&&top!=self.getOffsetTop()){self.$container.css('top',top)}} if(self.isVertical()&&!headerAttachedFirstSection&&!headerAbovePosition&&self._states.vertical_scrollable){var headerHeight=self.getHeight(),documentHeight=parseInt($us.$document.height());if(documentHeight>headerHeight){var canvasHeight=parseInt($us.canvas.winHeight)+self.canvasOffset,scrollRangeDiff=(headerHeight-canvasHeight),cssProps;if(self._headerScrollRange===_undefined){self._headerScrollRange=[0,scrollRangeDiff]} if(self.bodyHeight>headerHeight){if(scrollTop .w-nav-anchor');this.$subLists=this.$list.find('.menu-item-has-children > .w-nav-list');this.$anchors=this.$nav.find('.w-nav-anchor');this.$arrows=$('.w-nav-arrow');this.$reusableBlocksLinks=this.$nav.find('.menu-item-object-us_page_block a');this.options={};var $navOptions=$('.w-nav-options:first',this.$nav);if($navOptions.is('[onclick]')){$.extend(this.options,$navOptions[0].onclick()||{});$navOptions.remove()} if(this.$nav.length==0){return} if(this.$reusableBlocksLinks.length!==0){this.$reusableBlocksLinks.each(function(index,elm){let $elm=$(elm);if(!$elm.parents('.w-popup-wrap').length){this.$anchors.push(elm)}}.bind(this))} this.type=this.$nav.usMod('type');this.layout=this.$nav.usMod('layout');this.mobileOpened=!1;if($.isMobile&&this.type=='desktop'){this.$list.on('click','.w-nav-anchor[class*="level_"]',function(e){var $target=$(e.currentTarget),$item=$target.closest('.menu-item');if($target.usMod('level')>1&&!$item.hasClass('menu-item-has-children')){$target.parents('.menu-item.opened').removeClass('opened')}})} this.$control.on('click',function(e){e.preventDefault();this.mobileOpened=!this.mobileOpened;this.setTabIndex(!0);this.$anchors.each(function(){if($(this).attr('href')==undefined){$(this).attr('href','javascript:void(0)')}});if(this.layout!='dropdown'){this.$anchors.removeAttr('tabindex')} if(this.mobileOpened){$('.l-header .w-nav').not(container).each(function(){$(this).trigger('USNavClose')});this.$control.addClass('active');this.$items.filter('.opened').removeClass('opened');this.$subLists.resetInlineCSS('display','height');if(this.layout=='dropdown'){this.$list.slideDownCSS(250,this._events.contentChanged)} $us.$html.addClass('w-nav-open');$us.mobileNavOpened ++}else{this.$control.removeClass('active');if(this.layout=='dropdown'){this.$list.slideUpCSS(250,this._events.contentChanged)} this.setTabIndex();if(this.layout!='dropdown'){this.$anchors.attr('tabindex',-1)} $us.$html.removeClass('w-nav-open');$us.mobileNavOpened --} $us.$canvas.trigger('contentChange')}.bind(this));this.$control.on('focusin',function(e){if(this.type!='mobile'||this.layout=='dropdown'){return} this.$anchors.attr('tabindex',-1)}.bind(this));this.$close.on('click',function(){this.mobileOpened=!1;this.$control.removeClass('active');$us.$html.removeClass('w-nav-open');$us.mobileNavOpened --;$us.$canvas.trigger('contentChange')}.bind(this));$us.$document.keyup(function(e){if(e.keyCode==27){if(this.mobileOpened){if(this.layout=='dropdown'){this.$list.slideUpCSS(250,this._events.contentChanged)} this.mobileOpened=!1;this.$control.removeClass('active');this.setTabIndex();if(this.layout!='dropdown'){this.$anchors.attr('tabindex',-1)} $us.$html.removeClass('w-nav-open');$us.mobileNavOpened --;$us.$canvas.trigger('contentChange')}} if(e.keyCode==9){if(this.type=='desktop'&&!$(e.target).parents('.w-nav').length){this.$items.removeClass('opened')}}}.bind(this));this._events={menuToggler:function($item,show){if(this.type!='mobile'){return} var $sublist=$item.children('.w-nav-list');if(show){$item.addClass('opened');$sublist.slideDownCSS(250,this._events.contentChanged)}else{$item.removeClass('opened');$sublist.slideUpCSS(250,this._events.contentChanged)}}.bind(this),focusHandler:function(e){if(this.type=='mobile'){return} var $item=$(e.target).closest('.menu-item'),$target=$(e.target);$item.parents('.menu-item').addClass('opened');$item.on('mouseleave',function(){$target.blur()})}.bind(this),blurHandler:function(e){if(this.type=='mobile'){return} var $item=$(e.target).closest('.menu-item');$item.parents('.menu-item').removeClass('opened')}.bind(this),clickHandler:function(e){if(this.type!='mobile'){return} e.stopPropagation();e.preventDefault();var $item=$(e.currentTarget).closest('.menu-item'),isOpened=$item.hasClass('opened');this._events.menuToggler($item,!isOpened)}.bind(this),keyDownHandler:function(e){if(this.type!='mobile'){return} var keyCode=e.keyCode||e.which;if(keyCode==13){var $target=$(e.target),$item=$target.closest('.menu-item'),isOpened=$item.hasClass('opened');if(!$target.is(this.$arrows)){return} e.stopPropagation();e.preventDefault();this._events.menuToggler($item,!isOpened)} if(keyCode==9){var $target=$(e.target)?$(e.target):{},i=this.$anchors.index($target),isDropdownLayout=this.layout=='dropdown'?!0:!1,closeMenu=function(){if(this.mobileOpened){if(isDropdownLayout){this.$list.slideUpCSS(250,this._events.contentChanged)} this.mobileOpened=!1;this.$control.removeClass('active');$us.$html.removeClass('w-nav-open');$us.mobileNavOpened --;$us.$canvas.trigger('contentChange');this.setTabIndex();if(this.layout!='dropdown'){this.$anchors.attr('tabindex',-1)}}}.bind(this);if(e.shiftKey){if((i===this.$anchors.length-1)&&this.layout!='dropdown'){this.$anchors.attr('tabindex',-1)} if(i===0){closeMenu()}}else{if(i===this.$anchors.length-1){closeMenu()}}}}.bind(this),keyUpHandler:function(e){if(this.type=='mobile'){return} var $target=$(e.target),$item=$target.closest('.menu-item.level_1',this.$items);if(e.keyCode==9){$item.addClass('opened').siblings().removeClass('opened')} if(e.keyCode==27){this.$items.removeClass('opened');$target.blur()}}.bind(this),resize:this.resize.bind(this),contentChanged:function(){if(this.type=='mobile'&&$us.header.isHorizontal()&&$us.header.isFixed()&&this.layout=='fixed'){this.setFixedMobileMaxHeight()} $us.header.$container.trigger('contentChange')}.bind(this),close:function(){if(this.$list!=undefined&&jQuery.fn.slideUpCSS!=undefined&&this.mobileOpened&&this.type=='mobile'){this.mobileOpened=!1;if(this.layout=='dropdown'&&this.headerOrientation=='hor'){this.$list.slideUpCSS(250)} $us.mobileNavOpened --;$us.$canvas.trigger('contentChange')}}.bind(this),detachAnimation:function(){this.$nav.removeClass('us_animate_this')}.bind(this),};this.$subItems.each(function(index){var $item=$(this.$subItems[index]),$arrow=$item.find('.w-nav-arrow').first(),$subAnchor=$item.find('.w-nav-anchor').first(),dropByLabel=$item.hasClass('mobile-drop-by_label')||$item.parents('.menu-item').hasClass('mobile-drop-by_label'),dropByArrow=$item.hasClass('mobile-drop-by_arrow')||$item.parents('.menu-item').hasClass('mobile-drop-by_arrow');if(dropByLabel||(this.options.mobileBehavior&&!dropByArrow)){$subAnchor.on('click',this._events.clickHandler)}else if(dropByArrow||(!this.options.mobileBehavior&&!dropByLabel)){$arrow.on('click',this._events.clickHandler);$arrow.on('click',this._events.keyDownHandler)}}.bind(this));this.$subItems.each(function(){var $this=$(this),$parentItem=$this.parent().closest('.menu-item');if($parentItem.length==0||$parentItem.usMod('columns')===!1){$this.addClass('togglable')}});if(!$us.$html.hasClass('no-touch')){this.$list.find('.menu-item-has-children.togglable > .w-nav-anchor').on('click',function(e){if(this.type=='mobile'){return} e.preventDefault();var $this=$(e.currentTarget),$item=$this.parent();if($item.hasClass('opened')){return location.assign($this.attr('href'))} $item.addClass('opened');var outsideClickEvent=function(e){if($.contains($item[0],e.target)){return} $item.removeClass('opened');$us.$body.off('touchstart',outsideClickEvent)};$us.$body.on('touchstart',outsideClickEvent)}.bind(this))} $($us.$document).on('mouseup touchend',function(e){if(this.mobileOpened&&this.type=='mobile'){if(!this.$control.is(e.target)&&this.$control.has(e.target).length===0&&!this.$list.is(e.target)&&this.$list.has(e.target).length===0){this.mobileOpened=!1;this.$control.removeClass('active');this.$items.filter('.opened').removeClass('opened');this.$subLists.slideUpCSS(250);if(this.layout=='dropdown'&&this.headerOrientation=='hor'){this.$list.slideUpCSS(250)} $us.$html.removeClass('w-nav-open');$us.mobileNavOpened --;$us.$canvas.trigger('contentChange')}}}.bind(this));this.$anchors.on('focus.upsolution',this._events.focusHandler);this.$anchors.on('blur.upsolution',this._events.blurHandler);this.$nav.on('keydown.upsolution',this._events.keyDownHandler);this.$nav.on('keyup.upsolution',this._events.keyUpHandler);this.$nav.on('transitionend',this._events.detachAnimation);this.$anchors.on('click',function(e){var $item=$(e.currentTarget).closest('.menu-item'),dropByLabel=$item.hasClass('mobile-drop-by_label')||$item.parents('.menu-item').hasClass('mobile-drop-by_label'),dropByArrow=$item.hasClass('mobile-drop-by_arrow')||$item.parents('.menu-item').hasClass('mobile-drop-by_arrow');if(this.type!='mobile'||$us.header.isVertical()){return} if(dropByLabel||(this.options.mobileBehavior&&$item.hasClass('menu-item-has-children')&&!dropByArrow)){return} this.mobileOpened=!1;this.$control.removeClass('active');if(this.layout=='dropdown'){this.$list.slideUpCSS(250)} $us.$html.removeClass('w-nav-open');$us.mobileNavOpened --;$us.$canvas.trigger('contentChange')}.bind(this));$us.$window.on('resize',$ush.debounce(this._events.resize,5));$ush.timeout(function(){this.resize();$us.header.$container.trigger('contentChange')}.bind(this),50);this.$nav.on('USNavClose',this._events.close)},setTabIndex:function(add){this.$subItems.each(function(index){var $item=$(this.$subItems[index]);if($item.hasClass('mobile-drop-by_arrow')||$item.parents('.menu-item').hasClass('mobile-drop-by_arrow')||(!$item.hasClass('mobile-drop-by_label')&&!this.options.mobileBehavior)){if(add){$item.find('.w-nav-arrow').attr('tabindex',0)}else{$item.find('.w-nav-arrow').removeAttr('tabindex')}}}.bind(this))},setFixedMobileMaxHeight:function(){this.$list.css('max-height',$us.canvas.winHeight-$us.header.getCurrentHeight(!0)+'px')},resize:function(){if(this.$nav.length==0){return} var nextType=(window.innerWidththis.popupSizes.contentHeight)||!$(e.target).closest('.w-popup-box').length){e.preventDefault()}}.bind(this),};this.transitionEndEvent=(navigator.userAgent.search(/webkit/i)>0)?'webkitTransitionEnd':'transitionend';this.isFixed=!jQuery.isMobile;this.$trigger=this.$container.find('.w-popup-trigger');this.triggerType=this.$trigger.usMod('type');if(this.triggerType=='load'){if(this.$container.css('display')!='none'){var delay=this.$trigger.data('delay')||2;$ush.timeout(this.show.bind(this),delay*1000)}}else if(this.triggerType=='selector'){var selector=this.$trigger.data('selector');if(selector){$us.$body.on('click',selector,this._events.show)}}else{this.$trigger.on('click',this._events.show)} this.$wrap=this.$container.find('.w-popup-wrap').usMod('pos',this.isFixed?'fixed':'absolute').on('click',this._events.hide);this.$box=this.$container.find('.w-popup-box');this.$overlay=this.$container.find('.w-popup-overlay').usMod('pos',this.isFixed?'fixed':'absolute').on('click',this._events.hide);this.$container.find('.w-popup-closer').on('click',this._events.hide);this.$box.on('click',this._events.preventHide);this.$wrap.find('a').on('click',this._events.hideOnLinkClick.bind(this));this.$media=$('video,audio',this.$box);this.$wVideos=$('.w-video',this.$box);this.timer=null;this.popupSizes={boxHeight:0,wrapHeight:0,contentHeight:0,initialWindowHeight:window.innerHeight,openedWindowHeight:0,}};$us.WPopup.prototype={_hasScrollbar:function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight},_getScrollbarSize:function(){if($us.scrollbarSize===undefined){var scrollDiv=document.createElement('div');scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';document.body.appendChild(scrollDiv);$us.scrollbarSize=scrollDiv.offsetWidth-scrollDiv.clientWidth;document.body.removeChild(scrollDiv)} return $us.scrollbarSize},show:function(e){if(e!==undefined){e.preventDefault()} this.saveWindowSizes();clearTimeout(this.timer);this.$overlay.appendTo($us.$body).show();this.$wrap.appendTo($us.$body).css('display','flex');if(this.isFixed){$us.$html.addClass('usoverlay_fixed');this.windowHasScrollbar=this._hasScrollbar();if(this.windowHasScrollbar&&this._getScrollbarSize()){$us.$html.css('margin-right',this._getScrollbarSize())}}else{this.$wrap.css('top',$us.$window.scrollTop());$us.$body.addClass('popup-active');this.savePopupSizes();if((this.popupSizes.initialWindowHeight===this.popupSizes.openedWindowHeight)&&(this.popupSizes.boxHeight>=this.popupSizes.wrapHeight)){this.$wrap.addClass('popup-ios-height')} this.$wrap.on('touchmove',this._events.touchmove);$us.$document.on('touchmove',this._events.touchmove)} $us.$body.on('keyup',this._events.keyup);this.$wrap.on('scroll',this._events.scroll);this.timer=setTimeout(this._events.afterShow,25)},afterShow:function(){clearTimeout(this.timer);this.$overlay.addClass('active');this.$box.addClass('active');if(window.$us!==undefined&&$us.$canvas!==undefined){$us.$canvas.trigger('contentChange',{elm:this.$container})} if(this.$wVideos.length){this.$wVideos.each(function(_,wVideo){var $wVideoSource=$(wVideo).find('[data-src]'),$videoTag=$wVideoSource.parent('video'),src=$wVideoSource.data('src');if(!src){return} $wVideoSource.attr('src',src);if($videoTag.length){$videoTag[0].load()}})} $us.$body.addClass('has_uspopup');$us.$window.trigger('resize').trigger('us.wpopup.afterShow',this)},hide:function(){clearTimeout(this.timer);$us.$body.off('keyup',this._events.keyup);this.$box.on(this.transitionEndEvent,this._events.afterHide);this.$overlay.removeClass('active');this.$box.removeClass('active');this.$wrap.off('scroll',this._events.scroll);$us.$document.off('touchmove',this._events.touchmove);this.timer=setTimeout(this._events.afterHide,1000)},hideOnLinkClick:function(event){var $item=$(event.currentTarget),place=$item.attr('href');if((place.indexOf('#')===-1)||(place!=='#'&&place.indexOf('#')===0&&this.$wrap.find(place).length)){return} this.hide()},afterHide:function(){clearTimeout(this.timer);this.$box.off(this.transitionEndEvent,this._events.afterHide);this.$overlay.appendTo(this.$container).hide();this.$wrap.appendTo(this.$container).hide();if(this.isFixed){$us.$html.removeClass('usoverlay_fixed');if(this.windowHasScrollbar){$us.$html.css('margin-right','')} $us.$window.trigger('resize',!0).trigger('us.wpopup.afterHide',this)}else{$us.$body.removeClass('popup-active');this.$wrap.removeClass('popup-ios-height')} if(this.$media.length){this.$media.trigger('pause')} if(this.$wVideos.length){this.$wVideos.each(function(_,wVideo){var $wVideoSource=$(wVideo).find('[src]');if(!$wVideoSource.data('src')){$wVideoSource.attr('data-src',$wVideoSource.attr('src'))} $wVideoSource.attr('src','')})} $us.$body.removeClass('has_uspopup')},savePopupSizes:function(){this.popupSizes.boxHeight=this.$box.height();this.popupSizes.wrapHeight=this.$wrap.height();this.popupSizes.contentHeight=this.$content.outerHeight(!0)},saveWindowSizes:function(){this.popupSizes.openedWindowHeight=window.innerHeight}};$.fn.wPopup=function(options){return this.each(function(){$(this).data('wPopup',new $us.WPopup(this,options))})};$(function(){$('.w-popup').wPopup()})}(jQuery);(function($,undefined){"use strict";var _location=location,_history=history;var _originalURL;$us.WProductList=function(container,options){var self=this;self.data={template_vars:{pagination:'none',},paged:1,max_num_pages:1,};self.xhr;self.$container=$(container);self.$list=$('.w-grid-list',container);self.$loadmore=$('.g-loadmore',container);var $node=$('.w-product-list-json:first',container);if($node.is('[onclick]')){$.extend(self.data,$node[0].onclick()||{})} $node.remove();self.paginationType=(this.data.template_vars||{}).pagination;self._events={loadNextPage:self.loadNextPage.bind(self),openProductInPopup:self._openProductInPopup.bind(self),loadProductInPopup:self._loadProductInPopup.bind(self),navigationInPopup:self._navigationInPopup.bind(self),closeProductInPopup:self.closeProductInPopup.bind(self),};if(self.paginationType==='load_on_btn'){self.$loadmore.on('mousedown','button',self._events.loadNextPage)}else if(self.paginationType==='load_on_scroll'){$us.waypoints.add(self.$loadmore,'-70%',self._events.loadNextPage)} if(self.$container.hasClass('open_items_in_popup')){self.$popup=$('.l-popup',container);self.$popupBox=$('.l-popup-box',self.$popup);self.$popupPreloader=$('.g-preloader',self.$popup);self.$popupFrame=$('.l-popup-box-content-frame',self.$popup);self.$popupToPrev=$('.l-popup-arrow.to_prev',self.$popup);self.$popupToNext=$('.l-popup-arrow.to_next',self.$popup);$us.$body.append(self.$popup);self.$list.on('click','.w-grid-item:not(.custom-link) .w-grid-item-anchor',self._events.openProductInPopup);self.$popupFrame.on('load',self._events.loadProductInPopup);self.$popup.on('click','.l-popup-arrow',self._events.navigationInPopup).on('click','.l-popup-closer, .l-popup-box',self._events.closeProductInPopup)}};var prototype=$us.WProductList.prototype;$.extend(prototype,{loadNextPage:function(){var self=this;if(!$ush.isUndefined(self.xhr)){return} self.data.paged+=1;var data=$ush.clone(self.data);data.template_vars=JSON.stringify(data.template_vars);delete data.max_num_pages;self.$loadmore.addClass('loading');self.xhr=$.ajax({type:'post',url:$us.ajaxUrl,data:data,success:function(res){var $items=$('.w-grid-list:first > *',$(res));if($items.length){self.$list.append($items);if(self.$container.hasClass('with_css_animation')){new USAnimate(self.$list);$us.$window.trigger('scroll.waypoints')} $ush.timeout(function(){$('[data-content-height]',$items).usCollapsibleContent()},1)} if(!$items.length||data.paged>=self.data.max_num_pages){self.$loadmore.addClass('hidden');return} if(self.paginationType==='load_on_scroll'){$us.waypoints.add(self.$loadmore,'-70%',self.loadNextPage.bind(self))} $us.$canvas.trigger('contentChange')},complete:function(){self.$loadmore.removeClass('loading');delete self.xhr},})}});$.extend(prototype,{_openProductInPopup:function(e){var self=this;if($us.$window.width()<=$us.canvasOptions.disableEffectsWidth){return} e.stopPropagation();e.preventDefault();_originalURL=_location.href;self.setProductInPopup($(e.target).closest('.w-grid-item').index());$us.$html.addClass('usoverlay_fixed');self.$popup.addClass('active');$ush.timeout(function(){self.$popupBox.addClass('show')},25)},_loadProductInPopup:function(){var self=this;function checkEscape(e){if($ush.toLowerCase(e.key)==='escape'&&self.$popup.hasClass('active')){self.closeProductInPopup()}} self.$container.on('keyup',checkEscape);$('body',self.$popupFrame.contents()).one('keyup.usCloseLightbox',checkEscape)},_navigationInPopup:function(e){this.setProductInPopup($(e.target).data('index'))},setProductInPopup:function(index){var self=this;var $node=$('> *:eq('+$ush.parseInt(index)+')',self.$list),url=$ush.toString($('[href]:first',$node).attr('href'));if(!url){console.error('No url to loaded product');return} var $prev=$node.prev(':not(.custom-link)'),$next=$node.next(':not(.custom-link)');self.$popupToPrev.data('index',$prev.index()).attr('title',$('.post_title',$prev).text()).toggleClass('hidden',!$prev.length);self.$popupToNext.data('index',$next.index()).attr('title',$('.post_title',$next).text()).toggleClass('hidden',!$next.length);self.$popupPreloader.show();self.$popupFrame.attr('src',url+(url.indexOf('?')>-1?'&':'?')+'us_iframe=1');_history.replaceState(null,null,url)},closeProductInPopup:function(){var self=this;self.$popupBox.removeClass('show').one('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd',function(){self.$popup.removeClass('active');self.$popupFrame.attr('src','about:blank');self.$popupToPrev.addClass('hidden');self.$popupToNext.addClass('hidden');self.$popupPreloader.show();$us.$html.removeClass('usoverlay_fixed')});if(_originalURL){_history.replaceState(null,null,_originalURL)}}});$.fn.wProductList=function(options){return this.each(function(){$(this).data('WProductList',new $us.WProductList(this,options))})};$('.w-grid.us_product_list').wProductList()})(jQuery);!function($){"use strict";$us.UsSharing=function(container,options){this.init(container,options)};$us.UsSharing.prototype={init:function(container,options){this.$container=$(container);if(!!$('.w-sharing-list',this.$container).data('content-image')){if($('.l-canvas img:first-child').length){this.sharingImage=$('.l-canvas img:first-child').attr('src')}else{this.sharingImage=''} this.setSharingImage()} if(!this.$container.hasClass('w-sharing-tooltip')){if($('.whatsapp',this.$container).length&&$.isMobile){this.setWhatsAppUrl(this.$container.find('.whatsapp'))}}else{this.$copy2clipboard=$('.w-sharing-item.copy2clipboard',this.$container);this.selectedText='';this.activeArea='.l-main';if(this.$container.data('sharing-area')==='post_content'){this.activeArea='.w-post-elm.post_content'} this.$container.appendTo("body");$('body').not(this.activeArea).bind('mouseup',function(){var selection=this.getSelection();if(selection===''){this.$container.hide()}}.bind(this));$(this.activeArea).on('mouseup',function(e){var selection=this.getSelection();if(selection!==''){this.selectedText=selection;this.showTooltip(e)}else{this.selectedText='';this.hideTooltip()}}.bind(this));this.$copy2clipboard.on('click',function(){this.copyToClipboard()}.bind(this))}},showTooltip:function(e){$('.w-sharing-item',this.$container).each(function(index,elm){if($(elm).hasClass('copy2clipboard')){return} if($.isMobile&&$(elm).hasClass('whatsapp')){this.setWhatsAppUrl($(elm))} $(elm).attr('href',($(elm).data('url')||'').replace('{{text}}',this.selectedText))}.bind(this));this.$container.css({"display":"inline-block","left":e.pageX,"top":e.pageY-50,})},setSharingImage:function(){$('.w-sharing-item',this.$container).each(function(index,elm){if($(elm).hasClass('copy2clipboard')){return} $(elm).attr('href',($(elm).attr('href')||'').replace('{{image}}',this.sharingImage));if($(elm).attr('data-url')){$(elm).attr('data-url',($(elm).attr('data-url')||'').replace('{{image}}',this.sharingImage))}}.bind(this))},setWhatsAppUrl:function($elm){$elm.attr('href',($elm.attr('href')||'').replace('https://web','https://api'))},hideTooltip:function(){this.$container.hide()},copyToClipboard:function(){var url,el=document.createElement('textarea');if(this.$copy2clipboard.parent().data('sharing-url')!==undefined&&this.$copy2clipboard.parent().data('sharing-url')!==''){url=this.$copy2clipboard.parent().attr('data-sharing-url')}else{url=window.location} el.value=this.selectedText+' '+url;el.setAttribute('readonly','');el.style.position='absolute';el.style.left='-9999px';document.body.appendChild(el);el.select();document.execCommand('copy');document.body.removeChild(el);this.hideTooltip()},getSelection:function(){var selection='';if(window.getSelection){selection=window.getSelection()}else if(document.selection){selection=document.selection.createRange()} return selection.toString().trim()},};$.fn.UsSharing=function(options){return this.each(function(){$(this).data('UsSharing',new $us.UsSharing(this,options))})};$(function(){$('.w-sharing-tooltip, .w-sharing').UsSharing()})}(jQuery);!function($,undefined){"use strict";var _undefined=undefined;$us.WTabs=function(container,options){this.init(container,options)};$us.WTabs.prototype={init:function(container,options){var _defaults={duration:300,easing:'cubic-bezier(.78,.13,.15,.86)'};this.options=$.extend({},_defaults,options);this.isRtl=$('.l-body').hasClass('rtl');this.$container=$(container);this.$tabsList=$('> .w-tabs-list:first',this.$container);this.$tabs=$('.w-tabs-item',this.$tabsList);this.$sectionsWrapper=$('> .w-tabs-sections:first',this.$container);this.$sections=$('> .w-tabs-section',this.$sectionsWrapper);this.$headers=this.$sections.children('.w-tabs-section-header');this.$contents=this.$sections.children('.w-tabs-section-content');this.$tabsBar=$();if(this.$container.hasClass('accordion')){this.$tabs=this.$headers} this.accordionAtWidth=this.$container.data('accordion-at-width');this.align=this.$tabsList.usMod('align');this.count=this.$tabs.length;this.hasScrolling=this.$container.hasClass('has_scrolling')||!1;this.isAccordionAtWidth=$.isNumeric(parseInt(this.accordionAtWidth));this.isScrolling=!1;this.isTogglable=(this.$container.usMod('type')==='togglable');this.minWidth=0;this.tabHeights=[];this.tabLefts=[];this.tabTops=[];this.tabWidths=[];this.width=0;if(this.count===0){return} this.basicLayout=this.$container.hasClass('accordion')?'accordion':(this.$container.usMod('layout')||'hor');this.curLayout=this.basicLayout;this.active=[];this.activeOnInit=[];this.definedActive=[];this.tabs=$.map(this.$tabs.toArray(),$);this.sections=$.map(this.$sections.toArray(),$);this.headers=$.map(this.$headers.toArray(),$);this.contents=$.map(this.$contents.toArray(),$);if(!this.sections.length){return} $.each(this.tabs,function(index){if(this.sections[index].hasClass('content-empty')){this.tabs[index].hide();this.sections[index].hide()} if(this.tabs[index].hasClass('active')){this.active.push(index);this.activeOnInit.push(index)} if(this.tabs[index].hasClass('defined-active')){this.definedActive.push(index)} this.tabs[index].add(this.headers[index]).on('click mouseover',function(e){var $link=this.tabs[index];if(!$link.is('a')){$link=$link.find('a')} if(!$link.length||($link.is('[href]')&&$link.attr('href').indexOf('http')===-1)){e.preventDefault()} if(e.type=='mouseover'&&(this.$container.hasClass('accordion')||!this.$container.hasClass('switch_hover'))){return} if(this.curLayout==='accordion'&&this.isTogglable){this.toggleSection(index)}else{if(index!=this.active[0]){this.headerClicked=!0;this.openSection(index)}else if(this.curLayout==='accordion'){this.contents[index].css('display','block').slideUp(this.options.duration,this._events.contentChanged);this.tabs[index].attr('aria-expanded','true').removeClass('active');this.sections[index].removeClass('active');this.active[0]=_undefined}}}.bind(this))}.bind(this));this._events={resize:this.resize.bind(this),hashchange:this.hashchange.bind(this),contentChanged:function(){$.each(this.tabs,function(_,item){var $content=$(item);$content.attr('aria-expanded',$content.is('.active'))}) $us.$canvas.trigger('contentChange',{elm:this.$container})}.bind(this),wheel:function(){if(this.isScrolling){$us.$htmlBody.stop(!0,!1)}}};this.switchLayout(this.curLayout);$us.$window.on('resize',$ush.debounce(this._events.resize,5)).on('hashchange',this._events.hashchange).on('wheel',$ush.debounce(this._events.wheel.bind(this),5));$us.$document.ready(function(){this.resize();$ush.timeout(this._events.resize,50);$ush.timeout(function(){if(window.location.hash){var hash=window.location.hash.substr(1),$linkedSection=this.$sectionsWrapper.find('.w-tabs-section[id="'+hash+'"]');if($linkedSection.length&&(!$linkedSection.hasClass('active'))){$linkedSection.find('.w-tabs-section-header').trigger('click')}}}.bind(this),150)}.bind(this));$.each(this.tabs,function(index){if(this.headers.length&&this.headers[index].attr('href')!=_undefined){var tabHref=this.headers[index].attr('href'),tabHeader=this.headers[index];$('a[href="'+tabHref+'"]',this.$container).on('click',function(e){e.preventDefault();if($(this).hasClass('w-tabs-section-header','w-tabs-item')){return} if(!$(tabHeader).parent('.w-tabs-section').hasClass('active')){tabHeader.trigger('click')}})}}.bind(this));this.$container.addClass('initialized');this.headerHeight=0;$us.header.on('transitionEnd',function(header){this.headerHeight=header.getCurrentHeight(!0)}.bind(this));if($us.usbPreview()){var usbContentChange=function(){if(!this.isTrendy()||this.curLayout=='accordion'){return} this.measure();this.setBarPosition(this.active[0]||0)}.bind(this);this.$container.on('usb.contentChange',$ush.debounce(usbContentChange,1))}},isTrendy:function(){return this.$container.hasClass('style_trendy')},hashchange:function(){if(window.location.hash){var hash=window.location.hash.substr(1),$linkedSection=this.$sectionsWrapper.find('.w-tabs-section[id="'+hash+'"]');if($linkedSection.length&&(!$linkedSection.hasClass('active'))){var $header=$linkedSection.find('.w-tabs-section-header');$header.click()}}},switchLayout:function(to){this.cleanUpLayout(this.curLayout);this.prepareLayout(to);this.curLayout=to},cleanUpLayout:function(from){this.$sections.resetInlineCSS('display');if(from==='accordion'){this.$container.removeClass('accordion');this.$contents.resetInlineCSS('height','padding-top','padding-bottom','display','opacity')} if(this.isTrendy()&&'hor|ver'.indexOf(from)>-1){this.$tabsBar.remove()}},prepareLayout:function(to){if(to!=='accordion'&&this.active[0]===_undefined){this.active[0]=this.activeOnInit[0];if(this.active[0]!==_undefined){this.tabs[this.active[0]].addClass('active');this.sections[this.active[0]].addClass('active')}} if(to==='accordion'){this.$container.addClass('accordion');this.$contents.hide();if(this.curLayout!=='accordion'&&this.active[0]!==_undefined&&this.active[0]!==this.definedActive[0]){this.headers[this.active[0]].removeClass('active');this.tabs[this.active[0]].removeClass('active');this.sections[this.active[0]].removeClass('active');this.active[0]=this.definedActive[0]} for(var i=0;i-1){this.$tabsBar=$('
').appendTo(this.$tabsList)}},measure:function(){if(this.basicLayout==='ver'){if(this.isAccordionAtWidth){this.minWidth=this.accordionAtWidth}else{var minTabWidth=this.$tabsList.outerWidth(!0),minContentWidth=300,navWidth=this.$container.usMod('navwidth');if(navWidth!=='auto'){minTabWidth=Math.max(minTabWidth,minContentWidth*parseInt(navWidth)/(100-parseInt(navWidth)))} this.minWidth=Math.max(480,minContentWidth+minTabWidth+1)} if(this.isTrendy()){this.tabHeights=[];this.tabTops=[];for(var index=0;index
').appendTo(this.$tabsList)} var css={};if(this.curLayout==='hor'){css={width:this.tabWidths[index]};css[this.isRtl?'right':'left']=this.tabLefts[index]}else if(this.curLayout==='ver'){css={top:this.tabTops[index],height:this.tabHeights[index]}} if(!animated){this.$tabsBar.css(css)}else{this.$tabsBar.performCSSTransition(css,this.options.duration,null,this.options.easing)}},openSection:function(index){if(this.sections[index]===_undefined){return} if(this.curLayout==='hor'){this.$sections.removeClass('active').css('display','none');this.sections[index].stop(!0,!0).fadeIn(this.options.duration,function(){$(this).addClass('active')})}else if(this.curLayout==='accordion'){if(this.contents[this.active[0]]!==_undefined){this.contents[this.active[0]].css('display','block').stop(!0,!1).slideUp(this.options.duration)} this.contents[index].css('display','none').stop(!0,!1).slideDown(this.options.duration,function(){this._events.contentChanged.call(this);if(this.hasScrolling&&this.curLayout==='accordion'&&this.headerClicked==!0){var top=this.headers[index].offset().top;if(!jQuery.isMobile){top-=$us.$canvas.offset().top||0} var $prevStickySection=this.$container.closest('.l-section').prevAll('.l-section.type_sticky');if($prevStickySection.length){top-=parseInt($prevStickySection.outerHeight(!0))} var animateOptions={duration:$us.canvasOptions.scrollDuration,easing:$us.getAnimationName('easeInOutExpo'),start:function(){this.isScrolling=!0}.bind(this),always:function(){this.isScrolling=!1}.bind(this),step:function(now,fx){var newTop=top;if($us.header.isHorizontal()&&$us.header.isStickyEnabled()){newTop-=this.headerHeight} if(fx.end!==newTop){$us.$htmlBody.stop(!0,!1).animate({scrollTop:newTop},$.extend(animateOptions,{easing:$us.getAnimationName('easeOutExpo')}))}}.bind(this)};$us.$htmlBody.stop(!0,!1).animate({scrollTop:top},animateOptions);this.headerClicked=!1}}.bind(this));this.$sections.removeClass('active');this.sections[index].addClass('active')}else if(this.curLayout==='ver'){if(this.contents[this.active[0]]!==_undefined){this.contents[this.active[0]].css('display','none')} this.contents[index].css('display','none').stop(!0,!0).fadeIn(this.options.duration,this._events.contentChanged);this.$sections.removeClass('active');this.sections[index].addClass('active')} this._events.contentChanged();this.$tabs.attr('aria-expanded','false').removeClass('active');this.tabs[index].attr('aria-expanded','true').addClass('active');this.active[0]=index;this.setBarPosition(index,!0)},toggleSection:function(index){var indexPos=$.inArray(index,this.active);if(indexPos!=-1){this.contents[index].css('display','block').slideUp(this.options.duration,this._events.contentChanged);this.tabs[index].attr('aria-expanded','true').removeClass('active');this.sections[index].removeClass('active');this.active.splice(indexPos,1)}else{this.contents[index].css('display','none').slideDown(this.options.duration,this._events.contentChanged);this.tabs[index].attr('aria-expanded','false').addClass('active');this.sections[index].addClass('active');this.active.push(index)}},resize:function(){this.width=this.isAccordionAtWidth?$us.$window.outerWidth():this.$container.width();if(this.curLayout!=='accordion'&&!this.width&&this.$container.closest('.w-nav').length&&!jQuery.isMobile){return} var nextLayout=(this.width<=this.minWidth)?'accordion':this.basicLayout;if(nextLayout!==this.curLayout){this.switchLayout(nextLayout)} if(this.curLayout!=='accordion'){this.measure()} this._events.contentChanged();this.setBarPosition(this.active[0])}};$.fn.wTabs=function(options){return this.each(function(){$(this).data('wTabs',new $us.WTabs(this,options))})};jQuery('.w-tabs').wTabs()}(jQuery);jQuery(function($){$('.w-tabs .rev_slider').each(function(){var $slider=$(this);$slider.bind("revolution.slide.onloaded",function(e){$us.$canvas.on('contentChange',function(){$slider.revredraw()})})})});(function($){var $window=$(window),windowHeight=$window.height();$.fn.parallax=function(xposParam){this.each(function(){var $container=$(this),$this=$container.children('.l-section-img'),speedFactor,offsetFactor=0,getHeight,topOffset=0,containerHeight=0,containerWidth=0,disableParallax=!1,parallaxIsDisabled=!1,baseImgHeight=0,baseImgWidth=0,isBgCover=($this.css('background-size')=='cover'),originalBgPos=$this.css('background-position'),curImgHeight=0,reversed=$container.hasClass('parallaxdir_reversed'),baseSpeedFactor=reversed?-0.1:0.61,xpos,outerHeight=!0;if($this.length==0){return} if(xposParam===undefined){xpos="50%"}else{xpos=xposParam} if($container.hasClass('parallax_xpos_right')){xpos="100%"}else if($container.hasClass('parallax_xpos_left')){xpos="0%"} if(outerHeight){getHeight=function(jqo){return jqo.outerHeight(!0)}}else{getHeight=function(jqo){return jqo.height()}} function getBackgroundSize(callback){var img=new Image(),width,height,backgroundSize=($this.css('background-size')||' ').split(' '),backgroundWidthAttr=$this.attr('data-img-width'),backgroundHeightAttr=$this.attr('data-img-height');if(backgroundWidthAttr!=''){width=parseInt(backgroundWidthAttr)} if(backgroundHeightAttr!=''){height=parseInt(backgroundHeightAttr)} if(width!==undefined&&height!==undefined){return callback({width:width,height:height})} if(/px/.test(backgroundSize[0])){width=parseInt(backgroundSize[0])} if(/%/.test(backgroundSize[0])){width=$this.parent().width()*(parseInt(backgroundSize[0])/100)} if(/px/.test(backgroundSize[1])){height=parseInt(backgroundSize[1])} if(/%/.test(backgroundSize[1])){height=$this.parent().height()*(parseInt(backgroundSize[0])/100)} if(width!==undefined&&height!==undefined){return callback({width:width,height:height})} img.onload=function(){if(typeof width=='undefined'){width=this.width} if(typeof height=='undefined'){height=this.height} callback({width:width,height:height})};img.src=($this.css('background-image')||'').replace(/url\(['"]*(.*?)['"]*\)/g,'$1')} function update(){if($us.$html.hasClass('ios-touch')){return} if(disableParallax){if(!parallaxIsDisabled){$this.css('backgroundPosition',originalBgPos);$container.usMod('parallax','fixed');parallaxIsDisabled=!0} return}else{if(parallaxIsDisabled){$container.usMod('parallax','ver');parallaxIsDisabled=!1}} if(isNaN(speedFactor)){return} var pos=$window.scrollTop();if((topOffset+containerHeight=0){speedFactor=Math.min(baseSpeedFactor,curImgHeight/windowHeight);offsetFactor=.5*(windowHeight-curImgHeight-speedFactor*(windowHeight-containerHeight));if(offsetFactor>0){offsetFactor=-offsetFactor}}else{speedFactor=Math.min(baseSpeedFactor,(windowHeight-containerHeight)/(windowHeight+containerHeight));offsetFactor=Math.max(0,speedFactor*containerHeight)}}else{speedFactor=baseSpeedFactor;offsetFactor=0} topOffset=$this.offset().top;update()},10)} getBackgroundSize(function(sz){curImgHeight=baseImgHeight=sz.height;baseImgWidth=sz.width;resize()});$window.bind({scroll:update,load:resize,resize:resize});resize()})};jQuery('.parallax_ver').parallax('50%')})(jQuery);!(function($,_undefined){var _document=document;var USWooCommerce=function(){this.$cart=$('.w-cart');this._activeJqXHR={};this._cartOpened=!1;this._removeProcesses=0;this._events={addToCart:this._addToCart.bind(this),applyCouponCode:this._applyCouponCode.bind(this),changeCartQuantity:this._changeCartQuantity.bind(this),changedFragments:this._changedFragments.bind(this),couponCodeChange:this._couponCodeChange.bind(this),couponDisplaySwitch:this._couponDisplaySwitch.bind(this),enterCouponCode:this._enterCouponCode.bind(this),minusCartQuantity:this._minusCartQuantity.bind(this),moveNotifications:this._moveNotifications.bind(this),outsideClickEvent:this._outsideClickEvent.bind(this),plusCartQuantity:this._plusCartQuantity.bind(this),removeCartItem:this._removeCartItem.bind(this),updateCart:this._updateCart.bind(this),updatedCartTotals:this._updatedCartTotals.bind(this),showLoginForm:this._showLoginForm.bind(this),submitLoginForm:this._submitLoginForm.bind(this),loginFieldKeydown:this._loginFieldKeydown.bind(this)};if(this.isCart()){this.$cartNotification=$('.w-cart-notification',this.$cart);this.$cartNotification.on('click',function(){this.$cartNotification.fadeOutCSS()});if($.isMobile){this.$cart.on('click','.w-cart-link',function(e){if(!this._cartOpened){e.preventDefault();this.$cart.addClass('opened');$us.$body.on('touchstart',this._events.outsideClickEvent)}else{this.$cart.removeClass('opened');$us.$body.off('touchstart',this._events.outsideClickEvent)} this._cartOpened=!this._cartOpened}.bind(this))} $us.$body.on('wc_fragments_loaded wc_fragments_refreshed',this._events.changedFragments).on('added_to_cart',this._events.addToCart).on('removed_from_cart',this._events.updateCart)} if(this.isCartPage()){$us.$body.on('change initControls','input.qty',this._events.changeCartQuantity).on('change','.w-wc-coupon-form input',this._events.couponCodeChange).on('keyup','.w-wc-coupon-form input',this._events.enterCouponCode).on('click','.w-wc-coupon-form button',this._events.applyCouponCode).on('click','a.remove',this._events.removeCartItem).on('click','input.minus',this._events.minusCartQuantity).on('click','input.plus',this._events.plusCartQuantity).on('applied_coupon removed_coupon',this._events.couponDisplaySwitch).on('updated_cart_totals',this._events.updatedCartTotals);$('input.qty',$us.$canvas).trigger('initControls');$.ajaxPrefilter(function(_,originalOptions,jqXHR){var data=(''+originalOptions.data);if(data.indexOf('&update_cart')>-1){this._activeJqXHR.updateCart=jqXHR} if(data.indexOf('&us_calc_shipping')>-1){jqXHR.done(function(res){$('.w-cart-shipping .woocommerce-shipping-destination').html($('.w-cart-shipping:first .woocommerce-shipping-destination',res).html())})}}.bind(this));$('.w-cart-shipping form.woocommerce-shipping-calculator',$us.$canvas).append('')} if(this.isCheckoutPage()){$us.$body.on('change','.w-wc-coupon-form input',this._events.couponCodeChange).on('click','.w-wc-coupon-form button',this._events.applyCouponCode).on('applied_coupon_in_checkout removed_coupon_in_checkout',this._events.couponDisplaySwitch).on('applied_coupon_in_checkout removed_coupon_in_checkout checkout_error',this._events.moveNotifications).on('click','.w-checkout-login .showlogin',this._events.showLoginForm).on('click','.w-checkout-login button',this._events.submitLoginForm).on('keydown','.w-checkout-login input, .w-checkout-login button',this._events.loginFieldKeydown)}};$.extend(USWooCommerce.prototype,{isCart:function(){return!!this.$cart.length},isCartPage:function(){return $us.$body.hasClass('woocommerce-cart')},isCheckoutPage:function(){return $us.$body.hasClass('woocommerce-checkout')},toNumValue:function(value){value=Math.abs(value);return!isNaN(value)?value:0},_switchCart:function(){this.$cart.on('focus.upsolution blur.upsolution',function(e){$(e.target)[e.type==='focus.upsolution'?'addClass':'removeClass']('opened')})},_updateCart:function(){$.each(this.$cart,function(_,cart){var $cart=$(cart),$cartQuantity=$('.w-cart-quantity',$cart),miniCartAmount=$('.us_mini_cart_amount:first',$cart).text();if($cart.hasClass('opened')){$cart.removeClass('opened')} if(miniCartAmount!==_undefined){miniCartAmount=(miniCartAmount+'').match(/\d+/g);$cartQuantity.html(miniCartAmount>0?miniCartAmount:'0');$cart[miniCartAmount>0?'removeClass':'addClass']('empty')}else{var total=0;$('.quantity',$cart).each(function(_,quantity){var matches=(''+quantity.innerText).match(/\d+/g);if(matches){total+=parseInt(matches[0],10)}});$cartQuantity.html(total>0?total:'0');$cart[total>0?'removeClass':'addClass']('empty')}}.bind(this))},_changedFragments:function(){this._updateCart();this._switchCart()},_addToCart:function(e,fragments,_,$button){if(e===_undefined){return} this._updateCart();var $notification=this.$cartNotification,$productName=$('.product-name',$notification),productName=$productName.text();productName=$button.closest('.product').find('.woocommerce-loop-product__title').text();$productName.html(productName);$notification.addClass('shown');$notification.on('mouseenter',function(){$notification.removeClass('shown')});$ush.timeout(function(){$notification.removeClass('shown').off('mouseenter')},3000)},_outsideClickEvent:function(e){if($.contains(this.$cart[0],e.target)){return} this.$cart.removeClass('opened');$us.$body.off('touchstart',this._events.outsideClickEvent);this._cartOpened=!1},_removeCartItem:function(e){var $item=$(e.target).closest('.cart_item').addClass('change_process');if(!$item.siblings('.cart_item:not(.change_process)').length){$('.w-cart-table',$us.$canvas).remove()}},_changeCartQuantity:function(e){if($us.usbPreview()){return} var $input=$(e.target),max=(this.toNumValue($input.attr('max'))||-1),min=(this.toNumValue($input.attr('min'))||1),value=this.toNumValue($input.val());if($input.is(':disabled')){return} if(min>=value){value=min} if(max>1&&value>=max){value=max} if(value!=$input.val()){$input.val(value)} $input.siblings('input.plus:first').prop('disabled',(max>0&&value>=max));$input.siblings('input.minus:first').prop('disabled',(value<=min));if(e.type=='initControls'){return} $('input[name=us_cart_quantity]',$us.$canvas).val(!0);if(!$('.w-cart-table',$us.$canvas).hasClass('processing')){this.__updateCartForm_long(this._updateCartForm.bind(this))}else{this._updateCartForm()}},_minusCartQuantity:function(e){var $target=$(e.target),$input=$target.siblings('input.qty:first');if(!$input.length){return} var step=this.toNumValue($input.attr('step')||1);$input.val(this.toNumValue($input.val())-step).trigger('change')},_plusCartQuantity:function(e){var $target=$(e.target),$input=$target.siblings('input.qty:first');if(!$input.length){return} var step=this.toNumValue($input.attr('step')||1);$input.val(this.toNumValue($input.val())+step).trigger('change')},__updateCartForm_long:$ush.debounce($ush.fn,50),_updateCartForm:function(){if($.isFunction((this._activeJqXHR.updateCart||{}).abort)){this._activeJqXHR.updateCart.abort()} $('.w-cart-table > button[name=update_cart]',$us.$canvas).removeAttr('disabled').trigger('click')},_updatedCartTotals:function(){if(!!this._activeJqXHR.updateCart){this._activeJqXHR.updateCart=_undefined} var wooElementClasses=['w-cart-shipping','w-cart-table','w-cart-totals','w-checkout-billing','w-checkout-order-review','w-checkout-payment','w-wc-coupon-form',];for(var i in wooElementClasses){$('.'+wooElementClasses[i]+'.us_animate_this',$us.$canvas).removeClass('us_animate_this')} var $elm=$('.w-cart-shipping .shipping',$us.$canvas);if(!$elm.length){return} $elm.html($('.w-cart-totals .shipping:first',$us.$canvas).html())},_couponCodeChange:function(e){$('.w-cart-table, form.checkout_coupon',$us.$canvas).find('input[name=coupon_code]').val(e.target.value)},_enterCouponCode:function(e){if(e.keyCode!==13){return} $(e.target).trigger('change').siblings('button:first').trigger('click')},_applyCouponCode:function(e){e.stopPropagation();e.preventDefault();$('.w-cart-table, form.checkout_coupon',$us.$canvas).find('button[name=apply_coupon]').trigger('click');$(e.target).closest('.w-wc-coupon-form').find('input:first').val('')},_couponDisplaySwitch:function(e){var $coupon=$('.w-wc-coupon-form',$us.$canvas);if(!$coupon.length){return} if(e.type.indexOf('applied_coupon')>-1&&!$('.woocommerce-error',$us.$canvas).length){$coupon.addClass('coupon_applied')} if(e.type.indexOf('removed_coupon')>-1&&$('.woocommerce-remove-coupon',$us.$canvas).length<=1){$coupon.removeClass('coupon_applied')}},_moveNotifications:function(e){var $wcNotices=$('.w-wc-notices:first',$us.$canvas),args=arguments;if(!$wcNotices.length){var $cartTotals=$('.w-cart-totals',$us.$canvas),$checkoutPayment=$('.w-checkout-payment',$us.$canvas);if(!$cartTotals.length&&!$checkoutPayment.length){return}} var $message;if(e.type==='checkout_error'&&!!args[1]){$message=$(args[1])}else{$message=$('.woocommerce-error, .woocommerce-message',$us.$canvas)} if($message.length){$wcNotices.html($message.clone())} $message.remove();if(e.type==='checkout_error'){$('.woocommerce-NoticeGroup-checkout').remove()}},_showLoginForm:function(){$('.woocommerce-form-login').toggleClass('hidden');return!1},_submitLoginForm:function(){if(this.isSubmittingLoginForm){return!1} this.isSubmittingLoginForm=!0;var $formView=$('.w-checkout-login'),$usernameField=$formView.find('#us_checkout_login_username'),$passwordField=$formView.find('#us_checkout_login_password'),$redirectField=$formView.find('#us_checkout_login_redirect'),$nonceField=$formView.find('#us_checkout_login_nonce');if($usernameField.length==0||$passwordField.length==0||$redirectField.length==0||$nonceField.length==0){return!1} var fields={'login':'Login','rememberme':'forever','username':$usernameField.val(),'password':$passwordField.val(),'redirect':$redirectField.val(),'woocommerce-login-nonce':$nonceField.val(),},$form=$('
',{method:'post'});$.each(fields,function(key,val){$('').attr({type:"hidden",name:key,value:val}).appendTo($form)});$form.appendTo('body').submit();return!1},_loginFieldKeydown:function(e){var keyCode=e.keyCode||e.which;if(keyCode==13){e.stopPropagation();e.preventDefault();this._submitLoginForm()}}});new USWooCommerce()})(jQuery) ;!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s0))return r=s.getHost(e),!0;for(var t=0;t0)for(var i=0;i0)for(var s=0;se.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",t,!0)}function r(){return"undefined"!=typeof sbjs}function c(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),a(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&r()?n:i,o=r()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!r())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();!function(t){for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}(i),a(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",c):c(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution) ;(()=>{"use strict";function e(e,t){return!!e.includes(parseInt(t))||!!e.includes(t.toString())}function t(e,t){return parseInt(e+t)}function n(e){let t=""+e.getMinutes();return 1===t.length&&(t="0"+t),e.getHours()+":"+t}function s(e){this.qlwapp=e,this.init(this)}s.prototype={open(e,t){let n="https://api.whatsapp.com/send";this.mobiledevice||(n="https://web.whatsapp.com/send");const s=t,a=s.dataset.message||"",o=s.dataset.phone||"",i=s.dataset.type||"phone",l=s.dataset.group||"";"group"==i?s.setAttribute("href",l):s.setAttribute("href",n+"?phone="+o+"&text="+encodeURIComponent(a));const p=new CustomEvent("qlwapp.click",{bubbles:!0,cancelable:!0});this.qlwapp.dispatchEvent(p)},toggle(e){e?.preventDefault();const t=new CustomEvent("qlwapp.toggle");this.qlwapp.dispatchEvent(t)},chat(e,t){e.preventDefault();const n=t.closest(".qlwapp-box"),s=n.querySelector(".qlwapp-reply"),a=n.querySelector(".qlwapp-header"),o=t.querySelector(".qlwapp-avatar img")?.getAttribute("src"),i=t.querySelector(".qlwapp-name")?.textContent,l=t.querySelector(".qlwapp-label")?.textContent,p=t.querySelector(".qlwapp-time")?.textContent,r=t.dataset.message,c=t.dataset.type,u=t.dataset.group,d=t.dataset.phone;n.classList.add("response","opening"),this.qlwapp.dispatchEvent(new CustomEvent("qlwapp.height")),setTimeout((function(){n.classList.remove("opening")}),300);const w=a.querySelector(".qlwapp-avatar img"),q=a.querySelector(".qlwapp-number"),m=a.querySelector(".qlwapp-name"),g=a.querySelector(".qlwapp-label"),f=n.querySelector(".qlwapp-message");w&&(w.setAttribute("src",o),w.setAttribute("alt",i)),q&&(q.innerHTML=u),m&&(m.innerHTML=i),g&&(g.innerHTML=p?p+" - "+l:l),f&&(f.innerHTML=r),s.dataset[c]="phone"==c?d:u,s.dataset.type=c},previous(e,t){e.preventDefault();const n=t.closest(".qlwapp-box");n.classList.add("closing"),setTimeout((function(){n.classList.remove("response","closing"),n.classList.remove("texting")}),300)},init(s){const a=new CustomEvent("qlwapp.init"),o=new CustomEvent("qlwapp.resize"),i=this.qlwapp;if(i.classList.add("qlwapp-js-ready"),i.classList.contains("auto-load")&&!function(){const e=document.cookie.match("(^|;) ?qlwapp-auto-load=([^;]*)(;|$)");return e?e[2]:null}()){const e=Number(i.dataset.autoloadelay);setTimeout((()=>{s.toggle()}),e),function(e,t,n){const s=new Date;s.setTime(s.getTime()+864e5*n),document.cookie=e+"="+t+";path=/;expires="+s.toGMTString()}("qlwapp-auto-load","auto open cookie",1)}i.addEventListener("qlwapp.init",(function(e){s.mobiledevice=function(){const e=window.matchMedia("(pointer:coarse)");return e&&e.matches}()})),i.addEventListener("qlwapp.time",(function(s){const a=s.target,o=JSON.parse(a.dataset.timedays)||[],i=parseInt(a.dataset.timezone)||0,l=new Date((new Date).getTime()+60*i*1e3).getUTCDay().toString(),p=a.querySelector(".qlwapp-days"),r=a.querySelector(".qlwapp-time");if(o&&o.length&&!o.includes(l)){a.classList.add("qlwapp-timeout"),p&&(p.style.display="block"),r&&(r.style.display="none");const t=function(t,n){for(let s=t;s<=6;s++)if(e(n,s))return s;for(let s=0;s<=t;s++)if(e(n,s))return s}(l,o),n=a.querySelector(`.day${t}`);return n&&n.classList.add("qlwapp-available-day"),!0}o&&o.length&&o.includes(l)&&(p&&(p.style.display="none"),r&&(r.style.display="block"));const c=a.dataset.timefrom||!1,u=a.dataset.timeto||!1;if(!u||!c||c===u)return!0;const d=new Date,w=-d.getTimezoneOffset()-i,q=new Date,m=new Date;let g,f;g=t(c[0],c[1]),f=t(c[3],c[4]),m.setHours(g),m.setMinutes(f+w),g=t(u[0],u[1]),f=t(u[3],u[4]),q.setHours(g),q.setMinutes(f+w);let y=m.getTime();const v=q.getTime();if(y>v&&(y-=864e5),d.getTime()>=y&&d.getTime()<=v||(a.classList.add("qlwapp-timeout"),p&&(p.style.display="none"),r&&(r.style.display="block")),!i)return!0;a.querySelector(".from").textContent=n(m),a.querySelector(".to").textContent=n(q)})),i.addEventListener("qlwapp.pro",(function(){const e=i.querySelector(".qlwapp-toggle"),t=i.querySelectorAll(".qlwapp-account"),n=new CustomEvent("qlwapp.time",{bubbles:!0});e.dispatchEvent(n),t.forEach((function(e){e.dispatchEvent(n)}))})),i.addEventListener("qlwapp.resize",(function(){this.classList.contains("qlwapp-show")&&s.toggle()})),i.addEventListener("qlwapp.init",(function(){s.mobiledevice?(i.classList.add("mobile"),i.classList.remove("desktop")):(i.classList.add("desktop"),i.classList.remove("mobile")),i.classList.add("qlwapp-js-ready")})),i.addEventListener("qlwapp.init",(function(){if(i.classList.contains("qlwapp-premium")){const e=new CustomEvent("qlwapp.pro");i.dispatchEvent(e)}})),i.addEventListener("qlwapp.height",(function(e){const t=e.currentTarget,n=t.querySelector(".qlwapp-body").querySelector(".qlwapp-carousel"),a=t?.querySelector(".qlwapp-header")?.offsetHeight||0,o=t?.querySelector(".qlwapp-footer")?.offsetHeight||0;if(!n)return;let i=window.innerHeight-a-o;s.mobiledevice||(i=.7*window.innerHeight-a-o),n.style.maxHeight=i+"px"})),i.addEventListener("qlwapp.toggle",(function(e){const t=e.currentTarget,n=t.querySelector(".qlwapp-box");t.classList.add("qlwapp-transition"),n.classList.remove("response","texting"),setTimeout((function(){t.classList.toggle("qlwapp-show");const e=new CustomEvent("qlwapp.height",{bubbles:!0});t.dispatchEvent(e)}),10),setTimeout((function(){t.classList.toggle("qlwapp-transition")}),300)})),i.addEventListener("click",(function(e){const t=e.target.closest("[data-action]");if(!t||!i.contains(t))return;const n=t.dataset?.action;switch(n){case"open":s.open(e,t);break;case"box":case"close":s.toggle(e,t);break;case"chat":s.chat(e,t);break;case"previous":s.previous(e,t)}})),i.querySelector("[data-action=response]")?.addEventListener("keypress",(function(e){e.target.matches("textarea")&&13==e.keyCode&&setTimeout((function(){!function(e){if("createEvent"in document){const t=e.ownerDocument,n=t.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,t.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}else e.click()}(i.querySelector(".qlwapp-reply"))}),100)})),i.querySelector("[data-action=response]")?.addEventListener("keyup",(function(e){if(e.target.matches("textarea")){e.preventDefault();const t=e.currentTarget,n=e.target,s=t.querySelector("pre"),a=t.querySelector(".qlwapp-reply"),o=i.querySelector(".qlwapp-box"),l=o.querySelector(".qlwapp-buttons");s.innerHTML=n.value,setTimeout((function(){o.classList.add("texting"),o.style.paddingBottom=s.offsetHeight+"px",l.classList.add("active");const e=n.value;a.dataset.message=e,""==e&&(o.classList.remove("texting"),l.classList.remove("active"))}),300)}})),i.dispatchEvent(a),window.addEventListener("click",(e=>{if(!e.target.closest("#qlwapp.qlwapp-show")){const e=document.querySelector("#qlwapp.qlwapp-show");e&&e.dispatchEvent(new CustomEvent("qlwapp.toggle"))}})),window.addEventListener("resize",(()=>{if("TEXTAREA"!==document.activeElement.tagName){const e=document.querySelector("#qlwapp");e&&(e.dispatchEvent(o),e.dispatchEvent(a))}}))}};const a=s;(()=>{window.qlwapp=(e,t)=>{if(void 0===t||"object"==typeof t)e.plugin_qlwapp||(e.plugin_qlwapp=new a(e,t));else if("string"==typeof t&&"_"!==t[0]&&"init"!==t){let n;const s=e.plugin_qlwapp;if(s instanceof a&&"function"==typeof s[t]){const e=Array.from(arguments).slice(1);n=s[t](...e)}return"destroy"===t&&(e.plugin_qlwapp=null),void 0!==n?n:e}};const e=()=>{document.querySelectorAll(".qlwapp").forEach((function(e){window.qlwapp(e)}))};e(),window.addEventListener("load",(()=>{e()}))})()})() ;"use strict";var iti,ajax_url=cwginstock.ajax_url,security_error=cwginstock.security_error,userid=cwginstock.user_id,emptyname=cwginstock.empty_name,emptyemail=cwginstock.empty_email,emptyquantity=cwginstock.empty_quantity,invalidemail=cwginstock.invalid_email,get_bot_type=cwginstock.get_bot_type,recaptcha_enabled=cwginstock.enable_recaptcha,recaptcha_site_key=cwginstock.recaptcha_site_key,recaptcha_verify_enabled=cwginstock.enable_recaptcha_verify,recaptcha_secret_present=cwginstock.recaptcha_secret_present,turnstile_enabled=cwginstock.enable_turnstile,turnstile_site_key=cwginstock.turnstile_site_key,is_iagree=cwginstock.is_iagree_enable,iagree_error=cwginstock.iagree_error,is_v3_recaptcha=cwginstock.is_v3_recaptcha,is_popup=cwginstock.is_popup,googlerecaptcha_widget_id=null,turnstile_widget_id=null,gtoken="",phone_field=cwginstock.phone_field,subscriber_phone="",phone_meta_data="",phone_error=cwginstock.phone_field_error,is_phone_field_optional=cwginstock.is_phone_field_optional,is_quantity_field_optional=cwginstock.is_quantity_field_optional,hide_country_placeholder=cwginstock.hide_country_placeholder,default_country_code=cwginstock.default_country_code;function cwginstock_recaptcha_callback(e){document.getElementsByClassName("cwgstock_button")[0].disabled=!1,"1"==recaptcha_verify_enabled&&"yes"==recaptcha_secret_present&&(document.getElementsByClassName("cwg-security")[0].value=e)}function cwginstock_turnstile_callback(e){document.getElementsByClassName("cwgstock_button")[0].disabled=!1,document.getElementsByClassName("cwg-security")[0].value=e}var instock_notifier={init:function(){"no"==is_popup&&instock_notifier.generate_v3_response(),jQuery(document).on("click",".cwgstock_button",this.submit_form),jQuery(".single_variation_wrap").on("show_variation",this.perform_upon_show_variation),"1"==phone_field&&instock_notifier.initialize_phone()},initialize_phone:function(){var e=document.querySelector(".cwgstock_phone");e&&(iti=window.intlTelInput(e,{allowDropdown:!0,formatOnDisplay:!0,autoHideDialCode:!1,separateDialCode:!0,utilsScript:cwginstock.phone_utils_js,initialCountry:default_country_code,customPlaceholder:function(e,t){return(default_country_code=default_country_code.toLowerCase())==t.iso2&&"2"==cwginstock.hide_country_placeholder?""!=cwginstock.custom_country_placeholder?cwginstock.custom_country_placeholder:e:""}}))},perform_upon_show_variation:function(e,t){var c=t.variation_id;jQuery(".cwginstock-subscribe-form").hide(),jQuery(".cwginstock-subscribe-form-"+c).show(),"recaptcha"==get_bot_type?"1"==recaptcha_enabled&&instock_notifier.onloadcallback():"1"==turnstile_enabled&&instock_notifier.turnstilecallback(),"1"==phone_field&&instock_notifier.initialize_phone()},generate_v3_response:function(){"1"==recaptcha_enabled&&"yes"==is_v3_recaptcha&&grecaptcha.ready((function(){grecaptcha.execute(recaptcha_site_key,{action:"subscribe_form"}).then((function(e){document.getElementsByClassName("cwg-security").length>0&&(document.getElementsByClassName("cwg-security")[0].value=e,document.getElementsByClassName("cwgstock_button")[0].disabled=!1,gtoken=e)}))}))},is_email:function(e){return/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)},submit_form:function(e){e.preventDefault();var t=jQuery(this),c=jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_name").val(),s=jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_email").val(),i=jQuery(this).closest(".cwginstock-subscribe-form").find(".add_quantity_field").val();if((""===i||i<=0)&&"2"==is_quantity_field_optional)return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(),jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("
"+emptyquantity+"
"),!1;if("1"==phone_field){var o=iti.getNumber();if(phone_meta_data=iti.getSelectedCountryData(),!iti.isValidNumber()){var r=iti.getValidationError(),n=phone_error[r];if(-99==r&&(n=phone_error[0]),-99!=r&&"1"==is_phone_field_optional||"2"==is_phone_field_optional)return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(),jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("
"+n+"
"),!1}}var a=jQuery(this).closest(".cwginstock-subscribe-form").find(".cwg-product-id").val(),l=jQuery(this).closest(".cwginstock-subscribe-form").find(".cwg-variation-id").val();if(""==c)return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(),jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("
"+emptyname+"
"),!1;if(""==s)return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(),jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("
"+emptyemail+"
"),!1;if(!instock_notifier.is_email(s))return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(),jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("
"+invalidemail+"
"),!1;if("1"==is_iagree&&!jQuery(this).closest(".cwginstock-subscribe-form").find(".cwg_iagree_checkbox_input").is(":checked"))return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(),jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("
"+iagree_error+"
"),!1;var u=jQuery(this).closest(".cwginstock-subscribe-form").find(".cwg-security").val(),_={action:"cwginstock_product_subscribe",product_id:a,variation_id:l,subscriber_name:c,subscriber_phone:o,subscriber_phone_meta:phone_meta_data,user_email:s,user_id:userid,security:u,dataobj:cwginstock,custom_quantity:i};jQuery.fn.block?t.closest(".cwginstock-subscribe-form").block({message:null}):jQuery('
').appendTo(t.closest(".cwginstock-subscribe-form")),instock_notifier.perform_ajax(_,t)},recaptcha_callback:function(e){document.getElementsByClassName("cwg-security").length>0&&(document.getElementsByClassName("cwgstock_button")[0].disabled=!1,"1"==recaptcha_verify_enabled&&"yes"==recaptcha_secret_present&&(document.getElementsByClassName("cwg-security")[0].value=e))},turnstile_callback:function(e){document.getElementsByClassName("cwg-security").length>0&&(document.getElementsByClassName("cwgstock_button")[0].disabled=!1,document.getElementsByClassName("cwg-security")[0].value=e)},onloadcallback:function(){"recaptcha"==get_bot_type&&"1"==recaptcha_enabled&&("no"==is_v3_recaptcha?jQuery("#cwg-google-recaptcha").length&&(null===googlerecaptcha_widget_id?googlerecaptcha_widget_id=grecaptcha.render("cwg-google-recaptcha",{sitekey:recaptcha_site_key,callback:this.recaptcha_callback}):(grecaptcha.reset(googlerecaptcha_widget_id),this.recaptcha_callback(),googlerecaptcha_widget_id=null,instock_notifier.onloadcallback())):instock_notifier.generate_v3_response())},turnstilecallback:function(){"turnstile"==get_bot_type&&"1"==turnstile_enabled&&jQuery("#cwg-turnstile-captcha").length&&(null===turnstile_widget_id?turnstile_widget_id=turnstile.render("#cwg-turnstile-captcha",{sitekey:turnstile_site_key,theme:"light",callback:this.turnstile_callback}):(turnstile.reset(turnstile_widget_id),this.turnstile_callback(),turnstile_widget_id=null,instock_notifier.turnstilecallback()))},resetcallback:function(){"recaptcha"==get_bot_type?"1"==recaptcha_enabled&&("no"==is_v3_recaptcha?(grecaptcha.reset(),document.getElementsByClassName("cwgstock_button")[0].disabled=!0):instock_notifier.generate_v3_response()):"1"==turnstile_enabled&&(turnstile.reset(),document.getElementsByClassName("cwgstock_button")[0].disabled=!0)},perform_ajax:function(e,t){jQuery.ajax({type:"post",url:ajax_url,data:e,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",cwginstock.security)},success:function(c){c=c.msg,t.closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(2e3),t.closest(".cwginstock-subscribe-form").find(".cwgstock_output").html(c),jQuery.fn.block?t.closest(".cwginstock-subscribe-form").unblock():t.closest(".cwginstock-subscribe-form").find("#cwg-bis-overlay").fadeOut(400,(function(){t.closest(".cwginstock-subscribe-form").find("#cwg-bis-overlay").remove()})),instock_notifier.resetcallback(),jQuery(document).trigger("cwginstock_success_ajax",e)},error:function(c,s,i){void 0!==c.responseJSON&&c.responseJSON.hasOwnProperty("code")&&void 0!==c.responseJSON.code&&("rest_cookie_invalid_nonce"!=c.responseJSON.code&&"cwg_nonce_verify_failed"!=c.responseJSON.code||(c.responseText=-1)),"-1"!==c.responseText&&-1!==c.responseText||(t.closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(2e3),t.closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("
"+security_error+"
")),jQuery.fn.block?t.closest(".cwginstock-subscribe-form").unblock():t.closest(".cwginstock-subscribe-form").find("#cwg-bis-overlay").fadeOut(400,(function(){t.closest(".cwginstock-subscribe-form").find("#cwg-bis-overlay").remove()})),instock_notifier.resetcallback(),jQuery(document).trigger("cwginstock_error_ajax",e)}})}};instock_notifier.init() ;!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;nt.clientHeight)}function lt(t){var e=window.getComputedStyle(t),t=parseFloat(e.getPropertyValue("animation-duration")||"0"),e=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0\n
\n
    \n
    \n \n

    \n \n
    \n
    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),kt=function(t){var e,n,o,i,r,a=!!(i=k())&&(i.parentNode.removeChild(i),bt([document.documentElement,document.body],[$["no-backdrop"],$["toast-shown"],$["has-column"]]),!0);pt()?K("SweetAlert2 requires document to initialize"):((r=document.createElement("div")).className=$.container,a&&vt(r,$["no-transition"]),U(r,Ct),(i="string"==typeof(e=t.target)?document.querySelector(e):e).appendChild(r),a=t,(e=A()).setAttribute("role",a.toast?"alert":"dialog"),e.setAttribute("aria-live",a.toast?"polite":"assertive"),a.toast||e.setAttribute("aria-modal","true"),r=i,"rtl"===window.getComputedStyle(r).direction&&vt(k(),$.rtl),t=P(),a=yt(t,$.input),e=yt(t,$.file),n=t.querySelector(".".concat($.range," input")),o=t.querySelector(".".concat($.range," output")),i=yt(t,$.select),r=t.querySelector(".".concat($.checkbox," input")),t=yt(t,$.textarea),a.oninput=ft,e.onchange=ft,i.onchange=ft,r.onchange=ft,t.oninput=ft,n.oninput=function(t){ft(t),o.value=n.value},n.onchange=function(t){ft(t),n.nextSibling.value=n.value})},At=function(t,e){t.jquery?xt(e,t):U(e,t.toString())},xt=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Bt=function(){if(pt())return!1;var t,e=document.createElement("div"),n={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&void 0!==e.style[t])return n[t];return!1}();function Pt(t,e,n){ut(t,n["show".concat(m(e),"Button")],"inline-block"),U(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=$[e],F(t,n,"".concat(e,"Button")),vt(t,n["".concat(e,"ButtonClass")])}function Ot(t,e){var n,o,i=k();i&&(o=i,"string"==typeof(n=e.backdrop)?o.style.background=n:n||vt([document.documentElement,document.body],$["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&W('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),o=i,(n=e.position)in $?vt(o,$[n]):(W('The "position" parameter is not valid, defaulting to "center"'),vt(o,$.center)),n=i,!(o=e.grow)||"string"!=typeof o||(o="grow-".concat(o))in $&&vt(n,$[o]),F(i,e,"container"),(e=document.body.getAttribute("data-swal2-queue-step"))&&(i.setAttribute("data-queue-step",e),document.body.removeAttribute("data-swal2-queue-step")))}function Et(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}function St(t,e,n){var o,i;n.inputLabel&&(t.id=$.input,o=document.createElement("label"),i=$["input-label"],o.setAttribute("for",t.id),o.className=i,vt(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o))}var Tt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Lt=["input","file","range","select","radio","checkbox","textarea"],Dt=function(t){if(!It[t.input])return K('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=Mt(t.input),n=It[t.input](e,t);rt(n),setTimeout(function(){nt(n)})},qt=function(t,e){var n=et(P(),t);if(n)for(var o in!function(t){for(var e=0;e=o.progressSteps.length&&W("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.progressSteps.forEach(function(t,e){var n,t=(n=t,t=document.createElement("li"),vt(t,$["progress-step"]),U(t,n),t);i.appendChild(t),e===r&&vt(t,$["active-progress-step"]),e!==o.progressSteps.length-1&&(t=o,e=document.createElement("li"),vt(e,$["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e=e,i.appendChild(e))})}function Nt(t,e){var n,o=M();F(o,e,"header"),Rt(0,e),n=t,o=e,t=Tt.innerParams.get(n),n=x(),t&&o.icon===t.icon?(Wt(n,o),Ft(n,o)):o.icon||o.iconHtml?o.icon&&-1===Object.keys(X).indexOf(o.icon)?(K('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(o.icon,'"')),at(n)):(rt(n),Wt(n,o),Ft(n,o),vt(n,o.showClass.icon)):at(n),function(t){var e=E();if(!t.imageUrl)return at(e);rt(e,""),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),it(e,"width",t.imageWidth),it(e,"height",t.imageHeight),e.className=$.image,F(e,t,"image")}(e),o=e,n=B(),ut(n,o.title||o.titleText),o.title&&mt(o.title,n),o.titleText&&(n.innerText=o.titleText),F(n,o,"title"),o=e,e=V(),U(e,o.closeButtonHtml),F(e,o,"closeButton"),ut(e,o.showCloseButton),e.setAttribute("aria-label",o.closeButtonAriaLabel)}function Ut(t,e){var n,o,i;i=e,n=k(),o=A(),i.toast?(it(n,"width",i.width),o.style.width="100%"):it(o,"width",i.width),it(o,"padding",i.padding),i.background&&(o.style.background=i.background),at(S()),Qt(o,i),Ot(0,e),Nt(t,e),Ht(t,e),ht(0,e),i=e,t=I(),ut(t,i.footer),i.footer&&mt(i.footer,t),F(t,i,"footer"),"function"==typeof e.didRender?e.didRender(A()):"function"==typeof e.onRender&&e.onRender(A())}function _t(){return T()&&T().click()}var Ft=function(t,e){for(var n in X)e.icon!==n&&bt(t,X[n]);vt(t,X[e.icon]),Kt(t,e),zt(),F(t,e,"icon")},zt=function(){for(var t=A(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o\n \n
    \n
    \n '):"error"===e.icon?U(t,'\n \n \n \n \n '):U(t,Yt({question:"?",warning:"!",info:"i"}[e.icon]))},Kt=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var n=0,o=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n').concat(t,"")},Zt=[],Qt=function(t,e){t.className="".concat($.popup," ").concat(wt(t)?e.showClass.popup:""),e.toast?(vt([document.documentElement,document.body],$["toast-shown"]),vt(t,$.toast)):vt(t,$.modal),F(t,e,"popup"),"string"==typeof e.customClass&&vt(t,e.customClass),e.icon&&vt(t,$["icon-".concat(e.icon)])};function Jt(t){(e=A())||Mn.fire();var e=A(),n=j(),o=D();!t&&wt(T())&&(t=T()),rt(n),t&&(at(t),o.setAttribute("data-button-to-replace",t.className)),o.parentNode.insertBefore(o,t),vt([e,n],$.loading),rt(o),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()}function $t(){return new Promise(function(t){var e=window.scrollX,n=window.scrollY;te.restoreFocusTimeout=setTimeout(function(){te.previousActiveElement&&te.previousActiveElement.focus?(te.previousActiveElement.focus(),te.previousActiveElement=null):document.body&&document.body.focus(),t()},100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)})}function Xt(){if(te.timeout)return function(){var t=H(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),n=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(n,"%")}(),te.timeout.stop()}function Gt(){if(te.timeout){var t=te.timeout.start();return dt(t),t}}var te={},ee=!1,ne={};function oe(t){for(var e=t.target;e&&e!==document;e=e.parentNode)for(var n in ne){var o=e.getAttribute(n);if(o)return void ne[n].fire({template:o})}}function ie(t){return Object.prototype.hasOwnProperty.call(se,t)}function re(t){return ce[t]}function ae(t){for(var e in t)ie(n=e)||W('Unknown parameter "'.concat(n,'"')),t.toast&&(n=e,-1!==le.indexOf(n)&&W('The parameter "'.concat(n,'" is incompatible with toasts'))),re(e=e)&&v(e,re(e));var n}var se={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},ue=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ce={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},le=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","heightAuto","keydownListenerCapture"],de=Object.freeze({isValidParameter:ie,isUpdatableParameter:function(t){return-1!==ue.indexOf(t)},isDeprecatedParameter:re,argsToParams:function(n){var o={};return"object"!==r(n[0])||C(n[0])?["title","html","icon"].forEach(function(t,e){e=n[e];"string"==typeof e||C(e)?o[t]=e:void 0!==e&&K("Unexpected type of ".concat(t,'! Expected "string" or "Element", got ').concat(r(e)))}):u(o,n[0]),o},isVisible:function(){return wt(A())},clickConfirm:_t,clickDeny:function(){return L()&&L().click()},clickCancel:function(){return q()&&q().click()},getContainer:k,getPopup:A,getTitle:B,getContent:P,getHtmlContainer:O,getImage:E,getIcon:x,getInputLabel:function(){return t($["input-label"])},getCloseButton:V,getActions:j,getConfirmButton:T,getDenyButton:L,getCancelButton:q,getLoader:D,getHeader:M,getFooter:I,getTimerProgressBar:H,getFocusableElements:R,getValidationMessage:S,isLoading:function(){return A().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),n=0;nwindow.innerHeight&&(tt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(tt.previousBodyPadding+function(){var t=document.createElement("div");t.className=$["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px"))}function me(){return!!window.MSInputMethodContext&&!!document.documentMode}function he(){var t=k(),e=A();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var ge=function(){navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||A().scrollHeight>window.innerHeight-44&&(k().style.paddingBottom="".concat(44,"px"))},ve=function(){var e,t=k();t.ontouchstart=function(t){e=be(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},be=function(t){var e=t.target,n=k();return!ye(t)&&!we(t)&&(e===n||!(ct(n)||"INPUT"===e.tagName||ct(P())&&P().contains(e)))},ye=function(t){return t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType},we=function(t){return t.touches&&1")),kt(t)}function je(t){var e=k(),n=A();"function"==typeof t.willOpen?t.willOpen(n):"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var o=window.getComputedStyle(document.body).overflowY;Je(e,n,t),setTimeout(function(){Ze(e,n)},10),N()&&(Qe(e,t.scrollbarPadding,o),g(document.body.children).forEach(function(t){t===k()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,k())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})),G()||te.previousActiveElement||(te.previousActiveElement=document.activeElement),Ye(n,t),bt(e,$["no-transition"])}function Me(t){var e=A();t.target===e&&(t=k(),e.removeEventListener(Bt,Me),t.style.overflowY="auto")}function Ie(t,e){t.closePopup({isConfirmed:!0,value:e})}function He(t,e,n){var o=R();if(o.length)return(e+=n)===o.length?e=0:-1===e&&(e=o.length-1),o[e].focus();A().focus()}var Ve=["swal-title","swal-html","swal-footer"],Re=function(t){var n={};return g(t.querySelectorAll("swal-param")).forEach(function(t){Ke(t,["name","value"]);var e=t.getAttribute("name"),t=t.getAttribute("value");"boolean"==typeof se[e]&&"false"===t&&(t=!1),"object"===r(se[e])&&(t=JSON.parse(t)),n[e]=t}),n},Ne=function(t){var n={};return g(t.querySelectorAll("swal-button")).forEach(function(t){Ke(t,["type","color","aria-label"]);var e=t.getAttribute("type");n["".concat(e,"ButtonText")]=t.innerHTML,n["show".concat(m(e),"Button")]=!0,t.hasAttribute("color")&&(n["".concat(e,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(n["".concat(e,"ButtonAriaLabel")]=t.getAttribute("aria-label"))}),n},Ue=function(t){var e={},t=t.querySelector("swal-image");return t&&(Ke(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt"))),e},_e=function(t){var e={},t=t.querySelector("swal-icon");return t&&(Ke(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e},Fe=function(t){var n={},e=t.querySelector("swal-input");e&&(Ke(e,["type","label","placeholder","value"]),n.input=e.getAttribute("type")||"text",e.hasAttribute("label")&&(n.inputLabel=e.getAttribute("label")),e.hasAttribute("placeholder")&&(n.inputPlaceholder=e.getAttribute("placeholder")),e.hasAttribute("value")&&(n.inputValue=e.getAttribute("value")));t=t.querySelectorAll("swal-input-option");return t.length&&(n.inputOptions={},g(t).forEach(function(t){Ke(t,["value"]);var e=t.getAttribute("value"),t=t.innerHTML;n.inputOptions[e]=t})),n},ze=function(t,e){var n,o={};for(n in e){var i=e[n],r=t.querySelector(i);r&&(Ke(r,[]),o[i.replace(/^swal-/,"")]=r.innerHTML)}return o},We=function(e){var n=Ve.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);g(e.querySelectorAll("*")).forEach(function(t){t.parentNode===e&&(t=t.tagName.toLowerCase(),-1===n.indexOf(t)&&W("Unrecognized element <".concat(t,">")))})},Ke=function(e,n){g(e.attributes).forEach(function(t){-1===n.indexOf(t.name)&&W(['Unrecognized attribute "'.concat(t.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(n.length?"Allowed attributes are: ".concat(n.join(", ")):"To set the value, use HTML within the element.")])})},Ye=function(t,e){"function"==typeof e.didOpen?setTimeout(function(){return e.didOpen(t)}):"function"==typeof e.onOpen&&setTimeout(function(){return e.onOpen(t)})},Ze=function(t,e){Bt&<(e)?(t.style.overflowY="hidden",e.addEventListener(Bt,Me)):t.style.overflowY="auto"},Qe=function(t,e,n){var o;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0 1.6em}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1.0625em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:\"!\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}") ;"use strict";var get_bot_type=cwginstock.get_bot_type,recaptcha_enabled=cwginstock.enable_recaptcha,is_v3_recaptcha=cwginstock.is_v3_recaptcha,recaptcha_site_key=cwginstock.recaptcha_site_key,turnstile_enabled=cwginstock.enable_turnstile,turnstile_site_key=cwginstock.turnstile_site_key,gtoken="";"undefined"!=typeof wc_bulk_variations_params&&document.addEventListener("click",function(t){if(t.target.matches(".cwg_popup_submit")){console.log(t.target.dataset.product_id),console.log("Captured click before stopPropagation!");var e=t.target;jQuery.blockUI({message:null});var a=e.dataset.product_id,i=e.dataset.variation_id,c=e.dataset.quantity,r=e.dataset.security;return"recaptcha"==get_bot_type&&"1"==recaptcha_enabled&&"yes"==is_v3_recaptcha?popup_notifier.popup_generate_v3_response(this):popup_notifier.perform_ajax({action:"cwg_trigger_popup_ajax",product_id:a,variation_id:i,quantity:c,security:r}),!1}},!0);var popup_notifier={init:function(){jQuery(document).on("click",".cwg_popup_submit",function(){jQuery.blockUI({message:null});var t=jQuery(this),e=t.attr("data-product_id"),a=t.attr("data-variation_id"),i=t.attr("data-quantity"),c=t.attr("data-security");return"recaptcha"==get_bot_type&&"1"==recaptcha_enabled&&"yes"==is_v3_recaptcha?popup_notifier.popup_generate_v3_response(this):popup_notifier.perform_ajax({action:"cwg_trigger_popup_ajax",product_id:e,variation_id:a,quantity:i,security:c}),!1})},popup_generate_v3_response:function(t){"recaptcha"==get_bot_type&&"1"==recaptcha_enabled&&"yes"==is_v3_recaptcha&&grecaptcha.ready(function(){grecaptcha.execute(recaptcha_site_key,{action:"popup_form"}).then(function(e){console.log(e);var a=jQuery(t),i=a.attr("data-product_id"),c=a.attr("data-variation_id"),r=a.attr("data-quantity");popup_notifier.perform_ajax({action:"cwg_trigger_popup_ajax",product_id:i,variation_id:c,quantity:r,security:e}),gtoken=e})})},perform_ajax:function(t){jQuery.ajax({type:"post",url:cwginstock.default_ajax_url,data:t,success:function(t){jQuery.unblockUI(),Swal.fire({html:t,showCloseButton:!0,showConfirmButton:!1,willOpen:function(){"recaptcha"==get_bot_type?"1"==recaptcha_enabled&&(jQuery(".g-recaptcha").before('
    '),jQuery(".g-recaptcha").remove()):"1"==turnstile_enabled&&turnstile.render(".cf-turnstile",{sitekey:turnstile_site_key,theme:"light",callback:function(t){cwginstock_turnstile_callback(t)}})},didOpen:function(){jQuery(document).trigger("cwginstock_popup_open_callback")},willClose:function(){jQuery(document).trigger("cwginstock_popup_close_callback")}})},error:function(t,e,a){jQuery.unblockUI()}})}};popup_notifier.init(),jQuery(document).on("cwginstock_popup_open_callback",function(){instock_notifier.onloadcallback(),instock_notifier.initialize_phone()}),jQuery(document).on("cwginstock_popup_close_callback",function(){instock_notifier.resetcallback()}) ;var dgwt_wcas={"labels":{"product_plu":"Productos","vendor":"Vendor","vendor_plu":"Vendors","sku_label":"SKU:","sale_badge":"Oferta","vendor_sold_by":"Sold by:","featured_badge":"Destacado","in":"in","read_more":"continue reading","no_results":"\"No hay resultados\"","no_results_default":"No results","show_more":"Ver todos los productos...","show_more_details":"Ver todos los productos...","search_placeholder":"Estoy buscando...","submit":"","search_hist":"Your search history","search_hist_clear":"Clear","mob_overlay_label":"Open search in the mobile overlay","post_type_post_plu":"Entradas","post_type_post":"Entrada","post_type_page_plu":"P\u00e1ginas","post_type_page":"Page","tax_product_cat_plu":"Categor\u00edas","tax_product_cat":"Categor\u00eda","tax_product_tag_plu":"Etiquetas","tax_product_tag":"Tag","tax_product_brand_plu":"Brands","tax_product_brand":"Brand"},"ajax_search_endpoint":"https:\/\/ataicr.com\/wp-content\/plugins\/ajax-search-for-woocommerce-premium\/includes\/Engines\/TNTSearchMySQL\/Endpoints\/search.php","ajax_details_endpoint":"\/?wc-ajax=dgwt_wcas_result_details","ajax_prices_endpoint":"\/?wc-ajax=dgwt_wcas_get_prices","action_search":"dgwt_wcas_ajax_search","action_result_details":"dgwt_wcas_result_details","action_get_prices":"dgwt_wcas_get_prices","min_chars":"3","width":"auto","show_details_panel":"1","show_images":"1","show_price":"1","show_desc":"","show_sale_badge":"","show_featured_badge":"","dynamic_prices":"","is_rtl":"","show_preloader":"1","show_headings":"1","preloader_url":"","taxonomy_brands":"","img_url":"https:\/\/ataicr.com\/wp-content\/plugins\/ajax-search-for-woocommerce-premium\/assets\/img\/","is_premium":"1","layout_breakpoint":"899","mobile_overlay_breakpoint":"992","mobile_overlay_wrapper":"body","mobile_overlay_delay":"0","debounce_wait_ms":"100","send_ga_events":"1","enable_ga_site_search_module":"","magnifier_icon":"\t\t\t\t\n\t\t \n\t\t\t\t<\/svg>\n\t\t\t\t","magnifier_icon_pirx":"\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/svg>\n\t\t\t\t","history_icon":"\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t<\/g>\n\t\t\t\t<\/svg>\n\t\t\t\t","close_icon":"\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/svg>\n\t\t\t\t","back_icon":"\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/svg>\n\t\t\t\t","preloader_icon":"\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/svg>\n\t\t\t\t","voice_search_inactive_icon":"\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/svg>\n\t\t\t\t","voice_search_active_icon":"\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/svg>\n\t\t\t\t","voice_search_disabled_icon":"\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t<\/svg>\n\t\t\t\t","custom_params":{},"convert_html":"1","suggestions_wrapper":"body","show_product_vendor":"","disable_hits":"","disable_submit":"","fixer":{"broken_search_ui":!0,"broken_search_ui_ajax":!0,"broken_search_ui_hard":!1,"broken_search_elementor_popups":!0,"broken_search_jet_mobile_menu":!0,"broken_search_browsers_back_arrow":!0,"force_refresh_checkout":!0},"voice_search_enabled":"","voice_search_lang":"es-CR","show_recently_searched_products":"","show_recently_searched_phrases":"","go_to_first_variation_on_submit":"","show_sku":"1"} ;!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(e){"use strict";var t,s={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},formatHtml:function(e){return e.replace(/&/g,"&").replace(/&amp;/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/<sup/g,"").replace(/<sub/g,"").replace(/<br\s?\/?>/g,"
    ").replace(/<(\/?(strong|b|br|span|i))>/g,"<$1>").replace(/<(strong|span|i)\s+class\s*=\s*"([^&]+)">/g,'<$1 class="$2">')},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t.setAttribute("unselectable","on"),t},matchGreekAccents:function(e){if(!/[\u0370-\u03FF\u1F00-\u1FFF]+/.test(e))return e;for(let[t,s]of(e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),Object.entries({Α:"Ά",α:"ά",Ε:"Έ",ε:"έ",Ι:"Ί",ι:"ί",ϊ:"ΐ",Υ:"Ύ",υ:"ύ",ϋ:"ΰ",Η:"Ή",η:"ή",Ο:"Ό",ο:"ό",Ω:"Ώ",ω:"ώ"})))e.indexOf(t)>-1&&(e=e.replaceAll(t,"["+t+s+"]"));return e},highlight:function(e,t){var a,o=t.split(/ /),i=!1,n="";if(o){for(a=0,n=o[o.length-1],o=o.sort(function(e,t){return t.length-e.length});a=1){var r=o[a].replace(/[\^\@]/g,"");if(r.length>0){if(1===r.trim().length&&o[a]!==n){var c="((\\s|^)"+s.escapeRegExChars(r.trim())+"\\s)";c=s.matchGreekAccents(c)}else if(1===r.trim().length&&o[a]===n){var c="((\\s|^)"+s.escapeRegExChars(r.trim())+")";c=s.matchGreekAccents(c)}else{var c="("+s.escapeRegExChars(r.trim())+")";c=s.matchGreekAccents(c)}e=e.replace(RegExp(c,"gi"),"^^$1@@"),i=!0}}}return i&&(e=(e=e.replace(/\^\^/g,"")).replace(/@@/g,"")),e},debounce:function(e,t){var s,o=new Date().getUTCMilliseconds();if(0===a.id.length){a.id=o,e();return}a.id=o,s=setTimeout(function(){if(o!==a.id){clearTimeout(s);return}e(),a.id=""},t)},mouseHoverDebounce:function(t,s,a){var o;o=setTimeout(function(){if(e(s+":hover").length>0)t();else{clearTimeout(o);return}},a)},isTextSelected:function(){var e=!1,t=document.getSelection();return"object"==typeof t&&t.toString().length>0&&(e=!0),e},getActiveInstance:function(){var t,s=e(".dgwt-wcas-search-wrapp.dgwt-wcas-active");return s.length>0&&s.each(function(){var s=e(this).find(".dgwt-wcas-search-input");if("object"==typeof s.data("autocomplete"))return t=s.data("autocomplete"),!1}),t},hashCode:function(e){for(var t=0,s=e.length;s>0;)t=(t<<5)-t+e.charCodeAt(--s)|0;return t<0?-1*t:t},isBrowser:function(e){return-1!==navigator.userAgent.indexOf(e)},isSafari:function(){return this.isBrowser("Safari")&&!this.isBrowser("Chrome")},isIOS:function(){var e=navigator?.userAgent||navigator?.platform||"unknown";return/iPhone|iPod|iPad/.test(e)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},isIE11:function(){return!!navigator.userAgent.match(/Trident\/7\./)},setLocalStorageItem:function(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(s){}},getLocalStorageItem:function(e,t){try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch(a){return t}},removeLocalStorageItem:function(e){try{window.localStorage.removeItem(e)}catch(t){}}},a={id:"",callback:null,ajaxSettings:null,object:null},o={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},i=e.noop;function n(t,s){var a=this;a.element=t,a.el=e(t),a.suggestions=[],a.badQueries=[],a.selectedIndex=-1,a.currentValue=a.element.value,a.timeoutId=null,a.cachedResponse={},a.cachedDetails={},a.cachedPrices={},a.detailsRequestsSent=[],a.onChangeTimeout=null,a.onChange=null,a.isLocal=!1,a.suggestionsContainer=null,a.detailsContainer=null,a.autoAligmentprocess=null,a.noSuggestionsContainer=null,a.latestActivateSource="",a.actionTriggerSource="",a.options=e.extend(!0,{},n.defaults,s),a.classes={selected:"dgwt-wcas-suggestion-selected",suggestion:"dgwt-wcas-suggestion",suggestionsContainerOrientTop:"dgwt-wcas-suggestions-wrapp--top",inputFilled:"dgwt-wcas-search-filled",darkenOverlayMounted:"js-dgwt-wcas-search-darkoverl-mounted",fixed:"dgwt-wcas-suggestions-wrapp-fixed"},a.hint=null,a.hintValue="",a.selection=null,a.overlayMobileState="off",a.overlayDarkenedState="off",a.isMouseDownOnSearchElements=!1,a.isPreSuggestionsMode=!1,a.voiceSearchRecognition=null,a.voiceSearchStarted=null,a.recentlyViewedProductsKey="fibosearch_recently_viewed_products",a.recentlySearchedPhrasesKey="fibosearch_recently_searched_phrases",a.initialize(),a.setOptions(s)}n.utils=s,e.DgwtWcasAutocompleteSearch=n,n.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,containerDetailsWidth:"auto",showDetailsPanel:!1,showImage:!1,showPrice:!1,showSKU:!1,showDescription:!1,showSaleBadge:!1,showFeaturedBadge:!1,dynamicPrices:!1,saleBadgeText:"sale",featuredBadgeText:"featured",minChars:3,maxHeight:600,dpusbBreakpoint:550,deferRequestBy:0,params:{},formatResult:function e(t,a,o){return a.length>0&&o&&(t=s.highlight(t,a)),s.formatHtml(t)},delimiter:null,zIndex:999999999,type:"GET",noCache:!1,isRtl:!1,onSearchStart:i,onSearchComplete:i,onSearchError:i,preserveInput:!1,searchFormClass:"dgwt-wcas-search-wrapp",containerClass:"dgwt-wcas-suggestions-wrapp",containerDetailsClass:"dgwt-wcas-details-wrapp",preSuggestionsWrappClass:"dgwt-wcas-pre-suggestions-wrapp",darkenedOverlayClass:"dgwt-wcas-darkened-overlay",searchInputClass:"dgwt-wcas-search-input",preloaderClass:"dgwt-wcas-preloader",closeTrigger:"dgwt-wcas-close",formClass:"dgwt-wcas-search-form",voiceSearchClass:"dgwt-wcas-voice-search",voiceSearchSupportedClass:"dgwt-wcas-voice-search-supported",voiceSearchActiveClass:"dgwt-wcas-voice-search-active",voiceSearchDisabledClass:"dgwt-wcas-voice-search-disabled",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,isPremium:!1,overlayMobile:!1,preventBadQueries:!0,lookupFilter:function e(t,s,a){return-1!==t.value.toLowerCase().indexOf(a)},paramName:"query",transformResult:function e(t){return"string"==typeof t?JSON.parse(t):t},noSuggestionNotice:"No results",forceFixPosition:!1,positionFixed:!1,debounceWaitMs:400,sendGAEvents:!0,enableGASiteSearchModule:!1,showProductVendor:!1,disableHits:!1,disableSubmit:!1,voiceSearchEnabled:!1,voiceSearchLang:"",showRecentlySearchedProducts:!1,showRecentlySearchedPhrases:!1,goToFirstVariationOnSubmit:!0},n.prototype={initialize:function(){var t=this;t.element.setAttribute("autocomplete","off"),t.options.params=t.applyCustomParams(t.options.params),t.createContainers(),t.registerEventsSearchBar(),t.registerEventsSuggestions(),t.registerEventsDetailsPanel(),t.registerIconHandler(),t.registerFlexibleLayout(),t.initVoiceSearch(),t.fixPosition=function(){t.adjustContainerWidth(),t.visible&&(t.fixPositionSuggestions(),t.canShowDetailsPanel()&&t.fixPositionDetailsPanel()),t.positionOverlayDarkened()},e(window).on("resize.autocomplete",function(){var e=s.getActiveInstance();clearTimeout(window.dgwt_wcas.resizeOnlyOnce),void 0!==e&&(window.dgwt_wcas.resizeOnlyOnce=setTimeout(function(){e.fixPosition()},100))}),e(window).on("scroll.autocomplete",function(){var e=s.getActiveInstance();clearTimeout(window.dgwt_wcas.scrollOnlyOnce),void 0!==e&&(window.dgwt_wcas.scrollOnlyOnce=setTimeout(function(){e.fixPosition()},100))});var a=e(window).width();e(window).on("resize.autocomplete",function(){var s=e(window).width();s!=a&&(t.toggleMobileOverlayMode(),a=s)}),t.isBreakpointReached("mobile-overlay")&&t.activateMobileOverlayMode(),t.hideAfterClickOutsideListener(),t.suggestionsContainer.addClass("js-dgwt-wcas-initialized"),t.detailsContainer&&t.detailsContainer.length>0&&t.detailsContainer.addClass("js-dgwt-wcas-initialized")},createContainers:function(t){var s=this,a=s.options;0==e("."+a.containerClass).length?(s.suggestionsContainer=e(n.utils.createNode(a.containerClass)),s.suggestionsContainer.appendTo(a.appendTo||"body"),s.suggestionsContainer.addClass("woocommerce"),!0===a.showImage&&s.suggestionsContainer.addClass("dgwt-wcas-has-img"),!0===a.showPrice&&s.suggestionsContainer.addClass("dgwt-wcas-has-price"),!0===a.showDescription&&s.suggestionsContainer.addClass("dgwt-wcas-has-desc"),!0===a.showSKU&&s.suggestionsContainer.addClass("dgwt-wcas-has-sku"),!0===a.showHeadings&&s.suggestionsContainer.addClass("dgwt-wcas-has-headings")):s.suggestionsContainer=e("."+s.options.containerClass),s.canShowDetailsPanel()&&(0==e("."+a.containerDetailsClass).length?(s.detailsContainer=e(n.utils.createNode(a.containerDetailsClass)),s.detailsContainer.appendTo(a.appendTo||"body"),s.detailsContainer.addClass("woocommerce")):s.detailsContainer=e("."+a.containerDetailsClass))},registerEventsSearchBar:function(){var t=this;t.el.on("fibosearch/ping",function(){t.el.addClass("fibosearch-pong")}),t.getForm().on("submit.autocomplete",function(s){if(t.options.disableSubmit)return s.preventDefault(),!1;var a=e(this).find("."+t.options.searchInputClass);if(a.length&&0===a.val().length)return s.preventDefault(),!1;t.options.goToFirstVariationOnSubmit&&t.suggestions.length>0&&e.each(t.suggestions,function(e,a){if(void 0!==a.type&&"product_variation"==a.type)return t.select(e),s.preventDefault(),!1}),t.options.showRecentlySearchedPhrases&&t.saveHistorySearches(a.val()),t.closeOverlayMobile()}),"complete"===document.readyState?t.positionPreloaderAndMic():e(window).on("load",function(){t.positionPreloaderAndMic()}),t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(e){t.onFocus(e)}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)})},registerEventsSuggestions:function(){var t=this,a="."+t.classes.suggestion;if(!t.getSuggestionsContainer().hasClass("js-dgwt-wcas-initialized")){e(document).on("mouseenter.autocomplete",a,function(){var t=s.getActiveInstance();if(void 0!==t){var a=e(this).data("index"),o=t.canShowDetailsPanel()?100:1;if(t.selectedIndex!=a){if("headline"==t.suggestions[a].type||"headline-v2"==t.suggestions[a].type)return;s.mouseHoverDebounce(function(){t.selectedIndex!==a&&(t.latestActivateSource="mouse",t.getDetails(t.suggestions[a]),t.activate(a))},'.dgwt-wcas-suggestion[data-index="'+a+'"]',o)}}});var o=!1;e(document).on("click.autocomplete",a,function(t){if(o)t.preventDefault();else{var a=s.getActiveInstance();a.actionTriggerSource="click",o=!0,setTimeout(function(){o=!1},500),(void 0===t.ctrlKey||!1===t.ctrlKey)&&(a.select(e(this).data("index")),t.preventDefault())}}),e(document).on("mousedown.autocomplete",a,function(t){var a=this;0===t.button&&setTimeout(function(){!o&&s.getActiveInstance().select(e(a).data("index"))},250)}),e("."+t.options.containerClass).on("mousedown.autocomplete",function(e){s.getActiveInstance().isMouseDownOnSearchElements=!0}),e(document).on("click",".js-dgwt-wcas-sugg-hist-clear",function(){t.resetPreSuggestions()})}},registerEventsDetailsPanel:function(){var t=this.getDetailsContainer();!(!this.canShowDetailsPanel()||t.hasClass("js-dgwt-wcas-initialized"))&&(e(document).on("change.autocomplete",'[name="js-dgwt-wcas-quantity"]',function(t){e(this).closest(".js-dgwt-wcas-pd-addtc").find("[data-quantity]").attr("data-quantity",e(this).val())}),e("."+this.options.containerDetailsClass).on("mousedown.autocomplete",function(e){s.getActiveInstance().isMouseDownOnSearchElements=!0}))},registerIconHandler:function(){var t=this,s=t.getFormWrapper(),a=t.getForm();s.on("click.autocomplete",".js-dgwt-wcas-search-icon-handler",function(e){var o=s.find("."+t.options.searchInputClass);if(s.hasClass("dgwt-wcas-layout-icon-open"))t.hide(),a.hide(!0),s.removeClass("dgwt-wcas-layout-icon-open");else{var i=s.find(".dgwt-wcas-search-icon-arrow");a.hide(),i.hide(),s.addClass("dgwt-wcas-layout-icon-open"),t.positionIconSearchMode(s),a.fadeIn(50,function(){i.show(),t.positionPreloaderAndMic(s);var e=t.currentValue.length;e>0&&o[0].setSelectionRange(e,e),o.trigger("focus")}),setTimeout(function(){t.fixPosition()},110)}return!1}),0==e(".js-dgwt-wcas-initialized").length&&e(".js-dgwt-wcas-search-icon-handler").length>0&&e(document).on("click.autocomplete",function(s){if(e(".dgwt-wcas-layout-icon-open").length){var a=e(s.target);a.closest("."+t.options.searchFormClass).length>0||a.closest("."+t.options.containerClass).length>0||a.closest("."+t.options.containerDetailsClass).length>0||a.hasClass("js-dgwt-wcas-sugg-hist-clear")||t.hideIconModeSearch()}})},registerFlexibleLayout:function(){var t=this,s=e(window).width();e(window).on("resize.autocomplete",function(){var a=e(window).width();a!=s&&(t.reloadFlexibleLayout(),s=a)}),"complete"==document.readyState?t.reloadFlexibleLayout():e(window).on("load.autocomplete",function(){t.reloadFlexibleLayout()})},activateMobileOverlayMode:function(){var e=this,t=e.getFormWrapper(),s=t.find(".js-dgwt-wcas-search-icon-handler");if(t.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&!t.find(".js-dgwt-wcas-enable-mobile-form").length){var a="string"==typeof dgwt_wcas.labels.mob_overlay_label?dgwt_wcas.labels.mob_overlay_label:"";t.prepend(''),t.addClass("dgwt-wcas-mobile-overlay-trigger-active"),s.length&&s.attr("tabindex","-1"),t.find(".js-dgwt-wcas-enable-mobile-form").on("click.autocomplete",function(t){return e.options.mobileOverlayDelay>0?setTimeout(function(){e.showMobileOverlay()},e.options.mobileOverlayDelay):e.showMobileOverlay(),!1})}},deactivateMobileOverlayMode:function(){var e=this.getFormWrapper(),t=e.find(".js-dgwt-wcas-search-icon-handler"),s=e.find(".js-dgwt-wcas-enable-mobile-form");e.hasClass("js-dgwt-wcas-mobile-overlay-enabled")&&s.length&&(this.closeOverlayMobile(),s.remove(),e.removeClass("dgwt-wcas-mobile-overlay-trigger-active"),t.length&&t.removeAttr("tabindex"))},toggleMobileOverlayMode:function(){var e=this.getFormWrapper(),t=!1;if(e.hasClass("js-dgwt-wcas-mobile-overlay-enabled")){if(e.find(".js-dgwt-wcas-enable-mobile-form").length&&(t=!0),!t&&this.isBreakpointReached("mobile-overlay")||t&&!this.isBreakpointReached("mobile-overlay")){var s=this.getSuggestionsContainer();this.close(!1),s.length&&s.html(""),this.hideIconModeSearch()}!t&&this.isBreakpointReached("mobile-overlay")&&this.activateMobileOverlayMode(),t&&!this.isBreakpointReached("mobile-overlay")&&this.deactivateMobileOverlayMode()}},showMobileOverlay:function(){var t=this;if("on"!==t.overlayMobileState){t.overlayMobileState="on";var s,a=t.getFormWrapper(),o=t.getSuggestionsContainer(),i="";e("html").addClass("dgwt-wcas-overlay-mobile-on"),e("html").addClass("dgwt-wcas-open-"+t.getSearchStyle()),i+='
    ',i+='
    ',i+='",i+="
    ",i+="
    ",e(t.options.mobileOverlayWrapper).append(i),(s=e(".js-dgwt-wcas-overlay-mobile")).css("zIndex",99999999999),a.after(''),a.appendTo(".js-dgwt-wcas-om-bar"),o.appendTo(".js-dgwt-wcas-om-bar"),a.addClass("dgwt-wcas-search-wrapp-mobile"),a.hasClass("dgwt-wcas-has-submit")&&(a.addClass("dgwt-wcas-has-submit-off"),a.removeClass("dgwt-wcas-has-submit")),a.find("."+t.options.searchInputClass).trigger("focus"),e(document).on("click.autocomplete",".js-dgwt-wcas-om-return",function(e){t.closeOverlayMobile(s)}),document.dispatchEvent(new CustomEvent("fibosearch/show-mobile-overlay",{detail:t}))}},closeOverlayMobile:function(t){var s=this;if(!e("html").hasClass("dgwt-wcas-overlay-mobile-on")){s.overlayMobileState="off";return}var a=s.getSuggestionsContainer(),o=e(".js-dgwt-wcas-om-bar").find("."+s.options.searchFormClass);o.hasClass("dgwt-wcas-has-submit-off")&&(o.removeClass("dgwt-wcas-has-submit-off"),o.addClass("dgwt-wcas-has-submit")),o.removeClass("dgwt-wcas-search-wrapp-mobile"),e("html").removeClass("dgwt-wcas-overlay-mobile-on"),e("html").removeClass("dgwt-wcas-open-"+s.getSearchStyle()),a.appendTo("body"),a.removeAttr("body-scroll-lock-ignore"),e(".js-dgwt-wcas-om-hook").after(o),e(".js-dgwt-wcas-overlay-mobile").remove(),e(".js-dgwt-wcas-om-hook").remove(),setTimeout(function(){o.find("."+s.options.searchInputClass).val("");var e=o.find(".dgwt-wcas-close");o.length>0&&(e.removeClass("dgwt-wcas-close"),e.html("")),s.hide()},150),s.overlayMobileState="off",document.dispatchEvent(new CustomEvent("fibosearch/hide-mobile-overlay",{detail:s}))},reloadFlexibleLayout:function(){var e=this.getFormWrapper(),t=0,s=e.find(".dgwt-wcas-icon-preloader");e.hasClass("js-dgwt-wcas-layout-icon-flexible")&&(t=1),e.hasClass("js-dgwt-wcas-layout-icon-flexible-inv")&&(t=2),t>0&&(1===t&&this.isBreakpointReached("search-layout")||2===t&&!this.isBreakpointReached("search-layout")?(e.addClass("js-dgwt-wcas-layout-icon"),e.addClass("dgwt-wcas-layout-icon")):(e.removeClass("js-dgwt-wcas-layout-icon"),e.removeClass("dgwt-wcas-layout-icon")),e.addClass("dgwt-wcas-layout-icon-flexible-loaded"),s.length&&s.remove())},onFocus:function(t){var s=this.getFormWrapper();e("."+this.options.searchFormClass).removeClass("dgwt-wcas-active"),s.addClass("dgwt-wcas-active"),e("body").addClass("dgwt-wcas-focused"),s.addClass("dgwt-wcas-search-focused"),0==e(t.target).closest(".dgwt-wcas-search-wrapp-mobile").length&&this.enableOverlayDarkened(),this.fixPosition(),0===this.el.val().length?this.canShowPreSuggestions()&&this.showPreSuggestions():this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){var t=this.options,a=this.el.val(),o=this.getQuery(a),i=!1;e("body").removeClass("dgwt-wcas-focused"),e("."+t.searchFormClass).removeClass("dgwt-wcas-search-focused"),s.isIOS()&&e("html").hasClass("dgwt-wcas-overlay-mobile-on")&&(i=!0),!(this.isMouseDownOnSearchElements||i)&&(this.hide(),this.selection&&this.currentValue!==o&&(t.onInvalidateSelection||e.noop).call(this.element)),document.dispatchEvent(new CustomEvent("fibosearch/close",{detail:this}))},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var s=this,a=s.getSuggestionsContainer(),o=e.extend({},s.options,t);s.isLocal=Array.isArray(o.lookup),s.isLocal&&(o.lookup=s.verifySuggestionsFormat(o.lookup)),a.css({"max-height":s.canShowDetailsPanel()?"none":o.maxHeight+"px","z-index":o.zIndex}),s.canShowDetailsPanel()&&s.getDetailsContainer().css({"z-index":o.zIndex-1}),o.onSearchComplete=function(){s.getFormWrapper().removeClass("dgwt-wcas-processing"),s.preloader("hide","form","dgwt-wcas-inner-preloader"),s.showCloseButton()},this.options=o},clearCache:function(){this.cachedResponse={},this.cachedDetails={},this.cachedPrices={},this.badQueries=[]},clear:function(e){e&&this.clearCache(),this.currentValue="",this.suggestions=[]},close:function(e){var t=this.el.closest("."+this.options.searchFormClass).find("."+this.options.searchInputClass),s=this.getFormWrapper();this.hide(),this.clear(!1),this.hideCloseButton(),t.val(""),s.removeClass(this.classes.inputFilled),e&&t.trigger("focus")},fixPositionSuggestions:function(){var e=this.getSuggestionsContainer(),t=this.getForm(),s=this.el,a=this.getElementInfo(t),o=this.getElementInfo(s),i={top:o.top+o.height,left:a.left};this.ancestorHasPositionFixed(t)?(i.top=o.topViewPort+o.height,e.addClass(this.classes.fixed)):e.removeClass(this.classes.fixed),this.getSuggestionsContainer().css(i)},fixPositionDetailsPanel:function(){var t=this.getFormWrapper(),s=this.getSuggestionsContainer(),a=this.getDetailsContainer(),o=this.getForm(),i=this.el,n=this.getElementInfo(o),r=this.getElementInfo(i),c={top:r.top+r.height,left:n.left+s.outerWidth(!1)};if(this.ancestorHasPositionFixed(t)?(c.top=r.topViewPort+r.height,a.addClass(this.classes.fixed)):a.removeClass(this.classes.fixed),a.css(c),e("body").removeClass("dgwt-wcas-full-width dgwt-wcas-details-outside dgwt-wcas-details-right dgwt-wcas-details-left dgwt-wcas-details-notfit"),t.outerWidth()>=this.options.dpusbBreakpoint){e("body").addClass("dgwt-wcas-full-width"),!0===this.options.isRtl&&(c.left=n.left+a.outerWidth(!1),s.css("left",c.left),a.css("left",n.left));return}var l=e(window).width(),d=a.outerWidth(),g=a.offset();e("body").addClass("dgwt-wcas-details-outside dgwt-wcas-details-right"),l2&&e.fixHeight()},10)}},getElementInfo:function(e){var t,s,a={};return t=e[0].getBoundingClientRect(),s=e.offset(),a.left=s.left,a.top=s.top,a.width=e.outerWidth(!1),a.height=e.outerHeight(!1),a.right=a.left+a.width,a.bottom=a.top+a.height,a.topViewPort=t.top,a.bottomViewPort=t.top+a.height,a},getFormWrapper:function(){return this.el.closest("."+this.options.searchFormClass)},getForm:function(){return this.el.closest("."+this.options.formClass)},getSuggestionsContainer:function(){return e("."+this.options.containerClass)},getDetailsContainer:function(){return e("."+this.options.containerDetailsClass)},scrollDownSuggestions:function(){var e=this.getSuggestionsContainer();e[0].scrollTop=e[0].scrollHeight},isCursorAtEnd:function(){var e,t=this.el.val().length,s=this.element.selectionStart;return"number"==typeof s?s===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(t){var s=this,a=s.getFormWrapper();if(s.addActiveClassIfMissing(),!s.visible&&t.keyCode===o.DOWN&&s.currentValue){s.suggest();return}if(!s.visible){t.keyCode===o.ESC&&a.hasClass("dgwt-wcas-layout-icon-open")&&s.hideIconModeSearch(),t.keyCode===o.ESC&&s.isMountedOverlayDarkened()&&(s.disableOverlayDarkened(),s.el.blur()),t.keyCode===o.ESC&&e("html").hasClass("dgwt-wcas-overlay-mobile-on")&&s.closeOverlayMobile();return}if((t.ctrlKey||t.metaKey)&&t.keyCode===o.RETURN){s.selectedIndex>-1&&s.openInNewTab(s.selectedIndex);return}switch(t.keyCode){case o.ESC:s.close();break;case o.RIGHT:if(s.hint&&s.options.onHint&&s.isCursorAtEnd()){s.selectHint();break}return;case o.TAB:break;case o.RETURN:if(-1===s.selectedIndex){if(s.options.disableSubmit)return!1;s.hide();return}s.actionTriggerSource="enter",s.select(s.selectedIndex);break;case o.UP:s.moveUp();break;case o.DOWN:s.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()},onKeyUp:function(e){var t=this;switch(e.keyCode){case o.UP:case o.DOWN:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())},onValueChange:function(){if(this.ignoreValueChange){this.ignoreValueChange=!1;return}var t=this,s=t.options,a=t.el.val(),o=t.getQuery(a),i=t.getFormWrapper();if(t.selection&&t.currentValue!==o&&(t.selection=null,(s.onInvalidateSelection||e.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=a,t.selectedIndex=-1,s.triggerSelectOnValidInput&&t.isExactMatch(o)){t.select(0);return}o.length>0?i.hasClass(t.classes.inputFilled)||i.addClass(t.classes.inputFilled):i.removeClass(t.classes.inputFilled),o.lengthe(window).width()||"ontouchend"in document||this.isPreSuggestionsMode||this.isNoResults(this.suggestions))&&(t=!1),t},isBreakpointReached:function(e){var t=0;switch(e){case"search-layout":t=this.options.layoutBreakpoint,this.isSetParam("layout_breakpoint")&&(t=Number.parseInt(this.getParam("layout_breakpoint")));break;case"mobile-overlay":t=this.options.mobileOverlayBreakpoint,this.isSetParam("mobile_overlay_breakpoint")&&(t=Number.parseInt(this.getParam("mobile_overlay_breakpoint")))}return window.innerWidth<=t},getQuery:function(t){var s,a=this.options.delimiter;return a?(s=t.split(a),e.trim(s[s.length-1])):t.trim()},getSuggestionsLocal:function(t){var s,a=this.options,o=t.toLowerCase(),i=a.lookupFilter,n=parseInt(a.lookupLimit,10);return s={suggestions:e.grep(a.lookup,function(e){return i(e,t,o)})},n&&s.suggestions.length>n&&(s.suggestions=s.suggestions.slice(0,n)),s},getSuggestions:function(t){var o,i,n,r,c=this,l=c.options,d=l.serviceUrl,g=c.getFormWrapper(),u=c.isActiveIconModeSearch();if(l.params[l.paramName]=t,void 0!==dgwt_wcas.current_lang&&(l.params.l=dgwt_wcas.current_lang),c.preloader("show","form","dgwt-wcas-inner-preloader"),g.addClass("dgwt-wcas-processing"),!1!==l.onSearchStart.call(c.element,l.params)){if(i=l.ignoreParams?null:l.params,"function"==typeof l.lookup){l.lookup(t,function(e){c.suggestions=e.suggestions,c.suggest(),c.selectFirstSuggestion(e.suggestions),l.onSearchComplete.call(c.element,t,e.suggestions)});return}e("body").hasClass("dgwt-wcas-open")||document.dispatchEvent(new CustomEvent("fibosearch/open",{detail:c})),c.isLocal?o=c.getSuggestionsLocal(t):("function"==typeof d&&(d=d.call(c.element,t)),n=d+"?"+e.param(i||{}),o=c.cachedResponse[n]),o&&Array.isArray(o.suggestions)?(c.suggestions=o.suggestions,c.suggest(),c.selectFirstSuggestion(o.suggestions),l.onSearchComplete.call(c.element,t,o.suggestions),c.isNoResults(o.suggestions)?document.dispatchEvent(new CustomEvent("fibosearch/no-results",{detail:c})):document.dispatchEvent(new CustomEvent("fibosearch/show-suggestions",{detail:c}))):c.isBadQuery(t)?l.onSearchComplete.call(c.element,t,[]):(c.abortAjax(),r={url:d,data:i,type:l.type,dataType:l.dataType},e.extend(r,l.ajaxSettings),a.object=c,a.ajaxSettings=r,s.debounce(function(){var s=a.object,o=a.ajaxSettings;s.currentRequest=e.ajax(o).done(function(e){var a;(!u||s.isActiveIconModeSearch())&&(s.currentRequest=null,void 0!==(a=s.options.transformResult(e,t)).suggestions&&(s.processResponse(a,t,n),s.selectFirstSuggestion(a.suggestions),s.isNoResults(a.suggestions)?s.gaEvent(t,"Autocomplete Search without results"):s.gaEvent(t,"Autocomplete Search with results")),s.fixPosition(),s.options.onSearchComplete.call(s.element,t,a.suggestions),s.updatePrices(),s.isNoResults(a.suggestions)?document.dispatchEvent(new CustomEvent("fibosearch/no-results",{detail:s})):document.dispatchEvent(new CustomEvent("fibosearch/show-suggestions",{detail:s})))}).fail(function(e,a,o){s.options.onSearchError.call(s.element,t,e,a,o)})},l.debounceWaitMs))}},getDetails:function(t){var s=this;if(!s.canShowDetailsPanel())return!1;if(null!=t&&void 0!==t.type&&("string"!=typeof t.type||"more_products"!==t.type)){s.fixHeight(),s.getDetailsContainer();var a,o=s.prepareSuggestionObjectID(t);if(null!=(a=s.cachedDetails[o]))s.detailsPanelSetScene(o),s.fixHeight(),s.fixPosition();else{var i={action:dgwt_wcas.action_result_details,items:[]};if(e.each(s.suggestions,function(e,t){if(void 0!==t.type&&"more_products"!=t.type&&"headline"!=t.type){var a={objectID:s.prepareSuggestionObjectID(t),value:null!=t.value?t.value:""};i.items.push(a)}}),s.detailsPanelClearScene(),s.preloader("show","details",""),-1!=e.inArray(o,s.detailsRequestsSent))return;s.detailsRequestsSent.push(o),e.ajax({data:i,type:"post",url:dgwt_wcas.ajax_details_endpoint,success:function(e){var t="string"==typeof e?JSON.parse(e):e;if(void 0!==t.items)for(var a=0;a0&&(s.cachedPrices[o]=t.items[a].price)}s.preloader("hide","details","");var i=s.prepareSuggestionObjectID(s.suggestions[s.selectedIndex]);null!=s.cachedDetails[i]?s.detailsPanelSetScene(i):s.detailsPanelClearScene(),s.fixPosition(),s.fixHeight(),s.updatePrices(!0)},error:function(e,t){s.preloader("hide","details",""),s.detailsPanelClearScene(),s.fixPosition(),s.fixHeight()}})}e(document).trigger("dgwtWcasDetailsPanelLoaded",s),document.dispatchEvent(new CustomEvent("fibosearch/show-details-panel",{detail:s}))}},updatePrices:function(t){var s,a,o=this,i=[];if(o.options.showPrice&&o.options.dynamicPrices&&0!=o.suggestions.length){for(s=0;s0){var r={action:void 0===dgwt_wcas.action_get_prices?"dgwt_wcas_get_prices":dgwt_wcas.action_get_prices,items:i};e.ajax({data:r,type:"post",url:dgwt_wcas.ajax_prices_endpoint,success:function(e){if(void 0!==e.success&&e.success&&e.data.length>0)for(s=0;s0){for(a=0;a
    ')}},prepareSuggestionObjectID:function(e){var t="";return void 0!==e&&void 0!==e.type&&(null!=e.post_id&&(t=e.type+"__"+e.post_id,"product_variation"===e.type&&(t+="__"+e.variation_id),void 0!==e.post_type&&(t=e.type+"__"+e.post_id+"__"+e.post_type)),null!=e.term_id&&null!=e.taxonomy&&(t=e.type+"__"+e.term_id+"__"+e.taxonomy)),t},detailsPanelSetScene:function(e){var t=this.getDetailsContainer(),a=s.hashCode(e),o=t.find('.dgwt-wcas-details-inner[data-object="'+a+'"]');o.length&&(this.preloader("hide","details",""),this.detailsPanelClearScene(),o.addClass("dgwt-wcas-details-inner-active"))},detailsPanelAddToScene:function(e){var t=this.getDetailsContainer(),a=this.cachedDetails[e],o=s.hashCode(e),i="";void 0!==a&&"string"==typeof a.html&&(i=a.html.replace("
    0&&e.each(s.suggestions,function(e,t){if(void 0!==t.type&&"more_products"!=t.type&&"headline"!=t.type&&"headline-v2"!=t.type&&"no-results"!=t.type)return a=e,!1;(void 0===t.type||"no-results"===t.type)&&(o=!0)}),!o&&(s.latestActivateSource="system",s.getDetails(t[a]),s.activate(a))},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,s=t.length;s--;)if(0===e.indexOf(t[s]))return!0;return!1},hide:function(t){var s=this,a=s.getSuggestionsContainer(),o=s.getDetailsContainer();if("function"==typeof s.options.onHide&&s.visible&&s.options.onHide.call(s.element,container),s.visible=!1,s.selectedIndex=-1,clearTimeout(s.onChangeTimeout),a.hide(),a.removeClass(s.classes.suggestionsContainerOrientTop),a.removeClass(s.classes.fixed),s.canShowDetailsPanel()&&(o.hide(),o.removeClass(s.classes.fixed)),s.hidePreSuggestions(),e("body").removeClass("dgwt-wcas-open"),!e("html").hasClass("dgwt-wcas-overlay-mobile-on")){var i=s.getSearchStyle();e("html").removeClass("dgwt-wcas-open-"+i),"pirx"===i&&e("html").removeClass("dgwt-wcas-open-pirx-compact")}e("body").removeClass("dgwt-wcas-block-scroll"),e("body").removeClass("dgwt-wcas-is-details"),e("body").removeClass("dgwt-wcas-full-width"),e("body").removeClass("dgwt-wcas-nores"),e("body").removeClass("dgwt-wcas-details-outside"),e("body").removeClass("dgwt-wcas-details-right"),e("body").removeClass("dgwt-wcas-details-left"),null!=s.autoAligmentprocess&&(clearInterval(s.autoAligmentprocess),s.autoAligmentprocess=null),s.isMouseDownOnSearchElements=!1,"boolean"==typeof t&&t&&(s.hideCloseButton(),s.currentValue="",s.suggestions=[])},positionIconSearchMode:function(t){var s=-20,a=this.getForm(),o=a.width(),i=e(window).width(),n=t[0].getBoundingClientRect().left;s=Math.max(s=Math.floor(-1*(o*((n+10)/i))),-1*n),a.css({left:s+"px"})},isActiveIconModeSearch:function(){var t=!1;return e(".dgwt-wcas-layout-icon-open").length>0&&(t=!0),t},hideIconModeSearch:function(){this.isActiveIconModeSearch()&&!s.isTextSelected()&&e(".dgwt-wcas-layout-icon-open").removeClass("dgwt-wcas-layout-icon-open")},hideAfterClickOutsideListener:function(){var t=this;"ontouchend"in document||e(document).on("mouseup",function(s){if(t.visible){var a=!(e(s.target).closest("."+t.options.searchFormClass).length>0||e(s.target).hasClass(t.options.searchFormClass)),o=!(e(s.target).closest("."+t.options.containerClass).length>0||e(s.target).hasClass(t.options.containerClass));if(t.canShowDetailsPanel()){var i=!(e(s.target).closest("."+t.options.containerDetailsClass).length>0||e(s.target).hasClass(t.options.containerDetailsClass));a&&o&&i&&t.hide()}else a&&o&&t.hide()}})},suggest:function(){if(!this.suggestions.length){this.hide();return}var t,s=this,a=s.options,o=a.groupBy,i=a.formatResult,n=s.getQuery(s.currentValue),r=s.classes.suggestion,c=s.classes.selected,l=s.getSuggestionsContainer(),d=s.getDetailsContainer(),g=e(s.noSuggestionsContainer),u=a.beforeRender,h="",p=function(e,s){var a=e.data[o];return t===a?"":'
    '+(t=a)+"
    "};if(a.triggerSelectOnValidInput&&s.isExactMatch(n)){s.select(0);return}e("body").removeClass("dgwt-wcas-nores"),e.each(s.suggestions,function(t,c){var l="string"==typeof c.url&&c.url.length?c.url:"#";if(o&&(h+=p(c,n,t)),void 0===c.type||"product"!=c.type&&"product_variation"!=c.type){var g,u=r,w="dgwt-wcas-st",f="",v="",m="",y=!0;if("product_cat"===c.taxonomy?(u+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-cat",a.showHeadings||(f+=''+dgwt_wcas.labels["tax_"+c.taxonomy]+""),void 0!==c.breadcrumbs&&c.breadcrumbs&&(m=c.breadcrumbs+" > "+c.value,v+=''+dgwt_wcas.labels.in+" "+c.breadcrumbs+"")):"product_tag"===c.taxonomy?(u+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tag",a.showHeadings||(f+=''+dgwt_wcas.labels["tax_"+c.taxonomy]+"")):a.isPremium&&c.taxonomy===a.taxonomyBrands?(u+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-brand",a.showHeadings||(f+=''+dgwt_wcas.labels["tax_"+c.taxonomy]+"")):a.isPremium&&"taxonomy"===c.type?(u+=" dgwt-wcas-suggestion-tax dgwt-wcas-suggestion-tax-"+c.taxonomy,a.showHeadings||(f+=''+dgwt_wcas.labels["tax_"+c.taxonomy]+"")):a.isPremium&&"vendor"===c.type?(u+=" dgwt-wcas-suggestion-vendor dgwt-wcas-suggestion-vendor",a.showHeadings||(f+=''+dgwt_wcas.labels.vendor+"")):a.isPremium&&"post"===c.type&&void 0!==c.post_type?(u+=" dgwt-wcas-suggestion-pt dgwt-wcas-suggestion-pt-"+c.post_type,a.showHeadings||(f+=''+dgwt_wcas.labels["post_type_"+c.post_type]+"")):"more_products"===c.type?(u+=" js-dgwt-wcas-suggestion-more dgwt-wcas-suggestion-more",w="dgwt-wcas-st-more",c.value=dgwt_wcas.labels.show_more+' ('+c.total+")",y=!1):a.showHeadings&&"headline"===c.type&&(u+=" js-dgwt-wcas-suggestion-headline dgwt-wcas-suggestion-headline",void 0!==dgwt_wcas.labels[c.value+"_plu"]&&(c.value=dgwt_wcas.labels[c.value+"_plu"]),y=!1),"no-results"===c.type)e("body").addClass("dgwt-wcas-nores"),d.length&&(s.detailsPanelClearScene(),d.hide(),d.removeClass(s.classes.fixed),s.fixHeight()),c.value="",h+=s.createNoResultsContent();else{if((void 0!==c.image_src&&c.image_src||void 0!==c.image&&c.image)&&(g=!0),f+=s.apply3rdPartyPlaceholder("title_before",c),v+=s.apply3rdPartyPlaceholder("title_after",c),m=m.length>0?' title="'+m+'"':"",h+='',g){let b=c.image_src?c.image_src:c.image;h+='',h+='
    '}h+="',"vendor"===c.type?(h+=''+f+i(c.value,n,y,a)+v+"",c.shop_city&&(h+=' - '+i(c.shop_city,n,!0,a)+""),void 0!==c.desc&&c.desc&&(h+=''+i(c.desc,n,!0,a)+"")):h+=f+i(c.value,n,y,a)+v,h+="",h+=g?"
    ":"",h+="
    "}}else h+=s.createProductSuggestion(c,t)}),this.adjustContainerWidth(),g.detach(),l.html(h),"function"==typeof u&&u.call(s.element,l,s.suggestions),l.show(),e("body").addClass("dgwt-wcas-open");var w=s.getSearchStyle();e("html").addClass("dgwt-wcas-open-"+w),"pirx"===w&&e("html").addClass("dgwt-wcas-open-pirx-compact"),s.isMouseDownOnSearchElements=!1,s.automaticAlignment(),s.canShowDetailsPanel()&&(e("body").addClass("dgwt-wcas-is-details"),d.show(),s.fixHeight()),a.autoSelectFirst&&(s.selectedIndex=0,l.scrollTop(0),l.children("."+r).first().addClass(c)),s.visible=!0,s.fixPosition()},createNoResultsContent:function(){var e='
    ',t=void 0!==dgwt_wcas.labels.no_results_default?dgwt_wcas.labels.no_results_default:"";try{t=JSON.parse(dgwt_wcas.labels.no_results);var s=document.createElement("div");s.innerHTML=t,t=s.innerHTML}catch(a){}return e+=t,e+="
    "},createProductSuggestion:function(e,t,s){var a="",o="",i=this.options,n=this.classes.suggestion,r=!1,c=this.getQuery(this.currentValue),l=i.formatResult,d="string"==typeof e.url&&e.url.length?e.url:"#";"string"==typeof s&&(n+=" "+s),!0===i.showImage&&void 0!==e.thumb_html&&(r=!0);var g="product_variation"===e.type?" dgwt-wcas-suggestion-product-var":"";if(o+=void 0!==e.post_id?'data-post-id="'+e.post_id+'" ':"",o+=void 0!==e.taxonomy?'data-taxonomy="'+e.taxonomy+'" ':"",o+=void 0!==e.term_id?'data-term-id="'+e.term_id+'" ':"",a+='",r&&(a+=''+e.thumb_html+""),a+=r?'
    ':"",a+='
    ',a+=this.apply3rdPartyPlaceholder("title_before",e),a+=''+l(e.value,c,!0,i)+"",a+=this.apply3rdPartyPlaceholder("title_after",e),!0===i.showSKU&&void 0!==e.sku&&e.sku.length>0&&(a+='('+dgwt_wcas.labels.sku_label+" "+l(e.sku,c,!0,i)+")"),!0===i.showDescription&&void 0!==e.desc&&e.desc&&(a+=''+l(e.desc,c,!0,i)+""),!0===i.showProductVendor&&void 0!==e.vendor&&e.vendor){var u=''+dgwt_wcas.labels.vendor_sold_by+" "+e.vendor+"";void 0!==e.vendor_url&&e.vendor_url?a+=''+u+"":a+=u}a+=this.apply3rdPartyPlaceholder("content_after",e),a+="
    ";var h=!0===i.showPrice&&void 0!==e.price,p=void 0!==e.meta_before,w=void 0!==e.meta_after,f=h||p||w;return a+=f?'
    ':"",p&&(a+=this.apply3rdPartyPlaceholder("meta_before",e)),h&&(a+=''+e.price+""),w&&(a+=this.apply3rdPartyPlaceholder("meta_after",e)),a+=f?"
    ":"",a+=r?"
    ":"",a+="
    "},apply3rdPartyPlaceholder:function(e,t){var s="";return void 0!==t[e]&&t[e]&&(s=t[e]),s},getSearchStyle:function(){var t=this.getFormWrapper(),s="solaris";return e(t.attr("class").split(/\s+/)).each(function(e){/dgwt-wcas-style-/i.test(this)&&(s=this.replace(/dgwt-wcas-style-/i,""))}),"pirx-compact"===s&&(s="pirx"),s},adjustContainerWidth:function(){var e=this.getFormWrapper(),t=this.getSuggestionsContainer(),s=this.getDetailsContainer(),a=this.getForm().outerWidth();if(e.length&&(t.css("width",a+"px"),this.canShowDetailsPanel()&&a>=this.options.dpusbBreakpoint)){var o=0;t.css("width",a/2),s.css("width",a/2),0!=(o=a-(t.outerWidth()+s.outerWidth()))&&s.css("width",s.outerWidth()+o)}},positionPreloaderAndMic:function(t){var s=this,a="object"==typeof t?t.find(".dgwt-wcas-search-submit"):e(".dgwt-wcas-search-submit");a.length>0&&a.each(function(){var t=e(this).closest(".dgwt-wcas-search-wrapp").find(".dgwt-wcas-preloader"),a=e(this).closest(".dgwt-wcas-search-wrapp").hasClass("dgwt-wcas-style-solaris"),o=e(this).closest(".dgwt-wcas-search-wrapp").hasClass(s.options.voiceSearchSupportedClass),i=e(this).closest(".dgwt-wcas-search-wrapp").find("."+s.options.voiceSearchClass);o&&a&&(1==dgwt_wcas.is_rtl?i.css("transform","translateX("+e(this).outerWidth()+"px)"):i.css("transform","translateX(-"+e(this).outerWidth()+"px)")),1==dgwt_wcas.is_rtl?t.css("left",e(this).outerWidth()+"px"):t.css("right",e(this).outerWidth()+"px")})},preloader:function(e,t,s){var a,o,i="dgwt-wcas-preloader-wrapp";if("form"===t){if(1!=dgwt_wcas.show_preloader)return;o=this.getFormWrapper().find(".dgwt-wcas-preloader")}else"details"===t&&(o=this.getDetailsContainer());if(0!=o.length){if("form"===t){"hide"===e?(o.removeClass(s),o.html("")):(o.addClass(s),"string"==typeof dgwt_wcas.preloader_icon&&o.html(dgwt_wcas.preloader_icon));return}var n=o.find("."+i);if("hide"===e){n.length&&n.remove();return}if("show"===e){var r=this.options.isRtl?"-rtl":"";a='
    ',this.detailsPanelClearScene(),n.length&&n.remove(),o.prepend(a)}}},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},processResponse:function(e,t,s){var a=this,o=a.options;e.suggestions=a.verifySuggestionsFormat(e.suggestions),o.noCache||(a.cachedResponse[s]=e,o.preventBadQueries&&!e.suggestions.length&&a.badQueries.push(t)),t===a.getQuery(a.currentValue)&&(a.suggestions=e.suggestions,a.suggest())},activate:function(t){var s,a=this,o=a.classes.selected,i=a.getSuggestionsContainer(),n=i.find("."+a.classes.suggestion);return(i.find("."+o).removeClass(o),a.selectedIndex=t,-1!==a.selectedIndex&&n.length>a.selectedIndex)?(e(s=n.get(a.selectedIndex)).addClass(o),s):null},selectHint:function(){var t=e.inArray(this.hint,this.suggestions);this.select(t)},select:function(e){!this.options.disableHits&&void 0!==this.suggestions[e]&&(void 0===this.suggestions[e]||"headline"!=this.suggestions[e].type&&"headline-v2"!=this.suggestions[e].type)&&(this.closeOverlayMobile(),this.hide(),this.onSelect(e))},moveUp:function(){var e=this;if(-1!==e.selectedIndex){if(e.latestActivateSource="key",0===e.selectedIndex){e.getSuggestionsContainer().children("."+e.classes.suggestion).first().removeClass(e.classes.selected),e.selectedIndex=-1,e.ignoreValueChange=!1,e.el.val(e.currentValue);return}e.adjustScroll(e.selectedIndex-1,"up")}},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&(e.latestActivateSource="key",e.adjustScroll(e.selectedIndex+1,"down"))},adjustScroll:function(t,s){var a=this;if("headline"===a.suggestions[t].type&&(t="down"===s?t+1:t-1),void 0!==a.suggestions[t]){var o=a.activate(t);if(a.getDetails(a.suggestions[t]),!("more_products"===a.suggestions[t].type||!o||a.canShowDetailsPanel())){var i,n,r,c=a.getSuggestionsContainer(),l=e(o).outerHeight(!1);i=o.offsetTop,r=(n=c.scrollTop())+a.options.maxHeight-l,ir&&c.scrollTop(i-a.options.maxHeight+l),a.options.preserveInput||(a.ignoreValueChange=!0)}}},onSelect:function(e){var t=this,s=t.options.onSelect,a=t.suggestions[e],o=!1;void 0!==a.type&&("more_products"!==a.type&&("enter"!==t.actionTriggerSource||"key"==t.latestActivateSource||"product_variation"==a.type)&&("enter"!==t.actionTriggerSource||"key"==t.latestActivateSource||"product_variation"!=a.type||t.options.goToFirstVariationOnSubmit)||(t.el.closest("form").trigger("submit"),o=!0),"history-search"===a.type&&(t.currentValue=t.getValue(a.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue.replace(/(<([^>]+)>)/gi," ").replace(/\s\s+/g," ")),t.el.closest("form").trigger("submit"),o=!0)),("product"===a.type||"product_variation"===a.type)&&t.options.showRecentlySearchedProducts&&t.saveHistoryProducts(a),o||(t.currentValue=t.getValue(a.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue.replace(/(<([^>]+)>)/gi," ").replace(/\s\s+/g," ")),a.url.length>0&&(window.location.href=a.url),t.suggestions=[],t.selection=a),"function"==typeof s&&s.call(t.element,a)},openInNewTab:function(e){var t=this.suggestions[e];t.url.length>0&&window.open(t.url,"_blank").trigger("focus")},getValue:function(e){var t,s,a=this.options.delimiter;return a&&1!==(s=(t=this.currentValue).split(a)).length?t.substr(0,t.length-s[s.length-1].length)+e:e},dispose:function(){var t=this.el,s=this.getFormWrapper(),a=this.getSuggestionsContainer(),o=s.find(".js-dgwt-wcas-enable-mobile-form");s.length&&s.find("*").each(function(){e(this).off(".autocomplete")}),t.off("fibosearch/ping"),s.off("click.autocomplete",".js-dgwt-wcas-search-icon-handler"),t.removeData("autocomplete"),e(window).off("resize.autocomplete",this.fixPosition),s.removeClass("dgwt-wcas-active"),this.close(!1),o.length&&o.remove(),a.length&&a.html("")},isMountedOverlayDarkened:function(){var e=this.getFormWrapper(),t=!1;return e.hasClass(this.classes.darkenOverlayMounted)&&(t=!0),t},enableOverlayDarkened:function(){var t,s=this,a=s.options;if(s.isMountedOverlayDarkened()){if((t=s.getFormWrapper()).addClass("dgwt-wcas-search-darkoverl-on"),e("body").addClass("dgwt-wcas-darkoverl-on"),0==e("."+a.darkenedOverlayClass).length){var o='
    ';e("body").append(o);var i=e("."+s.options.darkenedOverlayClass);s.positionOverlayDarkened(),i.on("click.autocomplete",function(e){s.disableOverlayDarkened()})}s.overlayDarkenedState="on"}},disableOverlayDarkened:function(){var t,s=this,a=s.options;if(s.isMountedOverlayDarkened()){(t=e(".dgwt-wcas-search-darkoverl-on")).length&&t.removeClass("dgwt-wcas-search-darkoverl-on"),e("body").removeClass("dgwt-wcas-darkoverl-on");var o=e("."+a.darkenedOverlayClass);o.length>0&&(o.remove(),s.overlayDarkenedState="off")}},positionOverlayDarkened:function(){var t=this,s=!1,a=e("."+t.options.darkenedOverlayClass);a.length>0&&(t.ancestorHasPositionFixed(t.getFormWrapper())?(s=!0,a.addClass("dgwt-wcas-suggestions-wrapp-fixed")):a.removeClass("dgwt-wcas-suggestions-wrapp-fixed"),a.children("div").each(function(a){t.positionOverlayDarkenedDiv(e(this),a+1,s)}))},positionOverlayDarkenedDiv:function(t,s,a){var o,i,n=this.getFormWrapper();switch(n.hasClass("js-dgwt-wcas-layout-icon")&&(n=this.getForm()),o=this.getElementInfo(n),s){case 1:i={left:"-200px",top:"-200px",width:o.left+200+"px",height:e(document).outerHeight(!1)+200-1+"px"};break;case 2:var r=a?o.topViewPort:o.top;i={left:"-200px",top:"-200px",width:e(window).outerWidth(!1)+200+"px",height:r+200+"px"};break;case 3:i={left:o.left+o.width+"px",top:"-200px",width:e(window).outerWidth(!1)-o.right+"px",height:e(document).outerHeight(!1)+200-1+"px"};break;case 4:var r=a?o.topViewPort:o.top;i={left:"-200px",top:r+o.height+"px",width:e(window).outerWidth(!1)+200+"px",height:e(document).outerHeight(!1)-o.bottom-1+"px"}}i&&t.css(i)},showCloseButton:function(){var e=this,t=void 0!==dgwt_wcas.close_icon?dgwt_wcas.close_icon:"",s=e.getFormWrapper().find("."+e.options.preloaderClass);!(e.el.val().length',void 0!==dgwt_wcas.labels.search_hist){var g=dgwt_wcas.labels.search_hist;g+=' '+dgwt_wcas.labels.search_hist_clear+"",i+=''+g+""}if(i+="",o++,c.length>0)for(t=0;t0)for(t=0;t',i+=''+u.thumb_html+"",i+='
    ',i+='
    '+s.formatHtml(u.value)+"
    ",i+="
    ",i+="",o++}n.html(i),n.show(),e("body").addClass("dgwt-wcas-open"),e("body").addClass("dgwt-wcas-open-pre-suggestions");var h=a.getSearchStyle();e("html").addClass("dgwt-wcas-open-"+a.getSearchStyle()),"pirx"===h&&e("html").addClass("dgwt-wcas-open-pirx-compact"),a.isMouseDownOnSearchElements=!1,a.visible=!0,a.fixPosition(),a.options.showImage=d,document.dispatchEvent(new CustomEvent("fibosearch/open",{detail:a})),document.dispatchEvent(new CustomEvent("fibosearch/show-pre-suggestions",{detail:a}))}},resetPreSuggestions:function(){var t=this,a=t.getSuggestionsContainer(),o=s.getActiveInstance();s.removeLocalStorageItem(t.recentlyViewedProductsKey),s.removeLocalStorageItem(t.recentlySearchedPhrasesKey),t.suggestions=[],a.html(""),e("body").removeClass("dgwt-wcas-open-pre-suggestions"),o.el.trigger("focus")},hidePreSuggestions:function(){var e=this;e.options.showImage||e.suggestionsContainer.removeClass("dgwt-wcas-has-img"),e.suggestionsContainer.removeClass("dgwt-wcas-has-img-forced"),e.isPreSuggestionsMode=!1},saveHistoryProducts:function(e){var t=this,a=s.getLocalStorageItem(t.recentlyViewedProductsKey,[]);a=[e,...a],a=[...new Map(a.map(e=>(void 0!==e.price&&delete e.price,t.options.showImage||(e.thumb_html=dgwt_wcas.history_icon),[e.post_id,e]))).values()],s.setLocalStorageItem(t.recentlyViewedProductsKey,a.slice(0,5))},saveHistorySearches:function(e){var t=s.getLocalStorageItem(this.recentlySearchedPhrasesKey,[]);t=[e,...t],t=[...new Set(t)],s.setLocalStorageItem(this.recentlySearchedPhrasesKey,t.slice(0,5))},addActiveClassIfMissing:function(){var t=document.activeElement;if("object"==typeof t&&e(t).length&&e(t).hasClass("dgwt-wcas-search-input")){var s=e(t).closest(".dgwt-wcas-search-wrapp");s.length&&!s.hasClass("dgwt-wcas-active")&&s.addClass("dgwt-wcas-active")}},ancestorHasPositionFixed:function(t){var s=t.add(t.parents()),a=!1;return s.each(function(){if("fixed"===e(this).css("position"))return a=!0,!1}),a},gaEvent:function(t,s){var a=!!(window.hasOwnProperty("GoogleAnalyticsObject")&&window.hasOwnProperty(window.GoogleAnalyticsObject))&&window[window.GoogleAnalyticsObject];if(this.options.sendGAEvents)try{if("undefined"!=typeof gtag)gtag("event","autocomplete_search",{event_label:t,event_category:s});else if(!1!==a){var o=a.getAll()[0];o&&o.send({hitType:"event",eventCategory:s,eventAction:"autocomplete_search",eventLabel:t})}}catch(i){}if(this.options.enableGASiteSearchModule)try{if("undefined"!=typeof gtag)gtag("event","page_view",{page_path:"/?s="+encodeURI(t)+"&post_type=product&dgwt_wcas=1"});else if(!1!==a){var n=a.getAll()[0];n&&(n.set("page","/?s="+encodeURI(t)+"&post_type=product&dgwt_wcas=1"),n.send("pageview"))}}catch(r){}e(document).trigger("dgwtWcasGAEvent",{term:t,category:s})},initVoiceSearch:function(){var t=this;if(!t.options.voiceSearchEnabled)return!1;var a=t.getFormWrapper(),o=a.find("."+t.options.searchInputClass),i=a.find("."+t.options.voiceSearchClass),n=!1;if("function"==typeof SpeechRecognition?n=SpeechRecognition:"function"==typeof webkitSpeechRecognition&&(n=webkitSpeechRecognition),!n||s.isBrowser("Chrome")&&s.isIOS()||s.isSafari())return!1;t.voiceSearchSetState("inactive",i),a.addClass(t.options.voiceSearchSupportedClass),t.voiceSearchRecognition=new n,t.voiceSearchRecognition.lang=t.options.voiceSearchLang,t.voiceSearchRecognition.continuous=!1,t.voiceSearchRecognition.interimResults=!0,t.voiceSearchRecognition.maxAlternatives=1,i.on("click",function(){if(a.hasClass("dgwt-wcas-mobile-overlay-trigger-active")&&!e("html").hasClass("dgwt-wcas-overlay-mobile-on")&&(a.find(".js-dgwt-wcas-enable-mobile-form").trigger("click"),a.find("."+t.options.searchInputClass).trigger("blur")),t.voiceSearchStarted){t.voiceSearchAbort();return}t.voiceSearchIsInitialized()&&t.voiceSearchAbort(),t.voiceSearchRecognition.start()}),t.voiceSearchRecognition.onstart=function(e){t.voiceSearchSetState("active",i)},t.voiceSearchRecognition.onresult=function(e){let s=e.results[0],a=s[0].transcript;o.val(a),s.isFinal&&(o.trigger("change"),"ontouchend"in document||o.trigger("focus"),t.voiceSearchSetState("inactive",i))},t.voiceSearchRecognition.onspeechend=function(){t.voiceSearchSetState("inactive",i),t.voiceSearchRecognition.stop()},t.voiceSearchRecognition.onnomatch=function(e){t.voiceSearchSetState("inactive",i)},t.voiceSearchRecognition.onerror=function(e){switch(e.error){case"aborted":case"no-speech":t.voiceSearchSetState("inactive",i);break;case"network":break;case"not-allowed":case"service-not-allowed":t.voiceSearchSetState("off",i)}}},voiceSearchAbort:function(){var e=this;e.voiceSearchIsInitialized()&&(e.voiceSearchRecognition.abort(),e.voiceSearchStarted=!1)},voiceSearchIsInitialized:function(){return null!==this.voiceSearchRecognition},voiceSearchSetState:function(e,t){var s=this;switch(e){case"active":s.voiceSearchStarted=!0,"string"==typeof dgwt_wcas.voice_search_active_icon&&t.html(dgwt_wcas.voice_search_active_icon);break;case"inactive":s.voiceSearchStarted=!1,"string"==typeof dgwt_wcas.voice_search_inactive_icon&&t.html(dgwt_wcas.voice_search_inactive_icon);break;case"off":s.voiceSearchStarted=!1,"string"==typeof dgwt_wcas.voice_search_disabled_icon&&t.html(dgwt_wcas.voice_search_disabled_icon)}}},e.fn.dgwtWcasAutocomplete=function(t,s){var a="autocomplete";return arguments.length?this.each(function(){var o=e(this),i=o.data(a);"string"==typeof t?i&&"function"==typeof i[t]&&i[t](s):(i&&i.dispose&&i.dispose(),i=new n(this,t),o.data(a,i))}):this.first().data(a)},e.fn.autocomplete||(e.fn.autocomplete=e.fn.dgwtWcasAutocomplete),s.isIE11()&&function(e,t){function s(e,t){var s=arguments.length>2?arguments[2]:[];if(!1===i(e))throw TypeError(Object.prototype.toString.call(e)+"is not a function.");return e.apply(t,s)}function a(e,t,s){Object.defineProperty(e,t,{value:s,writable:!0,enumerable:!1,configurable:!0})}function o(e,t){return e[t]}function i(e){return"function"==typeof e}function n(e,t){return e===t}function r(e){if(null===e||e===t)throw TypeError();return Object(e)}function c(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":"Symbol"in e&&(t instanceof e.Symbol||t.constructor===e.Symbol)?"symbol":"object"}}function l(e,t){var s,a;return c(e)===c(t)&&("number"===c(e)?!(!isNaN(e)||!isNaN(t))||1/e==1/0&&1/t==-1/0||1/e==-1/0&&1/t==1/0||e===t:(s=e,s===(a=t)))}function d(e){if("symbol"===c(e))throw TypeError("Cannot convert a Symbol value to a number");var t=Number(e);return isNaN(t)?0:1/t==1/0||1/t==-1/0||t===1/0||t===-1/0?t:(t<0?-1:1)*Math.floor(Math.abs(t))}function g(a){switch(c(a)){case"symbol":throw TypeError("Cannot convert a Symbol value to a string");case"object":return g(function a(o){var n=arguments.length>1?arguments[1]:t;if("object"===c(o)){if(arguments.length<2)var l="default";else n===String?l="string":n===Number&&(l="number");var d="function"==typeof e.Symbol&&"symbol"==typeof e.Symbol.toPrimitive?function e(s,a){var o,n,c=(o=s,n=a,r(o)[n]);if(null!==c&&c!==t){if(!1===i(c))throw TypeError("Method not callable: "+a);return c}}(o,e.Symbol.toPrimitive):t;if(d!==t){var g=s(d,o,[l]);if("object"!==c(g))return g;throw TypeError("Cannot convert exotic object to primitive.")}return"default"===l&&(l="number"),function e(t,a){if("string"===a)var o=["toString","valueOf"];else o=["valueOf","toString"];for(var n=0;n=0)var p=h;else(p=u+h)<0&&(p=0);for(;p1?arguments[1]:t,i=function e(s){if(null===s||s===t)throw TypeError(Object.prototype.toString.call(s)+" is not coercible to Object.");return s}(this),n=g(i);if(function s(a){if("object"!==c(a))return!1;var o,i,n,r="Symbol"in e&&"match"in e.Symbol?(i=a,i[n=e.Symbol.match]):t;if(r!==t)return Boolean(o=r);try{var l=a.lastIndex;return a.lastIndex=0,RegExp.prototype.exec.call(a),!0}catch(d){}finally{a.lastIndex=l}return!1}(a))throw TypeError("First argument to String.prototype.includes must not be a regular expression");var r=g(a),l=d(o),u=n.length;return-1!==String.prototype.indexOf.call(n,r,Math.min(Math.max(l,0),u))})}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),e(document).ready(function(){s.isIOS()&&e("html").addClass("dgwt-wcas-is-ios"),window.dgwt_wcas.resizeOnlyOnce=null,window.dgwt_wcas.scrollOnlyOnce=null,window.dgwt_wcas.config={minChars:dgwt_wcas.min_chars,width:dgwt_wcas.sug_width,autoSelectFirst:!1,triggerSelectOnValidInput:!1,serviceUrl:dgwt_wcas.ajax_search_endpoint,paramName:"s",showDetailsPanel:1==dgwt_wcas.show_details_panel,showImage:1==dgwt_wcas.show_images,showPrice:1==dgwt_wcas.show_price,showDescription:1==dgwt_wcas.show_desc,showSKU:1==dgwt_wcas.show_sku,showSaleBadge:1==dgwt_wcas.show_sale_badge,showFeaturedBadge:1==dgwt_wcas.show_featured_badge,dynamicPrices:void 0!==dgwt_wcas.dynamic_prices&&!!dgwt_wcas.dynamic_prices,saleBadgeText:dgwt_wcas.labels.sale_badge,featuredBadgeText:dgwt_wcas.labels.featured_badge,isRtl:1==dgwt_wcas.is_rtl,showHeadings:1==dgwt_wcas.show_headings,isPremium:1==dgwt_wcas.is_premium,taxonomyBrands:dgwt_wcas.taxonomy_brands,layoutBreakpoint:dgwt_wcas.layout_breakpoint,mobileOverlayBreakpoint:dgwt_wcas.mobile_overlay_breakpoint,mobileOverlayWrapper:dgwt_wcas.mobile_overlay_wrapper,mobileOverlayDelay:dgwt_wcas.mobile_overlay_delay,debounceWaitMs:dgwt_wcas.debounce_wait_ms,sendGAEvents:dgwt_wcas.send_ga_events,enableGASiteSearchModule:dgwt_wcas.enable_ga_site_search_module,appendTo:void 0!==dgwt_wcas.suggestions_wrapper?dgwt_wcas.suggestions_wrapper:"body",showProductVendor:void 0!==dgwt_wcas.show_product_vendor&&!!dgwt_wcas.show_product_vendor,disableHits:void 0!==dgwt_wcas.disable_hits&&!!dgwt_wcas.disable_hits,disableSubmit:void 0!==dgwt_wcas.disable_submit&&!!dgwt_wcas.disable_submit,voiceSearchEnabled:void 0!==dgwt_wcas.voice_search_enabled&&!!dgwt_wcas.voice_search_enabled,voiceSearchLang:void 0!==dgwt_wcas.voice_search_lang?dgwt_wcas.voice_search_lang:"",showRecentlySearchedProducts:void 0!==dgwt_wcas.show_recently_searched_products&&dgwt_wcas.show_recently_searched_products,showRecentlySearchedPhrases:void 0!==dgwt_wcas.show_recently_searched_phrases&&dgwt_wcas.show_recently_searched_phrases,goToFirstVariationOnSubmit:void 0!==dgwt_wcas.go_to_first_variation_on_submit&&dgwt_wcas.go_to_first_variation_on_submit},e(".dgwt-wcas-search-input").dgwtWcasAutocomplete(window.dgwt_wcas.config)}),t={brokenSearchUi:void 0!==dgwt_wcas.fixer.broken_search_ui&&!!dgwt_wcas.fixer.broken_search_ui,brokenSearchUiAjax:void 0!==dgwt_wcas.fixer.broken_search_ui_ajax&&!!dgwt_wcas.fixer.broken_search_ui_ajax,brokenSearchUiHard:void 0!==dgwt_wcas.fixer.broken_search_ui_hard&&!!dgwt_wcas.fixer.broken_search_ui_hard,brokenSearchElementorPopups:void 0!==dgwt_wcas.fixer.broken_search_elementor_popups&&!!dgwt_wcas.fixer.broken_search_elementor_popups,brokenSearchJetMobileMenu:void 0!==dgwt_wcas.fixer.broken_search_jet_mobile_menu&&!!dgwt_wcas.fixer.broken_search_jet_mobile_menu,brokenSearchBrowserBackArrow:void 0!==dgwt_wcas.fixer.broken_search_browsers_back_arrow&&!!dgwt_wcas.fixer.broken_search_browsers_back_arrow,forceRefreshCheckout:void 0!==dgwt_wcas.fixer.force_refresh_checkout&&!!dgwt_wcas.fixer.force_refresh_checkout,searchBars:[],init:function(){var t=this;t.brokenSearchUi&&e(document).ready(function(){t.fixBrokenSearchUi()}),t.brokenSearchUiAjax&&t.fixBrokenSearchUiAjax(),t.brokenSearchUiHard&&t.fixBrokenSearchUiHard(),t.brokenSearchElementorPopups&&e(document).ready(function(){t.fixBrokenSearchOnElementorPopupsV1(),t.fixBrokenSearchOnElementorPopupsV2()}),t.brokenSearchJetMobileMenu&&e(window).on("load",function(){t.fixSearchInJetMobileMenu()}),t.brokenSearchBrowserBackArrow&&t.fixbrokenSearchBrowserBackArrow(),t.forceRefreshCheckout&&t.fixforceRefreshCheckout()},fixBrokenSearchUi:function(){var t=this;e(document).ready(function(){setTimeout(function(){t.pullAndReconditionSearchBars()},50)}),e(window).on("load",function(){setTimeout(function(){t.pullAndReconditionSearchBars()},500)})},fixBrokenSearchUiAjax:function(){var t=this;e(document).ajaxSuccess(function(e,s,a){!("string"==typeof a.url&&RegExp("search.php|wc-ajax").test(a.url))&&"string"==typeof s.responseText&&s.responseText.includes("dgwt-wcas-search-input")&&setTimeout(function(){t.pullAndReconditionSearchBars()},500)})},fixBrokenSearchUiHard:function(){var t=this;e(document).ready(function(){0===t.searchBars.length&&t.pullAndReconditionSearchBars(),setInterval(function(){t.pullAndReconditionSearchBars()},1e3)})},fixBrokenSearchOnElementorPopupsV1:function(){var t=this;e(document).on("elementor/popup/show",()=>{setTimeout(function(){t.pullAndReconditionSearchBars()},500)})},fixBrokenSearchOnElementorPopupsV2:function(){var t=this;e(document).ready(function(){void 0!==window.elementorFrontend&&void 0!==window.elementorFrontend.documentsManager&&void 0!==window.elementorFrontend.documentsManager.documents&&e.each(elementorFrontend.documentsManager.documents,function(e,s){void 0!==s.getModal&&s.getModal&&s.getModal().on("show",function(){setTimeout(function(){t.pullAndReconditionSearchBars()},500)})})})},fixSearchInJetMobileMenu:function(){var t=this;0!==e(".jet-mobile-menu__toggle").length&&e(document).ajaxSend(function(s){void 0!==s.currentTarget&&"object"==typeof s.currentTarget.activeElement&&e(s.currentTarget.activeElement).hasClass("jet-mobile-menu__toggle")&&setTimeout(function(){e(".jet-mobile-menu__container .dgwt-wcas-search-input").length>0&&t.pullAndReconditionSearchBars()},500)})},fixforceRefreshCheckout:function(){e(document.body).on("added_to_cart",function(){e(document.body).hasClass("woocommerce-checkout")&&e(".dgwt-wcas-search-input").length>0&&e(document.body).trigger("update_checkout")})},fixbrokenSearchBrowserBackArrow:function(){e(window).on("load",function(){var t=0,s=setInterval(function(){var a=document.activeElement;if("object"==typeof a&&e(a).length&&e(a).hasClass("dgwt-wcas-search-input")){var o=e(a).closest(".dgwt-wcas-search-wrapp");o.length&&!o.hasClass("dgwt-wcas-active")&&(o.addClass("dgwt-wcas-active"),clearInterval(s))}t>10&&clearInterval(s),t++},500)})},pullAndReconditionSearchBars:function(){var t=this,s=e(".dgwt-wcas-search-input"),a=0==t.searchBars.length;s.length>0&&s.each(function(){var s,o=e(this),i=!0;if(t.searchBars.length>0){for(s=0;s0)for(var s=0;s0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})}) ;var sb_instagram_js_options={"font_method":"svg","resized_url":"https:\/\/ataicr.com\/wp-content\/uploads\/sb-instagram-feed-images\/","placeholder":"https:\/\/ataicr.com\/wp-content\/plugins\/instagram-feed\/img\/placeholder.png","ajax_url":"https:\/\/ataicr.com\/wp-admin\/admin-ajax.php"} ;var sbi_js_exists=typeof sbi_js_exists!=="undefined"?true:!1;if(!sbi_js_exists){(function($){function sbiAddVisibilityListener(){!function(i){var n={callback:function(){},runOnLoad:!0,frequency:100,sbiPreviousVisibility:null},c={};c.sbiCheckVisibility=function(i,n){if(jQuery.contains(document,i[0])){var e=n.sbiPreviousVisibility,t=i.is(":visible");n.sbiPreviousVisibility=t,null==e?n.runOnLoad&&n.callback(i,t):e!==t&&n.callback(i,t),setTimeout(function(){c.sbiCheckVisibility(i,n)},n.frequency)}},i.fn.sbiVisibilityChanged=function(e){var t=i.extend({},n,e);return this.each(function(){c.sbiCheckVisibility(i(this),t)})}}(jQuery)}function Sbi(){this.feeds={};this.options=sb_instagram_js_options}Sbi.prototype={createPage:function(createFeeds,createFeedsArgs){if(typeof sb_instagram_js_options.ajax_url!=="undefined"&&typeof window.sbiajaxurl==="undefined"){window.sbiajaxurl=sb_instagram_js_options.ajax_url}if(typeof window.sbiajaxurl==="undefined"||window.sbiajaxurl.indexOf(window.location.hostname)===-1){window.sbiajaxurl=location.protocol+"//"+window.location.hostname+"/wp-admin/admin-ajax.php"}if($("#sbi-builder-app").length&&typeof window.sbiresizedImages==="undefined"){if($(".sbi_resized_image_data").length&&typeof $(".sbi_resized_image_data").attr("data-resized")!=="undefined"&&$(".sbi_resized_image_data").attr("data-resized").indexOf('{"')===0){window.sbiresizedImages=JSON.parse($(".sbi_resized_image_data").attr("data-resized"));$(".sbi_resized_image_data").remove()}}$(".sbi_no_js_error_message").remove();$(".sbi_no_js").removeClass("sbi_no_js");createFeeds(createFeedsArgs)},createFeeds:function(args){args.whenFeedsCreated($(".sbi").each(function(index){$(this).attr("data-sbi-index",index+1);var $self=$(this),flags=typeof $self.attr("data-sbi-flags")!=="undefined"?$self.attr("data-sbi-flags").split(","):[],general=typeof $self.attr("data-options")!=="undefined"?JSON.parse($self.attr("data-options")):{};if(flags.indexOf("testAjax")>-1){window.sbi.triggeredTest=!0;var submitData={action:"sbi_on_ajax_test_trigger"},onSuccess=function(data){console.log("did test")};sbiAjax(submitData,onSuccess)}var feedOptions={cols:$self.attr("data-cols"),colsmobile:typeof $self.attr("data-colsmobile")!=="undefined"&&$self.attr("data-colsmobile")!=="same"?$self.attr("data-colsmobile"):$self.attr("data-cols"),colstablet:typeof $self.attr("data-colstablet")!=="undefined"&&$self.attr("data-colstablet")!=="same"?$self.attr("data-colstablet"):$self.attr("data-cols"),num:$self.attr("data-num"),imgRes:$self.attr("data-res"),feedID:$self.attr("data-feedid"),postID:typeof $self.attr("data-postid")!=="undefined"?$self.attr("data-postid"):"unknown",shortCodeAtts:$self.attr("data-shortcode-atts"),resizingEnabled:flags.indexOf("resizeDisable")===-1,imageLoadEnabled:flags.indexOf("imageLoadDisable")===-1,debugEnabled:flags.indexOf("debug")>-1,favorLocal:flags.indexOf("favorLocal")>-1,ajaxPostLoad:flags.indexOf("ajaxPostLoad")>-1,gdpr:flags.indexOf("gdpr")>-1,overrideBlockCDN:flags.indexOf("overrideBlockCDN")>-1,consentGiven:!1,locator:flags.indexOf("locator")>-1,autoMinRes:1,general:general};window.sbi.feeds[index]=sbiGetNewFeed(this,index,feedOptions);window.sbi.feeds[index].setResizedImages();window.sbi.feeds[index].init();var evt=jQuery.Event("sbiafterfeedcreate");evt.feed=window.sbi.feeds[index];jQuery(window).trigger(evt)}))},afterFeedsCreated:function(){$(".sb_instagram_header").each(function(){var $thisHeader=$(this);$thisHeader.find(".sbi_header_link").on("mouseenter mouseleave",function(e){switch(e.type){case"mouseenter":$thisHeader.find(".sbi_header_img_hover").addClass("sbi_fade_in");break;case"mouseleave":$thisHeader.find(".sbi_header_img_hover").removeClass("sbi_fade_in");break}})})},encodeHTML:function(raw){if(typeof raw==="undefined"){return""}var encoded=raw.replace(/(>)/g,">"),encoded=encoded.replace(/(<)/g,"<");encoded=encoded.replace(/(<br\/>)/g,"
    ");encoded=encoded.replace(/(<br>)/g,"
    ");return encoded},urlDetect:function(text){var urlRegex=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;return text.match(urlRegex)}};function SbiFeed(el,index,settings){this.el=el;this.index=index;this.settings=settings;this.minImageWidth=0;this.imageResolution=150;this.resizedImages={};this.needsResizing=[];this.outOfPages=!1;this.page=1;this.isInitialized=!1}SbiFeed.prototype={init:function(){var feed=this;feed.settings.consentGiven=feed.checkConsent();if($(this.el).find(".sbi_photo").parent("p").length){$(this.el).addClass("sbi_no_autop")}if($(this.el).find("#sbi_mod_error").length){$(this.el).prepend($(this.el).find("#sbi_mod_error"))}if(this.settings.ajaxPostLoad){this.getNewPostSet()}else{this.afterInitialImagesLoaded()}var sbi_delay=function(){var sbi_timer=0;return function(sbi_callback,sbi_ms){clearTimeout(sbi_timer);sbi_timer=setTimeout(sbi_callback,sbi_ms)}}();jQuery(window).on("resize",function(){sbi_delay(function(){feed.afterResize()},500)});$(this.el).find(".sbi_item").each(function(){feed.lazyLoadCheck($(this))})},initLayout:function(){},afterInitialImagesLoaded:function(){this.initLayout();this.loadMoreButtonInit();this.hideExtraImagesForWidth();this.beforeNewImagesRevealed();this.revealNewImages();this.afterNewImagesRevealed()},afterResize:function(){this.setImageHeight();this.setImageResolution();this.maybeRaiseImageResolution();this.setImageSizeClass()},afterLoadMoreClicked:function($button){$button.find(".sbi_loader").removeClass("sbi_hidden");$button.find(".sbi_btn_text").addClass("sbi_hidden");$button.closest(".sbi").find(".sbi_num_diff_hide").addClass("sbi_transition").removeClass("sbi_num_diff_hide")},afterNewImagesLoaded:function(){var $self=$(this.el),feed=this;this.beforeNewImagesRevealed();this.revealNewImages();this.afterNewImagesRevealed();setTimeout(function(){$self.find(".sbi_loader").addClass("sbi_hidden");$self.find(".sbi_btn_text").removeClass("sbi_hidden");feed.maybeRaiseImageResolution()},500)},beforeNewImagesRevealed:function(){this.setImageHeight();this.maybeRaiseImageResolution(!0);this.setImageSizeClass()},revealNewImages:function(){var $self=$(this.el),feed=this;$self.find(".sbi-screenreader").each(function(){$(this).find("img").remove()});if(typeof sbi_custom_js=="function")setTimeout(function(){sbi_custom_js()},100);$self.find(".sbi_item").each(function(index){var $self=jQuery(this);$self.find(".sbi_photo").on("mouseenter mouseleave",function(e){switch(e.type){case"mouseenter":jQuery(this).fadeTo(200,.85);break;case"mouseleave":jQuery(this).stop().fadeTo(500,1);break}})});setTimeout(function(){jQuery("#sbi_images .sbi_item.sbi_new").removeClass("sbi_new");var time=10;$self.find(".sbi_transition").each(function(){var $sbi_item_transition_el=jQuery(this);setTimeout(function(){$sbi_item_transition_el.removeClass("sbi_transition")},time);time+=10})},500)},lazyLoadCheck:function($item){var feed=this;if($item.find(".sbi_photo").length&&!$item.closest(".sbi").hasClass("sbi-no-ll-check")){var imgSrcSet=feed.getImageUrls($item),maxResImage=typeof imgSrcSet[640]!=="undefined"?imgSrcSet[640]:$item.find(".sbi_photo").attr("data-full-res");if(!feed.settings.consentGiven){if(maxResImage.indexOf("scontent")>-1){return}}$item.find(".sbi_photo img").each(function(){if(maxResImage&&typeof $(this).attr("data-src")!=="undefined"){$(this).attr("data-src",maxResImage)}if(maxResImage&&typeof $(this).attr("data-orig-src")!=="undefined"){$(this).attr("data-orig-src",maxResImage)}$(this).on("load",function(){if(!$(this).hasClass("sbi-replaced")&&$(this).attr("src").indexOf("placeholder")>-1){$(this).addClass("sbi-replaced");if(maxResImage){$(this).attr("src",maxResImage);if($(this).closest(".sbi_imgLiquid_bgSize").length){$(this).closest(".sbi_imgLiquid_bgSize").css("background-image","url("+maxResImage+")")}}}})})}},afterNewImagesRevealed:function(){this.listenForVisibilityChange();this.sendNeedsResizingToServer();if(!this.settings.imageLoadEnabled){$(".sbi_no_resraise").removeClass("sbi_no_resraise")}var evt=$.Event("sbiafterimagesloaded");evt.el=$(this.el);$(window).trigger(evt)},setResizedImages:function(){if($(this.el).find(".sbi_resized_image_data").length&&typeof $(this.el).find(".sbi_resized_image_data").attr("data-resized")!=="undefined"&&$(this.el).find(".sbi_resized_image_data").attr("data-resized").indexOf('{"')===0){this.resizedImages=JSON.parse($(this.el).find(".sbi_resized_image_data").attr("data-resized"));$(this.el).find(".sbi_resized_image_data").remove()}else if(typeof window.sbiresizedImages!=="undefined"){this.resizedImages=window.sbiresizedImages}},sendNeedsResizingToServer:function(){var feed=this,$self=$(this.el);if(feed.needsResizing.length>0&&feed.settings.resizingEnabled){var itemOffset=$(this.el).find(".sbi_item").length,cacheAll=typeof feed.settings.general.cache_all!=="undefined"?feed.settings.general.cache_all:!1;var locatorNonce="";if(typeof $self.attr("data-locatornonce")!=="undefined"){locatorNonce=$self.attr("data-locatornonce")}if($("#sbi-builder-app").length){if(typeof window.sbiresizeTriggered!=="undefined"&&window.sbiresizeTriggered){return}else{window.sbiresizeTriggered=!0}}var submitData={action:"sbi_resized_images_submit",needs_resizing:feed.needsResizing,offset:itemOffset,feed_id:feed.settings.feedID,atts:feed.settings.shortCodeAtts,location:feed.locationGuess(),post_id:feed.settings.postID,cache_all:cacheAll,locator_nonce:locatorNonce};var onSuccess=function(data){var response=data;if(typeof data!=="object"&&data.trim().indexOf("{")===0){response=JSON.parse(data.trim())}if(feed.settings.debugEnabled){console.log(response)}for(var property in response){if(response.hasOwnProperty(property)){feed.resizedImages[property]=response[property]}}feed.maybeRaiseImageResolution();setTimeout(function(){feed.afterResize()},500);if($("#sbi-builder-app").length){window.sbiresizeTriggered=!1}};sbiAjax(submitData,onSuccess)}else if(feed.settings.locator){var locatorNonce="";if(typeof $self.attr("data-locatornonce")!=="undefined"){locatorNonce=$self.attr("data-locatornonce")}var submitData={action:"sbi_do_locator",feed_id:feed.settings.feedID,atts:feed.settings.shortCodeAtts,location:feed.locationGuess(),post_id:feed.settings.postID,locator_nonce:locatorNonce};var onSuccess=function(data){};sbiAjax(submitData,onSuccess)}},loadMoreButtonInit:function(){var $self=$(this.el),feed=this;$self.find("#sbi_load .sbi_load_btn").off().on("click",function(){feed.afterLoadMoreClicked(jQuery(this));feed.getNewPostSet()})},getNewPostSet:function(){var $self=$(this.el),feed=this;feed.page++;var locatorNonce="";if(typeof $self.attr("data-locatornonce")!=="undefined"){locatorNonce=$self.attr("data-locatornonce")}var itemOffset=$self.find(".sbi_item").length,submitData={action:"sbi_load_more_clicked",offset:itemOffset,page:feed.page,feed_id:feed.settings.feedID,atts:feed.settings.shortCodeAtts,location:feed.locationGuess(),post_id:feed.settings.postID,current_resolution:feed.imageResolution,locator_nonce:locatorNonce};var onSuccess=function(data){var response=data;if(typeof data!=="object"&&data.trim().indexOf("{")===0){response=JSON.parse(data.trim())}if(feed.settings.debugEnabled){console.log(response)}feed.appendNewPosts(response.html);feed.addResizedImages(response.resizedImages);if(feed.settings.ajaxPostLoad){feed.settings.ajaxPostLoad=!1;feed.afterInitialImagesLoaded()}else{feed.afterNewImagesLoaded()}if(!response.feedStatus.shouldPaginate){feed.outOfPages=!0;$self.find(".sbi_load_btn").hide()}else{feed.outOfPages=!1}$(".sbi_no_js").removeClass("sbi_no_js")};sbiAjax(submitData,onSuccess)},appendNewPosts:function(newPostsHtml){var $self=$(this.el),feed=this;if($self.find("#sbi_images .sbi_item").length){$self.find("#sbi_images .sbi_item").last().after(newPostsHtml)}else{$self.find("#sbi_images").append(newPostsHtml)}},addResizedImages:function(resizedImagesToAdd){for(var imageID in resizedImagesToAdd){this.resizedImages[imageID]=resizedImagesToAdd[imageID]}},setImageHeight:function(){var $self=$(this.el);var sbi_photo_width=$self.find(".sbi_photo").eq(0).innerWidth();var sbi_num_cols=this.getColumnCount();var imagesPadding=$self.find("#sbi_images").innerWidth()-$self.find("#sbi_images").width(),imagepadding=imagesPadding/2;sbi_photo_width_manual=$self.find("#sbi_images").width()/sbi_num_cols-imagesPadding;$self.find(".sbi_photo").css("height",sbi_photo_width);if($self.find(".sbi-owl-nav").length){setTimeout(function(){var sbi_ratio=2;if($self.find(".sbi_owl2row-item").length)sbi_ratio=1;var sbi_arrows_top=$self.find(".sbi_photo").eq(0).innerWidth()/sbi_ratio;sbi_arrows_top+=parseInt(imagepadding)*(2+(2-sbi_ratio));$self.find(".sbi-owl-nav div").css("top",sbi_arrows_top)},100)}},maybeRaiseSingleImageResolution:function($item,index,forceChange){var feed=this,imgSrcSet=feed.getImageUrls($item),currentUrl=$item.find(".sbi_photo img").attr("src"),currentRes=150,imagEl=$item.find("img").get(0),aspectRatio=currentUrl===window.sbi.options.placeholder?1:imagEl.naturalWidth/imagEl.naturalHeight,forceChange=typeof forceChange!=="undefined"?forceChange:!1;if($item.hasClass("sbi_no_resraise")||$item.hasClass("sbi_had_error")||$item.find(".sbi_link_area").length&&$item.find(".sbi_link_area").hasClass("sbi_had_error")){return}if(imgSrcSet.length<1){if($item.find(".sbi_link_area").length){$item.find(".sbi_link_area").attr("href",window.sbi.options.placeholder.replace("placeholder.png","thumb-placeholder.png"))}return}else if($item.find(".sbi_link_area").length&&$item.find(".sbi_link_area").attr("href")===window.sbi.options.placeholder.replace("placeholder.png","thumb-placeholder.png")||!feed.settings.consentGiven){$item.find(".sbi_link_area").attr("href",imgSrcSet[imgSrcSet.length-1])}if(typeof imgSrcSet[640]!=="undefined"){$item.find(".sbi_photo").attr("data-full-res",imgSrcSet[640])}$.each(imgSrcSet,function(index,value){if(value===currentUrl){currentRes=parseInt(index);forceChange=!1}});var newRes=640;switch(feed.settings.imgRes){case"thumb":newRes=150;break;case"medium":newRes=320;break;case"full":newRes=640;break;default:var minImageWidth=Math.max(feed.settings.autoMinRes,$item.find(".sbi_photo").innerWidth()),thisImageReplace=feed.getBestResolutionForAuto(minImageWidth,aspectRatio,$item);switch(thisImageReplace){case 320:newRes=320;break;case 150:newRes=150;break}break}if(newRes>currentRes||currentUrl===window.sbi.options.placeholder||forceChange){if(feed.settings.debugEnabled){var reason=currentUrl===window.sbi.options.placeholder?"was placeholder":"too small";console.log("rais res for "+currentUrl,reason)}var newUrl=imgSrcSet[newRes].split("?ig_cache_key")[0];if(currentUrl!==newUrl){$item.find(".sbi_photo img").attr("src",newUrl)}currentRes=newRes;if(feed.settings.imgRes==="auto"){var checked=!1;$item.find(".sbi_photo img").on("load",function(){var $this_image=$(this);var newAspectRatio=$this_image.get(0).naturalWidth/$this_image.get(0).naturalHeight;if($this_image.get(0).naturalWidth!==1e3&&newAspectRatio>aspectRatio&&!checked){if(feed.settings.debugEnabled){console.log("rais res again for aspect ratio change "+currentUrl)}checked=!0;minImageWidth=$item.find(".sbi_photo").innerWidth();thisImageReplace=feed.getBestResolutionForAuto(minImageWidth,newAspectRatio,$item);newRes=640;switch(thisImageReplace){case 320:newRes=320;break;case 150:newRes=150;break}if(newRes>currentRes){newUrl=imgSrcSet[newRes].split("?ig_cache_key")[0];$this_image.attr("src",newUrl)}if(feed.layout==="masonry"||feed.layout==="highlight"){$(feed.el).find("#sbi_images").smashotope(feed.isotopeArgs);setTimeout(function(){$(feed.el).find("#sbi_images").smashotope(feed.isotopeArgs)},500)}}else{if(feed.settings.debugEnabled){var reason=checked?"already checked":"no aspect ratio change";console.log("not raising res for replacement "+currentUrl,reason)}}})}}$item.find("img").on("error",function(){if(!$(this).hasClass("sbi_img_error")){$(this).addClass("sbi_img_error");var sourceFromAPI=$(this).attr("src").indexOf("media/?size=")>-1||$(this).attr("src").indexOf("cdninstagram")>-1||$(this).attr("src").indexOf("fbcdn")>-1;if(!sourceFromAPI&&feed.settings.consentGiven){if($(this).closest(".sbi_photo").attr("data-img-src-set")!=="undefined"){var srcSet=JSON.parse($(this).closest(".sbi_photo").attr("data-img-src-set").replace(/\\\//g,"/"));if(typeof srcSet.d!=="undefined"){$(this).attr("src",srcSet.d);$(this).closest(".sbi_item").addClass("sbi_had_error").find(".sbi_link_area").attr("href",srcSet[640]).addClass("sbi_had_error")}}}else{feed.settings.favorLocal=!0;var srcSet=feed.getImageUrls($(this).closest(".sbi_item"));if(typeof srcSet[640]!=="undefined"){$(this).attr("src",srcSet[640]);$(this).closest(".sbi_item").addClass("sbi_had_error").find(".sbi_link_area").attr("href",srcSet[640]).addClass("sbi_had_error")}}setTimeout(function(){feed.afterResize()},1500)}else{console.log("unfixed error "+$(this).attr("src"))}})},maybeRaiseImageResolution:function(justNew){var feed=this,itemsSelector=typeof justNew!=="undefined"&&justNew===!0?".sbi_item.sbi_new":".sbi_item",forceChange=!feed.isInitialized?true:!1;$(feed.el).find(itemsSelector).each(function(index){if(!$(this).hasClass("sbi_num_diff_hide")&&$(this).find(".sbi_photo").length&&typeof $(this).find(".sbi_photo").attr("data-img-src-set")!=="undefined"){feed.maybeRaiseSingleImageResolution($(this),index,forceChange)}});feed.isInitialized=!0},getBestResolutionForAuto:function(colWidth,aspectRatio,$item){if(isNaN(aspectRatio)||aspectRatio<1){aspectRatio=1}var bestWidth=colWidth*aspectRatio,bestWidthRounded=Math.ceil(bestWidth/10)*10,customSizes=[150,320,640];if($item.hasClass("sbi_highlighted")){bestWidthRounded=bestWidthRounded*2}if(customSizes.indexOf(parseInt(bestWidthRounded))===-1){var done=!1;$.each(customSizes,function(index,item){if(item>parseInt(bestWidthRounded)&&!done){bestWidthRounded=item;done=!0}})}return bestWidthRounded},hideExtraImagesForWidth:function(){if(this.layout==="carousel"){return}var $self=$(this.el),num=typeof $self.attr("data-num")!=="undefined"&&$self.attr("data-num")!==""?parseInt($self.attr("data-num")):1,nummobile=typeof $self.attr("data-nummobile")!=="undefined"&&$self.attr("data-nummobile")!==""?parseInt($self.attr("data-nummobile")):num;if($(window).width()<480||window.sbi_preview_device==="mobile"){if(nummobile<$self.find(".sbi_item").length){$self.find(".sbi_item").slice(nummobile-$self.find(".sbi_item").length).addClass("sbi_num_diff_hide")}}else{if(num<$self.find(".sbi_item").length){$self.find(".sbi_item").slice(num-$self.find(".sbi_item").length).addClass("sbi_num_diff_hide")}}},setImageSizeClass:function(){var $self=$(this.el);$self.removeClass("sbi_small sbi_medium");var feedWidth=$self.innerWidth(),photoPadding=parseInt($self.find("#sbi_images").outerWidth()-$self.find("#sbi_images").width())/2,cols=this.getColumnCount(),feedWidthSansPadding=feedWidth-photoPadding*(cols+2),colWidth=feedWidthSansPadding/cols;if(colWidth>120&&colWidth<240){$self.addClass("sbi_medium")}else if(colWidth<=120){$self.addClass("sbi_small")}},setMinImageWidth:function(){if($(this.el).find(".sbi_item .sbi_photo").first().length){this.minImageWidth=$(this.el).find(".sbi_item .sbi_photo").first().innerWidth()}else{this.minImageWidth=150}},setImageResolution:function(){if(this.settings.imgRes==="auto"){this.imageResolution="auto"}else{switch(this.settings.imgRes){case"thumb":this.imageResolution=150;break;case"medium":this.imageResolution=320;break;default:this.imageResolution=640}}},getImageUrls:function($item){var srcSet=JSON.parse($item.find(".sbi_photo").attr("data-img-src-set").replace(/\\\//g,"/")),id=$item.attr("id").replace("sbi_","");if(!this.settings.consentGiven&&!this.settings.overrideBlockCDN){srcSet=[]}if(typeof this.resizedImages[id]!=="undefined"&&this.resizedImages[id]!=="video"&&this.resizedImages[id]!=="pending"&&this.resizedImages[id].id!=="error"&&this.resizedImages[id].id!=="video"&&this.resizedImages[id].id!=="pending"){if(typeof this.resizedImages[id].sizes!=="undefined"){var foundSizes=[];var extension=typeof this.resizedImages[id].extension!=="undefined"?this.resizedImages[id].extension:".jpg";if(typeof this.resizedImages[id].sizes.full!=="undefined"){srcSet[640]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+"full"+extension;foundSizes.push(640)}if(typeof this.resizedImages[id].sizes.low!=="undefined"){srcSet[320]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+"low"+extension;foundSizes.push(320)}if(typeof this.resizedImages[id].sizes.thumb!=="undefined"){foundSizes.push(150);srcSet[150]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+"thumb"+extension}if(this.settings.favorLocal){if(foundSizes.indexOf(640)===-1){if(foundSizes.indexOf(320)>-1){srcSet[640]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+"low"+extension}}if(foundSizes.indexOf(320)===-1){if(foundSizes.indexOf(640)>-1){srcSet[320]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+"full"+extension}else if(foundSizes.indexOf(150)>-1){srcSet[320]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+"thumb"+extension}}if(foundSizes.indexOf(150)===-1){if(foundSizes.indexOf(320)>-1){srcSet[150]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+"low"+extension}else if(foundSizes.indexOf(640)>-1){srcSet[150]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+"full"+extension}}}}}else if(typeof this.resizedImages[id]==="undefined"||typeof this.resizedImages[id].id!=="undefined"&&this.resizedImages[id].id!=="pending"&&this.resizedImages[id].id!=="error"){this.addToNeedsResizing(id)}return srcSet},getAvatarUrl:function(username,favorType){if(username===""){return""}var availableAvatars=this.settings.general.avatars,favorType=typeof favorType!=="undefined"?favorType:"local";if(favorType==="local"){if(typeof availableAvatars["LCL"+username]!=="undefined"&&parseInt(availableAvatars["LCL"+username])===1){return sb_instagram_js_options.resized_url+username+".jpg"}else if(typeof availableAvatars[username]!=="undefined"){return availableAvatars[username]}else{return""}}else{if(typeof availableAvatars[username]!=="undefined"){return availableAvatars[username]}else if(typeof availableAvatars["LCL"+username]!=="undefined"&&parseInt(availableAvatars["LCL"+username])===1){return sb_instagram_js_options.resized_url+username+".jpg"}else{return""}}},addToNeedsResizing:function(id){if(this.needsResizing.indexOf(id)===-1){this.needsResizing.push(id)}},listenForVisibilityChange:function(){var feed=this;sbiAddVisibilityListener();if(typeof $(this.el).filter(":hidden").sbiVisibilityChanged=="function"){$(this.el).filter(":hidden").sbiVisibilityChanged({callback:function(element,visible){feed.afterResize()},runOnLoad:!1})}},getColumnCount:function(){var $self=$(this.el),cols=this.settings.cols,colsmobile=this.settings.colsmobile,colstablet=this.settings.colstablet,returnCols=cols;sbiWindowWidth=window.innerWidth;if($self.hasClass("sbi_mob_col_auto")){if(sbiWindowWidth<640&&(parseInt(cols)>2&&parseInt(cols)<7))returnCols=2;if(sbiWindowWidth<640&&(parseInt(cols)>6&&parseInt(cols)<11))returnCols=4;if(sbiWindowWidth<=480&&parseInt(cols)>2)returnCols=1}else if(sbiWindowWidth>480&&sbiWindowWidth<=800){returnCols=colstablet}else if(sbiWindowWidth<=480){returnCols=colsmobile}return parseInt(returnCols)},checkConsent:function(){if(this.settings.consentGiven||!this.settings.gdpr){return!0}if(typeof window.cookieyes!=="undefined"){if(typeof window.cookieyes._ckyConsentStore.get!=="undefined"){this.settings.consentGiven=window.cookieyes._ckyConsentStore.get("functional")==="yes"}}else if(typeof CLI_Cookie!=="undefined"){if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)!==null){if(CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")!==null){this.settings.consentGiven=CLI_Cookie.read("cookielawinfo-checkbox-non-necessary")==="yes"}if(CLI_Cookie.read("cookielawinfo-checkbox-necessary")!==null){this.settings.consentGiven=CLI_Cookie.read("cookielawinfo-checkbox-necessary")==="yes"}}}else if(typeof window.cnArgs!=="undefined"){var value="; "+document.cookie,parts=value.split("; cookie_notice_accepted=");if(parts.length===2){var val=parts.pop().split(";").shift();this.settings.consentGiven=val==="true"}}else if(typeof window.cookieconsent!=="undefined"){this.settings.consentGiven=sbiCmplzGetCookie("complianz_consent_status")==="allow"}else if(typeof window.Cookiebot!=="undefined"){this.settings.consentGiven=Cookiebot.consented}else if(typeof window.BorlabsCookie!=="undefined"){this.settings.consentGiven=typeof window.BorlabsCookie.Consents!=="undefined"?window.BorlabsCookie.Consents.hasConsent("instagram"):window.BorlabsCookie.checkCookieConsent("instagram")}else if(sbiCmplzGetCookie("moove_gdpr_popup")){var moove_gdpr_popup=JSON.parse(decodeURIComponent(sbiCmplzGetCookie("moove_gdpr_popup")));this.settings.consentGiven=typeof moove_gdpr_popup.thirdparty!=="undefined"&&moove_gdpr_popup.thirdparty==="1"}var evt=jQuery.Event("sbicheckconsent");evt.feed=this;jQuery(window).trigger(evt);return this.settings.consentGiven},afterConsentToggled:function(){if(this.checkConsent()){var feed=this;feed.maybeRaiseImageResolution();setTimeout(function(){feed.afterResize()},500)}},locationGuess:function(){var $feed=$(this.el),location="content";if($feed.closest("footer").length){location="footer"}else if($feed.closest(".header").length||$feed.closest("header").length){location="header"}else if($feed.closest(".sidebar").length||$feed.closest("aside").length){location="sidebar"}return location}};window.sbi_init=function(){window.sbi=new Sbi;window.sbi.createPage(window.sbi.createFeeds,{whenFeedsCreated:window.sbi.afterFeedsCreated})};function sbiGetNewFeed(feed,index,feedOptions){return new SbiFeed(feed,index,feedOptions)}function sbiAjax(submitData,onSuccess){$.ajax({url:sbiajaxurl,type:"post",data:submitData,success:onSuccess})}function sbiCmplzGetCookie(cname){var name=cname+"=";var cArr=window.document.cookie.split(";");for(var i=0;i{try{$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].settings.consentGiven=!0;window.sbi.feeds[index].afterConsentToggled()})}catch(error){}})}$(".moove-gdpr-infobar-allow-all").on("click",function(){setTimeout(function(){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].afterConsentToggled()})},1e3)})})} ;jQuery(document).ready(function($){if($('body').hasClass('single-product')){$('label[for="pa_parent"]').hide();$('.w-post-elm-before').hide()}}) ;jQuery(document).ready(function($){if($('body').hasClass('single-product')){var parentElement=$('.woocommerce-product-attributes-item--attribute_pa_alt-stock-status');if(parentElement.length>0){var parentTextContent=parentElement.text().trim().toLowerCase();if(parentTextContent.includes('descontinuado')||parentTextContent.includes('solo contra pedido')){$('.cwg_popup_submit').hide()}} var stockStatusElement=$('.stock:first');if(stockStatusElement.length>0){var stockStatusText=stockStatusElement.text().trim();if(stockStatusText==="Hay existencias"){}else if(stockStatusText==="Agotado"){}}}}) ;jQuery(document).ready(function($){if($('p.stock.out-of-stock:contains("Agotado")').length>0){var commonAncestor=$('p.stock.out-of-stock:contains("Agotado")').closest('.wpb_wrapper');commonAncestor.find('.wpb_text_column').not(':has(p:contains("Código:"))').hide()}}) ;jQuery(document).ready(function($){function checkAndShowHiddenElements(){var $hiddenElements=$("div.product-tax-status.hide");$hiddenElements.each(function(){var $element=$(this);var $termElement=$element.find("span:contains('Solo contra pedido')");var $agotadoElement=$element.find("span:contains('Agotado en el proveedor')");if($termElement.length>0||$agotadoElement.length>0){$element.removeClass('hide')}})} $(window).on('load',function(){checkAndShowHiddenElements();var observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(mutation.addedNodes){mutation.addedNodes.forEach(function(node){var $productTaxStatusElement=$(node).find('.product-tax-status');if($productTaxStatusElement.length>0){checkAndShowHiddenElements()}})}})});observer.observe(document.body,{childList:!0,subtree:!0})})}) ;jQuery(document).ready(function($){var isSoloContraPedido=$("span.woocommerce-product-attributes-item__value:contains('Solo contra pedido')").length>0;var isHayExistenciasAbsent=!$("p.stock.in-stock:contains('Hay existencias')").length;if(isSoloContraPedido&&isHayExistenciasAbsent){$("#quote-pop-up").removeClass('hide')} if(isSoloContraPedido){$(".stock.out-of-stock").addClass('hide')}}) ;jQuery(document).ready(function($){if($('body').hasClass('woocommerce-account')){$('.woocommerce-privacy-policy-text').find('p').text('Sus datos personales se utilizarán para mejorar su experiencia en este sitio web, administrar el acceso a su cuenta y para otros fines descritos en nuestra política de privacidad.')}}) ;jQuery(document).ready(function($){$('.norm_row').removeAttr('style')}) ;jQuery(document).ready(function($){if($('body').hasClass('page-id-4792')){function updateActiveFilterColor(){$('.g-filters-item').css('color','');$('.g-filters-item.active').css('color','white')} function changeAllToTodos(){$('.g-filters-item[data-taxonomy="*"] span:first').text('Todos')} updateActiveFilterColor();changeAllToTodos();$('.g-filters-item').on('click',function(){setTimeout(function(){updateActiveFilterColor();changeAllToTodos()},10)})}}) ;jQuery(function($){function hideOutOfStock(){$('.w-grid-item').each(function(){var $item=$(this);if($item.find('.term-solo-contra-pedido').length>0){$item.find('.stock.out-of-stock').hide()}})} hideOutOfStock();var interval=setInterval(hideOutOfStock,500);setTimeout(function(){clearInterval(interval)},5000);$(document).on('ajaxComplete',hideOutOfStock)}) ;(function($){function dgwtWcasImprezaGetActiveInstance(){var $el=$('.dgwt-wcas-search-wrapp.dgwt-wcas-active'),instance;if($el.length>0){$el.each(function(){var $input=$(this).find('.dgwt-wcas-search-input');if(typeof $input.data('autocomplete')=='object'){instance=$input.data('autocomplete');return!1}})} return instance} $(document).ready(function(){$('.w-search.layout_modern .w-search-close').on('click',function(){var instance=dgwtWcasImprezaGetActiveInstance();if(typeof instance=='object'){instance.suggestions=[];instance.hide();instance.el.val('')}});$('.w-search-open').on('click',function(e){if($(window).width()<900){e.preventDefault();var $mobileHandler=$(e.target).closest('.w-search').find('.js-dgwt-wcas-enable-mobile-form');if($mobileHandler.length){$mobileHandler[0].click()} setTimeout(function(){$('.w-search').removeClass('active')},500)}})})})(jQuery) ;