/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s}); "use strict";var WPMLLanguageSwitcherDropdown=function(){function t(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}return{init:function(){for(var e=document.querySelectorAll(".js-wpml-ls-legacy-dropdown a.js-wpml-ls-item-toggle"),n=0;ne.offsetHeight+100?t.style.display="block":t.style.display="none":300{e.classList.remove("ast-submenu-expanded"),Array.from(e.querySelectorAll(".sub-menu")).forEach(e=>{e.hasAttribute("data-initial-display")||e.setAttribute("data-initial-display",window.getComputedStyle(e).display),"block"===e.getAttribute("data-initial-display")?e.style.display="block":e.style.display="none"})});var t=document.querySelectorAll(".menu-toggle");document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),document.documentElement.classList.remove("ast-off-canvas-active");for(var a=0;a #ast-desktop-header .ast-desktop-header-content"),n=document.querySelector(".elementor-editor-active"),a&&(a.style.display="none"),(null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth)!==s&&(t&&null===n&&t.click(),document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),e)&&null==n&&e.click(),h(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){if(AstraToggleSetup(),null!==(e=u.classList.contains("ast-header-break-point")?document.getElementById("ast-mobile-header"):document.getElementById("ast-desktop-header"))){var e,t=e.querySelector(".navigation-accessibility");if(t&&e){var a=e.getElementsByTagName("button")[0];if(void 0===a){if(!0===(a=e.getElementsByTagName("a")[0]).classList.contains("astra-search-icon"))return;if(void 0===a)return}var n=t.getElementsByTagName("ul")[0];if(void 0===n)a.style.display="none";else{if(-1===n.className.indexOf("nav-menu")&&(n.className+=" nav-menu"),document.addEventListener("DOMContentLoaded",function(){var e;"off-canvas"===d&&(e=document.getElementById("menu-toggle-close"))&&(e.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))})}),a.onclick=function(){-1!==t.className.indexOf("toggled")?(t.className=t.className.replace(" toggled",""),a.setAttribute("aria-expanded","false"),n.setAttribute("aria-expanded","false")):(t.className+=" toggled",a.setAttribute("aria-expanded","true"),n.setAttribute("aria-expanded","true"))},!astra.is_header_footer_builder_active){for(var s=n.getElementsByTagName("a"),o=n.getElementsByTagName("ul"),r=0,l=o.length;r a .ast-header-navigation-arrow"),a=document.querySelectorAll("nav.site-navigation .sub-menu"),n=document.querySelectorAll("nav.site-navigation .menu-item-has-children"),s=document.querySelectorAll(".astra-full-megamenu-wrapper");t&&(t.forEach(e=>{e.addEventListener("keydown",function(a){"Enter"===a.key&&(a.target.closest("li").querySelector(".sub-menu").classList.contains("astra-megamenu")?setTimeout(()=>{var e=a.target.closest("li").querySelector(".sub-menu"),t=a.target.closest("li").querySelector(".astra-full-megamenu-wrapper");e&&e.classList.toggle("astra-megamenu-focus"),t&&t.classList.toggle("astra-megamenu-wrapper-focus"),a.target.closest("li").classList.toggle("ast-menu-hover"),"false"!==a.target.getAttribute("aria-expanded")&&a.target.getAttribute("aria-expanded")?a.target.setAttribute("aria-expanded","false"):a.target.setAttribute("aria-expanded","true")},10):setTimeout(()=>{a.target.closest("li").querySelector(".sub-menu").classList.toggle("toggled-on"),a.target.closest("li").classList.toggle("ast-menu-hover"),"false"!==a.target.getAttribute("aria-expanded")&&a.target.getAttribute("aria-expanded")?a.target.setAttribute("aria-expanded","false"):a.target.setAttribute("aria-expanded","true")},10))})}),(a||n)&&document.addEventListener("click",function(e){b(a,t,n,s)},!1),a||n)&&document.addEventListener("keydown",function(e){"Escape"===e.key&&b(a,t,n,s)},!1);var e=document.querySelectorAll("nav.site-navigation .ast-nav-menu > .menu-item-has-children > a .ast-header-navigation-arrow");e&&e.forEach(e=>{e.addEventListener("keydown",function(e){e.target.closest("li").classList.contains("ast-menu-hover")||"Enter"!==e.key||b(a,t,n,s)},!1)})}()}}}});for(var t,a,o,l,h=function(){var e=u.style.overflow,t=(u.style.overflow="hidden",document.documentElement.clientWidth);if(u.style.overflow=e,astra.break_point .menu-link, ul.main-header-menu .ast-menu-toggle"):t[r].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var l=0;l #ast-mobile-header .main-header-bar-navigation"),t=(r=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0");if(null!==this.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),r=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),t="0"),void 0===e[t])return!1;for(var a=e[t].querySelectorAll(".menu-item-has-children"),n=0;n{e.classList.remove("astra-megamenu-focus"),e.classList.remove("toggled-on")}),a&&a.forEach(e=>{e.classList.remove("ast-menu-hover")}),n&&n.forEach(e=>{e.classList.remove("astra-megamenu-wrapper-focus")}),t&&t.forEach(e=>{e.setAttribute("aria-expanded","false")})}function L(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&null===e.closest(".ast-builder-menu")&&-1!==new String(e).indexOf("#")){var t=e.parentNode;if(u.classList.contains("ast-header-break-point"))document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&t.classList.contains("menu-item-has-children")||(document.querySelector(".main-header-menu-toggle").classList.remove("toggled"),(t=document.querySelector(".main-header-bar-navigation")).classList.remove("toggle-on"),t.style.display="none",astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked"));else for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement}}function E(){for(var e=this;-1===e.className.indexOf("navigation-accessibility");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("focus"),e=e.parentElement}if(document.querySelectorAll(".search-field").forEach(e=>{e.addEventListener("focus",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&astraToggleClass(t,"ast-dropdown-active")}),e.addEventListener("blur",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&(t.classList.remove("ast-dropdown-active"),astraToggleClass(t,"ast-dropdown-active"))})}),u.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a{t+=e.clientHeight}),a=this.hash)&&(a=document.querySelector(a))&&(a=a.offsetTop-t)&&astraSmoothScroll(e,a)}window.addEventListener("DOMContentLoaded",e=>{for(var a of t)if(window.location.href.split("#")[0]===a.url){var n=document.querySelector(".site-header");let t=0;n=n.querySelectorAll("div[data-stick-support]"),n=(n&&n.forEach(e=>{t+=e.clientHeight}),document.querySelector(a.hash));n&&(a=n.offsetTop-t)&&astraSmoothScroll(e,a)}})}astra.is_scroll_to_top&&(o=document.querySelector("#page header"),l=document.getElementById("ast-scroll-top"),astScrollToTopHandler(o,l),window.addEventListener("scroll",function(){astScrollToTopHandler(o,l)}),l.onclick=function(e){astraSmoothScroll(e,0)},l.addEventListener("keydown",function(e){"Enter"===e.key&&astraSmoothScroll(e,0)})),window.addEventListener("DOMContentLoaded",e=>{document.querySelector(".woocommerce-store-notice__dismiss-link")?.addEventListener("click",()=>!wp?.customize&&document.body.classList.remove("ast-woocommerce-store-notice-hanged"))})}(),document.addEventListener("DOMContentLoaded",function(){function t(e){var e=e.closest(".menu-link"),t=e.nextElementSibling.classList.contains("toggled-on");e.setAttribute("aria-expanded",t?"true":"false")}document.querySelectorAll(".menu-link .dropdown-menu-toggle").forEach(function(e){e.addEventListener("focus",function(){t(this)}),e.addEventListener("blur",function(){t(this)}),e.addEventListener("keydown",function(e){var t;"Enter"===e.key&&(e=(e=this).closest(".menu-link"),t=e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded","true"===t?"false":"true"))})}),document.addEventListener("keydown",function(e){"Escape"===e.key&&document.querySelectorAll(".menu-link .dropdown-menu-toggle").forEach(function(e){t(e)})})}); (()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?[a-z][-a-z0-9_:]*)(?(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&6t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?[a-z]+)\/(?[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).lengtht.trim())).filter((t=>""!==t));if(parseInt(this.threshold)t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&it.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&tt.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold{t instanceof File&&(i+=t.size)})),i{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})(); (()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`${a}`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})(); /*! PowerTip v1.3.0 (2017-01-15) https://stevenbenner.github.io/jquery-powertip/ Copyright (c) 2017 Steven Benner (http://stevenbenner.com/). Released under MIT license. https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt */ !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){function b(){var b=this;b.top="auto",b.left="auto",b.right="auto",b.bottom="auto",b.set=function(c,d){a.isNumeric(d)&&(b[c]=Math.round(d))}}function c(a,b,c){function d(d,e){g(),a.data(u)?h():d?(e&&a.data(v,!0),i(),c.showTip(a)):(E.tipOpenImminent=!0,k=setTimeout(function(){k=null,f()},b.intentPollInterval))}function e(d){l&&(l=E.closeDelayTimeout=clearTimeout(l),E.delayInProgress=!1),g(),E.tipOpenImminent=!1,a.data(u)&&(a.data(v,!1),d?c.hideTip(a):(E.delayInProgress=!0,E.closeDelayTimeout=setTimeout(function(){E.closeDelayTimeout=null,c.hideTip(a),E.delayInProgress=!1,l=null},b.closeDelay),l=E.closeDelayTimeout))}function f(){var e=Math.abs(E.previousX-E.currentX),f=Math.abs(E.previousY-E.currentY),g=e+f;g-1||a.inArray("mouseout",c.closeEvents)>-1||a.inArray("blur",c.closeEvents)>-1||a.inArray("focusout",c.closeEvents)>-1)&&(E.activeHover.data(u)===!1||E.activeHover.is(":disabled")?b=!0:m(E.activeHover)||E.activeHover.is(":focus")||E.activeHover.data(v)||(y.data(x)?m(y)||(b=!0):b=!0),b&&g(E.activeHover))}var l=new d,y=a("#"+c.popupId);0===y.length&&(y=a("
",{id:c.popupId}),0===s.length&&(s=a("body")),s.append(y),E.tooltips=E.tooltips?E.tooltips.add(y):y),c.followMouse&&(y.data(w)||(q.on("mousemove"+C,h),r.on("scroll"+C,h),y.data(w,!0))),this.showTip=e,this.hideTip=g,this.resetPosition=i}function f(a){return Boolean(window.SVGElement&&a[0]instanceof SVGElement)}function g(a){return Boolean(a&&"number"==typeof a.pageX)}function h(){E.mouseTrackingActive||(E.mouseTrackingActive=!0,i(),a(i),q.on("mousemove"+C,l),r.on("resize"+C,j),r.on("scroll"+C,k))}function i(){E.scrollLeft=r.scrollLeft(),E.scrollTop=r.scrollTop(),E.windowWidth=r.width(),E.windowHeight=r.height()}function j(){E.windowWidth=r.width(),E.windowHeight=r.height()}function k(){var a=r.scrollLeft(),b=r.scrollTop();a!==E.scrollLeft&&(E.currentX+=a-E.scrollLeft,E.scrollLeft=a),b!==E.scrollTop&&(E.currentY+=b-E.scrollTop,E.scrollTop=b)}function l(a){E.currentX=a.pageX,E.currentY=a.pageY}function m(a){var b=a.offset(),c=a[0].getBoundingClientRect(),d=c.right-c.left,e=c.bottom-c.top;return E.currentX>=b.left&&E.currentX<=b.left+d&&E.currentY>=b.top&&E.currentY<=b.top+e}function n(b){var c,d,e=b.data(z),f=b.data(A),g=b.data(B);return e?(a.isFunction(e)&&(e=e.call(b[0])),d=e):f?(a.isFunction(f)&&(f=f.call(b[0])),f.length>0&&(d=f.clone(!0,!0))):g&&(c=a("#"+g),c.length>0&&(d=c.html())),d}function o(a,b,c){var d=E.scrollTop,e=E.scrollLeft,f=d+E.windowHeight,g=e+E.windowWidth,h=F.none;return(a.topf||Math.abs(a.bottom-E.windowHeight)>f)&&(h|=F.bottom),(a.leftg)&&(h|=F.left),(a.left+b>g||a.right-1?j.on(c+C,function(b){a.powerTip.toggle(this,b)}):j.on(c+C,function(b){a.powerTip.show(this,b)})}),a.each(f.closeEvents,function(b,c){a.inArray(c,f.openEvents)<0&&j.on(c+C,function(b){a.powerTip.hide(this,!g(b))})}),j.on("keydown"+C,function(b){27===b.keyCode&&a.powerTip.hide(this,!0)})),E.elements=E.elements?E.elements.add(j):j,j):j},a.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:!1,popupId:"powerTip",popupClass:null,intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:!1,offset:10,mouseOnToPopup:!1,manual:!1,openEvents:["mouseenter","focus"],closeEvents:["mouseleave","blur"]},a.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]},a.powerTip={show:function(b,c){return g(c)?(l(c),E.previousX=c.pageX,E.previousY=c.pageY,a(b).data(t).show()):a(b).first().data(t).show(!0,!0),b},reposition:function(b){return a(b).first().data(t).resetPosition(),b},hide:function(b,c){var d;return c=!b||c,b?d=a(b).first().data(t):E.activeHover&&(d=E.activeHover.data(t)),d&&d.hide(c),b},toggle:function(b,c){return E.activeHover&&E.activeHover.is(b)?a.powerTip.hide(b,!g(c)):a.powerTip.show(b,c),b},destroy:function(b){var c=b?a(b):E.elements;return E.elements&&0!==E.elements.length?(c.off(C).each(function(){var b=a(this),c=[y,t,u,v];b.data(y)&&(b.attr("title",b.data(y)),c.push(z)),b.removeData(c)}),E.elements=E.elements.not(c),0===E.elements.length&&(r.off(C),q.off(C),E.mouseTrackingActive=!1,E.tooltips.remove(),E.tooltips=null),b):b}},a.powerTip.showTip=a.powerTip.show,a.powerTip.closeTip=a.powerTip.hide,a.powerTip}); (function($){function ihotspotInit(){$('.ihotspot_hastooltop').each(function(){$(this).data('powertip',function(){var htmlThis=$(this).parents('.ihotspot_tooltop_html').attr('data-html');return htmlThis;});var thisPlace=$(this).parents('.ihotspot_tooltop_html').data('placement');$(this).powerTip({placement:thisPlace,smartPlacement:true,mouseOnToPopup:true,}).on({powerTipClose:function(){$('#powerTip').html('');}});});} $('body').on('click','.close_ihp',function(){$.powerTip.hide();});$(document).ready(function(){ihotspotInit();});let firstLoad=true;function scroll_element(){let $top=$(window).scrollTop();if($top>=100&&firstLoad){ihotspotInit();firstLoad=false;}} $(window).scroll(function(){scroll_element();});$(window).bind('touchmove',function(e){scroll_element();});})(jQuery); /*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),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.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.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())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n})); !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=101)}({101:function(e,t,n){"use strict";n.r(t);var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l0){var s=a.data("custom-id-offset");s=s?parseFloat(s):0,e("html, body").animate({scrollTop:e(o).offset().top-s},300)}}}catch(e){}})),e(document).on("click",".e-n-tab-title",(function(){setTimeout((function(){window.dispatchEvent(new Event("resize"))}),100)}))}(jQuery),(w=jQuery)(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(e){var t=w(this),n=t.closest(".quantity").find(".qty"),r=parseFloat(n.val()),o=parseFloat(n.attr("max")),i=parseFloat(n.attr("min")),a=n.attr("step");r&&""!==r&&"NaN"!==r||(r=0),""!==o&&"NaN"!==o||(o=""),""!==i&&"NaN"!==i||(i=0),"any"!==a&&""!==a&&void 0!==a&&"NaN"!==parseFloat(a)||(a=1),t.hasClass("nm-qty-plus")?o&&(o==r||r>o)?n.val(o):n.val(r+parseFloat(a)):i&&(i==r||r0&&n.val(r-parseFloat(a))})),function(e){e.fn.isInViewport=function(){if(e(this).length<1)return!1;var t=e(this).offset().top,n=t+e(this).outerHeight()/2,r=e(window).scrollTop(),o=r+e(window).height()/2;return n>r&&t
")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0o?0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); /*! * jQuery UI Slider 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","./mouse","../keycode","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.slider",o.ui.mouse,{version:"1.13.3",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("
").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t=this._valueMax()?this._valueMax():(t=0=t&&(i+=0this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var e=e.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,u=!this._animateOff&&h.animate,r={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,r["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[u?"animate":"css"](r,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,r["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](r,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1!==this._start(e,a)))break;return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})}); /*! * jQuery UI Touch Punch 0.2.3 * * Copyright 2011–2014, Dave Furfero * Dual licensed under the MIT or GPL Version 2 licenses. * * Depends: * jquery.ui.widget.js * jquery.ui.mouse.js */ !function(o){function t(o,t){if(!(o.originalEvent.touches.length>1)){o.preventDefault();var e=o.originalEvent.changedTouches[0],u=document.createEvent("MouseEvents");u.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),o.target.dispatchEvent(u)}}if(o.support.touch="ontouchend"in document,o.support.touch){var e,u=o.ui.mouse.prototype,n=u._mouseInit,c=u._mouseDestroy;u._touchStart=function(o){var u=this;!e&&u._mouseCapture(o.originalEvent.changedTouches[0])&&(e=!0,u._touchMoved=!1,t(o,"mouseover"),t(o,"mousemove"),t(o,"mousedown"))},u._touchMove=function(o){e&&(this._touchMoved=!0,t(o,"mousemove"))},u._touchEnd=function(o){e&&(t(o,"mouseup"),t(o,"mouseout"),this._touchMoved||t(o,"click"),e=!1)},u._mouseInit=function(){var t=this;t.element.bind({touchstart:o.proxy(t,"_touchStart"),touchmove:o.proxy(t,"_touchMove"),touchend:o.proxy(t,"_touchEnd")}),n.call(t)},u._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:o.proxy(t,"_touchStart"),touchmove:o.proxy(t,"_touchMove"),touchend:o.proxy(t,"_touchEnd")}),c.call(t)}}}(jQuery); !function($){"use strict";let wpcAjax=wpcFilterFront.wpcAjaxEnabled,wpcStatusCookieName=wpcFilterFront.wpcStatusCookieName,wpcMoreLessCookieName=wpcFilterFront.wpcMoreLessCookieName,wpcWidgetStatusCookieName=wpcFilterFront.wpcWidgetStatusCookieName,wpcHierachyListCookieName=wpcFilterFront.wpcHierarchyListCookieName,wpcMobileWidth=wpcFilterFront.wpcMobileWidth,wpcPostContainers=wpcFilterFront.wpcPostContainers,wpcAutoScroll=wpcFilterFront.wpcAutoScroll,wpcAutoScrollOffset=wpcFilterFront.wpcAutoScrollOffset,wpcWaitCursor=wpcFilterFront.wpcWaitCursor,wpcPostsPerPage=wpcFilterFront.wpcPostsPerPage,wpcUseSelect2=wpcFilterFront.wpcUseSelect2,wpcDateFilters=wpcFilterFront.wpcDateFilters,wpcDateFiltersLocale=wpcFilterFront.wpcDateFiltersLocale,wpcDateFiltersL10n=wpcFilterFront.wpcDateFiltersL10n,wpcPopupCompatMode=wpcFilterFront.wpcPopupCompatMode,wpcApplyButtonSets=wpcFilterFront.wpcApplyButtonSets,wpcQueryOnThePageSets=wpcFilterFront.wpcQueryOnThePageSets,noPostsContainerMsg=wpcFilterFront.wpcNoPostsContainerMsg,wpcWidgetContainer=".wpc-filters-main-wrap",wpcIsMobile=!1,toReplaceSEO=!0,prevState=!1,currentState=!1,seoRuleId;function removeElement(e){e.fadeTo(100,0,function(){e.slideUp(100,function(){e.remove()})})}function isDonePressed(e){return $("#ui-datepicker-div .ui-datepicker-close.ui-state-hover").length>0&&!e._keyEvent}function wpcInitiateAll(){if($(".wpc-filter-range-form").each(function(e,t){$.fn.wpcInitSlider($(t))}),window.innerWidth<=wpcMobileWidth&&(wpcIsMobile=!0,"yes"===wpcFilterFront.showBottomWidget&&(wpcAjax=!0)),"yes"===wpcUseSelect2&&$(wpcWidgetContainer).each(function(e,t){let i="wpc-filter-set-"+$(t).data("set");wpcInitSelect2(i)}),""!==wpcDateFilters){$.datepicker.regional[wpcDateFiltersLocale]=wpcDateFiltersL10n,$.datepicker.setDefaults(wpcDateFiltersL10n);let e={_selectDate:function(e,t){var i,a=$(e),n=this._getInst(a[0]);t=null!=t?t:this._formatDate(n),n.input&&n.input.val(t),this._updateAlternate(n),(i=this._get(n,"onSelect"))?i.apply(n.input?n.input[0]:null,[t,n]):n.input&&n.input.trigger("change"),n.inline||this._curInst.id.includes("wpc-filters-alt-date")?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.trigger("focus"),this._lastInput=null)}};Object.assign($.datepicker,e),$.each(wpcDateFilters,function(e,t){if($("#wpc-filters-date-from-"+e).length<1)return!1;let i={},a=t.time_format.includes("s")?"HH.mm.ss":"HH.mm.00";if("date"===t.date_type){let n=$("#wpc-filters-date-from-"+e).data("from").slice(0,4),s=$("#wpc-filters-date-to-"+e).data("to").slice(0,4);i={dateFormat:t.date_format,altFieldTimeOnly:!1,altField:"#wpc-filters-date-from-"+e,altFormat:"yy-mm-dd",changeYear:!0,yearRange:n+":"+s,changeMonth:!0,showButtonPanel:!0,onClose:function(t,i){isDonePressed(i)&&processRangeForm(event,$("#wpc-filter-date-range-form-"+e))},beforeShow:function(e,t){$("#ui-datepicker-div").addClass("wpc-filter-datepicker")}},$("#wpc-filters-alt-date-from-"+e).datepicker(i),i.altField="#wpc-filters-date-to-"+e,$("#wpc-filters-alt-date-to-"+e).datepicker(i)}else if("datetime"===t.date_type){$.timepicker.regional[wpcDateFiltersLocale]=wpcDateFiltersL10n,$.timepicker.setDefaults(wpcDateFiltersL10n);let r=$("#wpc-filters-date-from-"+e).data("from").slice(0,4),l=$("#wpc-filters-date-to-"+e).data("to").slice(0,4);i={dateFormat:t.date_format,timeFormat:t.time_format,altFieldTimeOnly:!1,altField:"#wpc-filters-date-from-"+e,altFormat:"yy-mm-dd",altTimeFormat:a,altSeparator:"t",changeYear:!0,yearRange:r+":"+l,changeMonth:!0,showButtonPanel:!0,controlType:"select",oneLine:!0,onClose:function(t,i){isDonePressed(i)&&processRangeForm(event,$("#wpc-filter-date-range-form-"+e))},beforeShow:function(e,t){$("#ui-datepicker-div").addClass("wpc-filter-datepicker")}},$("#wpc-filters-alt-date-from-"+e).datetimepicker(i),i.altField="#wpc-filters-date-to-"+e,$("#wpc-filters-alt-date-to-"+e).datetimepicker(i)}else"time"===t.date_type&&($.timepicker.regional[wpcDateFiltersLocale]=wpcDateFiltersL10n,$.timepicker.setDefaults(wpcDateFiltersL10n),i={timeFormat:t.time_format,altField:"#wpc-filters-date-from-"+e,altFieldTimeOnly:!1,altTimeFormat:a,controlType:"select",oneLine:!0,onClose:function(t,i){isDonePressed(i)&&processRangeForm(event,$("#wpc-filter-date-range-form-"+e))},beforeShow:function(e,t){$("#ui-datepicker-div").addClass("wpc-filter-datepicker")}},$("#wpc-filters-alt-date-from-"+e).timepicker(i),i.altField="#wpc-filters-date-to-"+e,$("#wpc-filters-alt-date-to-"+e).timepicker(i))})}$(".wpc-help-tip").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0,maxWidth:"220px"})}function wpcInitSelect2(e){if(void 0===$.fn.select2)return;let t=navigator.userAgent.toLowerCase().indexOf("android")>-1,i=0;t&&(i=1/0),$(".wpc-filters-widget-select").select2({dropdownCssClass:"wpc-filter-everything-dropdown",dropdownParent:$("."+e+" .wpc-filters-widget-content"),templateResult:function(e){return wpcSelect2Template(e)},templateSelection:function(e){return wpcSelect2Template(e)},minimumResultsForSearch:i}),$(".wpc-orderby-select").select2({dropdownCssClass:"wpc-filter-everything-dropdown",dropdownParent:$(".wpc-after-sorting-form"),templateResult:function(e){if(!e.element)return e.text;let t=$(e.element),i=$("");return i.addClass(t[0].className),i.text(e.text),i},minimumResultsForSearch:1/0})}function wpcSelect2Template(e){if(!e.element)return e.text;let t=$(e.element).data("image"),i=$(e.element).data("brand"),a=$(e.element).data("color"),n=e.text,s=$(e.element).data("count"),r="";if(void 0!==t)r="wpc-item-has-swatch",n=$(''+e.text+"");else if(void 0!==a){r="wpc-item-has-swatch";let l='';"none"===a?l+='':l+='',l+=''+e.text+"",n=$(l)}else void 0!==i&&(r="wpc-item-has-brand",n=$(''+e.text+""));let c=$(e.element),o=$("");return o.addClass(c[0].className),""!==r&&o.addClass(r),o.html(n),void 0!==s&&o.append('('+s+")"),o}function wpcGetCookie(e){var t=document.cookie.match(RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}function wpcSetCookie(e,t,i){let a=(i=i||{}).expires;if("number"==typeof a&&a){let n=new Date;n.setTime(n.getTime()+1e3*a),a=i.expires=n}a&&a.toUTCString&&(i.expires=a.toUTCString());let s=e+"="+(t=encodeURIComponent(t));for(let r in i){s+="; "+r;let l=i[r];!0!==l&&(s+="="+l)}document.cookie=s}function setStatusCookie(e,t){let i=wpcGetCookie(t),a=[];e=e.toString(),void 0===i?i="":a=(i=i.trim()).split(","),a=a.filter(function(e){return""!=e});let n=-e,s=a.indexOf(n.toString());if(-1!==s&&a.splice(s,1),-1===a.indexOf(e)){a.push(e);let r="";wpcSetCookie(t,r=0===a.length?e:a.join(),{path:"/","max-age":2592e3})}}function wpcCloseFiltersContainer(e){let t=$(".wpc-filter-set-"+e),i=$(".wpc-filter-set-"+e+" .wpc-filters-widget-content");$(".wpc-open-button-"+e+" .wpc-filters-open-widget").removeClass("wpc-opened"),$("html").removeClass("wpc-overlay-visible"),i.removeClass("wpc-filters-widget-opened"),wpcPopupCompatMode&&setTimeout(()=>{let e="",t=!1;i.parents().each(function(i,a){"undefined"!==(e=(t=$(a)).data("wpczindex"))&&t.css("z-index",e),t.hasClass("wpc-force-visibility")&&t.removeClass("wpc-force-visibility")}),setTimeout(()=>{$(".wpc-was-invisible").css("opacity","1").removeClass("wpc-was-invisible")},300)},260),t.removeClass("wpc-container-opened")}function wpcOpenFiltersContainer(e){let t=$(".wpc-filter-set-"+e),i=$(".wpc-filter-set-"+e+" .wpc-filters-widget-content"),a="",n="",s="",r=!1;if(i.length<1)return!0;wpcPopupCompatMode&&(i.parents().each(function(e,t){a=(r=$(t)).css("z-index"),n=r.is(":visible"),s=r.css("transform"),"auto"!==a&&r.data("wpczindex",a),r.css("z-index","auto"),n&&"none"===s||r.hasClass("widget_wpc_filters_widget")||r.hasClass("wpc-filters-main-wrap")||(r.css("opacity","0"),r.addClass("wpc-force-visibility wpc-was-invisible"))}),"yes"===wpcUseSelect2&&wpcInitSelect2("wpc-filter-set-"+e)),$(".wpc-open-button-"+e+" .wpc-filters-open-widget").addClass("wpc-opened"),$("html").addClass("wpc-overlay-visible"),$("body").data("set",e),i.addClass("wpc-filters-widget-opened"),t.addClass("wpc-container-opened"),$(".wpc-filter-set-"+e+" .wpc-filters-close-button").attr("href",window.location.href)}function wpcOpenContainer(e){let t=$(".wpc-filter-set-"+e);if(t.length<1){alert("There is no filter widget with ID "+e+" on this page");return}t.hasClass("wpc-container-opened")?wpcCloseFiltersContainer(e):wpcOpenFiltersContainer(e)}function wpcLockApplyButton(e){$(".wpc-filter-set-"+e).addClass("is-active"),$(".wpc-filter-set-"+e+" .wpc-filters-submit-button").addClass("on-hold"),$(".wpc-filter-set-"+e+" .wpc-filters-reset-button").addClass("on-hold")}function wpcUnlockApplyButton(e){$(".wpc-filter-set-"+e).removeClass("is-active"),$(".wpc-filter-set-"+e+" .wpc-filters-submit-button").removeClass("on-hold"),$(".wpc-filter-set-"+e+" .wpc-filters-reset-button").removeClass("on-hold")}function wpcShowSpinner(){$(".wpc-spinner, html").addClass("is-active")}function wpcHideSpinner(){$(".wpc-spinner, html").removeClass("is-active")}function submitSliderForm(e,t){e.originalEvent&&processRangeForm(e,t)}function processRangeForm(e,t){let i="min",a="max";t.hasClass("wpc-filter-date-range-form")&&(i="from",a="to");let n=t.find(".wpc-filters-range-"+i),s=t.find(".wpc-filters-range-"+a);if("min"===i&&"max"===a)var r=parseFloat(n.val()),l=parseFloat(s.val());else var r=n.val().toString(),l=s.val().toString();var c=n.data(i),o=s.data(a);if(t.hasClass("wpc-form-has-slider")){let p=t.find(".wpc-filters-range-slider-control");"change"===e.type&&p.slider("option","values",[r,l])}r===c&&n.attr("disabled",!0),l===o&&s.attr("disabled",!0);let d=t.parents(wpcWidgetContainer),f=d.data("set"),w=!1;if(f>0&&wpcApplyButtonSets.length>0&&wpcApplyButtonSets.includes(f)&&(w=!0),wpcAjax||w){e.preventDefault();let h=t.serialize();wpcSendFilterRequest(t.attr("action")+"?"+h,d,w),n.attr("disabled",!0),s.attr("disabled",!0)}else t.trigger("submit")}function wpcSendFilterRequest(link,widget,applyButtonMode,onComplete){onComplete=void 0!==onComplete&&onComplete,removeElement($(".wpc-front-error"));let requestParams={};requestParams.flrt_ajax_link=link,requestParams.wpcAjaxAction="filter";let setId=widget.data("set"),widgetClass="wpc-filter-set-"+setId,targetPostsContainer=wpcPostContainers.default;void 0!==wpcPostContainers[setId]&&(targetPostsContainer=wpcPostContainers[setId]),applyButtonMode&&$("body").hasClass("wpc_show_bottom_widget")&&window.innerWidth<=wpcMobileWidth&&(applyButtonMode=!1),$.ajax({method:"POST",data:requestParams,url:link,dataType:"html",beforeSend:function(){wpcWaitCursor&&$("html, body").css("cursor","wait");let e=$(widget).find(".wpc-filters-apply-button");e.removeClass("wpc-posts-loaded");let t=e.attr("href");e.attr("href",link),e.data("href",t),applyButtonMode?wpcLockApplyButton(setId):wpcShowSpinner()},complete:function(){!1!==onComplete&&eval(onComplete+"(setId)"),wpcWaitCursor&&$("html, body").css("cursor","auto"),wpcInitiateAll(),applyButtonMode?wpcUnlockApplyButton(setId):wpcHideSpinner()},success:function(e){if(void 0!==e){let t=$(e='
'+e+"
"),i=t.find(targetPostsContainer),a=t.find("#wpc-seo-rule-id").data("seoruleid"),n=t.find(".wpc-filters-main-wrap").hasClass("wpc-filter-request");if(toReplaceSEO=!!(currentState=a>0)||!!prevState,applyButtonMode){wpcReloadFiltersWidget(t,widgetClass);return}if(i.length>0&&wpcFilterFront.wpcAjaxEnabled&&wpcQueryOnThePageSets.includes(setId)){if(n?$("body").addClass("wpc_is_filter_request"):$("body").removeClass("wpc_is_filter_request"),$(targetPostsContainer).html(i.html()),$(widget).find(".wpc-filters-apply-button").addClass("wpc-posts-loaded"),toReplaceSEO){let s=t.find("title").text(),r=t.find('link[rel="canonical"]').attr("href");if(i.find("h1").length<1&&t.find("h1").length>0&&$("h1")[0].replaceWith(t.find("h1")[0]),i.find(".wpc-page-seo-description").length<1){let l=t.find(".wpc-page-seo-description"),c=$(".wpc-page-seo-description");l.length>0&&c.length>0&&$(".wpc-page-seo-description")[0].replaceWith(l[0])}void 0!==s&&""!==s&&$(document).attr("title",s),handleMetaTag("description",e),handleMetaTag("robots",e),void 0!==r&&""!==r?$('link[rel="canonical"]').length>0?$('link[rel="canonical"]').attr("href",r):$("head").append(''):$('link[rel="canonical"]').length>0&&$('link[rel="canonical"]').remove()}if(i.find(".wpc-open-button-"+setId).length<1){let o=t.find(".wpc-open-button-"+setId+" .wpc-button-inner");o.length>0&&$(".wpc-open-button-"+setId).each(function(e,t){if($(this).parent("div").hasClass("wpc-filters-main-wrap"))return!0;$(this).find(".wpc-button-inner").replaceWith(o[0])})}window.history.pushState({wpcHandler:"wpcFilterEverything"},null,link),prevState=currentState}else 0===$(targetPostsContainer).length&&wpcFilterFront.wpcAjaxEnabled&&alert(noPostsContainerMsg);let p=t.find("."+widgetClass).find(".wpc-posts-found").data("found");p=parseFloat(p),wpcReloadChips(t),wpcReloadSorting(t),wpcReloadFiltersWidget(t,widgetClass),$(document).trigger("ready"),$(window).trigger("scroll"),$(window).trigger("resize"),$(window).trigger("lazyshow"),wpcFixWoocommerceOrder();let d=!1;setId>0&&wpcApplyButtonSets.length>0&&wpcApplyButtonSets.includes(setId)&&(d=!0),!wpcIsMobile&&wpcAutoScroll&&(p0&&$("body, html").animate({scrollTop:$(targetPostsContainer).offset().top-wpcAutoScrollOffset}),"undefined"!=typeof elementorFrontend&&(i.hasClass("elementor-element")?$(targetPostsContainer+".elementor-element").each(function(){elementorFrontend.elementsHandler.runReadyTrigger($(this))}):$(targetPostsContainer+" .elementor-element").each(function(){elementorFrontend.elementsHandler.runReadyTrigger($(this))}))}},error:function(e){wpcHideSpinner();let t=$(widget).find(".wpc-filters-apply-button"),i=t.data("href");t.attr("href",i)}})}function handleMetaTag(e,t){let i=$(t).find('meta[name="'+e+'"]').attr("content");void 0!==i?$('meta[name="'+e+'"]').length>0?$('meta[name="'+e+'"]').attr("content",i):$("head").append(''):$('meta[name="'+e+'"]').length>0&&$('meta[name="'+e+'"]').remove()}function wpcFixWoocommerceOrder(){$(".woocommerce-ordering").on("change","select.orderby",function(){$(this).closest("form").submit()})}function wpcReloadFiltersWidget(e,t){!0===wpcIsMobile&&"yes"===wpcFilterFront.showBottomWidget?$(wpcWidgetContainer).each(function(t,i){let a=$(i).data("set"),n=".wpc-filter-set-"+a,s=e.find(n+" .wpc-filters-scroll-container"),r=e.find(n+" .wpc-filters-found-posts");if(s.length>0&&$(n).find(".wpc-filters-scroll-container").replaceWith(s),r.length>0&&$(n).find(".wpc-filters-found-posts").replaceWith(r),wpcApplyButtonSets.includes(a)){let l=$(n+" .wpc-filters-submit-button").attr("href");""!==l&&$(".wpc-filters-widget-controls-container .wpc-filters-submit-button").attr("href",l)}}):$(wpcWidgetContainer).each(function(t,i){let a=".wpc-filter-set-"+$(i).data("set"),n=e.find(a);n.length>0&&$(a).replaceWith(n)})}function wpcReloadSorting(e){let t=e.find(".wpc-sorting-form");if(t.length<1)return;let i=$(".wpc-sorting-form");t.length>0&&t.each(function(e,t){i[e].replaceWith(t)})}function wpcReloadChips(e){let t=$(".wpc-filter-chips-list");!(t.length<1)&&t.each(function(t,i){if((!0===wpcIsMobile&&"yes"!==wpcFilterFront.showBottomWidget||!1===wpcIsMobile)&&$(this).parent("div").hasClass("wpc-inner-widget-chips-wrapper"))return!0;let a=".wpc-filter-chips-"+$(i).data("setcount"),n=e.find(a);n.length>0&&$(a).replaceWith(n)})}$("#wpc-seo-rule-id").data("seoruleid")>0&&(prevState=!0),$(document).on("click",'.wpc-filter-content input[type="radio"],.wpc-filter-content input[type="checkbox"]',function(e){let t=$(this).data("wpc-link"),i=$(this).parents(wpcWidgetContainer),a=i.data("set"),n=!1;a>0&&wpcApplyButtonSets.length>0&&wpcApplyButtonSets.includes(a)&&(n=!0),wpcAjax||n?(e.preventDefault(),wpcSendFilterRequest(t,i,n)):location.href=t}),$(document).on("change",".wpc-orderby-select",function(){let e=$(this).parents("form.wpc-sorting-form"),t="";t="?"+e.serialize();let i=e.attr("action")+t;wpcFilterFront.wpcAjaxEnabled?$(".wpc-filters-main-wrap").each(function(e,t){let a=$(t);wpcSendFilterRequest(i,a,!1)}):(e.attr("action",i),e.submit())}),$(document).on("change",".wpc-filter-content select",function(e){var t=$(this).find("option:selected").data("wpc-link");let i=$(this).parents(wpcWidgetContainer),a=i.data("set"),n=!1;a>0&&wpcApplyButtonSets.length>0&&wpcApplyButtonSets.includes(a)&&(n=!0),wpcAjax||n?(e.preventDefault(),wpcSendFilterRequest(t,i,n)):location.href=t}),$(document).on("click",".wpc-filter-chip a",function(e){let t=$(this).attr("href"),i=$(this).parents(".wpc-filter-chips-list").data("set"),a=$(".wpc-filter-set-"+i),n=!1;if(i>0&&wpcApplyButtonSets.length>0&&wpcApplyButtonSets.includes(i)&&$(this).parents(".wpc-filter-set-"+i).length>0&&(n=!0),!wpcAjax&&!n)return!0;e.preventDefault(),wpcSendFilterRequest(t,a,n)}),$(document).on("click","a.wpc-filters-submit-button",function(e){if($(this).hasClass("on-hold")&&"wpc-search-field"!==$(this).data("last"))return e.preventDefault(),!1;let t=$(this).attr("href"),i=$(this).parents(".wpc-filters-main-wrap").data("set"),a=$(".wpc-filter-set-"+i);if(!(wpcAjax&&wpcQueryOnThePageSets.includes(i)))return!0;e.preventDefault(),wpcSendFilterRequest(t,a,!1)}),$(document).on("click","a.wpc-search-clear-icon",function(e){let t=$(this).attr("href"),i=$(this).parents(".wpc-filters-main-wrap").data("set"),a=$(".wpc-filter-set-"+i),n=!1;return!wpcAjax||(e.preventDefault(),wpcSendFilterRequest(t,a,n),!1)}),$(document).on("change",".wpc-search-field",function(e){let t=$(this).parents(".wpc-filter-search-form"),i=t.parents(wpcWidgetContainer),a=i.data("set"),n=!1;if(a>0&&wpcApplyButtonSets.length>0&&wpcApplyButtonSets.includes(a)&&(n=!0),wpcAjax||n){let s=t.serialize();return wpcSendFilterRequest(t.attr("action")+"?"+s,i,n),!1}t.submit()}),$(document).on("submit",".wpc-filter-search-form",function(e){let t=$(this),i=t.parents(wpcWidgetContainer),a=i.data("set"),n=!1;if(a>0&&wpcApplyButtonSets.length>0&&wpcApplyButtonSets.includes(a)&&(n=!0),!wpcAjax&&!n)return!0;{let s=t.serialize();return wpcSendFilterRequest(t.attr("action")+"?"+s,i,n),!1}}),$(document).on("click","a.wpc-filters-reset-button",function(e){if($(this).hasClass("on-hold"))return e.preventDefault(),!1;let t=$(this).attr("href"),i=$(this).parents(".wpc-filters-main-wrap").data("set"),a=$(".wpc-filter-set-"+i);if(!wpcAjax)return!0;e.preventDefault(),wpcQueryOnThePageSets.includes(i)?wpcSendFilterRequest(t,a,!1):wpcSendFilterRequest(t,a,!0)}),$(document).on("click","i.wpc-toggle-children-list",function(){let e=$(this).data("tid"),t=$(this).parent(".wpc-term-item-content-wrapper").parent("li"),i=$(this).parents(".wpc-filters-section");t.hasClass("wpc-opened")?(t.removeClass("wpc-opened").addClass("wpc-closed"),setStatusCookie(-e,wpcHierachyListCookieName)):t.hasClass("wpc-closed")?(t.removeClass("wpc-closed").addClass("wpc-opened"),setStatusCookie(e,wpcHierachyListCookieName)):i.hasClass("wpc-filter-hierarchy-reverse")?(t.removeClass("wpc-opened").addClass("wpc-closed"),setStatusCookie(-e,wpcHierachyListCookieName)):(t.removeClass("wpc-closed").addClass("wpc-opened"),setStatusCookie(e,wpcHierachyListCookieName))}),$(document).on("click",".wpc-filters-overlay",function(){let e=$("body").data("set");wpcCloseFiltersContainer(e)}),$(document).on("change",'.wpc-filter-range-form input[type="number"]',function(e){let t=$(this).parents(".wpc-filter-range-form");processRangeForm(e,t)}),$(document).on("click",".wpc-open-close-filters-button",function(e){e.preventDefault();let t=$(this),i=t.data("wid"),a=$(".wpc-filter-set-"+i+" .wpc-filters-widget-content");a.is(":visible")?a.slideUp({duration:100,complete:function(){$(this).addClass("wpc-closed").removeClass("wpc-opened"),t.removeClass("wpc-opened"),wpcSetCookie(wpcWidgetStatusCookieName,null,{path:"/","max-age":2592e3})}}):a.slideDown({duration:100,complete:function(){$(this).addClass("wpc-opened").removeClass("wpc-closed"),t.addClass("wpc-opened"),wpcSetCookie(wpcWidgetStatusCookieName,i,{path:"/","max-age":2592e3})}})}),$(document).on("click",".wpc-widget-close-icon",function(e){e.preventDefault();let t=$(this).parents(wpcWidgetContainer).data("set");wpcCloseFiltersContainer(t)}),$(document).on("click",".wpc-filters-apply-button",function(e){e.preventDefault();let t=$(this).parents(wpcWidgetContainer),i=t.data("set"),a=$(".wpc-filter-set-"+i+" .wpc-filters-widget-content"),n=$(this).attr("href"),s=!$(this).hasClass("wpc-posts-loaded"),r="",l=!1;t.removeClass("wpc-container-opened"),$("html").removeClass("wpc-overlay-visible"),a.removeClass("wpc-filters-widget-opened"),$(".wpc-open-button-"+i+" .wpc-filters-open-widget").removeClass("wpc-opened"),wpcPopupCompatMode&&setTimeout(()=>{a.parents().each(function(e,t){"undefined"!==(r=(l=$(t)).data("wpczindex"))&&l.css("z-index",r),l.hasClass("wpc-force-visibility")&&l.removeClass("wpc-force-visibility")}),setTimeout(()=>{$(".wpc-was-invisible").css("opacity","1").removeClass("wpc-was-invisible")},300)},260),s&&(location.href=n)}),$(document).on("submit",".wpc-filter-range-form",function(e){submitSliderForm(e,$(this))}),$(document).on("keydown",".wpc-filters-range-from,.wpc-filters-range-to",function(e){if(13==e.which){let t=$(this).data("fid");processRangeForm(e,$("#wpc-filter-date-range-form-"+t))}}),$(document).on("click",".wpc-filter-content a",function(e){e.preventDefault();let t=$(this).closest("label").attr("for");$(this).closest("label").parent(".wpc-term-item-content-wrapper").parent(".wpc-term-item").find("#"+t).trigger("click")}),$(document).on("click",".wpc-filters-open-widget",function(e){e.preventDefault();let t=$(this).data("wid");wpcOpenContainer(t)}),$(document).on("click",".wpc-filters-close-button",function(e){e.preventDefault();let t=$(this).parents(wpcWidgetContainer),i=t.data("set");if(wpcAjax&&wpcFilterFront.wpcAjaxEnabled){let a=$(this).attr("href"),n=$(".wpc-filter-set-"+i+" .wpc-filters-apply-button").attr("href");if(a!==n){wpcSendFilterRequest(a,t,!1,"wpcCloseFiltersContainer");return}}wpcCloseFiltersContainer(i)}),$(document).on("click","a.wpc-toggle-a",function(e){e.preventDefault();let t=$(this).data("fid"),i=$(".wpc-filters-section-"+t);i.hasClass("wpc-show-more")?(i.removeClass("wpc-show-more").addClass("wpc-show-less"),setStatusCookie(-t,wpcMoreLessCookieName)):i.hasClass("wpc-show-less")?(i.removeClass("wpc-show-less").addClass("wpc-show-more"),setStatusCookie(t,wpcMoreLessCookieName)):i.hasClass("wpc-filter-has-selected")||i.hasClass("wpc-show-more-reverse")?(i.removeClass("wpc-show-more").addClass("wpc-show-less"),setStatusCookie(-t,wpcMoreLessCookieName)):(i.removeClass("wpc-show-less").addClass("wpc-show-more"),setStatusCookie(t,wpcMoreLessCookieName))}),$(document).on("click",".wpc-filters-main-wrap input",function(e){let t=$(this).attr("class");void 0!==t&&$(".wpc-filters-submit-button").data("last",t)}),$(document).on("click",".wpc-filter-title button",function(e){e.preventDefault();let t=$(this).parents(".wpc-filters-section"),i=t.data("fid");t.hasClass("wpc-opened")?(t.removeClass("wpc-opened").addClass("wpc-closed"),setStatusCookie(-i,wpcStatusCookieName)):t.hasClass("wpc-closed")?(t.removeClass("wpc-closed").addClass("wpc-opened"),setStatusCookie(i,wpcStatusCookieName)):t.hasClass("wpc-filter-has-selected")||t.hasClass("wpc-filter-collapsible-reverse")?(t.removeClass("wpc-opened").addClass("wpc-closed"),setStatusCookie(-i,wpcStatusCookieName)):(t.removeClass("wpc-closed").addClass("wpc-opened"),setStatusCookie(i,wpcStatusCookieName))}),$(window).resize(function(){window.innerWidth<=wpcMobileWidth?(wpcIsMobile=!0,"yes"===wpcFilterFront.showBottomWidget&&(wpcAjax=!0)):(wpcAjax=wpcFilterFront.wpcAjaxEnabled,wpcIsMobile=!1),"yes"===wpcUseSelect2&&$(wpcWidgetContainer).each(function(e,t){let i="wpc-filter-set-"+$(t).data("set");wpcInitSelect2(i)})}),$.support.pjax&&$(document).on("pjax:end",function(){setTimeout(()=>{wpcInitiateAll()},300)}),$(document).ready(function(){wpcInitiateAll()}),$(document).on("input",".wpc-search-field",function(e){let t=$(this).parents(".wpc-filters-section"),i=$(this).val(),a=i.toLowerCase(),n=$(".wpc-filters-submit-button"),s=n.attr("href");if(void 0!==s){let r=new URL(s);r.searchParams.set("srch",i),n.attr("href",r.href),""!==a?t.addClass("wpc-search-active"):t.removeClass("wpc-search-active")}}),$(document).on("input",".wpc-filter-search-field",function(e){let t=$(this).val().toString().toLowerCase(),i=$(this).parents(".wpc-filters-section"),a=i.data("fid");""!==t?($(".wpc-filter-search-wrapper-"+a+" .wpc-search-clear").show(),i.addClass("wpc-search-active")):($(".wpc-filter-search-wrapper-"+a+" .wpc-search-clear").hide(),i.removeClass("wpc-search-active")),$(".wpc-filters-list-"+a+" li").each(function(e,i){let a=$(i);$(i).find("label a").text().toLowerCase().indexOf(t)>-1?a.addClass("showli"):a.removeClass("showli")})}),$(document).on("click",".wpc-search-clear",function(e){e.preventDefault();$(this).parent(".wpc-filter-search-wrapper").find(".wpc-filter-search-field").val("").trigger("input")}),$.fn.wpcInitSlider=function(e){let t=e.find(".wpc-filters-range-min"),i=e.find(".wpc-filters-range-max"),a=e.find(".wpc-filters-range-slider-control"),n=parseFloat(t.attr("step")),s=parseFloat(t.data("min")),r=parseFloat(i.data("max")),l=parseFloat(t.val()),c=parseFloat(i.val());a.slider({min:s,max:r,values:[l,c],range:!0,step:n,slide:function(e,a){let n=a.values[0],s=a.values[1];t.val(n),i.val(s)},change:function(t){submitSliderForm(t,e)}}),e.submit(function(e){0===$(this).serialize().length&&(e.preventDefault(),window.location.assign(window.location.pathname))})},window.addEventListener("popstate",function(e){null!==e.state&&e.state.hasOwnProperty("wpcHandler")&&"wpcFilterEverything"===e.state.wpcHandler&&window.location.reload(!0)}),$.fn.tipTip=function(e){var t={activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},i=$.extend(t,e);if($("#tiptip_holder").length<=0){var a=$('
'),n=$('
'),s=$('
');$("body").append(a.html(n).prepend(s.html('
')))}else var a=$("#tiptip_holder"),n=$("#tiptip_content"),s=$("#tiptip_arrow");return this.each(function(){var e=$(this);if(i.content)var t=i.content;else var t=e.attr(i.attribute);if(""!=t){i.content||e.removeAttr(i.attribute);var r=!1;function l(){i.enter.call(this),n.html(t),a.hide().removeAttr("class").css("margin","0"),s.removeAttr("style");var l=parseInt(e.offset().top),c=parseInt(e.offset().left),o=parseInt(e.outerWidth()),p=parseInt(e.outerHeight()),d=a.outerWidth(),f=a.outerHeight(),w=Math.round((o-d)/2),h=Math.round((p-f)/2),u=Math.round(c+w),m=Math.round(l+p+i.edgeOffset),g="",v="",C=Math.round(d-12)/2;"bottom"==i.defaultPosition?g="_bottom":"top"==i.defaultPosition?g="_top":"left"==i.defaultPosition?g="_left":"right"==i.defaultPosition&&(g="_right");var b=w+cparseInt($(window).width());b&&w<0||"_right"==g&&!y||"_left"==g&&cparseInt($(window).height()+$(window).scrollTop()),k=l+p-(i.edgeOffset+f+8)<0;_||"_bottom"==g&&_||"_top"==g&&!k?("_top"==g||"_bottom"==g?g="_top":g+="_top",v=f,m=Math.round(l-(f+5+i.edgeOffset))):(k|("_top"==g&&k)||"_bottom"==g&&!_)&&("_top"==g||"_bottom"==g?g="_bottom":g+="_bottom",v=-12,m=Math.round(l+p+i.edgeOffset)),"_right_top"==g||"_left_top"==g?m+=5:("_right_bottom"==g||"_left_bottom"==g)&&(m-=5),("_left_top"==g||"_left_bottom"==g)&&(u+=5),s.css({"margin-left":C+"px","margin-top":v+"px"}),a.css({"margin-left":u+"px","margin-top":m+"px"}).attr("class","tip"+g),r&&clearTimeout(r),r=setTimeout(function(){a.stop(!0,!0).fadeIn(i.fadeIn)},i.delay)}function c(){i.exit.call(this),r&&clearTimeout(r),a.fadeOut(i.fadeOut)}"hover"==i.activation?(e.hover(function(){l()},function(){i.keepAlive&&a.is(":hover")||c()}),i.keepAlive&&a.hover(function(){},function(){c()})):"focus"==i.activation?e.focus(function(){l()}).blur(function(){c()}):"click"==i.activation&&(e.click(function(){return l(),!1}).hover(function(){},function(){i.keepAlive||c()}),i.keepAlive&&a.hover(function(){},function(){c()}))}})}}(jQuery); (function($){var WidgethfeSearchButton=function($scope,$){if('undefined'==typeof $scope) return;var $input=$scope.find("input.hfe-search-form__input");var $clear=$scope.find("button#clear");var $clear_with_button=$scope.find("button#clear-with-button");var $search_button=$scope.find(".hfe-search-submit");var $toggle_search=$scope.find(".hfe-search-icon-toggle input");$scope.find('.hfe-search-icon-toggle').on('click',function(){$scope.find(".hfe-search-form__input").trigger('focus');});$scope.find(".hfe-search-form__input").on('focus',function(){$scope.find(".hfe-search-button-wrapper").addClass("hfe-input-focus");});$scope.find(".hfe-search-form__input").blur(function(){$scope.find(".hfe-search-button-wrapper").removeClass("hfe-input-focus");});$search_button.on('touchstart click',function(){$input.submit();});$toggle_search.css('padding-right',$toggle_search.next().outerWidth()+'px');$input.on('keyup',function(){$clear.style=(this.value.length)?$clear.css('visibility','visible'):$clear.css('visibility','hidden');$clear_with_button.style=(this.value.length)?$clear_with_button.css('visibility','visible'):$clear_with_button.css('visibility','hidden');$clear_with_button.css('right',$search_button.outerWidth()+'px');});$clear.on("click",function(){this.style=$clear.css('visibility','hidden');$input.value="";});$clear_with_button.on("click",function(){this.style=$clear_with_button.css('visibility','hidden');$input.value="";});};var WidgethfeNavMenuHandler=function($scope,$){if('undefined'==typeof $scope) return;var id=$scope.data('id');var wrapper=$scope.find('.elementor-widget-hfe-nav-menu ');var layout=$('.elementor-element-'+id+' .hfe-nav-menu').data('layout');var flyout_data=$('.elementor-element-'+id+' .hfe-flyout-wrapper').data('flyout-class');var last_item=$('.elementor-element-'+id+' .hfe-nav-menu').data('last-item');var last_item_flyout=$('.elementor-element-'+id+' .hfe-flyout-wrapper').data('last-item');var menu_items_links=$('.elementor-element-'+id+' .hfe-nav-menu nav li a');var menu_items_links_flyout=$('.elementor-element-'+id+' .hfe-flyout-wrapper li a');if(menu_items_links.length>0){_handle_current_menu_item_class(menu_items_links);} if(menu_items_links_flyout.length>0){_handle_current_menu_item_class(menu_items_links_flyout);} $('div.hfe-has-submenu-container').removeClass('sub-menu-active');_toggleClick(id);_handlePolylangSwitcher($scope);_handleSinglePageMenu(id,layout);if('horizontal'!==layout){_eventClick(id);}else if('horizontal'===layout&&window.matchMedia("( max-width: 767px )").matches){_eventClick(id);}else if('horizontal'===layout&&window.matchMedia("( max-width: 1024px )").matches){_eventClick(id);} $('.elementor-element-'+id+' .hfe-flyout-trigger .hfe-nav-menu-icon').off('click keyup').on('click keyup',function(){_openMenu(id);});$('.elementor-element-'+id+' .hfe-flyout-close').off('click keyup').on('click keyup',function(){_closeMenu(id);});$('.elementor-element-'+id+' .hfe-flyout-overlay').off('click').on('click',function(){_closeMenu(id);});$scope.find('.sub-menu').each(function(){var parent=$(this).closest('.menu-item');$scope.find(parent).addClass('parent-has-child');$scope.find(parent).removeClass('parent-has-no-child');});if(('cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').parent().addClass('elementor-button-wrapper');$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').addClass('elementor-button');} _borderClass(id);$(window).on('resize',function(){if('horizontal'!==layout){_eventClick(id);}else if('horizontal'===layout&&window.matchMedia("( max-width: 767px )").matches){_eventClick(id);}else if('horizontal'===layout&&window.matchMedia("( max-width: 1024px )").matches){_eventClick(id);} if('horizontal'==layout&&window.matchMedia("( min-width: 977px )").matches){$('.elementor-element-'+id+' div.hfe-has-submenu-container').next().css('position','absolute');} if('expandible'==layout||'flyout'==layout){_toggleClick(id);}else if('vertical'==layout||'horizontal'==layout){if(window.matchMedia("( max-width: 767px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){_toggleClick(id);}else if(window.matchMedia("( max-width: 1024px )").matches&&$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')){_toggleClick(id);}} _borderClass(id);});$scope.find('.parent-has-child .hfe-has-submenu-container a').attr('aria-haspopup','true');$scope.find('.parent-has-child .hfe-has-submenu-container a').attr('aria-expanded','false');var hef_navmenu_toggle=$scope.find('.hfe-nav-menu__toggle');hef_navmenu_toggle.attr('aria-haspopup','true');hef_navmenu_toggle.attr('aria-expanded','false');if(window.matchMedia("( max-width: 1024px )").matches&&$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')){hef_navmenu_toggle.find('i').attr('aria-hidden','false');} if(window.matchMedia("( max-width: 768px )").matches&&$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile')){hef_navmenu_toggle.find('i').attr('aria-hidden','false');} $(document).trigger('hfe_nav_menu_init',id);$('.elementor-element-'+id+' div.hfe-has-submenu-container').on('keyup',function(e){var $this=$(this);if($this.parent().hasClass('menu-active')){$this.parent().removeClass('menu-active');$this.parent().next().find('ul').css({'visibility':'hidden','opacity':'0','height':'0'});$this.parent().prev().find('ul').css({'visibility':'hidden','opacity':'0','height':'0'});$this.parent().next().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');$this.parent().prev().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');}else{$this.parent().next().find('ul').css({'visibility':'hidden','opacity':'0','height':'0'});$this.parent().prev().find('ul').css({'visibility':'hidden','opacity':'0','height':'0'});$this.parent().next().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');$this.parent().prev().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');$this.parent().siblings().find('.hfe-has-submenu-container a').attr('aria-expanded','false');$this.parent().next().removeClass('menu-active');$this.parent().prev().removeClass('menu-active');event.preventDefault();$this.parent().addClass('menu-active');if('horizontal'!==layout){$this.addClass('sub-menu-active');} $this.find('a').attr('aria-expanded','true');$this.next().css({'visibility':'visible','opacity':'1','height':'auto'});if('horizontal'!==layout){$this.next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 767px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){$this.next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 1024px )").matches){if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')){$this.next().css('position','relative');}else if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-none')){$this.next().css('position','absolute');}}}});$('.elementor-element-'+id+' li.menu-item').on('keyup',function(e){var $this=$(this);$this.next().find('a').attr('aria-expanded','false');$this.prev().find('a').attr('aria-expanded','false');$this.next().find('ul').css({'visibility':'hidden','opacity':'0','height':'0'});$this.prev().find('ul').css({'visibility':'hidden','opacity':'0','height':'0'});$this.siblings().removeClass('menu-active');$this.next().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');$this.prev().find('div.hfe-has-submenu-container').removeClass('sub-menu-active');});};function _handle_current_menu_item_class(layout_links){layout_links.each(function(){var $this=$(this);if($this.is('[href*="#"]')){var menu_item_parent=$this.parent();menu_item_parent.removeClass('current-menu-item current-menu-ancestor');$this.click(function(){var current_index=menu_item_parent.index(),parent_element=$this.closest('ul');parent_element.find('li').not(':eq('+current_index+')').removeClass('current-menu-item current-menu-ancestor');menu_item_parent.addClass('current-menu-item current-menu-ancestor');})}});} function _openMenu(id){var flyout_content=$('#hfe-flyout-content-id-'+id);var layout=$('#hfe-flyout-content-id-'+id).data('layout');var layout_type=$('#hfe-flyout-content-id-'+id).data('flyout-type');var wrap_width=flyout_content.width()+'px';var container=$('.elementor-element-'+id+' .hfe-flyout-container .hfe-side.hfe-flyout-'+layout);$('.elementor-element-'+id+' .hfe-flyout-overlay').fadeIn(100);if('left'==layout){$('body').css('margin-left','0');container.css('left','0');if('push'==layout_type){$('body').addClass('hfe-flyout-animating').css({position:'absolute',width:'100%','margin-left':wrap_width,'margin-right':'auto'});} container.addClass('hfe-flyout-show');}else{$('body').css('margin-right','0');container.css('right','0');if('push'==layout_type){$('body').addClass('hfe-flyout-animating').css({position:'absolute',width:'100%','margin-left':'-'+wrap_width,'margin-right':'auto',});} container.addClass('hfe-flyout-show');}} function _closeMenu(id){var flyout_content=$('#hfe-flyout-content-id-'+id);var layout=$('#hfe-flyout-content-id-'+id).data('layout');var wrap_width=flyout_content.width()+'px';var layout_type=$('#hfe-flyout-content-id-'+id).data('flyout-type');var container=$('.elementor-element-'+id+' .hfe-flyout-container .hfe-side.hfe-flyout-'+layout);$('.elementor-element-'+id+' .hfe-flyout-overlay').fadeOut(100);if('left'==layout){container.css('left','-'+wrap_width);if('push'==layout_type){$('body').css({position:'','margin-left':'','margin-right':'',});setTimeout(function(){$('body').removeClass('hfe-flyout-animating').css({width:'',});});} container.removeClass('hfe-flyout-show');}else{container.css('right','-'+wrap_width);if('push'==layout_type){$('body').css({position:'','margin-right':'','margin-left':'',});setTimeout(function(){$('body').removeClass('hfe-flyout-animating').css({width:'',});});} container.removeClass('hfe-flyout-show');}} function _eventClick(id){var layout=$('.elementor-element-'+id+' .hfe-nav-menu').data('layout');$('.elementor-element-'+id+' div.hfe-has-submenu-container').off('click').on('click',function(event){var $this=$(this);if($('.elementor-element-'+id).hasClass('hfe-link-redirect-child')){if($this.hasClass('sub-menu-active')){if(!$this.next().hasClass('sub-menu-open')){$this.find('a').attr('aria-expanded','false');if('horizontal'!==layout){event.preventDefault();$this.next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 767px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){event.preventDefault();$this.next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 1024px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){event.preventDefault();$this.next().css('position','relative');} $this.removeClass('sub-menu-active');$this.nextAll('.sub-menu').removeClass('sub-menu-open');$this.nextAll('.sub-menu').css({'visibility':'hidden','opacity':'0','height':'0'});$this.nextAll('.sub-menu').css({'transition':'none'});}else{$this.find('a').attr('aria-expanded','false');$this.removeClass('sub-menu-active');$this.nextAll('.sub-menu').removeClass('sub-menu-open');$this.nextAll('.sub-menu').css({'visibility':'hidden','opacity':'0','height':'0'});$this.nextAll('.sub-menu').css({'transition':'none'});if('horizontal'!==layout){$this.next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 767px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){$this.next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 1024px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){$this.next().css('position','absolute');}}}else{$this.find('a').attr('aria-expanded','true');if('horizontal'!==layout){event.preventDefault();$this.next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 767px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){event.preventDefault();$this.next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 1024px )").matches){event.preventDefault();if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')){$this.next().css('position','relative');}else if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-none')){$this.next().css('position','absolute');}} $this.addClass('sub-menu-active');$this.nextAll('.sub-menu').addClass('sub-menu-open');$this.nextAll('.sub-menu').css({'visibility':'visible','opacity':'1','height':'auto'});$this.nextAll('.sub-menu').css({'transition':'0.3s ease'});}}});$('.elementor-element-'+id+' .hfe-menu-toggle').off('click keyup').on('click keyup',function(event){var $this=$(this);if($this.parent().parent().hasClass('menu-active')){event.preventDefault();$this.parent().parent().removeClass('menu-active');$this.parent().parent().next().css({'visibility':'hidden','opacity':'0','height':'0'});if('horizontal'!==layout){$this.parent().parent().next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 767px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){$this.parent().parent().next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 1024px )").matches){if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')){$this.parent().parent().next().css('position','relative');}else if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-none')){$this.parent().parent().next().css('position','absolute');}}}else{event.preventDefault();$this.parent().parent().addClass('menu-active');$this.parent().parent().next().css({'visibility':'visible','opacity':'1','height':'auto'});if('horizontal'!==layout){$this.parent().parent().next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 767px )").matches&&($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile'))){$this.parent().parent().next().css('position','relative');}else if('horizontal'===layout&&window.matchMedia("( max-width: 1024px )").matches){if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')){$this.parent().parent().next().css('position','relative');}else if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-none')){$this.parent().parent().next().css('position','absolute');}}}});} function _borderClass(id){var last_item=$('.elementor-element-'+id+' .hfe-nav-menu').data('last-item');var last_item_flyout=$('.elementor-element-'+id+' .hfe-flyout-wrapper').data('last-item');var layout=$('.elementor-element-'+id+' .hfe-nav-menu').data('layout');$('.elementor-element-'+id+' nav').removeClass('hfe-dropdown');if(window.matchMedia("( max-width: 767px )").matches){if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-mobile')||$('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')){$('.elementor-element-'+id+' nav').addClass('hfe-dropdown');if(('cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').parent().removeClass('elementor-button-wrapper');$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').removeClass('elementor-button');}}else{$('.elementor-element-'+id+' nav').removeClass('hfe-dropdown');if(('cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').parent().addClass('elementor-button-wrapper');$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').addClass('elementor-button');}}}else if(window.matchMedia("( max-width: 1024px )").matches){if($('.elementor-element-'+id).hasClass('hfe-nav-menu__breakpoint-tablet')){$('.elementor-element-'+id+' nav').addClass('hfe-dropdown');if(('cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').parent().removeClass('elementor-button-wrapper');$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').removeClass('elementor-button');}}else{$('.elementor-element-'+id+' nav').removeClass('hfe-dropdown');if(('cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').parent().addClass('elementor-button-wrapper');$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').addClass('elementor-button');}}}else{var $parent_element=$('.elementor-element-'+id);$parent_element.find('nav').removeClass('hfe-dropdown');if(('cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){$parent_element.find('li.menu-item:last-child a.hfe-menu-item').parent().addClass('elementor-button-wrapper');$parent_element.find('li.menu-item:last-child a.hfe-menu-item').addClass('elementor-button');}} var layout=$('.elementor-element-'+id+' .hfe-nav-menu').data('layout');if('expandible'==layout){if(('cta'==last_item||'cta'==last_item_flyout)&&'expandible'!=layout){$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').parent().removeClass('elementor-button-wrapper');$('.elementor-element-'+id+' li.menu-item:last-child a.hfe-menu-item').removeClass('elementor-button');}}} function _toggleClick(id){if($('.elementor-element-'+id+' .hfe-nav-menu__toggle').hasClass('hfe-active-menu-full-width')){var $toggle=$('.elementor-element-'+id+' .hfe-nav-menu__toggle');var $nextElement=$toggle.next();if($nextElement.length){$nextElement.css('left','0');var $section=$('.elementor-element-'+id).closest('.elementor-section');if($section.length){var width=$section.outerWidth();var sec_pos=$section.offset().left-$toggle.next().offset().left;$nextElement.css('width',width+'px');$nextElement.css('left',sec_pos+'px');}}} $('.elementor-element-'+id+' .hfe-nav-menu__toggle').off('click keyup').on('click keyup',function(event){var $this=$(this);var $selector=$this.next();if($this.hasClass('hfe-active-menu')){var layout=$('.elementor-element-'+id+' .hfe-nav-menu').data('layout');var full_width=$selector.data('full-width');var toggle_icon=$('.elementor-element-'+id+' nav').data('toggle-icon');$('.elementor-element-'+id).find('.hfe-nav-menu-icon').html(toggle_icon);$this.removeClass('hfe-active-menu');$this.attr('aria-expanded','false');if('yes'==full_width){$this.removeClass('hfe-active-menu-full-width');$selector.css('width','auto');$selector.css('left','0');$selector.css('z-index','0');}}else{var layout=$('.elementor-element-'+id+' .hfe-nav-menu').data('layout');var full_width=$selector.data('full-width');var close_icon=$('.elementor-element-'+id+' nav').data('close-icon');$('.elementor-element-'+id).find('.hfe-nav-menu-icon').html(close_icon);$this.addClass('hfe-active-menu');$this.attr('aria-expanded','true');if('yes'==full_width){$this.addClass('hfe-active-menu-full-width');var closestElement=$('.elementor-element-'+id).closest('.elementor-section, .e-con-boxed');var width=closestElement.outerWidth();var sec_pos=closestElement.offset().left-$selector.offset().left;$selector.css('width',width+'px');$selector.css('left',sec_pos+'px');$selector.css('z-index','9999');}} if($('.elementor-element-'+id+' nav').hasClass('menu-is-active')){$('.elementor-element-'+id+' nav').removeClass('menu-is-active');}else{$('.elementor-element-'+id+' nav').addClass('menu-is-active');}});} function _handleSinglePageMenu(id,layout){$('.elementor-element-'+id+' ul.hfe-nav-menu li a').on('click',function(){var $this=$(this);var link=$this.attr('href');var linkValue='';if(link.includes('#')){var index=link.indexOf('#');linkValue=link.slice(index+1);} if(linkValue.length>0){if('expandible'==layout){$('.elementor-element-'+id+' .hfe-nav-menu__toggle').trigger("click");if($this.hasClass('hfe-sub-menu-item')){$('.elementor-element-'+id+' .hfe-menu-toggle').trigger("click");}}else{if(window.matchMedia('(max-width: 1024px)').matches&&('horizontal'==layout||'vertical'==layout)){$('.elementor-element-'+id+' .hfe-nav-menu__toggle').trigger("click");if($this.hasClass('hfe-sub-menu-item')){$('.elementor-element-'+id+' .hfe-menu-toggle').trigger("click");}}else{if($this.hasClass('hfe-sub-menu-item')){_closeMenu(id);$('.elementor-element-'+id+' .hfe-menu-toggle').trigger("click");} _closeMenu(id);}}}});} function _handlePolylangSwitcher($scope){var polylangSwitcher=$scope.find('.hfe-nav-menu nav .pll-parent-menu-item a.hfe-menu-item');var hrefProperty=polylangSwitcher.prop('href');if(undefined!==hrefProperty&&hrefProperty.includes('#')){var index=hrefProperty.indexOf('#');var value=hrefProperty.slice(index);if(value==='#pll_switcher'){polylangSwitcher.prop('href','#');}}} $(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/navigation-menu.default',WidgethfeNavMenuHandler);elementorFrontend.hooks.addAction('frontend/element_ready/hfe-search-button.default',WidgethfeSearchButton);});})(jQuery); jQuery(function($){$(document).on('click','body:not(.elementor-editor-active) .make-column-clickable-elementor',function(e){var wrapper=$(this),url=wrapper.data('column-clickable');if(url){if($(e.target).filter('a, a *, .no-link, .no-link *').length){return true;} if(url.match("^#elementor-action")){var hash=url;var hash=decodeURIComponent(hash);if(hash.includes("elementor-action:action=popup:open")||hash.includes("elementor-action:action=lightbox")){if(0===wrapper.find('#make-column-clickable-open-dynamic').length){wrapper.append('Open dynamic content');} wrapper.find('#make-column-clickable-open-dynamic').click();return true;} return true;} if(url.match("^#")){var hash=url;$('html, body').animate({scrollTop:$(hash).offset().top},800,function(){window.location.hash=hash;});return true;} window.open(url,wrapper.data('column-clickable-blank'));return false;}});}); (function($){$.prettyPhoto={version:'3.1.5'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({hook:'data-rel',animation_speed:'fast',ajaxcallback:function(){},slideshow:0,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,allow_expand:false,default_width:500,default_height:300,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:false,modal:false,deeplinking:true,overlay_gallery:false,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'
\
\
\
\
\
\
\
\
\
\
\
\ Expand \
\ next \ previous \
\
\
\
\ Previous \

0/0

\ Next \
\ Close \
\
\
\
\
\
\
\
\
\
\
\
\
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:'',social_tools:''},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,pp_topHeightExtra,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){setTimeout(function(){_resize_overlay();_center_overlay();},0);});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal) $.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default') settings.horizontal_padding=13;else if(settings.theme=='light_clean'||settings.theme=='dark_clean') settings.horizontal_padding=6;theRel=$(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr(settings.hook).indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a["+settings.hook+"^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize) $(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;} $.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=(arguments[3])?arguments[3]:0;_build_overlay(event.target);} if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if(settings.deeplinking) setHashtag();if(settings.social_tools){facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));$pp_pic_holder.find('.pp_social').html(facebook_like_link);} $pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);var currTextHolder=$pp_pic_holder.find('.currentTextHolder');currTextHolder.text((set_position+1)+settings.counter_separator_label+$(pp_images).size());var description=pp_descriptions[set_position];if(description&&description.length>0) currTextHolder.append(' –  '+pp_descriptions[set_position]+'');if(typeof pp_descriptions[set_position]!='undefined'&&pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();} movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;} if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;} $pp_pic_holder.fadeIn(function(){imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('v',pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split('youtu.be/');movie_id=movie_id[1];if(movie_id.indexOf('?')>0) movie_id=movie_id.substr(0,movie_id.indexOf('?'));if(movie_id.indexOf('&')>0) movie_id=movie_id.substr(0,movie_id.indexOf('&'));} movie='http://www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[3]+'?title=0&byline=0&portrait=0';if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('
').css({'width':settings.default_width}).wrapInner('
').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&&!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position<0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position>$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');} _hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};} $.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;} $.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop<0) projectedTop=0;$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':((windowWidth/2)-(pp_dimensions['containerWidth']/2)<0)?0:(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&&_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();} if(settings.allow_expand){if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();}} if(settings.autoplay_slideshow&&!pp_slideshow&&!pp_open) $.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();pp_settings.ajaxcallback();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount>1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);var imageWidth=width;var imageHeight=height;if(((pp_containerWidth>windowWidth)||(pp_containerHeight>windowHeight))&&doresize&&settings.allow_resize&&!percentBased){var resized=true;if(pp_containerWidth>windowWidth) pp_containerWidth=windowWidth-settings.horizontal_padding*2;if(pp_containerHeight>windowHeight) pp_containerHeight=windowHeight-pp_topHeightExtra-settings.horizontal_padding*2;var stageRatio=pp_containerHeight/pp_containerWidth;var imageRatio=imageHeight/imageWidth;if(stageRatio>=imageRatio) {imageWidth=pp_containerWidth;imageHeight=(imageWidth/width)*imageHeight;} else {imageHeight=pp_containerHeight;imageWidth=(imageHeight/height)*imageWidth;} _getDimensions(imageWidth,imageHeight);};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;$pp_details.remove();titleHeight=0;pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_topHeightExtra=detailsHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;} function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&&typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop<0)projectedTop=0;if(contentHeight>windowHeight) return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&&settings.overlay_gallery&&_getFileType(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('Play') $pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});} $pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});if(settings.allow_expand){$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});} $pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&&getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a["+pp_settings.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);} return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){var url=location.href;hashtag=(url.indexOf('#prettyPhoto')!==-1)?decodeURI(url.substring(url.indexOf('#prettyPhoto')+1,url.length)):false;if(hashtag){hashtag=hashtag.replace(/<|>/g,'');} return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash=theRel+'/'+rel_index+'/';};function clearHashtag(){if(location.href.indexOf('#prettyPhoto')!==-1)location.hash="prettyPhoto";} function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false; function wr360QueryGetParameterByName(name){var match=RegExp('[?&]'+name+'=([^&]*)').exec(window.location.search);return match&&decodeURIComponent(match[1].replace(/\+/g,' '));} jQuery(document).ready(function(){var popup360Elm=jQuery('#wr360PlayerId20');if(popup360Elm.length===1){var backgroundColor=wr360QueryGetParameterByName('background');if(backgroundColor&&backgroundColor.length>0) popup360Elm.css('background-color',backgroundColor);popup360Elm.rotator({licenseFileURL:wr360QueryGetParameterByName('lic'),graphicsPath:wr360QueryGetParameterByName('grphpath'),configFileURL:wr360QueryGetParameterByName('config'),rootPath:wr360QueryGetParameterByName('root'),googleEventTracking:wr360QueryGetParameterByName('analyt')==='true',viewName:wr360QueryGetParameterByName('viewname')});} else{var prettySkin=typeof getWR360PopupSkin!=='undefined'?getWR360PopupSkin():'light_clean';if(typeof jQuery.fn.prettyPhoto!=='undefined') jQuery("a[data-rel^='prettyPhoto']").prettyPhoto({animation_speed:0,deeplinking:false,theme:prettySkin});} jQuery('.single_variation_wrap').on('show_variation',function(event,variation){var swiperEl=document.querySelector('.wr360-swiper-view');if(!swiperEl||!swiperEl.swiper) return;var slidesEl=jQuery(swiperEl).find('.swiper-slide');if(!slidesEl.length) return;var $swiper=jQuery(swiperEl),varsLoadedAttrName='data-wr360-vars-loaded',isVariationsLoaded=$swiper.attr(varsLoadedAttrName);if(!isVariationsLoaded) $swiper.attr(varsLoadedAttrName,1);var $firstSlide=jQuery(slidesEl[0]);if($firstSlide.data('wr360-cfg')&&!isVariationsLoaded) return;for(var slideCount=0;slideCount")).replace(/\n\r/g,"
")).replace(/\r/g,"
")).replace(/\n/g,"
")},WR360.by=function(){},WR360.by.fI=function($elements,onclick,proxy){proxy=void 0===proxy?"":".proxy"+proxy;var gq="touchstart";window.navigator.pointerEnabled?gq="pointerdown":window.navigator.msPointerEnabled&&(gq="MSPointerDown"),$elements.each(function(){var gv=0;jQuery(this).bind(gq+proxy,function(e){return onclick.call(this,e),e.stopPropagation(),e.preventDefault(),gv=Date.now(),!1}),jQuery(this).bind("click"+proxy,function(e){Date.now()-gv<400||(gv=0,onclick.call(this,e))})})},WR360.by.oe=function($elements,proxy){proxy=void 0===proxy?"":".proxy"+proxy,$elements.each(function(){jQuery(this).unbind("touchstart"+proxy),jQuery(this).unbind("click"+proxy)})},WR360.by.mZ=function(){try{return window.self!==window.top}catch(e){return!0}},WR360.by.lf=function(){return!!(/iPad|iPhone|iPod/.test(navigator.platform)||/Android/.test(navigator.userAgent)||/Mac/.test(navigator.userAgent)&&navigator.maxTouchPoints&&1=y&&eJ.y<=cu)},WR360.by.pA=function(){var ajaxLocation="";try{ajaxLocation=location.href}catch(e){(ajaxLocation=document.createElement("a")).href="",ajaxLocation=ajaxLocation.href}ajaxLocation=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/.exec(ajaxLocation.toLowerCase())||[];return/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ajaxLocation[1])},WR360.J=function(){this.dr=new Array},WR360.J.prototype.iS=function(item){for(var result=-1,i=0;iV.aw.length-1)&&(qI=0),rootPath=V.aw[qI].src,av&&V.settings.control.qc&&this.bh.bV.lc&&(rootPath=(null!=V.aw[qI].cS?V.aw[qI].cS:V.aw[qI]).src)}else if(1==this.bh.dV&&0<=this.bh.reloadImageIndex){av=this.bh.reloadImageIndex;0V.aw.length-1&&(av=0),rootPath=V.aw[av].src}else if(0==V.settings.eH.image.length||V.settings.eH.image.toLowerCase()==WR360.cL.la)return void this.dispatchEvent(new WR360.cO(WR360.cO.COMPLETE,!0,!1,null,!0,""));this.image=new Image,(this.image.be=this).image.onload=this.os,this.image.onerror=this.mj,this.image.src=this.rootPath+rootPath},WR360.cL.prototype.os=function(){this.be.dispatchEvent(new WR360.cO(WR360.cO.COMPLETE,!0,!1,this.be.image,!0,""))},WR360.cL.prototype.mj=function(){this.be.dispatchEvent(new WR360.cO(WR360.cO.ERROR,!0,!1,null,!1,"Preloader IO ERROR: "+this.src))},WR360.cO=function(type,bubbles,cancelable,image,success,errorMessage){this.aB().constructor.call(this,type,bubbles,cancelable),this.image=image,this.success=success,this.errorMessage=errorMessage},WR360.cO.aK(WR360.Event),WR360.cO.COMPLETE="complete",WR360.cO.ERROR="error",WR360.dP=function(cR){this.aB().constructor.call(this),this.aw=new Array,this.sU=new Array,this.rd=0,this.ty=0,this.cG=0,this.cR=cR,this.mu="cache_"+cR.substr(1,cR.length)},WR360.dP.aK(WR360.dY),WR360.dP.prototype.lU=function(row){return row>this.sU.length&&(row=0),this.sU[row]},WR360.dP.prototype.sd=function(){return this.sU.length},WR360.dP.prototype.sM=function(){return this.rd},WR360.dP.prototype.rr=function(){return this.aw.length},WR360.dP.prototype.Init=function(rootPath,graphicsPath,V,oq){this.ct.Init.call(this,rootPath,V),this.uT(rootPath,graphicsPath,V,oq)},WR360.dP.prototype.uT=function(rootPath,graphicsPath,V,oq){this.rd=V.aw.length/V.aw.rows,this.rd%1&&(this.rd=V.aw.length,V.aw.rows=1);for(var row=0;row=sK*this.rd&&(sK++,sl=0);var af=new WR360.ba(V.aw[i],sl,rootPath,graphicsPath,oq);this.aw[i]=af,this.sU[sK-1][sl++]=af,V.settings.rotation.fE==i&&(this.ty=sK-1)}},WR360.dP.prototype.kE=function(){for(var i=this.cG=0;i=this.aw.length&&(eR=WR360.cf.COMPLETE,this.cQ=!0),this.dispatchEvent(new WR360.cf(eR,!0,!1,e.af,Math.round(100*this.cG/this.aw.length),!0,"")))},WR360.dP.prototype.ou=function(e){var bu=this.be;bu.dispatchEvent(new WR360.cf(WR360.cf.ERROR,!0,!1,e.af,Math.round(100*bu.cG/bu.aw.length),!1,e.errorMessage))},WR360.cf=function(type,bubbles,cancelable,af,ee,success,errorMessage){this.aB().constructor.call(this,type,bubbles,cancelable),this.af=af,this.ee=ee,this.errorMessage=errorMessage,this.success=success},WR360.cf.aK(WR360.Event),WR360.cf.PROGRESS="ImagesCache_progress",WR360.cf.COMPLETE="ImagesCache_complete",WR360.cf.ERROR="ImagesCache_error",WR360.cf.bJ="ImagesCache_canceled",WR360.dc=function(){this.aB().constructor.call(this),this.dH=0,this.bF=[],this.hu=-1},WR360.dc.aK(WR360.dY),WR360.dc.prototype.Init=function(rootPath,V){this.ct.Init.call(this,rootPath,V),this.ku(rootPath,V)},WR360.dc.prototype.ku=function(rootPath,V){for(var eW=0,i=0;i=this.bF.length&&(eR=WR360.dK.COMPLETE,this.cQ=!0),this.dispatchEvent(new WR360.dK(eR,!0,!1,e.aO,Math.round(100*this.dH/this.bF.length),!0,""))},WR360.dc.prototype.og=function(e){var bu=this.be;bu.dispatchEvent(new WR360.dK(WR360.dK.ERROR,!0,!1,e.aO,Math.round(100*bu.dH/bu.bF.length),!1,e.errorMessage))},WR360.dK=function(type,bubbles,cancelable,aO,ee,success,errorMessage){this.aB().constructor.call(this,type,bubbles,cancelable),this.aO=aO,this.ee=ee,this.errorMessage=errorMessage,this.success=success},WR360.dK.aK(WR360.Event),WR360.dK.PROGRESS="HotspotsCache_progress",WR360.dK.COMPLETE="HotspotsCache_complete",WR360.dK.ERROR="HotspotsCache_error",WR360.dK.bJ="HotspotsCache_canceled",WR360.cI=function(visible,aO,bV,H){this.df=visible,this.dz=0,this.dg=0,this.aO=aO,this.bV=bV,this.bh=bV.bh,this.playing=!1,this.H=H},WR360.cI.prototype.cD=function(){this.fR()},WR360.cI.prototype.aH=function(visible){},WR360.cI.prototype.tz=function(visible,uk){},WR360.cI.prototype.uv=function(x,y){this.dz=x,this.dg=y},WR360.cI.prototype.nT=function(){var aM;null!=this.bH&&(aM=this.bV.oy(this.aO,this.bH.qh,this.bH.qw),this.dz=aM.x,this.dg=aM.y,this.bH.gM.css("left",this.dz),this.bH.gM.css("top",this.dg),null!=this.bH.image)&&0==this.aO.bi.hotspotInfo.imgNoScale&&this.bH.gM.css("width",this.aO.ea(this.bV.lB))},WR360.cI.prototype.fR=function(){null==this.bH&&this.aO.gL()&&(this.bH=new WR360.bx(this.bV,this.aO,this.H),this.bH.jw(),this.bH.jl(this.gV()))},WR360.cI.prototype.gV=function(){return{x:this.dz,y:this.dg}},WR360.cI.prototype.pM=function(){null!=this.bH&&this.bH.delete()},WR360.aT=function(visible,aO,bV,H){this.aB().constructor.call(this),this.df=visible,this.dz=0,this.dg=0,this.clip=null,this.aO=aO,this.bV=bV,this.bh=bV.bh,this.dW=!1,this.H=H,this.bb=null,this.image=new Image,this.bH=null,this.fc=!1,this.gB=0,this.gE=0,this.pl="indicator_active "+this.aO.bi.id+"_indicator_active",this.image.onload=jQuery.proxy(this.nK,this),this.image.onerror=jQuery.proxy(this.nY,this),this.hotspotHtmlId=this.bh.gK(this.aO.bi),this.cb=0,this.kn=0,this.isClip=this.aO.bi.clipStyle.parsed,this.jP=jQuery.proxy(this.jP,this),this.mC=jQuery.proxy(this.mC,this),this.uS=jQuery.proxy(this.uS,this),this.kG(),this.aO.bi.indicatorImage&&(this.image.src=this.bh.settings.graphicsPath+"/"+this.aO.bi.indicatorImage),this.aH(visible)},WR360.aT.aK(WR360.dh),WR360.aT.Events={},WR360.aT.Events.tn="HOTSPOT_API_ACTIVATE",WR360.aT.Events.uo="HOTSPOT_API_DEACTIVATE",WR360.aT.Events.mI="HOTSPOT_ROLLOVER_REMOVED",WR360.aT.prototype.kG=function(){var self=this,baseClass="hotspot_indicator ",isSelfUrl=(this.isClip&&(baseClass+="clip_indicator "),this.aO.lT()&&(!this.aO.gL()||!this.aO.bi.activateOnClick));this.bb=(isSelfUrl?jQuery(""):jQuery("
")).appendTo(this.H),this.aO.bi.effects&&((baseClass={class:"indicator_effect_"+(baseClass=this.aO.bi.effects.split(","))[0],duration:baseClass[1]||null,stopOnActivation:baseClass[2]||!1}).duration&&this.bb[0].style.setProperty("--anim-duration",baseClass.duration+"ms"),this.bb.addClass(baseClass.class),this.aO.bi.parsedEffect=baseClass),this.aO.bi.dummy&&this.bb.addClass("indicator_dummy"),this.aO.bi.alwaysActive||(this.bb.mouseover(jQuery.proxy(function(event){this.OnMouseOver(event)},this)),this.bb.mouseout(jQuery.proxy(function(event){this.OnMouseOut(event)},this))),isSelfUrl?this.bb.click(function(){self.bh.gD()&&self.bh.sm.Event(WR360.sY.rU.rR)}):WR360.by.fI(this.bb,jQuery.proxy(function(event){return this.kf(event)},this)),this.bh.addEventListener(WR360.Events.hG,this.mC),this.bh.addEventListener(WR360.ImageRotator.Events.un,this.uS),this.bb.bind("touchend mousedown",function(e){e.stopPropagation(),self.bh.jB(e)})},WR360.aT.prototype.nK=function(e){var image=e.target,self=this;setTimeout(function(){document.ad.msie&&WR360.by.pe(self.aO.bi.indicatorImage,image),self.uv(self.dz,self.dg);var uW=self.nC(image);self.bb.css({"background-image":"url("+image.src+")",width:uW.width,height:uW.height,"background-size":"contain"})},document.ad.msie?100:0)},WR360.aT.prototype.nY=function(e){WR360.bZ.gA("DynamicHotspotPresenter. Error loading image: "+e.target.src)},WR360.aT.prototype.cD=function(){},WR360.aT.prototype.aH=function(visible,aX){(this.df=visible)?aX?this.bb.fadeIn(300):this.bb.show():aX?this.bb.fadeOut(300):this.bb.hide()},WR360.aT.prototype.uS=function(){this.bH&&this.bH.tx(!1)},WR360.aT.prototype.tz=function(visible,uk){this.aO.bi.alwaysActive&&(visible||!uk&&this.aO.bi.alwaysActive==WR360.kc.uc.uD?(this.uy(),this.bH&&this.bH.tx(visible)):(this.gY(!0),this.bH&&this.bH.tx(!1)))},WR360.aT.prototype.SetClip=function(coord,size,points){var pointIdx,polygon="polygon(";for(pointIdx in points)var eJ=points[pointIdx],polygon=(polygon+=eJ.x+"% ")+(eJ.y+"%,");polygon=polygon.slice(0,-1),polygon+=")";var scaledSize=this.bV.GetPolySize(size.width,size.height),clipStyle=this.aO.bi.clipStyle,hotspotElm=(this.bb.css({"clip-path":polygon,width:scaledSize.width,height:scaledSize.height,left:coord.scaleX,top:coord.scaleY,"background-color":clipStyle.backColor,opacity:clipStyle.backOpacity}),this.bb[0]),hotspotElm=(hotspotElm.style.setProperty("--back-color-hover",clipStyle.backColorHover),hotspotElm.style.setProperty("--back-opacity-hover",clipStyle.backOpacityHover),this.getClipCentroid(points));hotspotElm.x=hotspotElm.x*size.width/100,hotspotElm.y=hotspotElm.y*size.height/100,hotspotElm.x=hotspotElm.x*scaledSize.width/size.width+coord.scaleX,hotspotElm.y=hotspotElm.y*scaledSize.height/size.height+coord.scaleY,this.clip={centroid:hotspotElm}},WR360.aT.prototype.uv=function(x,y){this.dz=x,this.dg=y;var uW=this.nC();this.bb.css({left:x-uW.width/2,top:y-uW.height/2,width:uW.width,height:uW.height})},WR360.aT.prototype.mC=function(e){this.aO.bi.alwaysActive&&"toggle"!==e.param||e.param!=this.hotspotHtmlId&&this.gY("toggle"===e.param)},WR360.aT.prototype.OnMouseOut=function(e){e.stopPropagation(),this.fc=!1},WR360.aT.prototype.OnMouseOver=function(e){1!=this.bh.pY&&(e.stopPropagation(),e.preventDefault(),0==this.aO.bi.activateOnClick)&&1==this.fR()&&(this.gE=Date.now())},WR360.aT.prototype.kf=function(e){if(this.aO.bi.alwaysActive)this.aO.js()&&this.aO.cv(this.bh,this.gV());else{if(0==this.aO.bi.activateOnClick){if(Date.now()-this.gE<150)return;this.gE=0}if(1==this.aO.js())if(0==this.aO.gL()||0==this.aO.bi.activateOnClick&&1==this.dW)return 0==this.aO.gL()&&this.bh.dispatchEvent(new WR360.Event(WR360.Events.hG,!1,!1,this.hotspotHtmlId)),void(0==this.aO.cv(this.bh,this.gV())&&1==this.dW&&this.gY(!1));this.fc=!1,1==this.dW?this.gY(!1):this.fR()}},WR360.aT.prototype.jP=function(e){var lM;clearInterval(this.gB),clearTimeout(this.kn),clearTimeout(this.cb),this.cb=0,this.bb.removeClass(this.pl),this.dW&&(this.dW=!1,e.param||this.ld(),this.aO.bi.activateOnClick||WR360.by.fU||0==(e={x:this.bh.dO,y:this.bh.ei}).x&&0==e.y||WR360.by.fA(this.bb,e)&&(this.fc=!0,(lM=this).gB=setInterval(function(){lM.lb()},200)))},WR360.aT.prototype.eb=function(timeout,hZ){var self;this.fR(timeout,!0),void 0===timeout||this.cb||((self=this).cb=setTimeout(function(){self.gY(!0),void 0!==hZ&&hZ(self.mv())},timeout))},WR360.aT.prototype.fR=function(timeout,qp){var effect=this.aO.bi.parsedEffect;return effect&&effect.stopOnActivation&&this.bb.removeClass(effect.class),!(this.bh.fu&&!qp||this.dW||this.fc||(this.bh.dispatchEvent(new WR360.Event(WR360.Events.hG,!1,!1,this.hotspotHtmlId)),this.bh.cJ(),this.dW=!0,this.bh.lp(),this.bb.addClass(this.pl),this.ll()||!this.aO.gL()?(this.oX(timeout),1):(this.bH||(this.bH=new(this.aO.bi.renderMode==WR360.kc.bf.kd?WR360.fH:WR360.bx)(this.bV,this.aO,this.H),this.bH.addEventListener(WR360.aT.Events.mI,this.jP),this.bH.jw()),this.bH.jl(this.gV()),this.oX(timeout),0)))},WR360.aT.prototype.uy=function(){this.aO.gL()&&(null==this.bH?(this.bH=new WR360.bx(this.bV,this.aO,this.H),this.bH.jw(),this.bH.jl(this.gV()),this.dW=!0):this.bH.jl(this.gV()))},WR360.aT.prototype.ll=function(){return this.dispatchEvent(new WR360.Event(WR360.aT.Events.tn,!1,!1))},WR360.aT.prototype.ld=function(){return this.dispatchEvent(new WR360.Event(WR360.aT.Events.uo,!1,!1))},WR360.aT.prototype.gY=function(aX){clearInterval(this.gB),clearTimeout(this.cb),this.cb=0,clearTimeout(this.kn),this.bb.removeClass(this.pl),0!=this.dW&&(1==this.ld()?this.dW=!1:null!=this.bH&&this.bH.cN(aX,!0))},WR360.aT.prototype.gV=function(){return this.clip?this.clip.centroid:{x:this.dz,y:this.dg}},WR360.aT.prototype.getClipCentroid=function(points){var idx,x0=points[0].x,y0=points[0].y,x=0,y=0,twiceArea=0,prev=points[points.length-1];for(idx in points){var next=points[idx],x1=prev.x-x0,y1=prev.y-y0,x2=next.x-x0,y2=next.y-y0,a=x1*y2-x2*y1;twiceArea+=a,x+=(x1+x2)*a,y+=(y1+y2)*a,prev=next}var factor=3*twiceArea;return{x:(x/=factor)+x0,y:(y/=factor)+y0}},WR360.aT.prototype.oX=function(timeout){var self;1!=WR360.by.fU&&(clearInterval(this.gB),timeout=void 0!==timeout?timeout:0,1!=(self=this).aO.bi.deactivateOnClick||0!=timeout)&&(this.kn=setTimeout(function(){self.gB=setInterval(function(){self.jE()},300)},timeout))},WR360.aT.prototype.jE=function(){var cV=this.bh.hA;0==cV.x&&0==cV.y||0!=WR360.by.fA(this.bb,cV)||null!=this.bH&&0!=this.bH.iI(cV)||(this.gY(!0),clearInterval(this.gB))},WR360.aT.prototype.lb=function(){var cV={x:this.bh.dO,y:this.bh.ei};0==cV.x&&0==cV.y||0==WR360.by.fA(this.bb,cV)&&(this.fc=!1,clearInterval(this.gB),this.gB=0)},WR360.aT.prototype.nT=function(){this.bH&&this.aO.bi.renderMode!=WR360.kc.bf.kd&&(this.aO.bi.alwaysActive&&this.bH.uU(this.gV()),this.bH.image)&&!this.aO.bi.hotspotInfo.imgNoScale&&this.bH.gM.css("width",this.aO.ea(this.bV.lB))},WR360.aT.prototype.mv=function(){return{hotspotHtmlId:this.hotspotHtmlId,parentContainer:this.H,hotspotConfig:this.aO.bi,coordX:this.dz,coordY:this.dg,isVisible:this.df}},WR360.aT.prototype.pM=function(){this.bb.unbind(),this.bb.remove(),null!=this.bH&&(this.bH.removeEventListener(WR360.aT.Events.mI,this.jP),this.bH.delete()),clearInterval(this.gB),clearTimeout(this.cb),clearTimeout(this.kn),this.bh.removeEventListener(WR360.Events.hG,this.mC),this.bh.removeEventListener(WR360.ImageRotator.Events.un,this.uS),this.bV=null,this.bh=null},WR360.aT.prototype.pZ=function(isHide){var ps="hotspot_indicator_hidden";1==isHide?this.bb.addClass(ps):this.bb.removeClass(ps)},WR360.aT.prototype.vb=function(){this.aO.cv(this.bh,this.gV())},WR360.aT.prototype.nC=function(image){image=image||this.image;var scale=this.aO.bi.minIndicatorScale,lB=this.bh.lB;if(!scale||100<=scale||1<=lB)return{width:image.width,height:image.height};var width=image.width*lB,lB=image.height*lB;if(0").appendTo(this.H),this.tO=jQuery("