(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);
;/*!
 * 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('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),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:"<h1>Please wait...</h1>",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('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',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)}();
;/*! 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<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(f){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});
;/* <![CDATA[ */
var arCUVars = {"url":"https:\/\/hoanghaled.vn\/wp-admin\/admin-ajax.php","version":"2.0.4","_wpnonce":"<input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"1133a4080a\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/tu-khoa\/man-led-cong\/\" \/>"};
/* ]]> */
;var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,d,a){b instanceof String&&(b=String(b));for(var c=b.length,f=0;f<c;f++){var e=b[f];if(d.call(a,e,f,b))return{i:f,v:e}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,d,a){b!=Array.prototype&&b!=Object.prototype&&(b[d]=a.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(b,d,a,c){if(d){a=$jscomp.global;b=b.split(".");for(c=0;c<b.length-1;c++){var f=b[c];f in a||(a[f]={});a=a[f]}b=b[b.length-1];c=a[b];d=d(c);d!=c&&null!=d&&$jscomp.defineProperty(a,b,{configurable:!0,writable:!0,value:d})}};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,a){return $jscomp.findInternal(this,b,a).v}},"es6","es3");$jscomp.arrayIteratorImpl=function(b){var d=0;return function(){return d<b.length?{done:!1,value:b[d++]}:{done:!0}}};
$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var b=0;return function(d){return $jscomp.SYMBOL_PREFIX+(d||"")+b++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.asyncIterator;b||(b=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};
$jscomp.iteratorFromArray=function(b,d){$jscomp.initSymbolIterator();b instanceof String&&(b+="");var a=0,c={next:function(){if(a<b.length){var f=a++;return{value:d(f,b[f]),done:!1}}c.next=function(){return{done:!0,value:void 0}};return c.next()}};c[Symbol.iterator]=function(){return c};return c};$jscomp.polyfill("Array.prototype.values",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(b,a){return a})}},"es8","es3");
(function(b){function d(a,c){this._initialized=!1;this.settings=null;this.popups=[];this.options=b.extend({},d.Defaults,c);this.$element=b(a);this.y=this.x=0;this._interval;this._timeout;this._wellcomeMessagesDone=this._formOpened=this._callbackOpened=this._popupOpened=this._menuOpened=this._animation=!1;this.svgPath=this.countdown=null;this.svgSteps=[];this.svgInitialPath=this.svgPathOpen=null;this.isAnimating=!1;this.init()}d.Defaults={online:null,activated:!1,pluginVersion:"2.3.1",wordpressPluginVersion:!1,
align:"right",mode:"regular",countdown:0,drag:!1,buttonText:"Contact us",buttonSize:"large",buttonIconSize:24,menuSize:"normal",buttonIcon:'<svg width="20" height="20" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(-825 -308)"><g><path transform="translate(825 308)" fill="#FFFFFF" d="M 19 4L 17 4L 17 13L 4 13L 4 15C 4 15.55 4.45 16 5 16L 16 16L 20 20L 20 5C 20 4.45 19.55 4 19 4ZM 15 10L 15 1C 15 0.45 14.55 0 14 0L 1 0C 0.45 0 0 0.45 0 1L 0 15L 4 11L 14 11C 14.55 11 15 10.55 15 10Z"/></g></g></svg>',
ajaxUrl:"server.php",action:"callback",phonePlaceholder:"+X-XXX-XXX-XX-XX",callbackSubmitText:"Waiting for call",reCaptcha:!1,reCaptchaAction:"callbackRequest",reCaptchaKey:"",errorMessage:"Connection error. Please try again.",callProcessText:"We are calling you to phone",callSuccessText:"Thank you.<br>We are call you back soon.",showMenuHeader:!1,menuHeaderText:"How would you like to contact us?",menuSubheaderText:"",menuHeaderLayout:"icon-center",layout:"default",itemsHeader:"Start chat with:",
menuHeaderIcon:null,menuHeaderTextAlign:"center",menuHeaderOnline:!0,showHeaderCloseBtn:!0,menuInAnimationClass:"show-messageners-block",menuOutAnimationClass:"",eaderCloseBtnBgColor:"#787878",eaderCloseBtnColor:"#FFFFFF",items:[],itemsIconType:"rounded",iconsAnimationSpeed:800,iconsAnimationPause:2E3,promptPosition:"side",style:null,itemsAnimation:null,popupAnimation:"scale",forms:{},theme:"#000000",subMenuHeaderBackground:"#FFFFFF",subMenuHeaderColor:"#FFFFFF",callbackFormText:"Please enter your phone number<br>and we call you back soon",
closeIcon:'<svg width="12" height="13" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(-4087 108)"><g><path transform="translate(4087 -108)" fill="currentColor" d="M 14 1.41L 12.59 0L 7 5.59L 1.41 0L 0 1.41L 5.59 7L 0 12.59L 1.41 14L 7 8.41L 12.59 14L 14 12.59L 8.41 7L 14 1.41Z"></path></g></g></svg>',callbackStateIcon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"></path></svg>'};
d.prototype.init=function(){if(this._initialized)return!1;this.destroy();this.settings=b.extend({},this.options);this.settings.forms.dynamic_form={header:""};this.$element.addClass("arcontactus-widget").addClass("arcontactus-message").addClass("layout-"+this.settings.layout);"elastic"==this.settings.style&&this.$element.addClass("arcu-elastic");"bubble"==this.settings.style&&this.$element.addClass("arcu-bubble");null!=this.settings.style&&"popup"!=this.settings.style&&""!=this.settings.style||!this.settings.popupAnimation||
this.$element.addClass("arcu-"+this.settings.popupAnimation);"left"===this.settings.align?this.$element.addClass("left"):this.$element.addClass("right");if(this.settings.items.length){this.$element.append("\x3c!--noindex--\x3e");if("regular"==this.settings.mode||"single"==this.settings.mode)if(this._initMessengersBlock(),"single"==this.settings.mode){var a=this.$element.find(".messangers-list li:first-child a");a.attr("href")&&this.$element.append(b("<a>",{href:a.attr("href"),target:a.attr("target"),
class:"arcu-single-mode-link"}))}this.popups.length&&this._initPopups();this._initMessageButton();this._initForms();this._initPrompt();this._initEvents();var c=this;setTimeout(function(){c.startAnimation()},this.settings.iconsAnimationPause?this.settings.iconsAnimationPause:2E3);null!==this.settings.online&&(a=b("<div>",{class:"arcu-online-badge "+(!0===this.settings.online?"online":"offline")}),this.$element.append(a));this.$element.append("\x3c!--/noindex--\x3e");this.$element.addClass("active")}else console.info("jquery.contactus:no items");
if("elastic"==this.settings.style||"bubble"==this.settings.style)a=document.getElementById("arcu-morph-shape"),this.svgPath=Snap(a.querySelector("svg")).select("path"),this.svgPathOpen=a.getAttribute("data-morph-open"),this.svgInitialPath=this.svgPath.attr("d"),this.svgSteps=this.svgPathOpen.split(";"),this.svgStepsTotal=this.svgSteps.length;this._initialized=!0;this.$element.trigger("arcontactus.init")};d.prototype.destroy=function(){if(!this._initialized)return!1;this.stopAnimation(!1);this._removeEvents();
this.$element.find(".arcontactus-message-button").unbind();this.$element.html("");this.$element.removeClass();this.$element.unbind().removeData("ar.contactus");this._initialized=!1;this.$element.trigger("arcontactus.destroy")};d.prototype._initForms=function(){var a=this,c=b("<div>",{class:"arcu-forms-container"}),f=b("<div>",{class:"arcu-close",style:"background-color:"+this.settings.theme+"; color: #FFFFFF"});f.append(this.settings.closeIcon);c.append(f);b.each(a.settings.forms,function(e){if(this.icon){var f=
b("<div>",{id:"form-icon-"+e,class:"form-icon"});f.append(this.icon);a.$element.find(".arcontactus-message-button").append(f)}f=b("<div>",{class:"arcu-form-container",id:"arcu-form-"+e});e="undefined"!==typeof this.action?b("<form>",{action:this.action,method:"POST",class:"arcu-form","data-id":e}):b("<div>",{class:"arcu-form"});if("string"==typeof this.header){var d=b("<div>",{class:"arcu-form-header",style:a._backgroundStyle()});d.html(this.header);e.append(d)}else if("object"==typeof this.header){d=
b("<div>",{class:"arcu-form-header "+this.header.layout,style:a._backgroundStyle()});var g=b("<div>",{class:"arcu-form-header-content"});g.html(this.header.content);var k=b("<div>",{class:"arcu-form-header-icon"});k.html(this.header.icon);d.append(k);d.append(g);e.append(d)}a._initFormFields(this,e);a._initFormButtons(this,e);f.append(e);"string"==typeof this.success&&(e=b("<div>",{class:"arcu-form-success"}),d=b("<div>"),d.html(this.success),e.append(d),f.append(e));"string"==typeof this.error&&
(e=b("<div>",{class:"arcu-form-error"}),d=b("<div>"),d.html(this.error),e.append(d),f.append(e));c.append(f)});this.$element.append(c)};d.prototype._initFormButtons=function(a,c){var f=this;b.each(a.buttons,function(e){e=a.buttons[e];var d=b("<div>",{class:"arcu-form-group arcu-form-button"}),h="";"undefined"!=typeof e.class&&(h=e.class);if(-1!==["button","submit"].indexOf(e.type))var g=b("<button>",{id:"arcu-button-"+e.id,class:"arcu-button "+h,type:e.type,style:f._backgroundStyle()});else"a"==e.type&&
(g=b("<a>",{id:"arcu-button-"+e.id,class:"arcu-button "+h,href:e.href,type:e.type,style:f._backgroundStyle()}));g.text(e.label);d.append(g);c.append(d)})};d.prototype._initFormFields=function(a,c){b.each(a.fields,function(f){var e=a.fields[f];f=b("<div>",{class:"arcu-form-group arcu-form-group-type-"+e.type+" arcu-form-group-"+e.name+(e.required?" arcu-form-group-required":"")});var d="<input>";switch(e.type){case "textarea":d="<textarea>";break;case "dropdown":d="<select>"}if(e.label){var h=b("<div>",
{class:"arcu-form-label"});h.html(e.label);f.append(h)}var g=b(d,{name:e.name,class:"arcu-form-field arcu-field-"+e.name,required:e.required,type:"dropdown"==e.type?null:e.type,value:e.value?e.value:""});g.attr("placeholder",e.placeholder);"undefined"!=typeof e.maxlength&&g.attr("maxlength",e.maxlength);"dropdown"==e.type&&b.each(e.values,function(a){var c=e.values[a],f=e.values[a];"object"==typeof e.values[a]&&(c=e.values[a].value,f=e.values[a].label);a=b("<option>",{value:c});a.text(f);g.append(a)});
f.append(g);f.append(b("<div>",{class:"arcu-form-field-errors"}));c.append(f)})};d.prototype._initPopups=function(){var a=this,c=b("<div>",{class:"popups-block arcuAnimated"}),f=b("<div>",{class:"popups-list-container"});b.each(this.popups,function(){var c=b("<div>",{class:"arcu-popup",id:"arcu-popup-"+this.id}),d=b("<div>",{class:"arcu-popup-header",style:a.settings.theme?"background-color:"+a.settings.theme:null}),h=b("<div>",{class:"arcu-popup-close",style:a.settings.theme?"background-color:"+
a.settings.theme:null}),g=b("<div>",{class:"arcu-popup-back",style:a.settings.theme?"background-color:"+a.settings.theme:null});h.append(a.settings.closeIcon);g.append('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512"><path fill="currentColor" d="M231.293 473.899l19.799-19.799c4.686-4.686 4.686-12.284 0-16.971L70.393 256 251.092 74.87c4.686-4.686 4.686-12.284 0-16.971L231.293 38.1c-4.686-4.686-12.284-4.686-16.971 0L4.908 247.515c-4.686 4.686-4.686 12.284 0 16.971L214.322 473.9c4.687 4.686 12.285 4.686 16.971-.001z" class=""></path></svg>');
d.text(this.title);d.append(h);d.append(g);h=b("<div>",{class:"arcu-popup-content"});h.html(this.popupContent);c.append(d);c.append(h);f.append(c)});c.append(f);this.$element.append(c)};d.prototype._initMessengersBlock=function(){var a=b("<div>",{class:"messangers-block arcuAnimated"}),c=b("<div>",{class:"messangers-list-container"});if("personal"==this.settings.layout){var f=b("<div>",{class:"arcu-items-header"});f.html(this.settings.itemsHeader);var e=b("<div>",{class:"arcu-wellcome"});c.append(e);
c.append(f)}f=b("<ul>",{class:"messangers-list"});this.settings.itemsAnimation&&f.addClass("arcu-"+this.settings.itemsAnimation);"normal"!==this.settings.menuSize&&"large"!==this.settings.menuSize||a.addClass("lg");"small"===this.settings.menuSize&&a.addClass("sm");this._appendMessengerIcons(f,this.settings.items);if(this.settings.showMenuHeader){e=b("<div>",{class:"arcu-menu-header arcu-"+this.settings.menuHeaderLayout,style:this.settings.theme?"background-color:"+this.settings.theme:null});var d=
b("<div>",{class:"arcu-menu-header-content arcu-text-"+this.settings.menuHeaderTextAlign});d.html(this.settings.menuHeaderText);if(this.settings.menuHeaderIcon){var h=b("<div>",{class:"arcu-header-icon"});this.settings.menuHeaderIcon.match(/^https?:\/\//)?h.css("background-image","url("+this.settings.menuHeaderIcon+")").addClass("arcu-bg-image"):h.append(this.settings.menuHeaderIcon);if(null!==this.settings.menuHeaderOnline){var g=b("<div>",{class:"arcu-online-badge "+(this.settings.menuHeaderOnline?
"online":"offline"),style:"border-color: "+this.settings.theme});h.append(g)}e.append(h)}e.append(d);this.settings.menuSubheaderText&&(d=b("<div>",{class:"arcu-menu-subheader arcu-text-"+this.settings.menuHeaderTextAlign}),d.html(this.settings.menuSubheaderText),e.append(d));this.settings.showHeaderCloseBtn&&(d=b("<div>",{class:"arcu-header-close",style:"color:"+this.settings.headerCloseBtnColor+"; background:"+this.settings.headerCloseBtnBgColor}),d.append(this.settings.closeIcon),e.append(d));a.append(e);
a.addClass("has-header")}"rounded"==this.settings.itemsIconType?f.addClass("rounded-items"):f.addClass("not-rounded-items");c.append(f);a.append(c);"elastic"==this.settings.style?(c='<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 800" preserveAspectRatio="none"><path d="M-1,0h101c0,0-97.833,153.603-97.833,396.167C2.167,627.579,100,800,100,800H-1V0z"/></svg>',f=b("<div>",{class:"arcu-morph-shape",id:"arcu-morph-shape","data-morph-open":"M-1,0h101c0,0,0-1,0,395c0,404,0,405,0,405H-1V0z"}),
f.append(c),a.append(f)):"bubble"==this.settings.style&&(c='<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100 800" preserveAspectRatio="none"><path d="M-7.312,0H0c0,0,0,113.839,0,400c0,264.506,0,400,0,400h-7.312V0z"></path><defs></defs></svg>',f=b("<div>",{class:"arcu-morph-shape",id:"arcu-morph-shape","data-morph-open":"M-7.312,0H15c0,0,66,113.339,66,399.5C81,664.006,15,800,15,800H-7.312V0z;M-7.312,0H100c0,0,0,113.839,0,400c0,264.506,0,400,0,400H-7.312V0z"}),f.append(c),
a.append(f));this.$element.append(a)};d.prototype._appendMessengerIcons=function(a,c){var f=this;b.each(c,function(c){c=b("<li>",{});if("_popup"==this.href){f.popups.push(this);var e=b("<div>",{class:"messanger arcu-popup-link "+(this.class?this.class:""),title:this.title,"data-id":this.id?this.id:null})}else if(e=b("<a>",{class:"messanger "+(this.class?this.class:"")+(this.addons?" has-addon ":""),id:this.id?this.id:null,rel:"nofollow noopener",href:this.href,title:this.title,target:this.target?
this.target:"_blank"}),this.onClick){var d=this;e.on("click",function(a){d.onClick(a)})}this.addons&&b.each(this.addons,function(a){a=b("<a>",{href:this.href,title:this.title?this.title:null,target:this.target?this.target:"_blank",class:this.class?this.class:"arcu-addon",style:(this.color?"color:"+this.color:null)+"; background-color: transparent"});if(this.icon)if(0===this.icon.indexOf("<"))a.append(this.icon);else if(-1===this.icon.indexOf("<")){var c=b("<img>",{src:this.icon});a.append(c)}if(this.onClick){var f=
this;a.on("click",function(a){return f.onClick(a)})}e.append(a)});var g="rounded"==f.settings.itemsIconType?this.noContainer?b("<span>",{style:this.color?"color:"+this.color+"; fill: "+this.color:null,class:"no-container"}):b("<span>",{style:this.color&&!this.noContainer?"background-color:"+this.color:null}):this.noContainer?b("<span>",{style:this.color?"color:"+this.color+"; fill: "+this.color:null,class:"no-container"}):b("<span>",{style:(this.color&&!this.noContainer?"color:"+this.color:null)+
"; background-color: transparent"});if("undefined"!==typeof this.online&&null!==this.online){var k=b("<div>",{class:"arcu-online-badge "+(!0===this.online?"online":"offline")});g.append(k)}g.append(this.icon);e.append(g);g=b("<div>",{class:"arcu-item-label"});k=b("<div>",{class:"arcu-item-title"});k.text(this.title);g.append(k);"undefined"!=typeof this.subTitle&&this.subTitle&&(k=b("<div>",{class:"arcu-item-subtitle"}),k.text(this.subTitle),g.append(k));e.append(g);c.append(e);a.append(c);if(this.items){e=
this;var l=this.id;g=b("<div>",{class:"arcu-submenu-header",style:"background-color:"+f.settings.subMenuHeaderBackground+"; color: "+e.subMenuHeaderIconColor});k=b("<div>",{class:"arcu-submenu-title arcu-text-"+this.subMenuHeaderTextAlign,style:"color:"+f.settings.subMenuHeaderColor});this.subMenuHeader?k.text(this.subMenuHeader):k.text(this.title);var n=b("<div>",{class:"arcu-submenu-back",style:"color:"+f.settings.subMenuHeaderColor+"; fill: "+f.settings.subMenuHeaderColor});n.html('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512"><path fill="currentColor" d="M231.293 473.899l19.799-19.799c4.686-4.686 4.686-12.284 0-16.971L70.393 256 251.092 74.87c4.686-4.686 4.686-12.284 0-16.971L231.293 38.1c-4.686-4.686-12.284-4.686-16.971 0L4.908 247.515c-4.686 4.686-4.686 12.284 0 16.971L214.322 473.9c4.687 4.686 12.285 4.686 16.971-.001z" class=""></path></svg>');
n.attr("data-rel",l);n.on("click",function(){f.hideSubmenu({id:"#"+l})});g.append(n);this.subMenuHeaderIcon&&g.append(this.subMenuHeaderIcon);g.append(k);k=b("<div>",{class:"arcu-submenu-container"});n=b("<ul>",{class:"arcu-submenu"});k.append(g);k.append(n);f._appendMessengerIcons(n,this.items);c.append(k)}})};d.prototype._initMessageButton=function(){var a=this,c=b("<div>",{class:"arcontactus-message-button",style:this._backgroundStyle()});"large"===this.settings.buttonSize&&this.$element.addClass("lg");
"huge"===this.settings.buttonSize&&this.$element.addClass("hg");"medium"===this.settings.buttonSize&&this.$element.addClass("md");"small"===this.settings.buttonSize&&this.$element.addClass("sm");var f=b("<div>",{class:"static"}),e=b("<div>",{class:"img-"+this.settings.buttonIconSize});e.append(this.settings.buttonIcon);!1!==this.settings.buttonText?e.append("<p>"+this.settings.buttonText+"</p>"):c.addClass("no-text");f.append(e);e=b("<div>",{class:"callback-state",style:a._colorStyle()});e.append(this.settings.callbackStateIcon);
var d=b("<div>",{class:"icons hide"}),h=b("<div>",{class:"icons-line"});b.each(this.settings.items,function(c){this.includeIconToSlider&&(c=b("<span>",{style:a._colorStyle()}),c.append(this.icon),h.append(c))});d.append(h);var g=b("<div>",{class:"arcontactus-close"});g.append(this.settings.closeIcon);var k=b("<div>",{class:"pulsation",style:a._backgroundStyle()}),l=b("<div>",{class:"pulsation",style:a._backgroundStyle()});c.append(f).append(e).append(d).append(g).append(k).append(l);this.$element.append(c)};
d.prototype._initPrompt=function(){var a=b("<div>",{class:"arcontactus-prompt arcu-prompt-"+this.settings.promptPosition}),c=b("<div>",{class:"arcontactus-prompt-close",style:this._backgroundStyle()+"; color: #FFFFFF"});c.append(this.settings.closeIcon);var f=b("<div>",{class:"arcontactus-prompt-inner"});a.append(c).append(f);this.$element.append(a)};d.prototype._initEvents=function(){var a=this.$element,c=this;a.find(".arcontactus-message-button").on("mousedown",function(a){c.x=a.pageX;c.y=a.pageY}).on("mouseup",
function(b){if(c.settings.drag&&b.pageX===c.x&&b.pageY===c.y||!c.settings.drag){if("regular"==c.settings.mode)c._menuOpened||c._popupOpened||c._callbackOpened||c._formOpened?(c._menuOpened&&c.closeMenu(),c._popupOpened&&c.closePopup()):c.openMenu();else if("single"==c.settings.mode){var e=a.find(".messangers-list li:first-child a");e.attr("href")||e.click()}else c.showForm("callback");b.preventDefault()}});this.settings.drag&&(a.draggable(),a.get(0).addEventListener("touchmove",function(c){var b=
c.targetTouches[0];a.get(0).style.left=b.pageX-25+"px";a.get(0).style.top=b.pageY-25+"px";c.preventDefault()},!1));b(document).on("click",function(a){c.closeMenu();c.closePopup()});a.on("click",function(a){a.stopPropagation()});a.find(".call-back").on("click",function(){c.openCallbackPopup()});a.find(".arcu-popup-link").on("click",function(){var a=b(this).data("id");c.openPopup(a)});a.find(".arcu-header-close").on("click",function(){c.closeMenu()});a.find(".arcu-popup-close").on("click",function(){c.closePopup()});
a.find(".arcu-popup-back").on("click",function(){c.closePopup();c.openMenu()});a.find(".arcu-close").on("click",function(){null!=c.countdown&&(clearInterval(c.countdown),c.countdown=null);c.hideForm()});a.find(".arcontactus-prompt-close").on("click",function(){c.hidePrompt()});a.find("form").on("submit",function(f){f.preventDefault();var e=b(this);e.parent().addClass("ar-loading");c.settings.reCaptcha?grecaptcha.execute(c.settings.reCaptchaKey,{action:c.settings.reCaptchaAction}).then(function(b){a.find(".ar-g-token").val(b);
c.sendFormData(e)}):c.sendFormData(e)});setTimeout(function(){c._processHash()},500);b(window).on("hashchange",function(a){c._processHash()})};d.prototype._removeEvents=function(){b(document).unbind("click")};d.prototype._processHash=function(){switch(window.location.hash){case "#callback-form":case "callback-form":this.showForm("callback");break;case "#callback-form-close":case "callback-form-close":this.hideForm();break;case "#contactus-menu":case "contactus-menu":this.openMenu();break;case "#contactus-menu-close":case "contactus-menu-close":this.closeMenu();
break;case "#contactus-hide":case "contactus-hide":this.hide();break;case "#contactus-show":case "contactus-show":this.show()}};d.prototype._callBackCountDownMethod=function(){var a=this.settings.countdown,c=this.$element,b=this,e=60;c.find(".callback-countdown-block-phone, .callback-countdown-block-timer").toggleClass("display-flex");this.countdown=setInterval(function(){--e;var d=a,f=e;10>a&&(d="0"+a);10>e&&(f="0"+e);d=d+":"+f;c.find(".callback-countdown-block-timer_timer").html(d);0===e&&0===a&&
(clearInterval(b.countdown),b.countdown=null,c.find(".callback-countdown-block-sorry, .callback-countdown-block-timer").toggleClass("display-flex"));0===e&&(e=60,--a)},20)};d.prototype._clearFormErrors=function(a){a.find(".arcu-form-group.has-error").removeClass("has-error")};d.prototype._processFormErrors=function(a,c){0==c.success&&b.each(c.errors,function(b){a.find(".arcu-form-group-"+b).addClass("has-error");a.find(".arcu-form-group-"+b).find(".arcu-form-field-errors").html(c.errors[b].join("<br/>"))})};
d.prototype.sendFormData=function(a){var c=this,d=c.$element;d.trigger("arcontactus.beforeSendFormData",{form:a});b.ajax({url:a.attr("action"),type:a.attr("method"),dataType:"json",data:a.serialize(),success:function(b){a.parent().removeClass("ar-loading");c._clearFormErrors(a);b.success?(a.parent().find(".arcu-form-success").addClass("active"),a.parent().find(".arcu-form-error").removeClass("active"),d.trigger("arcontactus.successSendFormData",{form:a,data:b})):(b.errors&&c._processFormErrors(a,
b),d.trigger("arcontactus.errorSendFormData",{form:a,data:b}))},error:function(){c._clearFormErrors(a);a.parent().find(".arcu-form-success").removeClass("active");a.parent().find(".arcu-form-error").addClass("active");a.parent().removeClass("ar-loading");alert(c.settings.errorMessage);d.trigger("arcontactus.errorSendFormData",{form:a,data:null})}})};d.prototype.show=function(){this.$element.addClass("active");this.$element.trigger("arcontactus.show")};d.prototype.hide=function(){this.$element.removeClass("active");
this.$element.trigger("arcontactus.hide")};d.prototype.openPopup=function(a){this.closeMenu();var b=this.$element;b.find("#arcu-popup-"+a).addClass("show-messageners-block");b.find("#arcu-popup-"+a).hasClass("popup-opened")||(this.stopAnimation(!1),b.addClass("popup-opened"),b.find("#arcu-popup-"+a).addClass(this.settings.menuInAnimationClass),b.find(".arcontactus-close").addClass("show-messageners-block"),b.find(".icons, .static").addClass("hide"),b.find(".pulsation").addClass("stop"),this._popupOpened=
!0,this.$element.trigger("arcontactus.openPopup"))};d.prototype.closePopup=function(){var a=this.$element;a.find(".arcu-popup").hasClass("show-messageners-block")&&(setTimeout(function(){a.removeClass("popup-opened")},150),a.find(".arcu-popup").removeClass(this.settings.menuInAnimationClass).addClass(this.settings.menuOutAnimationClass),setTimeout(function(){a.removeClass("popup-opened")},150),a.find(".arcontactus-close").removeClass("show-messageners-block"),a.find(".icons, .static").removeClass("hide"),
a.find(".pulsation").removeClass("stop"),this.startAnimation(),this._popupOpened=!1,this.$element.trigger("arcontactus.closeMenu"))};d.prototype.openMenu=function(){if("callback"==this.settings.mode)return console.log("Widget in callback mode"),!1;this._formOpened&&this.hideForm();if("elastic"==this.settings.style||"bubble"==this.settings.style)jQuery("body").addClass("arcu-show-menu").addClass("arcu-menu-"+this.settings.align),jQuery("body").addClass("arcu-pushed");var a=this.$element,b=this;a.find(".messangers-block").hasClass(this.settings.menuInAnimationClass)||
(this.stopAnimation(!1),a.addClass("open"),a.find(".messangers-block").addClass(this.settings.menuInAnimationClass),a.find(".arcontactus-close").addClass("show-messageners-block"),a.find(".icons, .static").addClass("hide"),a.find(".pulsation").addClass("stop"),this._menuOpened=!0,this.$element.trigger("arcontactus.openMenu"));if("elastic"==this.settings.style)this.svgPath.animate({path:this.svgPathOpen},400,mina.easeinout,function(){b.isAnimating=!1});else if("bubble"==this.settings.style){var d=
function(a){a>b.svgStepsTotal-1||(b.svgPath.animate({path:b.svgSteps[a]},0===a?400:500,0===a?mina.easein:mina.elastic,function(){d(a)}),a++)};d(0)}};d.prototype.closeMenu=function(){if("callback"==this.settings.mode)return console.log("Widget in callback mode"),!1;if("elastic"==this.settings.style||"bubble"==this.settings.style)jQuery("body").removeClass("arcu-show-menu").removeClass("arcu-menu-"+this.settings.align),setTimeout(function(){jQuery("body").removeClass("arcu-pushed")},500);var a=this.$element,
b=this;a.find(".messangers-block").hasClass(this.settings.menuInAnimationClass)&&(setTimeout(function(){b._formOpened||a.removeClass("open")},150),a.find(".messangers-block").removeClass(this.settings.menuInAnimationClass).addClass(this.settings.menuOutAnimationClass),setTimeout(function(){a.find(".messangers-block").removeClass(b.settings.menuOutAnimationClass)},1E3),a.find(".arcontactus-close").removeClass("show-messageners-block"),a.find(".static").removeClass("hide"),a.find(".pulsation").removeClass("stop"),
this._menuOpened=!1,b.settings.iconsAnimationPause?b._timeout=setTimeout(function(){if(b._callbackOpened||b._menuOpened||b._popupOpened||b._formOpened)return!1;b.startAnimation()},b.settings.iconsAnimationPause):this.startAnimation(),this.$element.trigger("arcontactus.closeMenu"));"elastic"!=this.settings.style&&"bubble"!=this.settings.style||setTimeout(function(){b.svgPath.attr("d",b.svgInitialPath);b.isAnimating=!1},300)};d.prototype.toggleMenu=function(){var a=this.$element;this.hidePrompt();if(a.find(".callback-countdown-block").hasClass("display-flex"))return!1;
a.find(".messangers-block").hasClass(this.settings.menuInAnimationClass)?this.closeMenu():this.openMenu();this.$element.trigger("arcontactus.toggleMenu")};d.prototype.openCallbackPopup=function(){var a=this.$element;a.addClass("opened");this.closeMenu();this.stopAnimation(!1);a.find(".icons, .static").addClass("hide");a.find(".pulsation").addClass("stop");a.find(".callback-countdown-block-phone, .callback-countdown-block-sorry, .callback-countdown-block-timer").removeClass("display-flex");a.find(".callback-countdown-block").addClass("display-flex");
a.find(".callback-countdown-block-phone").addClass("display-flex");a.find(".callback-state").addClass("display-flex");this._callbackOpened=!0;this.$element.trigger("arcontactus.openCallbackPopup")};d.prototype.closeCallbackPopup=function(){var a=this.$element;a.removeClass("opened");a.find(".messangers-block").removeClass(this.settings.menuInAnimationClass);a.find(".arcontactus-close").removeClass("show-messageners-block");a.find(".icons, .static").removeClass("hide");a.find(".pulsation").removeClass("stop");
a.find(".callback-countdown-block").removeClass("display-flex");a.find(".callback-state").removeClass("display-flex");this.startAnimation();this._callbackOpened=!1;this.$element.trigger("arcontactus.closeCallbackPopup")};d.prototype.startAnimation=function(){if(this._menuOpened||this._formOpened)return!1;var a=this.$element,b=this,d=a.find(".icons-line"),e=a.find(".static"),m=a.find(".icons-line>span:first-child").width()+40;if("huge"===this.settings.buttonSize)var h=2,g=0;"large"===this.settings.buttonSize&&
(h=2,g=0);"medium"===this.settings.buttonSize&&(h=4,g=-2);"small"===this.settings.buttonSize&&(h=4,g=-2);var k=a.find(".icons-line>span").length,l=0;if(0===this.settings.iconsAnimationSpeed)return!1;this._animation=!0;this._interval=setInterval(function(){0===l&&(d.parent().removeClass("hide"),e.addClass("hide"));var a="translate("+-(m*l+h)+"px, "+g+"px)";d.css({"-webkit-transform":a,"-ms-transform":a,transform:a});l++;l>k&&(l>k+1&&(b.settings.iconsAnimationPause&&(b.stopAnimation(!0),b._animation&&
(b._timeout=setTimeout(function(){if(b._callbackOpened||b._menuOpened||b._popupOpened||b._formOpened)return!1;b.startAnimation()},b.settings.iconsAnimationPause))),l=0),d.parent().addClass("hide"),e.removeClass("hide"),a="translate("+-h+"px, "+g+"px)",d.css({"-webkit-transform":a,"-ms-transform":a,transform:a}))},this.settings.iconsAnimationSpeed)};d.prototype.stopAnimation=function(a){clearInterval(this._interval);a||(this._animation=!1,clearTimeout(this._timeout));var b=this.$element;a=b.find(".icons-line");
b=b.find(".static");a.parent().addClass("hide");b.removeClass("hide");a.css({"-webkit-transform":"translate(-2px, 0px)","-ms-transform":"translate(-2px, 0px)",transform:"translate(-2px, 0px)"})};d.prototype.showPrompt=function(a){var b=this.$element.find(".arcontactus-prompt");a&&a.content&&b.find(".arcontactus-prompt-inner").html(a.content);b.addClass("active");this.$element.trigger("arcontactus.showPrompt")};d.prototype.hidePrompt=function(){this.$element.find(".arcontactus-prompt").removeClass("active");
this.$element.trigger("arcontactus.hidePrompt")};d.prototype.showForm=function(a){this._formOpened=!0;this.stopAnimation(!1);this.$element.addClass("open");this.$element.find(".arcu-forms-container").addClass("active");this.$element.find(".arcu-form-container.active").removeClass("active");this.$element.find("#arcu-form-"+a).addClass("active");this.$element.find("#form-icon-"+a).length&&(this.$element.find("#form-icon-"+a).addClass("active"),this.$element.find(".arcontactus-message-button .static").addClass("hide"));
this.$element.trigger("arcontactus.showFrom",{id:a})};d.prototype.hideForm=function(){this.$element.find(".arcu-forms-container").removeClass("active");this.$element.find(".form-icon").removeClass("active");this.$element.find(".arcontactus-message-button .static").removeClass("hide");this._formOpened=!1;var a=this.$element,b=this;setTimeout(function(){b._menuOpened||a.removeClass("open");a.find(".arcu-form-success.active").removeClass("active");a.find(".arcu-form-error.active").removeClass("active")},
150);this.startAnimation();this.$element.trigger("arcontactus.hideFrom")};d.prototype._insertPromptTyping=function(){var a=this.$element.find(".arcontactus-prompt-inner"),c=b("<div>",{class:"arcontactus-prompt-typing"}),d=b("<div>");c.append(d);c.append(d.clone());c.append(d.clone());a.append(c)};d.prototype.showPromptTyping=function(){this.$element.find(".arcontactus-prompt").find(".arcontactus-prompt-inner").html("");this._insertPromptTyping();this.showPrompt({});this.$element.trigger("arcontactus.showPromptTyping")};
d.prototype.hidePromptTyping=function(){this.$element.find(".arcontactus-prompt").removeClass("active");this.$element.trigger("arcontactus.hidePromptTyping")};d.prototype.showWellcomeTyping=function(){var a=this.$element.find(".arcu-wellcome"),c=this.$element.find(".arcu-menu-header > .arcu-header-icon");if(0==a.find(".arcu-wellcome-msg.typing").length){var d=b("<div>",{class:"arcu-wellcome-msg typing"}),e=b("<div>",{class:"arcu-wellcome-icon"});e.html(c.clone());c=b("<div>",{class:"arcu-wellcome-time"});
var m=new Date;c.html(("0"+m.getHours()).slice(-2)+":"+("0"+m.getMinutes()).slice(-2));m=b("<div>",{class:"arcu-wellcome-content"});var h=b("<div>",{class:"arcontactus-prompt-typing"}),g=b("<div>");h.append(g);h.append(g.clone());h.append(g.clone());m.append(h);d.append(c);d.append(e);d.append(m);a.append(d)}};d.prototype.showWellcomeMessage=function(a){var b=this.$element.find(".arcu-wellcome");b.find(".arcu-wellcome-msg.typing").length&&(b.find(".arcu-wellcome-msg.typing .arcu-wellcome-content").html(a.content),
b.find(".arcu-wellcome-msg.typing").removeClass("typing"))};d.prototype.getSettings=function(){console.log(this.settings)};d.prototype.getVersion=function(){console.log(this.settings.pluginVersion)};d.prototype.hideSubmenu=function(a){this.$element.find(".arcu-submenu-header").removeClass("active");b(a.id).parent().removeClass("active");b(a.id).parent().find(".arcu-submenu-container").removeClass("active");b(a.id).parent().find(".arcu-submenu-header").addClass("active");this.$element.find(".arcu-submenu-header").removeClass("active");
this.$element.find(".arcu-submenu").removeClass("active");0==this.$element.find(".arcu-submenu-container.active").length?this.$element.find(".messangers-list").removeClass("arcu-submenu-active"):(this.$element.find(".arcu-submenu-container.active").children(".arcu-submenu-header").addClass("active"),this.$element.find(".arcu-submenu-container.active").children(".arcu-submenu").addClass("active"))};d.prototype.showSubmenu=function(a){this.$element.find(".arcu-submenu-container").removeClass("active");
this.$element.find(".arcu-submenu-container .arcu-submenu").removeClass("active");this.$element.find(".messangers-list li").removeClass("active");this.$element.find(".messangers-list").addClass("arcu-submenu-active");this.$element.find(".arcu-submenu-header").removeClass("active");b(a.id).parent().children(".arcu-submenu-container").addClass("active").addClass("animated");b(a.id).parent().children(".arcu-submenu-container").children(".arcu-submenu").addClass("active");setTimeout(function(){},300);
b(a.id).parents(".arcu-submenu-container").addClass("active");b(a.id).parents("li").addClass("active");b(a.id).parent().addClass("active");b(a.id).parent().children(".arcu-submenu-container").children(".arcu-submenu-header").addClass("active")};d.prototype._backgroundStyle=function(){return"background-color: "+this.settings.theme};d.prototype._colorStyle=function(){return"color: "+this.settings.theme};b.fn.contactUs=function(a){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var f=
b(this),e=f.data("ar.contactus");e||(e=new d(this,"object"==typeof a&&a),f.data("ar.contactus",e));"string"==typeof a&&"_"!==a.charAt(0)&&e[a].apply(e,c)})};b.fn.contactUs.Constructor=d})(jQuery);
;function arCuGetCookie(cookieName){
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(cookieName + "=");
        if (c_start != -1) {
            c_start = c_start + cookieName.length + 1;
            c_end = document.cookie.indexOf(";", c_start);
            if (c_end == -1) {
                c_end = document.cookie.length;
            }
            return unescape(document.cookie.substring(c_start, c_end));
        }
    }
    return 0;
};
function arCuCreateCookie(name, value, days){
    var expires;
    if (days) {
        var date = new Date();
        date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
        expires = "; expires=" + date.toGMTString();
    } else {
        expires = "";
    }
    document.cookie = name + "=" + value + expires + "; path=/";
};
function arCuShowMessage(index){
    if (arCuPromptClosed){
        return false;
    }
    if (typeof arCuMessages[index] !== 'undefined'){
        jQuery('#arcontactus').contactUs('showPromptTyping');

        _arCuTimeOut = setTimeout(function(){
            if (arCuPromptClosed){
                return false;
            }
            jQuery('#arcontactus').contactUs('showPrompt', {
                content: arCuMessages[index]
            });
            index ++;
            _arCuTimeOut = setTimeout(function(){
                if (arCuPromptClosed){
                    return false;
                }
                arCuShowMessage(index);
            }, arCuMessageTime);
        }, arCuTypingTime);
    }else{
        if (arCuCloseLastMessage){
            jQuery('#arcontactus').contactUs('hidePrompt');
        }
        if (arCuLoop){
            arCuShowMessage(0);
        }
    }
};
function arCuShowMessages(){
    setTimeout(function(){
        clearTimeout(_arCuTimeOut);
        arCuShowMessage(0);
    }, arCuDelayFirst);
}
function arCuShowWelcomeMessage(index){
    if (typeof arWelcomeMessages[index] !== 'undefined'){
        jQuery('#arcontactus').contactUs('showWellcomeTyping');

        _arCuWelcomeTimeOut = setTimeout(function(){
            jQuery('#arcontactus').contactUs('showWellcomeMessage', {
                content: arWelcomeMessages[index]
            });
            index ++;
            _arCuWelcomeTimeOut = setTimeout(function(){
                arCuShowWelcomeMessage(index);
            }, arWelcomeMessageTime);
        }, arWelcomeTypingTime);
    }else{

    }
};
function arCuShowWellcomeMessages(){
    setTimeout(function(){
        clearTimeout(_arCuWelcomeTimeOut);
        arCuShowWelcomeMessage(0);
    }, arWelcomeDelayFirst);
}
window.addEventListener('load', function(){
    jQuery('#arcontactus-storefront-btn').click(function(e){
        e.preventDefault();
        setTimeout(function(){
            jQuery('#arcontactus').contactUs('openMenu');
        }, 200);
    });
    jQuery('body').on('click', '.arcu-open-menu', function(e){
        e.preventDefault();
        e.stopPropagation();
        jQuery('#arcontactus').contactUs('closeCallbackPopup');
        jQuery('#arcontactus').contactUs('openMenu');
        return false;
    });
    jQuery('body').on('click', '.arcu-toggle-menu', function(e){
        e.preventDefault();
        e.stopPropagation();
        jQuery('#arcontactus').contactUs('toggleMenu');
        return false;
    });
    jQuery('body').on('click', '.arcu-open-callback', function(e){
        e.preventDefault();
        e.stopPropagation();
        arCuPromptClosed = true;
        jQuery('#arcontactus').contactUs('hidePrompt');
        jQuery('#arcontactus').contactUs('hideForm');
        jQuery('#arcontactus').contactUs('closeMenu');
        jQuery('#arcontactus').contactUs('showForm', 'callback');
        return false;
    });
    jQuery('body').on('click', '.arcu-open-email', function(e){
        e.preventDefault();
        e.stopPropagation();
        arCuPromptClosed = true;
        jQuery('#arcontactus').contactUs('hidePrompt');
        jQuery('#arcontactus').contactUs('hideForm');
        jQuery('#arcontactus').contactUs('closeMenu');
        jQuery('#arcontactus').contactUs('showForm', 'email');
        return false;
    });
    jQuery('body').on('click', '.arcu-open-form', function(e){
        var formId = jQuery(this).data('form-id');
        e.preventDefault();
        e.stopPropagation();
        arCuPromptClosed = true;
        jQuery('#arcontactus').contactUs('hidePrompt');
        jQuery('#arcontactus').contactUs('hideForm');
        jQuery('#arcontactus').contactUs('closeMenu');
        jQuery('#arcontactus').contactUs('showForm', formId);
        return false;
    });
    jQuery('body').on('click', '.arcu-close-callback,.arcu-close-email,.arcu-close-form', function(e){
        e.preventDefault();
        e.stopPropagation();
        jQuery('#arcontactus').contactUs('hideForm');
        return false;
    });
});
;window.fomoAjaxUrl = 'https://hoanghaled.vn/wp-admin/admin-ajax.php?action=get_random_product';
;!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){var t,n=navigator.userAgent,a=/iphone/i.test(n),i=/chrome/i.test(n),r=/android/i.test(n);e.mask={definitions:{X:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},e.fn.extend({caret:function(e,t){var n;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof e?(t="number"==typeof t?t:e,this.each(function(){this.setSelectionRange?this.setSelectionRange(e,t):this.createTextRange&&((n=this.createTextRange()).collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select())})):(this[0].setSelectionRange?(e=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(n=document.selection.createRange(),e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length),{begin:e,end:t})},arCuUnmask:function(){return this.trigger("arCuUnmask")},arCuMask:function(n,o){var c,l,u,f,s,h,g;if(!n&&this.length>0){var m=e(this[0]).data(e.mask.dataName);return m?m():void 0}return o=e.extend({autoclear:e.mask.autoclear,placeholder:e.mask.placeholder,completed:null},o),c=e.mask.definitions,l=[],u=h=n.length,f=null,e.each(n.split(""),function(e,t){"?"==t?(h--,u=e):c[t]?(l.push(new RegExp(c[t])),null===f&&(f=l.length-1),u>e&&(s=l.length-1)):l.push(null)}),this.trigger("arCuUnmask").each(function(){function m(){if(o.completed){for(var e=f;s>=e;e++)if(l[e]&&R[e]===d(e))return;o.completed.call(j)}}function d(e){return o.placeholder.charAt(e<o.placeholder.length?e:0)}function p(e){for(;++e<h&&!l[e];);return e}function v(e,t){var n,a;if(!(0>e)){for(n=e,a=p(t);h>n;n++)if(l[n]){if(!(h>a&&l[n].test(R[a])))break;R[n]=R[a],R[a]=d(a),a=p(a)}y(),j.caret(Math.max(f,e))}}function b(){x(),j.val()!=A&&j.change()}function k(e,t){var n;for(n=e;t>n&&h>n;n++)l[n]&&(R[n]=d(n))}function y(){j.val(R.join(""))}function x(e){var t,n,a,i=j.val(),r=-1;for(t=0,a=0;h>t;t++)if(l[t]){for(R[t]=d(t);a++<i.length;)if(n=i.charAt(a-1),l[t].test(n)){R[t]=n,r=t;break}if(a>i.length){k(t+1,h);break}}else R[t]===i.charAt(a)&&a++,u>t&&(r=t);return e?y():u>r+1?o.autoclear||R.join("")===S?(j.val()&&j.val(""),k(0,h)):y():(y(),j.val(j.val().substring(0,r+1))),u?t:f}var j=e(this),R=e.map(n.split(""),function(e,t){return"?"!=e?c[e]?d(t):e:void 0}),S=R.join(""),A=j.val();j.data(e.mask.dataName,function(){return e.map(R,function(e,t){return l[t]&&e!=d(t)?e:null}).join("")}),j.one("arCuUnmask",function(){j.off(".mask").removeData(e.mask.dataName)}).on("focus.mask",function(){var e;j.prop("readonly")||(clearTimeout(t),A=j.val(),e=x(),t=setTimeout(function(){j.get(0)===document.activeElement&&(y(),e==n.replace("?","").length?j.caret(0,e):j.caret(e))},10))}).on("blur.mask",b).on("keydown.mask",function(e){if(!j.prop("readonly")){var t,n,i,r=e.which||e.keyCode;g=j.val(),8===r||46===r||a&&127===r?(n=(t=j.caret()).begin,(i=t.end)-n==0&&(n=46!==r?function(e){for(;--e>=0&&!l[e];);return e}(n):i=p(n-1),i=46===r?p(i):i),k(n,i),v(n,i-1),e.preventDefault()):13===r?b.call(this,e):27===r&&(j.val(A),j.caret(0,x()),e.preventDefault())}}).on("keypress.mask",function(t){if(!j.prop("readonly")){var n,a,i,o=t.which||t.keyCode,c=j.caret();t.ctrlKey||t.altKey||t.metaKey||32>o||!o||13===o||(c.end-c.begin!=0&&(k(c.begin,c.end),v(c.begin,c.end-1)),n=p(c.begin-1),h>n&&(a=String.fromCharCode(o),l[n].test(a))&&(function(e){var t,n,a,i;for(t=e,n=d(e);h>t;t++)if(l[t]){if(a=p(t),i=R[t],R[t]=n,!(h>a&&l[a].test(i)))break;n=i}}(n),R[n]=a,y(),i=p(n),r?setTimeout(function(){e.proxy(e.fn.caret,j,i)()},0):j.caret(i),c.begin<=s&&m()),t.preventDefault())}}).on("input.mask paste.mask",function(){j.prop("readonly")||setTimeout(function(){var e=x(!0);j.caret(e),m()},0)}),i&&r&&j.off("input.mask").on("input.mask",function(){var e=j.val(),t=j.caret();if(g&&g.length&&g.length>e.length){for(x(!0);t.begin>0&&!l[t.begin-1];)t.begin--;if(0===t.begin)for(;t.begin<f&&!l[t.begin];)t.begin++;j.caret(t.begin,t.begin)}else{for(x(!0);t.begin<h&&!l[t.begin];)t.begin++;j.caret(t.begin,t.begin)}m()}),x()})}})});
;var zaloWidgetInterval;var tawkToInterval;var tawkToHideInterval;var skypeWidgetInterval;var lcpWidgetInterval;var closePopupTimeout;var lzWidgetInterval;var paldeskInterval;var arcuOptions;var hideCustomerChatInterval;var _arCuTimeOut=null;var arCuPromptClosed=false;var _arCuWelcomeTimeOut=null;var arCuMenuOpenedOnce=false;var arcItems=[];window.addEventListener('load',function(){jQuery('#arcontactus').remove();var $arcuWidget=jQuery('<div>',{id:'arcontactus'});jQuery('body').append($arcuWidget);arCuClosedCookie=arCuGetCookie('arcu-closed');jQuery('#arcontactus').on('arcontactus.init',function(){jQuery('#arcontactus').addClass('arcuAnimated').addClass('flipInY');setTimeout(function(){jQuery('#arcontactus').removeClass('flipInY');},1000);if(jQuery.mask&&jQuery.mask.definitions){jQuery.mask.definitions['#']="[0-9]";}
jQuery('#arcu-form-callback form').append(arCUVars._wpnonce);jQuery('#arcu-form-email form').append(arCUVars._wpnonce);jQuery('#arcontactus').on('arcontactus.successSendFormData',function(event,data){});jQuery('#arcontactus').on('arcontactus.successSendFormData',function(event,data){});jQuery('#arcontactus').on('arcontactus.errorSendFormData',function(event,data){if(data.data&&data.data.message){alert(data.data.message);}});jQuery('#arcontactus').on('arcontactus.hideFrom',function(){clearTimeout(closePopupTimeout);});});jQuery('#arcontactus').on('arcontactus.closeMenu',function(){arCuCreateCookie('arcumenu-closed',1,1);});var arcItem={};arcItem.id='msg-item-1';arcItem.class='msg-item-facebook-messenger';arcItem.title="Messenger";arcItem.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 32C15.9 32-77.5 278 84.6 400.6V480l75.7-42c142.2 39.8 285.4-59.9 285.4-198.7C445.8 124.8 346.5 32 224 32zm23.4 278.1L190 250.5 79.6 311.6l121.1-128.5 57.4 59.6 110.4-61.1-121.1 128.5z"></path></svg>';arcItem.includeIconToSlider=true;arcItem.href='https://m.me/quangcaoledgiare';arcItem.color='#567AFF';arcItems.push(arcItem);var arcItem={};arcItem.id='msg-item-2';arcItem.class='msg-item-zalo';arcItem.title="Zalo";arcItem.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 460.1 436.6"><path fill="currentColor" class="st0" d="M82.6 380.9c-1.8-.8-3.1-1.7-1-3.5 1.3-1 2.7-1.9 4.1-2.8 13.1-8.5 25.4-17.8 33.5-31.5 6.8-11.4 5.7-18.1-2.8-26.5C69 269.2 48.2 212.5 58.6 145.5 64.5 107.7 81.8 75 107 46.6c15.2-17.2 33.3-31.1 53.1-42.7 1.2-.7 2.9-.9 3.1-2.7-.4-1-1.1-.7-1.7-.7-33.7 0-67.4-.7-101 .2C28.3 1.7.5 26.6.6 62.3c.2 104.3 0 208.6 0 313 0 32.4 24.7 59.5 57 60.7 27.3 1.1 54.6.2 82 .1 2 .1 4 .2 6 .2H290c36 0 72 .2 108 0 33.4 0 60.5-27 60.5-60.3v-.6-58.5c0-1.4.5-2.9-.4-4.4-1.8.1-2.5 1.6-3.5 2.6-19.4 19.5-42.3 35.2-67.4 46.3-61.5 27.1-124.1 29-187.6 7.2-5.5-2-11.5-2.2-17.2-.8-8.4 2.1-16.7 4.6-25 7.1-24.4 7.6-49.3 11-74.8 6zm72.5-168.5c1.7-2.2 2.6-3.5 3.6-4.8 13.1-16.6 26.2-33.2 39.3-49.9 3.8-4.8 7.6-9.7 10-15.5 2.8-6.6-.2-12.8-7-15.2-3-.9-6.2-1.3-9.4-1.1-17.8-.1-35.7-.1-53.5 0-2.5 0-5 .3-7.4.9-5.6 1.4-9 7.1-7.6 12.8 1 3.8 4 6.8 7.8 7.7 2.4.6 4.9.9 7.4.8 10.8.1 21.7 0 32.5.1 1.2 0 2.7-.8 3.6 1-.9 1.2-1.8 2.4-2.7 3.5-15.5 19.6-30.9 39.3-46.4 58.9-3.8 4.9-5.8 10.3-3 16.3s8.5 7.1 14.3 7.5c4.6.3 9.3.1 14 .1 16.2 0 32.3.1 48.5-.1 8.6-.1 13.2-5.3 12.3-13.3-.7-6.3-5-9.6-13-9.7-14.1-.1-28.2 0-43.3 0zm116-52.6c-12.5-10.9-26.3-11.6-39.8-3.6-16.4 9.6-22.4 25.3-20.4 43.5 1.9 17 9.3 30.9 27.1 36.6 11.1 3.6 21.4 2.3 30.5-5.1 2.4-1.9 3.1-1.5 4.8.6 3.3 4.2 9 5.8 14 3.9 5-1.5 8.3-6.1 8.3-11.3.1-20 .2-40 0-60-.1-8-7.6-13.1-15.4-11.5-4.3.9-6.7 3.8-9.1 6.9zm69.3 37.1c-.4 25 20.3 43.9 46.3 41.3 23.9-2.4 39.4-20.3 38.6-45.6-.8-25-19.4-42.1-44.9-41.3-23.9.7-40.8 19.9-40 45.6zm-8.8-19.9c0-15.7.1-31.3 0-47 0-8-5.1-13-12.7-12.9-7.4.1-12.3 5.1-12.4 12.8-.1 4.7 0 9.3 0 14v79.5c0 6.2 3.8 11.6 8.8 12.9 6.9 1.9 14-2.2 15.8-9.1.3-1.2.5-2.4.4-3.7.2-15.5.1-31 .1-46.5z"/></svg>';arcItem.includeIconToSlider=true;arcItem.href='https://zalo.me/0986774223';arcItem.color='#1EBEA5';arcItems.push(arcItem);var arcItem={};arcItem.id='msg-item-7';arcItem.class='msg-item-phone';arcItem.title="Tư vấn báo giá";arcItem.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"></path></svg>';arcItem.includeIconToSlider=true;arcItem.href='tel:0986774223';arcItem.color='#3EB891';arcItems.push(arcItem);arcuOptions={wordpressPluginVersion:'2.0.4',buttonIcon:'<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Canvas" transform="translate(-825 -308)"><g id="Vector"><use xlink:href="#path0_fill0123" transform="translate(825 308)" fill="currentColor"></use></g></g><defs><path id="path0_fill0123" d="M 19 4L 17 4L 17 13L 4 13L 4 15C 4 15.55 4.45 16 5 16L 16 16L 20 20L 20 5C 20 4.45 19.55 4 19 4ZM 15 10L 15 1C 15 0.45 14.55 0 14 0L 1 0C 0.45 0 0 0.45 0 1L 0 15L 4 11L 14 11C 14.55 11 15 10.55 15 10Z"></path></defs></svg>',layout:'default',drag:true,mode:'regular',buttonIconUrl:'https://hoanghaled.vn/wp-content/plugins/ar-contactus/res/img/msg.svg',showMenuHeader:false,menuHeaderText:"How would you like to contact us?",menuSubheaderText:"",showHeaderCloseBtn:false,headerCloseBtnBgColor:'#008749',headerCloseBtnColor:'#ffffff',itemsIconType:'rounded',align:'left',reCaptcha:false,reCaptchaKey:'',countdown:0,theme:'#008749',buttonText:"Tư vấn",buttonSize:'large',buttonIconSize:30,menuSize:'large',phonePlaceholder:'',callbackSubmitText:'',errorMessage:'',callProcessText:'',callSuccessText:'',callbackFormText:'',iconsAnimationSpeed:600,iconsAnimationPause:2000,items:arcItems,ajaxUrl:'https://hoanghaled.vn/wp-admin/admin-ajax.php',promptPosition:'top',popupAnimation:'fadeindown',style:'',itemsAnimation:'downtoup',forms:{callback:{header:{content:'Leave your phone number. We will call you back soon!',layout:'text',},icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"></path></svg>',success:'Callback request sent! We will contact you soon.',error:'Error sending callback request! Please try again!',action:'https://hoanghaled.vn/wp-admin/admin-ajax.php',buttons:[{name:'submit',label:'Submit',type:'submit',},],fields:{formId:{name:'formId',value:'callback',type:'hidden'},action:{name:'action',value:'arcontactus_request_callback',type:'hidden'},name:{name:'name',enabled:true,required:false,type:'text',label:'Your name',placeholder:'Enter your name',values:[],value:"",},phone:{name:'phone',enabled:true,required:true,type:'tel',label:'Your phone number',placeholder:'Enter your phone number',values:[],value:"",},gdpr:{name:'gdpr',enabled:true,required:true,type:'checkbox',label:'I accept GDPR rules',placeholder:'',values:[],value:"1",},}},email:{header:{content:'Write a email to us!',layout:'text',},icon:'<svg  xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h416c8.8 0 16 7.2 16 16v41.4c-21.9 18.5-53.2 44-150.6 121.3-16.9 13.4-50.2 45.7-73.4 45.3-23.2.4-56.6-31.9-73.4-45.3C85.2 197.4 53.9 171.9 32 153.4V112c0-8.8 7.2-16 16-16zm416 320H48c-8.8 0-16-7.2-16-16V195c22.8 18.7 58.8 47.6 130.7 104.7 20.5 16.4 56.7 52.5 93.3 52.3 36.4.3 72.3-35.5 93.3-52.3 71.9-57.1 107.9-86 130.7-104.7v205c0 8.8-7.2 16-16 16z"></path></svg>',success:'Email sent! We will contact you soon.',error:'Error sending email! Please try again!',action:'https://hoanghaled.vn/wp-admin/admin-ajax.php',buttons:[{name:'submit',label:'Submit',type:'submit',},],fields:{formId:{name:'formId',value:'email',type:'hidden'},action:{name:'action',value:'arcontactus_request_email',type:'hidden'},name:{name:'name',enabled:true,required:false,type:'text',label:'Your name',placeholder:'Enter your name',values:[],value:"",},email:{name:'email',enabled:true,required:true,type:'email',label:'Your email',placeholder:'Enter your email',values:[],value:"",},message:{name:'message',enabled:true,required:true,type:'textarea',label:'Your message',placeholder:'Enter your message',values:[],value:"",},gdpr:{name:'gdpr',enabled:true,required:true,type:'checkbox',label:'I accept GDPR rules',placeholder:'',values:[],value:"1",},}},}};jQuery('#arcontactus').contactUs(arcuOptions);});
;(function () {
			var c = document.body.className;
			c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
			document.body.className = c;
		})();
;jQuery(document).ready(function ($) {

    (function ($) {
        "use strict";
        $.fn.placeholderTypewriter = function (options) {
            // Plugin Settings
            var settings = $.extend({
                delay: 50,
                pause: 1000,
                text: []
            }, options);

            // Type given string in placeholder
            function typeString($target, index, cursorPosition, callback) {
                // Get text
                var text = settings.text[index];
                // Get placeholder, type next character
                var placeholder = $target.attr('placeholder');
                $target.attr('placeholder', placeholder + text[cursorPosition]);
                // Type next character
                if (cursorPosition < text.length - 1) {
                    setTimeout(function () {
                        typeString($target, index, cursorPosition + 1, callback);
                    }, settings.delay);
                    return true;
                }
                // Callback if animation is finished
                callback();
            }

            // Delete string in placeholder
            function deleteString($target, callback) {
                // Get placeholder
                var placeholder = $target.attr('placeholder');
                var length = placeholder.length;
                // Delete last character
                $target.attr('placeholder', placeholder.substr(0, length - 1));
                // Delete next character
                if (length > 1) {
                    setTimeout(function () {
                        deleteString($target, callback);
                    }, settings.delay);
                    return true;
                }
                // Callback if animation is finished
                callback();
            }

            // Loop typing animation
            function loopTyping($target, index) {
                // Clear Placeholder
                $target.attr('placeholder', '');
                // Type string
                typeString($target, index, 0, function () {
                    // Pause before deleting string
                    setTimeout(function () {
                        // Delete string
                        deleteString($target, function () {
                            // Start loop over
                            loopTyping($target, (index + 1) % settings.text.length);
                        });
                    }, settings.pause);
                });
            }

            // Run placeholderTypewriter on every given field
            return this.each(function () {
                loopTyping($(this), 0);
            });
        };
    })(jQuery);

    var placeholderText = [
        "Bạn tìm kiếm sản phẩm?",
        "Màn hình LED Full Color",
        "Màn hình LCD",
        "Bảng Led công nghiệp",
        "Hệ thống xếp hàng tự động"
    ];

    $('.header-main .search-field').placeholderTypewriter({ text: placeholderText });

    if ($('.single-product div#tab-description').length > 0) {
        let wrap = $('.single-product div#tab-description');
        let current_height = wrap.height();
        let your_height = 600;
        if (current_height > your_height) {
            wrap.addClass('fix_height');
            wrap.append(function () {
                return '<div class="sproduct_readmore sproduct_readmore_more"><a title="Xem thêm nội dung" href="javascript:void(0);">Xem thêm nội dung <i class="fas fa-angle-double-down"></i></a></div>';
            });
            wrap.append(function () {
                return '<div class="sproduct_readmore sproduct_readmore_less" style="display: none;"><a title="Thu gọn nội dung" href="javascript:void(0);">Thu gọn nội dung <i class="fas fa-angle-double-up"></i></a></div>';
            });
            $('body').on('click', '.sproduct_readmore_more', function () {
                wrap.removeClass('fix_height');
                $('body .sproduct_readmore_more').hide();
                $('body .sproduct_readmore_less').show();
            });
            $('body').on('click', '.sproduct_readmore_less', function () {
                wrap.addClass('fix_height');
                $('body .sproduct_readmore_less').hide();
                $('body .sproduct_readmore_more').show();
            });
        }
    }

    if ($('.term-description').length > 0) {
        let wrap = $('.term-description');
        let current_height = wrap.height();
        let your_height = 350;
        if (current_height > your_height) {
            wrap.addClass('fix_height');
            wrap.append(function () {
                return '<div class="sproduct_readmore sproduct_readmore_more"><a title="Xem thêm nội dung" href="javascript:void(0);">Xem thêm nội dung <i class="fas fa-angle-double-down"></i></a></div>';
            });
            wrap.append(function () {
                return '<div class="sproduct_readmore sproduct_readmore_less" style="display: none;"><a title="Thu gọn nội dung" href="javascript:void(0);">Thu gọn nội dung <i class="fas fa-angle-double-up"></i></a></div>';
            });
            $('body').on('click', '.sproduct_readmore_more', function () {
                wrap.removeClass('fix_height');
                $('body .sproduct_readmore_more').hide();
                $('body .sproduct_readmore_less').show();
            });
            $('body').on('click', '.sproduct_readmore_less', function () {
                wrap.addClass('fix_height');
                $('body .sproduct_readmore_less').hide();
                $('body .sproduct_readmore_more').show();
            });
        }
    }

});

document.addEventListener('DOMContentLoaded', function () {
    var hideTimeout;

    function showNotification(data) {
        var notification = document.getElementById('fomo-notification');
        var notificationImage = notification.querySelector('.fomo-noti-img img');
        var notificationContent = notification.querySelector('.fomo-noti-content');

        notificationImage.src = data.product_image;
        notificationImage.alt = data.product_name;
        notificationContent.innerHTML = "<p>HoangHaLED gợi ý sản phẩm:</p><a target='_blank' href='" + data.product_link + "'>" + data.product_name + "</a>";

        notification.classList.add('show');
        clearTimeout(hideTimeout);
        hideTimeout = setTimeout(function () {
            notification.classList.remove('show');
        }, 6000);
    }

    function fetchAndShowNotification() {
        var xhr = new XMLHttpRequest();
        xhr.open('GET', window.fomoAjaxUrl, true);
        xhr.onreadystatechange = function () {
            if (xhr.readyState === 4 && xhr.status === 200) {
                var response = JSON.parse(xhr.responseText);
                if (response.success) {
                    showNotification(response.data);
                }
            }
        };
        xhr.send();
    }

    var notification = document.getElementById('fomo-notification');
    notification.addEventListener('mouseover', function () {
        clearTimeout(hideTimeout);
    });

    notification.addEventListener('mouseout', function () {
        hideTimeout = setTimeout(function () {
            notification.classList.remove('show');
        }, 3000);
    });

    setInterval(function () {
        fetchAndShowNotification();
    }, 23000); // 3s hiển thị + 40s nghỉ = 43s

    // Hiển thị thông báo lần đầu sau khi tải trang 2 giây
    setTimeout(function () {
        fetchAndShowNotification();
    }, 9000);
});
;/* <![CDATA[ */
var tocplus = {"visibility_show":"Hi\u1ec7n","visibility_hide":"\u1ea8n","visibility_hide_by_default":"1","width":"Auto"};
/* ]]> */
;!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var o="1.6.0",i={},l={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var o=[],i=!1,l=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){var e=t(this);return this!==document&&this!==window?!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(e[l]()>0?o.push(this):(e[l](1),i=e[l]()>0,i&&o.push(this),e[l](0))):(o.push(document.scrollingElement),!1):void 0}),o.length||this.each(function(){"BODY"===this.nodeName&&(o=[this])}),"first"===e.el&&o.length>1&&(o=[o[0]]),o};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(o,i){if(o=o||{},"options"===o)return i?this.each(function(){var e=t(this),o=t.extend(e.data("ssOpts")||{},i);t(this).data("ssOpts",o)}):this.first().data("ssOpts");var l=t.extend({},t.fn.smoothScroll.defaults,o),s=function(o){var i=this,s=t(this),n=t.extend({},l,s.data("ssOpts")||{}),c=l.exclude,a=n.excludeWithin,r=0,h=0,u=!0,d={},p=t.smoothScroll.filterPath(location.pathname),f=t.smoothScroll.filterPath(i.pathname),m=location.hostname===i.hostname||!i.hostname,g=n.scrollTarget||f===p,v=e(i.hash);if(n.scrollTarget||m&&g&&v){for(;u&&r<c.length;)s.is(e(c[r++]))&&(u=!1);for(;u&&h<a.length;)s.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(n.preventDefault&&o.preventDefault(),t.extend(d,n,{scrollTarget:n.scrollTarget||v,link:i}),t.smoothScroll(d))};return null!==o.delegateSelector?this.undelegate(o.delegateSelector,"click.smoothscroll").delegate(o.delegateSelector,"click.smoothscroll",s):this.unbind("click.smoothscroll").bind("click.smoothscroll",s),this}}),t.smoothScroll=function(e,o){if("options"===e&&"object"==typeof o)return t.extend(i,o);var l,s,n,c,a,r=0,h="offset",u="scrollTop",d={},p={};"number"==typeof e?(l=t.extend({link:null},t.fn.smoothScroll.defaults,i),n=e):(l=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},i),l.scrollElement&&(h="position","static"===l.scrollElement.css("position")&&l.scrollElement.css("position","relative"))),u="left"===l.direction?"scrollLeft":u,l.scrollElement?(s=l.scrollElement,/^(?:HTML|BODY)$/.test(s[0].nodeName)||(r=s[u]())):s=t("html, body").firstScrollable(l.direction),l.beforeScroll.call(s,l),n="number"==typeof e?e:o||t(l.scrollTarget)[h]()&&t(l.scrollTarget)[h]()[l.direction]||0,d[u]=n+r+l.offset,c=l.speed,"auto"===c&&(a=Math.abs(d[u]-s[u]()),c=a/l.autoCoefficient),p={duration:c,easing:l.easing,complete:function(){l.afterScroll.call(l.link,l)}},l.step&&(p.step=l.step),s.length?s.stop().animate(d,p):l.afterScroll.call(l.link,l)},t.smoothScroll.version=o,t.smoothScroll.filterPath=function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=l}),jQuery.cookie=function(t,e,o){if(arguments.length>1&&"[object Object]"!==String(e)){if(o=jQuery.extend({},o),(null===e||void 0===e)&&(o.expires=-1),"number"==typeof o.expires){var i=o.expires,l=o.expires=new Date;l.setDate(l.getDate()+i)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}o=e||{};var s,n=o.raw?function(t){return t}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?n(s[1]):null},jQuery(document).ready(function(t){if("undefined"!=typeof tocplus){if(t.fn.shrinkTOCWidth=function(){t(this).css({width:"auto",display:"table"}),/MSIE 7\./.test(navigator.userAgent)&&t(this).css("width","")},1==tocplus.smooth_scroll){var e=hostname=pathname=qs=hash=null;t("body a").click(function(){if(hostname=t(this).prop("hostname"),pathname=t(this).prop("pathname"),qs=t(this).prop("search"),hash=t(this).prop("hash"),pathname.length>0&&"/"!=pathname.charAt(0)&&(pathname="/"+pathname),window.location.hostname==hostname&&window.location.pathname==pathname&&window.location.search==qs&&""!==hash){var o=hash.replace(/([ !"$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,"\\$1");t(o).length>0?e=hash:(anchor=hash,anchor=anchor.replace("#",""),e='a[name="'+anchor+'"]',0==t(e).length&&(e="")),offset="undefined"!=typeof tocplus.smooth_scroll_offset?-1*tocplus.smooth_scroll_offset:t("#wpadminbar").length>0&&t("#wpadminbar").is(":visible")?-30:0,e&&t.smoothScroll({scrollTarget:e,offset:offset})}})}if("undefined"!=typeof tocplus.visibility_show){var o="undefined"!=typeof tocplus.visibility_hide_by_default?!0:!1;if(t.cookie)var i=t.cookie("tocplus_hidetoc")?tocplus.visibility_show:tocplus.visibility_hide;else var i=tocplus.visibility_hide;o&&(i=i==tocplus.visibility_hide?tocplus.visibility_show:tocplus.visibility_hide),t("#toc_container p.toc_title").append(' <span class="toc_toggle"><span class="toc_brackets">[</span><a href="#">'+i+'</a><span class="toc_brackets">]</span></span>'),i==tocplus.visibility_show&&(t("ul.toc_list").hide(),t("#toc_container").addClass("contracted").shrinkTOCWidth()),t("span.toc_toggle a").click(function(e){switch(e.preventDefault(),t(this).html()){case t("<div/>").html(tocplus.visibility_hide).text():t(this).html(tocplus.visibility_show),t.cookie&&(o?t.cookie("tocplus_hidetoc",null,{path:"/"}):t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"})),t("ul.toc_list").hide("fast"),t("#toc_container").addClass("contracted").shrinkTOCWidth();break;case t("<div/>").html(tocplus.visibility_show).text():default:t(this).html(tocplus.visibility_hide),t.cookie&&(o?t.cookie("tocplus_hidetoc","1",{expires:30,path:"/"}):t.cookie("tocplus_hidetoc",null,{path:"/"})),t("#toc_container").css("width",tocplus.width).removeClass("contracted"),t("ul.toc_list").show("fast")}})}}});
;/* <![CDATA[ */
var woocommerce_params = {"ajax_url":"\/wp-admin\/admin-ajax.php","wc_ajax_url":"\/?wc-ajax=%%endpoint%%"};
/* ]]> */
;jQuery(function(o){o(".woocommerce-ordering").on("change","select.orderby",function(){o(this).closest("form").trigger("submit")}),o("input.qty:not(.product-quantity input.qty)").each(function(){var e=parseFloat(o(this).attr("min"));e>=0&&parseFloat(o(this).val())<e&&o(this).val(e)});var e="store_notice"+(o(".woocommerce-store-notice").data("noticeId")||"");"hidden"===Cookies.get(e)?o(".woocommerce-store-notice").hide():o(".woocommerce-store-notice").show(),o(".woocommerce-store-notice__dismiss-link").on("click",function(s){Cookies.set(e,"hidden",{path:"/"}),o(".woocommerce-store-notice").hide(),s.preventDefault()}),o(".woocommerce-input-wrapper span.description").length&&o(document.body).on("click",function(){o(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),o(".woocommerce-input-wrapper").on("click",function(o){o.stopPropagation()}),o(".woocommerce-input-wrapper :input").on("keydown",function(e){var s=o(this).parent().find("span.description");if(27===e.which&&s.length&&s.is(":visible"))return s.prop("aria-hidden",!0).slideUp(250),e.preventDefault(),!1}).on("click focus",function(){var e=o(this).parent(),s=e.find("span.description");e.addClass("currentTarget"),o(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),s.length&&s.is(":hidden")&&s.prop("aria-hidden",!1).slideDown(250),e.removeClass("currentTarget")}),o.scroll_to_notices=function(e){e.length&&o("html, body").animate({scrollTop:e.offset().top-100},1e3)},o('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),o(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),o(".password-input").append('<span class="show-password-input"></span>'),o(".show-password-input").on("click",function(){o(this).hasClass("display-password")?o(this).removeClass("display-password"):o(this).addClass("display-password"),o(this).hasClass("display-password")?o(this).siblings(['input[type="password"]']).prop("type","text"):o(this).siblings('input[type="text"]').prop("type","password")}),o("a.coming-soon-footer-banner-dismiss").on("click",function(e){var s=o(e.target);o.ajax({type:"post",url:s.data("rest-url"),data:{meta:{woocommerce_coming_soon_banner_dismissed:"yes"}},beforeSend:function(o){o.setRequestHeader("X-WP-Nonce",s.data("rest-nonce"))},complete:function(){o("#coming-soon-footer-banner").hide()}})})});
;!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 i(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(a)return a(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 i(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";var n=e("./init"),i={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=i},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),i=e("./helpers/utils"),a={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return a.aliases.main.type+"="+e.type+a.delimiter+a.aliases.main.source+"="+e.source+a.delimiter+a.aliases.main.medium+"="+e.medium+a.delimiter+a.aliases.main.campaign+"="+e.campaign+a.delimiter+a.aliases.main.content+"="+e.content+a.delimiter+a.aliases.main.term+"="+e.term+a.delimiter+a.aliases.main.id+"="+e.id},extra:function(e){return a.aliases.extra.fire_date+"="+i.setDate(new Date,e)+a.delimiter+a.aliases.extra.entrance_point+"="+document.location.href+a.delimiter+a.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return a.aliases.udata.visits+"="+e+a.delimiter+a.aliases.udata.ip+"="+t+a.delimiter+a.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return a.aliases.session.pages_seen+"="+e+a.delimiter+a.aliases.session.current_page+"="+document.location.href},promo:function(e){return a.aliases.promo+"="+i.setLeadingZeroToInt(i.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=a},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,i){var a,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),a="; expires="+o.toGMTString()}else a="";s=n&&!i?";domain=."+n:"",document.cookie=this.encodeData(e)+"="+this.encodeData(t)+a+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return this.decodeData(i.substring(t.length,i.length))}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var i in e)e.hasOwnProperty(i)&&t.push(e[i]);for(var a=0;a<t.length;a++){var s;r[this.unsbjs(t[a])]={},s=this.get(t[a])?this.get(t[a]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[a])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},i=14;i--;)n[t.key[i]]=r[i]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,i){r&&(n[t.q.name][r]=i)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var i=r[n].split("=");if("undefined"==typeof t[i[0]])t[i[0]]=i[1];else if("string"==typeof t[i[0]]){var a=[t[i[0]],i[1]];t[i[0]]=a}else t[i[0]].push(i[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),i=t||0===t?t:-r;return e.setHours(n+r+i),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),i=e("./terms"),a=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_=c.fetch(e),v=s.getParam(),x=_.domain.host,b=_.domain.isolate,k=_.lifetime;function w(e){switch(e){case i.traffic.utm:t=i.traffic.utm,r="undefined"!=typeof v.utm_source?v.utm_source:"undefined"!=typeof v.gclid?"google":"undefined"!=typeof v.yclid?"yandex":i.none,p="undefined"!=typeof v.utm_medium?v.utm_medium:"undefined"!=typeof v.gclid?"cpc":"undefined"!=typeof v.yclid?"cpc":i.none,f="undefined"!=typeof v.utm_campaign?v.utm_campaign:"undefined"!=typeof v[_.campaign_param]?v[_.campaign_param]:"undefined"!=typeof v.gclid?"google_cpc":"undefined"!=typeof v.yclid?"yandex_cpc":i.none,m="undefined"!=typeof v.utm_content?v.utm_content:"undefined"!=typeof v[_.content_param]?v[_.content_param]:i.none,l=v.utm_id||i.none,d="undefined"!=typeof v.utm_term?v.utm_term:"undefined"!=typeof v[_.term_param]?v[_.term_param]:function(){var e=document.referrer;if(v.utm_term)return v.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||i.none;break;case i.traffic.organic:t=i.traffic.organic,r=r||s.getHost(document.referrer),p=i.referer.organic,f=i.none,m=i.none,d=i.none,l=i.none;break;case i.traffic.referral:t=i.traffic.referral,r=r||s.getHost(document.referrer),p=p||i.referer.referral,f=i.none,m=s.parse(document.referrer).path,d=i.none,l=i.none;break;case i.traffic.typein:t=i.traffic.typein,r=_.typein_attributes.source,p=_.typein_attributes.medium,f=i.none,m=i.none,d=i.none,l=i.none;break;default:t=i.oops,r=i.oops,p=i.oops,f=i.oops,m=i.oops,d=i.oops,l=i.oops}var a={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l};return n.pack.main(a)}function q(e){var t=document.referrer;switch(e){case i.traffic.organic:return!!t&&I(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),i=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(i))return r="google",!0;if(!s.parse(e).query)return!1;for(var a=0;a<_.organics.length;a++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(_.organics[a].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(_.organics[a].param)+"=.*","i")))return r=_.organics[a].display||_.organics[a].host,!0;if(a+1===_.organics.length)return!1}}(t);case i.traffic.referral:return!!t&&I(t)&&function(e){if(!(_.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<_.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(_.referrals[t].host)+"$","i")))return r=_.referrals[t].display||_.referrals[t].host,p=_.referrals[t].medium||i.referer.referral,!0;if(t+1===_.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function I(e){if(_.domain){if(b)return s.getHost(e)!==s.getHost(x);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function j(){a.set(n.containers.current_extra,n.pack.extra(_.timezone_offset),k,x,b),a.get(n.containers.first_extra)||a.set(n.containers.first_extra,n.pack.extra(_.timezone_offset),k,x,b)}return u.go(k,x,b),a.set(n.containers.current,function(){var e;if("undefined"!=typeof v.utm_source||"undefined"!=typeof v.utm_medium||"undefined"!=typeof v.utm_campaign||"undefined"!=typeof v.utm_content||"undefined"!=typeof v.utm_term||"undefined"!=typeof v.utm_id||"undefined"!=typeof v.gclid||"undefined"!=typeof v.yclid||"undefined"!=typeof v[_.campaign_param]||"undefined"!=typeof v[_.term_param]||"undefined"!=typeof v[_.content_param])j(),e=w(i.traffic.utm);else if(q(i.traffic.organic))j(),e=w(i.traffic.organic);else if(!a.get(n.containers.session)&&q(i.traffic.referral))j(),e=w(i.traffic.referral);else{if(a.get(n.containers.first)||a.get(n.containers.current))return a.get(n.containers.current);j(),e=w(i.traffic.typein)}return e}(),k,x,b),a.get(n.containers.first)||a.set(n.containers.first,a.get(n.containers.current),k,x,b),a.get(n.containers.udata)?(g=parseInt(a.parse(n.containers.udata)[a.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,g=a.get(n.containers.session)?g:g+1,h=n.pack.user(g,_.user_ip)):(g=1,h=n.pack.user(g,_.user_ip)),a.set(n.containers.udata,h,k,x,b),a.get(n.containers.session)?(y=parseInt(a.parse(n.containers.session)[a.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,y+=1):y=1,a.set(n.containers.session,n.pack.session(y),_.session_length,x,b),_.promocode&&!a.get(n.containers.promocode)&&a.set(n.containers.promocode,n.pack.promo(_.promocode),k,x,b),a.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),i=e("./helpers/cookies");t.exports={go:function(e,t,r){var a,s=this.migrations,o={l:e,d:t,i:r};if(i.get(n.containers.first)||i.get(n.service.migrations)){if(!i.get(n.service.migrations))for(a=0;a<s.length;a++)s[a].go(s[a].id,o)}else{var c=[];for(a=0;a<s.length;a++)c.push(s[a].id);var u="";for(a=0;a<c.length;a++)u+=c[a]+"=1",a<c.length-1&&(u+=n.delimiter);i.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",a=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(i.get(o[u])){var p=i.get(o[u]).replace(/(\|)?\|(\|)?/g,s);i.destroy(o[u],t.d,t.i),i.destroy(o[u],t.d,!t.i),i.set(o[u],p,t.l,t.d,t.i)}i.get(n.containers.session)&&i.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),i.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){i.set(n.service.migrations,a,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),i=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:i.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var a=0;a<t.referrals.length;a++)t.referrals[a].host&&r.referrals.push(t.referrals[a]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
;/* <![CDATA[ */
var wc_order_attribution = {"params":{"lifetime":1.0e-5,"session":30,"ajaxurl":"https:\/\/hoanghaled.vn\/wp-admin\/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};
/* ]]> */
;!function(e){"use strict";const t=e.params,n=(document.querySelector.bind(document),(e,t)=>t.split(".").reduce((e,t)=>e&&e[t],e)),s=()=>null,i=e=>null===e||e===undefined?"":e,o="wc/store/checkout";function a(){const i=t.allowTracking?n:s,o=Object.entries(e.fields).map(([e,t])=>[e,i(sbjs.get,t)]);return Object.fromEntries(o)}function c(e){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",e,!0)}function r(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),c(a())},o)}}e.setOrderTracking=function(e){if(t.allowTracking=e,e){if("undefined"==typeof sbjs)return;sbjs.init({lifetime:Number(t.lifetime),session_length:Number(t.session),timezone_offset:"0"})}else!function(){const e=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(t=>{document.cookie=`${t}=; path=/; max-age=-999; domain=.${e};`})}();const n=a();!function(e){for(const t of document.querySelectorAll("wc-order-attribution-inputs"))t.values=e}(n),c(n)},e.setOrderTracking(t.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",r):r(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(e.fields),this.hasOwnProperty("_values")){let e=this.values;delete this.values,this.values=e||{}}}connectedCallback(){this.innerHTML="";const e=new DocumentFragment;for(const n of this._fieldNames){const s=document.createElement("input");s.type="hidden",s.name=`${t.prefix}${n}`,s.value=i(this.values&&this.values[n]||""),e.appendChild(s)}this.appendChild(e)}set values(e){if(this._values=e,this.isConnected)for(const e of this._fieldNames){const n=this.querySelector(`input[name="${t.prefix}${e}"]`);n?n.value=i(this.values[e]):console.warn(`Field "${e}" not found. Most likely, the '<wc-order-attribution-inputs>' element was manipulated.`)}}get values(){return this._values}})}(window.wc_order_attribution);
;/*! 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<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
 * jQuery UI Position 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).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.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(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?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;e.collisionHeight>o?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
 * jQuery UI Scroll Parent 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
 * jQuery UI Tabbable 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,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
 * jQuery UI Unique ID 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
 * jQuery UI Widget 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",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<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});
;/*!
 * jQuery UI Mouse 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,i,s;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),i=1===(this._mouseDownEvent=e).which,s=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
;/*!
 * jQuery UI Draggable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../safe-active-element","../safe-blur","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(P){"use strict";return P.widget("ui.draggable",P.ui.mouse,{version:"1.13.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<P(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=P(this);return P("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=P.ui.safeActiveElement(this.document[0]);P(t.target).closest(e).length||P.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),P.ui.ddmanager&&(P.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===P(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),P.ui.ddmanager&&!e.dropBehaviour&&P.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),P.ui.ddmanager&&P.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new P.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",P.ui.ddmanager&&P.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,s=!1;return P.ui.ddmanager&&!this.options.dropBehaviour&&(s=P.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,s)?P(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),P.ui.ddmanager&&P.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),P.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new P.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!P(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,s="function"==typeof e.helper,t=s?P(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),s&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&P.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e=this.options,s=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[P(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,P(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,P(window).scrollLeft()+P(window).width()-this.helperProportions.width-this.margins.left,P(window).scrollTop()+(P(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,P(s).width()-this.helperProportions.width-this.margins.left,(P(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(s=P(e.containment))[0])&&(t=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var s,i=this.options,o=this._isRootNode(this.scrollParent[0]),n=t.pageX,r=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(r=e&&(this.containment&&(s=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<s[0]&&(n=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(r=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(n=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3])&&(r=s[3]+this.offset.click.top),i.grid&&(e=i.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY,r=!s||e-this.offset.click.top>=s[1]||e-this.offset.click.top>s[3]?e:e-this.offset.click.top>=s[1]?e-i.grid[1]:e+i.grid[1],t=i.grid[0]?this.originalPageX+Math.round((n-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX,n=!s||t-this.offset.click.left>=s[0]||t-this.offset.click.left>s[2]?t:t-this.offset.click.left>=s[0]?t-i.grid[0]:t+i.grid[0]),"y"===i.axis&&(n=this.originalPageX),"x"===i.axis)?this.originalPageY:r)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,s){return s=s||this._uiHash(),P.ui.plugin.call(this,t,[e,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),P.Widget.prototype._trigger.call(this,t,e,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),P.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,s){var i=P.extend({},t,{item:s.element});s.sortables=[],P(s.options.connectToSortable).each(function(){var t=P(this).sortable("instance");t&&!t.options.disabled&&(s.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,i))})},stop:function(e,t,s){var i=P.extend({},t,{item:s.element});s.cancelHelperRemoval=!1,P.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))})},drag:function(s,i,o){P.each(o.sortables,function(){var t=!1,e=this;e.positionAbs=o.positionAbs,e.helperProportions=o.helperProportions,e.offset.click=o.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,P.each(o.sortables,function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&P.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,o._parent=i.helper.parent(),e.currentItem=i.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return i.helper[0]},s.target=e.currentItem[0],e._mouseCapture(s,!0),e._mouseStart(s,!0,!0),e.offset.click.top=o.offset.click.top,e.offset.click.left=o.offset.click.left,e.offset.parent.left-=o.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=o.offset.parent.top-e.offset.parent.top,o._trigger("toSortable",s),o.dropped=e.element,P.each(o.sortables,function(){this.refreshPositions()}),o.currentItem=o.element,e.fromOutside=o),e.currentItem&&(e._mouseDrag(s),i.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",s,e._uiHash(e)),e._mouseStop(s,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),i.helper.appendTo(o._parent),o._refreshOffsets(s),i.position=o._generatePosition(s,!0),o._trigger("fromSortable",s),o.dropped=!1,P.each(o.sortables,function(){this.refreshPositions()}))})}}),P.ui.plugin.add("draggable","cursor",{start:function(t,e,s){var i=P("body"),s=s.options;i.css("cursor")&&(s._cursor=i.css("cursor")),i.css("cursor",s.cursor)},stop:function(t,e,s){s=s.options;s._cursor&&P("body").css("cursor",s._cursor)}}),P.ui.plugin.add("draggable","opacity",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("opacity")&&(s._opacity=e.css("opacity")),e.css("opacity",s.opacity)},stop:function(t,e,s){s=s.options;s._opacity&&P(e.helper).css("opacity",s._opacity)}}),P.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(t,e,s){var i=s.options,o=!1,n=s.scrollParentNotHidden[0],r=s.document[0];n!==r&&"HTML"!==n.tagName?(i.axis&&"x"===i.axis||(s.overflowOffset.top+n.offsetHeight-t.pageY<i.scrollSensitivity?n.scrollTop=o=n.scrollTop+i.scrollSpeed:t.pageY-s.overflowOffset.top<i.scrollSensitivity&&(n.scrollTop=o=n.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(s.overflowOffset.left+n.offsetWidth-t.pageX<i.scrollSensitivity?n.scrollLeft=o=n.scrollLeft+i.scrollSpeed:t.pageX-s.overflowOffset.left<i.scrollSensitivity&&(n.scrollLeft=o=n.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(t.pageY-P(r).scrollTop()<i.scrollSensitivity?o=P(r).scrollTop(P(r).scrollTop()-i.scrollSpeed):P(window).height()-(t.pageY-P(r).scrollTop())<i.scrollSensitivity&&(o=P(r).scrollTop(P(r).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(t.pageX-P(r).scrollLeft()<i.scrollSensitivity?o=P(r).scrollLeft(P(r).scrollLeft()-i.scrollSpeed):P(window).width()-(t.pageX-P(r).scrollLeft())<i.scrollSensitivity&&(o=P(r).scrollLeft(P(r).scrollLeft()+i.scrollSpeed)))),!1!==o&&P.ui.ddmanager&&!i.dropBehaviour&&P.ui.ddmanager.prepareOffsets(s,t)}}),P.ui.plugin.add("draggable","snap",{start:function(t,e,s){var i=s.options;s.snapElements=[],P(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var t=P(this),e=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,s){for(var i,o,n,r,l,a,h,p,c,f=s.options,d=f.snapTolerance,g=e.offset.left,u=g+s.helperProportions.width,m=e.offset.top,v=m+s.helperProportions.height,_=s.snapElements.length-1;0<=_;_--)a=(l=s.snapElements[_].left-s.margins.left)+s.snapElements[_].width,p=(h=s.snapElements[_].top-s.margins.top)+s.snapElements[_].height,u<l-d||a+d<g||v<h-d||p+d<m||!P.contains(s.snapElements[_].item.ownerDocument,s.snapElements[_].item)?(s.snapElements[_].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=!1):("inner"!==f.snapMode&&(i=Math.abs(h-v)<=d,o=Math.abs(p-m)<=d,n=Math.abs(l-u)<=d,r=Math.abs(a-g)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h-s.helperProportions.height,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a}).left),c=i||o||n||r,"outer"!==f.snapMode&&(i=Math.abs(h-m)<=d,o=Math.abs(p-v)<=d,n=Math.abs(l-g)<=d,r=Math.abs(a-u)<=d,i&&(e.position.top=s._convertPositionTo("relative",{top:h,left:0}).top),o&&(e.position.top=s._convertPositionTo("relative",{top:p-s.helperProportions.height,left:0}).top),n&&(e.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r)&&(e.position.left=s._convertPositionTo("relative",{top:0,left:a-s.helperProportions.width}).left),!s.snapElements[_].snapping&&(i||o||n||r||c)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,P.extend(s._uiHash(),{snapItem:s.snapElements[_].item})),s.snapElements[_].snapping=i||o||n||r||c)}}),P.ui.plugin.add("draggable","stack",{start:function(t,e,s){var i,s=s.options,s=P.makeArray(P(s.stack)).sort(function(t,e){return(parseInt(P(t).css("zIndex"),10)||0)-(parseInt(P(e).css("zIndex"),10)||0)});s.length&&(i=parseInt(P(s[0]).css("zIndex"),10)||0,P(s).each(function(t){P(this).css("zIndex",i+t)}),this.css("zIndex",i+s.length))}}),P.ui.plugin.add("draggable","zIndex",{start:function(t,e,s){e=P(e.helper),s=s.options;e.css("zIndex")&&(s._zIndex=e.css("zIndex")),e.css("zIndex",s.zIndex)},stop:function(t,e,s){s=s.options;s._zIndex&&P(e.helper).css("zIndex",s._zIndex)}}),P.ui.draggable});
;// modified to work without type="module"

;(function () {
  /*! instant.page v1.2.2 - (C) 2019 Alexandre Dieulot - https://instant.page/license */

  var urlToPreload
  var mouseoverTimer
  var lastTouchTimestamp

  var prefetcher = document.createElement('link')
  var isSupported = prefetcher.relList && prefetcher.relList.supports && prefetcher.relList.supports('prefetch')
  var isDataSaverEnabled = navigator.connection && navigator.connection.saveData
  var allowQueryString = 'instantAllowQueryString' in document.body.dataset
  var allowExternalLinks = 'instantAllowExternalLinks' in document.body.dataset

  if (isSupported && !isDataSaverEnabled) {
    prefetcher.rel = 'prefetch'
    document.head.appendChild(prefetcher)

    var eventListenersOptions = {
      capture: true,
      passive: true
    }
    document.addEventListener('touchstart', touchstartListener, eventListenersOptions)
    document.addEventListener('mouseover', mouseoverListener, eventListenersOptions)
  }

  function touchstartListener (event) {
    /* Chrome on Android calls mouseover before touchcancel so `lastTouchTimestamp`
     * must be assigned on touchstart to be measured on mouseover. */
    lastTouchTimestamp = performance.now()

    var linkElement = event.target.closest('a')

    if (!isPreloadable(linkElement)) {
      return
    }

    linkElement.addEventListener('touchcancel', touchendAndTouchcancelListener, { passive: true })
    linkElement.addEventListener('touchend', touchendAndTouchcancelListener, { passive: true })

    urlToPreload = linkElement.href
    preload(linkElement.href)
  }

  function touchendAndTouchcancelListener () {
    urlToPreload = undefined
    stopPreloading()
  }

  function mouseoverListener (event) {
    if (performance.now() - lastTouchTimestamp < 1100) {
      return
    }

    var linkElement = event.target.closest('a')

    if (!isPreloadable(linkElement)) {
      return
    }

    linkElement.addEventListener('mouseout', mouseoutListener, { passive: true })

    urlToPreload = linkElement.href

    mouseoverTimer = setTimeout(function () {
      preload(linkElement.href)
      mouseoverTimer = undefined
    }, 65)
  }

  function mouseoutListener (event) {
    if (event.relatedTarget && event.target.closest('a') === event.relatedTarget.closest('a')) {
      return
    }

    if (mouseoverTimer) {
      clearTimeout(mouseoverTimer)
      mouseoverTimer = undefined
    } else {
      urlToPreload = undefined
      stopPreloading()
    }
  }

  function isPreloadable (linkElement) {
    if (!linkElement || !linkElement.href) {
      return
    }

    if (urlToPreload === linkElement.href) {
      return
    }

    var preloadLocation = new URL(linkElement.href)

    if (!allowExternalLinks && preloadLocation.origin !== location.origin && !('instant' in linkElement.dataset)) {
      return
    }

    if (!['http:', 'https:'].includes(preloadLocation.protocol)) {
      return
    }

    if (preloadLocation.protocol === 'http:' && location.protocol === 'https:') {
      return
    }

    if (!allowQueryString && preloadLocation.search && !('instant' in linkElement.dataset)) {
      return
    }

    if (preloadLocation.hash && preloadLocation.pathname + preloadLocation.search === location.pathname + location.search) {
      return
    }

    if ('noInstant' in linkElement.dataset) {
      return
    }

    return true
  }

  function preload (url) {
    prefetcher.href = url
  }

  function stopPreloading () {
    prefetcher.removeAttribute('href')
  }
})()
;/**
 *  Ajax Autocomplete for jQuery, version 1.4.11
 *  (c) 2017 Tomas Kirda
 *
 *  Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
 *  For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
 */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"function"==typeof require?t(require("jquery")):t(jQuery)}(function(t){"use strict";var e={escapeRegExChars:function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}},s=27,i=9,n=13,o=38,a=39,u=40,l=t.noop;function r(e,s){this.element=e,this.el=t(e),this.suggestions=[],this.badQueries=[],this.selectedIndex=-1,this.currentValue=this.element.value,this.timeoutId=null,this.cachedResponse={},this.onChangeTimeout=null,this.onChange=null,this.isLocal=!1,this.suggestionsContainer=null,this.noSuggestionsContainer=null,this.options=t.extend(!0,{},r.defaults,s),this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},this.hint=null,this.hintValue="",this.selection=null,this.initialize(),this.setOptions(s)}r.utils=e,t.Autocomplete=r,r.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,onHint:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(t,s){if(!s)return t.value;var i="("+e.escapeRegExChars(s)+")";return t.value.replace(new RegExp(i,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},formatGroup:function(t,e){return'<div class="autocomplete-group">'+e+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:l,onSearchComplete:l,onSearchError:l,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,s){return-1!==t.value.toLowerCase().indexOf(s)},paramName:"query",transformResult:function(e){return"string"==typeof e?t.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},r.prototype={initialize:function(){var e,s=this,i="."+s.classes.suggestion,n=s.classes.selected,o=s.options;s.element.setAttribute("autocomplete","off"),s.noSuggestionsContainer=t('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),s.suggestionsContainer=r.utils.createNode(o.containerClass),(e=t(s.suggestionsContainer)).appendTo(o.appendTo||"body"),"auto"!==o.width&&e.css("width",o.width),e.on("mouseover.autocomplete",i,function(){s.activate(t(this).data("index"))}),e.on("mouseout.autocomplete",function(){s.selectedIndex=-1,e.children("."+n).removeClass(n)}),e.on("click.autocomplete",i,function(){s.select(t(this).data("index"))}),e.on("click.autocomplete",function(){clearTimeout(s.blurTimeoutId)}),s.fixPositionCapture=function(){s.visible&&s.fixPosition()},t(window).on("resize.autocomplete",s.fixPositionCapture),s.el.on("keydown.autocomplete",function(t){s.onKeyPress(t)}),s.el.on("keyup.autocomplete",function(t){s.onKeyUp(t)}),s.el.on("blur.autocomplete",function(){s.onBlur()}),s.el.on("focus.autocomplete",function(){s.onFocus()}),s.el.on("change.autocomplete",function(t){s.onKeyUp(t)}),s.el.on("input.autocomplete",function(t){s.onKeyUp(t)})},onFocus:function(){this.disabled||(this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange())},onBlur:function(){var e=this,s=e.options,i=e.el.val(),n=e.getQuery(i);e.blurTimeoutId=setTimeout(function(){e.hide(),e.selection&&e.currentValue!==n&&(s.onInvalidateSelection||t.noop).call(e.element)},200)},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var s=t.extend({},this.options,e);this.isLocal=Array.isArray(s.lookup),this.isLocal&&(s.lookup=this.verifySuggestionsFormat(s.lookup)),s.orientation=this.validateOrientation(s.orientation,"bottom"),t(this.suggestionsContainer).css({"max-height":s.maxHeight+"px",width:s.width+"px","z-index":s.zIndex}),this.options=s},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearTimeout(this.onChangeTimeout),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=t(this.suggestionsContainer),s=e.parent().get(0);if(s===document.body||this.options.forceFixPosition){var i=this.options.orientation,n=e.outerHeight(),o=this.el.outerHeight(),a=this.el.offset(),u={top:a.top,left:a.left};if("auto"===i){var l=t(window).height(),r=t(window).scrollTop(),h=-r+a.top-n,c=r+l-(a.top+o+n);i=Math.max(h,c)===h?"top":"bottom"}if(u.top+="top"===i?-n:o,s!==document.body){var g,d=e.css("opacity");this.visible||e.css("opacity",0).show(),g=e.offsetParent().offset(),u.top-=g.top,u.top+=s.scrollTop,u.left-=g.left,this.visible||e.css("opacity",d).hide()}"auto"===this.options.width&&(u.width=this.el.outerWidth()+"px"),e.css(u)}},isCursorAtEnd:function(){var t,e=this.el.val().length,s=this.element.selectionStart;return"number"==typeof s?s===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(t){if(this.disabled||this.visible||t.which!==u||!this.currentValue){if(!this.disabled&&this.visible){switch(t.which){case s:this.el.val(this.currentValue),this.hide();break;case a:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case i:if(this.hint&&this.options.onHint)return void this.selectHint();if(-1===this.selectedIndex)return void this.hide();if(this.select(this.selectedIndex),!1===this.options.tabDisabled)return;break;case n:if(-1===this.selectedIndex)return void this.hide();this.select(this.selectedIndex);break;case o:this.moveUp();break;case u:this.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}}else this.suggest()},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case o:case u:return}clearTimeout(e.onChangeTimeout),e.currentValue!==e.el.val()&&(e.findBestHint(),e.options.deferRequestBy>0?e.onChangeTimeout=setTimeout(function(){e.onValueChange()},e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var e=this.options,s=this.el.val(),i=this.getQuery(s);this.selection&&this.currentValue!==i&&(this.selection=null,(e.onInvalidateSelection||t.noop).call(this.element)),clearTimeout(this.onChangeTimeout),this.currentValue=s,this.selectedIndex=-1,e.triggerSelectOnValidInput&&this.isExactMatch(i)?this.select(0):i.length<e.minChars?this.hide():this.getSuggestions(i)}},isExactMatch:function(t){var e=this.suggestions;return 1===e.length&&e[0].value.toLowerCase()===t.toLowerCase()},getQuery:function(e){var s,i=this.options.delimiter;return i?(s=e.split(i),t.trim(s[s.length-1])):e},getSuggestionsLocal:function(e){var s,i=this.options,n=e.toLowerCase(),o=i.lookupFilter,a=parseInt(i.lookupLimit,10);return s={suggestions:t.grep(i.lookup,function(t){return o(t,e,n)})},a&&s.suggestions.length>a&&(s.suggestions=s.suggestions.slice(0,a)),s},getSuggestions:function(e){var s,i,n,o,a=this,u=a.options,l=u.serviceUrl;u.params[u.paramName]=e,!1!==u.onSearchStart.call(a.element,u.params)&&(i=u.ignoreParams?null:u.params,t.isFunction(u.lookup)?u.lookup(e,function(t){a.suggestions=t.suggestions,a.suggest(),u.onSearchComplete.call(a.element,e,t.suggestions)}):(a.isLocal?s=a.getSuggestionsLocal(e):(t.isFunction(l)&&(l=l.call(a.element,e)),n=l+"?"+t.param(i||{}),s=a.cachedResponse[n]),s&&Array.isArray(s.suggestions)?(a.suggestions=s.suggestions,a.suggest(),u.onSearchComplete.call(a.element,e,s.suggestions)):a.isBadQuery(e)?u.onSearchComplete.call(a.element,e,[]):(a.abortAjax(),o={url:l,data:i,type:u.type,dataType:u.dataType},t.extend(o,u.ajaxSettings),a.currentRequest=t.ajax(o).done(function(t){var s;a.currentRequest=null,s=u.transformResult(t,e),a.processResponse(s,e,n),u.onSearchComplete.call(a.element,e,s.suggestions)}).fail(function(t,s,i){u.onSearchError.call(a.element,e,t,s,i)}))))},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,s=e.length;s--;)if(0===t.indexOf(e[s]))return!0;return!1},hide:function(){var e=t(this.suggestionsContainer);t.isFunction(this.options.onHide)&&this.visible&&this.options.onHide.call(this.element,e),this.visible=!1,this.selectedIndex=-1,clearTimeout(this.onChangeTimeout),t(this.suggestionsContainer).hide(),this.onHint(null)},suggest:function(){if(this.suggestions.length){var e,s=this.options,i=s.groupBy,n=s.formatResult,o=this.getQuery(this.currentValue),a=this.classes.suggestion,u=this.classes.selected,l=t(this.suggestionsContainer),r=t(this.noSuggestionsContainer),h=s.beforeRender,c="";s.triggerSelectOnValidInput&&this.isExactMatch(o)?this.select(0):(t.each(this.suggestions,function(t,u){i&&(c+=function(t,n){var o=t.data[i];return e===o?"":(e=o,s.formatGroup(t,e))}(u,0)),c+='<div class="'+a+'" data-index="'+t+'">'+n(u,o,t)+"</div>"}),this.adjustContainerWidth(),r.detach(),l.html(c),t.isFunction(h)&&h.call(this.element,l,this.suggestions),this.fixPosition(),l.show(),s.autoSelectFirst&&(this.selectedIndex=0,l.scrollTop(0),l.children("."+a).first().addClass(u)),this.visible=!0,this.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=this.options.beforeRender,s=t(this.suggestionsContainer),i=t(this.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),s.empty(),s.append(i),t.isFunction(e)&&e.call(this.element,s,this.suggestions),this.fixPosition(),s.show(),this.visible=!0},adjustContainerWidth:function(){var e,s=this.options,i=t(this.suggestionsContainer);"auto"===s.width?(e=this.el.outerWidth(),i.css("width",e>0?e:300)):"flex"===s.width&&i.css("width","")},findBestHint:function(){var e=this.el.val().toLowerCase(),s=null;e&&(t.each(this.suggestions,function(t,i){var n=0===i.value.toLowerCase().indexOf(e);return n&&(s=i),!n}),this.onHint(s))},onHint:function(e){var s=this.options.onHint,i="";e&&(i=this.currentValue+e.value.substr(this.currentValue.length)),this.hintValue!==i&&(this.hintValue=i,this.hint=e,t.isFunction(s)&&s.call(this.element,i))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?t.map(e,function(t){return{value:t,data:null}}):e},validateOrientation:function(e,s){return e=t.trim(e||"").toLowerCase(),-1===t.inArray(e,["auto","bottom","top"])&&(e=s),e},processResponse:function(t,e,s){var i=this.options;t.suggestions=this.verifySuggestionsFormat(t.suggestions),i.noCache||(this.cachedResponse[s]=t,i.preventBadQueries&&!t.suggestions.length&&this.badQueries.push(e)),e===this.getQuery(this.currentValue)&&(this.suggestions=t.suggestions,this.suggest())},activate:function(e){var s,i=this.classes.selected,n=t(this.suggestionsContainer),o=n.find("."+this.classes.suggestion);return n.find("."+i).removeClass(i),this.selectedIndex=e,-1!==this.selectedIndex&&o.length>this.selectedIndex?(s=o.get(this.selectedIndex),t(s).addClass(i),s):null},selectHint:function(){var e=t.inArray(this.hint,this.suggestions);this.select(e)},select:function(t){this.hide(),this.onSelect(t)},moveUp:function(){if(-1!==this.selectedIndex)return 0===this.selectedIndex?(t(this.suggestionsContainer).children("."+this.classes.suggestion).first().removeClass(this.classes.selected),this.selectedIndex=-1,this.ignoreValueChange=!1,this.el.val(this.currentValue),void this.findBestHint()):void this.adjustScroll(this.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var s=this.activate(e);if(s){var i,n,o,a=t(s).outerHeight();i=s.offsetTop,o=(n=t(this.suggestionsContainer).scrollTop())+this.options.maxHeight-a,i<n?t(this.suggestionsContainer).scrollTop(i):i>o&&t(this.suggestionsContainer).scrollTop(i-this.options.maxHeight+a),this.options.preserveInput||(this.ignoreValueChange=!0,this.el.val(this.getValue(this.suggestions[e].value))),this.onHint(null)}},onSelect:function(e){var s=this.options.onSelect,i=this.suggestions[e];this.currentValue=this.getValue(i.value),this.currentValue===this.el.val()||this.options.preserveInput||this.el.val(this.currentValue),this.onHint(null),this.suggestions=[],this.selection=i,t.isFunction(s)&&s.call(this.element,i)},getValue:function(t){var e,s,i=this.options.delimiter;return i?1===(s=(e=this.currentValue).split(i)).length?t:e.substr(0,e.length-s[s.length-1].length)+t:t},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),t(window).off("resize.autocomplete",this.fixPositionCapture),t(this.suggestionsContainer).remove()}},t.fn.devbridgeAutocomplete=function(e,s){return arguments.length?this.each(function(){var i=t(this),n=i.data("autocomplete");"string"==typeof e?n&&"function"==typeof n[e]&&n[e](s):(n&&n.dispose&&n.dispose(),n=new r(this,e),i.data("autocomplete",n))}):this.first().data("autocomplete")},t.fn.autocomplete||(t.fn.autocomplete=t.fn.devbridgeAutocomplete)});

jQuery(document).ready(function ($) {
    "use strict";

     $('.searchform').each(function(){

         var append = $(this).find('.live-search-results');
         var search_categories = $(this).find('.search_categories');
         var serviceUrl = flatsomeVars.ajaxurl + '?action=flatsome_ajax_search_products';
         var product_cat = '';

        if (search_categories.length && search_categories.val() !== '') {
            serviceUrl += '&product_cat=' + search_categories.val();
        }

         $(this).find('.search-field').devbridgeAutocomplete({
            minChars        : 3,
            appendTo        : append,
            triggerSelectOnValidInput: false,
            serviceUrl      : serviceUrl,
            deferRequestBy  : parseInt(flatsomeVars.options.search_result_latency),
            onSearchStart   : function () {
              $('.submit-button').removeClass('loading');
              $('.submit-button').addClass('loading');
            },
            onSelect        : function (suggestion) {
                if (suggestion.id != -1) {
                    window.location.href = suggestion.url;
                }
            },
            onSearchComplete: function () {
                $('.submit-button').removeClass('loading');
            },
            beforeRender: function (container) {
                $(container).removeAttr('style');
            },
            formatResult: function (suggestion, currentValue) {
                    var pattern = '(' + $.Autocomplete.utils.escapeRegExChars(currentValue) + ')';
                    var html = '';
                    if(suggestion.img) html += '<img class="search-image" src="'+suggestion.img+'">';
                    html += '<div class="search-name">'+suggestion.value.replace(new RegExp(pattern, 'gi'), '<strong>$1<\/strong>')+'</div>';
                    if(suggestion.price) html += '<span class="search-price">'+suggestion.price+'<span>';

                    return html;
                }
        });

          if( search_categories.length ){
                var searchForm = $(this).find('.search-field').devbridgeAutocomplete();

                search_categories.on( 'change', function( e ){

                    if( search_categories.val() != '' ) {
                        searchForm.setOptions({
                            serviceUrl:  flatsomeVars.ajaxurl + '?action=flatsome_ajax_search_products&product_cat=' + search_categories.val()
                        });
                    } else{
                        searchForm.setOptions({
                            serviceUrl:  flatsomeVars.ajaxurl + '?action=flatsome_ajax_search_products'
                        });
                    }

                    // update suggestions
                    searchForm.hide();
                    searchForm.onValueChange();
                });
            }
     });


});
;/*! This file is auto-generated */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});
;/* <![CDATA[ */
var flatsomeVars = {"theme":{"version":"3.19.0"},"ajaxurl":"https:\/\/hoanghaled.vn\/wp-admin\/admin-ajax.php","rtl":"","sticky_height":"55","stickyHeaderHeight":"0","scrollPaddingTop":"0","assets_url":"https:\/\/hoanghaled.vn\/wp-content\/themes\/flatsome\/assets\/","lightbox":{"close_markup":"<button title=\"%title%\" type=\"button\" class=\"mfp-close\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-x\"><line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"><\/line><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"><\/line><\/svg><\/button>","close_btn_inside":false},"user":{"can_edit_pages":false},"i18n":{"mainMenu":"Menu ch\u00ednh","toggleButton":"Chuy\u1ec3n \u0111\u1ed5i"},"options":{"cookie_notice_version":"1","swatches_layout":false,"swatches_disable_deselect":false,"swatches_box_select_event":false,"swatches_box_behavior_selected":false,"swatches_box_update_urls":"1","swatches_box_reset":false,"swatches_box_reset_limited":false,"swatches_box_reset_extent":false,"swatches_box_reset_time":300,"search_result_latency":"0"},"is_mini_cart_reveal":"1"};
/* ]]> */
;!function(){var e,t,n,o,i={9476:function(){Flatsome.behavior("back-to-top",{attach(e){const t=jQuery(".back-to-top",e);if(!t.length)return;let n=null;window.addEventListener("scroll",(()=>{var e;const o=jQuery(window).scrollTop();n=null!==(e=n)&&void 0!==e?e:jQuery(window).height(),t.toggleClass("active",o>=n)}),{passive:!0})}})},3387:function(){Flatsome.behavior("commons",{attach(e){jQuery("select.resizeselect").resizeselect(),jQuery("[data-parallax]",e).flatsomeParallax(),jQuery.fn.packery&&(jQuery("[data-packery-options], .has-packery",e).each((function(){let e=jQuery(this);e.packery({originLeft:!flatsomeVars.rtl}),setTimeout((function(){e.imagesLoaded((function(){e.packery("layout")}))}),100)})),jQuery(".banner-grid-wrapper").imagesLoaded((function(){jQuery(this.elements).removeClass("processing")}))),"objectFitPolyfill"in window&&window.objectFitPolyfill()},detach(e){}})},7439:function(){const e="ux-body-overlay--hover-active";Flatsome.behavior("nav-hover",{attach(t){const n=jQuery(".ux-body-overlay");n.length&&(n.removeClass(e),jQuery([".nav-prompts-overlay li.menu-item",".nav-prompts-overlay .header-vertical-menu__opener"].join(", "),t).on({mouseenter:()=>n.addClass(e),mouseleave:()=>n.removeClass(e)}))}})},6744:function(){function e(e){e.attr("aria-hidden","true"),e.find("> li > a, > li > button").attr("tabindex","-1")}Flatsome.behavior("sidebar-slider",{attach(t){const n=jQuery("body").hasClass("mobile-submenu-toggle");jQuery(".mobile-sidebar-slide",t).each(((t,o)=>{const i=parseInt(jQuery(o).data("levels"),10)||1,a=jQuery(".sidebar-menu",o),r=jQuery(".nav-sidebar",o);jQuery(["> li > ul.children","> li > .sub-menu",i>1?"> li > ul.children > li > ul":null].filter(Boolean).join(", "),r).each(((t,o)=>{const i=jQuery(o),r=i.parent(),s=r.parents("ul:first"),l=jQuery(["> .toggle",'> a[href="#"]',n&&"> a"].filter(Boolean).join(","),r),c=r.find("> a").text().trim(),u=i.parents("ul").length,d=Boolean(window.flatsomeVars.rtl),h=jQuery(`\n            <li class="nav-slide-header pt-half pb-half">\n              <button class="toggle">\n                <i class="icon-angle-left"></i>\n                ${c||window.flatsomeVars.i18n.mainMenu}\n              </button>\n            </li>\n          `);i.prepend(h),e(i);let f=null;l.off("click").on("click",(e=>{var t;r.attr("aria-expanded","true"),s.addClass("is-current-parent"),i.addClass("is-current-slide"),a.css("transform",`translateX(${d?"":"-"}${100*u}%)`),(t=i).attr("aria-hidden","false"),t.find("> li > a, > li > button").attr("tabindex",""),clearTimeout(f),e.preventDefault()})),h.find(".toggle").on("click",(()=>{a.css("transform",`translateX(${d?"":"-"}${100*(u-1)}%)`),e(i),f=setTimeout((()=>{i.removeClass("is-current-slide"),s.removeClass("is-current-parent")}),300),r.removeClass("active"),r.attr("aria-expanded","false")}))}))}))}})},6910:function(){Flatsome.behavior("sidebar-tabs",{attach(e){jQuery(".sidebar-menu-tabs",e).each(((e,t)=>{const n=jQuery(t),o=n.find(".sidebar-menu-tabs__tab"),i=n.parent().find("ul.nav-sidebar");o.each(((e,t)=>{jQuery(t).on("click",(function(t){!function(e,t,n){t.each(((t,n)=>jQuery(n).toggleClass("active",t===e))),n.each(((t,n)=>jQuery(n).toggleClass("hidden",t===e)))}(e,o,i),t.preventDefault(),t.stopPropagation()}))}))}))}})},9880:function(){Flatsome.behavior("scroll-to",{attach(){const e=jQuery("span.scroll-to"),t=parseInt(flatsomeVars.sticky_height,10),n=jQuery("#wpadminbar");if(!e.length)return;let o=jQuery(".scroll-to-bullets");o.length?(o.children().lazyTooltipster("destroy"),o.empty()):(o=jQuery('<div class="scroll-to-bullets hide-for-medium"/>'),jQuery("body").append(o)),jQuery("li.scroll-to-link").remove(),e.each((function(e,t){const i=jQuery(t),a=i.data("link"),r=i.data("title"),s=`a[href*="${a||"<nolink>"}"]`;if(i.data("bullet")){const e=jQuery(`\n          <a href="${a}" data-title="${r}" title="${r}">\n          <strong></strong>\n          </a>\n        `);e.lazyTooltipster({position:"left",delay:50,contentAsHTML:!0,touchDevices:!1}),o.append(e)}const l=jQuery(`\n          <li class="scroll-to-link"><a data-animate="fadeIn" href="${a}" data-title="${r}" title="${r}">\n          ${r}\n          </a></li>\n        `);jQuery("li.nav-single-page").before(l),setTimeout((function(){jQuery(".scroll-to-link a").attr("data-animated","true")}),300),jQuery(s).off("click").on("click",(function(e){const t=jQuery(this).attr("href").split("#")[1];if(!t)return;let o=i.attr("data-offset");o&&n.length&&n.is(":visible")&&(o=Number(o)+Number(n.height())),setTimeout((()=>{jQuery.scrollTo(`a[name="${t}"]`,{...!isNaN(o)&&{offset:-o}})}),0),jQuery.fn.magnificPopup&&jQuery.magnificPopup.close(),e.preventDefault()}))}));let i=0;const a=()=>{clearTimeout(i),i=setTimeout((()=>{const n=e.get().map((e=>e.getBoundingClientRect().y));o.find("a").each(((e,o)=>{const i=n[e],a=n[e+1]||window.innerHeight,r=i<=t+100&&a>t+100;jQuery(o).toggleClass("active",r)}))}),100)};if(window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),a(),location.hash){const e=decodeURIComponent(location.hash.replace("#",""));let t=jQuery(`a[name="${e}"]`).closest(".scroll-to").attr("data-offset");t&&n.length&&n.is(":visible")&&(t=Number(t)+Number(n.height())),jQuery.scrollTo(`a[name="${e}"]`,{...!isNaN(t)&&{offset:-t}})}},detach(){jQuery("span.scroll-to").length&&setTimeout(this.attach,0)}})},5973:function(){function e(e,t,n){t.each(((t,n)=>{jQuery(n).toggleClass("active",t===e),jQuery(n).find("> a").attr("aria-selected",t===e?"true":"false").attr("tabindex",t===e?null:"-1")})),n.each(((t,n)=>jQuery(n).toggleClass("active",t===e))),jQuery.fn.packery&&jQuery("[data-packery-options]",n[e]).packery("layout")}Flatsome.behavior("tabs",{attach(t){const n=window.location.hash;let o=!1;jQuery(".tabbed-content",t).each((function(t,i){const a=jQuery(i),r=a.find("> .nav > li"),s=a.find("> .tab-panels > .panel"),l=a.find("> .nav").hasClass("active-on-hover"),c=a.find("> .nav").hasClass("nav-vertical");s.removeAttr("style"),r.each((function(t,i){const u=jQuery(i).find("a");u.on("click",(function(n){e(t,r,s),n.preventDefault(),n.stopPropagation()})),u.on("keydown",(e=>{let n;switch(e.key){case c?"ArrowDown":"ArrowRight":n=r.eq((t+1)%r.length);break;case c?"ArrowUp":"ArrowLeft":n=r.eq((t-1)%r.length);break;case"Home":n=r.first();break;case"End":n=r.last()}n&&(n.find("> a").trigger("focus"),e.stopPropagation(),e.preventDefault())})),l&&u.hoverIntent({sensitivity:3,interval:20,timeout:70,over(n){e(t,r,s)},out(){}}),!n.substring(1).length||decodeURIComponent(n.substring(1))!==u.attr("href")?.split("#")[1]&&n.substring(1)!==u.attr("href")?.split("#")[1]||(e(t,r,s),o||(o=!0,setTimeout((()=>{jQuery.scrollTo(a)}),500)))}))}))}})},7633:function(){Flatsome.behavior("toggle",{attach(e){function t(e){const t=jQuery(e.currentTarget).parent();t.toggleClass("active"),t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false"),e.preventDefault()}jQuery([".widget ul.children",".nav ul.children",".menu .sub-menu",".mobile-sidebar-levels-2 .nav ul.children > li > ul"].join(", "),e).each((function(){const e=jQuery(this).parents(".nav-slide").length?"right":"down";jQuery(this).parent().addClass("has-child").attr("aria-expanded","false"),jQuery(this).before(`<button class="toggle" aria-label="${window.flatsomeVars.i18n.toggleButton}"><i class="icon-angle-${e}"></i></button>`)})),jQuery(".current-cat-parent",e).addClass("active").attr("aria-expanded","true").removeClass("current-cat-parent"),jQuery(".toggle",e).on("click",t);const n=jQuery("body").hasClass("mobile-submenu-toggle");jQuery(".sidebar-menu li.menu-item.has-child",e).each((function(){let e=jQuery(this),o=e.find("> a:first");"#"===o.attr("href")?o.on("click",(function(t){t.preventDefault(),e.toggleClass("active"),e.attr("aria-expanded","false"===e.attr("aria-expanded")?"true":"false")})):n&&o.next(".toggle").length&&o.on("click",t)}))}})},6808:function(){Flatsome.behavior("youtube",{attach(e){var t,n,o,i,a,r=jQuery(".ux-youtube",e);0!==r.length&&(window.onYouTubePlayerAPIReady=function(){r.each((function(){var e=jQuery(this),t=e.attr("id"),n=e.data("videoid"),o=e.data("loop"),i=e.data("audio");new YT.Player(t,{height:"100%",width:"100%",playerVars:{html5:1,autoplay:1,controls:0,rel:0,modestbranding:1,playsinline:1,showinfo:0,fs:0,loop:o,el:0,playlist:o?n:void 0},videoId:n,events:{onReady:function(e){0===i&&e.target.mute()}}})}))},n="script",o="youtube-jssdk",a=(t=document).getElementsByTagName(n)[0],t.getElementById(o)||((i=t.createElement(n)).id=o,i.src="https://www.youtube.com/player_api",a.parentNode.insertBefore(i,a)))}})},7345:function(e,t,n){n.g.Flatsome={behaviors:{},plugin(e,t,n){n=n||{},jQuery.fn[e]=function(o){if("string"==typeof arguments[0]){var i=null,a=arguments[0],r=Array.prototype.slice.call(arguments,1);return this.each((function(){if(!jQuery.data(this,"plugin_"+e)||"function"!=typeof jQuery.data(this,"plugin_"+e)[a])throw new Error("Method "+a+" does not exist on jQuery."+e);i=jQuery.data(this,"plugin_"+e)[a].apply(this,r)})),"destroy"===a&&this.each((function(){jQuery(this).removeData("plugin_"+e)})),void 0!==i?i:this}if("object"==typeof o||!o)return this.each((function(){jQuery.data(this,"plugin_"+e)||(o=jQuery.extend({},n,o),jQuery.data(this,"plugin_"+e,new t(this,o)))}))}},behavior(e,t){this.behaviors[e]=t},attach(e,t=e){if("string"==typeof e)return this.behaviors.hasOwnProperty(e)&&"function"==typeof this.behaviors[e].attach?this.behaviors[e].attach(t||document):null;for(let e in this.behaviors)"function"==typeof this.behaviors[e].attach&&this.behaviors[e].attach(t||document)},detach(e,t=e){if("string"==typeof e)return this.behaviors.hasOwnProperty(e)&&"function"==typeof this.behaviors[e].detach?this.behaviors[e].detach(t||document):null;for(let e in this.behaviors)"function"==typeof this.behaviors[e].detach&&this.behaviors[e].detach(t||document)}}},7727:function(){jQuery(".section .loading-spin, .banner .loading-spin, .page-loader").fadeOut(),jQuery("#top-link").on("click",(function(e){jQuery.scrollTo(0),e.preventDefault()})),jQuery(".scroll-for-more").on("click",(function(){jQuery.scrollTo(jQuery(this))})),jQuery(".search-dropdown button").on("click",(function(e){jQuery(this).parent().find("input").trigger("focus"),e.preventDefault()})),jQuery(".current-cat").addClass("active"),jQuery("html").removeClass("loading-site"),setTimeout((function(){jQuery(".page-loader").remove()}),1e3),jQuery(".resize-select").resizeselect(),flatsomeVars.user.can_edit_pages&&jQuery(".block-edit-link").each((function(){const e=jQuery(this);let t=e.data("link");const n=e.data("backend"),o=e.data("title"),i=e.parents('[id^="menu-item-"]');if(i.length&&i.hasClass("menu-item-has-block")){const e=i.attr("id").match(/menu-item-(\d+)/);e&&e[1]&&(t+=`&menu_id=${e[1]}`)}jQuery(this).next().addClass("has-block").lazyTooltipster({distance:-15,repositionOnScroll:!0,interactive:!0,contentAsHTML:!0,content:o+'<br/><a class="button edit-block-button edit-block-button-builder" href="'+t+'">UX Builder</a><a class="button edit-block-button edit-block-button edit-block-button-backend" href="'+n+'">WP Editor</a>'}),jQuery(this).remove()})),document.addEventListener("uxb_app_ready",(()=>{const e=new URLSearchParams(window.top.location.search),t=parseInt(e.get("menu_id"));t&&setTimeout((()=>{const e=jQuery(`#menu-item-${t}`),n=e.parent().hasClass("ux-nav-vertical-menu");e.hasClass("menu-item-has-block has-dropdown")&&!e.hasClass("current-dropdown")&&(n&&jQuery(".header-vertical-menu__fly-out").addClass("header-vertical-menu__fly-out--open"),jQuery(`#menu-item-${t} a:first`).trigger("click"))}),1e3)})),jQuery("#hotspot").on("click",(function(e){e.preventDefault()})),jQuery(".wpcf7-form .wpcf7-submit").on("click",(function(e){jQuery(this).parent().parent().addClass("processing")})),jQuery(".wpcf7").on("wpcf7invalid wpcf7spam wpcf7mailsent wpcf7mailfailed",(function(e){jQuery(".processing").removeClass("processing")})),jQuery(document).ajaxComplete((function(e,t,n){jQuery(".processing").removeClass("processing")}))},9450:function(e,t,n){jQuery.fn.lazyTooltipster=function(e){return this.each(((t,o)=>{const i=jQuery(o);"string"==typeof e?jQuery.fn.tooltipster&&i.hasClass("tooltipstered")&&i.tooltipster(e):i.one("mouseenter",(t=>{!function(e,t){(jQuery.fn.tooltipster?Promise.resolve():n.e(635).then(n.t.bind(n,269,23))).then((()=>{e.hasClass("tooltipstered")||e.tooltipster({theme:"tooltipster-default",delay:10,animationDuration:300,...t}),e.tooltipster("show")}))}(i,e)}))}))}},8540:function(){Flatsome.plugin("resizeselect",(function(e,t){jQuery(e).on("change",(function(){var e=jQuery(this),t=e.find("option:selected").val(),n=e.find("option:selected").text(),o=jQuery('<span class="select-resize-ghost">').html(n);o.appendTo(e.parent());var i=o.width();o.remove(),e.width(i+7),t&&e.parent().parent().find("input.search-field").focus()})).trigger("change")}))},3404:function(e,t,n){var o,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(o=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},o=n[e]=n[e]||[];return-1==o.indexOf(t)&&o.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var o=n.indexOf(t);return-1!=o&&n.splice(o,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var o=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var a=n[i];o&&o[a]&&(this.off(e,a),delete o[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?o.call(t,n,t,e):o)||(e.exports=i)},3959:function(){!function(){var e=window.MutationObserver||window.WebKitMutationObserver,t="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;if(void 0===document.documentElement.style["touch-action"]&&!document.documentElement.style["-ms-touch-action"]&&t&&e){window.Hammer=window.Hammer||{};var n=/touch-action[:][\s]*(none)[^;'"]*/,o=/touch-action[:][\s]*(manipulation)[^;'"]*/,i=/touch-action/,a=/(iP(ad|hone|od))/.test(navigator.userAgent)&&("indexedDB"in window||!!window.performance);window.Hammer.time={getTouchAction:function(e){return this.checkStyleString(e.getAttribute("style"))},checkStyleString:function(e){if(i.test(e))return n.test(e)?"none":!o.test(e)||"manipulation"},shouldHammer:function(e){var t=e.target.hasParent;return!(!t||a&&!(Date.now()-e.target.lastStart<125))&&t},touchHandler:function(e){var t=this.shouldHammer(e);if("none"===t)this.dropHammer(e);else if("manipulation"===t){var n=e.target.getBoundingClientRect();n.top===this.pos.top&&n.left===this.pos.left&&this.dropHammer(e)}this.scrolled=!1,delete e.target.lastStart,delete e.target.hasParent},dropHammer:function(e){"touchend"===e.type&&(e.target.focus(),setTimeout((function(){e.target.click()}),0)),e.preventDefault()},touchStart:function(e){this.pos=e.target.getBoundingClientRect(),e.target.hasParent=this.hasParent(e.target),a&&e.target.hasParent&&(e.target.lastStart=Date.now())},styleWatcher:function(e){e.forEach(this.styleUpdater,this)},styleUpdater:function(e){if(e.target.updateNext)e.target.updateNext=!1;else{var t=this.getTouchAction(e.target);t?"none"!==t&&(e.target.hadTouchNone=!1):!t&&(e.oldValue&&this.checkStyleString(e.oldValue)||e.target.hadTouchNone)&&(e.target.hadTouchNone=!0,e.target.updateNext=!1,e.target.setAttribute("style",e.target.getAttribute("style")+" touch-action: none;"))}},hasParent:function(e){for(var t,n=e;n&&n.parentNode;n=n.parentNode)if(t=this.getTouchAction(n))return t;return!1},installStartEvents:function(){document.addEventListener("touchstart",this.touchStart.bind(this)),document.addEventListener("mousedown",this.touchStart.bind(this))},installEndEvents:function(){document.addEventListener("touchend",this.touchHandler.bind(this),!0),document.addEventListener("mouseup",this.touchHandler.bind(this),!0)},installObserver:function(){this.observer=new e(this.styleWatcher.bind(this)).observe(document,{subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["style"]})},install:function(){this.installEndEvents(),this.installStartEvents(),this.installObserver()}},window.Hammer.time.install()}}()},8279:function(e,t,n){var o,i;!function(a,r){"use strict";o=[n(3404)],i=function(e){return function(e,t){var n=e.jQuery,o=e.console;function i(e,t){for(var n in t)e[n]=t[n];return e}var a=Array.prototype.slice;function r(e,t,s){if(!(this instanceof r))return new r(e,t,s);var l,c=e;"string"==typeof e&&(c=document.querySelectorAll(e)),c?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=i({},this.options),"function"==typeof t?s=t:i(this.options,t),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):o.error("Bad element for imagesLoaded "+(c||e))}r.prototype=Object.create(t.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&s[t]){for(var n=e.querySelectorAll("img"),o=0;o<n.length;o++){var i=n[o];this.addImage(i)}if("string"==typeof this.options.background){var a=e.querySelectorAll(this.options.background);for(o=0;o<a.length;o++){var r=a[o];this.addElementBackgroundImages(r)}}}};var s={1:!0,9:!0,11:!0};function l(e){this.img=e}function c(e,t){this.url=e,this.element=t,this.img=new Image}return r.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,o=n.exec(t.backgroundImage);null!==o;){var i=o&&o[2];i&&this.addBackground(i,e),o=n.exec(t.backgroundImage)}},r.prototype.addImage=function(e){var t=new l(e);this.images.push(t)},r.prototype.addBackground=function(e,t){var n=new c(e,t);this.images.push(n)},r.prototype.check=function(){var e=this;function t(t,n,o){setTimeout((function(){e.progress(t,n,o)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},r.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+n,e,t)},r.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},l.prototype=Object.create(t.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},l.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new r(this,e,t).jqDeferred.promise(n(this))})},r.makeJQueryPlugin(),r}(a,e)}.apply(t,o),void 0===i||(e.exports=i)}("undefined"!=typeof window?window:this)},7461:function(e,t,n){var o,i,a;!function(r){"use strict";i=[n(428)],void 0===(a="function"==typeof(o=function(e){var t=e.scrollTo=function(t,n,o){return e(window).scrollTo(t,n,o)};function n(t){return!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function o(e){return"function"==typeof e}function i(t){return o(t)||e.isPlainObject(t)?t:{top:t,left:t}}return t.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(a,r,s){"object"==typeof r&&(s=r,r=0),"function"==typeof s&&(s={onAfter:s}),"max"===a&&(a=9e9),s=e.extend({},t.defaults,s),r=r||s.duration;var l=s.queue&&s.axis.length>1;return l&&(r/=2),s.offset=i(s.offset),s.over=i(s.over),this.each((function(){if(null!==a){var c,u=n(this),d=u?this.contentWindow||window:this,h=e(d),f=a,p={};switch(typeof f){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(f)){f=i(f);break}f=u?e(f):e(f,d);case"object":if(0===f.length)return;(f.is||f.style)&&(c=(f=e(f)).offset())}var y=o(s.offset)&&s.offset(d,f)||s.offset;e.each(s.axis.split(""),(function(e,n){var o="x"===n?"Left":"Top",i=o.toLowerCase(),a="scroll"+o,r=h[a](),g=t.max(d,n);if(c)p[a]=c[i]+(u?0:r-h.offset()[i]),s.margin&&(p[a]-=parseInt(f.css("margin"+o),10)||0,p[a]-=parseInt(f.css("border"+o+"Width"),10)||0),p[a]+=y[i]||0,s.over[i]&&(p[a]+=f["x"===n?"width":"height"]()*s.over[i]);else{var v=f[i];p[a]=v.slice&&"%"===v.slice(-1)?parseFloat(v)/100*g:v}s.limit&&/^\d+$/.test(p[a])&&(p[a]=p[a]<=0?0:Math.min(p[a],g)),!e&&s.axis.length>1&&(r===p[a]?p={}:l&&(m(s.onAfterFirst),p={}))})),m(s.onAfter)}function m(t){var n=e.extend({},s,{queue:!0,duration:r,complete:t&&function(){t.call(d,f,s)}});h.animate(p,n)}}))},t.max=function(t,o){var i="x"===o?"Width":"Height",a="scroll"+i;if(!n(t))return t[a]-e(t)[i.toLowerCase()]();var r="client"+i,s=t.ownerDocument||t.document,l=s.documentElement,c=s.body;return Math.max(l[a],c[a])-Math.min(l[r],c[r])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var o=Math.round(t.now);n!==o&&(e(t.elem)[t.prop](o),t._last=this.get(t))}},t})?o.apply(t,i):o)||(e.exports=a)}()},428:function(e){"use strict";e.exports=window.jQuery}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e].call(n.exports,n,n.exports,r),n.exports}r.m=i,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},r.d(i,a),i},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))},r.u=function(e){return"js/chunk."+{230:"popups",436:"slider",635:"tooltips",970:"lottie",987:"countup"}[e]+".js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},o="flatsome:",r.l=function(e,t,i,a){if(n[e])n[e].push(t);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",o+i),s.src=e),n[e]=[t];var h=function(t,o){s.onerror=s.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(o)})),t)return t(o)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){const e=r.u;r.u=t=>{const n=e(t),o=globalThis.flatsomeVars?.theme.version;return n+(o?"?ver="+o:"")}}(),r.p=globalThis.flatsomeVars?.assets_url??"/",function(){var e={816:0};r.f.j=function(t,n){var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise((function(n,i){o=e[t]=[n,i]}));n.push(o[2]=i);var a=r.p+r.u(t),s=new Error;r.l(a,(function(n){if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=function(t,n){var o,i,a=n[0],s=n[1],l=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);l&&l(r)}for(t&&t(n);c<a.length;c++)i=a[c],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.flatsomeChunks=self.flatsomeChunks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),function(){"use strict";function e(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)}r(8279),r(3959),r(7461),r(7345);const t=document.body,n="body-scroll-lock--active",o=e();let i=0;function a(){if(!o)return;i=window.pageYOffset;const e=document.getElementById("wpadminbar"),a=i-(e?e.offsetHeight:0);t.style.overflow="hidden",t.style.position="fixed",t.style.top=`-${a}px`,t.style.width="100%",t.classList.add(n)}function s(){o&&(t.style.removeProperty("overflow"),t.style.removeProperty("position"),t.style.removeProperty("top"),t.style.removeProperty("width"),window.scrollTo(0,i),t.classList.remove(n))}function l(e,t={}){let n=0;const o=t=>{const o=window.scrollY;e(t,{direction:o>n?"down":"up",scrollY:o}),n=o};return window.addEventListener("scroll",o,{...t,passive:!0}),()=>{window.removeEventListener("scroll",o)}}let c,u,d,h=jQuery("#header"),f=h.find(".header-wrapper"),p=jQuery(".header-top",h),y=jQuery(".header-main",h),m=h.hasClass("has-sticky"),g=h.hasClass("sticky-hide-on-scroll");function v(e,t="down",n=!1){void 0===u&&void 0===d&&(h.hasClass("sticky-shrink")?(u=p.hasClass("hide-for-sticky")?p.height():0,u+=y.hasClass("hide-for-sticky")?y.height():0,d=1+u):(u=f.height()+100,d=p.hasClass("hide-for-sticky")?p.height()+1:1)),g?"down"===t||e<d?e<d?j():(c=setTimeout(j,100),h.addClass("sticky-hide-on-scroll--active")):e>u&&(c=setTimeout((()=>b(n)),100),h.removeClass("sticky-hide-on-scroll--active")):e>u?b(n):e<d&&j()}function b(e=!1){if(f.hasClass("stuck"))return;const t=h.height();jQuery(document).trigger("flatsome-header-sticky"),f.addClass("stuck"),f.toggleClass("ux-no-animation",e),h.height(t),jQuery(".has-transparent").removeClass("transparent"),jQuery(".toggle-nav-dark").removeClass("nav-dark")}function j(){f.hasClass("stuck")&&(h.height(""),f.removeClass(["stuck","ux-no-animation"]),jQuery(".has-transparent").addClass("transparent"),jQuery(".toggle-nav-dark").addClass("nav-dark"))}m&&(document.addEventListener("DOMContentLoaded",(()=>{l(((e,{scrollY:o,direction:i})=>{c&&(clearTimeout(c),c=void 0),t.classList.contains(n)||v(o,i)})),c=setTimeout((()=>{window.scrollY&&v(window.scrollY)}),100)})),jQuery("body").on("experimental-flatsome-pjax-request-done",(()=>{h=jQuery("#header"),f=h.find(".header-wrapper"),p=jQuery(".header-top",h),y=jQuery(".header-main",h),m=h.hasClass("has-sticky"),g=h.hasClass("sticky-hide-on-scroll"),window.scrollY&&v(window.scrollY,void 0,!0)})));const w=window.matchMedia("(prefers-reduced-motion: reduce)");let k=!1;function Q(){k="undefined"==typeof UxBuilder&&w.matches}Q(),w.addEventListener?.("change",Q);const x=[];let C;function E(){x.length&&(cancelAnimationFrame(C),C=requestAnimationFrame((()=>{for(let e=0;e<x.length;e++)x[e].element.offsetParent?T(x[e]):x.splice(e,1)})))}function T(e){!function({element:e,type:t}){let n=F(e.dataset.parallax),o=P(e),i=(window.innerHeight-o.offsetHeight)*n;switch(t){case"backgroundImage":e.style.backgroundSize=n?"100% auto":null;break;case"backgroundElement":e.style.height=n?`${o.offsetHeight+i}px`:null}}(e),function({element:e,type:t}){let n=F(e.dataset.parallax||e.dataset.parallaxBackground),o=window.innerHeight,i=P(e),a=e.offsetHeight-i.offsetHeight,r=e.getBoundingClientRect(),s=i!==e?i.getBoundingClientRect():r,l=r.top+e.offsetHeight/2,c=o/2-l,u=o/2-(s.top+i.offsetHeight/2),d=l+_()<o/2?_():c,h=(Math.abs(c),Math.abs(d)/(o/2)),f=0;var p;if(!(s.top>o||s.top+i.offsetHeight<0))switch(t){case"backgroundImage":f=s.top*n,e.style.backgroundPosition=n?`50% ${f.toFixed(0)}px`:null,e.style.backgroundAttachment=n?"fixed":null;break;case"backgroundElement":f=u*n-a/2,e.style.transform=n?`translate3d(0, ${f.toFixed(2)}px, 0)`:null,e.style.backfaceVisibility=n?"hidden":null;break;case"element":f=d*n,e.style.transform=n?`translate3d(0, ${f.toFixed(2)}px, 0)`:null,e.style.backfaceVisibility=n?"hidden":null,void 0!==e.dataset.parallaxFade&&(e.style.opacity=n?(p=1-h,p*(2-p)).toFixed(2):null)}}(e)}function L(e){return void 0!==e.dataset.parallaxBackground?"backgroundElement":void 0!==e.dataset.parallaxElemenet?"element":""!==e.style.backgroundImage?"backgroundImage":"element"}function _(){return document.documentElement.scrollTop||document.body.scrollTop}function P(e){return function(e,t=null){for(;e&&!I(e).call(e,t);)e=e.parentElement;return e}(e,e.dataset.parallaxContainer||"[data-parallax-container]")||e}function I(e){return e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector}function F(e){return e/10*-1/(2-Math.abs(e)/10)}function O(e,t={}){return new IntersectionObserver((function(t){for(let n=0;n<t.length;n++)e(t[n])}),{rootMargin:"0px",threshold:.1,...t})}function M(){return console.warn("Flatsome: Flickity is lazy loaded. Use 'lazyFlickity()' to instantiate and 'flatsome-flickity-ready' event to interact with Flickity instead."),this}function A(){return jQuery.fn.magnificPopup?Promise.resolve():r.e(230).then(r.t.bind(r,2801,23))}window.addEventListener("scroll",E,{passive:!0}),window.addEventListener("resize",E),new MutationObserver(E).observe(document.body,{childList:!0}),window.jQuery&&(window.jQuery.fn.flatsomeParallax=function(t){k||"destroy"!==t&&this.each(((t,n)=>function(t){t.classList.add("parallax-active"),!document.querySelector("body").classList.contains("parallax-mobile")&&e()||t.classList&&t.dataset&&(x.push({element:t,type:L(t)}),T(x[x.length-1]))}(n)))}),r(8540),jQuery.fn.flickity||(M.isFlickityStub=!0,jQuery.fn.flickity=M),jQuery.fn.lazyFlickity=function(e){const t=O((n=>{if(n.isIntersecting){if(t.unobserve(n.target),!jQuery.fn.flickity||jQuery.fn.flickity===M)return r.e(436).then(r.t.bind(r,8026,23)).then((()=>{jQuery(n.target).flickity(e),jQuery(n.target).trigger("flatsome-flickity-ready")}));jQuery(n.target).flickity(e),jQuery(n.target).trigger("flatsome-flickity-ready")}}));return this.each(((n,o)=>{"string"==typeof e?jQuery.fn.flickity&&jQuery(o).flickity(e):t.observe(o)}))},jQuery.loadMagnificPopup=A,jQuery.fn.lazyMagnificPopup=function(e){const t=jQuery(this),n=e.delegate?t.find(e.delegate):t;return n.one("click",(o=>{o.preventDefault(),A().then((()=>{t.data("magnificPopup")||t.magnificPopup(e),t.magnificPopup("open",n.index(o.currentTarget)||0)}))})),t},r(9450),r(7727);const D=O((e=>{if(e.intersectionRatio>0){D.unobserve(e.target);const t=jQuery(e.target);t.removeAttr("data-animate-transition"),t.removeAttr("data-animated"),window.requestAnimationFrame((()=>{t.attr("data-animate-transform","true"),window.requestAnimationFrame((()=>{t.attr("data-animate-transition","true"),setTimeout((()=>{t.attr("data-animated","true")}),300)}))}))}}));Flatsome.behavior("animate",{attach(e){const t="uxBuilder"===jQuery("html").attr("ng-app");jQuery("[data-animate]",e).each(((e,n)=>{const o=jQuery(n),i=o.data("animate");if(t||0===i.length||k)return o.attr("data-animated","true");D.observe(n)}))},detach(e){jQuery("[data-animate]",e).each(((e,t)=>{jQuery(t).attr("data-animated","false"),D.unobserve(t)}))}}),r(3387);const B=O((e=>{if(e.intersectionRatio>0){B.unobserve(e.target);const t=jQuery(e.target);r.e(987).then(r.bind(r,3748)).then((({CountUp:e})=>{const n=parseInt(t.text());new e(t.get(0),n,{decimalPlaces:0,duration:4}).start(),t.addClass("active")}))}}));function S(e){e.addClass("current-dropdown"),e.find(".nav-top-link").attr("aria-expanded",!0),function(e){const t=e,n=t.closest(".container").width(),o=t.closest("li.menu-item"),i=o.hasClass("menu-item-design-full-width"),a=o.hasClass("menu-item-design-container-width"),s=o.parent().hasClass("ux-nav-vertical-menu"),l=!i&&!a,c=r.g.flatsomeVars.rtl;if(l&&!s){if(n<750)return!1;var u=t.outerWidth(),d=t.offset(),h=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f=d.left-(h-n)/2;c&&(f=jQuery(window).width()-(d.left+u)-(h-n)/2);var p=t.width(),y=n-(f+p),m=!1;f>y&&f<p&&(m=(f+y)/3),y<0&&(m=-y),m&&c?t.css("margin-right",-m):m&&t.css("margin-left",-m),p>n&&t.addClass("nav-dropdown-full")}if(a){t.css({inset:"0"});const e=t.closest(".container").get(0).getBoundingClientRect(),i=t.get(0).getBoundingClientRect();t.css({width:s?n-o.width():n,...!c&&{left:e.left-i.left+15},...c&&{right:15-(e.right-i.right)}})}if(i){t.css({inset:"0"});const e=document.body,n=e.getBoundingClientRect(),i=t.get(0).getBoundingClientRect(),a=e.clientWidth;t.css({...!c&&{width:s?a-o.get(0).getBoundingClientRect().right:a},...c&&{width:s?o.get(0).getBoundingClientRect().left:a},...!c&&{left:n.left-i.left},...c&&{right:-(n.right-i.right)}})}if((a||i)&&!s){let e=null;if(o.closest("#top-bar").length&&(e=document.querySelector("#top-bar")),o.closest("#masthead").length&&(e=document.querySelector("#masthead")),o.closest("#wide-nav").length&&(e=document.querySelector("#wide-nav")),null!==e){const n=e.getBoundingClientRect(),i=o.get(0).getBoundingClientRect();t.css({top:n.bottom-i.bottom+i.height})}}s&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&t.css({minHeight:t.closest(".header-vertical-menu__fly-out").outerHeight()})}(e.find(".nav-dropdown"))}function $(e){e.removeClass("current-dropdown"),e.find(".nav-top-link").attr("aria-expanded",!1),e.find(".nav-dropdown").attr("style","")}function z(e){e.each(((e,t)=>{const n=jQuery(t);n.hasClass("current-dropdown")&&$(n)}))}function H(e,t){e.length&&e.addClass(`ux-body-overlay--${t}-active`)}function V(e,t){e.length&&e.removeClass(`ux-body-overlay--${t}-active`)}Flatsome.behavior("count-up",{attach(e){jQuery("span.count-up",e).each(((e,t)=>{B.observe(t)}))}}),Flatsome.behavior("dropdown",{attach(e){const t=jQuery(".nav li.has-dropdown",e),n="uxBuilder"===jQuery("html").attr("ng-app"),o=jQuery(".ux-body-overlay"),i="ontouchstart"in window;let a=!1,r=null;jQuery(".header-nav > li > a, .top-bar-nav > li > a",e).on("focus",(()=>{z(t)})),t.each((function(e,s){const l=jQuery(s),c=l.hasClass("nav-dropdown-toggle")&&!i;let u=!1,d=!1;l.on("touchstart click",(function(e){"touchstart"===e.type&&(u=!0),"click"===e.type&&u&&(u&&!d&&e.preventDefault(),d=!0)})),n||c?(a=!0,l.on("click","a:first",(function(e){if(e.preventDefault(),r=l,l.hasClass("current-dropdown"))return $(l),void V(o,"click");z(t),S(l),H(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])}))):(l.on("keydown","a:first",(function(e){"Space"===e.code&&(e.preventDefault(),l.hasClass("current-dropdown")?($(l),V(o,"click")):(z(t),S(l),H(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])))})),l.hoverIntent({sensitivity:3,interval:20,timeout:70,over(e){z(t),S(l),V(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])},out(){d=!1,u=!1,$(l)}}))})),!n&&a&&jQuery(document).on("click",(function(e){null===r||r===e.target||r.has(e.target).length||($(r),V(o,"click"))})),jQuery(document).on("flatsome-dropdown-opened",(function(e,t){t.hasClass("menu-item-has-block")&&jQuery.fn.packery&&t.find("[data-packery-options]").packery("layout")})),jQuery(document).on("flatsome-header-sticky",(function(){z(t),V(o,"click")}))}}),Flatsome.behavior("instagram",{attach(e){const t=O((e=>{if(e.intersectionRatio>0){t.unobserve(e.target);const n=jQuery(e.target),o=n.data("flatsome-instagram"),i=e=>{jQuery("body").hasClass("admin-bar")&&n.before('<div class="container error"><p>Instagram error: '+e+"</p></div>"),console.error("Instagram error:",e)};if("string"!=typeof o)return i("Invalid data");jQuery.ajax({url:flatsomeVars.ajaxurl,data:{action:"flatsome_load_instagram",data:o},success(e){if(!e.success)return i(e.data);if("string"!=typeof e.data)return console.error("Invalid Instagram response:",e.data);const t=jQuery(e.data);Flatsome.detach(n),n.replaceWith(t),Flatsome.attach(t)},error(e){i(e)}})}}));jQuery("[data-flatsome-instagram]",e).each(((e,n)=>{t.observe(n)}))}}),Flatsome.behavior("lightbox-gallery",{attach(e){const t={delegate:"a",type:"image",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'<div class="loading-spin centered dark"></div>',removalDelay:300,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:'<button class="mfp-arrow mfp-arrow-%dir%" title="%title%"><i class="icon-angle-%dir%"></i></button>',preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',verticalFit:!1},callbacks:{beforeOpen:function(){a()},beforeClose:function(){s()}}};jQuery('.lightbox .gallery a[href*=".jpg"], .lightbox .gallery a[href*=".jpeg"], .lightbox .gallery a[href*=".png"], .lightbox a.lightbox-gallery',e).parent().lazyMagnificPopup(t),jQuery(".lightbox .lightbox-multi-gallery",e).length&&jQuery(".lightbox-multi-gallery",e).each((function(){jQuery(this).lazyMagnificPopup(t)}))}}),Flatsome.behavior("lightbox-image",{attach(e){jQuery(['.lightbox *[id^="attachment"] a[href*=".jpg"]','.lightbox *[id^="attachment"] a[href*=".jpeg"]','.lightbox *[id^="attachment"] a[href*=".png"]','.lightbox .wp-block-image a[href*=".jpg"]:not([target="_blank"])','.lightbox .wp-block-image a[href*=".jpeg"]:not([target="_blank"])','.lightbox .wp-block-image a[href*=".png"]:not([target="_blank"])',".lightbox a.image-lightbox",'.lightbox .entry-content a[href*=".jpg"]','.lightbox .entry-content a[href*=".jpeg"]','.lightbox .entry-content a[href*=".png"]'].join(","),e).not([".lightbox a.lightbox-gallery",'.lightbox .gallery a[href*=".jpg"]','.lightbox .gallery a[href*=".jpeg"]','.lightbox .gallery a[href*=".png"]','.lightbox .lightbox-multi-gallery a[href*=".jpg"]','.lightbox .lightbox-multi-gallery a[href*=".jpeg"]','.lightbox .lightbox-multi-gallery a[href*=".png"]'].join(",")).lazyMagnificPopup({type:"image",tLoading:'<div class="loading-spin centered dark"></div>',closeOnContentClick:!0,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,removalDelay:300,image:{verticalFit:!1},callbacks:{beforeOpen:function(){a()},beforeClose:function(){s()}}})}}),Flatsome.behavior("lightboxes-link",{attach(e){jQuery(".lightbox-by-id",e).each((function(){const t=jQuery(this).attr("id");jQuery('a[href="#'+t+'"]',e).on("click",(e=>{e.preventDefault();const t=jQuery(e.currentTarget);A().then((()=>{let e=t.attr("href").substring(1),n=jQuery(`#${e}.lightbox-by-id`);if(e&&n.length>0){let e=n[0],t=jQuery.magnificPopup.open?300:0;t&&jQuery.magnificPopup.close(),setTimeout((function(){jQuery.magnificPopup.open({removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,items:{src:e,type:"inline",tLoading:'<div class="loading-spin dark"></div>'},callbacks:{beforeOpen:function(){a()},open:function(){if(Flatsome.attach(this.content),jQuery.fn.flickity&&jQuery("[data-flickity-options].flickity-enabled",this.content).each(((e,t)=>{jQuery(t).flickity("resize")})),jQuery.fn.packery){const e=jQuery("[data-packery-options]",this.content);e&&e.imagesLoaded((function(){e.packery("layout")}))}},beforeClose:function(){s()}}})}),t)}}))}))}))}}),Flatsome.behavior("lightbox-video",{attach(e){jQuery('a.open-video, a.button[href*="vimeo"]:not(.product_type_external), a.button[href*="youtube.com/watch"]:not(.product_type_external)',e).lazyMagnificPopup({type:"iframe",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,mainClass:"my-mfp-video",closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'<div class="loading-spin centered dark"></div>',removalDelay:300,preloader:!0,callbacks:{elementParse:function(e){/^.*\.(mp4)$/i.test(e.src)&&(e.type="inline",e.src='<div class="ux-mfp-inline-content ux-mfp-inline-content--video"><video autoplay controls playsinline width="100%" height="auto" name="media"><source src="'+e.src+'" type="video/mp4"></video></div>')},beforeOpen:function(){a()},open:function(){jQuery(".slider .is-selected .video").trigger("pause")},beforeClose:function(){s()},close:function(){jQuery(".slider .is-selected .video").trigger("play")}}})}}),Flatsome.behavior("lightboxes",{attach(e){jQuery("[data-open]",e).on("click",(e=>{e.preventDefault();const t=jQuery(e.currentTarget);A().then((()=>{var e=t.data("open"),n=t.data("color"),o=t.data("bg"),i=t.data("pos"),r=t.data("visible-after"),l=t.data("class"),c=t.attr("data-focus");t.offset(),t.addClass("current-lightbox-clicked"),"#product-sidebar"===e&&void 0===r&&(r=!jQuery(e).hasClass("mfp-hide")),jQuery.magnificPopup.open({items:{src:e,type:"inline",tLoading:'<div class="loading-spin dark"></div>'},removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,focus:c,callbacks:{beforeOpen:function(){this.st.mainClass=`off-canvas ${n||""} off-canvas-${i}`,a()},open:function(){jQuery("html").addClass("has-off-canvas"),jQuery("html").addClass("has-off-canvas-"+i),l&&jQuery(".mfp-content").addClass(l),o&&jQuery(".mfp-bg").addClass(o),jQuery(".mfp-content .resize-select").change(),jQuery.fn.packery&&jQuery("[data-packery-options], .has-packery").packery("layout"),jQuery(".equalize-box",this.content).length&&Flatsome.attach("equalize-box",this.content)},beforeClose:function(){jQuery("html").removeClass("has-off-canvas"),s()},afterClose:function(){jQuery("html").removeClass("has-off-canvas-"+i),jQuery(".current-lightbox-clicked").removeClass("current-lightbox-clicked"),r&&jQuery(e).removeClass("mfp-hide")}}})}))}))}}),Flatsome.behavior("slider",{attach(e){var t;(t=jQuery(e).data("flickityOptions")?jQuery(e):jQuery("[data-flickity-options]",e)).length&&t.each(((e,t)=>{var n=jQuery(t),o=n.closest(".slider-wrapper"),i=n.data("flickity-options");if("undefined"!=typeof UxBuilder&&(i.draggable=!1),!0===i.watchCSS)return;let a=!1,r=!1;const s=e=>{try{a=t.contains(e.target),"number"!=typeof i.autoPlay||!i.pauseAutoPlayOnHover||a||r||n.flickity("playPlayer")}catch(e){}};n.on("flatsome-flickity-ready",(function(){n.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),n.find(".is-selected .video-bg").trigger("play"),"requestAnimationFrame"in window&&(n.removeClass("flickity-enabled"),window.requestAnimationFrame((()=>{n.addClass("flickity-enabled")})));const e=n.data("flickity");if(e&&i.parallax){const t=n.find(".bg, .flickity-slider > .img img");n.addClass("slider-has-parallax"),n.on("scroll.flickity",(function(n,o){e.slides.forEach((function(n,o){const a=t[o],r=-1*(n.target+e.x)/i.parallax;a&&(a.style.transform="translateX( "+r+"px)")}))}))}document.addEventListener("touchstart",s,{passive:!0})})),k&&(i.friction=1,i.selectedAttraction=1,i.autoPlay=!1),n.lazyFlickity(i),n.imagesLoaded((function(){o.find(".loading-spin").fadeOut()})),n.on("change.flickity",(function(){a&&(r=!0),n.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),n.find(".is-selected .video-bg").trigger("play")})),n.on("dragStart.flickity",(function(){document.ontouchmove=e=>e.preventDefault(),n.addClass("is-dragging")})),n.on("dragEnd.flickity",(function(){document.ontouchmove=()=>!0,n.removeClass("is-dragging")})),n.on("destroy.flickity",(()=>{document.removeEventListener("touchstart",s)}))}))},detach(e){jQuery.fn.flickity&&!jQuery.fn.flickity.isFlickityStub&&(jQuery(e).data("flickityOptions")?jQuery(e).flickity("destroy"):jQuery("[data-flickity-options]",e).each((function(){jQuery(this).data("flickity")&&jQuery(this).flickity("destroy")})))}}),r(5973),r(7633),r(6744),r(6910),r(7439),r(9476),r(9880),Flatsome.behavior("accordion-title",{attach(t){const n=window.location.hash;let o=!1;jQuery(".accordion-title",t).each((function(){jQuery(this).off("click.flatsome").on("click.flatsome",(function(t){const n=k?0:200;jQuery(this).next().is(":hidden")?(jQuery(this).parent().parent().find(".accordion-title").attr("aria-expanded",!1).removeClass("active").next().slideUp(n),jQuery(this).attr("aria-expanded",!jQuery(this).hasClass("active")).toggleClass("active").next().slideDown(n,(function(){e()&&jQuery.scrollTo(jQuery(this).prev())})),window.requestAnimationFrame((()=>{jQuery.fn.flickity&&jQuery(this).next().find("[data-flickity-options].flickity-enabled").each(((e,t)=>{jQuery(t).flickity("resize")})),jQuery.fn.packery&&jQuery(this).next().find("[data-packery-options]").packery("layout")}))):jQuery(this).parent().parent().find(".accordion-title").attr("aria-expanded",!1).removeClass("active").next().slideUp(n),t.preventDefault()})),!n.substring(1).length||decodeURIComponent(n.substring(1))!==jQuery(this).attr("href")?.split("#")[1]&&n.substring(1)!==jQuery(this).attr("href")?.split("#")[1]||(jQuery(this).hasClass("active")||jQuery(this).trigger("click"),o||(o=!0,setTimeout((()=>{jQuery.scrollTo(jQuery(this).parent())}),500)))}))}}),Flatsome.behavior("tooltips",{attach(t){jQuery(".tooltip:not(.hotspot), .has-tooltip, .tip-top, li.chosen a",t).lazyTooltipster(),jQuery(".tooltip-as-html",t).lazyTooltipster({interactive:!0,contentAsHTML:!0}),e()?jQuery(".hotspot.tooltip:not(.quick-view)",t).lazyTooltipster({trigger:"click"}):jQuery(".hotspot.tooltip",t).lazyTooltipster()}});const q="flatsome-sticky-sidebar";function R(e){const t=e.getBoundingClientRect();return new DOMRect(t.width,t.top+window.scrollY,0,t.height)}Flatsome.behavior("sticky-sidebar",{attach(e){jQuery('.is-sticky-column[data-sticky-mode="javascript"]',e).each(((e,t)=>{"ResizeObserver"in window&&t.offsetParent&&t.offsetParent!==document.body?jQuery(t).data(q,function(e){const{offsetParent:t}=e,n=parseInt(flatsomeVars.sticky_height,10)+30,o={passive:!0,capture:!1};if(!t||t===document.body)return;let{innerHeight:i}=window,a=null,r=null,s=0,c=null,u=null;const d=(t="down")=>{const o=window.scrollY+n-Math.round(a?.top),l=i+s-n-Math.round(r?.height),d=Math.max(Math.min(l,Math.round(a?.height-r?.height)),0);let h=null,f=null;!a||r?.height<i-n?f=n:"down"===t?o<=s?h=d:r?.height-o<=i&&(f=i-Math.round(r?.height),s=o):"up"===t&&(o<=l?(f=n,s=o+Math.round(r?.height)-i+n):h=d),h===c&&f===u||(e.style.top="number"==typeof f?`${f}px`:f,e.style.transform="number"==typeof h?`translateY(${h}px)`:h),u=f,c=h},h=function(e){if("ResizeObserver"in window)return new ResizeObserver((function(t){for(let n=0;n<t.length;n++)e(t[n])}))}((({target:n,contentRect:o})=>{if(n===t){const e=R(t),{x:n,y:i,width:r,height:s}=o;a=new DOMRect(e.x+n,e.y+i,r,s)}else n===e&&(r=R(e),d())})),f=l(((e,{direction:t})=>d(t)),o),p=()=>{i=window.innerHeight,d()};return h?.observe(t),h?.observe(e),window.addEventListener("resize",p,o),()=>{f(),h?.disconnect(),window.removeEventListener("resize",p)}}(t)):jQuery(t).removeAttr("data-sticky-mode")}))},detach(e){jQuery('.is-sticky-column[data-sticky-mode="javascript"]',e).each(((e,t)=>{jQuery(t).data(q)?.()}))}}),r(6808),Flatsome.behavior("lottie",{attach(e){if("uxBuilder"===jQuery("html").attr("ng-app"))return;const t=jQuery(".ux-lottie__player",e);if(0===t.length)return;const n=O((e=>{e.isIntersecting&&(n.unobserve(e.target),function(e){const t=e,n=JSON.parse(t.dataset.params);let o=null,i=null,a=!1;function s(e){if(0===parseInt(e))return i.ip;if(100===parseInt(e))return i.op;const t=parseInt(i.ip),n=e*(parseInt(i.op)-t)/100+t;return Math.ceil(n)}Promise.all([r.e(970).then(r.bind(r,9371)),r.e(970).then(r.bind(r,1204))]).then((([,{create:e}])=>{t.load(n.src),t.addEventListener("ready",(()=>{o=t.getLottie(),i=o.animationData;const{autoplay:r,controls:l,direction:c,end:u,id:d,loop:h,mouseout:f,speed:p,start:y,trigger:m,scrollActionType:g,visibilityEnd:v,visibilityStart:b}=n;t.__controls=l,t.setLooping(h),t.setSpeed(parseFloat(p)),t.setDirection(c),"true"!==r&&"scroll"===m||o.playSegments([s(y),s(u)],!0),r||(t.pause(),"scroll"===m&&e({player:`#${d} .ux-lottie__player`,mode:"scroll",actions:[{visibility:[b/100,v/100],type:g,frames:[s(y),s(u)]}]}),"hover"===m&&(t.addEventListener("mouseenter",(()=>{"reverse"===f?(t.setDirection(c),t.play()):t.play()})),t.addEventListener("mouseleave",(()=>{"reverse"===f?(t.setDirection(-1===c?1:-1),t.play()):t.pause()}))),"click"===m&&t.addEventListener("click",(()=>{if(a)return t.pause(),void(a=!1);t.play(),a=!0})))}))}))}(e.target))}));t.each(((e,t)=>{n.observe(t)}))}}),k&&window.flatsomeVars.user.can_edit_pages&&("Prefer reduced motion is active on your OS","The prefers-reduced-motion media feature is used to detect if the user has requested the system minimize the amount of non-essential motion it uses. With this option enabled, slides & animations are reduced on the frontend.\nCheck your OS documentation on how to disable reduced motion.",console.groupCollapsed("%cFlatsome%c: Prefer reduced motion is active on your OS","color: #0693e3; font-weight: bold;","color: inherit;"),console.log("The prefers-reduced-motion media feature is used to detect if the user has requested the system minimize the amount of non-essential motion it uses. With this option enabled, slides & animations are reduced on the frontend.\nCheck your OS documentation on how to disable reduced motion."),console.groupEnd());let N=0;let W=0;const U="scrollBehavior"in document.documentElement.style,Y=window.getComputedStyle(document.documentElement)["scroll-behavior"];function X(){window.removeEventListener("keydown",X),window.removeEventListener("pointermove",X),window.removeEventListener("touchstart",X),function(){const e=jQuery("#header");if(!e.hasClass("has-sticky"))return;const t=e.clone();t.attr("id","header-clone").css("visibility","hidden");const n=t.find(".header-wrapper");n.addClass("stuck"),jQuery("body").append(t),N=Math.round(n.height()),t.remove(),window.flatsomeVars.stickyHeaderHeight=N,function(e,t=""){t&&document.documentElement.style.setProperty(e,t),window.getComputedStyle(document.documentElement).getPropertyValue(e)}("--flatsome--header--sticky-height",`${N}px`)}(),function(){const e=jQuery("#wpadminbar"),t=e.length&&e.is(":visible")?e.height():0;W=Math.round(window.flatsomeVars.stickyHeaderHeight+t),window.flatsomeVars.scrollPaddingTop=W,jQuery.extend(jQuery.easing,{fsEaseInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}}),jQuery.extend(jQuery.scrollTo.defaults,{axis:"y",duration:k||U&&"smooth"===Y?0:1e3,offset:-W,easing:"fsEaseInOutExpo"})}()}document.addEventListener("DOMContentLoaded",(()=>{window.location.hash||window.scrollY>200?X():(window.addEventListener("keydown",X,{once:!0}),window.addEventListener("pointermove",X,{once:!0}),window.addEventListener("touchstart",X,{once:!0}))}));for(const e of["touchstart","touchmove"])jQuery.event.special[e]={setup(t,n,o){this.addEventListener&&this.addEventListener(e,o,{passive:!n.includes("noPreventDefault")})}};for(const e of["wheel","mousewheel"])jQuery.event.special[e]={setup(t,n,o){this.addEventListener&&this.addEventListener(e,o,{passive:!0})}};jQuery((()=>r.g.Flatsome.attach(document))),r.g.Flatsome.cookie=function(e,t,n){if(void 0===t){const t=("; "+window.document.cookie).split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null}{!1===t&&(n=-1);let o="";if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),o=`; expires=${e.toGMTString()}`}window.document.cookie=`${e}=${t}${o}; path=/`}}}()}();
;/* global objectFitImages */
;(function () {
  function createObserver (handler) {
    return new IntersectionObserver(function (entries) {
      for (var i = 0; i < entries.length; i++) {
        handler(entries[i])
      }
    }, {
      rootMargin: '0px',
      threshold: 0.1
    })
  }

  Flatsome.behavior('lazy-load-images', {
    attach: function (context) {
      var observer = createObserver(function (entry) {
        if (entry.intersectionRatio > 0) {
          observer.unobserve(entry.target)

          var $el = jQuery(entry.target)
          var src = $el.data('src')
          var srcset = $el.data('srcset')

          if ($el.hasClass('lazy-load-active')) return
          else $el.addClass('lazy-load-active')

          if (src) $el.attr('src', src)
          if (srcset) $el.attr('srcset', srcset)

          $el.imagesLoaded(function () {
            $el.removeClass('lazy-load')
            if (typeof objectFitImages !== 'undefined') {
              objectFitImages($el)
            }
          })
        }
      })

      jQuery('.lazy-load', context).each(function (i, el) {
        observer.observe(el)
      })
    }
  })

  Flatsome.behavior('lazy-load-sliders', {
    attach: function (context) {
      var observer = createObserver(function (entry) {
        if (entry.intersectionRatio > 0) {
          observer.unobserve(entry.target)

          var $el = jQuery(entry.target)

          if ($el.hasClass('slider-lazy-load-active')) return
          else $el.addClass('slider-lazy-load-active')

          $el.imagesLoaded(function () {
            if ($el.hasClass('flickity-enabled')) {
              $el.flickity('resize')
            }
          })
        }
      })

      jQuery('.slider', context).each(function (i, el) {
        observer.observe(el)
      })
    }
  })

  Flatsome.behavior('lazy-load-packery', {
    attach: function (context) {
      var observer = createObserver(function (entry) {
        if (entry.intersectionRatio > 0) {
          observer.unobserve(entry.target)

          var $el = jQuery(entry.target)

          $el.imagesLoaded(function () {
            jQuery('.has-packery').packery('layout') // why global selector?
          })
        }
      })

      jQuery('.has-packery .lazy-load', context).each(function (i, el) {
        observer.observe(el)
      })
    }
  })
})()
;!function(){var t,e,o,i,n={5819:function(){Flatsome.behavior("equalize-box",{attach(t){let e={ScreenSize:{LARGE:1,MEDIUM:2,SMALL:3},equalizeItems:function(t){const e=this;e.maxHeight=0,e.rowEnd=e.disablePerRow?e.boxCount:e.colPerRow,e.$items=[],e.rating={present:!1,height:0,dummy:null},e.swatches={present:!1,height:0,dummy:null},jQuery(t,e.currentElement).each((function(t){const o=jQuery(this);e.$items.push(o),o.height(""),o.children(".js-star-rating").remove();const i=o.children(".star-rating");var n;i.length&&(e.rating.present=!0,e.rating.height=i.height(),e.rating.dummy=null!==(n=e.rating.dummy)&&void 0!==n?n:'<div class="js-star-rating '+i.attr("class")+'" style="opacity: 0; visibility: hidden"></div>'),o.children(".js-ux-swatches").remove();const r=o.children(".ux-swatches.ux-swatches-in-loop");var a;r.length&&(e.swatches.present=!0,e.swatches.height=r.height(),e.swatches.dummy=null!==(a=e.swatches.dummy)&&void 0!==a?a:'<div class="js-ux-swatches '+r.attr("class")+'" style="opacity: 0; visibility: hidden"><div class="'+r.find(".ux-swatch").attr("class")+'"></div></div>'),o.height()>e.maxHeight&&(e.maxHeight=o.height()),t!==e.rowEnd-1&&t!==e.boxCount-1||(e.$items.forEach((function(t){t.height(e.maxHeight),e.maybeAddDummyRating(t),e.maybeAddDummySwatches(t)})),e.rowEnd+=e.colPerRow,e.maxHeight=0,e.$items=[],e.rating.present=!1,e.swatches.present=!1)}))},getColsPerRow:function(){const t=jQuery(this.currentElement).attr("class"),e=/large-columns-(\d+)/g,o=/medium-columns-(\d+)/g,i=/small-columns-(\d+)/g;let n;switch(this.getScreenSize()){case this.ScreenSize.LARGE:return n=e.exec(t),n?parseInt(n[1]):3;case this.ScreenSize.MEDIUM:return n=o.exec(t),n?parseInt(n[1]):3;case this.ScreenSize.SMALL:return n=i.exec(t),n?parseInt(n[1]):2}},maybeAddDummyRating:function(t){let e=t;this.rating.present&&e.hasClass("price-wrapper")&&(e.children(".star-rating").length||(e.prepend(this.rating.dummy),e.children(".js-star-rating").height(this.rating.height)))},maybeAddDummySwatches:function(t){const e=t;this.swatches.present&&(e.children(".ux-swatches.ux-swatches-in-loop").length||(e.prepend(this.swatches.dummy),e.children(".js-ux-swatches").height(this.swatches.height)))},getScreenSize:function(){return window.matchMedia("(min-width: 850px)").matches?this.ScreenSize.LARGE:window.matchMedia("(min-width: 550px) and (max-width: 849px)").matches?this.ScreenSize.MEDIUM:window.matchMedia("(max-width: 549px)").matches?this.ScreenSize.SMALL:void 0},init:function(){const e=this,o=[".product-title",".price-wrapper",".box-excerpt",".add-to-cart-button"];jQuery(".equalize-box",t).each(((t,i)=>{e.currentElement=i,e.colPerRow=e.getColsPerRow(),1!==e.colPerRow&&(e.disablePerRow=jQuery(i).hasClass("row-slider")||jQuery(i).hasClass("row-grid"),e.boxCount=jQuery(".box-text",e.currentElement).length,o.forEach((t=>{e.equalizeItems(".box-text "+t)})),e.equalizeItems(".box-text"))}))}};e.init(),jQuery(window).on("resize",(()=>{e.init()})),jQuery(document).on("flatsome-equalize-box",(()=>{e.init()}))}})},394:function(){Flatsome.behavior("add-qty",{attach(t){jQuery(".quantity",t).addQty()}})},9016:function(){Flatsome.plugin("addQty",(function(t,e){const o=jQuery(t);String.prototype.uxGetDecimals||(String.prototype.uxGetDecimals=function(){const t=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}),o.off("click.flatsome",".plus, .minus").on("click.flatsome",".plus, .minus",(function(){const t=jQuery(this),e=t.closest(".quantity").find(".qty");let o=parseFloat(e.val()),i=parseFloat(e.attr("max")),n=parseFloat(e.attr("min")),r=e.attr("step");o&&""!==o&&"NaN"!==o||(o=0),""!==i&&"NaN"!==i||(i=""),""!==n&&"NaN"!==n||(n=0),"any"!==r&&""!==r&&void 0!==r&&"NaN"!==parseFloat(r)||(r=1),t.is(".plus")?i&&(i===o||o>i)?e.val(i):e.val((o+parseFloat(r)).toFixed(r.uxGetDecimals())):n&&(n===o||o<n)?e.val(n):o>0&&e.val((o-parseFloat(r)).toFixed(r.uxGetDecimals())),e.trigger("input"),e.trigger("change")}))}))},9144:function(){setTimeout((function(){jQuery(document.body).on("country_to_state_changed",(function(){"undefined"!=typeof floatlabels&&floatlabels.rebuild()}))}),500)},5460:function(){jQuery((function(t){t(document.body).on("change",".woocommerce-mini-cart-item .qty",(function(){var e;(e=t(this))[0].checkValidity()?function(e,o){const i=e.find(".remove_from_cart_button").attr("data-cart_item_key");i&&(e.block({message:null}),t.post(flatsomeVars.ajaxurl,{action:"flatsome_ajax_cart_item_alter_quantity",quantity:o,cart_item_key:i}).done((()=>{t(document.body).trigger("updated_wc_div"),t(document.body).trigger("added_to_cart"),e.unblock(),e=null})))}(e.closest(".woocommerce-mini-cart-item"),e.val()):e[0].reportValidity()}))}))},5261:function(){jQuery(document).ready((function(){if(!jQuery(".custom-product-page").length)return;const t=jQuery("#respond p.stars");if(t.length>1){const e=t[0].outerHTML;t.remove(),jQuery('select[id="rating"]').hide().before(e)}}))},4401:function(){jQuery(document).on("yith_infs_adding_elem",(function(t){Flatsome.attach(jQuery(".shop-container"))}))},8265:function(t,e,o){var i,n;!function(r,a){"use strict";i=[o(428)],n=function(t){!function(t){var e,o,i,n,r,a,s={loadingNotice:"Loading image",errorNotice:"The image could not be loaded",errorDuration:2500,linkAttribute:"href",preventClicks:!0,beforeShow:t.noop,beforeHide:t.noop,onShow:t.noop,onHide:t.noop,onMove:t.noop};function c(e,o){this.$target=t(e),this.opts=t.extend({},s,o,this.$target.data()),void 0===this.isOpen&&this._init()}c.prototype._init=function(){this.$link=this.$target.find("a"),this.$image=this.$target.find("img"),this.$flyout=t('<div class="easyzoom-flyout" />'),this.$notice=t('<div class="easyzoom-notice" />'),this.$target.on({"mousemove.easyzoom touchmove.easyzoom":t.proxy(this._onMove,this),"mouseleave.easyzoom touchend.easyzoom":t.proxy(this._onLeave,this),"mouseenter.easyzoom touchstart.easyzoom":t.proxy(this._onEnter,this)}),this.opts.preventClicks&&this.$target.on("click.easyzoom",(function(t){t.preventDefault()}))},c.prototype.show=function(t,r){var a=this;if(!1!==this.opts.beforeShow.call(this)){if(!this.isReady)return this._loadImage(this.$link.attr(this.opts.linkAttribute),(function(){!a.isMouseOver&&r||a.show(t)}));this.$target.append(this.$flyout);var s=this.$target.outerWidth(),c=this.$target.outerHeight(),l=this.$flyout.width(),u=this.$flyout.height(),d=this.$zoom.width(),h=this.$zoom.height();e=Math.ceil(d-l),o=Math.ceil(h-u),i=(e=e<0?0:e)/s,n=(o=o<0?0:o)/c,this.isOpen=!0,this.opts.onShow.call(this),t&&this._move(t)}},c.prototype._onEnter=function(t){var e=t.originalEvent.touches;this.isMouseOver=!0,e&&1!=e.length||(t.preventDefault(),this.show(t,!0))},c.prototype._onMove=function(t){this.isOpen&&(t.preventDefault(),this._move(t))},c.prototype._onLeave=function(){this.isMouseOver=!1,this.isOpen&&this.hide()},c.prototype._onLoad=function(t){t.currentTarget.width&&(this.isReady=!0,this.$notice.detach(),this.$flyout.html(this.$zoom),this.$target.removeClass("is-loading").addClass("is-ready"),t.data.call&&t.data())},c.prototype._onError=function(){var t=this;this.$notice.text(this.opts.errorNotice),this.$target.removeClass("is-loading").addClass("is-error"),this.detachNotice=setTimeout((function(){t.$notice.detach(),t.detachNotice=null}),this.opts.errorDuration)},c.prototype._loadImage=function(e,o){var i=new Image;this.$target.addClass("is-loading").append(this.$notice.text(this.opts.loadingNotice)),this.$zoom=t(i).on("error",t.proxy(this._onError,this)).on("load",o,t.proxy(this._onLoad,this)),i.style.position="absolute",i.src=e},c.prototype._move=function(t){a=0===t.type.indexOf("touch")?(s=t.touches||t.originalEvent.touches,r=s[0].pageX,s[0].pageY):(r=t.pageX||r,t.pageY||a);var s=this.$target.offset();t=r-s.left,s=a-s.top,t=Math.ceil(t*i),s=Math.ceil(s*n),t<0||s<0||e<t||o<s?this.hide():(s*=-1,t*=-1,"transform"in document.body.style?this.$zoom.css({transform:"translate("+t+"px, "+s+"px)"}):this.$zoom.css({top:s,left:t}),this.opts.onMove.call(this,s,t))},c.prototype.hide=function(){this.isOpen&&!1!==this.opts.beforeHide.call(this)&&(this.$flyout.detach(),this.isOpen=!1,this.opts.onHide.call(this))},c.prototype.swap=function(e,o,i){this.hide(),this.isReady=!1,this.detachNotice&&clearTimeout(this.detachNotice),this.$notice.parent().length&&this.$notice.detach(),this.$target.removeClass("is-loading is-ready is-error"),this.$image.attr({src:e,srcset:t.isArray(i)?i.join():i}),this.$link.attr(this.opts.linkAttribute,o)},c.prototype.teardown=function(){this.hide(),this.$target.off(".easyzoom").removeClass("is-loading is-ready is-error"),this.detachNotice&&clearTimeout(this.detachNotice),delete this.$link,delete this.$zoom,delete this.$image,delete this.$notice,delete this.$flyout,delete this.isOpen,delete this.isReady},t.fn.easyZoom=function(e){return this.each((function(){var o=t.data(this,"easyZoom");o?void 0===o.isOpen&&o._init():t.data(this,"easyZoom",new c(this,e))}))}}(t)}.apply(e,i),void 0===n||(t.exports=n)}()},428:function(t){"use strict";t.exports=window.jQuery}},r={};function a(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}};return n[t].call(o.exports,o,o.exports,a),o.exports}a.m=n,e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(o,i){if(1&i&&(o=this(o)),8&i)return o;if("object"==typeof o&&o){if(4&i&&o.__esModule)return o;if(16&i&&"function"==typeof o.then)return o}var n=Object.create(null);a.r(n);var r={};t=t||[null,e({}),e([]),e(e)];for(var s=2&i&&o;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){r[t]=function(){return o[t]}}));return r.default=function(){return o},a.d(n,r),n},a.d=function(t,e){for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,o){return a.f[o](t,e),e}),[]))},a.u=function(t){return"js/chunk.popups.js"},a.miniCssF=function(t){},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o={},i="flatsome:",a.l=function(t,e,n,r){if(o[t])o[t].push(e);else{var s,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==i+n){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",i+n),s.src=t),o[t]=[e];var h=function(e,i){s.onerror=s.onload=null,clearTimeout(m);var n=o[t];if(delete o[t],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((function(t){return t(i)})),e)return e(i)},m=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){const t=a.u;a.u=e=>{const o=t(e),i=globalThis.flatsomeVars?.theme.version;return o+(i?"?ver="+i:"")}}(),a.p=globalThis.flatsomeVars?.assets_url??"/",function(){var t={643:0};a.f.j=function(e,o){var i=a.o(t,e)?t[e]:void 0;if(0!==i)if(i)o.push(i[2]);else{var n=new Promise((function(o,n){i=t[e]=[o,n]}));o.push(i[2]=n);var r=a.p+a.u(e),s=new Error;a.l(r,(function(o){if(a.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var n=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;s.message="Loading chunk "+e+" failed.\n("+n+": "+r+")",s.name="ChunkLoadError",s.type=n,s.request=r,i[1](s)}}),"chunk-"+e,e)}};var e=function(e,o){var i,n,r=o[0],s=o[1],c=o[2],l=0;if(r.some((function(e){return 0!==t[e]}))){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);c&&c(a)}for(e&&e(o);l<r.length;l++)n=r[l],a.o(t,n)&&t[n]&&t[n][0](),t[n]=0},o=self.flatsomeChunks=self.flatsomeChunks||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))}(),function(){"use strict";a(9016),a(394),a(5819);const t=window.matchMedia("(prefers-reduced-motion: reduce)");let e=!1;function o(){e="undefined"==typeof UxBuilder&&t.matches}function i(){return jQuery.fn.magnificPopup?Promise.resolve():a.e(230).then(a.t.bind(a,2801,23))}o(),t.addEventListener?.("change",o),jQuery.loadMagnificPopup=i,jQuery.fn.lazyMagnificPopup=function(t){const e=jQuery(this),o=t.delegate?e.find(t.delegate):e;return o.one("click",(n=>{n.preventDefault(),i().then((()=>{e.data("magnificPopup")||e.magnificPopup(t),e.magnificPopup("open",o.index(n.currentTarget)||0)}))})),e},Flatsome.behavior("quick-view",{attach:function(t){"uxBuilder"!==jQuery("html").attr("ng-app")&&jQuery(".quick-view",t).each((function(t,o){jQuery(o).hasClass("quick-view-added")||(jQuery(o).on("click",(function(t){if(""!=jQuery(this).attr("data-prod")){jQuery(this).parent().parent().addClass("processing");var n={action:"flatsome_quickview",product:jQuery(this).attr("data-prod")};jQuery.post(flatsomeVars.ajaxurl,n,(function(t){i().then((()=>{jQuery(".processing").removeClass("processing"),jQuery.magnificPopup.open({removalDelay:300,autoFocusLast:!1,closeMarkup:flatsomeVars.lightbox.close_markup,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,items:{src:'<div class="product-lightbox lightbox-content">'+t+"</div>",type:"inline"},callbacks:{afterClose:()=>{jQuery(o).closest(".box").find(".box-text a:first").trigger("focus")}}}),setTimeout((function(){const t=jQuery(".product-lightbox");t.imagesLoaded((function(){const t={cellAlign:"left",wrapAround:!0,autoPlay:!1,prevNextButtons:!0,adaptiveHeight:!0,imagesLoaded:!0,dragThreshold:15,rightToLeft:flatsomeVars.rtl};e&&(t.friction=1,t.selectedAttraction=1),jQuery(".product-lightbox .slider").lazyFlickity(t)})),Flatsome.attach("tooltips",t)}),300);let i=jQuery(".product-lightbox form.variations_form");jQuery(".product-lightbox form").hasClass("variations_form")&&i.wc_variation_form();let n=jQuery(".product-lightbox .product-gallery-slider"),r=jQuery(".product-lightbox .product-gallery-slider .slide.first img"),a=jQuery(".product-lightbox .product-gallery-slider .slide.first a"),s=r.attr("data-src")?r.attr("data-src"):r.attr("src");const c=jQuery.Deferred();n.one("flatsome-flickity-ready",(()=>c.resolve()));let l=function(){n.data("flickity")&&n.flickity("select",0)},u=function(){n.data("flickity")&&n.imagesLoaded((function(){n.flickity("resize")}))};jQuery.when(c).done((()=>{i.on("hide_variation",(function(t,e){r.attr("src",s).attr("srcset",""),u()})),i.on("click",".reset_variations",(function(){r.attr("src",s).attr("srcset",""),l(),u()}))})),i.on("show_variation",(function(t,e){jQuery.when(c).done((()=>{e.image.src?(r.attr("src",e.image.src).attr("srcset",""),a.attr("href",e.image_link),l(),u()):e.image_src&&(r.attr("src",e.image_src).attr("srcset",""),a.attr("href",e.image_link),l(),u())}))})),jQuery(".product-lightbox .quantity").addQty()}))})),t.preventDefault()}})),jQuery(o).addClass("quick-view-added"))}))}}),jQuery((function(t){t(".ux-buy-now-button").each((function(){const e=t(this),o=e.closest("form").find(".single_add_to_cart_button");o.length&&function(t){if("MutationObserver"in window)return new MutationObserver((function(e){for(let o=0;o<e.length;o++)t(e[o])}))}((function(t){const o=t.target.classList.contains("disabled");e.toggleClass("disabled",o)})).observe(o.get(0),{attributes:!0,attributeFilter:["class"]})}))})),jQuery(document.body).on("click",".variations_form .ux-buy-now-button",(function(t){const e=jQuery(this).siblings(".single_add_to_cart_button");"undefined"!=typeof wc_add_to_cart_variation_params&&e.hasClass("disabled")&&(t.preventDefault(),e.hasClass("wc-variation-is-unavailable")?alert(wc_add_to_cart_variation_params.i18n_unavailable_text):e.hasClass("wc-variation-selection-needed")&&alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text))})),a(9144),jQuery((function(t){const e={openDrawer:null,openDropdown:null};function o(){!t(".cart-item .nav-dropdown").length||window.matchMedia("(max-width: 849px)").matches&&t(".header-main .cart-item .header-cart-link.off-canvas-toggle").length?function(){let o=0;if(t.fn.magnificPopup){if(o=t.magnificPopup.instance?.isOpen?300:0,o&&"#cart-popup"===t.magnificPopup.instance?.currItem?.src)return;o&&t.magnificPopup.close()}e.openDrawer&&clearTimeout(e.openDrawer),e.openDrawer=setTimeout((()=>{t(".cart-item .off-canvas-toggle").trigger("click")}),o)}():(t(".cart-item.has-dropdown").addClass("current-dropdown cart-active"),e.openDropdown&&clearTimeout(e.openDropdown),e.openDropdown=setTimeout((()=>{t(".cart-active").removeClass("current-dropdown")}),5e3))}function i(){o(),function(){const e=t("#header"),o=e.hasClass("has-sticky"),i=e.hasClass("sticky-hide-on-scroll--active"),n=t(".cart-item.has-dropdown").length>0;o&&n&&i&&(t(".header-wrapper",e).addClass("stuck"),e.removeClass("sticky-hide-on-scroll--active"))}()}!function(){t("span.added-to-cart").length&&o();const e=t(".cart-item.has-dropdown");(function(t){switch(t){case"0":case"false":case!1:return!1;case"1":case"true":case!0:return!0;default:return Boolean(t)}})(window.flatsomeVars.is_mini_cart_reveal)&&t("body").on("added_to_cart",i),t(document).on("flatsome-open-mini-cart",o),t(".shop-container").on("click",(()=>e.removeClass("current-dropdown cart-active"))),e.hover((()=>t(".cart-active").removeClass("cart-active")))}()})),a(5460),a(8265);var n=!1;const r=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);function s(){return window.flatsomeVars.scrollPaddingTop}jQuery(document).on("flatsome-product-gallery-tools-init",(()=>{r||(n=jQuery(".has-image-zoom .slide").easyZoom({loadingNotice:"",preventClicks:!1})),jQuery(".zoom-button").off("click.flatsome").on("click.flatsome",(function(t){jQuery(".product-gallery-slider").find(".is-selected a").trigger("click"),t.preventDefault()})),jQuery(".has-lightbox .product-gallery-slider").each((function(){jQuery(this).lazyMagnificPopup({delegate:"a",type:"image",tLoading:'<div class="loading-spin centered dark"></div>',closeMarkup:flatsomeVars.lightbox.close_markup,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],arrowMarkup:'<button class="mfp-arrow mfp-arrow-%dir%" title="%title%"><i class="icon-angle-%dir%"></i></button>'},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',verticalFit:!1}})}))})),jQuery((function(t){const e=t(".product-thumbnails .first img").attr("data-src")?t(".product-thumbnails .first img").attr("data-src"):t(".product-thumbnails .first img").attr("src"),o=t("form.variations_form"),i=t(".product-gallery-slider"),a=t(".product-thumbnails");let s=null;const c=t.Deferred(),l=t.Deferred();i.one("flatsome-flickity-ready",(()=>c.resolve())),a.one("flatsome-flickity-ready",(()=>l.resolve())),a.length&&!a.is(":hidden")||l.resolve();const u=function(){n&&n.length&&(s=n.filter(".has-image-zoom .slide.first").data("easyZoom"),s.swap(t(".has-image-zoom .slide.first img").attr("src"),t(".has-image-zoom .slide.first img").attr("data-large_image")))},d=function(){i.data("flickity")&&i.flickity("select",0)},h=function(){i.data("flickity")&&i.imagesLoaded((function(){i.flickity("resize")}))};t.when(c).then((()=>{t(document).trigger("flatsome-product-gallery-tools-init")}));const m=t.when(c,l).then((()=>{r&&h(),o.on("hide_variation",(function(o,i){t(".product-thumbnails .first img, .sticky-add-to-cart-img").attr("src",e),h()})),o.on("click",".reset_variations",(function(){t(".product-thumbnails .first img, .sticky-add-to-cart-img").attr("src",e),d(),u(),h()}))}));o.on("show_variation",(function(o,i){t.when(m).done((()=>{i.hasOwnProperty("image")&&i.image.thumb_src?(t(".product-gallery-slider-old .slide.first img, .sticky-add-to-cart-img, .product-thumbnails .first img, .product-gallery-slider .slide.first .zoomImg").attr("src",i.image.thumb_src).attr("srcset",""),d(),u(),h()):(t(".product-thumbnails .first img").attr("src",e),h())}))}))})),document.documentElement.style,window.getComputedStyle(document.documentElement)["scroll-behavior"],jQuery((function(t){if(!document.body.classList.contains("single-product"))return;const e=window.location.hash,o=window.location.href;function i(){!function(){const e=t(".reviews_tab"),o=e.length?e:t("#reviews").closest(".accordion-item");o.length&&o.find("a:not(.active):first").trigger("click")}(),setTimeout((()=>{t.scrollTo("#reviews",{offset:-s()-15})}),500)}(e.toLowerCase().indexOf("comment-")>=0||"#comments"===e||"#reviews"===e||"#tab-reviews"===e||o.indexOf("comment-page-")>0||o.indexOf("cpage=")>0)&&i(),t("a.woocommerce-review-link").on("click",(function(t){t.preventDefault(),history.pushState(null,null,"#reviews"),i()}))})),a(5261),jQuery((function(t){const e=t(".sticky-add-to-cart");if(!e.length)return;const o=function(t,e={}){return new IntersectionObserver((function(e){for(let o=0;o<e.length;o++)t(e[o])}),{rootMargin:"0px",threshold:.1,...e})}((o=>{const{top:i}=o.boundingClientRect,n=o.intersectionRatio<=0&&i<=0;e.toggleClass("sticky-add-to-cart--active",n),t("body").toggleClass("has-sticky-product-cart",n)}),{threshold:0});t(".sticky-add-to-cart-select-options-button",e).on("click",(function(e){e.preventDefault(),t.scrollTo(".product form.variations_form",{offset:-s()-15})}));const i=e.data("product-id")||0;function n(e,o){e.on("change",(function(){o.val(t(this).val())}))}t(`#product-${i} button.single_add_to_cart_button:visible`).first().each(((i,r)=>{const a=t(r).closest("form.cart");n(t(".qty",e),t(".qty",a)),n(t(".qty",a),t(".qty",e)),o.observe(r)}))})),a(4401),jQuery("table.my_account_orders").wrap('<div class="touch-scroll-table"/>'),jQuery(document.body).on("submit","form.cart",(function(t){if(void 0===t.originalEvent)return;const e=jQuery(t.originalEvent.submitter);e.is(".single_add_to_cart_button, .ux-buy-now-button")&&(e.hasClass("disabled")||e.addClass("loading"),jQuery(window).on("pageshow",(()=>{e.hasClass("loading")&&e.removeClass("loading")})))})),jQuery(document.body).on("updated_cart_totals",(function(){jQuery(document).trigger("yith_wcwl_reload_fragments");const t=jQuery(".cart-wrapper");Flatsome.attach("lazy-load-images",t),Flatsome.attach("quick-view",t),Flatsome.attach("wishlist",t),Flatsome.attach("cart-refresh",t),Flatsome.attach("equalize-box",t)})),jQuery(document).ajaxComplete((function(){Flatsome.attach("add-qty",jQuery(".quantity").parent()),Flatsome.attach("lightboxes-link",jQuery(".woocommerce-checkout .woocommerce-terms-and-conditions-wrapper"))})),jQuery(document.body).on("wc_fragments_refreshed wc_fragments_loaded",(function(){Flatsome.attach("add-qty",jQuery(".quantity").parent())})),jQuery(document.body).on("updated_checkout",(function(){Flatsome.attach("lightboxes-link",jQuery(".woocommerce-checkout .woocommerce-terms-and-conditions-wrapper"))})),jQuery(".disable-lightbox a").on("click",(function(t){t.preventDefault()})),jQuery((function(t){t.scroll_to_notices=function(e){t.scrollTo(e)}})),jQuery((function(t){t("#login-form-popup").find(".woocommerce-notices-wrapper > ul").length>0&&t('[data-open="#login-form-popup"]').trigger("click")}))}()}();
;